/* ==========================================================================
   OA2C — site styles
   Brand: #1B1D1F / #141618 / #EAEAEA / #F9F9F9 · Instrument Sans + IBM Plex Mono
   ========================================================================== */

:root {
  --bg: #141618;
  --surface: #1B1D1F;
  --surface-2: #212427;
  --line: rgba(234, 234, 234, 0.1);
  --line-strong: rgba(234, 234, 234, 0.26);
  --text: #EAEAEA;
  --text-dim: #A5A8AC;
  --text-faint: #74787C;

  --paper: #F9F9F9;
  --paper-2: #EAEAEA;
  --ink: #1B1D1F;
  --ink-dim: #55595D;
  --ink-line: rgba(27, 29, 31, 0.12);

  --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --gutter: clamp(16px, 4vw, 48px);
  --max: 1360px;
  --header-h: 72px;

  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
  --ease-io: cubic-bezier(0.75, 0, 0.2, 1);
}

*, *::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(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4, p, ol, ul, dl, dd, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }

::selection { background: var(--text); color: var(--bg); }

:focus-visible { outline: 1px solid var(--text); outline-offset: 3px; }

.lucide { width: 16px; height: 16px; stroke-width: 1.5; flex: none; }

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

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ---------- Type helpers ---------- */

.label {
  display: flex; align-items: center; gap: 12px;
  font: 500 12px/1.2 var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.label b { font-weight: 500; color: var(--text); }
.label b::after { content: ""; display: inline-block; width: 28px; height: 1px; background: currentColor; opacity: .4; vertical-align: middle; margin-left: 12px; }

.mono { font-family: var(--mono); }

.h2 {
  font-weight: 600;
  font-size: clamp(36px, 5.4vw, 80px);
  line-height: 0.98;
  letter-spacing: -0.035em;
}

/* ---------- Buttons ---------- */

.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  height: 50px; padding: 0 22px;
  border: 1px solid var(--line-strong);
  font: 500 12px/1 var(--mono);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text);
  white-space: nowrap;
  transition: background-color .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
}
.btn:hover { border-color: var(--text); }
.btn .roll { display: block; height: 1.25em; line-height: 1.25; overflow: hidden; }
.btn .roll > span { display: block; transition: transform .5s var(--ease); }
.btn .roll > span::after { content: attr(data-text); display: block; }
.btn:hover .roll > span { transform: translateY(-50%); }
.btn .lucide { transition: transform .45s var(--ease); }
.btn:hover .lucide.lucide-arrow-up-right { transform: translate(2px, -2px); }
.btn:hover .lucide.lucide-arrow-down { transform: translateY(3px); }
.btn:hover .lucide.lucide-arrow-right { transform: translateX(3px); }

.btn--solid { background: var(--text); color: var(--bg); border-color: var(--text); }
.btn--solid:hover { background: #fff; border-color: #fff; }
.btn--sm { height: 40px; padding: 0 16px; }

.btn--ink { color: var(--ink); border-color: rgba(27,29,31,.3); }
.btn--ink:hover { border-color: var(--ink); }

/* ---------- Page curtain transition ---------- */

.curtain {
  position: fixed; inset: 0; z-index: 200;
  background: var(--surface);
  transform: scaleY(0);
  transform-origin: 50% 0;
  pointer-events: none;
  display: flex; align-items: flex-end;
  padding: var(--gutter);
}
.curtain-label {
  font: 500 12px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--text-faint);
  opacity: 0; transition: opacity .2s;
}
.js .curtain { animation: curtain-out .8s var(--ease-io) .05s both; }
.js.is-leaving .curtain { animation: curtain-in .45s var(--ease-io) both; transform-origin: 50% 100%; }
.js.is-leaving .curtain-label { opacity: 1; transition-delay: .2s; }
@keyframes curtain-out { from { transform: scaleY(1); } to { transform: scaleY(0); } }
@keyframes curtain-in  { from { transform: scaleY(0); } to { transform: scaleY(1); } }

/* ---------- Header ---------- */

.site-header {
  position: fixed; inset: 0 0 auto; z-index: 60;
  border-bottom: 1px solid transparent;
  transition: background-color .4s var(--ease), border-color .4s var(--ease), transform .5s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(20, 22, 24, 0.86);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--line);
}
.site-header.is-hidden { transform: translateY(-100%); }

