/* Archii — site styles */
:root {
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.2rem + 2.5vw, 3.5rem);
  --text-3xl: clamp(2.5rem, 1rem + 4vw, 5rem);
  --text-hero: clamp(2.75rem, 1rem + 4.8vw, 5.75rem);

  --space-1: .25rem; --space-2: .5rem; --space-3: .75rem; --space-4: 1rem; --space-5: 1.25rem;
  --space-6: 1.5rem; --space-8: 2rem; --space-10: 2.5rem; --space-12: 3rem; --space-16: 4rem;
  --space-20: 5rem; --space-24: 6rem; --space-32: 8rem;

  --color-bg: #0b0b0c;
  --color-surface: #121214;
  --color-surface-2: #17171a;
  --color-line: #232327;
  --color-line-strong: #34343a;
  --color-text: #ededea;
  --color-text-muted: #9a9a96;
  --color-text-faint: #8a8a86;
  --color-accent: #d4ff3a;
  --color-accent-ink: #0b0b0c;
  --color-accent-dim: color-mix(in oklab, var(--color-accent) 14%, transparent);

  --radius-sm: 6px; --radius-md: 10px; --radius-lg: 16px; --radius-full: 999px;
  --ease: cubic-bezier(.16,1,.3,1);
  --transition-interactive: 180ms var(--ease);

  --font-display: 'Cabinet Grotesk', 'Helvetica Neue', sans-serif;
  --font-body: 'Satoshi', 'Helvetica Neue', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', monospace;

  --wrap: 1200px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: none; text-size-adjust: none; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; scroll-behavior: smooth; scroll-padding-top: var(--space-24); }
body { min-height: 100dvh; line-height: 1.6; font-family: var(--font-body); font-size: var(--text-base); color: var(--color-text); background: var(--color-bg); overflow-x: hidden; }
img, svg, video { display: block; max-width: 100%; height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { text-wrap: balance; line-height: 1.05; font-weight: 700; }
p, li { text-wrap: pretty; }
::selection { background: var(--color-accent); color: var(--color-accent-ink); }
:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 3px; border-radius: var(--radius-sm); }
a, button, input, textarea, select { transition: color var(--transition-interactive), background var(--transition-interactive), border-color var(--transition-interactive), opacity var(--transition-interactive), transform var(--transition-interactive); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; } }

/* Background: faint blueprint grid */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(255,255,255,.028) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.028) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 30%, transparent 100%);
}

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(var(--space-16), 9vw, var(--space-32)); border-top: 1px solid var(--color-line); }
.section--flush { border-top: 0; }

/* Mono label */
.label { font-family: var(--font-mono); font-size: var(--text-xs); letter-spacing: .04em; text-transform: uppercase; color: var(--color-text-muted); }
.label--accent { color: var(--color-accent); }
.label .dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--color-accent); margin-right: .55em; vertical-align: .08em; box-shadow: 0 0 0 4px var(--color-accent-dim); }

.h-display { font-family: var(--font-display); font-weight: 800; letter-spacing: -.03em; }
.h-section { font-family: var(--font-display); font-size: var(--text-2xl); font-weight: 800; letter-spacing: -.025em; max-width: 18ch; }
.lede { font-size: var(--text-lg); color: var(--color-text-muted); max-width: 52ch; line-height: 1.5; }
.muted { color: var(--color-text-muted); }
.accent { color: var(--color-accent); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in oklab, var(--color-bg) 82%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid transparent; transition: border-color .3s var(--ease); }
.site-header.is-scrolled { border-bottom-color: var(--color-line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: var(--space-6); }
.brand { display: flex; align-items: center; gap: var(--space-3); }
.brand img { width: 60px; height: 60px; }
.brand span { font-family: var(--font-display); font-weight: 800; font-size: 1.35rem; letter-spacing: -.02em; }
.nav { display: flex; align-items: center; gap: var(--space-1); }
.nav a { font-size: var(--text-sm); color: var(--color-text-muted); padding: var(--space-2) var(--space-3); border-radius: var(--radius-full); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--color-text); }
.nav a[aria-current="page"] { background: var(--color-surface-2); }
.nav-toggle { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; border: 1px solid var(--color-line-strong); border-radius: var(--radius-full); }
.header-cta { display: inline-flex; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: var(--space-2); font-size: var(--text-sm); font-weight: 700; padding: .8rem 1.25rem; border-radius: var(--radius-full); border: 1px solid transparent; white-space: nowrap; }
.btn svg { width: 16px; height: 16px; transition: transform var(--transition-interactive); }
.btn:hover svg { transform: translateX(3px); }
.btn--primary { background: var(--color-accent); color: var(--color-accent-ink); }
.btn--primary:hover { background: #e4ff7a; }
.btn--ghost { border-color: var(--color-line-strong); color: var(--color-text); }
.btn--ghost:hover { border-color: var(--color-text); }
.btn--sm { padding: .6rem 1rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--space-3); }

