:root {
  --bone: #f3f0e2;
  --paper: #fffdf6;
  --ink: #0b0c37;
  --navy: #0b0c37;
  --green: #25a60c;
  --yellow: #f1f326;
  --body: #1c2044;
  --muted: #3d4270;
  --line: rgba(11, 12, 55, 0.1);
  --signal: #28751b;
  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  --shell: 2rem;
  --font: "Plus Jakarta Sans", "Avenir Next", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 6.5rem; }

section[id] { scroll-margin-top: 0; }

body {
  margin: 0;
  background: var(--bone);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.lock { overflow: hidden; }

::selection { background: var(--navy); color: var(--yellow); }

img { max-width: 100%; display: block; }

a { color: inherit; }

button, input, textarea { font: inherit; color: inherit; }

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

.stage a:focus-visible, .stage button:focus-visible {
  outline-color: var(--yellow);
}

.text-link { font-weight: 600; text-underline-offset: 0.25em; }

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 50;
  background: var(--ink);
  color: var(--paper);
  padding: 0.6rem 1rem;
  border-radius: 999px;
}

.skip:focus { top: 1rem; }

.grain {
  position: fixed;
  inset: 0;
  z-index: 25;
  pointer-events: none;
  opacity: 0.045;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

.wrap {
  width: min(1180px, calc(100% - 2rem));
  margin-inline: auto;
}

.section { padding: 6rem 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  background: rgba(20, 23, 26, 0.045);
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

.eyebrow i {
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 999px;
  background: var(--signal);
  display: block;
}

.stage .eyebrow {
  background: var(--navy);
  color: #fff;
  box-shadow: none;
}

.stage .eyebrow i { background: var(--yellow); }

h1, h2, h3, p { margin-top: 0; }

h1, h2 {
  font-weight: 600;
  letter-spacing: -0.05em;
  line-height: 0.92;
}

h2 {
  font-size: clamp(2.4rem, 5vw, 4.4rem);
  margin-bottom: 1rem;
}

.lede {
  max-width: 38rem;
  color: var(--body);
  font-size: 1.125rem;
  line-height: 1.6;
}

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  display: flex;
  justify-content: center;
  padding: 1.15rem 1rem 0;
  pointer-events: none;
}

.nav-pill {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  width: max-content;
  max-width: calc(100vw - 2rem);
  padding: 0.4rem 0.4rem 0.4rem 1.15rem;
  border-radius: 999px;
  background: rgba(255, 253, 246, 0.88);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.75),
    0 18px 40px -30px rgba(20, 23, 26, 0.45);
  outline: 1px solid rgba(20, 23, 26, 0.08);
}

.mark {
  display: flex;
  align-items: center;
  text-decoration: none;
  margin-right: 0.7rem;
}

.mark img {
  height: 54px;
  width: auto;
  display: block;
}

.mark strong {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.04em;
}

.mark span {
  margin-top: 0.15rem;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav-links {
  display: none;
  align-items: center;
  gap: 0.15rem;
  margin-right: 0.4rem;
}

.nav-links a {
  position: relative;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  padding: 0.55rem 0.7rem;
  color: var(--body);
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0.7rem;
  right: 0.7rem;
  bottom: 0.35rem;
  height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 700ms var(--ease);
}

.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { transform: scaleX(1); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  padding: 0.35rem 0.35rem 0.35rem 1.15rem;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  transition: transform 700ms var(--ease);
}

.btn:hover { transform: translateY(-1px); }

.btn:active { transform: scale(0.98); }

.btn-icon {
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.12);
  transition: transform 700ms var(--ease);
}

.btn:hover .btn-icon { transform: translate(3px, -1px) scale(1.06); }

.btn svg { display: block; }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1px rgba(20, 23, 26, 0.14);
}

.btn-ghost .btn-icon { background: rgba(20, 23, 26, 0.06); color: var(--ink); }

.btn-signal .btn-icon { background: var(--yellow); color: var(--navy); }

.short { display: none; }

.burger {
  width: 2.75rem;
  height: 2.75rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  position: relative;
  cursor: pointer;
  flex: none;
}

.burger span {
  position: absolute;
  left: 0.8rem;
  right: 0.8rem;
  top: 50%;
  height: 1px;
  background: var(--ink);
  transition: transform 700ms var(--ease);
}

.burger span:first-child { transform: translateY(-4px); }

.burger span:last-child { transform: translateY(4px); }

.burger.is-open span:first-child { transform: rotate(45deg); }

.burger.is-open span:last-child { transform: rotate(-45deg); }