.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--header-h); }

.logo { display: block; flex: none; }
.logo img { height: 34px; width: auto; }

.nav { display: flex; gap: 32px; }
.nav a {
  position: relative;
  font: 500 12px/1 var(--mono); letter-spacing: .09em; text-transform: uppercase;
  color: var(--text-dim);
  padding: 6px 0;
  transition: color .3s;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: 100% 50%; transition: transform .45s var(--ease);
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: 0 50%; }

.header-meta { display: flex; align-items: center; gap: 20px; }
.clock { font: 12px/1 var(--mono); letter-spacing: .06em; color: var(--text-faint); font-variant-numeric: tabular-nums; }

.menu-btn {
  display: none; width: 40px; height: 40px; align-items: center; justify-content: center;
  border: 1px solid var(--line-strong);
}
.menu-btn .lucide { width: 18px; height: 18px; }

@media (max-width: 960px) {
  .nav, .clock { display: none; }
  .menu-btn { display: inline-flex; }
}
@media (max-width: 520px) {
  .header-meta .btn { display: none; }
  .logo img { height: 30px; }
}

/* Mobile menu */
.mobile-menu {
  position: fixed; inset: 0; z-index: 70;
  background: var(--surface);
  display: flex; flex-direction: column;
  clip-path: inset(0 0 100% 0);
  transition: clip-path .7s var(--ease-io);
  visibility: hidden;
}
.mobile-menu.is-open { clip-path: inset(0 0 0 0); visibility: visible; }
.mobile-menu-top { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); padding: 0 var(--gutter); border-bottom: 1px solid var(--line); }
.mobile-menu nav { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 24px var(--gutter); }
.mobile-menu nav a {
  display: flex; align-items: baseline; gap: 16px;
  padding: 14px 0; border-bottom: 1px solid var(--line);
  font-size: clamp(34px, 10vw, 56px); font-weight: 600; letter-spacing: -.03em; line-height: 1.05;
  opacity: 0; transform: translateY(24px);
  transition: opacity .5s var(--ease), transform .6s var(--ease);
}
.mobile-menu nav a span { font: 500 12px var(--mono); color: var(--text-faint); letter-spacing: .08em; }
.mobile-menu.is-open nav a { opacity: 1; transform: none; }
.mobile-menu.is-open nav a:nth-child(1) { transition-delay: .25s; }
.mobile-menu.is-open nav a:nth-child(2) { transition-delay: .31s; }
.mobile-menu.is-open nav a:nth-child(3) { transition-delay: .37s; }
.mobile-menu.is-open nav a:nth-child(4) { transition-delay: .43s; }
.mobile-menu-foot { padding: 20px var(--gutter) 28px; display: flex; justify-content: space-between; gap: 16px; font: 12px var(--mono); color: var(--text-faint); letter-spacing: .06em; }
.mobile-menu-foot a { color: var(--text); }

/* ---------- Reveal on scroll ---------- */

.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform 1.1s var(--ease); transition-delay: var(--d, 0s); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

.js .line { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.js .line > span { display: block; transform: translateY(108%); transition: transform 1.15s var(--ease); transition-delay: var(--d, 0s); }
.js .is-in .line > span, .js .is-loaded .hero .line > span, .js .is-loaded .page-hero .line > span { transform: none; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding-top: calc(var(--header-h) + 40px);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  isolation: isolate;
}
.hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(to top, var(--bg) 4%, rgba(20,22,24,.72) 34%, rgba(20,22,24,0) 70%),
    linear-gradient(to bottom, rgba(20,22,24,.8), rgba(20,22,24,0) 22%);
}