/* Hero */
.hero { position: relative; padding-top: clamp(var(--space-12), 7vw, var(--space-24)); padding-bottom: clamp(var(--space-16), 8vw, var(--space-24)); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(var(--space-8), 5vw, var(--space-16)); align-items: center; }
.hero h1 { font-size: var(--text-hero); margin-block: var(--space-6) var(--space-6); }
.hero h1 em { font-style: normal; color: var(--color-accent); }
.hero .lede { margin-bottom: var(--space-10); }
.hero-proof { margin-top: var(--space-12); display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-6); }
.hero-proof li { list-style: none; font-family: var(--font-mono); font-size: var(--text-xs); color: var(--color-text-muted); text-transform: uppercase; letter-spacing: .04em; display: flex; align-items: center; gap: .5em; }
.hero-proof li::before { content: ""; width: 14px; height: 1px; background: var(--color-accent); }

.hero-visual { position: relative; aspect-ratio: 4 / 5; }
.phone { position: absolute; width: 52%; border-radius: 28px; overflow: hidden; border: 1px solid var(--color-line-strong); background: #fff; box-shadow: 0 40px 80px -30px rgba(0,0,0,.8), 0 0 0 6px #0f0f11, 0 0 0 7px var(--color-line-strong); }
.phone img { width: 100%; height: auto; }
.phone--a { left: 2%; top: 10%; transform: rotate(-6deg); }
.phone--b { right: 2%; top: 0; transform: rotate(4deg); z-index: 2; }
.spec-chip { position: absolute; z-index: 3; background: var(--color-surface); border: 1px solid var(--color-line-strong); border-radius: var(--radius-md); padding: var(--space-3) var(--space-4); font-family: var(--font-mono); font-size: var(--text-xs); line-height: 1.5; box-shadow: 0 20px 40px -20px rgba(0,0,0,.8); }
.spec-chip b { display: block; color: var(--color-text); font-weight: 500; }
.spec-chip span { color: var(--color-text-muted); }
.spec-chip--1 { left: -2%; bottom: 14%; }
.spec-chip--2 { right: -2%; bottom: 2%; }

/* Platform strip */
.strip { border-top: 1px solid var(--color-line); border-bottom: 1px solid var(--color-line); overflow: hidden; }
.strip-track { display: flex; gap: var(--space-12); padding-block: var(--space-5); width: max-content; animation: marquee 38s linear infinite; }
.strip-track span { font-family: var(--font-mono); font-size: var(--text-sm); color: var(--color-text-muted); white-space: nowrap; display: flex; align-items: center; gap: var(--space-12); }
.strip-track span::after { content: "/"; color: var(--color-line-strong); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Statement */
.statement { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(var(--space-8), 6vw, var(--space-20)); align-items: end; }
.statement h2 { font-family: var(--font-display); font-size: var(--text-3xl); font-weight: 800; letter-spacing: -.03em; }
.statement h2 .muted { color: #6e6e6a; }
.statement p + p { margin-top: var(--space-4); }

/* Section head */
.section-head { display: flex; justify-content: space-between; align-items: end; gap: var(--space-8); margin-bottom: clamp(var(--space-10), 5vw, var(--space-16)); flex-wrap: wrap; }
.section-head .label { margin-bottom: var(--space-4); display: block; }

/* Work cards (spec sheets) */
.work-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: var(--space-4); }
.work-card { position: relative; grid-column: span 2; display: flex; flex-direction: column; background: var(--color-surface); border: 1px solid var(--color-line); border-radius: var(--radius-lg); overflow: hidden; min-height: 100%; }
.work-card:hover { border-color: var(--color-line-strong); }
.work-card:hover .work-card__go { background: var(--color-accent); color: var(--color-accent-ink); border-color: var(--color-accent); }
.work-card--wide { grid-column: span 3; }
.work-card__media { position: relative; aspect-ratio: 16 / 10; background: var(--color-surface-2); border-bottom: 1px solid var(--color-line); overflow: hidden; }
.work-card__body { padding: var(--space-6); display: flex; flex-direction: column; gap: var(--space-3); flex: 1; }
.work-card__top { display: flex; justify-content: space-between; align-items: center; gap: var(--space-3); }
.work-card h3 { font-family: var(--font-display); font-size: var(--text-xl); font-weight: 800; letter-spacing: -.02em; }
.work-card p { color: var(--color-text-muted); font-size: var(--text-sm); }
.work-card dl { margin-top: auto; padding-top: var(--space-4); border-top: 1px dashed var(--color-line-strong); display: grid; grid-template-columns: auto 1fr; gap: var(--space-1) var(--space-4); font-family: var(--font-mono); font-size: var(--text-xs); }
.work-card dt { color: var(--color-text-faint); text-transform: uppercase; letter-spacing: .04em; }
.work-card dd { color: var(--color-text); }
.work-card__go { position: absolute; top: var(--space-4); right: var(--space-4); z-index: 2; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--color-line-strong); background: color-mix(in oklab, var(--color-bg) 70%, transparent); backdrop-filter: blur(6px); transition: all var(--transition-interactive); }
.work-card__go svg { width: 16px; height: 16px; }
.work-card a.stretched::after { content: ""; position: absolute; inset: 0; z-index: 1; }

.status { font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; padding: .3rem .6rem; border-radius: var(--radius-full); border: 1px solid var(--color-line-strong); color: var(--color-text-muted); white-space: nowrap; }
.status--live { color: var(--color-accent); border-color: color-mix(in oklab, var(--color-accent) 40%, transparent); background: var(--color-accent-dim); }

/* Media mockups inside cards */
.mock-phones { position: absolute; inset: 0; display: flex; justify-content: center; align-items: flex-start; gap: 4%; padding-top: 7%; }
.mock-phones img { width: 30%; border-radius: 14px; border: 1px solid var(--color-line-strong); box-shadow: 0 20px 40px -20px #000; }
.mock-phones img:nth-child(2) { margin-top: 6%; }
.mock-ui { position: absolute; inset: 7% 7% 0; background: #0e0e10; border: 1px solid var(--color-line-strong); border-bottom: 0; border-radius: 12px 12px 0 0; padding: 4%; font-family: var(--font-mono); font-size: 11px; color: var(--color-text-muted); overflow: hidden; }
.mock-ui__bar { display: flex; gap: 5px; margin-bottom: 8%; }
.mock-ui__bar i { width: 7px; height: 7px; border-radius: 50%; background: var(--color-line-strong); }

/* Call transcript (Monshi) */
.call { display: flex; flex-direction: column; gap: 8px; }
.call .row { display: flex; gap: 8px; align-items: flex-start; }
.call .who { flex: 0 0 auto; width: 18px; height: 18px; border-radius: 50%; background: var(--color-line-strong); display: grid; place-items: center; font-size: 9px; color: var(--color-text); }
.call .who.ai { background: var(--color-accent); color: var(--color-accent-ink); }
.call .bubble { background: var(--color-surface-2); border: 1px solid var(--color-line); padding: 6px 9px; border-radius: 8px; color: var(--color-text); line-height: 1.4; font-family: var(--font-body); font-size: 12px; }
.wave { display: flex; align-items: center; gap: 3px; height: 22px; margin-bottom: 10px; }
.wave i { width: 3px; border-radius: 2px; background: var(--color-accent); animation: wave 1.2s ease-in-out infinite; }
@keyframes wave { 0%,100% { height: 20%; } 50% { height: 100%; } }

/* Kanban (musicOS) */
.kanban { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.kanban .col > b { display: block; font-weight: 500; color: var(--color-text-faint); font-size: 10px; margin-bottom: 6px; letter-spacing: .04em; text-transform: uppercase; }
.kanban .card { background: var(--color-surface-2); border: 1px solid var(--color-line); border-radius: 6px; padding: 6px; margin-bottom: 6px; color: var(--color-text); font-family: var(--font-body); font-size: 11px; line-height: 1.3; }
.kanban .card small { display: block; color: var(--color-text-muted); font-family: var(--font-mono); font-size: 9.5px; margin-top: 2px; }
.kanban .card.hl { border-color: color-mix(in oklab, var(--color-accent) 50%, transparent); }

/* Subscriptions plan */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.plan { background: var(--color-surface-2); border: 1px solid var(--color-line); border-radius: 8px; padding: 10px; font-family: var(--font-body); color: var(--color-text); font-size: 12px; }
.plan.sel { border-color: var(--color-accent); }
.plan small { display: block; font-family: var(--font-mono); color: var(--color-text-muted); font-size: 10px; margin-top: 2px; }
.plan .badge { display: inline-block; margin-top: 8px; background: var(--color-accent); color: var(--color-accent-ink); border-radius: 4px; font-family: var(--font-mono); font-size: 9.5px; padding: 1px 5px; }

/* Certificate verification */
.verify { display: grid; place-items: center; text-align: center; gap: 10px; height: 100%; padding-top: 2%; }
.verify .seal { width: 54px; height: 54px; border-radius: 50%; border: 1px solid var(--color-accent); display: grid; place-items: center; box-shadow: 0 0 0 6px var(--color-accent-dim); }
.verify .seal svg { width: 24px; height: 24px; color: var(--color-accent); }
.verify b { font-family: var(--font-body); color: var(--color-text); font-size: 14px; }
.verify code { font-size: 10px; color: var(--color-text-muted); word-break: break-all; }

/* Services */
.services { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--color-line); border-left: 1px solid var(--color-line); }
.service { padding: clamp(var(--space-6), 3vw, var(--space-10)); border-right: 1px solid var(--color-line); border-bottom: 1px solid var(--color-line); display: flex; flex-direction: column; gap: var(--space-3); }
.service .num { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--color-accent); }
.service h3 { font-family: var(--font-body); font-size: var(--text-lg); font-weight: 700; letter-spacing: -.01em; line-height: 1.25; }
.service p { color: var(--color-text-muted); font-size: var(--text-sm); max-width: 46ch; }
.service .proof { margin-top: auto; padding-top: var(--space-3); font-family: var(--font-mono); font-size: var(--text-xs); color: var(--color-text-faint); }
.service .proof a { color: var(--color-text); border-bottom: 1px solid var(--color-line-strong); }
.service .proof a:hover { border-color: var(--color-accent); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-4); counter-reset: step; }
.step { position: relative; padding: var(--space-6); border: 1px solid var(--color-line); border-radius: var(--radius-lg); background: var(--color-surface); display: flex; flex-direction: column; gap: var(--space-3); }
.step::before { counter-increment: step; content: "0" counter(step); font-family: var(--font-mono); font-size: var(--text-xs); color: var(--color-accent); }
.step h3 { font-size: var(--text-lg); font-weight: 700; line-height: 1.25; }
.step p { font-size: var(--text-sm); color: var(--color-text-muted); }
.step .you { margin-top: auto; padding-top: var(--space-3); border-top: 1px dashed var(--color-line-strong); font-family: var(--font-mono); font-size: var(--text-xs); color: var(--color-text-muted); }
.step .you b { color: var(--color-text); font-weight: 500; }

/* Facts */
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--color-line); border-radius: var(--radius-lg); overflow: hidden; }
.fact { padding: var(--space-8) var(--space-6); border-right: 1px solid var(--color-line); }
.fact:last-child { border-right: 0; }
.fact b { display: block; font-family: var(--font-display); font-size: var(--text-xl); font-weight: 800; letter-spacing: -.02em; margin-bottom: var(--space-2); }
.fact p { color: var(--color-text-muted); font-size: var(--text-sm); }

