/* Aletheia — homepage prototype
   Palette from where we work: paper, indigo night, marigold, sindoor.
   One sans (Bricolage Grotesque) for everything, one serif italic (Fraunces) for the word that matters. */

@font-face { font-family: "Bricolage"; src: url("../assets/fonts/BricolageGrotesque-var.woff2") format("woff2"); font-weight: 200 800; font-stretch: 75% 100%; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("../assets/fonts/Fraunces-Italic-var.woff2") format("woff2"); font-weight: 300 700; font-style: italic; font-display: swap; }
@font-face { font-family: "JBMono"; src: url("../assets/fonts/JetBrainsMono-var.woff2") format("woff2"); font-weight: 400 600; font-display: swap; }

:root {
  --paper: #f5f0e6;
  --paper-2: #ebe3d3;
  --ink: #16130e;
  --ink-2: #554f43;
  --night: #0f1136;
  --cobalt: #2747ff;
  --marigold: #ffb400;
  --sindoor: #f24b2a;
  --leaf: #0e6b50;
  --lilac: #cfc8ff;
  --blush: #ffd8c6;
  --mint: #cfe9d6;

  --f-d: "Bricolage", "Helvetica Neue", Arial, sans-serif;
  --f-s: "Fraunces", Georgia, serif;
  --f-m: "JBMono", ui-monospace, Menlo, monospace;

  --pad: clamp(1.1rem, 4.5vw, 5rem);
  --sheet: clamp(20px, 2.6vw, 40px);
  --ease: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
html.is-loading, html.is-loading body { overflow: hidden; height: 100%; }
:focus-visible { outline: 3px solid var(--marigold); outline-offset: 4px; }
.skip { position: fixed; left: 1rem; top: -5rem; z-index: 200; padding: .7rem 1rem; border-radius: 10px; background: var(--ink); color: var(--paper); font-weight: 700; transition: top .3s var(--ease); }
.skip:focus { top: 1rem; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-d);
  font-size: clamp(1rem, .94rem + .28vw, 1.2rem);
  line-height: 1.45;
  font-variation-settings: "opsz" 14;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
main { overflow-x: clip; }
img, video { display: block; max-width: 100%; }
/* images carry width/height attributes so the page can reserve their space; without this the
   height attribute would be taken literally and stretch them */
img { height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
::selection { background: var(--marigold); color: var(--ink); }

em {
  font-family: var(--f-s);
  font-style: italic;
  font-weight: 380;
  font-stretch: 100%;
  letter-spacing: -.025em;
  font-variation-settings: "SOFT" 100, "opsz" 144;
}

h1, h2, h3 { font-weight: 800; font-variation-settings: "opsz" 96; text-wrap: balance; }

.eyebrow, .label {
  font-family: var(--f-m);
  font-size: .74rem;
  font-weight: 500;
  letter-spacing: .04em;
  text-transform: uppercase;
}

/* ───────────── loader ───────────── */
.loader { position: fixed; inset: 0; z-index: 100; color: var(--paper); background: var(--cobalt); }
.loader__grid { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(var(--cols, 9), 1fr); grid-template-rows: repeat(var(--rows, 6), 1fr); }
.loader__grid i { background: var(--cobalt); box-shadow: 0 0 0 .6px var(--cobalt); will-change: opacity, transform; }
.loader__count {
  position: absolute; left: var(--pad); bottom: calc(var(--pad) * .6);
  font-size: clamp(6rem, 26vw, 24rem); font-weight: 800; font-stretch: 75%; line-height: .8; letter-spacing: -.05em;
  font-variant-numeric: tabular-nums; overflow: hidden; padding-top: .08em;
}
.loader__count sup { display: inline-block; font-family: var(--f-s); font-style: italic; font-weight: 300; font-size: .28em; vertical-align: top; margin-left: .1em; letter-spacing: 0; }
.loader__num { display: inline-block; }
.loader__words { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.loader__w { display: block; overflow: hidden; }
/* the welcome stays hidden until the loader script has moved it out of frame, so a slow connection never shows it early */
.loader__w > span { display: block; visibility: hidden; }
html.no-intro .loader__count, html.no-intro .loader__meta { visibility: hidden; }
.loader__w--1 { font-size: clamp(1.1rem, 2.2vw, 2rem); font-weight: 500; letter-spacing: -.01em; }
.loader__w--2 { font-size: clamp(4rem, 15vw, 15rem); line-height: 1; padding: 0 .06em .14em; }
.loader__w--2 em { font-weight: 340; }
.loader__meta { position: absolute; right: var(--pad); top: calc(var(--pad) * .6); display: flex; gap: 2rem; font-family: var(--f-m); font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; }

/* ───────────── nav / chrome ───────────── */
.nav {
  position: fixed; z-index: 50; top: 0; left: 0; right: 0;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem var(--pad);
  color: var(--ink);
  transition: color .5s var(--ease);
  pointer-events: none;
}
.nav > * { pointer-events: auto; }
.nav__brand { display: flex; align-items: center; gap: .55rem; font-weight: 800; font-size: clamp(1.3rem, 1.25vw + .95rem, 1.75rem); letter-spacing: -.035em; white-space: nowrap; }
.nav__brand { display: grid; }
.nav__brand .logo { grid-area: 1 / 1; height: clamp(1.9rem, 1.1vw + 1.45rem, 2.6rem); width: auto; transition: opacity .5s var(--ease); }
.nav__brand .logo--light { opacity: 0; }
.nav[data-tone="light"] .logo--dark, html.menu-open .nav .logo--dark { opacity: 0; }
.nav[data-tone="light"] .logo--light, html.menu-open .nav .logo--light { opacity: 1; }
.nav__brand .m-a { fill: var(--cobalt); transition: fill .5s var(--ease); }
.nav__brand .m-b { fill: var(--sindoor); transition: fill .5s var(--ease); }
.nav__links { display: flex; gap: clamp(1rem, 2.4vw, 2.4rem); font-size: .95rem; font-weight: 500; }
.nav__links a { position: relative; padding: .2rem 0; }
.nav__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease); }
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav__cta { display: inline-flex; align-items: center; gap: .5rem; padding: .62rem 1rem .62rem 1.15rem; border-radius: 99px; background: var(--ink); color: var(--paper); font-size: .92rem; font-weight: 600; transition: background .4s var(--ease), color .4s var(--ease), transform .4s var(--ease); }
.nav__cta i { font-style: normal; display: inline-block; transition: transform .4s var(--ease); }
.nav__cta:hover { background: var(--marigold); color: var(--ink); transform: rotate(-2deg); }
.nav__cta:hover i { transform: translate(2px, -2px); }
.nav[data-tone="light"] { color: var(--paper); }
.nav[data-tone="light"] .m-a { fill: var(--paper); }
.nav[data-tone="light"] .m-b { fill: var(--marigold); }
.nav[data-tone="light"] .nav__cta { background: var(--paper); color: var(--ink); }
.nav[data-tone="light"] .nav__cta:hover { background: var(--marigold); }

.progress { position: fixed; z-index: 49; right: clamp(8px, 1.1vw, 18px); top: 50%; width: 2px; height: 110px; transform: translateY(-50%); background: rgba(255, 255, 255, .28); mix-blend-mode: difference; }
.progress i { position: absolute; inset: 0; background: #fff; transform: scaleY(0); transform-origin: top; }

.cursor { display: none; }
@media (hover: hover) and (pointer: fine) {
  .cursor { display: block; position: fixed; z-index: 90; left: 0; top: 0; pointer-events: none; }
  .cursor__label {
    position: absolute; left: 14px; top: 14px; white-space: nowrap;
    padding: .5rem .85rem; border-radius: 99px 99px 99px 0;
    background: var(--marigold); color: var(--ink);
    font-size: .82rem; font-weight: 700; letter-spacing: -.01em;
    transform: scale(0) rotate(-14deg); transform-origin: 0 100%;
  }
  .cursor__label.is-left { left: auto; right: 14px; border-radius: 99px 99px 0 99px; transform-origin: 100% 100%; }
}

/* ───────────── image series slots ─────────────
   Each .art shows the photograph when its file exists; until then a flat colour tile
   with the A-mark slant and the shot number, so empty slots still read as designed. */
.art { position: relative; overflow: hidden; background: var(--c, var(--paper-2)); color: var(--t, var(--ink)); }
.art img { width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 50%); display: block; }
.art.is-missing img { display: none; }
.art.is-missing::before { content: ""; position: absolute; left: 22%; top: -12%; width: 24%; height: 124%; background: currentColor; opacity: .09; transform: skewX(-31deg); }
.art.is-missing::after { content: attr(data-shot); position: absolute; left: .75em; bottom: .65em; font: 500 .62rem/1 var(--f-m); letter-spacing: .06em; text-transform: uppercase; opacity: .75; }

/* ───────────── live demos ─────────────
   Small working interface pieces, one per service. Sized in em so the same markup
   works in a service card and, smaller, as a hero card. They run on a clock, not on scroll. */
.demo { position: relative; width: 100%; height: 100%; overflow: hidden; display: flex; flex-direction: column; font-family: var(--f-m); font-size: clamp(8px, .72vw, 12px); line-height: 1.45; border-radius: inherit; text-align: left; }
.demo--night { background: var(--night); color: #dcd8ff; }
.demo--paper { background: var(--paper-2); color: var(--ink); }
.demo__bar { flex: none; display: flex; align-items: center; justify-content: space-between; gap: .6em; padding: .7em 1em; font-size: .82em; letter-spacing: .05em; text-transform: uppercase; border-bottom: 1px solid rgba(255, 255, 255, .1); color: #9c9ad0; }
.demo__bar .dot { width: .6em; height: .6em; border-radius: 50%; background: var(--marigold); }
.dm-tag, .dm-stage { position: absolute; right: 1em; top: .9em; font-size: .78em; letter-spacing: .05em; text-transform: uppercase; padding: .2em .7em; border-radius: 99px; background: var(--ink); color: var(--paper); white-space: nowrap; }

.dm-body { flex: 1; min-height: 0; padding: .8em 1em; display: flex; flex-direction: column; gap: .6em; }
.dm-user { align-self: flex-end; max-width: 90%; min-height: 2.3em; padding: .45em .8em; border-radius: 1em 1em .2em 1em; background: var(--cobalt); color: #fff; }
.dm-ans { display: grid; gap: .2em; }
.dm-ans li { position: relative; padding-left: 1.1em; }
.dm-ans li::before { content: ""; position: absolute; left: .15em; top: .55em; width: .4em; height: .4em; border-radius: 50%; background: var(--marigold); }
.dm-ans li:first-child { padding-left: 0; color: #fff; }
.dm-ans li:first-child::before { display: none; }
.dm-chips { display: flex; gap: .4em; margin-top: auto; }
.dm-chips span { padding: .1em .6em; border-radius: 99px; border: 1px solid rgba(255, 255, 255, .3); font-size: .85em; }

.dm-clock { color: var(--marigold); font-weight: 600; }
.dm-toasts { flex: 1; min-height: 0; padding: .8em 1em; display: flex; flex-direction: column; justify-content: flex-end; gap: .45em; }
.dm-toasts li { display: flex; justify-content: space-between; gap: 1em; padding: .5em .8em; border-radius: .7em; background: rgba(255, 255, 255, .09); }
.dm-toasts b { font-family: var(--f-d); font-weight: 600; color: #fff; }
.dm-toasts li:first-child { background: var(--paper); color: var(--ink); }
.dm-toasts li:first-child b { color: var(--ink); }

.dm-checks { flex: 1; min-height: 0; padding: .9em 1em 0; display: grid; gap: .45em; align-content: start; }
.dm-checks li { display: flex; justify-content: space-between; padding-bottom: .4em; border-bottom: 1px dashed rgba(255, 255, 255, .18); }
.dm-checks .ok { color: #9be3b9; font-weight: 500; }
.dm-checks .bad { color: #ff9d8a; font-weight: 500; }
.dm-verdict { margin: .7em 1em .9em; padding: .45em .8em; border-radius: .6em; background: var(--sindoor); color: #fff; font-family: var(--f-d); font-weight: 700; text-align: center; }

[data-demo="data"] { padding: 2.8em 1.2em .7em; }
.dm-plot { position: relative; flex: 1; min-height: 0; }
.dm-plot svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.dm-grid { stroke: rgba(22, 19, 14, .13); stroke-width: 1; fill: none; vector-effect: non-scaling-stroke; }
.dm-line { stroke: var(--cobalt); stroke-width: .32em; fill: none; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.dm-f { position: absolute; width: .42em; height: .42em; margin: -.21em; border-radius: 50%; background: var(--sindoor); }
.dm-dot { position: absolute; width: 1.1em; height: 1.1em; margin: -.55em; border-radius: 50%; background: var(--marigold); border: .16em solid var(--ink); }
.dm-days { display: flex; justify-content: space-between; padding: .5em 0 0; font-size: .85em; opacity: .75; }
.dm-days .on { color: var(--sindoor); font-weight: 600; }
[data-demo="data"] .dm-tag { right: auto; left: 1em; }

[data-demo="mvp"] { padding: 2.6em 1em 1em; }
.dm-win { --line: rgba(22, 19, 14, .45); flex: 1; min-height: 0; display: grid; grid-template-rows: auto auto 1fr auto auto; gap: .45em; padding: .6em; border-radius: .7em; border: 1.5px dashed var(--line); }
.dm-top { display: flex; gap: .3em; }
.dm-top i { width: .5em; height: .5em; border-radius: 50%; border: 1.5px solid var(--line); }
.dm-nav { height: .9em; border-radius: .3em; border: 1.5px dashed var(--line); }
.dm-hero { min-height: 1.6em; border-radius: .5em; border: 1.5px dashed var(--line); }
.dm-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: .4em; }
.dm-row i { height: 1.5em; border-radius: .4em; border: 1.5px dashed var(--line); }
.dm-btn { width: 38%; height: 1.2em; border-radius: 99px; border: 1.5px dashed var(--line); }
.dm-stage { right: auto; left: 1em; top: .8em; }

[data-demo="chain"] { padding: 2.6em 1em 1em; justify-content: center; }
.dm-chain { display: flex; align-items: center; }
.dm-blk { position: relative; flex: 1; aspect-ratio: 1; margin-left: 1em; display: grid; place-content: center; text-align: center; border-radius: .6em; border: 1.5px solid var(--ink); background: var(--paper); font-size: .9em; }
.dm-blk:first-child { margin-left: 0; }
.dm-blk:not(:first-child)::before { content: ""; position: absolute; right: 100%; top: 50%; width: 1.15em; height: 1.5px; background: var(--ink); }
.dm-blk b { font-family: var(--f-d); font-weight: 700; }
.dm-blk span { font-size: .85em; opacity: .6; }
[data-demo="chain"] .dm-tag { right: auto; left: 1em; }

/* ───────────── stage: hero → question → answers ───────────── */
.stage { position: relative; background: var(--paper); }
.stage__pin { position: relative; height: 100vh; height: 100svh; overflow: hidden; }

.hero__cards { position: absolute; inset: 0; perspective: 1000px; z-index: 1; }
.hc { position: absolute; left: var(--x); top: var(--y); width: var(--w); aspect-ratio: var(--ar, 3 / 4); will-change: transform, opacity; }
.hc__p { width: 100%; height: 100%; }
.hc__in {
  width: 100%; height: 100%; rotate: var(--r, 0deg);
  border-radius: clamp(6px, .7vw, 12px); overflow: hidden; background: var(--paper-2);
  box-shadow: 0 1px 2px rgba(22, 19, 14, .1), 0 22px 44px -22px rgba(22, 19, 14, .45);
  cursor: pointer;
}
.hc__in img { width: 100%; height: 100%; object-fit: cover; }
.hc__in.art { background: var(--c, var(--paper-2)); }
.hc__in--live { background: var(--night); container-type: inline-size; }
.hc .demo { font-size: 6.4cqw; }
.hc:nth-child(8) .demo, .hc:nth-child(9) .demo { font-size: 4.3cqw; }
.hc__in--ui img { object-position: 0 0; }
.hc__in--shot img { object-position: 50% 50%; }
.hc__in--mark { background: var(--c); display: grid; place-items: center; }
.hc__in--mark img { width: 72%; height: 72%; object-fit: contain; }
.hc__in--code { background: var(--night); color: #dcd8ff; padding: 9% 8%; display: flex; align-items: center; }
.hc__in--code pre { font-family: var(--f-m); font-size: clamp(.42rem, .62vw, .72rem); line-height: 1.55; white-space: pre; }
pre b { color: var(--marigold); font-weight: 500; }
pre i { color: #9be3b9; font-style: normal; }
pre u { color: #ff9d8a; text-decoration: none; }
pre .c { color: #8a88b8; }

.hc:nth-child(1)  { --x: 5%;   --y: 13%; --w: 12.5vw; --r: -6deg; }
.hc:nth-child(2)  { --x: 22%;  --y: 9%;  --w: 16vw;   --r: 3deg;  --ar: 16 / 10; }
.hc:nth-child(3)  { --x: 45.5%; --y: 6%; --w: 7.5vw;  --r: -5deg; --ar: 1; }
.hc:nth-child(4)  { --x: 59.5%; --y: 9%; --w: 11vw;  --r: 5deg; --ar: 4 / 5; }
.hc:nth-child(5)  { --x: 77%;  --y: 8%;  --w: 17vw;   --r: -3deg; --ar: 16 / 10; }
.hc:nth-child(6)  { --x: 86%;  --y: 39%; --w: 12vw;   --r: 6deg;  --ar: 5 / 5.2; }
.hc:nth-child(7)  { --x: 75%;  --y: 63%; --w: 12vw; --r: -5deg; --ar: 4 / 5; }
.hc:nth-child(8)  { --x: 52%;  --y: 77%; --w: 15.5vw; --r: 3deg;  --ar: 16 / 10; }
.hc:nth-child(9)  { --x: 26%;  --y: 75%; --w: 15vw;   --r: -4deg; --ar: 16 / 10; }
.hc:nth-child(10) { --x: 6%;   --y: 63%; --w: 15vw; --r: 5deg; --ar: 16 / 10; }

.hero__copy { position: absolute; inset: 0; z-index: 3; display: grid; place-items: center; text-align: center; pointer-events: none; }
.hook { font-size: clamp(2.9rem, 8.1vw, 9rem); font-stretch: 78%; line-height: .88; letter-spacing: -.032em; }
.hook__l { display: block; overflow: hidden; padding: .04em .1em .16em; margin-bottom: -.16em; }
.hook__l > span { display: block; }
.hook em { position: relative; color: var(--cobalt); font-weight: 360; letter-spacing: -.035em; white-space: nowrap; }
.scribble { position: absolute; left: -2%; bottom: -.1em; width: 104%; height: .2em; overflow: visible; }
.scribble path { fill: none; stroke: var(--marigold); stroke-width: 5; stroke-linecap: round; }

.hero__meta { position: absolute; z-index: 3; left: var(--pad); right: var(--pad); bottom: 1.4rem; display: flex; justify-content: space-between; align-items: flex-end; font-family: var(--f-m); font-size: .7rem; letter-spacing: .04em; text-transform: uppercase; line-height: 1.7; }
.hero__scroll { display: flex; align-items: center; gap: .7rem; }
.hero__scroll i { width: 46px; height: 1.5px; background: currentColor; transform-origin: left; animation: tick 2.2s var(--ease) infinite; }
@keyframes tick { 0% { transform: scaleX(0); transform-origin: left; } 50% { transform: scaleX(1); transform-origin: left; } 51% { transform-origin: right; } 100% { transform: scaleX(0); transform-origin: right; } }

.wash { position: absolute; inset: 0; z-index: 4; display: grid; grid-template-columns: repeat(var(--cols, 9), 1fr); grid-template-rows: repeat(var(--rows, 6), 1fr); pointer-events: none; }
.wash i { background: var(--cobalt); box-shadow: 0 0 0 .6px var(--cobalt); opacity: 0; will-change: opacity; }
.answers__bgs { position: absolute; inset: 0; z-index: 4; pointer-events: none; }
.answers__bgs i { position: absolute; inset: 0; background: var(--c); opacity: 0; }

.question { position: absolute; inset: 0; z-index: 5; display: grid; place-items: center; text-align: center; pointer-events: none; color: var(--ink); padding: 0 var(--pad); }
.question__t { display: block; max-width: 13.5em; font-size: clamp(2.5rem, 6.9vw, 7.6rem); font-stretch: 78%; line-height: .93; letter-spacing: -.03em; transform-origin: 50% 0; will-change: transform; }
.qw { display: inline-block; overflow: hidden; vertical-align: top; padding: .04em 0 .14em; margin-bottom: -.14em; }
.qw > span { display: inline-block; }
.chip { position: relative; display: inline-block; overflow: hidden; white-space: nowrap; rotate: -2deg; padding: .02em .16em .08em; margin: .08em 0 0; }
.chip__bg { position: absolute; inset: 0; background: var(--marigold); border-radius: .1em; transform: scaleX(0); transform-origin: 0 50%; }
.chip__t { position: relative; color: var(--ink); display: inline-block; }

.answers { position: absolute; inset: 0; z-index: 6; pointer-events: none; }
.answers__track { position: absolute; left: 0; top: 27vh; top: 27svh; height: 64vh; height: 64svh; display: flex; align-items: stretch; gap: clamp(.9rem, 2vw, 2rem); padding: 0 var(--pad); pointer-events: auto; will-change: transform; visibility: hidden; }
.ans {
  flex: none; width: clamp(280px, 29vw, 470px);
  display: flex; flex-direction: column; gap: .75rem;
  padding: clamp(1rem, 1.5vw, 1.6rem);
  background: var(--paper); color: var(--ink);
  border-radius: clamp(16px, 1.6vw, 26px);
  box-shadow: 0 30px 60px -30px rgba(5, 8, 40, .55);
  transition: rotate .6s var(--ease), translate .6s var(--ease);
}
.ans:nth-child(odd) { rotate: -1.6deg; translate: 0 1.5vh; }
.ans:nth-child(even) { rotate: 1.3deg; translate: 0 -1.5vh; }
.ans:hover { rotate: 0deg; translate: 0 -1vh; }
.ans header { display: flex; align-items: center; justify-content: space-between; font-family: var(--f-m); font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; }
.ans__n { display: inline-grid; place-items: center; width: 2.1rem; height: 2.1rem; border-radius: 50%; background: var(--ink); color: var(--paper); font-weight: 600; }
.ans h3 { font-size: clamp(1.7rem, 2.75vw, 2.9rem); font-stretch: 84%; line-height: .96; letter-spacing: -.035em; }
.ans h3 em { color: var(--cobalt); }
.ans > p { font-size: .98rem; color: var(--ink-2); max-width: 34ch; }
.ans__proof { margin-top: auto; min-height: 0; display: flex; flex-direction: column; gap: .5rem; }
.ans__proof .demo { flex: none; height: 27vh; min-height: 170px; border-radius: 12px; font-size: clamp(9px, .86vw, 14px); }
.ans__proof figcaption { line-height: 1.7; }
.ans__proof figcaption a { border-bottom: 1px solid currentColor; white-space: nowrap; }
.ans__proof figcaption a:hover { color: var(--cobalt); }
.ans__proof figcaption { font-family: var(--f-m); font-size: .64rem; text-transform: uppercase; letter-spacing: .03em; color: var(--ink-2); }
.ans__proof--code pre { height: 18vh; border-radius: 12px; background: var(--night); color: #dcd8ff; font-family: var(--f-m); font-size: clamp(.6rem, .78vw, .8rem); line-height: 1.5; padding: 1rem 1.1rem; overflow: hidden; display: flex; flex-direction: column; justify-content: center; white-space: pre; }
.ans__proof--pattern .chain { height: 18vh; border-radius: 12px; background: var(--paper-2); display: flex; align-items: center; justify-content: center; gap: 0; }
.chain i { width: 13%; aspect-ratio: 1; border: 3px solid var(--ink); border-radius: 28%; margin-left: -3%; rotate: 45deg; }
.chain i:nth-child(odd) { background: var(--marigold); }
.chain i:nth-child(3) { background: var(--cobalt); }
.ans--end { background: var(--marigold); justify-content: space-between; width: clamp(240px, 22vw, 360px); }
.ans--end span { font-size: clamp(1.9rem, 3vw, 3.2rem); font-weight: 800; font-stretch: 80%; line-height: .92; letter-spacing: -.04em; }
.ans--end b { font-size: 1.05rem; display: flex; justify-content: space-between; border-top: 2px solid var(--ink); padding-top: .8rem; }
.ans--end b i { font-style: normal; }

/* ───────────── sheets ───────────── */
.work, .reel, .under, .belief, .name, .start { position: relative; z-index: 2; border-radius: var(--sheet) var(--sheet) 0 0; margin-top: calc(var(--sheet) * -1); }

/* ───────────── work ───────────── */
.work { background: var(--paper); padding-bottom: 24vh; }
.work__title { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 1.3rem; padding: 0 var(--pad); }
.work__h { font-size: clamp(2.8rem, 8.6vw, 9.6rem); font-stretch: 78%; line-height: .88; letter-spacing: -.045em; }
.work__h em { color: var(--sindoor); font-weight: 360; }
.work__h .char { display: inline-block; }
.work__sub { max-width: 30ch; color: var(--ink-2); font-size: 1rem; }
.work__tiles { position: relative; z-index: 1; margin-top: -34vh; display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 2vw; row-gap: 20vh; padding: 0 var(--pad); pointer-events: none; }
.tile { display: block; pointer-events: auto; will-change: transform; }
.tile__m { border-radius: clamp(10px, 1.1vw, 18px); overflow: hidden; background: var(--paper-2); box-shadow: 0 30px 60px -34px rgba(22, 19, 14, .5); }
.tile__m img { width: 100%; height: auto; transition: scale 1.1s var(--ease); }
.tile:hover .tile__m img { scale: 1.035; }
.tile__c { display: flex; align-items: baseline; gap: .7rem; margin-top: .75rem; font-size: .92rem; }
.tile__c b { font-weight: 700; letter-spacing: -.01em; }
.tile__c span { color: var(--ink-2); }
.tile__c i { margin-left: auto; font-family: var(--f-m); font-style: normal; font-size: .68rem; text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; }
.tile--frame .tile__m { background: var(--c); padding: 8% 8% 0; }
.tile--frame .tile__m img { border-radius: 8px 8px 0 0; box-shadow: 0 20px 40px -18px rgba(22, 19, 14, .5); transform-origin: 50% 100%; }
.tile--shot .tile__m { background: var(--c); }
.tile--mark .tile__m { background: var(--c); aspect-ratio: 1; display: grid; place-items: center; }
.tile--mark .tile__m img { width: 62%; }
.tile--code .tile__m, .tile--term .tile__m { background: var(--night); color: #dcd8ff; padding: clamp(1rem, 2vw, 2rem); }
.tile--term .tile__m { background: var(--ink); color: #e8e2d4; }
.tile pre { font-family: var(--f-m); font-size: clamp(.62rem, .86vw, .9rem); line-height: 1.6; white-space: pre; overflow: hidden; }
.caret { display: inline-block; width: .55em; height: 1.05em; background: var(--marigold); vertical-align: text-bottom; margin-left: .3em; animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.tile--a { grid-column: 1 / span 5;  grid-row: 1; rotate: -1.5deg; }
.tile--b { grid-column: 8 / span 5;  grid-row: 1; margin-top: 42vh; rotate: 1.5deg; }
.tile--d { grid-column: 2 / span 5;  grid-row: 2; rotate: 1.2deg; }
.tile--e { grid-column: 8 / span 4;  grid-row: 2; margin-top: 36vh; rotate: -2.5deg; }
.tile--f { grid-column: 1 / span 5;  grid-row: 3; rotate: -1.2deg; }
.tile--g { grid-column: 8 / span 4;  grid-row: 3; margin-top: 34vh; rotate: 2deg; }
.tile--h { grid-column: 2 / span 5;  grid-row: 4; rotate: 1.2deg; }
.tile--i { grid-column: 8 / span 4;  grid-row: 4; margin-top: 30vh; rotate: -2deg; }
.tile--j { grid-column: 1 / span 5;  grid-row: 5; rotate: -1.4deg; }
.tile--k { grid-column: 8 / span 4;  grid-row: 5; margin-top: 32vh; rotate: 2deg; }
.tile--l { grid-column: 2 / span 5;  grid-row: 6; rotate: 1.2deg; }
.tile--m { grid-column: 8 / span 4;  grid-row: 6; margin-top: 30vh; rotate: -2deg; }
.tile--n { grid-column: 1 / span 5;  grid-row: 7; rotate: -1.2deg; }
.tile--o { grid-column: 8 / span 5;  grid-row: 7; margin-top: 42vh; rotate: 1.5deg; }
.tile--p { grid-column: 2 / span 5;  grid-row: 8; rotate: 1.5deg; }
.tile--q { grid-column: 8 / span 5;  grid-row: 8; margin-top: 30vh; rotate: -1.4deg; }
.tile--r { grid-column: 3 / span 5;  grid-row: 9; rotate: -1.5deg; }

/* ───────────── reel ───────────── */
.reel { background: var(--night); color: var(--paper); }
.reel__stage { position: relative; height: 100vh; height: 100svh; overflow: hidden; border-radius: var(--sheet) var(--sheet) 0 0; }
.reel__grid { position: absolute; inset: 0; display: grid; grid-template-columns: 1fr 1fr 1.25fr 1fr 1fr; gap: 1.3vw; padding: 0 1.3vw; align-items: center; }
.rc { display: flex; flex-direction: column; gap: 1.3vw; will-change: transform; }
.rc .art { width: 100%; aspect-ratio: 3 / 4; border-radius: clamp(8px, 1vw, 16px); }
.rc--l .art:first-child, .rc--r .art:last-child { aspect-ratio: 4 / 5; }
.reel__mask { position: absolute; inset: 0; background: var(--paper) url("../assets/video/reel-poster.jpg") center / cover; clip-path: var(--m, inset(22% 37.5% 22% 37.5% round 16px)); will-change: clip-path; }
.reel__mask video { width: 100%; height: 100%; object-fit: cover; }
.reel__mask::after { content: ""; position: absolute; inset: 0; background: var(--night); opacity: var(--dim, 0); }
.reel__title { position: absolute; inset: 0; z-index: 2; display: flex; align-items: center; justify-content: center; text-align: center; padding: 0 var(--pad); font-size: clamp(2.6rem, 7.6vw, 8.4rem); font-stretch: 78%; line-height: .9; letter-spacing: -.045em; color: #fff; pointer-events: none; }
.reel__title em { color: var(--marigold); font-weight: 360; }
.reel__title > span { display: block; max-width: 8.2em; }
.reel__title .word { display: inline-block; }
.reel__note { position: absolute; z-index: 2; left: var(--pad); bottom: 1.4rem; font-family: var(--f-m); font-size: .68rem; text-transform: uppercase; letter-spacing: .04em; opacity: .75; }

/* ───────────── under: split vignette ───────────── */
.under { background: var(--paper); }
.under__intro { padding: 20vh var(--pad) 14vh; display: grid; gap: 1.6rem; }
.under__intro h2 { font-size: clamp(2.8rem, 8.6vw, 9.6rem); font-stretch: 78%; line-height: .88; letter-spacing: -.045em; max-width: 9.5em; }
.under__intro h2 em { color: var(--cobalt); font-weight: 360; }
.under__lead { max-width: 44ch; font-size: clamp(1.05rem, 1.5vw, 1.4rem); color: var(--ink-2); margin-left: auto; }
.only-fine { display: none; }
@media (hover: hover) and (pointer: fine) { .only-fine { display: inline; color: var(--ink); font-weight: 700; } }

.panel { position: relative; min-height: 118vh; min-height: 118svh; background: var(--bg); clip-path: inset(0); display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.3fr); align-items: center; gap: 5vw; padding: 12vh var(--pad); }
.panel--flip { grid-template-columns: minmax(0, 1.3fr) minmax(0, .9fr); }
.panel--flip .panel__txt { order: 2; }
.panel__txt { display: grid; gap: 1.2rem; align-content: center; }
.panel__txt h3 { font-size: clamp(2rem, 4.4vw, 4.8rem); font-stretch: 80%; line-height: .92; letter-spacing: -.04em; }
.panel__txt h3 em { font-weight: 360; }
.panel__txt p { max-width: 38ch; color: var(--ink); opacity: .78; }
.panel__surface img { width: 100%; max-height: 76vh; object-fit: cover; object-position: 50% 0; border-radius: clamp(10px, 1.1vw, 18px); box-shadow: 0 50px 90px -40px rgba(22, 19, 14, .55); rotate: -2deg; }
.panel--flip .panel__surface img { rotate: 2deg; }

.lens { position: fixed; left: 0; top: 0; z-index: 5; width: clamp(230px, 23vw, 370px); aspect-ratio: 4 / 5; pointer-events: none; will-change: transform; }
.lens__card { width: 100%; height: 100%; rotate: 3deg; border-radius: clamp(12px, 1.2vw, 18px); background: var(--night); color: #dcd8ff; box-shadow: 0 40px 80px -28px rgba(8, 9, 40, .7), 0 0 0 1px rgba(255, 255, 255, .06) inset; overflow: hidden; display: flex; flex-direction: column; }
.lens__card header { display: flex; align-items: center; gap: .35rem; padding: .7rem .9rem; border-bottom: 1px solid rgba(255, 255, 255, .1); font-family: var(--f-m); font-size: .62rem; letter-spacing: .03em; color: #9c9ad0; }
.lens__card header i { width: .5rem; height: .5rem; border-radius: 50%; background: rgba(255, 255, 255, .22); }
.lens__card header i:first-child { background: var(--marigold); }
.lens__card header span { margin-left: auto; }
.lens__card pre { flex: 1; padding: .9rem 1rem; font-family: var(--f-m); font-size: clamp(.56rem, .74vw, .78rem); line-height: 1.62; white-space: pre; overflow: hidden; }
.flow { flex: 1; padding: 1rem 1.1rem; display: flex; flex-direction: column; justify-content: space-between; counter-reset: f; }
.flow li { position: relative; padding-left: 2rem; display: grid; }
.flow li::before { counter-increment: f; content: counter(f); position: absolute; left: 0; top: .1rem; width: 1.35rem; height: 1.35rem; border-radius: 50%; background: var(--marigold); color: var(--ink); font-family: var(--f-m); font-size: .62rem; font-weight: 600; display: grid; place-items: center; }
.flow li:not(:last-child)::after { content: ""; position: absolute; left: .65rem; top: 1.6rem; bottom: -1.2rem; width: 1px; background: rgba(255, 255, 255, .22); }
.flow b { font-size: clamp(.8rem, 1vw, 1.02rem); font-weight: 700; color: #fff; letter-spacing: -.01em; }
.flow span { font-family: var(--f-m); font-size: clamp(.52rem, .66vw, .68rem); color: #a9a7da; }

.panel--crafts { grid-template-columns: 1fr; align-content: center; gap: 2rem; min-height: 100vh; min-height: 100svh; }
.crafts { display: grid; gap: .1em; font-size: clamp(2.2rem, 6.6vw, 7.4rem); font-weight: 800; font-stretch: 78%; line-height: .96; letter-spacing: -.045em; font-variation-settings: "opsz" 96; }
.craft { width: fit-content; cursor: pointer; color: rgba(22, 19, 14, .22); transition: color .45s var(--ease), translate .45s var(--ease); }
.craft:hover, .craft.is-on { color: var(--ink); translate: .25em 0; }
.lens--stack { aspect-ratio: 4 / 5; }
.lens__stack { position: relative; width: 100%; height: 100%; rotate: 3deg; }
.lens__img { position: absolute; inset: 0; border-radius: clamp(12px, 1.2vw, 18px); overflow: hidden; box-shadow: 0 40px 80px -28px rgba(22, 19, 14, .6); will-change: transform; }
.lens__img .art { width: 100%; height: 100%; }

/* ───────────── belief: word swap ───────────── */
.belief { background: var(--marigold); }
.belief__stage { position: relative; height: 100vh; height: 100svh; display: flex; flex-direction: column; justify-content: center; padding: 0 var(--pad); overflow: hidden; border-radius: var(--sheet) var(--sheet) 0 0; }
.belief__stage .eyebrow { position: absolute; top: 5.2rem; left: var(--pad); }
.belief__big { font-size: clamp(3.6rem, 16.2vw, 18rem); font-weight: 800; font-stretch: 75%; line-height: .84; letter-spacing: -.036em; font-variation-settings: "opsz" 96; }
.bl { display: flex; }
.bl--2 { justify-content: center; font-size: .62em; line-height: 1; margin: -.06em 0 -.02em; }
.bl--2 em { font-weight: 330; }
.bl--3 { justify-content: flex-end; }
.swap { position: relative; display: inline-grid; overflow: hidden; padding: .02em .03em .15em; margin-bottom: -.1em; }
.swap > span { grid-area: 1 / 1; display: block; will-change: transform; }
.bl--3 .swap > span { justify-self: end; }
.swap > span:nth-child(2) { transform: translateY(125%); }
.rule { position: absolute; left: .03em; right: .03em; bottom: .07em; height: .055em; background: var(--ink); transform: scaleX(0); transform-origin: 0 50%; }
.belief__small { position: absolute; left: var(--pad); bottom: 6vh; max-width: 36ch; font-size: clamp(.98rem, 1.25vw, 1.25rem); font-weight: 500; }

/* ───────────── name: scroll text ───────────── */
.name { background: var(--night); color: var(--paper); }
.name__intro { min-height: 62vh; display: flex; align-items: flex-end; padding: 0 var(--pad) 9vh; font-size: clamp(1.7rem, 4vw, 4.2rem); font-weight: 700; font-stretch: 84%; letter-spacing: -.035em; line-height: 1; }
.name__intro em { color: var(--marigold); font-weight: 340; }
.name__stage { position: relative; height: 100vh; height: 100svh; overflow: hidden; }
.name__wrap { position: absolute; left: 0; top: 50%; translate: 0 -50%; white-space: nowrap; will-change: transform; perspective: 900px; }
.name__text { display: inline-block; padding: 0 12vw 0 var(--pad); font-size: clamp(9rem, 42vh, 30rem); font-stretch: 75%; line-height: 1.02; letter-spacing: -.045em; white-space: nowrap; }
.name__text .hl { color: var(--marigold); font-family: var(--f-s); font-style: italic; font-weight: 340; font-stretch: 100%; letter-spacing: -.04em; font-variation-settings: "SOFT" 100, "opsz" 144; padding-right: .06em; }
.name__text .ch { display: inline-block; transform-origin: 50% 55%; will-change: transform; backface-visibility: visible; }
.name__outro { display: grid; grid-template-columns: 1.1fr 1fr; gap: 6vw; align-items: end; padding: 12vh var(--pad) 22vh; }
.def__w { font-size: clamp(2.2rem, 5vw, 5.4rem); font-weight: 800; font-stretch: 80%; letter-spacing: -.04em; line-height: 1; }
.def__w span { font-family: var(--f-s); font-style: italic; font-weight: 300; font-size: .5em; letter-spacing: 0; color: var(--marigold); margin-left: .3em; white-space: nowrap; }
.def__d { margin-top: 1.2rem; max-width: 34ch; font-size: clamp(1.1rem, 1.6vw, 1.5rem); color: #c9c6ee; }
.def__d i { font-family: var(--f-s); }
.def__p { max-width: 30ch; font-size: clamp(1.25rem, 2.1vw, 2.1rem); font-weight: 600; font-stretch: 90%; letter-spacing: -.02em; line-height: 1.12; }

/* ───────────── start + footer ───────────── */
.start { background: var(--cobalt); color: var(--paper); overflow: hidden; }
.start__grid { position: absolute; left: 0; right: 0; top: 0; height: 100%; display: grid; grid-template-columns: repeat(var(--cols, 12), 1fr); grid-auto-rows: calc(100vw / var(--cols, 12)); pointer-events: none; opacity: .5; }
.start__grid i { background: #1d38e0; opacity: 0; transition: opacity 1.4s var(--ease); }
.start__grid i.on { opacity: 1; }
.start__in { position: relative; padding: 24vh var(--pad) 16vh; display: grid; gap: 2.4rem; }
.start__h { font-size: clamp(2.8rem, 8.6vw, 9.6rem); font-stretch: 78%; line-height: .88; letter-spacing: -.045em; }
.start__h em { color: var(--marigold); font-weight: 360; }
.start__row { display: flex; flex-wrap: wrap; align-items: center; gap: 1.2rem 2rem; }
.btn { display: inline-flex; align-items: center; gap: 1rem; padding: 1.15rem 1.5rem 1.15rem 1.9rem; border-radius: 99px; background: var(--paper); color: var(--ink); font-size: clamp(1.1rem, 1.6vw, 1.5rem); font-weight: 700; letter-spacing: -.02em; transition: background .4s var(--ease), rotate .4s var(--ease), scale .4s var(--ease); }
.btn i { font-style: normal; display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 50%; background: var(--ink); color: var(--paper); transition: transform .4s var(--ease); }
.btn:hover { background: var(--marigold); rotate: -2deg; scale: 1.03; }
.btn:hover i { transform: rotate(45deg); }
.start__mail { font-size: clamp(1.05rem, 1.5vw, 1.4rem); border-bottom: 1.5px solid currentColor; padding-bottom: .1rem; }
.foot { position: relative; padding: 0 var(--pad); }
.foot__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; padding-top: 2.4rem; border-top: 1.5px solid rgba(245, 240, 230, .35); }
.foot__cols h4 { font-family: var(--f-m); font-size: .7rem; font-weight: 500; text-transform: uppercase; letter-spacing: .05em; opacity: .7; margin-bottom: .8rem; }
.foot__cols a, .foot__cols p { display: block; font-size: 1.05rem; font-weight: 500; line-height: 1.6; }
.foot__cols a:hover { color: var(--marigold); }
.foot__word { font-size: 30.5vw; font-weight: 800; font-stretch: 75%; line-height: .78; letter-spacing: -.04em; margin: 5vh -1.2vw -5.4vw; white-space: nowrap; user-select: none; font-variation-settings: "opsz" 96; }
.foot__base { position: relative; display: flex; justify-content: space-between; gap: 1rem; font-family: var(--f-m); font-size: .68rem; text-transform: uppercase; letter-spacing: .04em; padding-top: 2.2rem; opacity: .8; }

/* ───────────── small screens ───────────── */
@media (max-width: 820px) {
  .nav__links { display: none; }
  .progress { display: none; }
  .loader__meta { gap: 1rem; }

  .hc:nth-child(1)  { --x: 4%;  --y: 11%; --w: 27vw; }
  .hc:nth-child(2)  { --x: 36%; --y: 9%;  --w: 36vw; }
  .hc:nth-child(3)  { --x: 78%; --y: 12%; --w: 17vw; }
  .hc:nth-child(4)  { --x: 76%; --y: 25%; --w: 21vw; }
  .hc:nth-child(5)  { --x: -6%; --y: 29%; --w: 34vw; }
  .hc:nth-child(6)  { display: none; }
  .hc:nth-child(7)  { --x: 70%; --y: 68%; --w: 26vw; }
  .hc:nth-child(8)  { --x: 28%; --y: 78%; --w: 38vw; }
  .hc:nth-child(9)  { display: none; }
  .hc:nth-child(10) { --x: 3%;  --y: 66%; --w: 24vw; }
  .demo { font-size: clamp(9px, 2.7vw, 12px); }
  .hook { font-size: clamp(2.7rem, 13.4vw, 5.4rem); }
  .hero__meta p:first-child { display: none; }
  .hero__meta { justify-content: flex-end; }
  .question__t { font-size: clamp(2.3rem, 11.5vw, 4.6rem); }
  .answers__track { top: 25svh; height: 66svh; }
  .ans { width: 78vw; }
  .ans--end { width: 62vw; }

  .work__title { position: relative; height: auto; padding-top: 16vh; padding-bottom: 8vh; }
  .work__tiles { margin-top: 0; grid-template-columns: repeat(6, 1fr); row-gap: 9vh; }
  .tile { margin-top: 0 !important; grid-row: auto !important; }
  .work__tiles .tile { grid-column: 1 / span 6; }
  .tile__c { flex-wrap: wrap; }

  .reel__grid { grid-template-columns: 1fr 1.5fr 1fr; }
  .rc--lo, .rc--ro { display: none; }
  .reel__mask { --m: inset(30% 31% 30% 31% round 14px); background-image: url("../assets/video/reel-portrait-poster.jpg"); }

  .under__lead { margin-left: 0; }
  .panel, .panel--flip { grid-template-columns: 1fr; align-content: start; gap: 2rem; padding-top: 14vh; }
  .panel--flip .panel__txt { order: 0; }
  .lens { width: 46vw; }
  .lens__card pre { font-size: .5rem; }

  .belief__small { position: static; margin-top: 2.4rem; }
  .name__outro { grid-template-columns: 1fr; padding-bottom: 16vh; }
  .foot__cols { grid-template-columns: 1fr 1fr; }
  .foot__base { flex-direction: column; }
}

/* ───────────── reduced motion: everything visible, nothing pinned ───────────── */
@media (prefers-reduced-motion: reduce) {
  .loader { display: none; }
  html.is-loading, html.is-loading body { overflow: auto; height: auto; }
  .stage__pin { height: auto; overflow: visible; display: grid; gap: 4rem; padding: 7rem 0 4rem; }
  .hero__cards, .wash, .answers__bgs, .hero__meta { display: none; }
  .hero__copy, .question, .answers { position: relative; inset: auto; }
  .answers__track { position: relative; top: auto; height: auto; flex-wrap: wrap; visibility: visible; }
  .ans { rotate: 0deg !important; translate: none !important; }
  .work__title { position: relative; height: auto; padding: 14vh var(--pad) 8vh; }
  .work__tiles { margin-top: 0; }
  .lens { position: absolute; left: auto; right: var(--pad); top: auto; bottom: 8vh; }
  .swap > span:nth-child(1) { display: none; }
  .swap > span:nth-child(2) { transform: none; }
  .rule { transform: none; }
  .name__stage { height: auto; overflow: visible; padding: 8vh 0; }
  .name__wrap { position: relative; top: auto; translate: none; white-space: normal; }
  .name__text { white-space: normal; font-size: clamp(3rem, 12vw, 9rem); }
  .hero__scroll i, .caret { animation: none; }
}

/* ───────────── nav menus, mobile menu, cookie notice (every page) ───────────── */
.nav__links { align-items: center; }
.nav__dd { position: relative; }
.nav__dd > button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; display: inline-flex; align-items: center; gap: .35rem; padding: .2rem 0; }
.nav__dd > button i { font-style: normal; font-size: .9em; transition: rotate .4s var(--ease); }
.nav__dd:hover > button i, .nav__dd:focus-within > button i { rotate: 45deg; }
.nav__menu { position: absolute; left: 50%; top: 100%; translate: -50% .7rem; min-width: 13.5rem; padding: .45rem; border-radius: 16px; background: var(--paper); color: var(--ink); box-shadow: 0 26px 50px -22px rgba(15, 17, 54, .5), 0 0 0 1px rgba(22, 19, 14, .07); display: grid; opacity: 0; visibility: hidden; transition: opacity .3s var(--ease), translate .3s var(--ease), visibility .3s; }
.nav__menu::before { content: ""; position: absolute; left: 0; right: 0; top: -.9rem; height: .9rem; }
.nav__dd:hover .nav__menu, .nav__dd:focus-within .nav__menu { opacity: 1; visibility: visible; translate: -50% .4rem; }
.nav__links .nav__menu a { display: flex; justify-content: space-between; gap: 1.5rem; padding: .6rem .8rem; border-radius: 10px; font-weight: 600; }
.nav__links .nav__menu a::after { content: "→"; position: static; height: auto; background: none; transform: none; opacity: 0; translate: -.3rem 0; transition: opacity .3s var(--ease), translate .3s var(--ease); }
.nav__links .nav__menu a:hover { background: var(--paper-2); }
.nav__links .nav__menu a:hover::after { opacity: 1; translate: 0 0; transform: none; }
.nav__end { display: flex; align-items: center; gap: .6rem; }
.nav__burger { display: none; position: relative; width: 2.7rem; height: 2.7rem; border: 0; border-radius: 50%; background: var(--ink); cursor: pointer; transition: background .4s var(--ease); }
.nav__burger i { position: absolute; left: 28%; right: 28%; top: 42%; height: 2px; background: var(--paper); transition: top .4s var(--ease), rotate .4s var(--ease), background .4s var(--ease); }
.nav__burger i + i { top: 58%; }
.nav[data-tone="light"] .nav__burger { background: var(--paper); }
.nav[data-tone="light"] .nav__burger i { background: var(--ink); }

.menu { position: fixed; inset: 0; z-index: 48; background: var(--night); color: var(--paper); padding: 6.5rem var(--pad) 2rem; display: grid; align-content: start; gap: 1.8rem; overflow: auto; clip-path: inset(0 0 100% 0); visibility: hidden; transition: clip-path .7s var(--ease), visibility .7s; }
.menu h4 { font-family: var(--f-m); font-size: .7rem; font-weight: 500; text-transform: uppercase; letter-spacing: .05em; opacity: .65; margin-bottom: .4rem; }
.menu a { display: block; font-size: clamp(1.9rem, 8.4vw, 3.2rem); font-weight: 800; font-stretch: 80%; letter-spacing: -.03em; line-height: 1.12; }
.menu__foot { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; padding-top: 1.2rem; border-top: 1px solid rgba(245, 240, 230, .25); }
.menu__foot a { font-size: 1rem; font-weight: 500; font-stretch: 100%; letter-spacing: 0; }
html.menu-open .menu { clip-path: inset(0); visibility: visible; }
html.menu-open .nav { color: var(--paper); }
html.menu-open .nav .m-a { fill: var(--paper); }
html.menu-open .nav .m-b { fill: var(--marigold); }
html.menu-open .nav__burger { background: var(--paper); }
html.menu-open .nav__burger i { background: var(--ink); top: 50%; rotate: 45deg; }
html.menu-open .nav__burger i + i { rotate: -45deg; }
html.menu-open .nav__cta { background: var(--marigold); color: var(--ink); }

.foot__cols { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.foot__cols p { opacity: .75; }

.cookie { position: fixed; z-index: 60; right: calc(var(--pad) + .6rem); bottom: 1.2rem; max-width: min(25rem, calc(100vw - 2 * var(--pad))); padding: 1rem 1.1rem; border-radius: 18px; background: var(--ink); color: var(--paper); display: grid; gap: .8rem; font-size: .92rem; line-height: 1.4; box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .6); rotate: 1deg; translate: 0 160%; transition: translate .9s var(--ease); }
.cookie[hidden] { display: none; }
.cookie.is-in { translate: 0 0; }
.cookie a { border-bottom: 1px solid currentColor; }
.cookie__row { display: flex; flex-wrap: wrap; gap: .5rem; }
.cookie__row button { font: inherit; font-weight: 700; border: 0; border-radius: 99px; padding: .55rem 1.05rem; cursor: pointer; transition: scale .3s var(--ease); }
.cookie__row button:hover { scale: 1.04; }
[data-cookie="accept"] { background: var(--marigold); color: var(--ink); }
[data-cookie="decline"] { background: rgba(255, 255, 255, .16); color: var(--paper); }

@media (max-width: 820px) {
  .nav__burger { display: block; }
  .nav__cta { padding: .6rem .95rem; font-size: .86rem; }
  .nav__cta i { display: none; }
  .foot__cols { grid-template-columns: 1fr 1fr; }
}

/* service name on each answer card: a proper highlighted tag, same chip as "right technology?" */
.ans header { align-items: center; }
.ans__s { font-family: var(--f-d); font-size: clamp(1rem, 1.25vw, 1.3rem); font-weight: 800; font-stretch: 84%; letter-spacing: -.02em; text-transform: none; line-height: 1; padding: .38em .7em .42em; border-radius: .4em; background: var(--marigold); color: var(--ink); rotate: 2deg; white-space: nowrap; }
.ans:nth-child(even) .ans__s { rotate: -2deg; }

@media (max-width: 820px) { .nav__brand .logo { height: 1.7rem; } }