.reticle { position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0; transition: opacity .4s; }
.hero.has-pointer .reticle { opacity: 1; }
.reticle .rx, .reticle .ry { position: absolute; background: rgba(234,234,234,.16); }
.reticle .rx { left: 0; right: 0; height: 1px; top: var(--y, 50%); }
.reticle .ry { top: 0; bottom: 0; width: 1px; left: var(--x, 50%); }
.reticle .rtag {
  position: absolute; left: var(--x, 50%); top: var(--y, 50%);
  transform: translate(10px, 10px);
  font: 11px/1 var(--mono); letter-spacing: .06em; color: var(--text-dim);
  background: rgba(20,22,24,.75); padding: 5px 7px; border: 1px solid var(--line);
  white-space: nowrap; font-variant-numeric: tabular-nums;
}
.reticle .rbox {
  position: absolute; left: var(--x, 50%); top: var(--y, 50%); width: 28px; height: 28px; margin: -14px 0 0 -14px;
  background:
    linear-gradient(var(--text),var(--text)) 0 0/7px 1px no-repeat, linear-gradient(var(--text),var(--text)) 0 0/1px 7px no-repeat,
    linear-gradient(var(--text),var(--text)) 100% 0/7px 1px no-repeat, linear-gradient(var(--text),var(--text)) 100% 0/1px 7px no-repeat,
    linear-gradient(var(--text),var(--text)) 0 100%/7px 1px no-repeat, linear-gradient(var(--text),var(--text)) 0 100%/1px 7px no-repeat,
    linear-gradient(var(--text),var(--text)) 100% 100%/7px 1px no-repeat, linear-gradient(var(--text),var(--text)) 100% 100%/1px 7px no-repeat;
}

.hero-kicker { margin-bottom: clamp(20px, 3vw, 36px); }
.hero-kicker .dot { width: 7px; height: 7px; background: var(--text); border-radius: 50%; box-shadow: 0 0 0 0 rgba(234,234,234,.5); animation: ping 2.4s var(--ease) infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(234,234,234,.45); } 70%,100% { box-shadow: 0 0 0 9px rgba(234,234,234,0); } }

.hero-title {
  font-weight: 600;
  font-size: clamp(44px, 12vw, 196px);
  line-height: .86;
  letter-spacing: -.05em;
  text-transform: uppercase;
  margin-left: -.04em;
}
.hero-title .line:nth-child(2) > span { --d: .12s; }
.hero-title .indent { padding-left: 1.1em; }
.hero-title .muted { color: var(--text-faint); }

.hero-grid {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px;
  margin-top: clamp(32px, 5vw, 64px);
  padding-bottom: clamp(28px, 4vw, 48px);
  align-items: end;
}
.hero-disciplines { grid-column: 1 / span 5; border-top: 1px solid var(--line); }
.hero-disciplines li {
  display: flex; gap: 18px; align-items: baseline;
  padding: 11px 0; border-bottom: 1px solid var(--line);
  font: 500 13px/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--text-dim);
}
.hero-disciplines li span { color: var(--text-faint); font-size: 11px; }
.hero-copy { grid-column: 8 / span 5; }
.hero-copy p { font-size: clamp(17px, 1.4vw, 20px); line-height: 1.5; color: var(--text-dim); max-width: 40ch; }
.hero-copy p strong { color: var(--text); font-weight: 500; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.js .hero-fade { opacity: 0; transform: translateY(16px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); transition-delay: var(--d, .5s); }
.js .is-loaded .hero-fade { opacity: 1; transform: none; }

.hero-bar {
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  border-top: 1px solid var(--line);
  padding-top: 16px; padding-bottom: 18px;
  font: 11px/1.2 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--text-faint);
}
.scroll-cue { display: flex; align-items: center; gap: 12px; }
.scroll-cue i { position: relative; display: block; width: 1px; height: 26px; background: var(--line); overflow: hidden; }
.scroll-cue i::after { content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--text); animation: cue 2s var(--ease-io) infinite; }
@keyframes cue { to { top: 100%; } }

@media (max-width: 900px) {
  .hero-disciplines { grid-column: 1 / -1; order: 2; }
  .hero-copy { grid-column: 1 / -1; }
  .hero-bar .hide-sm { display: none; }
}

/* ---------- Ticker ---------- */

.ticker { overflow: hidden; border-bottom: 1px solid var(--line); padding: 20px 0; background: var(--bg); }
.ticker-track { display: flex; width: max-content; animation: ticker 48s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-track span {
  display: flex; align-items: center; gap: 32px; padding-right: 32px;
  font: 500 13px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--text-dim);
  white-space: nowrap;
}
.ticker-track span::after { content: ""; width: 6px; height: 6px; border: 1px solid var(--text-faint); transform: rotate(45deg); }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */

.section { padding: clamp(88px, 12vw, 168px) 0; position: relative; }
.section + .section { border-top: 1px solid var(--line); }
.section-head { display: grid; grid-template-columns: repeat(12, minmax(0,1fr)); gap: 24px; margin-bottom: clamp(40px, 6vw, 80px); align-items: end; }
.section-head .label { grid-column: 1 / span 3; align-self: start; padding-top: .6em; }
.section-head .h2 { grid-column: 4 / -1; }
@media (max-width: 900px) {
  .section-head { grid-template-columns: 1fr; gap: 20px; }
  .section-head .label, .section-head .h2 { grid-column: 1 / -1; }
}

/* About */
.statement {
  font-size: clamp(30px, 4.4vw, 66px);
  line-height: 1.06;
  letter-spacing: -.032em;
  font-weight: 500;
  max-width: 22ch;
}
.statement .w { opacity: .16; transition: opacity .35s linear; }
.statement .w.on { opacity: 1; }
.no-js .statement .w, .reduce .statement .w { opacity: 1; }

.about .section-head { margin-bottom: 0; }
.about-body { display: grid; grid-template-columns: repeat(12, minmax(0,1fr)); gap: 24px; margin-top: clamp(48px, 7vw, 96px); }
.about-col { grid-column: span 4; color: var(--text-dim); }
.about-col p + p { margin-top: 1em; }
.about-col:first-child { grid-column: 4 / span 4; }
.about-list { grid-column: 9 / span 4; border-top: 1px solid var(--line); }
.about-list li {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 13px 0; border-bottom: 1px solid var(--line);
  font-size: 15px; color: var(--text);
}
.about-list li span { font: 11px var(--mono); color: var(--text-faint); letter-spacing: .08em; }
.about-list-title { font: 500 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--text-faint); padding: 0 0 12px; border: 0 !important; }

.stats { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); margin-top: clamp(56px, 8vw, 112px); border-top: 1px solid var(--line); }
.stat { padding: 28px 24px 4px 0; border-right: 1px solid var(--line); }
.stat + .stat { padding-left: 24px; }
.stat:last-child { border-right: 0; }
.stat-num { font-weight: 600; font-size: clamp(48px, 6.4vw, 96px); line-height: 1; letter-spacing: -.045em; font-variant-numeric: tabular-nums; }
.stat-num small { font-size: .5em; letter-spacing: -.02em; color: var(--text-dim); margin-left: .05em; }
.stat p { margin-top: 14px; color: var(--text-dim); font-size: 15px; max-width: 28ch; }

@media (max-width: 900px) {
  .about-body { grid-template-columns: 1fr; }
  .about-col, .about-col:first-child, .about-list { grid-column: 1 / -1; }
  .stats { grid-template-columns: 1fr; }
  .stat, .stat + .stat { border-right: 0; border-bottom: 1px solid var(--line); padding: 24px 0; }
}

/* ---------- Capabilities ---------- */

.cap {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px);
  padding: clamp(56px, 8vw, 112px) 0;
  border-top: 1px solid var(--line);
}
.cap:last-child { padding-bottom: 0; }
.cap > .figure, .cap > .process { align-self: start; }
.cap-head { position: sticky; top: calc(var(--header-h) + 32px); align-self: start; }
.cap-index { display: flex; justify-content: space-between; font: 500 12px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--text-faint); }
.cap-index b { color: var(--text); font-weight: 500; }
.cap-title { font-weight: 600; font-size: clamp(34px, 4.2vw, 62px); line-height: .98; letter-spacing: -.035em; margin: 22px 0 22px; }
.cap-text { color: var(--text-dim); max-width: 46ch; }

.spec { margin-top: 36px; border-top: 1px solid var(--line); }
.spec li {
  display: grid; grid-template-columns: 24px 1fr auto; gap: 14px; align-items: center;
  padding: 13px 0; border-bottom: 1px solid var(--line);
  font-size: 15px;
  transition: padding-left .4s var(--ease), color .3s;
}
.spec li .lucide { color: var(--text-faint); transition: color .3s; }
.spec li em { font: normal 11px var(--mono); color: var(--text-faint); letter-spacing: .08em; }
.spec li:hover { padding-left: 8px; }
.spec li:hover .lucide { color: var(--text); }

@media (max-width: 960px) {
  .cap { grid-template-columns: 1fr; }
  .cap-head { position: static; }
}