/* FAQ */
.faq { max-width: 860px; }
.faq details { border-bottom: 1px solid var(--color-line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: var(--space-6); padding-block: var(--space-6); font-size: var(--text-lg); font-weight: 700; line-height: 1.3; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .plus { flex: 0 0 auto; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--color-line-strong); display: grid; place-items: center; transition: transform .25s var(--ease), background .2s; }
.faq summary:hover .plus { border-color: var(--color-text); }
.faq details[open] .plus { transform: rotate(45deg); background: var(--color-accent); color: var(--color-accent-ink); border-color: var(--color-accent); }
.faq details p { color: var(--color-text-muted); padding-bottom: var(--space-6); max-width: 68ch; }
.faq details p + p { margin-top: calc(-1 * var(--space-3)); }

/* CTA */
.cta { position: relative; border: 1px solid var(--color-line-strong); border-radius: calc(var(--radius-lg) + 8px); padding: clamp(var(--space-12), 7vw, var(--space-24)) clamp(var(--space-6), 5vw, var(--space-16)); overflow: hidden; background: var(--color-surface); }
.cta::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(to right, rgba(212,255,58,.07) 1px, transparent 1px), linear-gradient(to bottom, rgba(212,255,58,.07) 1px, transparent 1px); background-size: 32px 32px; mask-image: radial-gradient(ellipse 60% 80% at 100% 100%, #000, transparent 70%); pointer-events: none; }
.cta h2 { position: relative; font-family: var(--font-display); font-size: var(--text-3xl); font-weight: 800; letter-spacing: -.03em; max-width: 14ch; margin-block: var(--space-4) var(--space-6); }
.cta p { position: relative; color: var(--color-text-muted); max-width: 48ch; margin-bottom: var(--space-8); }
.cta .btn-row { position: relative; }

/* Footer */
.site-footer { border-top: 1px solid var(--color-line); padding-block: var(--space-16) var(--space-10); margin-top: clamp(var(--space-12), 6vw, var(--space-20)); }
main > section:last-child.section--flush { padding-bottom: 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: var(--space-8); }
.footer-grid h4 { font-family: var(--font-mono); font-size: var(--text-xs); text-transform: uppercase; letter-spacing: .05em; color: var(--color-text-faint); font-weight: 500; margin-bottom: var(--space-4); }
.footer-grid ul { list-style: none; display: grid; gap: var(--space-2); }
.footer-grid a { font-size: var(--text-sm); color: var(--color-text-muted); }
.footer-grid a:hover { color: var(--color-text); }
.footer-grid p { font-size: var(--text-sm); color: var(--color-text-muted); max-width: 34ch; margin-top: var(--space-4); }
.footer-legal { margin-top: var(--space-16); padding-top: var(--space-6); border-top: 1px solid var(--color-line); display: flex; justify-content: space-between; gap: var(--space-4); flex-wrap: wrap; font-family: var(--font-mono); font-size: var(--text-xs); color: var(--color-text-faint); }

/* Page header (interior) */
.page-head { padding-top: clamp(var(--space-12), 7vw, var(--space-24)); padding-bottom: clamp(var(--space-10), 5vw, var(--space-16)); }
.page-head h1 { font-family: var(--font-display); font-size: var(--text-3xl); font-weight: 800; letter-spacing: -.03em; margin-block: var(--space-4) var(--space-6); max-width: 18ch; }
.crumbs { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--color-text-faint); text-transform: uppercase; letter-spacing: .04em; }
.crumbs a:hover { color: var(--color-text); }

/* Case study */
.case-hero { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(var(--space-8), 5vw, var(--space-16)); align-items: start; }
.spec { border: 1px solid var(--color-line); border-radius: var(--radius-lg); background: var(--color-surface); padding: var(--space-6); font-family: var(--font-mono); font-size: var(--text-xs); }
.spec dl { display: grid; grid-template-columns: auto 1fr; gap: var(--space-3) var(--space-6); }
.spec dt { color: var(--color-text-faint); text-transform: uppercase; letter-spacing: .04em; }
.spec dd { color: var(--color-text); line-height: 1.5; }
.spec .btn { margin-top: var(--space-6); width: 100%; justify-content: center; font-family: var(--font-body); }
.case-gallery { display: flex; gap: var(--space-4); overflow-x: auto; padding-bottom: var(--space-4); scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: var(--color-line-strong) transparent; }
.case-gallery figure { flex: 0 0 clamp(180px, 22vw, 240px); scroll-snap-align: start; }
.case-gallery img { border-radius: 20px; border: 1px solid var(--color-line-strong); background: #fff; }
.case-gallery figcaption { margin-top: var(--space-3); font-family: var(--font-mono); font-size: var(--text-xs); color: var(--color-text-muted); }
.case-body { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(var(--space-8), 6vw, var(--space-20)); }
.case-body aside { position: sticky; top: 100px; align-self: start; }
.case-body aside ol { list-style: none; display: grid; gap: var(--space-2); font-family: var(--font-mono); font-size: var(--text-xs); text-transform: uppercase; letter-spacing: .04em; }
.case-body aside a { color: var(--color-text-faint); }
.case-body aside a:hover { color: var(--color-text); }
.prose { max-width: 68ch; }
.prose h2 { font-family: var(--font-display); font-size: var(--text-xl); font-weight: 800; letter-spacing: -.02em; margin: var(--space-16) 0 var(--space-4); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: var(--text-lg); margin: var(--space-8) 0 var(--space-3); line-height: 1.3; }
.prose p { color: #c9c9c5; margin-bottom: var(--space-4); }
.prose ul, .prose ol { margin: 0 0 var(--space-6) 1.2em; color: #c9c9c5; display: grid; gap: var(--space-2); }
.prose li::marker { color: var(--color-accent); }
.prose strong { color: var(--color-text); }
.prose a { color: var(--color-text); border-bottom: 1px solid var(--color-accent); }
.prose a:hover { color: var(--color-accent); }
.callout { border-left: 2px solid var(--color-accent); background: var(--color-surface); padding: var(--space-5) var(--space-6); border-radius: 0 var(--radius-md) var(--radius-md) 0; margin: var(--space-8) 0; }
.callout p { margin: 0; color: var(--color-text); }
.diagram { margin: var(--space-8) 0; border: 1px solid var(--color-line); border-radius: var(--radius-lg); padding: var(--space-6); background: var(--color-surface); overflow-x: auto; }
.flow { display: flex; align-items: center; gap: var(--space-3); min-width: 560px; font-family: var(--font-mono); font-size: var(--text-xs); }
.flow .node { flex: 1; border: 1px solid var(--color-line-strong); border-radius: var(--radius-md); padding: var(--space-3); text-align: center; color: var(--color-text); background: var(--color-bg); }
.flow .node small { display: block; color: var(--color-text-faint); margin-top: 2px; }
.flow .node.hl { border-color: var(--color-accent); }
.flow .arrow { color: var(--color-accent); flex: 0 0 auto; }
.next-case { display: flex; justify-content: space-between; align-items: center; gap: var(--space-6); padding: var(--space-8); border: 1px solid var(--color-line); border-radius: var(--radius-lg); background: var(--color-surface); }
.next-case:hover { border-color: var(--color-line-strong); }
.next-case b { font-family: var(--font-display); font-size: var(--text-xl); font-weight: 800; letter-spacing: -.02em; display: block; margin-top: var(--space-2); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(var(--space-8), 6vw, var(--space-20)); align-items: start; }
.form { display: grid; gap: var(--space-5); background: var(--color-surface); border: 1px solid var(--color-line); border-radius: var(--radius-lg); padding: clamp(var(--space-6), 4vw, var(--space-10)); }
.form .two { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-5); }
.field { display: grid; gap: var(--space-2); }
.field label, .field legend { font-size: var(--text-sm); font-weight: 500; }
.field .hint { font-size: var(--text-xs); color: var(--color-text-faint); }
.field input, .field textarea, .field select { width: 100%; background: var(--color-bg); border: 1px solid var(--color-line-strong); border-radius: var(--radius-md); padding: .8rem 1rem; font-size: var(--text-base); }
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--color-accent); }
.chips { display: flex; flex-wrap: wrap; gap: var(--space-2); border: 0; }
.chips label { position: relative; }
.chips input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chips span { display: inline-block; padding: .5rem .9rem; border: 1px solid var(--color-line-strong); border-radius: var(--radius-full); font-size: var(--text-sm); color: var(--color-text-muted); cursor: pointer; }
.chips input:checked + span { background: var(--color-accent); border-color: var(--color-accent); color: var(--color-accent-ink); font-weight: 700; }
.chips input:focus-visible + span { outline: 2px solid var(--color-accent); outline-offset: 2px; }
.form-note { font-size: var(--text-xs); color: var(--color-text-faint); }
.form-note a { color: var(--color-text-muted); border-bottom: 1px solid var(--color-line-strong); }
.form-status { font-size: var(--text-sm); padding: var(--space-4); border-radius: var(--radius-md); display: none; }
.form-status.ok { display: block; background: var(--color-accent-dim); color: var(--color-text); border: 1px solid color-mix(in oklab, var(--color-accent) 40%, transparent); }
.form-status.err { display: block; background: #2a1414; color: #f3c4c4; border: 1px solid #5a2626; }
.hp { position: absolute; left: -9999px; }
.contact-points { display: grid; gap: var(--space-6); margin-top: var(--space-10); }
.contact-points div { border-top: 1px solid var(--color-line); padding-top: var(--space-4); }
.contact-points dt { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--color-text-faint); text-transform: uppercase; letter-spacing: .04em; margin-bottom: var(--space-1); }
.contact-points a { border-bottom: 1px solid var(--color-accent); }

/* Reveal */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 1024px) {
  .work-card, .work-card--wide { grid-column: span 3; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .nav { position: fixed; inset: 72px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--color-bg); border-bottom: 1px solid var(--color-line); padding: var(--space-4) var(--gutter) var(--space-6); transform: translateY(-120%); transition: transform .35s var(--ease); z-index: -1; }
  .nav.open { transform: none; }
  .nav a { padding: var(--space-4) 0; border-bottom: 1px solid var(--color-line); border-radius: 0; font-size: var(--text-base); }
  .nav a[aria-current="page"] { background: none; color: var(--color-accent); }
  .nav-toggle { display: inline-flex; }
  .header-cta { display: none; }
  .hero-grid, .statement, .case-hero, .contact-grid, .case-body { grid-template-columns: 1fr; }
  .hero-visual { max-width: 440px; width: 100%; margin-inline: auto; }
  .case-body aside { display: none; }
  .services { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; }
  .fact { border-right: 0; border-bottom: 1px solid var(--color-line); }
  .fact:last-child { border-bottom: 0; }
}
@media (max-width: 640px) {
  .work-card, .work-card--wide { grid-column: span 6; }
  .steps { grid-template-columns: 1fr; }
  .form .two { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .spec-chip--1 { left: 0; }
  .spec-chip--2 { right: 0; }
  .next-case { flex-direction: column; align-items: flex-start; }
}
.case-body > *, .case-hero > *, .contact-grid > *, .hero-grid > *, .statement > * { min-width: 0; }