.menu {
  position: fixed;
  inset: 0;
  z-index: 35;
  background: rgba(243, 240, 226, 0.9);
  backdrop-filter: blur(36px);
  -webkit-backdrop-filter: blur(36px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.15rem;
  padding: 7rem 8vw 3rem;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 700ms var(--ease);
}

.menu.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.menu-link {
  display: block;
  width: fit-content;
  max-width: 100%;
  text-decoration: none;
  font-size: clamp(2.6rem, 7vw, 5rem);
  font-weight: 600;
  letter-spacing: -0.055em;
  line-height: 0.98;
  opacity: 0;
  transform: translateY(3rem);
  transition: transform 800ms var(--ease), opacity 800ms var(--ease);
}

.menu.is-open .menu-link { opacity: 1; transform: none; }

.menu.is-open .menu-link:nth-child(1) { transition-delay: 80ms; }
.menu.is-open .menu-link:nth-child(2) { transition-delay: 140ms; }
.menu.is-open .menu-link:nth-child(3) { transition-delay: 200ms; }
.menu.is-open .menu-link:nth-child(4) { transition-delay: 260ms; }
.menu.is-open .menu-link:nth-child(5) { transition-delay: 320ms; }
.menu.is-open .menu-link:nth-child(6) { transition-delay: 380ms; }

.menu-meta {
  margin-top: 1.5rem;
  color: var(--muted);
  font-size: 0.95rem;
  opacity: 0;
  transform: translateY(1.5rem);
  transition: transform 800ms var(--ease), opacity 800ms var(--ease);
}

.menu.is-open .menu-meta {
  opacity: 1;
  transform: none;
  transition-delay: 440ms;
}

.stage {
  position: relative;
  min-height: 100dvh;
  background: var(--navy);
  overflow: hidden;
}

.stage-img {
  display: block;
  width: 100%;
  height: 100dvh;
  object-fit: cover;
  object-position: center;
  background: var(--navy);
  transition: opacity 700ms var(--ease);
}

.stage-img.is-fading { opacity: 0; }

.stage-nav {
  position: absolute;
  inset: 0 0 22vh;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.1rem;
  pointer-events: none;
  z-index: 2;
}

.stage-arrow {
  pointer-events: auto;
  width: 3.75rem;
  height: 3.75rem;
  border: 0;
  border-radius: 999px;
  background: var(--yellow);
  color: var(--navy);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform 700ms var(--ease);
}

.stage-arrow:hover { transform: scale(1.06); }

.stage-arrow:active { transform: scale(0.98); }

.stage-dock {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1.5rem;
  padding: 7rem 4vw 1.5rem;
  background: linear-gradient(to top, rgba(11, 12, 55, 0.92) 18%, rgba(11, 12, 55, 0));
  color: var(--paper);
}

.stage-dock h1 {
  margin: 0.55rem 0 0.35rem;
  max-width: 14ch;
  color: var(--paper);
  font-size: clamp(1.8rem, 3.2vw, 3.15rem);
}

.stage-cap {
  margin: 0;
  max-width: 36rem;
  color: rgba(255, 253, 246, 0.86);
}

.stage-summary {
  max-width: 40rem;
  margin: 0.8rem 0 0.65rem;
  line-height: 1.5;
}

.stage-side { display: grid; justify-items: end; gap: 0.8rem; }

.stage-count {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  font-weight: 600;
  color: var(--yellow);
}

.btn-on-photo {
  color: var(--paper);
  box-shadow: inset 0 0 0 1px rgba(255, 253, 246, 0.45);
}

.btn-on-photo .btn-icon {
  background: rgba(255, 253, 246, 0.14);
  color: var(--paper);
}

.hero {
  min-height: 100dvh;
  display: flex;
  align-items: flex-end;
  padding: 8.5rem 0 3rem;
}

.hero-grid, .split {
  display: grid;
  gap: 2.5rem;
}

.hero-grid > *, .split > * { min-width: 0; }

.pair { display: grid; gap: 0.85rem; }

.hero h1 {
  margin: 1.1rem 0 1.1rem;
  font-size: clamp(2.8rem, 7.6vw, 6.6rem);
  max-width: 11ch;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.8rem;
}

.shell {
  background: rgba(20, 23, 26, 0.045);
  box-shadow: inset 0 0 0 1px rgba(20, 23, 26, 0.06);
  border-radius: var(--shell);
  padding: 0.45rem;
}

.core {
  background: var(--paper);
  border-radius: calc(var(--shell) - 0.45rem);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.8);
  overflow: hidden;
}