/* Figures */
.figure { position: relative; border: 1px solid var(--line); background: var(--surface); }
.figure-media { position: relative; overflow: hidden; }
.figure-media img { width: 100%; height: auto; }
.figure--photo .figure-media img { filter: grayscale(1) contrast(1.08) brightness(.82); transform: scale(1.04); transition: filter 1s var(--ease), transform 1.6s var(--ease); }
.figure--photo.is-in .figure-media img { transform: scale(1); }
.figure--photo:hover .figure-media img { filter: grayscale(0) contrast(1) brightness(.92); }
.figure-media svg.overlay { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.figcap {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 12px 16px; border-top: 1px solid var(--line);
  font: 11px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--text-faint);
}
.figcap b { color: var(--text-dim); font-weight: 500; }

/* drawn strokes */
.draw { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.6s var(--ease-io); transition-delay: var(--d, .2s); }
.is-in .draw { stroke-dashoffset: 0; }
.fade-in { opacity: 0; transition: opacity .6s var(--ease); transition-delay: var(--d, 1s); }
.is-in .fade-in { opacity: 1; }

.scanline {
  position: absolute; left: 0; right: 0; top: 0; height: 18%;
  background: linear-gradient(to bottom, rgba(234,234,234,0), rgba(234,234,234,.12) 85%, rgba(234,234,234,.5) 100%);
  border-bottom: 1px solid rgba(234,234,234,.7);
  transform: translateY(-110%); opacity: 0; pointer-events: none;
}
.is-in .scanline { animation: scan 2.2s var(--ease-io) .3s 1 both; }
@keyframes scan { 0% { transform: translateY(-110%); opacity: 1; } 90% { opacity: 1; } 100% { transform: translateY(560%); opacity: 0; } }

/* Process board */
.process { border: 1px solid var(--line); background: var(--surface); }
.process-head { display: flex; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--line); font: 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--text-faint); }
.process ol { position: relative; padding: 8px 18px 8px 58px; }
.process ol::before, .process ol::after { content: ""; position: absolute; left: 30px; top: 34px; bottom: 34px; width: 1px; background: var(--line-strong); }
.process ol::after { background: var(--text); transform-origin: 50% 0; transform: scaleY(var(--p, 0)); }
.step { position: relative; padding: 22px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 1fr auto; gap: 6px 20px; }
.step:last-child { border-bottom: 0; }
.step::before {
  content: ""; position: absolute; left: -32px; top: 29px; width: 9px; height: 9px;
  background: var(--surface); border: 1px solid var(--line-strong); transform: rotate(45deg);
  transition: background-color .4s, border-color .4s;
}
.step.on::before { background: var(--text); border-color: var(--text); }
.step h4 { font-size: clamp(18px, 1.6vw, 22px); font-weight: 500; letter-spacing: -.01em; line-height: 1.3; display: flex; align-items: center; gap: 12px; color: var(--text-dim); transition: color .4s; }
.step.on h4 { color: var(--text); }
.step p { grid-column: 1 / -1; color: var(--text-faint); font-size: 15px; max-width: 52ch; transition: color .4s; }
.step.on p { color: var(--text-dim); }
.step em { font: normal 11px var(--mono); letter-spacing: .08em; color: var(--text-faint); padding-top: 6px; }

