:root {
  --paper: #f4f0e6;
  --ink: #191919;
  --red: #b84332;
  --amber: #d69a2d;
  --line: rgba(25, 25, 25, 0.18);
  --muted: rgba(25, 25, 25, 0.66);
  --space-page: clamp(20px, 4vw, 64px);
  --content: 1200px;
  color-scheme: light;
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(rgba(25, 25, 25, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(25, 25, 25, 0.045) 1px, transparent 1px),
    var(--paper);
  background-size: 48px 48px;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  background: radial-gradient(circle at 82% 7%, rgba(214, 154, 45, 0.18), transparent 29%);
  pointer-events: none;
}

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 20;
  padding: 12px 16px;
  color: var(--paper);
  background: var(--ink);
  border-radius: 999px;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header,
main,
footer {
  width: min(calc(100% - (var(--space-page) * 2)), var(--content));
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 88px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  font-weight: 800;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  color: var(--paper);
  background: var(--red);
  border-radius: 50% 50% 50% 14%;
  place-items: center;
  transform: rotate(-8deg);
}

.brand-mark + span {
  letter-spacing: 0.08em;
}

nav {
  display: flex;
  gap: clamp(16px, 3vw, 36px);
}

nav a {
  position: relative;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

nav a::after {
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 2px;
  content: "";
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

nav a:hover::after {
  transform: scaleX(1);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
  gap: 48px;
  align-items: center;
  min-height: calc(100svh - 88px);
  padding: 80px 0 96px;
}

.eyebrow {
  margin: 0 0 24px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.hero h1 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(48px, 8vw, 112px);
  line-height: 0.94;
  letter-spacing: -0.065em;
}

.hero h1 span {
  display: block;
  color: var(--red);
}

.hero-lead {
  max-width: 760px;
  margin: 32px 0 0;
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  gap: 28px;
  align-items: center;
  margin-top: 40px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
}

.button-primary {
  color: var(--paper);
  background: var(--ink);
  transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

.button-primary:hover {
  color: var(--ink);
  background: var(--amber);
  transform: translateY(-2px);
}

.text-link {
  padding: 10px 0;
  font-weight: 700;
  text-underline-offset: 5px;
}

.hero-orbit {
  position: relative;
  width: min(100%, 390px);
  aspect-ratio: 1;
  margin-left: auto;
}

.orbit {
  position: absolute;
  border: 1px solid var(--ink);
  border-radius: 50%;
}

.orbit-large {
  inset: 4%;
  border-style: dashed;
  animation: orbit-spin 28s linear infinite;
}

.orbit-small {
  inset: 20%;
  border-color: var(--red);
  transform: rotate(32deg) scaleY(0.48);
}

.orbit-core {
  position: absolute;
  inset: 34%;
  display: grid;
  color: var(--paper);
  font-size: clamp(32px, 6vw, 60px);
  font-weight: 900;
  letter-spacing: -0.08em;
  background: var(--red);
  border-radius: 50%;
  box-shadow: 18px 18px 0 var(--amber);
  place-items: center;
}

.orbit-note {
  position: absolute;
  padding: 7px 10px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.18em;
  background: var(--paper);
  border: 1px solid var(--ink);
  border-radius: 999px;
}

.orbit-note-top {
  top: 1%;
  left: 48%;
}

.orbit-note-right {
  top: 49%;
  right: -2%;
}

.orbit-note-bottom {
  bottom: 3%;
  left: 14%;
}

.manifesto {
  display: grid;
  grid-template-columns: 72px minmax(260px, 0.9fr) minmax(300px, 1fr);
  gap: 48px;
  padding: 112px 0;
  border-top: 1px solid var(--line);
}

.section-index {
  font-size: 12px;
  font-weight: 900;
}

.section-heading h2,
.work-heading h2,
.contact-copy h2 {
  margin: 0;
  font-size: clamp(40px, 5vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.about-copy {
  align-self: end;
}

.about-copy > p {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.85;
}

.principles {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 36px;
}

.principles span {
  padding: 10px 16px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

.work-section {
  padding: 112px 0;
  border-top: 1px solid var(--line);
}

.work-heading {
  display: flex;
  gap: 48px;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 48px;
}

.work-heading > p {
  max-width: 420px;
  margin: 0 0 8px;
  color: var(--muted);
  line-height: 1.7;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.project-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 480px;
  padding: clamp(28px, 4vw, 48px);
  border: 1px solid var(--ink);
  border-radius: 24px;
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.project-card:hover {
  box-shadow: 10px 10px 0 var(--ink);
  transform: translate(-4px, -4px);
}

.project-card-red {
  color: var(--paper);
  background: var(--red);
}

.project-card-amber {
  background: var(--amber);
}

.card-topline,
.card-footer {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 800;
}

.card-kicker {
  margin: 0 0 12px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.project-card h3 {
  margin: 0 0 24px;
  font-size: clamp(44px, 6vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.project-card > div > p:last-child {
  max-width: 500px;
  margin: 0;
  font-size: 17px;
  line-height: 1.75;
}

.card-footer {
  padding-top: 24px;
  border-top: 1px solid currentColor;
}

.contact-section {
  display: grid;
  grid-template-columns: 1.4fr minmax(280px, 0.6fr);
  gap: 64px;
  align-items: end;
  padding: 112px 0;
  border-top: 1px solid var(--line);
}

.contact-copy > p:last-child {
  max-width: 580px;
  margin: 32px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.75;
}

.copy-button {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
  padding: 28px;
  color: var(--paper);
  font: inherit;
  text-align: left;
  cursor: pointer;
  background: var(--ink);
  border: 0;
  border-radius: 20px;
  transition: background 180ms ease, transform 180ms ease;
}

.copy-button:hover {
  color: var(--ink);
  background: var(--amber);
  transform: rotate(-1deg);
}

.copy-button span {
  font-size: 12px;
  font-weight: 800;
}

.copy-button strong {
  font-size: clamp(28px, 4vw, 48px);
}

footer {
  display: flex;
  justify-content: space-between;
  padding: 32px 0 48px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 10;
  padding: 12px 18px;
  color: var(--paper);
  pointer-events: none;
  visibility: hidden;
  background: var(--ink);
  border-radius: 999px;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 160ms ease, transform 160ms ease, visibility 160ms;
}

.toast.is-visible {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

.not-found-page {
  display: grid;
  min-height: 100svh;
  place-items: center;
}

.not-found {
  width: min(calc(100% - 40px), 900px);
  padding: 64px 0;
}

.not-found h1 {
  margin: 0;
  color: var(--red);
  font-size: clamp(72px, 15vw, 180px);
  line-height: 0.82;
  letter-spacing: -0.07em;
}

.not-found > p:not(.eyebrow) {
  max-width: 560px;
  margin: 40px 0 28px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

@keyframes orbit-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 840px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 72px 0 80px;
  }

  .hero-orbit {
    width: min(78vw, 340px);
    margin: 12px auto 0;
  }

  .manifesto {
    grid-template-columns: 48px 1fr;
    gap: 32px 20px;
    padding: 88px 0;
  }

  .about-copy {
    grid-column: 2;
  }

  .work-grid,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .contact-section {
    gap: 48px;
  }
}

@media (max-width: 600px) {
  .site-header {
    min-height: 72px;
  }

  nav {
    gap: 14px;
  }

  nav a {
    font-size: 12px;
  }

  .brand-mark + span {
    display: none;
  }

  .hero {
    padding-top: 56px;
  }

  .hero h1 {
    font-size: clamp(48px, 16vw, 72px);
  }

  .hero-actions,
  .work-heading,
  footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-actions {
    gap: 12px;
  }

  .manifesto {
    grid-template-columns: 1fr;
  }

  .section-index,
  .about-copy {
    grid-column: 1;
  }

  .work-section,
  .contact-section {
    padding: 88px 0;
  }

  .work-heading {
    gap: 24px;
  }

  .project-card {
    min-height: 420px;
  }

  .project-card:hover {
    box-shadow: none;
    transform: none;
  }

  .toast {
    right: 20px;
    bottom: 20px;
    left: 20px;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
