/* Veoresa V1.0 — tokens from DESIGN.md. No framework. */

@font-face { font-family: "Sofia Sans XC"; src: url("../fonts/sofia-sans-extra-condensed-latin-wght.woff2") format("woff2"); font-weight: 100 1000; font-display: swap; }
@font-face { font-family: "Schibsted Grotesk"; src: url("../fonts/schibsted-grotesk-latin-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Schibsted Grotesk"; src: url("../fonts/schibsted-grotesk-latin-700.woff2") format("woff2"); font-weight: 700 800; font-display: swap; }
@font-face { font-family: "DM Mono"; src: url("../fonts/dm-mono-latin-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --ink: #0b0a0f;
  --ink-deep: #171220;
  --smoke: #1e1a2a;
  --purple-ink: #1a0e30;
  --purple-deep: #2c1352;
  --purple-shade: #251c34;
  --purple-fog: #563b80;
  --purple-rich: #4f2bab;
  --lavender: #9e6de9;
  --purple-muted: #a9a1b5;
  --bone: #f4efe6;
  --taupe-light: #f0e4d4;
  --sand: #d3c8ba;
  --taupe: #b0a89d;
  --taupe-deep: #746c62;
  --gold: #d4a24a;
  --gold-bright: #f2c766;
  --cta: #eeac1a;

  --f-display: "Sofia Sans XC", "Arial Narrow", sans-serif;
  --f-body: "Schibsted Grotesk", system-ui, sans-serif;
  --f-mono: "DM Mono", ui-monospace, monospace;

  --gutter: clamp(16px, 3.2vw, 56px);
  --ease: cubic-bezier(.215, .61, .355, 1); /* power3.out */
  --grain-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 1.4 0 0 0 -.55'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --grain-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .2 0 0 0 0 .14 0 0 0 0 .1 1.5 0 0 0 -.5'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--ink); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-stopped { overflow: clip; }
.lenis [data-lenis-prevent] { overscroll-behavior: contain; }
body {
  margin: 0; background: var(--bone); color: var(--ink-deep);
  font: 400 15px/1.55 var(--f-body); letter-spacing: .01em;
  overflow-x: clip; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, video, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-align: inherit; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: inherit; }
ol, ul { list-style: none; margin: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--lavender); outline-offset: 3px; border-radius: 2px; }
.hero :focus-visible, .services :focus-visible, .how :focus-visible { outline-color: var(--purple-rich); }

.mono { font: 500 12px/1.4 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; }
.label { color: var(--lavender); }
.skip { position: fixed; left: 12px; top: -60px; z-index: 100; background: var(--cta); color: var(--ink); padding: 10px 16px; border-radius: 99px; font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }

/* grain */
.grain { position: relative; isolation: isolate; }
.grain::after { content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none; background-image: var(--grain-light); opacity: .22; mix-blend-mode: multiply; }
.grain--dark::after { background-image: var(--grain-dark); opacity: .07; mix-blend-mode: screen; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: 0 26px; border-radius: 999px; text-decoration: none;
  font: 700 15px/1 var(--f-body); letter-spacing: .01em; white-space: nowrap;
  transition: transform .25s var(--ease), background-color .25s, color .25s, border-color .25s;
}
.btn--cta { background: var(--cta); color: var(--ink); }
.btn--cta:hover { background: var(--gold-bright); transform: translateY(-2px); }
.btn--ghost { border: 1.5px solid currentColor; color: var(--ink-deep); }
.btn--ghost:hover { background: var(--ink-deep); color: var(--bone); border-color: var(--ink-deep); }
.btn--big { min-height: 64px; padding: 0 40px; font-size: 18px; }

/* the framed screen: thin gold hairline + 12px mat */
.frame {
  display: block; position: relative; padding: 12px; background: var(--smoke);
  border: 1px solid rgba(212, 162, 74, .55);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .7), inset 0 0 0 1px rgba(0,0,0,.4);
  transition: transform .45s var(--ease), border-color .3s, box-shadow .45s var(--ease);
}
.frame::before { content: ""; position: absolute; inset: 11px; border: 1px solid rgba(212, 162, 74, .28); pointer-events: none; z-index: 1; transition: border-color .3s; }
.frame__video { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: var(--ink-deep); }
/* upright media: a phone-shaped portrait frame (9:16), no blurred side fill */
.frame--vertical .frame__video { aspect-ratio: 9 / 16; object-fit: cover; }
.frame--vertical .frame__blur { display: none; }
.card.card--vertical { width: calc(var(--card) * .56); }
.tile--clock .frame__video { aspect-ratio: 16 / 9; }