/* Paper (technical drawing) figure */
.figure--paper { background: var(--paper-2); border-color: var(--paper-2); color: var(--ink); }
.figure--paper .figure-media {
  background-color: var(--paper-2);
  background-image:
    linear-gradient(rgba(27,29,31,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(27,29,31,.07) 1px, transparent 1px);
  background-size: 28px 28px;
  background-position: -1px -1px;
  padding: clamp(16px, 3vw, 40px);
}
.figure--paper .figure-media .draw-wrap { position: relative; max-width: 560px; margin: 0 auto; }
.figure--paper .figure-media img { mix-blend-mode: multiply; }
.figure--paper .figcap { border-top-color: var(--ink-line); color: var(--ink-dim); }
.figure--paper .figcap b { color: var(--ink); }

/* ---------- Clients ---------- */

.rows { border-top: 1px solid var(--line); }
.row {
  position: relative;
  display: grid; grid-template-columns: 80px minmax(0, 5fr) minmax(0, 5fr) 40px; gap: 24px; align-items: center;
  padding: clamp(22px, 3vw, 36px) 0;
  border-bottom: 1px solid var(--line);
  isolation: isolate;
}
.row::before {
  content: ""; position: absolute; inset: 0 calc(var(--gutter) * -1); z-index: -1; background: var(--surface);
  transform: scaleY(0); transform-origin: 50% 100%; transition: transform .55s var(--ease);
}
.row:hover::before { transform: scaleY(1); }
.row-idx { font: 12px var(--mono); color: var(--text-faint); letter-spacing: .08em; }
.row h3 { font-weight: 500; font-size: clamp(24px, 2.8vw, 40px); line-height: 1.08; letter-spacing: -.025em; transition: transform .55s var(--ease); }
.row:hover h3 { transform: translateX(10px); }
.row p { color: var(--text-dim); font-size: 15px; max-width: 46ch; }
.row .lucide { width: 22px; height: 22px; color: var(--text-faint); justify-self: end; transition: color .3s, transform .55s var(--ease); }
.row:hover .lucide { color: var(--text); transform: rotate(45deg); }
@media (max-width: 760px) {
  .row { grid-template-columns: 1fr auto; gap: 10px 16px; }
  .row-idx { grid-column: 1 / -1; }
  .row h3 { grid-column: 1; }
  .row .lucide { grid-column: 2; grid-row: 2; }
  .row p { grid-column: 1 / -1; }
}

/* ---------- CTA ---------- */

.cta { background: var(--paper); color: var(--ink); }
.section + .cta { border-top: 0; }
.cta .label { color: var(--ink-dim); }
.cta .label b { color: var(--ink); }
.cta-title { font-weight: 600; font-size: clamp(44px, 9vw, 150px); line-height: .9; letter-spacing: -.05em; margin-top: clamp(28px, 4vw, 48px); }
.cta-title .muted { color: #9A9DA1; }
.cta-foot { display: grid; grid-template-columns: repeat(12, minmax(0,1fr)); gap: 24px; margin-top: clamp(48px, 7vw, 96px); padding-top: 28px; border-top: 1px solid var(--ink-line); align-items: end; }
.cta-mail { grid-column: 1 / span 7; }
.cta-mail small { display: block; font: 500 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-dim); margin-bottom: 12px; }
.mail-line { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.mail-line a { font-size: clamp(22px, 3vw, 40px); font-weight: 500; letter-spacing: -.02em; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .6s var(--ease); padding-bottom: 2px; }
.mail-line a:hover { background-size: 100% 1px; }
.copy-btn {
  display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px;
  border: 1px solid var(--ink-line); font: 500 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-dim);
  transition: border-color .3s, color .3s;
}
.copy-btn:hover { border-color: var(--ink); color: var(--ink); }
.cta-actions { grid-column: 9 / span 4; display: flex; justify-content: flex-end; }
.cta .btn--solid { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.cta .btn--solid:hover { background: #000; border-color: #000; }
@media (max-width: 900px) {
  .cta-mail, .cta-actions { grid-column: 1 / -1; }
  .cta-actions { justify-content: flex-start; }
}

/* ---------- Footer ---------- */

.site-footer { background: var(--bg); border-top: 1px solid var(--line); padding: clamp(56px, 7vw, 88px) 0 28px; }
.footer-grid { display: grid; grid-template-columns: repeat(12, minmax(0,1fr)); gap: 32px 24px; }
.footer-brand { grid-column: 1 / span 5; }
.footer-brand p { margin-top: 20px; color: var(--text-dim); max-width: 34ch; font-size: 15px; }
.footer-col { grid-column: span 2; }
.footer-col:nth-of-type(2) { grid-column: 7 / span 2; }
.footer-col h4 { font: 500 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 16px; }
.footer-col li + li { margin-top: 10px; }
.footer-col a { color: var(--text-dim); font-size: 15px; display: inline-flex; align-items: center; gap: 6px; transition: color .3s; }
.footer-col a .lucide { width: 13px; height: 13px; opacity: .6; }
.footer-col a:hover { color: var(--text); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: clamp(48px, 6vw, 80px); padding-top: 20px; border-top: 1px solid var(--line); font: 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--text-faint); }
.to-top { display: inline-flex; align-items: center; gap: 8px; }
.to-top:hover { color: var(--text); }
@media (max-width: 900px) {
  .footer-brand { grid-column: 1 / -1; }
  .footer-col, .footer-col:nth-of-type(2) { grid-column: span 4; }
}
@media (max-width: 520px) {
  .footer-col, .footer-col:nth-of-type(2) { grid-column: span 6; }
  .footer-col:last-child { grid-column: 1 / -1; }
}

/* ---------- Inner page hero ---------- */

.page-hero { padding: calc(var(--header-h) + clamp(56px, 9vw, 128px)) 0 clamp(40px, 6vw, 72px); border-bottom: 1px solid var(--line); position: relative; overflow: hidden; }
.page-hero .grid-bg {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 80% 90% at 80% 0%, #000 10%, transparent 70%);
  mask-image: radial-gradient(ellipse 80% 90% at 80% 0%, #000 10%, transparent 70%);
}
.page-hero { isolation: isolate; }
.crumbs { display: flex; gap: 10px; align-items: center; font: 500 12px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--text-faint); }
.crumbs a:hover { color: var(--text); }
.page-title { font-weight: 600; font-size: clamp(46px, 9vw, 140px); line-height: .9; letter-spacing: -.05em; margin-top: clamp(24px, 3vw, 40px); }
.page-meta { display: flex; flex-wrap: wrap; gap: 12px 40px; margin-top: clamp(28px, 4vw, 48px); font: 12px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--text-faint); }
.page-meta b { color: var(--text-dim); font-weight: 500; }

/* ---------- Legal documents ---------- */

.doc { background: var(--paper); color: var(--ink); padding: clamp(56px, 8vw, 112px) 0 clamp(80px, 10vw, 140px); }
.doc-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); }
.toc { position: sticky; top: calc(var(--header-h) + 32px); align-self: start; }
.toc summary { list-style: none; cursor: default; font: 500 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-dim); padding-bottom: 14px; border-bottom: 1px solid var(--ink-line); display: flex; justify-content: space-between; align-items: center; }
.toc summary::-webkit-details-marker { display: none; }
.toc summary .lucide { display: none; }
.toc ol { counter-reset: toc; padding-top: 6px; }
.toc a {
  position: relative; display: block; padding: 8px 0 8px 18px;
  font-size: 14px; line-height: 1.35; color: var(--ink-dim);
  transition: color .3s, padding-left .4s var(--ease);
}
.toc a::before { content: ""; position: absolute; left: 0; top: 50%; width: 7px; height: 1px; background: currentColor; opacity: .5; transition: width .4s var(--ease), opacity .3s; }
.toc a:hover, .toc a.is-active { color: var(--ink); }
.toc a.is-active { padding-left: 24px; }
.toc a.is-active::before { width: 14px; opacity: 1; }