.shot { position: relative; }

.shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 5;
  transform: scale(1.001);
  transition: transform 900ms var(--ease);
}

.stage-img.is-cover { object-fit: cover; }

.chip {
  position: absolute;
  left: 0.9rem;
  bottom: 0.9rem;
  max-width: calc(100% - 1.8rem);
  background: var(--paper);
  color: var(--ink);
  border-radius: 999px;
  padding: 0.55rem 0.85rem;
  font-size: 0.78rem;
  letter-spacing: -0.01em;
  box-shadow: 0 10px 24px -18px rgba(20, 23, 26, 0.5);
}

.chip b { font-weight: 600; }

.fact-band {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 1rem; }

.metric { padding: 1.4rem 0; }

.metric strong {
  display: block;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  letter-spacing: -0.045em;
  font-weight: 600;
  line-height: 1;
}

.metric span {
  display: block;
  margin-top: 0.45rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.split-copy p:last-child { margin-bottom: 0; }

.kicker {
  margin: 0 0 0.8rem;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--signal);
}

.svc {
  display: grid;
  gap: 0.35rem;
  padding: 1.25rem 0.35rem;
  border-top: 1px solid var(--line);
  transition: transform 700ms var(--ease);
}

.svc:first-child { border-top: 0; }

.svc:hover { transform: translateX(8px); }

.svc .num {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  color: var(--muted);
  font-weight: 600;
}

.svc h3 {
  margin: 0;
  font-size: clamp(1.35rem, 2vw, 1.9rem);
  letter-spacing: -0.04em;
  font-weight: 600;
}

.svc p { margin: 0; color: var(--body); }

.also {
  margin: 0.4rem 0 0;
  padding: 1.1rem 0.35rem 0.3rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.98rem;
}

.machines {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
}

.machines li {
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  letter-spacing: -0.035em;
  font-weight: 500;
}

.chapter-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.4rem;
}

.chapter-head h2 { margin: 0; }

.arrows { display: flex; gap: 0.45rem; }

.arrows button {
  width: 3.35rem;
  height: 3.35rem;
  border-radius: 999px;
  border: 0;
  background: var(--yellow);
  color: var(--navy);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: transform 700ms var(--ease);
}

.arrows button:hover { transform: translateY(-2px); }

.arrows button:active { transform: scale(0.98); }

.track {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 0.4rem;
  scrollbar-width: none;
  scroll-behavior: smooth;
}

.track::-webkit-scrollbar { display: none; }

.pill-card {
  flex: 0 0 auto;
  width: max-content;
  max-width: 94vw;
}

#work .track {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  padding-left: 3vw;
  padding-right: 3vw;
  gap: 1.25rem;
  cursor: grab;
  user-select: none;
  touch-action: pan-y;
  scroll-behavior: auto;
}

#work .track.is-dragging { cursor: grabbing; }

#work .pill-card { cursor: pointer; }

#work .shot img {
  aspect-ratio: auto;
  display: block;
  width: auto;
  height: auto;
  max-height: min(67.5vh, 810px);
  max-width: calc(100vw - 7.75rem);
  object-fit: contain;
  background: var(--navy);
  pointer-events: none;
  -webkit-user-drag: none;
}

.cap { padding: 1rem 1.05rem 1.15rem; }

.cap p { margin: 0; }

.cap .where {
  margin-top: 0.25rem;
  color: var(--body);
  letter-spacing: -0.02em;
}

.work-note {
  margin: 1.4rem 0 0;
  color: var(--muted);
  max-width: 40rem;
}

.chapter + .chapter { margin-top: 4.5rem; }

.form-grid {
  display: grid;
  gap: 0.85rem;
  padding: 1.15rem;
}

.field { display: grid; gap: 0.35rem; }

.field span {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--muted);
}

.field input, .field textarea {
  width: 100%;
  border: 0;
  resize: vertical;
  background: #f6f1df;
  border-radius: 1rem;
  padding: 0.95rem 1rem;
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.85),
    inset 0 0 0 1px rgba(20, 23, 26, 0.06);
}

.field textarea { min-height: 9rem; }

.field input:focus, .field textarea:focus {
  outline: 2px solid var(--signal);
  outline-offset: 2px;
}

.field.is-error input, .field.is-error textarea,
.field.is-error input:focus, .field.is-error textarea:focus {
  box-shadow: inset 0 0 0 1.5px #8c3a2f;
  outline-color: #8c3a2f;
}

