/* Omicron Digital — international site
   Direction: "Type and nothing else" (taste-skill, seed 631448236), brand palette kept.
   Tokens first; everything below references tokens only. */

@font-face {
  font-family: "Bricolage";
  src: url("/assets/fonts/bricolage.woff2") format("woff2-variations"), url("/assets/fonts/bricolage.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: "JB Mono"; /* taste-skill-ignore: literal code blocks only */
  src: url("/assets/fonts/jbmono.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

:root {
  /* colour — Omicron brand, used as flat fields */
  --paper: #f3f2f7;
  --paper-2: #e7e5f0;
  --ink: #120e2b;
  --soft: #4a4566;
  --blue: #2b3cff;
  --blue-2: #2232e6;
  --pink: #ff2e63;
  --pink-ink: #120e2b;
  --violet: #6e2bf2;
  --on-dark: #f3f2f7;
  --on-dark-soft: #b9b4d6;

  /* type */
  --font: "Bricolage", ui-sans-serif, system-ui, sans-serif;
  --code: "JB Mono", ui-monospace, SFMono-Regular, Menlo, monospace; /* taste-skill-ignore: literal code blocks only */
  --step-small: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --step-head: clamp(2.25rem, 1.3rem + 3.6vw, 4.5rem);
  --step-big: clamp(2.5rem, 1rem + 5vw, 5.5rem);
  --giant: clamp(260px, 36vw, 680px);

  /* frame */
  --m: clamp(20px, 2.2vw, 32px);
  --gap: 24px;
  --section: clamp(96px, 12vw, 200px);
  --radius: 0;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--step-body);
  line-height: 1.5;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--pink); color: var(--ink); }
:focus-visible { outline: 3px solid var(--pink); outline-offset: 3px; }
.on-dark :focus-visible, .field-blue :focus-visible { outline-color: var(--on-dark); }
h1, h2, h3 { font-weight: 600; letter-spacing: -0.035em; line-height: 0.98; text-wrap: balance; }
p { text-wrap: pretty; }
.tabular { font-variant-numeric: tabular-nums; }

.skip { position: absolute; left: var(--m); top: -100px; background: var(--ink); color: var(--paper); padding: 12px 16px; z-index: 100; text-decoration: none; }
.skip:focus { top: 12px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { padding-inline: var(--m); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 52px; padding: 0 26px;
  background: var(--pink); color: var(--pink-ink);
  font-size: var(--step-body); font-weight: 600; letter-spacing: -0.01em;
  text-decoration: none; border: 0; border-radius: var(--radius); cursor: pointer;
  transition: background-color .2s ease, transform .3s var(--ease);
}
.btn:hover { background: #ff5480; }
.btn:active { transform: translateY(2px) scale(.985); }
.btn.ink { background: var(--ink); color: var(--paper); }
.btn.ink:hover { background: #2a2350; }
.btn.paper { background: var(--paper); color: var(--ink); }
.btn.paper:hover { background: #fff; }
.link { text-decoration: underline; text-decoration-thickness: 1px; transition: text-decoration-thickness .2s ease, color .2s ease; }
.link:hover { text-decoration-thickness: 3px; }

/* ---------- top bar ---------- */
.top {
  position: absolute; inset: 0 0 auto 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: 24px var(--m);
}
.wordmark { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; font-size: 20px; letter-spacing: -0.03em; }
.wordmark svg { width: 26px; height: 26px; }
.top nav ul { display: flex; gap: clamp(18px, 2.4vw, 36px); }
.top nav a { text-decoration: none; font-size: var(--step-body); padding: 10px 0; position: relative; }
.top nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 2px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.top nav a:hover::after, .top nav a[aria-current="page"]::after { transform: scaleX(1); }
.menu-btn { display: none; background: none; border: 0; padding: 12px 0; font-size: var(--step-body); font-weight: 600; cursor: pointer; min-height: 44px; }
.sheet {
  position: fixed; inset: 0; z-index: 50; background: var(--ink); color: var(--on-dark);
  padding: 24px 20px 32px; display: flex; flex-direction: column;
  clip-path: inset(0 0 100% 0); visibility: hidden;
  transition: clip-path .6s var(--ease), visibility 0s linear .6s;
}
.sheet.open { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path .6s var(--ease); }
.sheet-head { display: flex; justify-content: space-between; align-items: center; }
.sheet ul { margin-top: auto; }
.sheet ul a { display: block; text-decoration: none; font-size: 13vw; font-weight: 600; letter-spacing: -0.04em; line-height: 1.02; padding: 4px 0; }
.sheet .btn { margin-top: 32px; width: 100%; }

/* ---------- hero: one word, cropped ---------- */
.hero {
  position: relative; overflow: hidden;
  min-height: 100svh; display: grid; align-content: start;
  padding: 0 var(--m);
}
.hero-copy { padding-top: calc(24px + 44px + 96px); max-width: 40rem; position: relative; z-index: 2; }
.hero h1 { font-size: var(--step-head); line-height: .98; letter-spacing: -0.04em; max-width: 15ch; }
.hero .lede { margin-top: 32px; font-size: var(--step-lead); line-height: 1.35; max-width: 34ch; }
.hero .actions { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; }
.hero-word {
  position: absolute; left: -8vw; bottom: -6%;
  font-size: var(--giant); line-height: .8; font-weight: 700;
  letter-spacing: -0.06em; white-space: nowrap; color: var(--blue);
  transform-origin: 30% 100%; pointer-events: none; user-select: none;
  font-variation-settings: "opsz" 96;
}
.hero-word .caret { display: inline-block; width: .09em; height: .62em; background: var(--pink); margin-left: .04em; vertical-align: baseline; animation: blink 1.05s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.hero-side {
  position: absolute; right: var(--m); top: calc(24px + 44px + 96px); z-index: 2;
  width: min(26rem, 30vw);
}

/* inner-page heroes reuse the cropped word, smaller */
.hero.inner { min-height: auto; padding-bottom: clamp(220px, 25vw, 400px); }
.hero.inner .hero-word { font-size: var(--giant); bottom: -6%; }
.hero.inner h1 { font-size: var(--step-head); max-width: 16ch; }

/* ---------- code fragment (real UI, data-ui) ---------- */
.code {
  background: var(--ink); color: #e9e6ff; font-family: var(--code); font-size: 14px; line-height: 1.65;
  padding: 0; overflow: hidden;
}
.code .bar { font-family: var(--font); display: flex; justify-content: space-between; gap: 12px; padding: 12px 16px; background: #1d1840; color: var(--on-dark-soft); font-size: 13px; }
.code pre { margin: 0; padding: 18px 16px 20px; overflow-x: auto; white-space: pre; }
.code .k { color: #ff7da0; }
.code .s { color: #9fd7ff; }
.code .n { color: #ffd479; }
.code .c { color: #8a83b5; }
.code .p { color: #c9b8ff; }

/* ---------- intro: title, note, facts row ---------- */
.intro { padding-block: 140px 120px; }
.intro .row1 { align-items: end; }
.intro h2 { grid-column: 1 / 7; font-weight: 400; font-size: var(--step-head); letter-spacing: -0.04em; }
.intro .note { grid-column: 9 / 13; font-size: var(--step-body); max-width: 30ch; justify-self: end; }
.facts { margin-top: 120px; display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.facts dt { font-size: var(--step-lead); font-weight: 400; letter-spacing: -0.03em; line-height: 1; }
.facts dd { margin-top: 10px; font-size: var(--step-small); color: var(--soft); max-width: 22ch; }

/* ---------- showcase: two giant words ---------- */
.field-blue { background: var(--blue); color: var(--on-dark); }
.field-ink { background: var(--ink); color: var(--on-dark); }
.field-pink { background: var(--pink); color: var(--ink); }
.field-violet { background: var(--violet); color: var(--on-dark); }
.field-paper2 { background: var(--paper-2); }
.showcase { padding-top: 120px; overflow: hidden; position: relative; }
.showcase .head h2 { grid-column: 1 / 6; font-size: var(--step-lead); letter-spacing: -0.02em; }
.showcase .head p { grid-column: 7 / 12; font-size: var(--step-body); max-width: 60ch; }
.specimens { margin-top: 12vh; height: 13.5vw; overflow: hidden; }
.specimen { grid-column: span 6; }
.specimen .cap { font-size: var(--step-body); margin-bottom: 8px; }
.specimen .word { font-size: 20.5vw; margin-left: -0.05em; line-height: .8; font-weight: 700; letter-spacing: -0.06em; white-space: nowrap; }
.specimen.ai .word { font-weight: 250; letter-spacing: -0.03em; font-variation-settings: "opsz" 12; }

/* ---------- live thing: brief compiler ---------- */
.compiler { padding-block: var(--section); }
.compiler .head { align-items: end; }
.compiler .head h2 { grid-column: 1 / 8; font-size: var(--step-head); }
.compiler .head p { grid-column: 9 / 13; max-width: 34ch; }
.compiler .body { margin-top: 72px; align-items: start; }
.compiler form { grid-column: 1 / 6; display: grid; gap: 36px; }
.compiler .out { grid-column: 7 / 13; position: sticky; top: 24px; }
fieldset { border: 0; padding: 0; margin: 0; }
legend { font-weight: 600; font-size: var(--step-body); padding: 0; margin-bottom: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px;
  background: var(--paper-2); cursor: pointer; font-size: var(--step-body);
  transition: background-color .2s ease, color .2s ease, transform .25s var(--ease);
}
.chip span:hover { background: #dcd9ea; }
.chip input:checked + span { background: var(--ink); color: var(--paper); }
.chip input:focus-visible + span { outline: 3px solid var(--pink); outline-offset: 2px; }
.chip input:active + span { transform: scale(.97); }
.field label, .field .lbl { display: block; font-weight: 600; margin-bottom: 10px; }
.field .help { font-size: var(--step-small); color: var(--soft); margin-top: 8px; }
.field input[type="text"], .field input[type="email"], .field input[type="url"], .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 12px 14px; background: #fff; border: 2px solid var(--paper-2);
  border-radius: 0; font-size: 17px; transition: border-color .2s ease;
}
.field textarea { min-height: 150px; resize: vertical; line-height: 1.5; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ink); outline: none; }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #c4002f; }
.field .err { color: #b0002a; font-size: var(--step-small); margin-top: 8px; display: none; }
.field .err.show { display: block; }
.plan { margin-top: 24px; }
.plan h3 { font-size: var(--step-lead); letter-spacing: -0.02em; }
.plan ol { margin-top: 14px; display: grid; gap: 10px; list-style: decimal; padding-left: 1.4em; }
.plan li { padding-left: 4px; }
.plan .send { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; }

/* ---------- work: quiet ledger with side preview ---------- */
.work { padding-block: var(--section); position: relative; }
.ledger { margin-left: 22vw; width: min(600px, 100%); position: relative; }
.ledger h2 { font-size: var(--step-head); margin-bottom: 40px; }
.ledger ul { position: relative; }
.ledger li a {
  display: grid; grid-template-columns: 1fr 1fr auto; align-items: center; gap: 16px;
  min-height: 56px; text-decoration: none; transition: color .2s ease;
}
.ledger .name { font-size: var(--step-lead); font-weight: 500; letter-spacing: -0.02em; }
.ledger .kind, .ledger .yr { font-size: var(--step-small); color: var(--soft); }
.ledger.dim li a { color: var(--soft); }
.ledger.dim li a.on { color: var(--ink); }
.preview {
  position: absolute; width: min(420px, 30vw); aspect-ratio: 4 / 3; left: calc(22vw + min(600px, 100%) + 64px);
  top: 0; opacity: 0; pointer-events: none; overflow: hidden; background: var(--paper-2);
  transition: opacity .15s ease, transform .5s var(--ease);
}
.preview.show { opacity: 1; }
.preview img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.ledger .more { margin-top: 36px; }
.work-photo { display: none; }

/* ---------- process: lines that step across ---------- */
.steps { padding-block: var(--section); }
.steps ol { display: grid; gap: 56px; }
.steps li { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); }
.steps .line { font-size: var(--step-big); font-weight: 600; letter-spacing: -0.04em; line-height: 1; grid-column: var(--c) / 13; }
.steps .say { grid-column: var(--c) / 13; margin-top: 12px; max-width: 40ch; color: var(--soft); }
.steps li:nth-child(1) { --c: 1; } .steps li:nth-child(2) { --c: 3; } .steps li:nth-child(3) { --c: 5; } .steps li:nth-child(4) { --c: 7; }
.steps li:last-child .line { color: var(--blue); }
.field-ink .steps .say, .steps.on-dark .say { color: var(--on-dark-soft); }

/* ---------- about: side facts, wide paragraph ---------- */
.about { padding-block: var(--section); }
.about .row { display: grid; grid-template-columns: 34% 1fr; column-gap: 0; }
.about .side { display: grid; gap: 20px; align-content: start; padding-right: 24px; }
.about .side dt { font-size: var(--step-small); color: var(--soft); }
.about .side dd { font-size: var(--step-body); font-weight: 500; }
.about .wide { font-size: var(--step-lead); line-height: 1.35; letter-spacing: -0.015em; max-width: 52ch; }
.about .wide + .wide { margin-top: 1em; }
.about .row + .row { margin-top: 120px; }
.about .rec-label { font-size: var(--step-small); font-weight: 600; }
.about .lists { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 64px; }
.about .lists h3 { font-size: var(--step-body); font-weight: 600; letter-spacing: 0; margin-bottom: 14px; }
.about .lists li { display: flex; justify-content: space-between; gap: 16px; font-size: var(--step-body); padding: 6px 0; }
.about .lists li span:last-child { color: var(--soft); }
.about h2.sr + .row { margin-top: 0; }

/* ---------- faq: answers as reading text ---------- */
.faq { padding-block: var(--section); }
.faq h2 { grid-column: 1 / 4; font-size: var(--step-lead); letter-spacing: -0.02em; align-self: start; }
.faq .text { grid-column: 5 / 13; columns: 2; column-gap: 56px; }
.faq .text p { break-inside: avoid; margin-bottom: 22px; line-height: 1.55; max-width: 40ch; }
.faq .text b { font-weight: 600; }

/* ---------- contact rows ---------- */
.rows a, .rows div, .rows h2 { display: flex; align-items: flex-end; min-height: 150px; padding: 0 var(--m) 26px; margin: 0; font-weight: 400; font-size: var(--step-big); line-height: 1; letter-spacing: -0.035em; text-decoration: none; }
.rows > *:nth-child(odd) { background: var(--paper-2); }
.rows a { transition: background-color .25s ease; }
.rows a:hover { background: #dcd9ea; }
.rows .hello { background: var(--pink) !important; gap: 24px; align-items: center; padding-top: 26px; }
.rows .hello .go { width: .9em; height: .9em; border-radius: 50%; background: var(--ink); display: grid; place-items: center; transition: transform .4s var(--ease); }
.rows .hello .go svg { width: 40%; height: 40%; }
.rows .hello:hover .go { transform: rotate(-45deg); }

/* ---------- footer ---------- */
.foot { background: var(--ink); color: var(--on-dark); position: relative; overflow: hidden; min-height: 100svh; display: flex; flex-direction: column; padding-top: clamp(80px, 10vw, 140px); }
.foot .top-row { padding-inline: var(--m); }
.foot .invite { grid-column: 1 / 8; }
.foot .invite p.big { font-size: var(--step-big); font-weight: 600; letter-spacing: -0.04em; line-height: 1; max-width: 13ch; }
.foot .invite .btn { margin-top: 36px; }
.foot .links { grid-column: 10 / 13; display: grid; gap: 4px; align-content: start; }
.foot .links a { display: block; text-decoration: none; padding: 6px 0; font-size: var(--step-body); }
.foot .links a:hover { text-decoration: underline; }
.foot .links .grp + .grp { margin-top: 22px; }
.foot .links .h { color: var(--on-dark-soft); font-size: var(--step-small); margin-bottom: 4px; }
.foot .legal { margin-top: auto; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; padding: 0 var(--m) 10px; font-size: var(--step-small); color: var(--on-dark-soft); }
.foot .legal a { text-decoration: none; } .foot .legal a:hover { text-decoration: underline; color: var(--on-dark); }
.foot .legal nav { display: flex; gap: 20px; flex-wrap: wrap; }
.foot .giant { font-size: var(--giant); font-weight: 700; letter-spacing: -0.065em; line-height: .78; white-space: nowrap; margin-left: -0.04em; transform: translateY(26%); color: var(--pink); transform-origin: 20% 100%; user-select: none; }

/* ---------- services list as type ---------- */
.caps { padding-block: var(--section); }
.caps h2 { font-size: var(--step-head); margin-bottom: 48px; }
.caps ul { display: grid; }
.caps li a {
  display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 24px;
  text-decoration: none; padding: 6px 0;
}
.caps .t { font-size: var(--step-big); font-weight: 600; letter-spacing: -0.045em; line-height: 1.02; transition: transform .45s var(--ease), color .2s ease; }
.caps .d { font-size: var(--step-body); max-width: 34ch; text-align: right; color: var(--soft); }
.caps li a:hover .t { transform: translateX(18px); color: var(--blue); }
.field-ink .caps .d, .caps.on-dark .d { color: var(--on-dark-soft); }
.field-ink .caps li a:hover .t { color: var(--pink); }

/* ---------- photo band ---------- */
.band { position: relative; height: clamp(360px, 70svh, 760px); overflow: hidden; background: var(--paper-2); }
.band img { position: absolute; inset: -10% 0 auto; width: 100%; height: 120%; object-fit: cover; }
.band figcaption { position: absolute; left: var(--m); bottom: 18px; color: #fff; font-size: var(--step-small); background: rgba(18, 14, 43, .6); padding: 6px 10px; }

/* ---------- service pages ---------- */
.svc-intro { padding-block: var(--section); }
.svc-intro .grid { align-items: start; }
.svc-intro .copy { grid-column: 1 / 6; }
.svc-intro .copy h2 { font-size: var(--step-head); }
.svc-intro .copy p { margin-top: 24px; max-width: 46ch; }
.svc-intro .copy p + p { margin-top: 14px; }
.svc-intro .code { grid-column: 7 / 13; }
.svc-intro.split h2 { grid-column: 1 / 6; font-size: var(--step-head); }
.svc-intro.split .paras { grid-column: 7 / 13; font-size: var(--step-lead); line-height: 1.35; letter-spacing: -0.01em; }
.svc-intro.split .paras p { max-width: 40ch; }
.svc-intro.split .paras p + p { margin-top: 1em; }
.deliver { padding-block: var(--section); }
.deliver h2 { font-size: var(--step-head); max-width: 18ch; }
.deliver ul { margin-top: 56px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px var(--gap); }
.deliver li h3 { font-size: var(--step-lead); letter-spacing: -0.02em; line-height: 1.15; }
.deliver li p { margin-top: 10px; max-width: 42ch; }
.field-blue .deliver li p, .deliver.on-dark li p { color: #e6e8ff; }
.next-svc { padding-block: 72px; }
.next-svc a { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; text-decoration: none; }
.next-svc .k { font-size: var(--step-body); color: var(--soft); order: 2; }
.next-svc .t { font-size: var(--step-big); font-weight: 600; letter-spacing: -0.045em; line-height: 1; transition: transform .45s var(--ease); }
.next-svc a:hover .t { transform: translateX(-16px); }

/* ---------- work page ---------- */
.cases { padding-block: var(--section); display: grid; gap: clamp(96px, 10vw, 160px); }
.case { align-items: start; }
.case figure { grid-column: 1 / 8; background: var(--paper-2); aspect-ratio: 16 / 10; overflow: hidden; }
.case figure img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 1.2s var(--ease); }
.case:hover figure img { transform: scale(1.03); }
.case .txt { grid-column: 9 / 13; }
.case:nth-child(even) figure { grid-column: 6 / 13; order: 2; }
.case:nth-child(even) .txt { grid-column: 1 / 5; order: 1; }
.case h2 { font-size: var(--step-head); }
.case .meta { margin-top: 14px; color: var(--soft); }
.case p.d { margin-top: 20px; max-width: 40ch; }
.case .visit { margin-top: 20px; display: inline-block; }

/* ---------- contact page ---------- */
.contact-form { padding-block: var(--section); }
.contact-form .grid { align-items: start; }
.contact-form .aside { grid-column: 1 / 5; }
.contact-form .aside h2 { font-size: var(--step-head); }
.contact-form .aside p { margin-top: 20px; max-width: 34ch; }
.contact-form .aside dl { margin-top: 40px; display: grid; gap: 18px; }
.contact-form .aside dt { font-size: var(--step-small); color: var(--soft); }
.contact-form .aside dd a { font-size: var(--step-lead); text-decoration: none; }
.contact-form .aside dd a:hover { text-decoration: underline; }
.contact-form form { grid-column: 6 / 13; display: grid; grid-template-columns: 1fr 1fr; gap: 28px var(--gap); }
.contact-form form .full { grid-column: 1 / -1; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: var(--step-body); }
.consent input { width: 22px; height: 22px; margin-top: 2px; accent-color: var(--ink); flex: none; }
.hp { position: absolute; left: -9999px; }
.notice { padding: 18px 20px; font-weight: 500; }
.notice.ok { background: var(--blue); color: #fff; }
.notice.bad { background: var(--pink); color: var(--ink); }

/* ---------- legal ---------- */
.prose { padding-block: var(--section); }
.prose .body { max-width: 68ch; margin-left: 22vw; }
.prose h2 { font-size: var(--step-lead); letter-spacing: -0.025em; margin: 56px 0 14px; }
.prose p, .prose li { margin-bottom: 14px; }
.prose ul { list-style: disc; padding-left: 1.2em; }

/* ---------- 404 ---------- */
.lost { min-height: 100svh; display: grid; align-content: center; padding: 120px var(--m); }
.lost h1 { font-size: var(--step-big); max-width: 14ch; }
.lost p { margin-top: 24px; font-size: var(--step-lead); max-width: 38ch; }
.lost .code { margin-top: 40px; max-width: 560px; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .hero-side { position: relative; right: auto; top: auto; margin-top: 56px; width: min(26rem, 56vw); z-index: 2; }
  .preview { display: none; }
  .ledger { margin-left: 0; width: 100%; }
}
@media (max-width: 900px) {
  .top nav { display: none; }
  .menu-btn { display: inline-block; }
  .grid > * { grid-column: 1 / -1 !important; }
  .hero { min-height: 100svh; }
  .hero-copy { padding-top: 120px; max-width: 64vw; }
  .hero h1 { font-size: clamp(30px, 8vw, 44px); }
  .hero .lede { font-size: 17px; margin-top: 24px; }
  .hero .actions { flex-direction: column; align-items: flex-start; }
  .hero-word { writing-mode: vertical-rl; left: auto; right: -16vw; top: 84px; bottom: -4%; font-size: 56vw; line-height: .8; }
  .hero-word .caret { display: none; }
  .top { background: var(--paper); }
  .hero.inner { min-height: auto; padding-bottom: 72px; }
  .hero.inner .hero-copy { max-width: none; padding-right: 30vw; }
  .hero.inner .hero-word { font-size: 40vw; right: -12vw; top: 0; bottom: 0; }
  .intro { padding-block: 96px 80px; }
  .intro h2 { font-size: 10vw; }
  .intro .note { justify-self: start; margin-top: 20px; max-width: none; }
  .facts { margin-top: 64px; display: grid; grid-template-columns: 1fr 1fr; row-gap: 32px; }
  .facts dt { font-size: 26px; }
  .showcase { height: auto; padding-bottom: 0; }
  .showcase .head p { margin-top: 16px; }
  .specimens { margin-top: 48px; height: auto; overflow: visible; }
  .specimen { height: 34vw; overflow: hidden; margin: 0 calc(var(--m) * -1); padding: 16px var(--m) 0; }
  .specimen .word { font-size: 40vw; margin-left: -0.05em; }
  .specimen.us { background: var(--paper); color: var(--ink); }
  .compiler .head p { margin-top: 16px; }
  .compiler .body { margin-top: 40px; }
  .compiler .out { position: static; margin-top: 48px; }
  .about .row { grid-template-columns: 1fr; }
  .about .side { grid-template-columns: 1fr 1fr; order: 2; margin-top: 32px; }
  .about .row + .row { margin-top: 72px; }
  .about .lists { grid-template-columns: 1fr; row-gap: 40px; margin-top: 16px; }
  .about .wide { font-size: 19px; }
  .faq h2 { margin-bottom: 28px; font-size: 24px; }
  .faq .text { columns: 1; }
  .rows a, .rows div, .rows h2 { min-height: 84px; font-size: 8.6vw; padding: 0 16px 16px; }
  .rows .hello { justify-content: space-between; }
  .rows .hello .go { width: 56px; height: 56px; }
  .foot .links { margin-top: 48px; grid-template-columns: 1fr 1fr; }
  .foot .invite p.big { font-size: 11vw; }
  .foot .invite .btn { width: 100%; }
  .foot .giant { font-size: 38vw; }
  .steps .line { font-size: 8vw; }
  .steps li:nth-child(1) { --c: 1; } .steps li:nth-child(n) .line, .steps li:nth-child(n) .say { grid-column: 1 / -1 !important; }
  .steps li:nth-child(2) .line, .steps li:nth-child(2) .say { padding-left: 6vw; }
  .steps li:nth-child(3) .line, .steps li:nth-child(3) .say { padding-left: 12vw; }
  .steps li:nth-child(4) .line, .steps li:nth-child(4) .say { padding-left: 18vw; }
  .steps ol { gap: 40px; }
  .caps li a { grid-template-columns: 1fr; gap: 4px; padding: 12px 0; }
  .caps .t { font-size: 10vw; }
  .caps .d { text-align: left; }
  .work-photo { display: block; margin-bottom: 8px; aspect-ratio: 16 / 10; overflow: hidden; background: var(--paper-2); }
  .work-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
  .ledger li a { grid-template-columns: 1fr auto; min-height: 60px; }
  .ledger .kind { grid-column: 1 / -1; grid-row: 2; margin-top: -10px; padding-bottom: 8px; }
  .ledger li + li .work-photo { margin-top: 24px; }
  .svc-intro .code { margin-top: 40px; }
  .svc-intro.split .paras { margin-top: 24px; font-size: 19px; }
  .deliver ul { grid-template-columns: 1fr; }
  .case figure, .case .txt { grid-column: 1 / -1 !important; order: 0 !important; }
  .case .txt { margin-top: 24px; }
  .contact-form form { grid-template-columns: 1fr; margin-top: 48px; }
  .prose .body { margin-left: 0; }
  .next-svc a { flex-direction: column; gap: 6px; }
}


/* =================== motion layer v2 =================== */

/* scroll progress + cursor */
.progress { position: fixed; inset: 0 0 auto 0; height: 3px; background: var(--pink); transform-origin: 0 50%; transform: scaleX(0); z-index: 60; pointer-events: none; }
.cursor { position: fixed; left: 0; top: 0; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: var(--pink); z-index: 70; pointer-events: none; opacity: 0; transition: width .3s var(--ease), height .3s var(--ease), margin .3s var(--ease), opacity .3s ease; mix-blend-mode: multiply; }
.cursor.on { opacity: 1; }
.cursor.big { width: 56px; height: 56px; margin: -28px 0 0 -28px; opacity: .55; }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* split headings */
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.split .i { display: inline-block; will-change: transform; }

/* hero torus */
.hero-torus { position: absolute; right: -2vw; top: 40px; width: min(56vw, 860px); aspect-ratio: 1; z-index: 1; }
.torus canvas { width: 100%; height: 100%; display: block; }
.torus-cap { position: absolute; right: 10vw; top: 9%; font-size: var(--step-small); color: var(--soft); }
.torus-cap span { color: var(--pink); }
.hero .hero-word { z-index: 0; }
.hero-copy { z-index: 3; }

/* marquee */
.marquee { background: var(--ink); color: var(--paper); padding: 26px 0; overflow: hidden; }
.mq-row { overflow: hidden; white-space: nowrap; }
.mq-row + .mq-row { margin-top: 10px; }
.mq-track { display: inline-flex; align-items: center; gap: 0; will-change: transform; }
.mq-track span { font-size: var(--step-big); font-weight: 600; letter-spacing: -0.04em; line-height: 1.05; padding: 0 .35em; }
.mq-row.rev .mq-track span { font-weight: 250; color: var(--on-dark-soft); }
.mq-o { width: .5em; height: .5em; font-size: var(--step-big); color: var(--pink); flex: none; }
.mq-row.rev .mq-o { color: var(--blue); }

/* morph scene: draft becomes craft */
.morph { position: relative; overflow: hidden; }
.mo-pin { min-height: 100svh; display: grid; grid-template-rows: auto 1fr auto; padding-top: 96px; padding-bottom: 56px; }
.mo-head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: start; }
.mo-head h2 { grid-column: 1 / 6; font-size: var(--step-head); }
.mo-head p { grid-column: 7 / 12; max-width: 52ch; }
.mo-cap { align-self: end; position: relative; height: 1.6em; font-size: var(--step-lead); margin-bottom: 8px; }
.mo-cap span { position: absolute; left: 0; top: 0; }
.mo-cap .mo-b { opacity: 0; }
.mo-word { font-size: clamp(160px, 30vw, 560px); line-height: .78; letter-spacing: -0.05em; white-space: nowrap; font-variation-settings: "wght" 200; margin-left: -0.04em; }
.mo-meter { height: 4px; background: rgba(243, 242, 247, .25); margin-top: 32px; }
.mo-meter span { display: block; height: 100%; background: var(--pink); transform-origin: 0 50%; transform: scaleX(0); }

/* horizontal services */
.hs { position: relative; background: var(--paper); overflow: clip; }
.hs-pin { height: 100svh; display: grid; grid-template-rows: auto 1fr auto; overflow: hidden; padding-top: 88px; }
.hs-head { display: flex; justify-content: space-between; align-items: end; gap: 32px; }
.hs-head h2 { font-size: var(--step-head); }
.hs-head p { max-width: 32ch; }
.hs-track { display: flex; gap: var(--gap); padding: 40px var(--m) 24px; width: max-content; align-items: stretch; will-change: transform; }
.panel { width: min(64vw, 900px); display: grid; grid-template-rows: auto auto 1fr auto; padding: clamp(28px, 3vw, 48px); min-height: 0; }
.panel .p-t { font-size: clamp(56px, 8vw, 150px); letter-spacing: -0.05em; line-height: .9; }
.panel .p-d { margin-top: 18px; font-size: var(--step-lead); line-height: 1.3; max-width: 30ch; }
.panel .p-l { margin-top: 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; align-content: start; }
.panel .p-l li { padding-left: 1.2em; position: relative; }
.panel .p-l li::before { content: ""; position: absolute; left: 0; top: .55em; width: .5em; height: .5em; border-radius: 50%; border: 2px solid currentColor; }
.panel .p-btn { justify-self: start; margin-top: 24px; }
.field-pink .p-btn { background: var(--ink); color: var(--paper); }
.hs-bar { height: 4px; margin: 0 var(--m) 28px; background: var(--paper-2); }
.hs-bar span { display: block; height: 100%; background: var(--ink); transform-origin: 0 50%; transform: scaleX(0); }

/* code typing caret */
.code.typing code::after { content: ""; display: inline-block; width: .55em; height: 1.1em; background: var(--pink); vertical-align: text-bottom; animation: blink 1s steps(1) infinite; }

/* band: opens like a window */
.band { clip-path: inset(0 0 0 0); }

/* ledger preview follows the pointer */
.preview { transition: opacity .2s ease; will-change: transform; }

/* contact rows wipe */
.rows > * { position: relative; }

/* footer letters */
.foot .giant span { display: inline-block; will-change: transform; }

@media (max-width: 900px) {
  .hero-torus { position: relative; right: auto; top: auto; width: min(70vw, 340px); margin: 32px 0 0 -12px; z-index: 2; }
  .torus-cap { display: none; }
  .mo-head h2, .mo-head p { grid-column: 1 / -1 !important; }
  .mo-head p { margin-top: 16px; }
  .mo-word { font-size: 34vw; }
  .mo-pin { min-height: 88svh; }
  .hs-pin { height: auto; padding-top: 72px; }
  .hs-head { flex-direction: column; align-items: start; }
  .hs-track { flex-direction: column; width: auto; padding: 32px var(--m) 72px; }
  .panel { width: 100%; }
  .panel .p-l { grid-template-columns: 1fr; }
  .hs-bar { display: none; }
  .mq-track span, .mq-o { font-size: 40px; }
}

@media (max-width: 600px) {
  .hero-side { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .hero-word .caret { animation: none; }
}

/* =================== service labs =================== */
.lab { padding-block: var(--section); background: var(--paper-2); }
.lab-head { align-items: end; }
.lab-head h2 { grid-column: 1 / 7; font-size: var(--step-head); }
.lab-head p { grid-column: 8 / 13; max-width: 46ch; }
.lab-body { margin-top: 56px; }
.lab-split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 4vw, 72px); align-items: start; }
.lab-form { display: grid; gap: 28px; align-content: start; }
.lab-ui { background: var(--paper); padding: clamp(16px, 2vw, 28px); }
.lab-fine { font-size: var(--step-small); color: var(--soft); margin-top: 14px; max-width: 60ch; }
.lab-send { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; }
.lab-send .lab-fine { margin: 0; }

.seg { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.seg button { min-height: 44px; padding: 0 16px; border: 0; background: var(--paper); cursor: pointer; font-size: var(--step-body); transition: background-color .2s ease, color .2s ease, transform .2s var(--ease); }
.lab-ui .seg button, .rs-bar .seg button { background: var(--paper-2); }
.seg button:hover { background: #dcd9ea; }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.seg button:active { transform: scale(.97); }
.wrapseg button { flex: 1 1 calc(50% - 6px); }

.sl label { display: flex; justify-content: space-between; gap: 16px; font-weight: 600; margin-bottom: 10px; }
.sl output { font-weight: 500; font-variant-numeric: tabular-nums; color: var(--blue); }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: transparent; cursor: pointer; }
input[type="range"]::-webkit-slider-runnable-track { height: 6px; background: linear-gradient(var(--ink), var(--ink)) 0 / var(--fill, 50%) 100% no-repeat, var(--paper); } /* taste-skill-ignore: slider fill */
input[type="range"]::-moz-range-track { height: 6px; background: var(--paper); }
input[type="range"]::-moz-range-progress { height: 6px; background: var(--ink); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; margin-top: -10px; border-radius: 50%; background: var(--pink); border: 3px solid var(--paper); transition: transform .2s var(--ease); }
input[type="range"]::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--pink); border: 3px solid var(--paper); }
input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.2); }

/* responsive preview */
.rs-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; margin-bottom: 18px; }
.rs-read { font-size: var(--step-body); } .rs-read b { font-variant-numeric: tabular-nums; margin-right: 8px; }
.rs-stage { background: var(--paper-2); padding: 18px; overflow: hidden; height: 560px; }
.rs-frame { position: relative; max-width: 100%; min-width: 320px; height: 100%; background: #fff; container-type: inline-size; transition: width .6s var(--ease); }
.rs-frame.drag { transition: none; }
.rs-page { height: 100%; overflow: hidden; font-size: 14px; color: #1d1b16; }
.rs-handle { position: absolute; right: -14px; top: 50%; width: 28px; height: 72px; margin-top: -36px; background: var(--ink); border: 0; cursor: ew-resize; display: grid; place-items: center; touch-action: none; }
.rs-handle span { width: 4px; height: 28px; border-left: 2px solid var(--paper); border-right: 2px solid var(--paper); }
.mk-nav { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; border-bottom: 1px solid #eee; }
.mk-logo { font-weight: 700; letter-spacing: -.02em; font-size: 16px; }
.mk-links { display: flex; gap: 18px; } .mk-links i { font-style: normal; }
.mk-burger { display: none; width: 22px; } .mk-burger i { display: block; height: 2px; background: #1d1b16; margin: 4px 0; }
.mk-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: center; padding: 22px 18px; background: #f4efe6; }
.mk-h { font-size: 30px; font-weight: 700; letter-spacing: -.03em; line-height: 1.02; }
.mk-p { margin: 10px 0 14px; color: #5b5547; }
.mk-btn { display: inline-block; background: #1d1b16; color: #fff; padding: 9px 14px; font-weight: 600; }
.mk-img { aspect-ratio: 4/3; background: #c9b79c; border-radius: 50% 50% 0 0; }
.mk-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; padding: 18px; }
.mk-card p { margin: 8px 0 2px; } .mk-card b { font-variant-numeric: tabular-nums; }
.mk-ph { aspect-ratio: 1; background: #e8e2d6; position: relative; }
.mk-ph::after { content: ""; position: absolute; inset: 22% 25%; border-radius: 50% 50% 46% 46%; }
.mk-ph.a::after { background: #6f9ba3; } .mk-ph.b::after { background: #ece8df; border-radius: 12%; inset: 26% 30%; } .mk-ph.c::after { background: #b9a07a; border-radius: 50%; inset: 20%; } .mk-ph.d::after { background: #a4522e; inset: 12% 34%; }
@container (max-width: 900px) { .mk-grid { grid-template-columns: repeat(2, 1fr); } .mk-h { font-size: 26px; } }
@container (max-width: 560px) { .mk-links { display: none; } .mk-burger { display: block; } .mk-hero { grid-template-columns: 1fr; } .mk-img { order: -1; aspect-ratio: 16/9; } .mk-h { font-size: 24px; } }
@container (max-width: 380px) { .mk-grid { grid-template-columns: 1fr 1fr; gap: 10px; } }

/* serp */
.serp-wrap { font-family: arial, sans-serif; }
.serp-q { display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 24px; background: #fff; box-shadow: 0 1px 6px rgba(32, 33, 36, .28); margin-bottom: 22px; color: #202124; font-size: 16px; }
.serp-ico { width: 14px; height: 14px; border: 2px solid #70757a; border-radius: 50%; position: relative; } .serp-ico::after { content: ""; position: absolute; width: 6px; height: 2px; background: #70757a; right: -6px; bottom: -3px; transform: rotate(45deg); }
.serp { background: #fff; padding: 16px; max-width: 652px; transition: max-width .5s var(--ease); }
.serp[data-dev="mobile"] { max-width: 390px; border-radius: 10px; box-shadow: 0 1px 6px rgba(32, 33, 36, .18); }
.serp-site { display: flex; gap: 10px; align-items: center; margin-bottom: 6px; }
.serp-fav { width: 28px; height: 28px; border-radius: 50%; background: #f1f3f4; display: grid; place-items: center; font-weight: 700; color: #202124; font-size: 14px; }
.serp-site b { display: block; font-size: 14px; font-weight: 400; color: #202124; } .serp-site small { font-size: 12px; color: #4d5156; }
.serp-title { font-family: arial, sans-serif; font-size: 20px; line-height: 1.3; font-weight: 400; letter-spacing: 0; color: #1a0dab; margin: 2px 0 4px; text-wrap: initial; }
.serp[data-dev="mobile"] .serp-title { font-size: 18px; }
.serp-desc { font-size: 14px; line-height: 1.58; color: #4d5156; }
.meter { display: flex; align-items: center; gap: 12px; margin-top: 8px; font-size: var(--step-small); }
.m-bar { flex: 1; height: 6px; background: var(--paper); position: relative; overflow: hidden; } .m-bar i { position: absolute; inset: 0 auto 0 0; background: var(--blue); transition: width .3s var(--ease), background-color .3s ease; }
.meter.warn .m-bar i { background: var(--pink); } .meter.short .m-bar i { background: #b9b4d6; }
.m-txt { min-width: 20ch; text-align: right; }

/* roas */
.ro-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px 18px; }
.ro-kpis dt { font-size: var(--step-small); color: var(--soft); }
.ro-kpis dd { font-size: clamp(26px, 2.6vw, 40px); font-weight: 600; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.ro-bars { margin-top: 28px; display: grid; gap: 10px; }
.ro-bars div { display: grid; grid-template-columns: 90px 1fr; gap: 12px; align-items: center; font-size: var(--step-small); }
.ro-bars i { height: 22px; background: var(--blue); transform-origin: 0 50%; transition: transform .5s var(--ease), background-color .3s ease; }
.ro-bars i[data-bar="spend"] { background: var(--ink); } .ro-bars i[data-bar="profit"] { background: var(--pink); } .ro-bars i.neg { background: #c4002f; }
.ro-verdict { margin-top: 22px; font-size: var(--step-lead); line-height: 1.3; font-weight: 500; letter-spacing: -0.015em; }

/* calendar */
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.cal-day { background: var(--paper-2); min-height: 260px; padding: 8px; display: flex; flex-direction: column; gap: 6px; }
.cal-day h4 { font-size: var(--step-small); font-weight: 600; margin: 0 0 4px; }
.cal-post { padding: 8px; color: #fff; font-size: 13px; line-height: 1.25; }
.cal-post b { display: block; font-weight: 600; } .cal-post span { opacity: .9; }
.cal-post.Instagram { background: var(--violet); } .cal-post.TikTok { background: var(--ink); } .cal-post.Facebook { background: var(--blue); } .cal-post.LinkedIn { background: #0f7b5f; }
.cal-sum { margin-top: 16px; font-size: var(--step-body); }

/* reframe */
.rf-stage { background: var(--ink); height: 460px; display: grid; place-items: center; padding: 18px; }
.rf-frame { position: relative; height: 100%; max-width: 100%; overflow: hidden; transition: aspect-ratio .7s var(--ease); background: #000; }
.rf-scene { position: absolute; inset: 0; }
.rf-sky { position: absolute; inset: 0; background: #ffb38a; }
.rf-sun { position: absolute; width: 22%; aspect-ratio: 1; border-radius: 50%; background: #ff2e63; left: 58%; top: 18%; }
.rf-hill { position: absolute; border-radius: 50% 50% 0 0; }
.rf-hill.h1 { width: 140%; height: 50%; left: -40%; bottom: -14%; background: #6e2bf2; }
.rf-hill.h2 { width: 120%; height: 40%; left: 30%; bottom: -16%; background: #2b3cff; }
.rf-subject { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); width: 18%; min-width: 60px; display: grid; justify-items: center; }
.rf-head { width: 44%; aspect-ratio: 1; border-radius: 50%; background: #120e2b; }
.rf-body { width: 100%; aspect-ratio: 1 / 1.1; background: #120e2b; border-radius: 40% 40% 0 0; margin-top: 4%; }
.rf-title { position: absolute; left: 6%; top: 7%; color: #120e2b; font-weight: 700; font-size: clamp(14px, 2vw, 26px); letter-spacing: -0.03em; }
.rf-safe { position: absolute; inset: 0; pointer-events: none; }
.rf-safe .z { position: absolute; background: rgba(18, 14, 43, .55); color: #fff; font-size: 11px; display: grid; place-items: center; text-align: center; padding: 4px; }
.rf-safe .t { position: absolute; inset: 10% 10%; outline: 2px dashed rgba(255, 255, 255, .85); }
.rf-label { position: absolute; right: 8px; bottom: 8px; background: var(--paper); color: var(--ink); font-size: 13px; padding: 4px 8px; font-weight: 600; }
.rf-time { position: relative; margin-top: 16px; height: 38px; }
.rf-shots { display: flex; gap: 3px; height: 100%; }
.rf-shots span { flex: var(--d) 1 0; background: var(--paper-2); font-size: 11px; display: grid; place-items: center; transition: background-color .3s ease, color .3s ease, opacity .3s ease; }
.rf-shots span.in { background: var(--blue); color: #fff; }
.rf-play { position: absolute; top: -4px; bottom: -4px; width: 3px; background: var(--pink); left: 0; }

/* brand */
.swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.sw { width: 44px; height: 44px; border: 3px solid var(--paper-2); cursor: pointer; padding: 0; transition: transform .2s var(--ease); }
.sw:hover { transform: scale(1.08); } .sw[aria-pressed="true"] { border-color: var(--ink); }
.sw.pick { position: relative; background: conic-gradient(#ff2e63, #f2a900, #0f7b5f, #2b3cff, #6e2bf2, #ff2e63); overflow: hidden; } /* taste-skill-ignore: colour picker wheel */
.sw.pick input { position: absolute; inset: -8px; width: 60px; height: 60px; opacity: 0; cursor: pointer; }
.br-out { --b: #2b3cff; --on: #fff; --r: 0px; --bf: var(--font); }
.br-row { display: grid; grid-template-columns: 1.4fr 1fr; gap: 18px; align-items: stretch; }
.br-card { background: #fff; padding: 22px; border-radius: var(--r); display: grid; gap: 4px; align-content: start; min-height: 220px; box-shadow: 0 1px 0 var(--paper-2); }
.br-mark { width: 40px; height: 40px; background: var(--b); border-radius: calc(var(--r) * 1.4); margin-bottom: 26px; transition: background-color .3s ease, border-radius .3s ease; }
.br-n { font-family: var(--bf); font-size: 30px; font-weight: 700; letter-spacing: -0.03em; line-height: 1; color: var(--b); transition: color .3s ease; }
.br-s { color: #555; } .br-c { margin-top: auto; font-size: 13px; color: #555; }
.br-post { background: var(--b); color: var(--on); padding: 22px; border-radius: var(--r); aspect-ratio: 1; display: flex; flex-direction: column; transition: background-color .3s ease, border-radius .3s ease; }
.br-pn { font-family: var(--bf); font-size: 26px; font-weight: 700; line-height: 1; letter-spacing: -0.02em; }
.br-pb { margin-top: 10px; font-size: 14px; }
.br-btn { margin-top: auto; align-self: flex-start; background: var(--on); color: var(--b); padding: 9px 14px; font-weight: 700; border-radius: var(--r); font-size: 14px; }
.br-contrast { margin: 16px 0; font-size: var(--step-small); }
.br-out .code { margin-top: 0; }
.code .copy { background: var(--paper); color: var(--ink); border: 0; padding: 4px 10px; cursor: pointer; font-size: 13px; }

/* prototype */
.flow { display: grid; gap: 10px; counter-reset: f; }
.flow li { display: flex; gap: 12px; align-items: center; font-size: var(--step-lead); color: var(--soft); transition: color .3s ease; }
.flow li::before { counter-increment: f; content: counter(f); width: 34px; height: 34px; border-radius: 50%; background: var(--paper); display: grid; place-items: center; font-size: 15px; font-weight: 600; transition: background-color .3s ease, color .3s ease; }
.flow li.on { color: var(--ink); } .flow li.on::before { background: var(--pink); color: var(--ink); }
.flow li.done::before { background: var(--ink); color: var(--paper); }
.phone-wrap { display: grid; place-items: center; background: var(--paper); padding: 28px; }
.phone { width: 300px; height: 610px; background: #fff; border: 10px solid var(--ink); border-radius: 46px; position: relative; overflow: hidden; display: grid; grid-template-rows: 40px 1fr 22px; font-family: var(--font); }
.phone.android { border-radius: 26px; }
.ph-status { display: flex; justify-content: space-between; align-items: center; padding: 0 22px; font-size: 13px; font-weight: 600; }
.ph-notch { width: 90px; height: 24px; background: var(--ink); border-radius: 0 0 14px 14px; align-self: start; }
.android .ph-notch { width: 12px; height: 12px; border-radius: 50%; align-self: center; }
.ph-screens { position: relative; overflow: clip; }
button.link { background: none; border: 0; padding: 0; cursor: pointer; font-size: var(--step-body); justify-self: start; min-height: 44px; }
.ph-s { position: absolute; inset: 0; padding: 18px 18px; display: flex; flex-direction: column; gap: 10px; transform: translateX(100%); opacity: 0; transition: transform .55s var(--ease), opacity .3s ease; }
.ph-s.on { transform: none; opacity: 1; } .ph-s.out { transform: translateX(-30%); opacity: 0; }
.ph-hero { height: 250px; background: var(--blue); border-radius: 18px; position: relative; overflow: hidden; }
.ph-hero::after { content: ""; position: absolute; width: 160px; height: 160px; border: 26px solid var(--pink); border-radius: 50%; right: -30px; bottom: -40px; }
.ph-h { font-size: 28px; font-weight: 700; letter-spacing: -0.03em; line-height: 1.05; margin-top: 6px; }
.ph-h2 { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
.ph-p { color: #555; font-size: 15px; }
.ph-btn { margin-top: auto; min-height: 50px; border: 0; background: var(--ink); color: #fff; font-weight: 600; font-size: 16px; border-radius: 14px; cursor: pointer; }
.android .ph-btn { border-radius: 26px; }
.ph-btn.ghost { background: var(--paper-2); color: var(--ink); }
.ph-row { display: flex; justify-content: space-between; align-items: center; min-height: 64px; padding: 0 14px; background: var(--paper); border: 0; border-radius: 14px; cursor: pointer; font-size: 16px; text-align: left; transition: background-color .2s ease, transform .2s var(--ease); }
.ph-row b { font-weight: 500; font-size: 13px; color: #555; }
.ph-row:hover { background: var(--paper-2); } .ph-row:active { transform: scale(.98); }
.ph-slots { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.ph-slots button { min-height: 52px; border: 2px solid var(--paper-2); background: #fff; border-radius: 12px; font-size: 16px; cursor: pointer; transition: border-color .2s ease, background-color .2s ease; }
.ph-slots button:hover { border-color: var(--ink); } .ph-slots button:disabled { opacity: .35; text-decoration: line-through; cursor: not-allowed; }
.ph-check { width: 96px; height: 96px; border-radius: 50%; background: var(--pink); margin: 70px auto 6px; position: relative; }
.ph-check::after { content: ""; position: absolute; left: 30px; top: 22px; width: 24px; height: 44px; border: solid var(--ink); border-width: 0 7px 7px 0; transform: rotate(45deg); }
.ph-s[data-s="3"] { text-align: center; }
.ph-home { width: 110px; height: 5px; border-radius: 3px; background: var(--ink); justify-self: center; align-self: center; }

@media (max-width: 900px) {
  .lab-head h2, .lab-head p { grid-column: 1 / -1 !important; }
  .lab-head p { margin-top: 16px; }
  .lab-split { grid-template-columns: 1fr; }
  .rs-stage { height: 480px; padding: 10px; }
  .ro-kpis { grid-template-columns: 1fr 1fr; }
  .cal { grid-template-columns: 1fr; }
  .cal-day { min-height: 0; flex-direction: row; flex-wrap: wrap; align-items: center; }
  .cal-day h4 { width: 100%; }
  .rf-stage { height: 380px; }
  .br-row { grid-template-columns: 1fr; }
  .br-post { aspect-ratio: auto; min-height: 220px; }
  .phone { width: 280px; height: 570px; }
}
.lab .chip span { background: var(--paper); } .lab .chip span:hover { background: #fff; } .lab .chip input:checked + span { background: var(--ink); }

/* =================== v3: smart nav, mega dropdown, transitions =================== */
.top { position: fixed; transition: transform .45s var(--ease), background-color .3s ease, padding .3s ease; padding: 20px var(--m); gap: 24px; }
.top.scrolled { background: var(--paper); padding-block: 12px; }
.top.hide { transform: translateY(-100%); }
.top.dd-open { background: var(--paper); transform: none; }
.top nav { margin-left: auto; }
.top nav ul { align-items: center; }
.top-cta { min-height: 44px; padding: 0 18px; font-size: var(--step-small); }
.dd-btn { display: inline-flex; align-items: center; gap: 8px; background: none; border: 0; padding: 10px 0; cursor: pointer; font-size: var(--step-body); position: relative; }
.dd-btn svg { width: 12px; height: 8px; transition: transform .35s var(--ease); }
.dd-btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.dd-btn::after { content: ""; position: absolute; left: 0; right: 20px; bottom: 4px; height: 2px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.dd-btn:hover::after, .dd-btn[data-current]::after, .dd-btn[aria-expanded="true"]::after { transform: scaleX(1); }
.dd { position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); padding: 8px var(--m) 36px; box-shadow: 0 24px 48px -24px rgba(18, 14, 43, .35); }
.dd:not([hidden]) { animation: ddIn .5s var(--ease) both; }
@keyframes ddIn { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
.dd-in { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(24px, 4vw, 64px); }
.dd-h { font-size: var(--step-lead); font-weight: 600; letter-spacing: -0.02em; }
.dd-p { margin: 8px 0 14px; color: var(--soft); max-width: 34ch; }
.dd-code { margin-top: 24px; } .dd-code pre { font-size: 12.5px; max-height: 210px; overflow: hidden; }
.dd-list { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 24px; }
.dd-list a { display: grid; gap: 2px; padding: 14px 16px; text-decoration: none; transition: background-color .2s ease; }
.dd-list a:hover, .dd-list a:focus-visible, .dd-list a.on { background: var(--paper-2); }
.dd-n { font-size: clamp(22px, 2vw, 32px); font-weight: 600; letter-spacing: -0.03em; line-height: 1.05; transition: color .2s ease, transform .35s var(--ease); display: inline-block; }
.dd-list a:hover .dd-n, .dd-list a.on .dd-n { color: var(--blue); transform: translateX(6px); }
.dd-l { font-size: var(--step-small); color: var(--soft); }
.sheet-main { margin-top: auto; }
.sheet-sub-btn { display: flex; justify-content: space-between; align-items: center; width: 100%; background: none; border: 0; color: inherit; font-size: 13vw; font-weight: 600; letter-spacing: -0.04em; line-height: 1.02; padding: 4px 0; cursor: pointer; text-align: left; }
.sheet-sub-btn span { font-weight: 300; transition: transform .35s var(--ease); }
.sheet-sub-btn[aria-expanded="true"] span { transform: rotate(45deg); }
.sheet .sheet-sub { margin: 4px 0 10px; }
.sheet .sheet-sub a { font-size: 7vw; font-weight: 400; color: var(--on-dark-soft); padding: 3px 0; }
.sheet .sheet-sub a:hover { color: var(--pink); }
.sheet ul { margin-top: 0; }

/* page transition */
.pt { position: fixed; inset: 0; z-index: 90; background: var(--ink); display: grid; place-items: center; pointer-events: none; transform: scaleY(0); transform-origin: bottom; }
.pt svg { width: 72px; height: 72px; }
html.pt-in .pt { transform: scaleY(1); transform-origin: top; }

/* live clock */
[data-clock] dt { white-space: nowrap; }

/* buttons roll their label on hover */
.btn { overflow: hidden; }
.btn .roll { display: inline-grid; overflow: hidden; line-height: 1.25; }
.btn .roll > span { grid-area: 1 / 1; transition: transform .45s var(--ease); }
.btn .roll > span + span { transform: translateY(110%); }
.btn:hover .roll > span:first-child { transform: translateY(-110%); }
.btn:hover .roll > span + span { transform: none; }

/* proximity letters */
.prox span { display: inline-block; transition: font-variation-settings .25s ease; }

/* footer ring */
.foot .top-row { position: relative; }
.foot-ring { position: absolute; right: 31%; top: -30px; width: min(28vw, 400px); aspect-ratio: 1; pointer-events: none; opacity: .9; }

/* tilt */
[data-tilt] { transform-style: preserve-3d; will-change: transform; }

/* contact rows arrow */
.rows a { justify-content: space-between; }
.rows a:not(.hello)::after { content: "↗"; font-size: .6em; opacity: 0; transform: translate(-20px, 10px); transition: opacity .3s ease, transform .45s var(--ease); align-self: center; }
.rows a:not(.hello):hover::after { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .top-cta, .dd { display: none !important; }
  .top { padding: 16px 20px; }
  .foot-ring { position: relative; right: auto; top: auto; width: 60vw; margin: 24px 0 0; }
}
