@layer od-layout {
  [hidden]:not([hidden="until-found" i]) { display: none !important; }
  dialog:not([open]) { display: none !important; }

  :where(.od-stack,.od-row,.od-row-top,.od-cluster,.od-grid,.od-field,.od-stat,.od-cell,.od-tile) > :where(*) { min-width: 0; }

  /* containers */
  .od-stack   { display: flex; flex-direction: column; gap: var(--od-gap, 8px); }
  .od-row     { display: flex; align-items: center; gap: var(--od-gap, 8px); }
  .od-row-top { display: flex; align-items: flex-start; gap: var(--od-gap, 8px); }
  .od-cluster { display: flex; flex-wrap: wrap; align-items: center; gap: var(--od-gap, 8px); }
  .od-fill    { flex: 1 1 0; min-width: 0; }
  .od-fixed   { flex: none; }
  .od-grid    { display: grid; gap: var(--od-gap, 12px); grid-template-columns: repeat(var(--od-cols, 3), minmax(0, 1fr)); }

  /* stacked information: each piece is its own line — never sibling inline spans */
  .od-stat, .od-field, .od-cell { display: grid; gap: var(--od-gap, 2px); }
  :where(.od-stat,.od-field,.od-cell) > :where(*) { display: block; }
  .od-tile { display: grid; grid-template-rows: auto 1fr; }
  :where(.od-tile) > :where(*) { display: block; }

  .od-media { display: block; width: 100%; height: auto; aspect-ratio: var(--od-ratio, auto); }
  .od-media-cover { object-fit: cover; }

  .od-icon { display: inline-block; inline-size: var(--od-icon-size, 1em); block-size: var(--od-icon-size, 1em); flex: none; }

  .od-truncate { display: block; max-width: 100%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
  .od-clamp-2, .od-clamp-3 { display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
  .od-clamp-2 { -webkit-line-clamp: 2; }
  .od-clamp-3 { -webkit-line-clamp: 3; }
  .od-lines-2 { min-height: calc(2 * 1.4em); }
  .od-nowrap  { white-space: nowrap; }
  .od-keep    { word-break: keep-all; overflow-wrap: anywhere; }

  .od-screen { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; height: 100%; }
  .od-scroll { overflow-y: auto; overscroll-behavior: contain; min-height: 0; }

  .od-rail { display: flex; gap: var(--od-gap, 8px); overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none;
             padding-inline: var(--od-rail-pad, 16px); scroll-padding-inline: var(--od-rail-pad, 16px); }
  .od-rail::-webkit-scrollbar { display: none; }
  :where(.od-rail) > :where(*) { flex: none; scroll-snap-align: start; }
  :where(.od-rail) > :where(:last-child) { margin-inline-end: var(--od-rail-pad, 16px); }

  .od-spacer { flex: none; visibility: hidden; pointer-events: none; }
  .od-touch  { min-width: 44px; min-height: 44px; }
}
:root [hidden]:where(:not([hidden="until-found" i])) { display: none; }
/* /OD-LAYOUT-PRIMITIVES v1 */

/* ---------- type ---------- */

@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url("../fonts/bricolage-grotesque-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url("../fonts/bricolage-grotesque-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/instrument-sans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/instrument-sans-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../fonts/jetbrains-mono-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../fonts/jetbrains-mono-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- tokens ---------- */

:root {
  --paper: #050505;
  --paper-2: #0a0a09;
  --ink: #f7f8f4;
  --ink-soft: #c9cbc1;
  --muted: #a4a69d;
  --lime: #b7ff00;
  --lime-dim: #8fc400;
  --line: rgba(247, 248, 244, 0.15);
  --line-strong: rgba(247, 248, 244, 0.32);
  --error: #ff9d8f;

  --font-display: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Instrument Sans", "Segoe UI", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --pad: clamp(20px, 4.2vw, 64px);
  --max: 1560px;
  --header-h: 76px;
  --sec-y: clamp(72px, 9vw, 140px);
  --col-gap: clamp(20px, 2.4vw, 40px);

  --ease: cubic-bezier(0.22, 0.61, 0.28, 1);
}

/* ---------- base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: clamp(16px, 0.35vw + 15px, 17px);
  line-height: 1.62;
  font-weight: 400;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-variation-settings: "opsz" 48;
  letter-spacing: -0.032em;
  line-height: 1.02;
  text-wrap: balance;
}

p { margin: 0; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }

::selection { background: var(--lime); color: #050505; }

:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 3px;
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 200;
  padding: 12px 18px;
  background: var(--lime);
  color: #050505;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  transform: translateY(-160%);
  transition: transform 180ms var(--ease);
}
.skip-link:focus-visible { transform: translateY(0); }

html.menu-open,
html.menu-open body { overflow: hidden; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ---------- small shared type ---------- */

.label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.label::before {
  content: "";
  inline-size: 5px;
  block-size: 5px;
  background: var(--lime);
  flex: none;
}

.sec-label { color: var(--muted); }

/* ---------- buttons ---------- */

.btn {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  --btn-bd: var(--line-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 26px;
  min-height: 52px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 1px solid var(--btn-bd);
  border-radius: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 180ms var(--ease), color 180ms var(--ease),
              border-color 180ms var(--ease), transform 180ms var(--ease);
}

.btn-primary {
  --btn-bg: var(--lime);
  --btn-fg: #050505;
  --btn-bd: var(--lime);
  font-weight: 600;
}
.btn-primary:hover { --btn-bg: var(--ink); --btn-bd: var(--ink); }
.btn-primary:active { transform: translateY(1px); }
.btn-primary:disabled { --btn-bg: #2c2e26; --btn-fg: #9a9c93; --btn-bd: #2c2e26; cursor: progress; }

.btn-ghost:hover { --btn-bd: var(--ink); }

.btn .od-icon { --od-icon-size: 13px; transition: transform 200ms var(--ease); }
.btn:hover .od-icon { transform: translate(2px, -2px); }

.btn-sm { min-height: 40px; padding: 11px 16px; font-size: 10px; letter-spacing: 0.14em; }

.link-line {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-block: 4px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  border-bottom: 1px solid var(--line-strong);
  transition: color 160ms var(--ease), border-color 160ms var(--ease);
}
.link-line:hover { color: var(--lime); border-color: var(--lime); }
.link-line .od-icon { --od-icon-size: 12px; }

/* ---------- header ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  height: var(--header-h);
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-mark { width: 30px; height: auto; flex: none; }
.brand-type { display: flex; flex-direction: column; gap: 3px; }
.brand-name {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  line-height: 1;
}
.brand-sub {
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.32em;
  line-height: 1;
  color: var(--muted);
}

.nav-list { display: flex; align-items: center; gap: clamp(16px, 2.6vw, 38px); }

.nav-link {
  position: relative;
  display: inline-block;
  padding-block: 6px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 160ms var(--ease);
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--lime);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 220ms var(--ease);
}
.nav-link:hover { color: var(--ink); }
.nav-link:hover::after { transform: scaleX(1); }
.nav-link.is-current { color: var(--ink); }

.header-actions { display: flex; align-items: center; gap: 12px; }

.menu-btn {
  display: none;
  align-items: center;
  gap: 10px;
  min-width: 44px;
  min-height: 44px;
  padding: 0 2px;
  background: none;
  border: 0;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
}

.menu-btn-bars { display: grid; gap: 5px; width: 22px; }
.menu-btn-bars span { display: block; height: 1px; background: currentColor; }

/* ---------- nav dialog ---------- */

.nav-dialog {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: var(--paper);
  color: var(--ink);
  overflow-y: auto;
}
.nav-dialog::backdrop { background: var(--paper); }

.dlg-inner {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding: 0 var(--pad) calc(32px + env(safe-area-inset-bottom));
}

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

.dlg-close {
  min-width: 44px;
  min-height: 44px;
  background: none;
  border: 0;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
}

.dlg-links { display: flex; flex-direction: column; }
.dlg-link {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-block: 18px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: clamp(28px, 9vw, 44px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--ink);
}
.dlg-link:hover { color: var(--lime); }
.dlg-link span {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.16em;
  color: var(--muted);
}
.dlg-foot { margin-top: auto; display: flex; flex-direction: column; gap: 16px; }
.dlg-foot .btn { width: 100%; }

/* ---------- hero ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-rows: 1fr auto;
  padding-top: var(--header-h);
}

.hero-main {
  position: relative;
  display: flex;
  align-items: center;
  padding-block: clamp(48px, 11vh, 128px);
}

.hero-copy { position: relative; z-index: 3; max-width: min(780px, 60vw); }

.hero-eyebrow { margin-bottom: clamp(20px, 3vh, 30px); }

.hero-title {
  font-size: clamp(46px, 7.2vw, 112px);
  font-weight: 600;
  line-height: 0.94;
  letter-spacing: -0.04em;
  font-variation-settings: "opsz" 96;
}

.hero-lead {
  margin-top: clamp(20px, 3.4vh, 34px);
  max-width: 46ch;
  font-size: clamp(17px, 0.62vw + 14px, 22px);
  line-height: 1.55;
  color: var(--muted);
}

.hero-actions {
  margin-top: clamp(28px, 4.4vh, 46px);
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.4vw, 28px);
  flex-wrap: wrap;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(90deg, #050505 0%, #050505 50%, rgba(5, 5, 5, 0.72) 59%, rgba(5, 5, 5, 0) 71%);
}

.hero-foot {
  position: relative;
  z-index: 3;
  border-top: 1px solid var(--line);
}

.hero-foot-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px 32px;
  flex-wrap: wrap;
}

.foot-static {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 26px;
  padding-block: 18px;
}
.foot-static li {
  display: inline-flex;
  align-items: baseline;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.foot-static b { font-weight: 500; color: var(--lime-dim); }

.toc-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 18px 0;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 160ms var(--ease);
}
.toc-link .od-icon { --od-icon-size: 14px; transition: transform 220ms var(--ease); }
.toc-link:hover { color: var(--lime); }
.toc-link:hover .od-icon { transform: translateY(3px); }

/* ---------- 3d mark ---------- */

.hero-mark {
  position: absolute;
  z-index: 1;
  top: 53%;
  right: -4vw;
  width: min(58vw, 800px);
  transform: translateY(-50%);
  pointer-events: none;
}

.mark-scene { perspective: 1300px; perspective-origin: 50% 42%; }

.mark-body {
  position: relative;
  width: 100%;
  aspect-ratio: 551 / 496;
  transform-style: preserve-3d;
  transform: translateZ(var(--mark-pivot, 56px)) rotateX(var(--rx, 6deg)) rotateY(var(--ry, -20deg));
  will-change: transform;
}

.js .mark-scene { opacity: 0; transition: opacity 900ms var(--ease); }
.js .mark-scene.is-in { opacity: 1; }

.mark-layer { position: absolute; inset: 0; }
.mark-layer svg { width: 100%; height: 100%; overflow: visible; }

/* ---------- sections ---------- */

.section { position: relative; padding-block: var(--sec-y); }
.section + .section, .section--ruled { border-top: 1px solid var(--line); }

.sec-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: var(--col-gap);
  align-items: end;
  padding-bottom: clamp(32px, 4vw, 56px);
}

.sec-title {
  margin-top: 22px;
  font-size: clamp(30px, 4.4vw, 60px);
  max-width: 22ch;
}

.sec-intro {
  max-width: 42ch;
  font-size: clamp(15px, 0.4vw + 13px, 17px);
  line-height: 1.6;
  color: var(--muted);
  justify-self: end;
  padding-bottom: 6px;
}

/* capabilities */

.caps { border-top: 1px solid var(--line); }

.cap {
  display: grid;
  grid-template-columns: 64px minmax(0, 1.05fr) minmax(0, 1.35fr) minmax(0, 0.85fr) 32px;
  gap: var(--col-gap);
  align-items: start;
  padding-block: clamp(28px, 3.2vw, 46px);
  border-bottom: 1px solid var(--line);
  transition: border-color 220ms var(--ease);
}
.cap:hover { border-bottom-color: var(--line-strong); }

.cap-idx {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--muted);
  padding-top: 0.55em;
  transition: color 200ms var(--ease);
}
.cap:hover .cap-idx { color: var(--lime); }

.cap-title {
  font-family: var(--font-display);
  font-size: clamp(24px, 2.5vw, 36px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.028em;
  transition: transform 260ms var(--ease);
}
.cap:hover .cap-title { transform: translateX(8px); }

.cap-desc {
  font-size: clamp(15px, 0.35vw + 13px, 17px);
  line-height: 1.6;
  color: var(--muted);
  max-width: 46ch;
}

.cap-tags {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.cap-tags li { display: flex; gap: 8px; }
.cap-tags li::before { content: "/"; color: var(--lime-dim); }

.cap-arrow {
  --od-icon-size: 15px;
  color: var(--muted);
  opacity: 0;
  transform: translate(-6px, 6px);
  transition: opacity 220ms var(--ease), transform 220ms var(--ease), color 220ms var(--ease);
  margin-top: 0.5em;
}
.cap:hover .cap-arrow { opacity: 1; transform: translate(0, 0); color: var(--lime); }

/* process */

.process {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}

.step {
  padding: clamp(24px, 2.6vw, 36px) clamp(18px, 2vw, 28px) 0 0;
  border-right: 1px solid var(--line);
}
.step:last-child { border-right: 0; }
.step + .step { padding-left: clamp(18px, 2vw, 28px); }

.step-idx {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--lime-dim);
}

.step-title {
  margin-top: clamp(48px, 7vw, 96px);
  font-family: var(--font-display);
  font-size: clamp(20px, 1.9vw, 27px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.1;
}

.step-text {
  margin-top: 12px;
  font-size: 15px;
  line-height: 1.58;
  color: var(--muted);
  max-width: 34ch;
}

.proc-note {
  margin-top: clamp(28px, 3vw, 40px);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

/* studio */

.studio {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}

.studio-lead {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.2vw, 44px);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.03em;
  max-width: 26ch;
  text-wrap: balance;
}

.studio-body { margin-top: clamp(28px, 3vw, 40px); display: grid; gap: 18px; max-width: 56ch; }
.studio-body p { color: var(--muted); }
.studio-body p strong { color: var(--ink); font-weight: 500; }

.facts { border-top: 1px solid var(--line); }
.fact {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-block: 16px;
  border-bottom: 1px solid var(--line);
}
.fact-k {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.fact-v {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--ink);
  text-align: right;
}

/* contact */

.contact {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 0.55fr);
  gap: clamp(36px, 6vw, 96px);
  align-items: start;
}

.form { max-width: 620px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--col-gap); }

.field { margin-bottom: clamp(22px, 2.4vw, 30px); }

.field-label {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.field-label .req { color: var(--lime-dim); }

.input {
  display: block;
  width: 100%;
  padding: 10px 0 12px;
  background: transparent;
  color: var(--ink);
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  border-radius: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  transition: border-color 180ms var(--ease), box-shadow 180ms var(--ease);
  -webkit-appearance: none;
  appearance: none;
}
.input::placeholder { color: #8c8e85; }
.input:hover { border-bottom-color: var(--ink-soft); }
.input:focus {
  outline: none;
  border-bottom-color: var(--lime);
  box-shadow: 0 1px 0 0 var(--lime);
}
.input[aria-invalid="true"] {
  border-bottom-color: var(--error);
  box-shadow: 0 1px 0 0 var(--error);
}

textarea.input { resize: vertical; min-height: 116px; padding-top: 8px; }

.select-wrap { position: relative; }
.select { padding-right: 28px; cursor: pointer; }
.select option { background: #0b0b08; color: var(--ink); }
.select-arrow {
  position: absolute;
  right: 2px;
  top: calc(50% - 2px);
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--muted);
}

.field-error {
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  line-height: 1.45;
  letter-spacing: 0.04em;
  color: var(--error);
}

.form-summary {
  margin-bottom: 26px;
  padding: 14px 16px;
  border: 1px solid var(--error);
  font-size: 14px;
  color: var(--ink);
}
.form-summary strong {
  display: block;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--error);
  margin-bottom: 8px;
}
.form-summary ul { display: grid; gap: 4px; }
.form-summary a {
  color: var(--ink);
  border-bottom: 1px solid var(--line-strong);
}
.form-summary a:hover { border-color: var(--lime); }

.form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.form-foot {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  line-height: 1.6;
  color: var(--muted);
  max-width: 34ch;
}

.success {
  border-top: 1px solid var(--lime);
  padding-top: clamp(24px, 3vw, 36px);
  max-width: 560px;
}
.success-title {
  font-family: var(--font-display);
  font-size: clamp(24px, 2.6vw, 34px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.success p { margin-top: 14px; color: var(--muted); max-width: 42ch; }
.success p b { color: var(--ink); font-weight: 500; }
.success .btn { margin-top: 26px; }

.contact-aside { border-top: 1px solid var(--line); padding-top: 22px; }
.aside-block + .aside-block { margin-top: 32px; }
.aside-title {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}
.aside-mail {
  font-family: var(--font-display);
  font-size: clamp(17px, 1.35vw, 21px);
  letter-spacing: -0.01em;
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 4px;
  display: inline-block;
  transition: color 160ms var(--ease), border-color 160ms var(--ease);
  overflow-wrap: anywhere;
}
.aside-mail:hover { color: var(--lime); border-color: var(--lime); }
.aside-note { margin-top: 12px; font-size: 14px; line-height: 1.6; color: var(--muted); }

/* footer */

.site-footer {
  border-top: 1px solid var(--line);
  padding-top: clamp(48px, 6vw, 80px);
  padding-bottom: 28px;
}

.footer-mark {
  font-family: var(--font-display);
  font-size: clamp(30px, 8.4vw, 128px);
  font-weight: 600;
  font-variation-settings: "opsz" 96;
  line-height: 0.88;
  letter-spacing: -0.045em;
  text-transform: uppercase;
  white-space: nowrap;
}
.footer-mark .accent { color: var(--lime); }

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(2, minmax(0, 0.7fr));
  gap: var(--col-gap);
  margin-top: clamp(40px, 5vw, 64px);
  padding-top: clamp(24px, 3vw, 36px);
  border-top: 1px solid var(--line);
}

.footer-h {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}

.footer-list { display: grid; gap: 2px; }
.footer-list a {
  display: inline-block;
  padding-block: 10px;
  font-size: 15px;
  color: var(--ink);
  border-bottom: 1px solid transparent;
  transition: color 160ms var(--ease), border-color 160ms var(--ease);
  justify-self: start;
}
.footer-list a:hover { color: var(--lime); border-color: var(--lime); }

.footer-blurb { max-width: 32ch; font-size: 15px; line-height: 1.6; color: var(--muted); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: clamp(40px, 5vw, 64px);
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- reveal ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 700ms var(--ease), transform 700ms cubic-bezier(0.2, 0.7, 0.3, 1);
}
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */

@media (max-width: 1180px) {
  .cap { grid-template-columns: 52px minmax(0, 1fr) minmax(0, 1.2fr) minmax(0, 0.8fr) 26px; }
  .hero-copy { max-width: min(700px, 62vw); }
}

@media (max-width: 1024px) {
  .nav, .header-actions .btn { display: none; }
  .menu-btn { display: inline-flex; }

  .hero { min-height: auto; }
  .hero-main { flex-direction: column; align-items: flex-start; padding-block: clamp(40px, 8vh, 72px) 0; }
  .hero-copy { order: 1; max-width: 100%; }
  .hero-mark { order: 2; }
  .hero-scrim { display: none; }
  .hero-mark {
    position: relative;
    top: auto;
    right: auto;
    width: min(84%, 460px);
    margin: clamp(32px, 5vh, 56px) auto 0;
    transform: none;
  }
  .hero-foot { margin-top: clamp(32px, 6vh, 56px); }

  .sec-head { grid-template-columns: 1fr; align-items: start; gap: 22px; }
  .sec-intro { justify-self: start; padding-bottom: 0; }

  .process { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .step:nth-child(2) { border-right: 0; }
  .step:nth-child(-n + 2) { padding-bottom: clamp(24px, 3vw, 36px); }
  .step:nth-child(n + 3) { border-top: 1px solid var(--line); padding-top: clamp(24px, 3vw, 36px); }
  .step:nth-child(3) { padding-left: 0; }

  .studio, .contact { grid-template-columns: 1fr; }
  .studio .facts { margin-top: 8px; }
  .contact-aside { max-width: 420px; }
}

@media (max-width: 760px) {
  :root { --header-h: 64px; }

  .hero-title { font-size: clamp(38px, 10.2vw, 66px); letter-spacing: -0.038em; }
  .hero-actions .btn { flex: 1 1 auto; }

  .hero-foot-inner { flex-direction: column; align-items: stretch; gap: 0; }
  .foot-static { flex-direction: column; align-items: flex-start; gap: 9px; padding: 18px 0 12px; }
  .toc-link {
    justify-content: space-between;
    width: 100%;
    padding: 16px 0;
    border-top: 1px solid var(--line);
  }

  .cap {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 10px var(--col-gap);
    padding-block: 26px;
  }
  .cap-idx { padding-top: 0.25em; }
  .cap-title { font-size: clamp(23px, 6.4vw, 30px); }
  .cap-desc { grid-column: 2; }
  .cap-tags { grid-column: 2; flex-direction: row; flex-wrap: wrap; gap: 6px 16px; }
  .cap-arrow { display: none; }

  .process { grid-template-columns: 1fr; }
  .step, .step + .step { padding: 24px 0; border-right: 0; border-top: 1px solid var(--line); }
  .step:first-child { border-top: 0; padding-top: 0; }
  .step-title { margin-top: 18px; }

  .form-row { grid-template-columns: 1fr; gap: 0; }

  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 8px; }
}

@media (max-width: 420px) {
  .brand-sub { display: none; }
  .form-actions { align-items: stretch; }
  .form-actions .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
  .mark-body { transition: none; }
}