.err {
  min-height: 1rem;
  margin: 0;
  color: #8c3a2f;
  font-size: 0.82rem;
}

.form-note, .status {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.status:empty { display: none; }

.status { color: var(--ink); }

.footer { padding: 4rem 0 2.5rem; }

.footer-logo {
  width: min(22.5rem, 72%);
  height: auto;
  display: block;
}

.footer-grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.footer a { text-decoration: none; }

.footer a:hover { color: var(--signal); }

.footer h2 {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 0.45rem;
}

.footer p { margin: 0; }

.legal {
  margin-top: 2rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.reveal {
  transition: opacity 900ms var(--ease), transform 900ms var(--ease);
}

.js-motion .reveal { opacity: 0; transform: translateY(3.25rem); }

.js-motion .reveal-blur { filter: blur(12px); }

.js-motion .reveal.in { opacity: 1; transform: none; filter: none; }

.about-intro { padding: 9rem 0 3rem; }
.about-intro h1 { max-width: 16ch; font-size: clamp(2.8rem, 6vw, 5.5rem); margin-bottom: 1.5rem; }
.about-section { padding: 4rem 0; }
.about-section h2 { font-size: clamp(2.2rem, 4vw, 3.5rem); line-height: 1.05; }
.about-projects { display: grid; gap: 2rem; }
.about-projects figure { margin: 0; }
.about-projects .shot img { aspect-ratio: 4 / 3; }
.about-projects figcaption { padding: 1.25rem; }
.about-projects h3 { margin-bottom: 0.65rem; }
.about-projects p { margin-bottom: 0; color: var(--body); }
.about-cta { padding: 2rem; }
.about-cta h2 { max-width: 18ch; }

.d1 { transition-delay: 90ms; }
.d2 { transition-delay: 180ms; }
.d3 { transition-delay: 270ms; }

@media (min-width: 720px) {
  .about-projects { grid-template-columns: 1fr 1fr; }
  .metrics { grid-template-columns: repeat(4, 1fr); }
  .metric + .metric { box-shadow: inset 1px 0 0 var(--line); padding-left: 1.4rem; }
  .svc { grid-template-columns: 3.2rem 1fr 1.35fr; align-items: baseline; gap: 1rem; }
  .machines { grid-template-columns: 1fr 1fr; column-gap: 2.5rem; }
  .footer-grid { grid-template-columns: 1.3fr 1fr 1fr 1fr; }
  .pair { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 900px) {
  .wrap { width: min(1180px, calc(100% - 5rem)); }
  .section { padding: 8.5rem 0; }
  .nav-links { display: flex; }
  .burger { display: none; }
  .hero-grid, .split { grid-template-columns: 1fr 1fr; gap: 4rem; align-items: end; }
  .split.top { align-items: center; }
  .stage-img { object-fit: contain; }
  .stage-img.is-cover { object-fit: cover; }
  .hero { padding-bottom: 4rem; }
  .shot img { aspect-ratio: 4 / 5; }
}

@media (max-width: 899px) {
  .svc:hover { transform: none; }
  .shot img { aspect-ratio: 4 / 3; }
}

@media (max-width: 720px) {
  .stage { min-height: auto; }
  .stage-img { height: clamp(17rem, 45svh, 25rem); }
  .stage-nav { inset: 5.5rem 0 auto; height: calc(clamp(17rem, 45svh, 25rem) - 5.5rem); }
  .stage-dock { position: relative; background: var(--navy); }
  .stage-dock .actions { margin-top: 0.5rem; }
  .stage-dock { flex-direction: column; align-items: flex-start; padding: 1.5rem 1rem; gap: 1rem; }
  .stage-side { justify-items: start; }
  .stage-arrow { width: 3rem; height: 3rem; }
  #work .shot img { max-height: min(54vh, 570px); height: auto; }
}

@media (max-width: 520px) {
  .wide { display: none; }
  .short { display: inline; }
  .section, .about-section { padding: 3rem 0; }
  .about-intro { padding: 7rem 0 2rem; }
  .menu { justify-content: flex-start; }
  .menu-link { font-size: clamp(1.8rem, 8vw, 2.5rem); line-height: 1.08; }
  .menu-meta { margin-top: 1rem; }
  .hero { align-items: center; }
  .mark img { height: 34px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js-motion .reveal, .js-motion .reveal-blur, .menu-link, .menu-meta {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
  }
  .shot img, .btn, .btn-icon, .svc, .arrows button, .nav-links a::after, .stage-img, .stage-arrow {
    transition: none;
  }
}