/* display type */
.giant, .hero__title, .section-title, .footer__title, .manifesto__title, .card__title, .tile__title, .how__num, .how__name, .menu__list a, .overlay__title, .step__name, .topbar__name {
  font-family: var(--f-display); font-weight: 850; text-transform: uppercase; letter-spacing: -.02em; line-height: .86;
}
.line { display: block; overflow: hidden; padding-bottom: .04em; margin-bottom: -.04em; }
.line > span { display: inline-block; }

/* ---------- top bar ---------- */
.topbar { position: absolute; z-index: 20; top: 0; left: 0; right: 0; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 18px var(--gutter); color: var(--purple-deep); }
.topbar__mark { display: inline-grid; place-items: center start; min-width: 44px; min-height: 44px; }
.topbar__mark svg { width: 40px; height: 34px; }
.topbar__name { font-size: 22px; letter-spacing: .24em; font-weight: 800; padding-left: .24em; }
.topbar__right { justify-self: end; display: flex; align-items: center; gap: 6px; }
.sound { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; min-width: 44px; padding: 0 14px 0 12px; border-radius: 999px; border: 1px solid color-mix(in srgb, currentColor 35%, transparent); color: inherit; transition: border-color .2s, background-color .2s; }
.sound:hover { border-color: currentColor; }
.sound[hidden] { display: none; }
.sound__icon { width: 20px; height: 20px; flex: none; }
.sound.is-off .sound__waves, .sound:not(.is-off) .sound__mute { display: none; }
.sound.is-off .sound__label { opacity: .75; }
.sound--menu { margin-top: 36px; align-self: flex-start; color: var(--bone); }
.topbar__menu { justify-self: end; width: 44px; height: 44px; display: grid; place-content: center; gap: 6px; }
.topbar__menu span { display: block; width: 26px; height: 3px; background: currentColor; transform: skewX(-30deg); }
.topbar__menu span:last-child { width: 18px; justify-self: end; }