.prose { max-width: 72ch; font-size: 17px; line-height: 1.7; color: #33363A; }
.prose > * + * { margin-top: 1.1em; }
.prose .lead { font-size: clamp(19px, 1.7vw, 23px); line-height: 1.5; color: var(--ink); letter-spacing: -.01em; }
.prose h2 {
  display: flex; gap: 16px; align-items: baseline;
  font-size: clamp(24px, 2.4vw, 32px); line-height: 1.15; letter-spacing: -.02em; font-weight: 600; color: var(--ink);
  margin-top: 2.4em; padding-top: 1.2em; border-top: 1px solid var(--ink-line);
}
.prose h2 span { font: 500 12px var(--mono); letter-spacing: .08em; color: var(--ink-dim); flex: none; transform: translateY(-.3em); }
.prose h3 { font-size: 19px; font-weight: 600; color: var(--ink); margin-top: 1.8em; letter-spacing: -.01em; }
.prose ul li { position: relative; padding-left: 26px; }
.prose ul li + li { margin-top: .6em; }
.prose ul li::before { content: ""; position: absolute; left: 0; top: .82em; width: 12px; height: 1px; background: var(--ink); }
.prose strong { color: var(--ink); font-weight: 600; }
.prose a { color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose a:hover { text-decoration-thickness: 2px; }
.prose dl { border-top: 1px solid var(--ink-line); }
.prose dl div { display: grid; grid-template-columns: 200px 1fr; gap: 20px; padding: 14px 0; border-bottom: 1px solid var(--ink-line); }
.prose dt { font: 500 13px/1.6 var(--mono); letter-spacing: .04em; color: var(--ink); }
.prose .callout { border: 1px solid var(--ink-line); background: #fff; padding: 20px 22px; font-size: 15px; }

@media (max-width: 960px) {
  .doc-layout { grid-template-columns: 1fr; }
  .toc { position: sticky; top: var(--header-h); z-index: 5; background: var(--paper); margin: 0 calc(var(--gutter) * -1); padding: 14px var(--gutter) 0; border-bottom: 1px solid var(--ink-line); transition: top .5s var(--ease); }
  body:has(.site-header.is-hidden) .toc { top: 0; }
  .toc summary { cursor: pointer; border-bottom: 0; }
  .toc summary .lucide { display: block; transition: transform .3s; }
  .toc[open] summary .lucide { transform: rotate(180deg); }
  .toc ol { max-height: 50vh; overflow: auto; padding-bottom: 12px; }
  .prose dl div { grid-template-columns: 1fr; gap: 4px; }
}

/* ---------- Contact page ---------- */

.contact { padding: clamp(56px, 8vw, 112px) 0 clamp(88px, 10vw, 140px); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(40px, 7vw, 112px); }

.form fieldset { border: 0; margin: 0; padding: 0; }
.form-block + .form-block { margin-top: 44px; }
.form-legend { display: flex; gap: 14px; align-items: baseline; font: 500 12px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 18px; padding: 0; }
.form-legend b { color: var(--text); font-weight: 500; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 32px; }
.field { position: relative; display: flex; flex-direction: column; }
.field--full { grid-column: 1 / -1; }
.field label { font: 500 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 6px; transition: color .3s; }
.field input, .field textarea {
  width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--line-strong);
  color: var(--text); font: 400 19px/1.4 var(--sans); padding: 10px 0 12px; border-radius: 0;
  outline: none; transition: border-color .3s;
  background-image: linear-gradient(var(--text), var(--text));
  background-repeat: no-repeat; background-position: 0 100%; background-size: 0 1px;
  transition: background-size .55s var(--ease);
}
.field textarea { resize: vertical; min-height: 140px; }
.field input::placeholder, .field textarea::placeholder { color: #4f5357; }
.field input:focus, .field textarea:focus { background-size: 100% 1px; }
.field:focus-within label { color: var(--text); }
.field.is-invalid input, .field.is-invalid textarea { border-bottom-color: #d86a5c; }
.field .err { font: 11px var(--mono); letter-spacing: .06em; color: #e08a7e; margin-top: 8px; display: none; }
.field.is-invalid .err { display: block; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span {
  display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 16px;
  border: 1px solid var(--line-strong); cursor: pointer; font-size: 15px; color: var(--text-dim);
  transition: background-color .3s var(--ease), color .3s, border-color .3s;
  user-select: none;
}
.chip span .lucide { color: var(--text-faint); transition: color .3s; }
.chip span:hover { border-color: var(--text); color: var(--text); }
.chip input:checked + span { background: var(--text); color: var(--bg); border-color: var(--text); }
.chip input:checked + span .lucide { color: var(--bg); }
.chip input:focus-visible + span { outline: 1px solid var(--text); outline-offset: 3px; }

.form-foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px; margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--line); }
.form-foot p { font-size: 13px; color: var(--text-faint); max-width: 44ch; }
.form-foot p a { color: var(--text-dim); text-decoration: underline; text-underline-offset: 3px; }
.form-status { margin-top: 20px; font: 12px/1.5 var(--mono); letter-spacing: .04em; color: var(--text-dim); min-height: 1.5em; }
.form-status.ok { color: var(--text); }

.aside-card { border: 1px solid var(--line); background: var(--surface); }
.aside-card + .aside-card { margin-top: 16px; }
.aside-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line); font: 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--text-faint); }
.aside-body { padding: 22px 18px; }
.aside-mail { display: block; font-size: clamp(20px, 2vw, 26px); font-weight: 500; letter-spacing: -.015em; word-break: break-all; }
.aside-mail:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.aside-body .copy-btn { margin-top: 16px; border-color: var(--line-strong); color: var(--text-dim); }
.aside-body .copy-btn:hover { border-color: var(--text); color: var(--text); }
.check-list li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; color: var(--text-dim); }
.check-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.check-list li:first-child { padding-top: 0; }
.check-list .lucide { margin-top: 4px; color: var(--text-faint); }
.aside-note { font-size: 14px; color: var(--text-faint); }
.aside-note a { color: var(--text-dim); text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 960px) {
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .fields { grid-template-columns: 1fr; }
  .form-foot .btn { width: 100%; }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  html { scroll-behavior: auto; }
  .ticker-track { animation: none; }
}
