/* FADY UNLOCKER — studio site
   Direction: "the light table". Work is laid out like frames on a studio
   table: crop marks, frame numbers, timecode. Ink + paper + one cobalt signal. */

:root {
  --ink: #0f0f12;
  --ink-2: #1a1a20;
  --ink-3: #26262e;
  --line-dark: rgba(255, 255, 255, .14);
  --paper: #f3f1ec;
  --paper-2: #e8e5dd;
  --line: rgba(15, 15, 18, .16);
  --text: #0f0f12;
  --muted: #55545c;
  --muted-dark: #a9a8b2;
  --cobalt: #2b3bff;
  --cobalt-deep: #1d29d6;
  --signal: #ff5a1f;
  --white: #fff;

  --display: "Bricolage Grotesque", "Arial Narrow", system-ui, sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1320px;
  --radius: 4px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--ink);
  color: var(--white);
  font: 400 17px/1.6 var(--display);
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--signal); outline-offset: 3px; }
::selection { background: var(--cobalt); color: #fff; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--signal); color: var(--ink); padding: 10px 16px; font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }

.mono, .eyebrow, .tag, .label { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; color: var(--muted-dark); margin: 0 0 22px; }
.eyebrow::before { content: ""; width: 8px; height: 8px; background: var(--signal); border-radius: 50%; }
.on-paper .eyebrow { color: var(--muted); }
em, .serif { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; }

h1, h2, h3 { font-family: var(--display); font-weight: 700; letter-spacing: -.035em; margin: 0; }
h2 { font-size: clamp(40px, 6.4vw, 92px); line-height: .95; }
h2 em { letter-spacing: -.02em; }
p { margin: 0 0 1em; }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--white); --fg: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 52px; padding: 0 24px;
  background: var(--bg); color: var(--fg);
  border: 1.5px solid var(--bg); border-radius: 999px;
  font-weight: 600; font-size: 16px; text-decoration: none; cursor: pointer;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.btn svg { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.btn:hover svg { transform: translate(3px, -3px); }
.btn:active { transform: scale(.98); }
.btn-primary { --bg: var(--cobalt); --fg: #fff; }
.btn-primary:hover { --bg: var(--white); --fg: var(--ink); border-color: var(--white); }
.btn-ghost { background: transparent; color: var(--white); border-color: var(--line-dark); }
.btn-ghost:hover { border-color: var(--white); }
.on-paper .btn-ghost { color: var(--ink); border-color: var(--line); }
.on-paper .btn-ghost:hover { border-color: var(--ink); }
.on-paper .btn-primary:hover { --bg: var(--ink); --fg: #fff; border-color: var(--ink); }
.text-link { font-weight: 600; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 5px; }
.text-link:hover { text-decoration-color: var(--signal); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(15, 15, 18, .86);
  -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line-dark);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 17px; letter-spacing: -.01em; white-space: nowrap; }
.brand-mark { width: 30px; height: 30px; flex: none; }
.brand b { font-weight: 800; }
.brand span { font-weight: 400; color: var(--muted-dark); }
.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a { padding: 10px 14px; text-decoration: none; font-size: 15px; color: var(--muted-dark); border-radius: 999px; transition: color .2s; }
.main-nav a:hover { color: var(--white); }
.main-nav .btn { min-height: 42px; padding: 0 18px; font-size: 15px; margin-left: 10px; color: #fff; }
.main-nav .btn:hover { color: var(--ink); }
.menu-toggle { display: none; align-items: center; gap: 10px; min-height: 44px; padding: 0 16px; background: transparent; border: 1.5px solid var(--line-dark); border-radius: 999px; cursor: pointer; font-weight: 600; }
.menu-toggle i { position: relative; width: 16px; height: 10px; }
.menu-toggle i::before, .menu-toggle i::after { content: ""; position: absolute; left: 0; right: 0; height: 2px; background: currentColor; transition: transform .3s var(--ease), top .3s var(--ease); }
.menu-toggle i::before { top: 0; } .menu-toggle i::after { top: 8px; }
.menu-toggle[aria-expanded="true"] i::before { top: 4px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] i::after { top: 4px; transform: rotate(-45deg); }

.mobile-nav { position: fixed; inset: 68px 0 0 0; z-index: 49; background: var(--ink); padding: 24px var(--gutter) 40px; display: flex; flex-direction: column; overflow-y: auto; }
.mobile-nav[hidden] { display: none; }
.mobile-nav a.big { display: flex; justify-content: space-between; align-items: baseline; padding: 16px 0; border-bottom: 1px solid var(--line-dark); font-size: 34px; font-weight: 700; letter-spacing: -.03em; text-decoration: none; }
.mobile-nav a.big span { font-family: var(--mono); font-size: 12px; color: var(--muted-dark); letter-spacing: .06em; }
.mobile-nav .btn { margin-top: 28px; }
.mobile-nav p { margin-top: 24px; color: var(--muted-dark); font-size: 15px; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(48px, 8vw, 104px) 0 clamp(56px, 7vw, 96px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { font-size: clamp(44px, 5.5vw, 84px); line-height: .93; letter-spacing: -.045em; margin-bottom: 28px; }
.hero h1 em { display: inline-block; color: var(--white); letter-spacing: -.02em; }
.hero h1 .u { position: relative; white-space: nowrap; }
.hero h1 .u::after { content: ""; position: absolute; left: 0; right: 0; bottom: .02em; height: .09em; background: var(--cobalt); transform-origin: left; }
.hero-lede { font-size: clamp(17px, 1.5vw, 20px); line-height: 1.55; color: #d4d3db; max-width: 34em; margin-bottom: 34px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--muted-dark); padding: 0; margin: 0; list-style: none; }
.hero-facts li { display: flex; align-items: center; gap: 8px; }
.hero-facts li::before { content: ""; width: 14px; height: 1px; background: var(--muted-dark); }

/* Light table composition */
.table { position: relative; aspect-ratio: 1 / .86; width: 100%; }
.table::before { /* grid paper */
  content: ""; position: absolute; inset: -6% -10%;
  background-image: linear-gradient(var(--line-dark) 1px, transparent 1px), linear-gradient(90deg, var(--line-dark) 1px, transparent 1px);
  background-size: 48px 48px; opacity: .35;
  -webkit-mask-image: radial-gradient(closest-side, #000 40%, transparent);
  mask-image: radial-gradient(closest-side, #000 40%, transparent);
}
.frame { position: absolute; margin: 0; }
.frame .crop { position: absolute; inset: -10px; pointer-events: none; }
.frame .crop::before, .frame .crop::after { content: ""; position: absolute; width: 14px; height: 14px; border: 0 solid rgba(255,255,255,.55); }
.frame .crop::before { top: 0; left: 0; border-top-width: 1px; border-left-width: 1px; }
.frame .crop::after { bottom: 0; right: 0; border-bottom-width: 1px; border-right-width: 1px; }
.frame figcaption { position: absolute; left: 0; top: calc(100% + 12px); white-space: nowrap; color: var(--muted-dark); font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }
.frame figcaption b { color: var(--white); font-weight: 500; }

.f-browser { left: 0; top: 4%; width: 74%; background: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 30px 80px -20px rgba(0,0,0,.7); }
.f-browser figcaption { display: none; }
.browser-bar { display: flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; background: #e9e7e1; color: #6b6a70; }
.browser-bar i { width: 9px; height: 9px; border-radius: 50%; background: #c9c6be; }
.browser-bar span { margin-left: 12px; flex: 1; height: 16px; border-radius: 4px; background: #fff; font: 500 9.5px/16px var(--mono); padding: 0 8px; letter-spacing: .02em; overflow: hidden; }
.f-browser .shot { aspect-ratio: 16 / 10; overflow: hidden; }
.f-browser .shot img { width: 100%; }
.f-thumb-a { right: 0; top: 0; width: 46%; transform: rotate(3deg); }
.f-thumb-b { right: 6%; bottom: 9%; width: 52%; transform: rotate(-2.5deg); }
.f-thumb-a img, .f-thumb-b img { border-radius: 6px; box-shadow: 0 24px 60px -16px rgba(0,0,0,.75); }
.f-motion { left: 2%; bottom: 4%; width: 42%; aspect-ratio: 16 / 9; background: var(--cobalt); border-radius: 6px; padding: 5% 7%; display: flex; flex-direction: column; justify-content: space-between; box-shadow: 0 24px 60px -16px rgba(0,0,0,.75); overflow: hidden; }
.f-motion .tc { display: flex; justify-content: space-between; gap: 6px; white-space: nowrap; font-family: var(--mono); font-size: clamp(8px, .8vw, 10px); letter-spacing: .06em; }
.f-motion .tc b { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; }
.f-motion .tc b::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--signal); }
.f-motion .words { font-weight: 800; font-size: clamp(16px, 2.1vw, 30px); line-height: .95; letter-spacing: -.04em; height: .95em; overflow: hidden; }
.f-motion .words span { display: block; }
.f-motion .bar { height: 3px; background: rgba(255,255,255,.25); position: relative; }
.f-motion .bar::after { content: ""; position: absolute; inset: 0; background: #fff; transform-origin: left; transform: scaleX(.42); }
.f-motion figcaption { top: auto; bottom: calc(100% + 10px); }
.f-thumb-a figcaption { left: auto; right: 0; }
.tag { display: inline-block; padding: 5px 9px; border-radius: 999px; background: rgba(15,15,18,.82); color: #fff; font-size: 10px; letter-spacing: .06em; }
.frame .tag { position: absolute; left: 10px; bottom: 10px; z-index: 2; }

@media (prefers-reduced-motion: no-preference) {
  .js .table .frame { opacity: 0; translate: 0 24px; transition: opacity .9s var(--ease), translate 1.1s var(--ease); }
  .js .table.in .frame { opacity: 1; translate: 0 0; }
  .js .table.in .f-thumb-a { transition-delay: .15s; }
  .js .table.in .f-motion { transition-delay: .3s; }
  .js .table.in .f-thumb-b { transition-delay: .45s; }
  .f-motion .words span { animation: words 6s var(--ease) infinite; }
  .f-motion .bar::after { animation: bar 6s linear infinite; }
  .hero h1 .u::after { animation: underline 1.2s .5s var(--ease) both; }
}
@keyframes words { 0%, 28% { transform: translateY(0); } 33%, 61% { transform: translateY(-100%); } 66%, 95% { transform: translateY(-200%); } 100% { transform: translateY(-300%); } }
@keyframes bar { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes underline { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ---------- Strip of what we make ---------- */
.makes { border-top: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); }
.makes ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); }
.makes li { padding: 18px 20px 18px 0; display: flex; gap: 12px; align-items: baseline; font-weight: 600; font-size: 15px; }
.makes li + li { padding-left: 20px; border-left: 1px solid var(--line-dark); }
.makes li span { font-family: var(--mono); font-size: 11px; color: var(--muted-dark); font-weight: 400; }
.makes li.lead { color: #fff; }
.makes li:not(.lead) { color: var(--muted-dark); }

/* ---------- Paper sections ---------- */
.on-paper { background: var(--paper); color: var(--text); }
.section { padding: clamp(72px, 10vw, 140px) 0; }
.section-head { display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px 64px; align-items: end; margin-bottom: clamp(48px, 6vw, 80px); }
.section-head p { font-size: 18px; color: var(--muted); max-width: 32em; margin: 0; }
.on-ink .section-head p { color: var(--muted-dark); }

/* ---------- Work ---------- */
.chapter { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 48px; padding: 56px 0; border-top: 1px solid var(--line); }
.chapter-index { position: sticky; top: 100px; align-self: start; }
.chapter-index .num { font-family: var(--mono); font-size: 12px; color: var(--muted); letter-spacing: .06em; }
.chapter-index h3 { font-size: 30px; line-height: 1; margin: 10px 0 12px; }
.chapter-index p { font-size: 15px; color: var(--muted); }
.label { display: inline-flex; gap: 8px; align-items: center; padding: 7px 11px; border: 1px solid var(--line); border-radius: 999px; font-size: 11px; color: var(--text); background: #fff; line-height: 1.3; }
.label::before { content: ""; width: 7px; height: 7px; flex: none; border-radius: 50%; background: var(--signal); }

/* Compare */
.viewer { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
.compare {
  --pos: 50%;
  position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 6px; background: #ddd;
  touch-action: pan-y; user-select: none; -webkit-user-select: none; cursor: ew-resize;
  box-shadow: 0 30px 70px -40px rgba(0,0,0,.6);
}
.compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.compare .c-original { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.compare .divider { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.15); pointer-events: none; }
.compare .knob { position: absolute; top: 50%; left: var(--pos); width: 48px; height: 48px; margin: -24px 0 0 -24px; border-radius: 50%; background: #fff; color: var(--ink); display: grid; place-items: center; box-shadow: 0 6px 20px rgba(0,0,0,.35); pointer-events: none; }
.compare .knob svg { width: 22px; height: 22px; }
.compare .side { position: absolute; top: 12px; font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; padding: 5px 9px; border-radius: 999px; background: rgba(15,15,18,.82); color: #fff; pointer-events: none; transition: opacity .2s; }
.compare .side.l { left: 12px; } .compare .side.r { right: 12px; background: var(--cobalt); }
.compare[data-pos-lt="10"] .side.l { opacity: 0; }
.compare[data-pos-gt="90"] .side.r { opacity: 0; }
.compare input[type="range"] { position: absolute; inset: auto 0 0 0; width: 100%; height: 1px; opacity: 0; margin: 0; pointer-events: none; }
.compare:has(input:focus-visible) { outline: 3px solid var(--signal); outline-offset: 3px; }
.js .compare.animating .c-original, .js .compare.animating .divider, .js .compare.animating .knob { transition: clip-path .5s var(--ease), left .5s var(--ease); }

.viewer-bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; align-items: center; }
.seg { display: inline-flex; padding: 4px; background: #fff; border: 1px solid var(--line); border-radius: 999px; }
.seg button { min-height: 40px; padding: 0 16px; border: 0; background: transparent; border-radius: 999px; cursor: pointer; font-weight: 600; font-size: 14px; color: var(--muted); }
.seg button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.viewer-meta { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 32px; padding-top: 6px; }
.viewer-meta .creator { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.viewer-meta h4 { margin: 4px 0 6px; font-size: clamp(20px, 2vw, 26px); line-height: 1.15; letter-spacing: -.02em; font-weight: 700; }
.viewer-meta p { color: var(--muted); margin: 0; font-size: 16px; }
.viewer-meta .actions { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; text-align: right; }
.viewer-meta .label { white-space: normal; text-transform: none; letter-spacing: 0; font-family: var(--display); font-size: 13px; }

.strip { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; margin-top: 8px; padding: 0; list-style: none; }
.strip button { width: 100%; padding: 0; border: 0; background: none; cursor: pointer; text-align: left; color: inherit; }
.strip img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 4px; outline: 2px solid transparent; outline-offset: 3px; transition: outline-color .2s, opacity .2s, transform .3s var(--ease); opacity: .62; }
.strip button:hover img { opacity: 1; transform: translateY(-2px); }
.strip button[aria-current="true"] img { opacity: 1; outline-color: var(--cobalt); }
.strip span { display: block; font-family: var(--mono); font-size: 10.5px; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); margin-top: 8px; }

/* Website project */
.site-showcase { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.big-browser { border-radius: 10px; overflow: hidden; background: #fff; box-shadow: 0 30px 70px -40px rgba(0,0,0,.6); border: 1px solid var(--line); display: block; text-decoration: none; }
.big-browser .browser-bar { height: 34px; }
.big-browser .browser-bar span { height: 20px; font-size: 11px; line-height: 20px; }
.scroller { aspect-ratio: 16 / 11; overflow: hidden; position: relative; }
.scroller img { width: 100%; transition: transform 6s cubic-bezier(.45, 0, .25, 1); }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .big-browser:hover .scroller img, .big-browser:focus-visible .scroller img { transform: translateY(var(--scroll-to, -60%)); }
}
.spec-list { list-style: none; padding: 0; margin: 24px 0; border-top: 1px solid var(--line); }
.spec-list li { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.spec-list li b { font-family: var(--mono); font-weight: 400; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding-top: 3px; }

/* Motion player */
.player { border-radius: 8px; overflow: hidden; background: var(--ink); color: #fff; box-shadow: 0 30px 70px -40px rgba(0,0,0,.6); }
.stage { position: relative; aspect-ratio: 16 / 9; background: var(--cobalt); overflow: hidden; container-type: inline-size; }
.stage .hud { position: absolute; inset: 4.5% 5%; display: flex; justify-content: space-between; align-items: flex-start; font-family: var(--mono); font-size: max(9px, 1.5cqi); letter-spacing: .08em; pointer-events: none; z-index: 3; }
.stage .hud.bottom { align-items: flex-end; }
.scene { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; padding: 0 9%; font-weight: 800; letter-spacing: -.05em; line-height: .88; font-size: 13cqi; visibility: hidden; }
.scene.on { visibility: visible; }
.scene .ln { display: block; overflow: hidden; padding-bottom: .04em; }
.scene .ln > span { display: inline-block; }
.scene em { font-weight: 400; letter-spacing: -.03em; }
.scene small { font: 500 max(11px, 2.2cqi)/1.4 var(--display); letter-spacing: 0; margin-top: 4cqi; opacity: .9; }
.scene.alt { background: #fff; color: var(--ink); }
.scene.dark { background: var(--ink); color: #fff; }
.scene .box { display: inline-block; background: #fff; color: var(--cobalt); padding: 0 .12em; }
.scene.on .ln > span { animation: rise .7s var(--ease) both; }
.scene.on .ln:nth-child(2) > span { animation-delay: .12s; }
.scene.on .ln:nth-child(3) > span { animation-delay: .24s; }
.scene.on small { animation: fade .6s .45s both; }
@keyframes rise { from { transform: translateY(105%); } to { transform: translateY(0); } }
@keyframes fade { from { opacity: 0; } to { opacity: .9; } }
.stage .wipe { position: absolute; inset: 0; background: var(--ink); transform: scaleX(0); transform-origin: left; z-index: 2; pointer-events: none; }
.stage .wipe.go { animation: wipe .6s var(--ease); }
@keyframes wipe { 0% { transform: scaleX(0); transform-origin: left; } 49% { transform: scaleX(1); transform-origin: left; } 51% { transform: scaleX(1); transform-origin: right; } 100% { transform: scaleX(0); transform-origin: right; } }
.controls { display: flex; align-items: center; gap: 12px; padding: 12px 14px; }
.controls button { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-dark); background: transparent; color: #fff; cursor: pointer; font-weight: 600; font-size: 14px; }
.controls button:hover { border-color: #fff; }
.controls svg { width: 14px; height: 14px; }
.controls .track { flex: 1; height: 3px; background: rgba(255,255,255,.2); border-radius: 2px; overflow: hidden; }
.controls .track i { display: block; height: 100%; width: 100%; background: #fff; transform-origin: left; transform: scaleX(0); }
.controls time { font-family: var(--mono); font-size: 12px; color: var(--muted-dark); font-variant-numeric: tabular-nums; }

/* ---------- Services (ink) ---------- */
.on-ink { background: var(--ink); color: #fff; }
.service { display: grid; grid-template-columns: 90px minmax(0, 1.2fr) minmax(0, 1fr); gap: 24px 48px; padding: 48px 0; border-top: 1px solid var(--line-dark); }
.service .no { font-family: var(--mono); font-size: 12px; color: var(--muted-dark); padding-top: 12px; }
.service h3 { font-size: clamp(34px, 4.4vw, 60px); line-height: .95; margin-bottom: 18px; }
.service .for { color: var(--muted-dark); font-size: 16px; max-width: 30em; }
.service .for b { color: #fff; font-weight: 600; }
.service .price { display: inline-flex; gap: 10px; align-items: baseline; margin-top: 8px; font-size: 15px; color: var(--muted-dark); }
.service .price strong { font-size: 26px; color: #fff; letter-spacing: -.02em; }
.deliver { list-style: none; margin: 0; padding: 0; }
.deliver li { display: flex; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line-dark); font-size: 16px; }
.deliver li::before { content: "+"; font-family: var(--mono); color: var(--signal); }
.also { display: grid; grid-template-columns: 90px repeat(3, minmax(0, 1fr)); gap: 24px 32px; padding: 48px 0 0; border-top: 1px solid var(--line-dark); }
.also .no { font-family: var(--mono); font-size: 12px; color: var(--muted-dark); }
.also article h4 { font-size: 22px; letter-spacing: -.02em; margin: 0 0 8px; }
.also article p { color: var(--muted-dark); font-size: 15px; margin-bottom: 10px; }
.also article .mono { color: #fff; font-size: 12px; }
.voice-note { margin: 48px 0 0 calc(90px + 32px); padding: 18px 22px; border: 1px dashed var(--line-dark); border-radius: var(--radius); color: var(--muted-dark); font-size: 15px; max-width: 760px; }
.voice-note b { color: #fff; }

/* ---------- Process ---------- */
.process { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); counter-reset: step; position: relative; }
.process li { position: relative; padding: 36px 24px 0 0; }
.process li::before { counter-increment: step; content: "0" counter(step); position: absolute; top: 0; left: 0; font-family: var(--mono); font-size: 12px; color: var(--muted); background: var(--paper); padding-right: 10px; z-index: 1; }
.process::before { content: ""; position: absolute; top: 8px; left: 0; right: 0; height: 1px; background: var(--line); }
.process h3 { font-size: 26px; letter-spacing: -.03em; margin: 8px 0 10px; }
.process p { font-size: 15px; color: var(--muted); }
.process li.key h3::after { content: "Nothing starts before this"; display: block; margin-top: 8px; width: max-content; max-width: 100%; font: 500 10.5px/1.3 var(--mono); letter-spacing: .05em; text-transform: uppercase; color: var(--cobalt); }

/* ---------- Pricing ---------- */
.rates { border-top: 2px solid var(--ink); }
.rate { border-bottom: 1px solid var(--line); }
.rate > summary { list-style: none; display: grid; grid-template-columns: minmax(0, 1fr) auto 44px; align-items: center; gap: 20px; padding: 26px 0; cursor: pointer; }
.rate > summary::-webkit-details-marker { display: none; }
.rate h3 { font-size: clamp(22px, 2.6vw, 34px); letter-spacing: -.03em; line-height: 1.05; }
.rate h3 small { display: block; margin-top: 6px; font: 400 15px/1.4 var(--display); letter-spacing: 0; color: var(--muted); }
.rate .amt { text-align: right; font-size: clamp(24px, 2.8vw, 38px); font-weight: 700; letter-spacing: -.03em; white-space: nowrap; }
.rate .amt small { display: block; font: 400 12px/1.3 var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.rate .tog { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; transition: transform .3s var(--ease), background .2s; }
.rate .tog svg { width: 16px; height: 16px; }
.rate[open] .tog { transform: rotate(45deg); background: var(--ink); color: #fff; border-color: var(--ink); }
.rate.lead h3::before { content: "Core service"; display: block; margin-bottom: 8px; font: 500 11px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--cobalt); }
.rate-body { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)) auto; gap: 32px; padding: 0 0 32px; align-items: start; }
.rate-body h4 { margin: 0 0 10px; font: 500 11px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.rate-body ul { margin: 0; padding: 0; list-style: none; }
.rate-body li { padding: 6px 0 6px 22px; position: relative; font-size: 15.5px; }
.rate-body .in li::before { content: ""; position: absolute; left: 0; top: 14px; width: 10px; height: 2px; background: var(--cobalt); }
.rate-body .out li { color: var(--muted); }
.rate-body .out li::before { content: "×"; position: absolute; left: 0; top: 5px; font-family: var(--mono); font-size: 13px; }
.rate-body .btn { min-height: 46px; font-size: 15px; }
.price-notes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 40px; color: var(--muted); font-size: 14.5px; }
.price-notes p { margin: 0; padding-top: 14px; border-top: 1px solid var(--line); }
.price-notes b { color: var(--text); }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 48px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 20px; align-items: center; padding: 22px 0; font-weight: 600; font-size: 19px; letter-spacing: -.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 22px/1 var(--mono); color: var(--muted); transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 0 24px; color: var(--muted); max-width: 46em; font-size: 16.5px; }
.faq details > div p:last-child { margin-bottom: 0; }

/* ---------- Contact ---------- */
.contact { background: var(--cobalt); color: #fff; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(40px, 6vw, 96px); }
.contact h2 { margin-bottom: 24px; }
.contact .lede { font-size: 19px; color: rgba(255,255,255,.86); max-width: 26em; }
.contact .direct { margin-top: 32px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.3); }
.contact .direct a { font-size: clamp(20px, 2.4vw, 30px); font-weight: 700; letter-spacing: -.02em; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; word-break: break-word; }
.contact .direct p { margin-top: 12px; font-size: 15px; color: rgba(255,255,255,.8); }
.contact .eyebrow { color: rgba(255,255,255,.8); }
.contact .eyebrow::before { background: #fff; }
.contact :focus-visible { outline-color: #fff; }

.form { background: var(--paper); color: var(--text); border-radius: 8px; padding: clamp(22px, 3vw, 40px); display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label, .field legend { font-weight: 600; font-size: 15px; }
.field .opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; min-height: 50px; padding: 12px 14px; background: #fff; border: 1.5px solid #c9c6be; border-radius: var(--radius); font-size: 16px; transition: border-color .2s; }
.field textarea { min-height: 150px; resize: vertical; line-height: 1.5; }
.field select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f0f12' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; padding-right: 40px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--cobalt); outline: 2px solid var(--cobalt); outline-offset: 0; }
.field .hint { font-size: 13.5px; color: var(--muted); }
.field [aria-invalid="true"] { border-color: #c4271b; }
.field .err { color: #b3261e; font-size: 14px; font-weight: 600; }
.form-foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; margin-top: 6px; }
.form-foot .btn-primary:hover { --bg: var(--ink); --fg: #fff; border-color: var(--ink); }
.form-foot p { margin: 0; font-size: 14px; color: var(--muted); flex: 1 1 220px; }
.form-status { grid-column: 1 / -1; padding: 16px 18px; border-radius: var(--radius); background: #fff; border-left: 4px solid var(--cobalt); font-size: 15px; }
.form-status[hidden] { display: none; }
.form-status p { margin: 0 0 10px; }
.form-status p:last-child { margin: 0; }
.form-status button { background: none; border: 0; padding: 0; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; color: var(--cobalt-deep); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Footer ---------- */
.site-footer { padding: 64px 0 40px; border-top: 1px solid var(--line-dark); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.site-footer h4 { margin: 0 0 14px; font: 500 11px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted-dark); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { padding: 4px 0; }
.site-footer li a { text-decoration: none; color: #d4d3db; }
.site-footer li a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.site-footer .about { color: var(--muted-dark); font-size: 15px; max-width: 26em; margin-top: 16px; }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 56px; padding-top: 20px; border-top: 1px solid var(--line-dark); color: var(--muted-dark); font-size: 13px; }
.giant { margin-top: 48px; font-weight: 800; font-size: clamp(36px, 11.6vw, 196px); letter-spacing: -.06em; line-height: .8; color: var(--ink-3); white-space: nowrap; overflow: hidden; user-select: none; }

/* ---------- Reveal ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .9s var(--ease); }
  .js .reveal.in { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; }
  .table { max-width: 720px; margin: 8px auto 0; }
  .chapter { grid-template-columns: 1fr; gap: 28px; }
  .chapter-index { position: static; }
  .site-showcase { grid-template-columns: 1fr; }
  .service { grid-template-columns: 1fr 1fr; }
  .service .no { grid-column: 1 / -1; padding: 0; }
  .also { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .also .no { grid-column: 1 / -1; }
  .voice-note { margin-left: 0; }
  .process { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 40px; }
  .process::before { display: none; }
  .process li { border-top: 1px solid var(--line); }
  .process li::before { top: 12px; }
  .process li { padding-top: 40px; }
  .faq-grid, .contact-grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .makes ol { grid-template-columns: repeat(3, 1fr); }
  .makes li:nth-child(4) { border-left: 0; padding-left: 0; }
  .makes li:nth-child(n+4) { border-top: 1px solid var(--line-dark); }
}
@media (max-width: 860px) {
  .main-nav { display: none; }
  .menu-toggle { display: inline-flex; }
  .section-head { grid-template-columns: 1fr; }
  .rate-body { grid-template-columns: 1fr; gap: 20px; }
  .price-notes { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .hero { padding-top: 36px; }
  .hero h1 { font-size: clamp(40px, 12vw, 56px); }
  .hero-actions .btn { flex: 1 1 100%; }
  .table { aspect-ratio: 1 / 1.02; }
  .f-browser { width: 86%; }
  .f-thumb-a { width: 54%; top: 34%; right: -2%; }
  .f-thumb-b { width: 60%; bottom: 2%; right: 0; }
  .f-motion { width: 46%; bottom: 13%; left: 0; }
  .frame figcaption { display: none; }
  .f-motion .tc span { display: none; }
  .makes ol { grid-template-columns: 1fr 1fr; }
  .makes li { padding: 14px 12px 14px 0; font-size: 14px; }
  .makes li + li { padding-left: 12px; }
  .makes li:nth-child(odd) { border-left: 0; padding-left: 0; }
  .makes li:nth-child(even) { border-left: 1px solid var(--line-dark); padding-left: 12px; }
  .makes li:nth-child(n+3) { border-top: 1px solid var(--line-dark); }
  .makes li:last-child { grid-column: 1 / -1; border-left: 0; padding-left: 0; }
  .viewer-meta { grid-template-columns: 1fr; }
  .viewer-meta .actions { align-items: flex-start; text-align: left; }
  .viewer-bar { flex-direction: column; align-items: stretch; }
  .seg { display: grid; grid-template-columns: repeat(3, 1fr); }
  .strip { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 10px; margin: 0 calc(var(--gutter) * -1); padding: 4px var(--gutter) 10px; scrollbar-width: none; }
  .strip::-webkit-scrollbar { display: none; }
  .strip li { flex: 0 0 42%; scroll-snap-align: start; }
  .compare .knob { width: 40px; height: 40px; margin: -20px 0 0 -20px; }
  .service { grid-template-columns: 1fr; padding: 40px 0; }
  .also { grid-template-columns: 1fr; }
  .process { grid-template-columns: 1fr; row-gap: 0; }
  .process li { padding: 40px 0 20px; }
  .rate > summary { grid-template-columns: minmax(0, 1fr) 40px; gap: 6px 14px; }
  .rate .amt { grid-column: 1; grid-row: 2; text-align: left; }
  .rate .tog { grid-column: 2; grid-row: 1 / span 2; width: 40px; height: 40px; }
  .form { grid-template-columns: 1fr; }
  .form-foot .btn { flex: 1 1 100%; }
  .foot-grid { grid-template-columns: 1fr; }
  .spec-list li { grid-template-columns: 1fr; gap: 2px; }
  .controls { flex-wrap: wrap; }
  .controls .track { order: 3; flex-basis: 100%; }
  .controls time { margin-left: auto; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

/* Final FU identity: code-native vector lockup of the generated direction. */
.brand-logo { width: 252px; height: auto; flex: none; }
@media (max-width: 600px) { .brand-logo { width: 200px; } .header-inner { gap: 10px; } }
@media (max-width: 360px) { .brand-logo { width: 178px; } }