/* ---------- 1 · hero ---------- */
.hero {
  min-height: 100vh; min-height: 100svh; overflow: hidden; background: var(--bone); color: var(--ink-deep);
  padding: clamp(84px, 9vw, 120px) var(--gutter) calc(9vw + 28px);
  display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto 1fr auto; column-gap: 4vw;
}
.hero__monogram { position: absolute; z-index: 0; color: var(--taupe-light); left: 50%; top: 52%; width: min(112vw, 1500px); height: auto; aspect-ratio: 850 / 730; transform: translate(-50%, -50%); }
.hero__monogram use { stroke: var(--sand); opacity: .55; }
.hero__title {
  grid-column: 1 / -1; position: relative; color: var(--purple-deep);
  font-size: clamp(76px, 14.2vw, 300px);
}
.hero__title .line { white-space: nowrap; position: relative; z-index: 3; }
.hero__title .line--2 { padding-left: 8vw; margin-top: -.02em; }
.hero__screen {
  position: absolute; z-index: 2; margin: 0; right: 3.4vw; top: calc(clamp(84px, 9vw, 120px) + 1.6vw);
  width: min(36vw, 760px); transform: rotate(-3.2deg); transform-origin: 60% 50%;
}
.hero__screen .frame { background: var(--ink-deep); box-shadow: 0 40px 80px -36px rgba(23, 18, 32, .65); }
.hero__tc { margin-top: 12px; color: var(--purple-fog); display: flex; align-items: center; gap: 8px; }
.rec { width: 8px; height: 8px; border-radius: 50%; background: #d23b2f; animation: rec 1.6s steps(1) infinite; }
@keyframes rec { 50% { opacity: .2; } }
.hero__copy { position: relative; z-index: 2; align-self: end; max-width: 34ch; font-size: clamp(17px, 1.1vw, 21px); line-height: 1.5; }
.hero__copy--left { grid-column: 1; grid-row: 3; }
.hero__copy--right { grid-column: 2; grid-row: 3; justify-self: end; text-align: right; max-width: 30ch; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.hero__scroll { margin-top: 22px; color: var(--purple-fog); }

/* hero load: per-line mask + rise, starts with first paint (no preloader) */
.js .hero__title .line > span { animation: rise .7s var(--ease) both; }
.js .hero__title .line--2 > span { animation-delay: .09s; }
.js .hero__screen { animation: screen-in .9s var(--ease) .18s both; }
.js .hero__copy { animation: fade-up .7s var(--ease) .3s both; }
@keyframes rise { from { transform: translateY(105%); } to { transform: none; } }
@keyframes screen-in { from { opacity: 0; transform: rotate(-7deg) translateY(40px) scale(.96); } }
@keyframes fade-up { from { opacity: 0; transform: translateY(16px); } }

/* ---------- 2 · the work ---------- */
.work { background: var(--ink); color: var(--bone); }
.work::before { /* diagonal cut out of the hero */
  content: ""; position: absolute; z-index: 2; left: 0; right: 0; bottom: 100%; height: 9vw; margin-bottom: -1px;
  background: var(--ink); clip-path: polygon(0 100%, 100% 0, 100% 100%);
}
.work__pin {
  position: relative; height: 100vh; height: 100svh; min-height: 640px; overflow: hidden;
  display: flex; flex-direction: column; justify-content: center;
  background: radial-gradient(120% 90% at 30% 40%, rgba(44, 19, 82, .38), transparent 70%);
}
.giant { position: absolute; pointer-events: none; white-space: nowrap; margin: 0; }
.giant--work { top: 3vh; left: var(--gutter); font-size: clamp(120px, 21vw, 420px); color: var(--purple-deep); opacity: .72; z-index: 0; }
.work__head { position: absolute; z-index: 4; bottom: 26px; left: var(--gutter); right: calc(var(--gutter) + 80px); display: flex; justify-content: space-between; }
.work__count { color: var(--purple-muted); }

.rail { position: relative; z-index: 2; outline-offset: -4px; }
.rail__move { position: relative; width: max-content; will-change: transform; }
.rail__track { --card: clamp(300px, min(29vw, 46vh), 560px); display: flex; align-items: center; gap: 7vw; padding: 12vh calc(50vw - var(--card) / 2) 0; }
.card { width: var(--card); flex: none; }
.card:nth-child(odd) { transform: translateY(-4.5vh) rotate(-1.2deg); }
.card:nth-child(even) { transform: translateY(4.5vh) rotate(1deg); }
.card__hit { display: block; width: 100%; cursor: pointer; }
.card__hit:hover .frame, .card__hit:focus-visible .frame { transform: translateY(-6px); border-color: var(--gold-bright); box-shadow: 0 40px 70px -30px rgba(0,0,0,.9), 0 0 0 1px rgba(242, 199, 102, .25); }
.card__hit:hover .frame::before, .card__hit:focus-visible .frame::before { border-color: rgba(242, 199, 102, .6); }
.card__hit:focus-visible { outline: none; }
.card__meta { display: grid; gap: 8px; margin-top: 18px; text-align: center; }
.card__label { color: var(--lavender); }
.card__label--soon { color: var(--cta); }
.card__title { font-size: clamp(36px, 3.4vw, 60px); color: var(--bone); }
.card__facts { color: var(--purple-muted); font-size: 11px; }

.ruler { position: relative; height: 13vh; min-height: 96px; margin-top: 8vh; }
.ruler__ticks { position: absolute; left: 0; right: 0; top: 0; height: 16px;
  background: repeating-linear-gradient(90deg, rgba(244, 239, 230, .2) 0 1px, transparent 1px var(--tick, 40px));
  background-position-x: var(--tick-x, 0); border-top: 1px solid rgba(244, 239, 230, .12); }
.ruler__nums span { position: absolute; top: 22px; transform: translateX(-50%); font: 800 clamp(48px, 6vw, 110px)/.86 var(--f-display); letter-spacing: -.02em; color: var(--purple-shade); white-space: nowrap; }
.ruler__nums span::before { content: ""; position: absolute; left: 50%; top: -22px; height: 30px; width: 1px; background: rgba(244, 239, 230, .4); }
.playhead { position: absolute; z-index: 5; left: 50%; top: var(--ph-top, 70%); height: var(--ph-h, 110px); pointer-events: none; transform: translateX(-.5px); }
.playhead__line { position: absolute; left: 0; bottom: 0; top: 0; width: 1px; background: var(--lavender); box-shadow: 0 0 0 .5px rgba(158,109,233,.3); }
.playhead__line::before { content: ""; position: absolute; top: -1px; left: -5px; border: 5.5px solid transparent; border-top: 7px solid var(--lavender); }
.playhead__tc { position: absolute; left: 12px; bottom: 6px; color: var(--lavender); white-space: nowrap; }

/* ---------- 3 · manifesto ---------- */
.manifesto { background: var(--ink); color: var(--bone); height: 240vh; }
.manifesto__stick { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: grid; place-items: center; align-content: center; gap: 28px; padding: 0 var(--gutter);
  background: radial-gradient(80% 70% at 50% 45%, rgba(44, 19, 82, .55), transparent 75%); }
.manifesto__title { position: relative; z-index: 2; font-size: clamp(84px, 15.5vw, 330px); text-align: center; color: var(--bone); }
.manifesto__title span { display: block; }
.manifesto__dots { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; }
.manifesto__sub { position: relative; z-index: 4; font-size: clamp(17px, 1.5vw, 22px); color: var(--purple-muted); text-align: center; }
.stills { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.still { position: absolute; left: 50%; top: 50%; width: clamp(150px, 19vw, 360px); height: auto; aspect-ratio: 16 / 10; object-fit: cover; border: 10px solid var(--bone); outline: 1px solid rgba(212,162,74,.5); box-shadow: 0 30px 60px -20px rgba(0,0,0,.8); opacity: 0; transform: translate(-50%, -50%) scale(.6); }
.js.motion .manifesto__title { opacity: 0; }

/* ---------- 4 · what we build ---------- */
.services { background: var(--bone); color: var(--ink-deep); overflow: hidden; padding: clamp(90px, 10vw, 170px) var(--gutter) clamp(90px, 9vw, 150px); }
.giant--services { top: clamp(40px, 5vw, 90px); left: 50%; transform: translateX(-50%); font-size: clamp(110px, 17vw, 360px); color: transparent; -webkit-text-stroke: 2px var(--sand); z-index: 0; }
.services__grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; margin-top: clamp(80px, 9vw, 180px); }
.glass {
  position: relative; z-index: 2; grid-column: 1; grid-row: 1; margin-right: -6vw;
  padding: clamp(24px, 2.6vw, 44px); border-radius: 22px;
  background: rgba(244, 239, 230, .62); border: 1px solid rgba(255, 255, 255, .7);
  -webkit-backdrop-filter: blur(18px) saturate(1.2); backdrop-filter: blur(18px) saturate(1.2);
  box-shadow: 0 30px 70px -30px rgba(44, 19, 82, .35);
}
.glass .label { color: var(--purple-fog); }
.glass__count { position: absolute; top: clamp(24px, 2.6vw, 44px); right: clamp(24px, 2.6vw, 44px); color: var(--purple-fog); }
.stepper { margin-top: 26px; border-left: 1px solid var(--sand); }
.step { position: relative; display: block; width: 100%; padding: 14px 0 14px 22px; }
.step::before { content: ""; position: absolute; left: -5px; top: 21px; width: 9px; height: 9px; border-radius: 50%; background: var(--bone); border: 1px solid var(--taupe); transition: background .3s, border-color .3s; }
.step__name { display: block; font-size: 26px; color: var(--purple-fog); transition: color .3s, font-size .35s var(--ease); }
.step__body { display: block; max-height: 0; overflow: hidden; opacity: 0; font-size: 16px; line-height: 1.5; color: var(--ink-deep); transition: max-height .5s var(--ease), opacity .35s, margin .35s; max-width: 40ch; }
.step__bar { position: absolute; left: -1px; top: 0; width: 2px; height: 0; background: var(--purple-rich); }
.step[aria-selected="true"] .step__name { color: var(--purple-deep); font-size: clamp(34px, 3.4vw, 54px); }
.step[aria-selected="true"] .step__body { max-height: 8em; opacity: 1; margin-top: 10px; }
.step[aria-selected="true"]::before { background: var(--purple-rich); border-color: var(--purple-rich); }
.step[aria-selected="true"] .step__bar { height: 100%; transition: height var(--svc-ms, 6000ms) linear; }
.services.is-paused .step[aria-selected="true"] .step__bar, .reduce .step[aria-selected="true"] .step__bar { transition: none !important; height: 100% !important; }
.step:hover .step__name { color: var(--purple-deep); }

.devices { position: relative; grid-column: 2; grid-row: 1; padding: 4vw 0 4vw 4vw; transition: transform .6s var(--ease); }
.laptop { position: relative; transition: transform .6s var(--ease), filter .6s; }
.laptop__screen { position: relative; padding: 2.2% 2.2% 3%; border-radius: 18px 18px 6px 6px; background: var(--ink-deep); box-shadow: inset 0 0 0 1px #2b2438, 0 50px 80px -40px rgba(23,18,32,.6); }
.laptop__screen video { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 4px; background: var(--ink); }
.laptop__base { height: 18px; margin: 0 -6%; border-radius: 2px 2px 20px 20px; background: linear-gradient(#cfc5b8, #a99f93); box-shadow: 0 24px 30px -18px rgba(23,18,32,.5); }
.laptop__base::after { content: ""; display: block; width: 16%; height: 7px; margin: 0 auto; border-radius: 0 0 8px 8px; background: #9a9085; }
.phone { position: absolute; right: -2%; bottom: 0; width: 23%; padding: 2.4%; border-radius: 32px; background: var(--ink); box-shadow: inset 0 0 0 1px #2b2438, 0 40px 60px -24px rgba(23,18,32,.7); transform: rotate(5deg); transition: transform .6s var(--ease); }
.phone__screen { border-radius: 22px; overflow: hidden; }
.phone__screen video { width: 100%; aspect-ratio: 9 / 19.5; object-fit: cover; background: var(--ink-deep); }
.laptop__screen video, .phone__screen video { transition: opacity .26s ease; }
.devices.is-swapping .laptop__screen video, .devices.is-swapping .phone__screen video { opacity: 0; }
.devices.is-phone .phone { transform: rotate(0deg) translate(-12%, -6%) scale(1.22); }
.devices.is-phone .laptop { filter: saturate(.6) brightness(.9); }

/* ---------- 5 · the lab ---------- */
.lab { background: var(--purple-ink); color: var(--bone); padding: clamp(90px, 10vw, 170px) var(--gutter); }
.lab__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 20px 40px; margin-bottom: clamp(40px, 5vw, 80px); }
.section-title { font-size: clamp(76px, 11vw, 220px); color: var(--bone); }
.section-title--ink { color: var(--purple-deep); }
.lab__intro { max-width: 34ch; color: var(--purple-muted); font-size: 17px; }
.lab__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(28px, 3vw, 56px) clamp(20px, 2.4vw, 44px); align-items: start; }
.tile--tapnote  { grid-column: 1 / 6;   grid-row: 1; }
.tile--stitcher { grid-column: 6 / 10;  grid-row: 1; margin-top: 14%; }
.tile--music    { grid-column: 10 / 13; grid-row: 1; margin-top: 4%; }
.tile--festival { grid-column: 2 / 6;   grid-row: 2; }
.tile--machine  { grid-column: 6 / 10;  grid-row: 2; margin-top: 12%; }
.tile--pitch    { grid-column: 10 / 13; grid-row: 2 / span 2; margin-top: 30%; }
.tile--clock    { grid-column: 4 / 9;   grid-row: 3; }
.tile__hit { display: block; width: 100%; }
.tile__hit:hover .frame, .tile__hit:focus-visible .frame { transform: translateY(-6px); border-color: var(--gold-bright); }
.tile__hit:focus-visible { outline: none; }
.tile .frame { background: var(--ink-deep); padding: 10px; }
.tile .frame::before { inset: 9px; }
.frame--tall .frame__video { aspect-ratio: 9 / 17; object-position: top; }
.tile__meta { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; margin-top: 14px; }
.tile__title { font-size: clamp(30px, 2.6vw, 46px); }
.tile__facts { color: var(--purple-muted); font-size: 11px; }

/* ---------- 6 · how it works ---------- */
.how { background: var(--taupe-light); color: var(--ink-deep); padding: clamp(90px, 10vw, 170px) var(--gutter) clamp(110px, 12vw, 200px); overflow: hidden; }
.how__steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 3vw, 60px); margin-top: clamp(40px, 5vw, 90px); position: relative; }
.how__steps::before { content: ""; position: absolute; left: 0; right: 0; top: -30px; height: 12px; border-top: 1px solid var(--taupe); background: repeating-linear-gradient(90deg, var(--taupe) 0 1px, transparent 1px 32px); opacity: .7; }
.how__step { position: relative; }
.how__step:nth-child(2) { margin-top: clamp(40px, 7vw, 140px); }
.how__step:nth-child(3) { margin-top: clamp(80px, 14vw, 280px); }
.how__num { display: block; font-size: clamp(120px, 15vw, 300px); color: var(--taupe-light); -webkit-text-stroke: 2px var(--purple-deep); position: relative; }
.how__name { font-size: clamp(44px, 4.4vw, 84px); color: var(--purple-deep); margin-top: 6px; }
.how__step p:not(.mono) { margin-top: 14px; font-size: 17px; max-width: 30ch; }
.how__tc { margin-top: 16px; color: var(--purple-fog); }

/* ---------- 7 · footer ---------- */
.footer { background: var(--purple-ink); color: var(--bone); overflow: hidden; padding: clamp(100px, 12vw, 200px) var(--gutter) 40px;
  background-image: radial-gradient(90% 80% at 80% 30%, rgba(79, 43, 171, .28), transparent 70%); }
.footer__monogram { position: absolute; z-index: 0; right: -8vw; top: 6%; width: min(70vw, 1000px); height: auto; aspect-ratio: 850 / 730; color: var(--purple-deep); opacity: .8; }
.footer > *:not(.footer__monogram) { position: relative; z-index: 1; }
.footer__title { font-size: clamp(84px, 15vw, 320px); margin-top: 18px; }
.footer__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; margin-top: clamp(36px, 4vw, 64px); }
.footer__lead { max-width: 38ch; font-size: 18px; color: var(--purple-muted); }
.footer__base { display: flex; flex-wrap: wrap; gap: 12px 32px; margin-top: clamp(80px, 9vw, 150px); padding-top: 22px; border-top: 1px solid rgba(212, 162, 74, .35); color: var(--purple-muted); }
.footer__base a { color: var(--bone); text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.footer__base { align-items: center; }
.footer__base a[hidden] { display: none; }
.footer__base a:hover { color: var(--cta); }

/* ---------- global controls ---------- */
.menu-fab { position: fixed; z-index: 40; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); width: 60px; height: 60px; border-radius: 50%; background: var(--ink); border: 1px solid rgba(212, 162, 74, .6); display: grid; place-content: center; gap: 5px; box-shadow: 0 14px 30px -10px rgba(0,0,0,.5); transition: transform .3s var(--ease), border-color .3s; }
.menu-fab:hover { transform: scale(1.06); border-color: var(--gold-bright); }
.menu-fab span { display: block; width: 4px; height: 4px; border-radius: 50%; background: var(--bone); }
.menu-fab { grid-template-columns: repeat(3, 4px); }
.enquire-pill { display: none; }

.menu { position: fixed; inset: 0; z-index: 60; background: var(--purple-ink); color: var(--bone); padding: 90px var(--gutter) 40px; display: flex; flex-direction: column; justify-content: center; clip-path: circle(0 at calc(100% - 46px) calc(100% - 46px)); transition: clip-path .7s var(--ease); overflow-y: auto; }
.menu.is-open { clip-path: circle(150% at calc(100% - 46px) calc(100% - 46px)); }
.menu[hidden] { display: none; }
.menu__close { position: absolute; top: 24px; right: var(--gutter); min-height: 44px; padding: 12px 16px; border: 1px solid rgba(244,239,230,.3); border-radius: 99px; }
.menu__close:hover { border-color: var(--cta); color: var(--cta); }
.menu__list a { display: flex; align-items: baseline; gap: 18px; text-decoration: none; font-size: clamp(64px, 13vh, 150px); color: transparent; -webkit-text-stroke: 1.5px var(--bone); transition: color .25s; }
.menu__list a .mono { -webkit-text-stroke: 0; color: var(--lavender); font-size: 13px; line-height: 1; transform: translateY(-1.8em); }
.menu__list a:hover, .menu__list a:focus-visible { color: var(--bone); }
.menu__foot { margin-top: 40px; color: var(--purple-muted); }
.menu__foot a { color: var(--bone); display: inline-flex; align-items: center; min-height: 44px; }

.overlay { position: fixed; inset: 0; z-index: 70; background: var(--ink); color: var(--bone); overflow-y: auto; opacity: 0; transition: opacity .3s; }
.overlay.is-open { opacity: 1; }
.overlay[hidden] { display: none; }
.overlay__inner { min-height: 100%; display: grid; grid-template-columns: minmax(0, 2.1fr) minmax(280px, 1fr); gap: clamp(24px, 3vw, 56px); align-items: center; padding: 80px var(--gutter) 40px; }
.frame--overlay { background: var(--ink-deep); }
.overlay__video { width: 100%; max-height: calc(100vh - 220px); aspect-ratio: 16 / 9; background: #000; object-fit: contain; }
.overlay.is-tall .overlay__video { aspect-ratio: var(--ov-ar, 9 / 16); width: auto; height: min(calc(100vh - 220px), 900px); margin: 0 auto; }
.overlay.is-small .overlay__video { height: min(calc(100vh - 220px), 640px); }
.overlay__video { cursor: pointer; }
.player { display: flex; align-items: center; gap: 14px; margin-top: 12px; }
.player button { min-height: 44px; padding: 10px 14px; min-width: 84px; border-radius: 99px; border: 1px solid rgba(244,239,230,.28); color: var(--bone); text-align: center; }
.player button:hover { border-color: var(--bone); }
.player__seek { flex: 1; min-width: 60px; accent-color: var(--lavender); height: 24px; }
.player__time { color: var(--purple-muted); white-space: nowrap; }
.overlay.is-tall .frame--overlay { width: fit-content; max-width: 100%; margin: 0 auto; }
.overlay.is-tall .player { max-width: 520px; margin-left: auto; margin-right: auto; }
.overlay.is-tall .overlay__clips { justify-content: center; }
@media (max-width: 760px) {
  .player { flex-wrap: wrap; gap: 10px; }
  .player__seek { order: 3; flex-basis: 100%; }
  .player__time { margin-right: auto; }
}
.overlay__clips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.overlay__clips button { font: 500 12px/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; min-height: 44px; padding: 11px 14px; border-radius: 99px; border: 1px solid rgba(244,239,230,.28); color: var(--purple-muted); }
.overlay__clips button[aria-pressed="true"] { background: var(--bone); color: var(--ink); border-color: var(--bone); }
.overlay__clips button:hover { border-color: var(--bone); color: var(--bone); }
.overlay__clips button[aria-pressed="true"]:hover { color: var(--ink); }
.overlay__title { font-size: clamp(56px, 6vw, 110px); margin: 12px 0 18px; }
.overlay__lines p { font-size: 17px; line-height: 1.55; color: var(--bone); max-width: 42ch; }
.overlay__lines p + p { margin-top: 10px; color: var(--purple-muted); }
.overlay__facts { margin-top: 22px; color: var(--lavender); }
.overlay__note { margin-top: 10px; color: var(--taupe); text-transform: none; letter-spacing: .04em; }
.overlay__note:empty { display: none; }
.overlay__live { margin-top: 26px; }
.overlay__live[hidden] { display: none; }
.overlay__close { position: fixed; top: 20px; right: var(--gutter); z-index: 2; min-height: 44px; padding: 12px 16px; border-radius: 99px; border: 1px solid rgba(244,239,230,.3); background: var(--ink); }
.overlay__close:hover { border-color: var(--cta); color: var(--cta); }

/* ---------- tablet / phone ---------- */
@media (max-width: 1024px) {
  .services__grid { grid-template-columns: 1fr; }
  .devices { grid-column: 1; grid-row: 1; padding: 0 6% 8%; }
  .glass { grid-column: 1; grid-row: 2; margin: -10% 0 0; }
  .lab__grid { grid-template-columns: 1fr 1fr; grid-auto-flow: dense; }
  .lab__grid .tile { grid-column: auto; grid-row: auto; margin-top: 0; }
  .lab__grid .tile--tapnote { grid-column: 1 / -1; }
  .lab__grid .tile--pitch { grid-column: 2; grid-row: span 2; }
  .overlay__inner { grid-template-columns: 1fr; align-items: start; padding-top: 76px; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .topbar { padding: 14px var(--gutter); }
  .topbar__name { font-size: 18px; }
  .topbar .sound { padding: 0; justify-content: center; }
  .topbar .sound__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .hero { display: flex; flex-direction: column; padding-top: 86px; padding-bottom: 18vw; gap: 0; }
  .hero__title { font-size: 24vw; }
  .hero__title .line--2 { padding-left: 0; }
  .hero__monogram { width: 150vw; top: 38%; }
  .hero__screen { position: relative; right: auto; top: auto; width: 92%; align-self: center; margin: 7vw 0 0; transform: rotate(-2.4deg); }
  .hero__copy, .hero__copy--right { max-width: none; text-align: left; justify-self: auto; font-size: 17px; }
  .hero__copy--left { order: 4; margin-top: 40px; }
  .hero__copy--right { order: 5; margin-top: 16px; color: var(--purple-fog); font-size: 15px; }
  .hero__ctas .btn { flex: 1 1 auto; }

  .work__pin { height: auto; min-height: 0; padding: 16vw 0 22px; overflow: hidden; }
  .giant--work { top: 9vw; font-size: 32vw; }
  .work__head { position: relative; top: auto; bottom: auto; left: auto; right: auto; padding: 22vw var(--gutter) 0; }
  html:not(.pin-rail) .rail { overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; overscroll-behavior-x: contain; }
  .rail::-webkit-scrollbar { display: none; }
  .rail__track { --card: 86vw; gap: 5vw; padding: 26px calc(50vw - var(--card) / 2) 4px; }
  .card .frame__video { aspect-ratio: 4 / 3; }
  .card .frame--vertical .frame__video { aspect-ratio: 9 / 16; }
  .card.card--vertical { width: calc(var(--card) * .62); }
  .card__meta { gap: 6px; margin-top: 14px; }
  .card__title { font-size: 40px; }
  .card { scroll-snap-align: center; }
  .card:nth-child(odd) { transform: translateY(-10px) rotate(-1deg); }
  .card:nth-child(even) { transform: translateY(10px) rotate(1deg); }
  /* scroll-driven rail on phones: the section pins and the cards glide across; cards sized to the screen height */
  .pin-rail .work__pin { height: 100vh; height: 100svh; padding: 0; justify-content: center; }
  .pin-rail .giant--work { top: 6svh; }
  .pin-rail .work__head { padding: 0 var(--gutter); margin-bottom: 2svh; }
  .pin-rail .rail__track { --card: min(78vw, 44svh); padding: 3svh calc(50vw - var(--card) / 2) 0; }
  .pin-rail .card__title { font-size: clamp(30px, 8vw, 40px); }
  .ruler { height: 58px; min-height: 0; margin-top: 8px; }
  .ruler__nums span { font-size: 36px; top: 16px; }
  .ruler__nums span::before { top: -16px; height: 20px; }
  .ruler__ticks { height: 10px; }


  .manifesto { height: 200vh; }
  .manifesto__title { font-size: 21vw; }
  .still { width: 40vw; border-width: 6px; }

  .giant--services { font-size: 26vw; white-space: normal; text-align: center; line-height: .84; width: 100%; }
  .services__grid { margin-top: 44vw; }
  .glass { margin-top: -3%; }
  .step__name { font-size: 22px; }
  .step[aria-selected="true"] .step__name { font-size: 36px; }

  .lab__grid { gap: 28px 14px; }
  .tile__title { font-size: 26px; }
  .tile__meta { display: grid; gap: 6px; }
  .tile .frame { padding: 7px; }
  .tile .frame::before { inset: 6px; }
  .how__steps { grid-template-columns: 1fr; }
  .how__steps::before { display: none; }
  .how__step:nth-child(n) { margin-top: 0; display: grid; grid-template-columns: auto 1fr; column-gap: 18px; align-items: start; }
  .how__num { grid-row: 1 / span 3; font-size: 34vw; }
  .how__name { margin-top: 2vw; }
  .footer { padding-bottom: 110px; }
  .footer__title { font-size: 22vw; }
  .btn--big { width: 100%; }

  .enquire-pill { display: inline-flex; position: fixed; z-index: 39; left: 16px; bottom: max(22px, env(safe-area-inset-bottom)); min-height: 50px; box-shadow: 0 14px 30px -10px rgba(0,0,0,.5); transform: translateY(140%); transition: transform .45s var(--ease); }
  .enquire-pill.is-on { transform: none; }
  .menu__list a { font-size: 17vw; }
  .overlay.is-tall .overlay__video { height: min(66vh, 720px); }
  .overlay.is-small .overlay__video { height: min(60vh, 560px); }
  .overlay__inner { padding: 70px var(--gutter) 100px; }
}

/* ---------- reduced motion: no pin/scrub, plain vertical list, posters ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .work__pin { height: auto; min-height: 0; overflow: visible; padding: 14vw 0 80px; }
  .work__head { position: relative; top: auto; bottom: auto; padding: 0 var(--gutter) 30px; margin-top: 16vw; left: 0; right: 0; }
  .rail { overflow: visible; }
  .rail__move { width: auto; }
  .rail__track { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 56px 40px; padding: 30px var(--gutter) 0; }
  .card, .card:nth-child(odd), .card:nth-child(even) { width: auto; transform: none; }
  .ruler, .playhead { display: none; }
  .manifesto { height: auto; }
  .manifesto__stick { position: relative; height: auto; padding: 120px var(--gutter); }
  .manifesto__dots { display: none; }
  .stills { position: relative; inset: auto; display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; margin-top: 30px; }
  .still { position: relative; left: auto; top: auto; opacity: 1; transform: rotate(-2deg); }
  .still:nth-child(even) { transform: rotate(2deg); }
}
