/* ============================================================
   HANO STUDIOS
   Tokens taken directly from the brand guidelines.
   ============================================================ */

:root{
  /* Brand colours */
  --void:      #0A0A0A;
  --frost:     #FFFFFF;
  --nebula:    #47127C;
  --aurora:    #8B32F7;

  /* Derived neutrals */
  --ink-90:    rgba(255,255,255,.90);
  --ink-60:    rgba(255,255,255,.60);
  --ink-40:    rgba(255,255,255,.40);
  --ink-14:    rgba(255,255,255,.14);
  --ink-08:    rgba(255,255,255,.08);
  --dark-60:   rgba(10,10,10,.60);
  --dark-14:   rgba(10,10,10,.14);


  /* Type */
  --sans: 'Instrument Sans', system-ui, -apple-system, sans-serif;
  --serif:'Aleo', Georgia, serif;

  /* Rhythm */
  --pad:  clamp(20px, 4vw, 64px);
  --gap:  clamp(48px, 8vw, 140px);
}

*,*::before,*::after{ box-sizing:border-box; margin:0; padding:0; }

html{ scroll-behavior:smooth; -webkit-text-size-adjust:100%; }

body{
  background:var(--void);
  color:var(--frost);
  font-family:var(--sans);
  font-weight:400;
  line-height:1.35;
  letter-spacing:-.02em;
  overflow-x:hidden;
  -webkit-font-smoothing:antialiased;
}

img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
ul,ol{ list-style:none; }
button{ font:inherit; color:inherit; background:none; border:0; cursor:pointer; }

:focus-visible{ outline:2px solid var(--aurora); outline-offset:3px; }

/* ---------- Shared type patterns ---------- */

/* Two-tone headings: bold lead-in, light remainder */
.h-split{
  font-size:clamp(30px, 4.4vw, 62px);
  font-weight:300;
  letter-spacing:-.03em;
  line-height:1.04;
}
.h-split strong{ font-weight:600; }
.h-split.dark{ color:var(--void); }

.sub{
  margin-top:14px;
  max-width:34ch;
  font-size:clamp(13px, 1.05vw, 15px);
  font-weight:400;
  line-height:1.5;
  color:var(--ink-40);
}
.sub strong{ font-weight:500; color:var(--ink-90); }
.sub.dark{ color:var(--dark-60); }
.sub.dark strong{ color:var(--void); }

.eyebrow{
  font-size:11px;
  font-weight:500;
  letter-spacing:.10em;
  text-transform:uppercase;
  color:var(--ink-60);
}

.link-arrow{
  display:inline-flex;
  align-items:center;
  gap:12px;
  margin-top:34px;
  padding-bottom:6px;
  font-size:12px;
  font-weight:500;
  letter-spacing:.10em;
  text-transform:uppercase;
  border-bottom:1px solid var(--ink-40);
  transition:gap .3s ease, border-color .3s ease;
}
.link-arrow:hover{ gap:20px; border-color:var(--frost); }
.link-arrow.dark{ border-bottom-color:var(--dark-14); color:var(--void); }
.link-arrow.dark:hover{ border-bottom-color:var(--void); }

/* Reveal-on-scroll base state — only hidden when JS is running,
   so content is never stranded invisible if scripts fail to load. */
.js .reveal{ opacity:0; transform:translateY(26px); }

/* Fallbacks when GSAP is unavailable (blocked CDN, CSP, offline).
   Pinned/scrubbed sections degrade to plain scrollable layout. */
.no-gsap .works-pin{ height:auto; overflow-x:auto; overflow-y:hidden; }
.no-gsap .works-track{ padding-block:12vh; }
.no-gsap .wipe{ display:none; }

/* ============================================================
   MENU
   ============================================================ */

.menu-btn{
  position:fixed;
  top:clamp(16px,2.4vw,32px);
  right:clamp(16px,2.4vw,32px);
  z-index:120;
  width:46px; height:46px;
  display:grid;
  place-content:center;
  gap:5px;
  border-radius:50%;
  background:var(--frost);
  opacity:0;
  pointer-events:none;
  transition:opacity .4s ease, background .3s ease;
}
.menu-btn.is-visible{ opacity:1; pointer-events:auto; }
.menu-btn span{
  display:block;
  width:16px; height:1.5px;
  background:var(--void);
  transition:transform .35s ease, opacity .25s ease;
}
/* Over the light services section a white pill on white is invisible, so it
   inverts to a dark pill — which is also how Figma draws it there. */
.menu-btn.on-light{ background:var(--void); }
.menu-btn.on-light span{ background:var(--frost); }

/* Open, it is a bare white × on the purple ground (Figma frame 183). The white
   pill is only needed closed, where it sits over arbitrary page content. */
.menu-btn.is-open{ background:transparent; }
.menu-btn.is-open span{ width:20px; background:var(--frost); }
.menu-btn.is-open span:nth-child(1){ transform:translateY(3.25px) rotate(45deg); }
.menu-btn.is-open span:nth-child(2){ transform:translateY(-3.25px) rotate(-45deg); }

.menu-overlay{
  position:fixed;
  inset:0;
  z-index:110;
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:flex-end;
  padding:clamp(72px,10vh,120px) clamp(20px,4vw,64px) clamp(64px,9vh,104px);
  background:var(--nebula);
  clip-path:circle(0% at calc(100% - 40px) 40px);
  transition:clip-path .7s cubic-bezier(.76,0,.24,1);
}
.menu-overlay.is-open{ clip-path:circle(150% at calc(100% - 40px) 40px); }

/* Logomark sits top-left, opposite the close button */
.menu-mark{
  position:absolute;
  top:clamp(16px,2.4vw,32px);
  left:clamp(20px,4vw,64px);
  width:clamp(32px,3.2vw,46px);
  height:auto;
}

.menu-inner{ text-align:left; }

.menu-links li{ overflow:hidden; }
.menu-links a{
  display:flex;
  align-items:baseline;
  padding:2px 0;
  font-size:clamp(28px,5vw,68px);
  font-weight:400;
  letter-spacing:-.03em;
  line-height:1.2;
  text-transform:uppercase;
  transform:translateY(110%);
  transition:transform .6s cubic-bezier(.22,1,.36,1), opacity .3s ease;
}
/* Arrow lives in a reserved gutter, so revealing it never shifts the word */
.menu-links a::before{
  content:'\2192';
  flex:none;
  width:.9em;
  margin-right:.16em;
  opacity:0;
  transform:translateX(-.25em);
  transition:opacity .3s ease, transform .3s ease;
}
.menu-links a:hover::before,
.menu-links a:focus-visible::before{ opacity:1; transform:none; }

.menu-overlay.is-open .menu-links a{ transform:translateY(0); }
.menu-links li:nth-child(1) a{ transition-delay:.10s; }
.menu-links li:nth-child(2) a{ transition-delay:.16s; }
.menu-links li:nth-child(3) a{ transition-delay:.22s; }
.menu-links li:nth-child(4) a{ transition-delay:.28s; }
.menu-links li:nth-child(5) a{ transition-delay:.34s; }
.menu-links li:nth-child(6) a{ transition-delay:.40s; }

/* Copyright left, socials right, pinned to the bottom edge */
.menu-foot{
  position:absolute;
  left:clamp(20px,4vw,64px);
  right:clamp(20px,4vw,64px);
  bottom:clamp(18px,3vh,34px);
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:12px clamp(16px,3vw,38px);
  font-size:12px;
  color:var(--ink-60);
}
.menu-social{ display:flex; flex-wrap:wrap; gap:clamp(14px,2.4vw,34px); }
.menu-foot a{ transition:color .25s ease; }
.menu-foot a:hover{ color:var(--frost); }

@media (max-width:600px){
  .menu-overlay{ align-items:flex-start; }
  .menu-foot{ justify-content:flex-start; }
}

/* ============================================================
   HERO
   ============================================================ */

/* Opaque, and stacked above the statement while pinned: the pin runs with
   pinSpacing:false, so the statement scrolls up BEHIND the hero during the
   sequence. The z-index is managed INLINE by main.js (3 while pinned, 1 once
   released so the statement paints over the riding hero) — it must NOT be set
   here: GSAP's pin-spacer clones the element's computed z-index at pin setup,
   and a spacer stuck at 3 out-stacks the statement whatever the hero says. */
.hero{
  position:relative;
  min-height:100svh;
  padding:var(--pad);
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  background:var(--void);
  overflow:hidden;
}
/* Scroll room for the pinned sequence. The pin runs until the statement's top
   reaches the top of the screen, so this margin IS the extra scroll the hero
   animation gets beyond one viewport (main.js derives the pin length from the
   statement's position — one source of truth). Compressing the sequence into
   exactly one viewport made the whole thing rush past in a single flick.
   The margin region is always behind the pinned hero, never visible.
   Only when GSAP is actually driving the pin — otherwise it is a real gap. */
.js:not(.no-gsap) .hero{ margin-bottom:62svh; }

/* The background plate. Sits under the glow and under all content (z-index 2),
   and is revealed only on `playing` — until then the poster and the CSS glow
   carry the section, so a blocked or slow video is never a black hole. */
.hero-video{
  position:absolute;
  inset:0;
  z-index:0;
  width:100%;
  height:100%;
  object-fit:cover;
  opacity:0;
  transition:opacity .9s ease;
  pointer-events:none;
}
.hero-video.is-playing{ opacity:1; }
/* Once the footage is up the CSS glow would double the wash and lift the black
   behind the wordmark, so it yields to the real thing.

   display:none, not opacity:0 — and this is a performance fix, not a cosmetic
   one. .hero-glow is a full-viewport element under a 38px blur running a 26s
   animation; at opacity:0 it keeps compositing that blur every frame forever,
   on top of the video decode. Taking it out of the box tree stops the work. */
.hero.has-video .hero-glow{ display:none; }

.hero-glow{
  position:absolute;
  inset:-10%;
  z-index:0;
  background:
    radial-gradient(46% 40% at 68% 34%, rgba(255,255,255,.20) 0%, transparent 62%),
    radial-gradient(30% 34% at 40% 62%, rgba(255,255,255,.09) 0%, transparent 66%),
    radial-gradient(70% 60% at 84% 12%, rgba(255,255,255,.07) 0%, transparent 70%);
  filter:blur(38px);
  animation:drift 26s ease-in-out infinite alternate;
}
/* A second, counter-drifting layer on a different period. One layer on one loop
   read as static because every highlight moved together; two layers at 26s and
   19s cross each other, so the gradient keeps reshaping instead of just sliding. */
.hero-glow::after{
  content:'';
  position:absolute;
  inset:-14%;
  background:
    radial-gradient(38% 32% at 26% 52%, rgba(255,255,255,.13) 0%, transparent 64%),
    radial-gradient(52% 44% at 82% 68%, rgba(255,255,255,.10) 0%, transparent 68%);
  filter:blur(46px);
  animation:drift-b 19s ease-in-out infinite alternate;
}
@keyframes drift{
  from{ transform:translate3d(-2%,-1%,0) scale(1);   }
  to  { transform:translate3d(3%,2%,0)   scale(1.10);}
}
@keyframes drift-b{
  from{ transform:translate3d(4%,2%,0)  scale(1.06) rotate(0deg);   }
  to  { transform:translate3d(-3%,-2%,0) scale(1)    rotate(-6deg); }
}

.hero-tagline{
  position:relative; z-index:2;
  max-width:36ch;
  margin-bottom:clamp(18px,2.4vw,34px);
  font-size:clamp(13px, 1.15vw, 16px);
  font-weight:400;
  line-height:1.5;
  color:var(--ink-90);
}
.hero-tagline em{
  font-family:var(--serif);
  font-style:italic;
  font-weight:500;
  letter-spacing:0;
}

/* Frames 217-220. The top bar is absolutely positioned so it cannot affect
   .hero's space-between distribution — the tagline and title keep the exact
   placement they had before the bar existed. */
.hero-top{
  position:absolute;
  top:var(--pad);
  left:var(--pad);
  right:var(--pad);
  z-index:3;
  display:flex;
  align-items:center;
  gap:clamp(20px,3.4vw,52px);
}

.hero-mark{
  flex:none;
  width:clamp(30px, 2.6vw, 38px);
  height:auto;
}

.hero-top-nav ul{ display:flex; gap:clamp(18px,2.6vw,44px); }
.hero-top-nav a,
.hero-top-cta{
  font-size:clamp(11px,.92vw,13px);
  font-weight:500;
  letter-spacing:.06em;
  text-transform:uppercase;
  color:var(--frost);
  white-space:nowrap;
  transition:color .25s ease;
}
.hero-top-nav a:hover,
.hero-top-cta:hover{ color:var(--aurora); }
/* Pushed to the far right of the bar, per 217. */
.hero-top-cta{ margin-left:auto; }

/* The hero is pinned, so the bar is still on screen when the fixed menu button
   fades in at 60% of a viewport — and CONTACT US sits exactly under it. The
   button opens an overlay carrying all of these links anyway, so the bar hands
   over to it rather than sharing the corner. .menu-btn and .hero are siblings
   in <body>, which is what makes this a CSS-only handover with no second
   scroll listener to keep in sync. */
.hero-top{ transition:opacity .3s ease; }
/* Desktop only. On a phone the button is present from the first frame and the
   bar holds nothing but the mark, which 220 still draws mid-split — there is
   no corner to hand over there. */
@media (min-width:601px){
  .nav-armed .hero-top{ opacity:0; pointer-events:none; }
}

/* Phone: the bar keeps only the mark, the links live in the menu overlay, and
   the action moves to .hero-cta-bar at the foot of the hero (219). */
.hero-cta-bar{ display:none; }

/* Centred on the hero, above the glow but below the words, so the title reads
   over it while it is small and it swallows the screen once it grows.
   opacity:0 by default — with no GSAP it simply never appears. */
.hero-square{
  position:absolute;
  top:50%;
  left:50%;
  z-index:1;
  width:clamp(90px,17vw,290px);
  aspect-ratio:1;
  margin:calc(clamp(90px,17vw,290px) / -2) 0 0 calc(clamp(90px,17vw,290px) / -2);
  border-radius:10px;
  /* Flat, not a gradient. A gradient here had to be mirrored by a matching
     gradient on .statement for the handoff to be seamless, and that put a
     visible #191919 -> #0d0d0d vertical sweep behind the statement copy that
     the reference does not have. A solid tone hands off to a solid section.
     Slightly lighter than Void so the box reads against the hero; main.js
     settles it to Void once it has covered, so the section it becomes is the
     same flat black as the rest of the page. */
  background:#151515;
  opacity:0;
  will-change:transform, border-radius, opacity;
}

/* The tagline moved inside, so this is now the hero's only in-flow child and
   space-between alone would park it at the top. Keep it on the floor. */
.hero-bottom{ position:relative; z-index:2; margin-top:auto; }

.hero-title{
  display:flex;
  align-items:baseline;
  width:100%;
  /* "HANO STUDIOS." is ~7.26x its font-size wide and must not wrap, so the
     largest size that still fits inside the page padding is ~12.67vw.
     15.2vw overflowed the viewport at every width below ~2500px. */
  font-size:clamp(40px, 12.2vw, 300px);
  font-weight:500;
  letter-spacing:-.045em;
  line-height:.86;
  white-space:nowrap;
}
.ht-gap{ flex:0 0 .22em; }
.ht-a,.ht-b{ display:inline-block; will-change:transform, filter, opacity; }
/* main.js drops the blur from the divide tween at this width, so promoting a
   filter layer here only costs memory and forces a filter path that is never
   used. Keep transform/opacity, which are what actually animate. */
@media (max-width:900px){
  .ht-a,.ht-b{ will-change:transform, opacity; }
}


/* ============================================================
   STATEMENT / CLIENTS
   ============================================================ */

/* Tall enough that the copy can pin while its lines reveal one per scroll step,
   then release into the client grid.

   The top of this gradient is the same colour the .hero-square carries, so when
   the square fades out at the end of the hero pin the statement is already
   sitting behind it wearing that exact tone — the cover hands over instead of
   cutting. No leading padding: the square finishes flush against this section,
   and a --gap of empty space there was part of the black void. */
.statement{
  position:relative;
  /* Above the released hero (main.js drops it to z-index:1 at pin end) but
     below the pinned hero mid-sequence (z-index:3). */
  z-index:2;
  padding:0 var(--pad) var(--gap);
  /* Flat Void, like every other section. This used to be a gradient mirroring
     .hero-square's own so the cover could hand over without a seam, but that
     showed as a #191919 -> #0d0d0d sweep behind the copy — not in the
     reference, which is flat near-black here. The square is now flat too and
     settles to Void as it finishes covering, so a flat section is what it
     hands off to. */
  background:var(--void);
}

/* Sized by its content, not the viewport. A 100svh box with the copy centred
   left half a screen of empty black between the copy and the client grid in
   normal flow — the gap kept reappearing at every window height. The top pad
   puts the copy in the upper-middle of the screen while pinned (where the Figma
   statement sits); the small bottom pad is all that separates it from the
   clients once the pin releases. */
.statement-pin{
  padding:max(20svh, 90px) 0 max(8svh, 44px);
}

/* Each line clips its own inner span, so the reveal slides up from behind the
   line above rather than fading in place. */
.sc-line{
  display:block;
  overflow:hidden;
}
.sc-line > span{
  display:block;
  will-change:transform, opacity;
}
/* Only hidden when JS is running — same guard as .reveal, so a blocked script
   leaves the statement fully readable instead of stranding it invisible.

   Opacity only, no transform. GSAP owns the Y position of these spans, and a
   translateY here stacked on top of its yPercent so the lines finished 130px
   below a 124px clip box — fully lit but clipped out of sight. */
.js .sc-line > span{
  opacity:0;
}
.no-gsap .sc-line > span{ transform:none; opacity:1; }

.statement-copy{
  font-size:clamp(24px, 3.5vw, 50px);
  font-weight:400;
  letter-spacing:-.035em;
  line-height:1.24;
  /* em, not ch. Each .sc-line is a pre-broken line from the Figma and must sit
     on ONE visual line — the reveal animates each as a single unit, so a line
     that wraps reveals as a two-line block and the whole rhythm is wrong.
     Measured across 390-1920, the longest of the four lines is a consistent
     ~23.7x its own font-size, so 25em clears it at every size while still
     constraining the column on very wide screens. The old 26ch resolved to just
     807px against a 1187px line, so all four lines wrapped and the section was
     eight lines tall instead of four. */
  max-width:25em;
}

.clients{ margin-top:clamp(24px,4vw,60px); }

/* Frame 226: 6 x 3 filled tiles split by a 2px gap, every mark in white.
   Tiles are 246x85 in the frame, so the aspect ratio carries that at any width
   and the row height no longer needs its own clamp. */
.client-grid{
  display:grid;
  grid-template-columns:repeat(6,1fr);
  gap:2px;
  margin-top:18px;
}
.client-grid li{
  display:grid;
  place-items:center;
  aspect-ratio:246/85;
  background:var(--ink-08);
  transition:background .3s ease;
}
.client-grid li:hover{ background:var(--ink-14); }
/* Each mark's width is set per logo (--w, a % of the tile, measured off the
   frame) rather than by a shared cap. The set mixes long wordmarks (Levels
   Socials at 64%) with tall badges (Unilever at 21%), and the designer has
   balanced them by eye — any single width or height cap flattens that. */
.client-grid img{
  width:calc(var(--w, 40) * 1%);
  height:auto;
}

/* ============================================================
   WORKS — horizontal scroll
   ============================================================ */

.works{ position:relative; background:var(--void); }
.works-pin{ height:100svh; overflow:hidden; }
.works-track{
  display:flex;
  align-items:center;
  gap:clamp(24px,3vw,54px);
  height:100%;
  padding:0 var(--pad);
  will-change:transform;
}

.works-intro{
  flex:none;
  width:clamp(240px,26vw,360px);
  padding-right:clamp(10px,2vw,30px);
}

.work-card{
  flex:none;
  width:clamp(272px,38vw,520px);
}
.work-img{
  aspect-ratio:16/10;
  border-radius:4px;
  background:#141414;
  background-size:cover;
  background-position:center;
  transition:transform .6s cubic-bezier(.22,1,.36,1);
  position:relative;
  overflow:hidden;
}
.work-card:hover .work-img{ transform:translateY(-8px); }

/* Motion mockup layered OVER the still, which stays as the background image.
   The still is therefore the poster: it is already painted before a single byte
   of video is fetched, and it is what remains if the clip fails, if the file is
   missing, or if the visitor has reduced motion on. The clips are 16:9 inside a
   16:10 box, so object-fit:cover crops the way background-size:cover already
   did. */
.work-video{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  /* Faded in by main.js once the clip is genuinely playing, so a stalled or
     blocked video never shows a black rectangle over the still. */
  opacity:0;
  transition:opacity .5s ease;
}
.work-video.is-playing{ opacity:1; }

@media (prefers-reduced-motion:reduce){
  /* Never autoplay looping motion for these visitors — the still says the
     same thing. main.js also skips loading the file entirely. */
  .work-video{ display:none; }
}
/* Wraps the whole card on projects that have a case-study page. display:block
   so the card keeps its normal box; the h3 gets the aurora on hover as the
   affordance that this one is clickable. */
.work-link{ display:block; }
.work-link:hover h3{ color:var(--aurora); }
.work-link h3{ transition:color .25s ease; }

.work-meta{
  display:grid;
  grid-template-columns:minmax(96px,.34fr) 1fr;
  gap:clamp(12px,1.6vw,26px);
  margin-top:18px;
}
.work-meta h3{
  font-size:clamp(16px,1.5vw,23px);
  font-weight:500;
  letter-spacing:-.03em;
}
/* The client's own mark stands in for the card title. Capped on BOTH axes and
   left-aligned in a fixed-height box: the set mixes wide wordmarks (Bybit,
   Levels Socials) with tall roundels (Hano Crypto), so a width cap alone would
   make the circular marks tower over the rows beside them. object-position
   keeps every mark on the same left edge as the copy under it. */
.work-logo{
  height:clamp(22px,2.1vw,30px);
  width:auto;
  max-width:min(70%, 190px);
  object-fit:contain;
  object-position:left center;
}
/* A circular mark is as wide as it is tall, so at the wordmark height it reads
   as a fraction of their area and looks like a stray dot. Squared up and given
   its own height so it carries comparable weight in the row. */
.work-logo[src$="hano-crypto.png"]{ height:clamp(40px,3.6vw,52px); }
.work-meta p{
  font-size:clamp(12px,.95vw,14px);
  font-weight:400;
  line-height:1.5;
  color:var(--ink-90);
}
.work-meta .tag{
  grid-column:2;
  margin-top:10px;
  font-size:10px;
  font-weight:500;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:var(--ink-40);
}

/* Placeholder art tones — swap for real project images.
   Scoped to the four elements that actually show art. Unscoped, these matched
   any [data-tone] and painted gradients across the service list rows, which
   carry data-tone for a hover preview that no longer exists. */
.work-img[data-tone="amber"],
.phone[data-tone="amber"],
.member-photo[data-tone="amber"] { background-image:linear-gradient(135deg,#3a2a10,#0d0906 62%,#241906); }

.work-img[data-tone="green"],
.phone[data-tone="green"],
.member-photo[data-tone="green"] { background-image:linear-gradient(135deg,#0d2a1c,#050d09 62%,#0a1f15); }

.work-img[data-tone="orange"],
.phone[data-tone="orange"],
.member-photo[data-tone="orange"]{ background-image:linear-gradient(135deg,#3a1c08,#0d0704 62%,#2a1406); }

.work-img[data-tone="lilac"],
.phone[data-tone="lilac"],
.member-photo[data-tone="lilac"] { background-image:linear-gradient(135deg,#2a2440,#0a0910 62%,#1e1a30); }

.work-img[data-tone="steel"],
.phone[data-tone="steel"],
.member-photo[data-tone="steel"] { background-image:linear-gradient(135deg,#242424,#0b0b0b 62%,#1a1a1a); }

.work-img[data-tone="purple"],
.phone[data-tone="purple"],
.member-photo[data-tone="purple"]{ background-image:linear-gradient(135deg,var(--nebula),#120520 62%,#2a0d47); }

/* ============================================================
   SHOWCASE
   ============================================================ */

/* Two real columns — heading left, carousel right. This used to be a single
   column with the stage yanked up by a negative margin-top, which overlapped
   the heading as soon as the viewport was wide enough. */
.showcase{
  position:relative;
  /* Explicit, not inherited from body. main.js now pins this whole section
     (position:fixed while pinned), and a fixed box with no background of its
     own is transparent everywhere its children don't paint — Works, still
     scrolling underneath in normal flow, showed straight through the grid
     gaps and the empty space around the phones. */
  background:var(--void);
  display:grid;
  grid-template-columns:minmax(240px,.72fr) 1.75fr;
  gap:clamp(24px,4vw,64px);
  align-items:center;
  padding:var(--gap) var(--pad);
  overflow:hidden;
}
.showcase-head{ position:relative; z-index:2; max-width:420px; }
/* Sized to the head's own grid column (~364px at 1440) so the heading breaks
   after "Ideas" into exactly two lines, as the frame draws it — at the shared
   62px it broke after "Shaping" into three. On phones it fits on one line,
   matching mobile frame 196. */
.showcase-head .h-split{ font-size:clamp(28px,3.6vw,52px); }
.showcase-controls{ display:flex; gap:26px; margin-top:38px; }
.arrow{
  font-size:22px;
  line-height:1;
  color:var(--ink-40);
  transition:color .25s ease, transform .25s ease;
}
.arrow:hover{ color:var(--frost); transform:translateX(3px); }

/* Sound toggle. Sits with the arrows and inherits their colour, so the icon
   fill/stroke follow currentColor and the hover state comes for free.
   Shared: the showcase carousel uses it, and main.js builds the same button
   into any case-study gallery holding a video[data-audio]. */
.sound-btn{
  display:inline-grid;
  place-items:center;
  width:24px;
  height:24px;
  /* The arrows nudge sideways on hover; a symmetrical icon should not. */
  transition:color .25s ease;
}
.sound-btn:hover{ transform:none; }
.sound-btn svg{
  grid-area:1/1;                 /* stack both icons, show one */
  width:20px;
  height:20px;
  fill:currentColor;
  stroke:none;
}
.sound-btn svg .stroke{
  fill:none;
  stroke:currentColor;
  stroke-width:1.9;
  stroke-linecap:round;
}
.sound-btn .ico-on{ display:none; }
.sound-btn.is-on .ico-muted{ display:none; }
.sound-btn.is-on .ico-on{ display:block; }
.sound-btn.is-on{ color:var(--frost); }

.showcase-stage{
  display:flex;
  gap:clamp(18px,2.6vw,40px);
  /* bleed past the page padding so the carousel reads as continuing off-screen */
  margin-right:calc(var(--pad) * -1);
  /* Side padding equal to half the free track width, so the first and last
     slides can actually reach the centre. Without it scrollLeft clamps at 0 and
     the outer slides never centre however far you scroll. */
  padding:40px 42% 40px 38%;
  overflow-x:auto;
  scrollbar-width:none;
}
/* Snap only when nothing is driving scrollLeft itself: the GSAP pin below sets
   it every scrub tick, and the browser's own snap-settling logic fights that —
   once the tween paused mid-scrub the stage would visibly snap to whichever
   phone was nearest and jump, rather than tracking smoothly. Under .no-gsap /
   reduced motion nothing scrubs it at all, so a manual swipe needs the snap. */
.no-gsap .showcase-stage{ scroll-snap-type:x mandatory; }
.showcase-stage::-webkit-scrollbar{ display:none; }

.phone{
  position:relative;
  flex:none;
  /* Sized from viewport HEIGHT, not width. A 9:16 card driven by a width cap
     could only ever be ~412px tall inside a ~500px stage, so the clips read as
     small squat rectangles with most of the section sitting empty. Driving the
     width off the height the section actually has fills that space, and
     aspect-ratio keeps 9:16 exact. 33.75svh is 60svh x 9/16 — the width a
     60svh-tall phone needs. The vw and px terms cap it on short/wide windows. */
  width:min(33.75svh, 26vw, 340px);
  /* Matches the clips (540x960). At the 9/19.5 of a modern handset, cover
     cropped ~11% off each side — enough to lose the client logo in the corner
     and clip the captions, which sit close to the edge in every one of these.
     Showing the work whole beats a taller mockup. */
  aspect-ratio:9/16;
  scroll-snap-align:center;
  display:flex;
  align-items:flex-end;
  padding:18px;
  border:1px solid var(--ink-14);
  border-radius:26px;
  background-size:cover;
  overflow:hidden;                 /* keeps the video inside the rounded frame */
  /* Inactive slides are dimmed AND blurred, per the reference. The blur is what
     makes the strip read as one phone in focus rather than several competing
     for attention; main.js pauses these same videos, so a blurred neighbour is
     genuinely stopped, not merely out of focus. */
  filter:brightness(.42) blur(4px);
  transition:filter .5s ease, transform .5s ease;
}
.phone:hover{ filter:brightness(.72) blur(1.5px); }

/* The notch. Frame 198's phones are proper device mockups — this was a plain
   rounded card with no hardware cues at all, which is why it read as "just a
   card" rather than "a phone playing a video". Sits inside the frame's own
   bounds so .phone's overflow:hidden never clips it. */
.phone::before{
  content:'';
  position:absolute;
  top:9px;
  left:50%;
  z-index:3;
  width:32%;
  height:5px;
  transform:translateX(-50%);
  border-radius:5px;
  background:rgba(0,0,0,.55);
}

/* The active slide is sharp and lifted while its video plays. Also wins over
   :hover — without the second selector, pointing at the playing phone would
   drop it back to the dimmed hover state. */
.phone.is-active,
.phone.is-active:hover{ filter:brightness(1) blur(0); transform:translateY(-10px); }

.phone-video{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  border-radius:inherit;
  pointer-events:none;
}
.phone span{
  font-size:11px;
  font-weight:500;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:var(--ink-60);
}

/* ============================================================
   CIRCLE WIPE
   ============================================================ */

.wipe{ height:170vh; position:relative; }
.wipe-circle{
  --scale:.06;
  position:sticky;
  top:0;
  height:100vh;
  overflow:hidden;
}
/* Absolute + translate(-50%,-50%), not display:grid;place-items:center. The
   circle's own unscaled box is 56vmax square (~473px on a 390-wide phone) —
   wider than the container even before it starts growing. Centering an
   oversized box that overflows its container is exactly the case where grid
   alignment is inconsistent: it rendered visibly off-centre to the right on a
   phone. An explicit centre-point + translate has no such ambiguity — it is
   centred on the container's actual midpoint at every scale, full stop. */
.wipe-circle::after{
  content:'';
  position:absolute;
  top:50%;
  left:50%;
  width:56vmax; height:56vmax;
  border-radius:50%;
  background:var(--frost);
  transform:translate(-50%,-50%) scale(var(--scale));
  will-change:transform;
}

/* ============================================================
   SERVICES (light section)
   ============================================================ */

.services{
  position:relative;
  z-index:2;
  display:grid;
  grid-template-columns:minmax(220px,.85fr) 1.6fr;
  gap:clamp(28px,5vw,90px);
  padding:var(--gap) var(--pad);
  background:var(--frost);
  color:var(--void);
}

.services-left{ position:relative; }

.service-list{ align-self:center; }
.service-list li{ border-bottom:1px solid var(--dark-14); }
.service-list li:first-child{ border-top:1px solid var(--dark-14); }
.service-list a{
  display:block;
  padding:clamp(16px,2vw,26px) clamp(14px,1.6vw,22px);
  font-size:clamp(17px,2.3vw,32px);
  font-weight:500;
  letter-spacing:-.025em;
  text-transform:uppercase;
  transition:background .35s ease, color .35s ease, padding-left .35s ease;
}
.service-list li:hover a{
  background:var(--void);
  color:var(--frost);
  padding-left:clamp(22px,2.6vw,38px);
}

/* ============================================================
   TEAM
   ============================================================ */

/* White backdrop the black team panel grows over, continuing the light services
   section. Default state is the panel at full width covering it completely, so
   without GSAP this is invisible and the section looks exactly as before. */
.team-riser{ background:var(--frost); }

.team{
  position:relative;
  margin-inline:auto;
  padding:var(--gap) var(--pad);
  background:var(--void);
  overflow:hidden;              /* keeps content inside the rounded corners */
}

/* Frame 239: three cards across the full width, the stats as one row beneath. */
.team-grid{
  display:grid;
  gap:clamp(30px,4vw,60px);
  margin-top:clamp(28px,4vw,50px);
}
.team-cards{ display:grid; grid-template-columns:repeat(3,1fr); gap:clamp(14px,1.8vw,26px); }

.member{ border:1px solid var(--ink-14); padding:14px; }
.member-photo{
  aspect-ratio:13/10;           /* frame 239's photo box, 772x594 */
  background:#161616;
  background-size:cover;
  background-position:center;
}
.member figcaption{ padding:14px 2px 4px; }
.member strong{ display:block; font-size:clamp(13px,1.1vw,16px); font-weight:600; }
.member span{ display:block; margin-top:3px; font-size:clamp(11px,.9vw,13px); color:var(--ink-40); }

.stats{ display:grid; grid-template-columns:repeat(3,1fr); }
.stats div{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:20px;
  padding:clamp(6px,.8vw,10px) clamp(14px,1.8vw,26px);
  border-left:1px solid var(--ink-14);
}
.stats div:first-child{ border-left:0; padding-left:0; }
.stats div:last-child{ padding-right:0; }
.stats dt{
  font-size:clamp(30px,3.6vw,50px);
  font-weight:300;
  letter-spacing:-.04em;
  color:var(--ink-60);
}
.stats dd{
  font-size:clamp(10px,.95vw,13px);
  font-weight:500;
  letter-spacing:.1em;
  text-transform:uppercase;
  color:var(--ink-90);
}

/* ============================================================
   FAQ
   ============================================================ */

.faq{
  display:grid;
  grid-template-columns:minmax(200px,.8fr) 1.5fr;
  gap:clamp(28px,5vw,80px);
  padding:var(--gap) var(--pad);
}

.faq-list details{ border-bottom:1px solid var(--ink-14); }
.faq-list summary{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  padding:clamp(15px,1.8vw,22px) 0;
  font-size:clamp(13px,1.15vw,17px);
  font-weight:400;
  list-style:none;
  cursor:pointer;
  transition:color .25s ease;
}
.faq-list summary::-webkit-details-marker{ display:none; }
.faq-list summary::after{
  content:'+';
  flex:none;
  font-size:19px;
  font-weight:300;
  line-height:1;               /* tight box so the glyph rotates about its own centre */
  color:var(--ink-40);
  transition:transform .3s ease;
}
/* The + rotates into an ×. Swapping content to '\00d7' instead would snap,
   because content is not an animatable property. */
.faq-list details[open] summary::after{ transform:rotate(45deg); }
.faq-list summary:hover{ color:var(--aurora); }
.faq-list p{
  max-width:62ch;
  overflow:hidden;              /* so main.js can animate the height cleanly */
  padding:0 0 22px;
  font-size:clamp(12px,1vw,15px);
  line-height:1.6;
  color:var(--ink-40);
}

/* ============================================================
   ALL WORKS (work/index.html)
   ============================================================ */

/* The page "View all" opens. Reuses .work-card wholesale — the same markup the
   landing page uses inside its pinned horizontal strip — but lays it out as a
   plain two-column grid so every project is reachable without scrubbing. */
.allworks{
  position:relative;
  padding:clamp(84px,11vh,132px) var(--pad) clamp(48px,7vw,96px);
}
.allworks-head{ margin-bottom:clamp(34px,5vw,64px); }
.allworks-head .sub{ max-width:44ch; }

.allworks-grid{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:clamp(20px,3vw,44px);
}
/* The landing page sizes each card from the horizontal track; here the grid
   column owns the width, so the fixed width has to be released or the cards
   overflow their own cell. */
.allworks-grid .work-card{ width:auto; max-width:none; }
.allworks-grid .work-img{ width:100%; }

@media (max-width:700px){
  .allworks-grid{ grid-template-columns:1fr; }
}

/* ============================================================
   BOOK — /book, the booking popup as a page for ads to link to
   ============================================================ */

.book{
  position:relative;
  padding:clamp(84px,11vh,132px) var(--pad) clamp(48px,7vw,96px);
}
.book-head{ margin-bottom:clamp(24px,3.4vw,44px); }
.book-head .sub{ max-width:44ch; }
/* The modal's panel, at page width. Calendly lays the calendar out inside its
   own iframe and scrolls there, so the box needs a real height up front —
   tall enough for the month view plus the slot list on a phone. */
.book-embed{
  height:clamp(640px, 82svh, 900px);
  border:1px solid var(--ink-14);
  border-radius:6px;
  background:var(--void);
  overflow:hidden;
}
.book-embed iframe{ display:block; width:100%; height:100%; border:0; }
.book-meta{ display:none; }
/* Phone: the calendar has to be on screen on arrival, no scrolling. A compact
   header (mark, heading, one line, the two event facts) and the embed takes
   whatever height is left, so the month view lands fully in the first screen
   on anything from an iPhone SE up. */
@media (max-width:600px){
  .book{ padding-top:64px; padding-bottom:20px; }
  .book .case-home{ top:18px; }
  .book-head{ margin-bottom:14px; }
  .book-head .h-split{ font-size:clamp(28px, 8.4vw, 34px); }
  .book-head .sub{ margin-top:6px; font-size:13px; }
  .book-meta{ display:flex; gap:8px; margin-top:12px; }
  .book-meta span{
    padding:5px 11px;
    border:1px solid var(--ink-14);
    border-radius:999px;
    font-size:11px;
    font-weight:500;
    letter-spacing:.08em;
    text-transform:uppercase;
    color:var(--ink-60);
  }
  .book-embed{
    /* Capped at the month view's own height (~610px): past that the box only
       shows Calendly's dark page background under its white card. */
    height:clamp(540px, calc(100svh - 228px), 616px);
    margin:0 calc(var(--pad) * -.5);
  }
}

/* ============================================================
   CASE STUDY (work/*.html)
   ============================================================ */

/* Frame 181 indents the whole document: the left column is a margin that holds
   only the client logo and the "Why It Matters" label, and EVERYTHING else —
   section headings included — sits in the right-hand column. The headings sit
   above their own copy there, not out in the left margin. So only the two rows
   that genuinely have a left-hand item are grids (.case-row); every ordinary
   section (.case-sec) is a single block indented to the copy column. */
.case{
  --col:minmax(140px, .26fr);
  --gap:clamp(18px,2.6vw,40px);
  /* Where the grid's copy column starts, for the blocks that are not grids.
     Note .26fr is NOT 26%: with tracks of .26fr and 1fr the fractions sum to
     1.26, so the left track takes .26/1.26 of the free space (the width less
     the gap). Getting this wrong put the headings 70px right of the grid. */
  --indent:calc((.26 / 1.26) * (100% - var(--gap)) + var(--gap));
  position:relative;
  padding:clamp(84px,11vh,132px) var(--pad) clamp(48px,7vw,96px);
}
.case-row{
  display:grid;
  grid-template-columns:var(--col) minmax(0, 1fr);
  gap:var(--gap);
  margin-bottom:clamp(30px,3.6vw,52px);
  align-items:start;
}
/* The header row is sized by its COPY, not by its logo.
   A grid row is as tall as its tallest cell, and in the header that is usually
   the client mark — so the margin below was measured from the bottom of the
   logo rather than from the last line of text. Hano Crypto showed it worst: a
   116px round badge beside a single 26px line left 134px of dead space above
   "Overview", against 52px on Bybit, whose 50px wordmark is shorter than its
   two-line intro. The gap tracked logo height instead of being consistent.

   The brand column is therefore taken out of flow, so it no longer feeds the
   row's height while still painting in the left margin. It keeps its own
   internal stacking (logo above kicker) because only the column is positioned,
   not its children. The grid still reserves the track, so the copy column's
   width and the --indent maths are untouched. */
.case-row{ position:relative; }
.case-row > .case-brand{
  position:absolute;
  top:0;
  left:0;
  /* The track's own width, so the mark sizes exactly as it did in flow. */
  width:calc(var(--indent) - var(--gap));
}
/* Taking .case-brand out of flow also takes it out of the grid, so the copy
   would otherwise fall back into column 1 and be laid out at the narrow logo
   track's width. Pin it to column 2 explicitly. */
.case-row > .case-brand + *{ grid-column:2; }
/* Heading and copy together, indented to line up with the grid rows' copy. */
.case-sec{
  margin-left:var(--indent);
  margin-bottom:clamp(30px,3.6vw,52px);
}
/* The copy column has its own comfortable measure inside the wider track. */
.case-row > :last-child,
.case-sec{ max-width:70ch; }

/* The logomark sits opposite the menu button and takes you home. */
.case-home{
  position:absolute;
  top:clamp(16px,2.4vw,32px);
  left:var(--pad);
  display:block;
  width:clamp(30px,3vw,42px);
  opacity:.9;
  transition:opacity .25s ease;
}
.case-home:hover{ opacity:1; }

.case-brand{ padding-top:6px; }
/* The client's own mark, at the size the frame sets it. */
.case-logo{ width:clamp(96px,11vw,150px); height:auto; }
/* Hano Crypto's real mark is a circular badge rather than a wordmark, so it
   needs less width to carry the same optical weight as the others. */
.case-logo-round{ width:clamp(84px,8.5vw,116px); }
.case-kicker{
  margin-top:10px;
  font-size:10px;
  font-weight:500;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:var(--ink-40);
}
.case-intro h1{
  font-size:clamp(26px,2.9vw,40px);
  font-weight:500;
  letter-spacing:-.035em;
  line-height:1.12;
}
/* Frames 207/208/209 show no headline — the lead paragraph stands alone beside
   the logo. A page still needs one <h1> naming its subject for search and for
   screen readers, so it is present and hidden rather than absent. Clipped, not
   display:none, which would drop it from the accessibility tree too. */
.sr-only{
  position:absolute;
  width:1px; height:1px;
  padding:0; margin:-1px;
  overflow:hidden;
  clip:rect(0 0 0 0);
  clip-path:inset(50%);
  white-space:nowrap;
  border:0;
}

.case-lead{
  margin-top:14px;
  font-size:clamp(13px,1.15vw,16px);
  line-height:1.62;
  color:var(--ink-60);
}

/* Section headings sit above their own copy, inside the copy column. The
   Smardex frame opens on "Overview" inside the header row itself, so the intro
   column takes the same heading style. */
.case-sec h2,
.case-intro h2{
  margin-bottom:12px;
  font-size:clamp(19px,1.9vw,27px);
  font-weight:500;
  letter-spacing:-.03em;
  line-height:1.2;
}
.case-row p,
.case-sec p{
  font-size:clamp(13px,1.15vw,16px);
  line-height:1.62;
  color:var(--ink-60);
}
.case-row p + p,
.case-sec p + p{ margin-top:14px; }
.case-row em,
.case-sec em{ font-style:italic; color:var(--ink-90); }
/* An inline link in running copy (Smardex's "Now Everything."). The global
   `a{text-decoration:none}` would leave it reading as plain text. */
.case-inline{
  color:var(--ink-90);
  text-decoration:underline;
  text-underline-offset:3px;
  transition:color .25s ease;
}
.case-inline:hover{ color:var(--frost); }

/* Standalone full-width pieces stacked in the copy column (the Smardex key
   visual and facts table) — no carousel, as the frame draws them. */
.case-figs img{ width:100%; height:auto; border-radius:4px; }
.case-figs figure + figure{ margin-top:clamp(12px,1.6vw,22px); }
/* Ben & Jerry's four square stills, two by two across the copy column. */
.case-grid{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:clamp(10px,1.4vw,20px);
}
.case-grid img{ width:100%; aspect-ratio:1; object-fit:cover; border-radius:4px; }

/* Trayler's closing strip of trailers: full bleed, past the article's side
   padding, and flush with the CTA below (the negative bottom margin undoes the
   article's bottom padding). On a phone the 7:1 strip would be ~55px high, so
   it keeps a minimum height and crops the sides instead. */
.case-band{
  margin:clamp(30px,4vw,60px) calc(var(--pad) * -1) calc(clamp(48px,7vw,96px) * -1);
}
.case-band img{
  display:block;
  width:100%;
  height:auto;
  min-height:110px;
  object-fit:cover;
}

/* The italic standfirst under "Bybit Card Campaign" in the frame. */
.case-note{
  font-style:italic;
  color:var(--ink-90) !important;
}

/* 2x2 on desktop, matching the frame; stacks to one column on a phone. */
.case-stats{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:0;
  margin-top:8px;
  border-top:1px solid var(--ink-14);
}
.case-stats > div{
  padding:clamp(14px,1.7vw,22px) 0;
  border-bottom:1px solid var(--ink-14);
}
.case-stats > div:nth-child(odd){ padding-right:clamp(16px,3vw,40px); }
.case-stats > div:nth-child(even){
  padding-left:clamp(16px,3vw,40px);
  border-left:1px solid var(--ink-14);
}
.case-stats dt{
  font-size:clamp(26px,2.9vw,40px);
  font-weight:300;
  letter-spacing:-.04em;
  line-height:1;
}
/* A paragraph can follow the table (frame 208's organic-reach note); without
   this it butts straight against the last rule. */
.case-stats + p{ margin-top:clamp(16px,2vw,26px); }
.case-stats dd{
  margin-top:8px;
  font-size:10px;
  font-weight:500;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:var(--ink-40);
}

/* The engagement line under a post title in frame 208. */
.case-post h2 + .case-metrics{ margin-top:8px; }
.case-metrics{
  font-size:11px !important;
  letter-spacing:.04em;
  color:var(--ink-40) !important;
}
/* A post title and its metrics introduce the clip directly beneath, so the
   usual section gap would strand the heading away from its own video. */
.case-post{ margin-bottom:clamp(16px,2vw,26px); }

/* The small underlined caption under the Kalshi clip (frame 207). */
.case-ig{ margin-bottom:clamp(22px,3vw,40px); }
.case-ig a{
  font-size:10px;
  font-weight:500;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:var(--ink-60);
  text-decoration:underline;
  text-underline-offset:5px;
  transition:color .25s ease;
}
.case-ig a:hover{ color:var(--frost); }

/* The global rule is `a{color:inherit;text-decoration:none}`, which is right for
   nav and cards but leaves the imprint's email, phone and ODR links looking like
   plain text — on a legal page those have to be visibly actionable. Same
   underline idiom as .case-ig, scoped to the legal page so nothing else moves. */
.legal-copy a{
  text-decoration:underline;
  text-underline-offset:3px;
  text-decoration-color:var(--ink-40, rgba(255,255,255,.4));
  transition:color .25s ease, text-decoration-color .25s ease;
}
.legal-copy a:hover,
.legal-copy a:focus-visible{
  color:var(--frost);
  text-decoration-color:currentColor;
}
/* The ODR URL is printed in full as the statute expects, and it must not spill
   out of the copy column on a phone. */
.legal-copy{ overflow-wrap:break-word; }

/* The privacy policy is the only page with sub-headings (3.1, 5.1) and lists.
   h3 sits a step below the h2 in the same type scale, and the list matches the
   body copy so an enumerated right reads as prose, not as UI. */
.case-sec h3{
  margin-top:22px;
  margin-bottom:8px;
  font-size:clamp(15px,1.35vw,18px);
  font-weight:500;
  letter-spacing:-.02em;
  line-height:1.3;
  color:var(--ink-90);
}
.legal-list{
  margin:12px 0 0;
  padding-left:1.15em;
  list-style:disc;
  font-size:clamp(13px,1.15vw,16px);
  line-height:1.62;
  color:var(--ink-60);
}
.legal-list li{ margin-bottom:8px; }
.legal-list li::marker{ color:var(--ink-40, rgba(255,255,255,.4)); }
/* The GDPR rights list leads each item with the article name; it carries the
   emphasis the plain body copy does not. */
.legal-list strong{ font-weight:500; color:var(--ink-90); }

/* "Why It Matters" uses the same two tracks as every other row; only its right
   column is set larger. */
.case-label{
  font-size:clamp(12px,1.05vw,15px);
  color:var(--ink-40);
}
.case-why-lead{
  font-size:clamp(17px,2vw,27px) !important;
  font-weight:400;
  letter-spacing:-.025em;
  line-height:1.35 !important;
  color:var(--frost) !important;
}
.case-why-lead + p{ margin-top:20px; }

/* ---------- Gallery carousel ---------- */

/* The galleries start at the copy column, not the page edge, so they line up
   with the running text above them — the same left edge the frame uses. They
   still bleed off the RIGHT so the strip reads as continuing off-screen.
   The bleed makes this grid box --pad wider than a .case-row's, which would
   inflate the fractional heading track and start the strip right of its own
   copy — so the same --pad is added back as padding. The grids then resolve
   identically, and only the track itself overflows. */
.gallery{
  display:grid;
  grid-template-columns:var(--col) minmax(0, 1fr);
  gap:clamp(18px,2.6vw,40px);
  margin:0 calc(var(--pad) * -1) clamp(30px,3.6vw,52px) 0;
  padding-right:var(--pad);
}
.gallery > *{ grid-column:2; }
/* …and the strip alone reclaims it, so the slides run off the edge. */
.gallery-track{ margin-right:calc(var(--pad) * -1); }
.gallery-track{
  display:flex;
  /* Each slide keeps its own height rather than being stretched to the tallest
     in the row — flex's default `stretch` gave the 16:9 stills the height of a
     9:16 one and left a dead band under them on mobile. */
  align-items:flex-start;
  gap:clamp(12px,1.6vw,22px);
  overflow-x:auto;
  scroll-snap-type:x mandatory;
  scrollbar-width:none;
  -webkit-overflow-scrolling:touch;
}
.gallery-track::-webkit-scrollbar{ display:none; }
.slide{
  flex:none;
  scroll-snap-align:center;
  height:clamp(340px,46vw,620px);
  border-radius:4px;
  overflow:hidden;
  background:#141414;
}
/* Frame 207 shows its one 9:16 clip standing alone at roughly a third of the
   copy column, not filling it — the shared slide height would blow it up to
   the width of a landscape still. */
/* A 9:16 clip is only ~0.56x as wide as it is tall, so at the shared height it
   reads far smaller than a landscape still beside it. It gets its own, taller
   cap to land at comparable visual weight rather than a stamp in the column. */
.slide-tall{ height:clamp(460px,44vw,680px); }
/* Square marks (Smardex's product icons) are 388px exports and the frame draws
   them well short of the landscape stills — the shared height would blow them
   up past their own size. */
.slide-square{ height:clamp(200px,24vw,340px); }
/* The mood board is a wide 1340x712 sheet: capped by width, not height, or a
   height cap would push it far past the copy column. Both declarations have to
   out-specify `.slide img{width:auto;height:100%}`, which is a later rule of
   equal weight — as a single class it lost, and the slide collapsed to 0 high. */
.slide.slide-board{
  height:auto;
  width:min(100%, 860px);
  max-width:100%;
}
.slide.slide-board img{ width:100%; height:auto; }
.slide img,
.slide video{
  display:block;
  width:auto;
  height:100%;
  max-width:none;          /* the global img{max-width:100%} would squash these */
  /* contain, not cover. The slide is already sized to each asset's own aspect
     (width:auto at a shared height), so cover had nothing to crop toward and
     only ever shaved edges off — losing type on the campaign stills. */
  object-fit:contain;
}

/* Milanote mood board embed. A framed panel, not a strip that runs off the
   edge — so no bleed, and it centres on the page like a static gallery. */
.case-board{
  display:grid;
  /* Same reasoning as .gallery.is-static: a framed panel is media, not copy, so
     it centres on the page rather than sitting in the indented column. */
  grid-template-columns:1fr;
  margin:0 0 clamp(30px,3.6vw,52px);
}
.case-board > *{ grid-column:1; }

/* The bordered frame. Aspect ratio rather than a fixed height, so the board
   keeps its shape down to a phone; 16/10 is close to the board's own 1.91:1
   preview without going letterbox-thin in the column. */
.case-board-frame{
  --board-mask-h:46px;      /* how much of the foot the mask covers */
  --board-mask-inset:0px;   /* nudge it off the bottom edge if the badge floats */
  position:relative;
  /* Capped rather than full-bleed: the row is now the whole content width, and
     a 16/10 panel across all of it would tower over the copy either side. */
  width:min(100%, 980px);
  margin-inline:auto;
  aspect-ratio:16 / 10;
  border:1px solid rgba(255,255,255,.14);
  border-radius:4px;
  overflow:hidden;
  background:#141414;
}
.case-board-frame iframe{
  display:block;
  width:100%;
  height:100%;
  border:0;
}
.case-board-mask{
  position:absolute;
  left:0;
  right:0;
  bottom:var(--board-mask-inset);
  height:var(--board-mask-h);
  background:#141414;
}

/* Set by main.js on any gallery whose slides all fit — see measure(). The
   bleed exists so an overflowing strip runs off the right edge; on a gallery
   with nothing to scroll it only strands the slides at the left of the copy
   column, which is what left Kalshi's single clip and Bybit's pair of socials
   hard against the text margin with the column empty beside them. */
.gallery.is-static{
  /* Centre on the PAGE, not in the copy column. Column 1 is the document's
     indent margin, so centring inside column 2 alone lands everything right of
     the page's own centre line — which is what left Kalshi's clip and Bybit's
     pair sitting off to the right. A gallery with nothing to scroll has no
     reason to respect the indent: it collapses to a single full-width track
     and centres in it. The indented .case-sec copy around it is untouched. */
  grid-template-columns:1fr;
}
.gallery.is-static > *{ grid-column:1; }
.gallery.is-static .gallery-track{
  margin-right:0;
  justify-content:center;
}
/* Arrows and dots that cannot move anything are dead controls. The sound
   toggle lives in the same .gallery-arrows row, so hide the two buttons and
   the dots by name rather than hiding the row. */
.gallery.is-static [data-gallery-prev],
.gallery.is-static [data-gallery-next],
.gallery.is-static [data-gallery-dots]{ display:none; }
/* …which can leave the foot holding only the sound toggle. Centre it under the
   centred slide rather than leaving it alone at the far left. */
.gallery.is-static .gallery-foot{ justify-content:center; }

.gallery-foot{
  display:flex;
  align-items:center;
  gap:clamp(16px,3vw,40px);
  margin-top:20px;
}
.gallery-arrows{ display:flex; gap:22px; }
.gallery-dots{ display:flex; gap:8px; }
.gallery-dots button{
  width:22px;
  height:2px;
  padding:0;
  border-radius:2px;
  background:var(--ink-14);
  transition:background .3s ease;
}
.gallery-dots button.is-on{ background:var(--frost); }

/* Below 760 the two tracks leave the copy column ~180px wide — unreadable — so
   the indent is dropped and the remaining grid rows stack to full width. */
@media (max-width:760px){
  .case-row,
  .case-board,
  .gallery{ grid-template-columns:1fr; gap:14px; }
  .gallery > *,
  .case-board > *{ grid-column:1; }
  /* A 16/10 panel in a phone-width column is only ~220px tall, so the badge
     mask has to shrink with it or it eats a fifth of the board. */
  .case-board-frame{ --board-mask-h:30px; }
  .case-row > :last-child{ max-width:none; }
  .case-sec{ margin-left:0; max-width:none; }
  .case-brand{ padding-top:0; }
  /* Single column, so the brand goes back into flow above the copy. Left
     absolute it would sit on top of the intro text: there is no margin column
     left to paint in at this width. */
  .case-row > .case-brand{ position:static; width:auto; }
  .case-row > .case-brand + *{ grid-column:1; }
}
@media (max-width:600px){
  .case-stats{ grid-template-columns:1fr; }
  /* The vertical rule and asymmetric padding only make sense in two columns. */
  .case-stats > div:nth-child(odd),
  .case-stats > div:nth-child(even){ padding-left:0; padding-right:0; border-left:0; }
  /* Phone slides are bounded by BOTH axes. A pure height cap made the 16:9
     stills ~1.8x the screen width; a pure width cap let every slide keep its
     own height, which left the track as tall as the tallest one and stranded
     the arrows ~400px below a short slide. Capping both keeps each aspect
     ratio intact inside a shared box, exactly as the desktop rule does. */
  .slide{
    height:min(56vh,400px);
    max-width:84vw;
  }
  /* At the shared cap a 9:16 clip came out ~190px wide — a stamp next to the
     text. Width is the binding axis for these, so drive it from vw and let the
     height follow, which is what makes them read at phone scale. */
  .slide.slide-tall{
    height:auto;
    width:min(78vw, 340px);
    max-width:78vw;
  }
  .slide.slide-tall video,
  .slide.slide-tall img{ width:100%; height:auto; }
  /* A still drawn at the slide's full height is wider than 84vw for any
     landscape image (400px tall -> ~710px wide), and the slide's overflow:hidden
     cut its right side off — the type on a campaign still went first. Stills
     know their own size, so the box fits the image instead. Videos are left on
     the fixed box: with preload="none" they report no size until loaded. */
  .slide:has(> img){ height:auto; }
  .slide > img{
    width:auto;
    height:auto;
    max-width:84vw;
    max-height:min(56vh,400px);
  }
}

/* ============================================================
   CTA
   ============================================================ */

.cta{
  position:relative;
  /* Figma frame 172 is 578 tall on an 1080 frame — 53.5% of its width. */
  min-height:82svh;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  overflow:hidden;
}
/* Figma frame 172: a soft light ribbon that rises from the left edge, crests
   behind the top of the headline, and falls away to the right — an S-sweep, not
   a ring.

   Built from two overlapping elliptical gradients rather than the flank of one
   big ellipse. An ellipse edge has uniform curvature, so it can only ever read
   as a circle corner cutting through whatever it crosses; that is exactly what
   it was doing at the bottom-left. Two ellipses — one for the rising left half,
   one for the falling right half — meet mid-frame and give the bend. Blur is on
   the gradients themselves via soft colour stops, so there is no hard edge to
   catch the eye. */
.cta-glow{
  position:absolute;
  inset:0;
  overflow:hidden;
  /* No wash. The frame is flat black apart from the ribbon — a broad glow here
     lifted every corner to grey and the band stopped reading as a band. */
}
.cta-glow::before,
.cta-glow::after{
  content:'';
  position:absolute;
  pointer-events:none;
}
/* Rising flank: enters at the LEFT EDGE around a third of the way down and
   climbs to its crest just above the headline. The bands are deliberately
   shallow — height decides whether this reads as a light streak or as fog —
   and the two rotations are gentle and opposite so the pair arcs instead of
   running diagonally off a corner.
   NB: this comment was previously two orphaned fragments with no opening
   marker, which is invalid CSS — the parser recovered by discarding the very
   next rule, so the whole left flank of the ribbon was silently dead. */
.cta-glow::before{
  left:-34%;
  top:24%;
  width:86%;
  height:19%;
  background:radial-gradient(closest-side ellipse,
    rgba(255,255,255,.44) 0%,
    rgba(255,255,255,.17) 40%,
    rgba(255,255,255,.045) 68%,
    transparent 82%);
  transform:rotate(-9deg);
  filter:blur(17px);
}
/* Falling flank: continues the crest out toward the right edge, fading as it
   goes so the ribbon thins out rather than stopping. */
.cta-glow::after{
  left:30%;
  top:17%;
  width:88%;
  height:17%;
  background:radial-gradient(closest-side ellipse,
    rgba(255,255,255,.32) 0%,
    rgba(255,255,255,.12) 42%,
    rgba(255,255,255,.032) 70%,
    transparent 84%);
  transform:rotate(7deg);
  filter:blur(19px);
}

@media (max-width:900px){
  .cta-glow::before{ left:-24%; top:21%; width:92%; height:16%; filter:blur(13px); }
  .cta-glow::after{ left:40%; top:17%; width:92%; height:14%; filter:blur(14px); }
}
@media (max-width:600px){
  .cta-glow::before{ left:-28%; top:23%; width:110%; height:13%; filter:blur(9px); }
  .cta-glow::after{ left:34%; top:20%; width:106%; height:11%; filter:blur(10px); }
}
/* The bar is pushed to the bottom by margin-top:auto, so the headline must be
   centred in the space above it rather than sitting at the top of the flex
   column — it was starting at 0% with ~340px of dead black underneath. */
.cta-title{
  position:relative; z-index:2;
  margin:auto 0;
  padding:clamp(30px,4.2vw,56px) var(--pad);
  /* 7.2vw matches the cap height in frame 172; 6.4vw read noticeably small. */
  font-size:clamp(38px,7.2vw,128px);
  font-weight:400;
  letter-spacing:-.04em;
  line-height:1.06;
  text-align:center;
  color:var(--ink-90);
}
.cta-bar{
  position:relative; z-index:2;
  display:block;
  width:100%;
  margin-top:auto;
  padding:clamp(22px,3vw,42px);
  background:var(--frost);
  color:var(--void);
  font-size:clamp(14px,1.5vw,21px);
  font-weight:500;
  letter-spacing:.06em;
  text-transform:uppercase;
  text-align:center;
  transition:background .35s ease, color .35s ease, letter-spacing .35s ease;
}
.cta-bar:hover{ background:var(--aurora); color:var(--frost); letter-spacing:.14em; }

/* ============================================================
   CALENDLY BOOKING MODAL
   ============================================================ */

.cal-modal{
  position:fixed;
  inset:0;
  z-index:200;                     /* above the menu overlay (110) and button (120) */
  display:grid;
  place-items:center;
  padding:clamp(12px,3vw,40px);
}
/* The hidden attribute must win over display:grid */
.cal-modal[hidden]{ display:none; }

/* Warming state. The widget is built ahead of the click, but an iframe inside
   a display:none parent is laid out at 0x0 — and Calendly's app sizes its
   calendar from its own viewport, so at zero it renders nothing and does the
   real work only once the modal opens. That is why preloading alone still felt
   slow. Here the modal keeps its full layout box, so the embed measures itself
   properly and finishes rendering the calendar, slots and timezones while the
   visitor is still reading. Invisible and unclickable; `inert` in the markup
   keeps it out of focus order and off the accessibility tree. */
.cal-modal.is-warm{
  opacity:0;
  pointer-events:none;
}
.cal-modal.is-warm .cal-backdrop{ opacity:0; }

/* No backdrop-filter here either. This one lands at the worst possible moment:
   the blur of the whole page has to composite on the same frame the Calendly
   iframe is painting, which is exactly the click that felt slow. A flat tint
   over a near-black page is visually indistinguishable and free. */
.cal-backdrop{
  position:absolute;
  inset:0;
  background:rgba(10,10,10,.88);
  opacity:0;
  /* The widget is pre-built and warm, so this transition is now the whole
     perceived open time. .3s read as a wait; .14s reads as instant. */
  transition:opacity .14s ease;
}
.cal-modal.is-open .cal-backdrop{ opacity:1; }

.cal-panel{
  position:relative;
  z-index:1;
  display:flex;
  flex-direction:column;
  width:min(100%,1020px);
  height:min(88svh,760px);
  border:1px solid var(--ink-14);
  border-radius:6px;
  background:var(--void);
  overflow:hidden;
  opacity:0;
  transform:translateY(14px) scale(.99);
  transition:opacity .16s ease, transform .18s cubic-bezier(.22,1,.36,1);
}
.cal-modal.is-open .cal-panel{ opacity:1; transform:none; }

.cal-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  flex:none;
  padding:clamp(14px,1.8vw,22px) clamp(16px,2vw,26px);
  border-bottom:1px solid var(--ink-14);
}
.cal-head h2{
  font-size:clamp(14px,1.3vw,19px);
  font-weight:500;
  letter-spacing:-.02em;
}
.cal-close{
  flex:none;
  width:34px;
  height:34px;
  display:grid;
  place-items:center;
  font-size:24px;
  line-height:1;
  border-radius:50%;
  color:var(--ink-60);
  transition:background .25s ease, color .25s ease;
}
.cal-close:hover{ background:var(--ink-08); color:var(--frost); }

.cal-embed{
  flex:1;
  min-height:0;
  overflow:auto;
}
.cal-embed iframe{ display:block; width:100%; height:100%; border:0; }

.cal-fallback{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:14px;
  padding:clamp(40px,7vw,90px) var(--pad);
  text-align:center;
  font-size:14px;
  color:var(--ink-60);
}
.cal-fallback a{
  color:var(--frost);
  border-bottom:1px solid var(--ink-40);
  padding-bottom:3px;
  transition:color .25s ease, border-color .25s ease;
}
.cal-fallback a:hover{ color:var(--aurora); border-bottom-color:var(--aurora); }

@media (max-width:600px){
  .cal-panel{ width:100%; height:92svh; }
}

/* ============================================================
   FOOTER
   ============================================================ */

/* Figma frame 173: the footer is the BRIGHT purple (Aurora), not Royal Nebula —
   the deep violet stays on the menu overlay (frame 183). */
.footer{
  position:relative;
  padding:clamp(46px,6vw,86px) var(--pad) 0;
  background:var(--aurora);
  overflow:hidden;
}

.footer-top{
  position:relative; z-index:2;
  display:grid;
  grid-template-columns:1fr auto;
  gap:clamp(32px,5vw,80px);
}
.footer-lead{
  font-size:clamp(19px,2.3vw,32px);
  font-weight:500;
  letter-spacing:-.03em;
  line-height:1.24;
}

.footer-cols{ display:flex; flex-wrap:wrap; gap:clamp(26px,4vw,70px); }
/* Was var(--aurora) — invisible now the footer itself is Aurora. */
.col-head{
  margin-bottom:12px;
  font-size:10px;
  font-weight:500;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:rgba(255,255,255,.55);
}
.footer-cols a{
  display:block;
  padding:3px 0;
  font-size:clamp(12px,1vw,14px);
  color:var(--ink-90);
  transition:color .25s ease;
}
.footer-cols a:hover{ color:var(--frost); }

.footer-mark{
  position:relative;
  z-index:1;
  margin:clamp(22px,3.4vw,42px) 0 0;
  /* Slightly wider than the viewport so it bleeds and the parallax has
     something to reveal — but only just. At 16.5vw it overran by 239px and
     cropped down to "ANO STUDIO". */
  /* Sized to sit inside the page padding rather than bleed off the edges, so the
     wordmark reads whole. The parallax below stays inside the leftover slack. */
  font-size:clamp(44px,13vw,230px);
  font-weight:600;
  letter-spacing:-.045em;
  line-height:.82;
  white-space:nowrap;
  /* Frame 173 draws the wordmark as a clearly-visible lavender over the bright
     purple, not a faint watermark — .14 was tuned for Nebula and vanished on
     Aurora. */
  color:rgba(255,255,255,.34);
  user-select:none;
}

.footer-base{
  position:relative; z-index:2;
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:20px 0 22px;
  font-size:11px;
  color:rgba(255,255,255,.55);
}
.footer-base div{ display:flex; gap:clamp(14px,2vw,30px); }
.footer-base a:hover{ color:var(--frost); }

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width:900px){
  .services,
  .faq{ grid-template-columns:1fr; }
  .footer-top{ grid-template-columns:1fr; }
  /* 2 across, 5 down. Each override has to undo the desktop rule it replaces,
     since these are the same specificity — hence the explicit re-adds. */
  .client-grid{ grid-template-columns:repeat(3,1fr); }
  .showcase{ grid-template-columns:1fr; align-items:start; }
  /* Dim the neighbours, don't blur them. A blur filter re-rasterises its layer
     on every frame it is composited, and these four layers each wrap a <video>
     inside a pinned, scrubbed carousel — so a phone was re-blurring four video
     surfaces on every scroll frame of the whole showcase section. That was the
     single most expensive thing on the page during a scroll. One phone is
     centred at these widths with the neighbours mostly off-screen anyway, so
     the brightness drop alone carries the focus. Desktop keeps the blur.
     Same 900px cut-over as the hero's divide blur in main.js. */
  .phone{ filter:brightness(.42); }
  .phone:hover{ filter:brightness(.72); }
  .phone.is-active,
  .phone.is-active:hover{ filter:brightness(1); }
  /* Was 40px. Frame 198's gap from the arrows down to the phones is much
     tighter than that — measured against the reference at roughly half this. */
  .showcase-stage{ margin-top:20px; }
  /* Was 38px, hugely overshooting the reference's tight gap under the
     subtext (~8px). */
  .showcase-controls{ margin-top:14px; }
}

/* The mobile Figma frames lay the works out as a plain vertical stack of cards,
   not a pinned horizontal strip — main.js only builds the horizontal tween from
   701px up (gsap.matchMedia), and this is the matching layout. */
@media (max-width:700px){
  .works-pin{ height:auto; overflow:visible; }
  .works-track{
    flex-direction:column;
    align-items:stretch;
    height:auto;
    gap:44px;
    padding:var(--gap) var(--pad);
  }
  .works-intro{ width:100%; padding-right:0; }
  .work-card{ width:100%; }
}

@media (max-width:600px){
  /* Frame 219: mark on the left, menu button on the right, no inline links. */
  .hero-top-nav{ display:none; }
  .hero-top-cta{ display:none; }
  .hero-mark{ width:34px; }
  /* 219 draws the button in the hero, and with the inline links gone it is the
     only route to the nav on a phone — so it no longer waits for the scroll
     threshold that reveals it on desktop. */
  .menu-btn{ opacity:1; pointer-events:auto; }

  /* Full-bleed white action bar closing the hero. The negative margins undo
     .hero's padding so it reaches both edges and the bottom, as drawn. */
  .hero-cta-bar{
    display:flex;
    align-items:center;
    gap:10px;
    margin:26px calc(var(--pad) * -1) calc(var(--pad) * -1);
    padding:20px var(--pad);
    background:var(--frost);
    color:var(--void);
    font-size:13px;
    font-weight:500;
    letter-spacing:.06em;
    text-transform:uppercase;
  }
  /* Stacked two-line title, sized to frame 2 where "STUDIOS." spans nearly the
     full width — 19vw is the largest size that clears the 20px side pads. */
  .hero-title{ flex-direction:column; align-items:flex-start; line-height:.94; font-size:19vw; }
  .ht-gap{ display:none; }
  .statement-copy{ font-size:clamp(21px,6.4vw,26px); }
  /* Frame 196: one big centred phone (~62vw) with the neighbours peeking in
     from both edges. The side padding is (100vw - phone)/2 so every slide can
     centre; scroll-snap does the rest. */
  .phone{ width:62vw; }
  .showcase-stage{ padding:30px 19vw; gap:6vw; margin-right:calc(var(--pad) * -1); }
  /* Two across on a phone; at the frame's percentages the smaller marks would
     shrink to ~50px, so they are scaled up a quarter and held under 80%. */
  .client-grid{ grid-template-columns:repeat(2,1fr); }
  .client-grid img{ width:min(calc(var(--w, 40) * 1.25%), 80%); }
  .team-cards{ grid-template-columns:1fr; }
  /* The stats row turns back into a stacked list — three labels side by side
     do not fit a phone. */
  .stats{ grid-template-columns:1fr; }
  .stats div,
  .stats div:first-child,
  .stats div:last-child{ padding:14px 0; border-left:0; border-bottom:1px solid var(--ink-14); }
  .cta{ min-height:64svh; }
  /* "HANO STUDIOS" is ~7em wide; at 390px with 20px side pads the biggest size
     that still shows the whole wordmark is ~12.5vw. 17vw cropped it to
     "HANO STUD" off the right edge. */
  .footer-mark{ font-size:12.5vw; }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */

@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{
    animation-duration:.001ms !important;
    animation-iteration-count:1 !important;
    transition-duration:.001ms !important;
  }
  html{ scroll-behavior:auto; }
  .reveal{ opacity:1; transform:none; }
  .wipe{ display:none; }
  /* main.js returns before building any timeline when reduced motion is set, so
     nothing is left to reveal these — without this the whole statement stays at
     opacity:0 and the copy is unreadable. Same guarantee as .no-gsap.
     Needs the .js prefix to match the specificity of the rule that hides them;
     one class alone loses to `.js .sc-line > span` whatever the order. */
  .js .sc-line > span{ opacity:1; transform:none; }
  .hero-square{ display:none; }
  /* Two full-viewport layers under a 38px/46px blur on infinite alternating
     drifts. The global animation-duration override above stops the drift, but
     an animation that still exists keeps the blurred layers promoted — none of
     this is wanted for a visitor who asked for no motion. */
  .hero-glow{ animation:none; }
  .hero-glow::after{ animation:none; }
  /* No pin runs in this mode, so the pin's scroll-room margin would be a real
     black gap. Same specificity as the rule that sets it; later in file wins. */
  .js:not(.no-gsap) .hero{ margin-bottom:0; }
  /* Nothing scrubs .showcase-stage's scrollLeft in this mode either (main.js
     gates that pin on !reduce) — same reasoning as .no-gsap above. */
  .showcase-stage{ scroll-snap-type:x mandatory; }
}

/* ============================================================
   COOKIE CONSENT
   Built from the site's own vocabulary rather than a generic banner:
   square 4px corners, a flat Void panel with a hairline border, the
   .case-kicker label treatment for the title, and the .cta-bar button
   idiom — white on Void, uppercase and letter-spaced, going Aurora only
   on hover. Purple is the accent here, never the resting state.
   ============================================================ */
/* Consent is a decision the visitor has to make, not a notice they can
   scroll past — so it still blocks, with a scrim over everything including
   the menu (110) and the booking modal (200), and no dismiss affordance:
   only Reject or Accept close it. It rises from the bottom edge rather than
   appearing dead centre, which is gentler and matches how the rest of the
   site introduces things — from off-screen, on a long ease. */
.cc{
  position:fixed;
  inset:0;
  z-index:300;
  display:flex;
  align-items:flex-end;              /* the sheet sits at the bottom */
  justify-content:center;
  padding:clamp(12px,3vw,40px);
}
.cc[hidden]{ display:none; }
/* Dims and blurs the page behind, so the choice reads as blocking. */
/* Flat dim, no backdrop-filter. Blurring the whole viewport is one of the most
   expensive things a page can ask for, and this scrim is up at first paint —
   over the hero video, on the visitor's very first frame. A heavier tint reads
   the same and costs nothing. */
.cc::before{
  content:"";
  position:absolute;
  inset:0;
  background:rgba(10,10,10,.82);
  opacity:0;
  transition:opacity .5s ease;
}
.cc.is-open::before{ opacity:1; }

.cc-card{
  position:relative;                 /* above the scrim */
  z-index:1;
  display:flex;
  flex-direction:column;
  width:min(100%,460px);
  max-height:min(86svh,700px);
  /* Properly rounded, in the register of the site's larger radii (10/26px)
     rather than the 4px used on flush-edged panels. A sheet that rises from
     the edge reads as an object; sharp corners made it read as a cut-out. */
  border-radius:18px;
  border:1px solid var(--ink-14);
  background:var(--void);
  overflow:hidden;                   /* so the action bar clips to the curve */
  opacity:0;
  /* Rises from below the fold. Cleared by .is-open, so the sheet slides up
     into place instead of fading in on the spot. */
  transform:translateY(28px);
  transition:opacity .5s ease, transform .55s cubic-bezier(.22,1,.36,1);
}
.cc.is-open .cc-card{ opacity:1; transform:none; }
/* Takes focus so the dialog is announced and Tab is trapped, but it is a
   container, not a control — it must not draw the global focus ring. */
.cc-card:focus{ outline:none; }
.cc-card:focus-visible{ outline:none; }

/* Depth only — no colour. The page behind is near-black and already blurred,
   so the sheet needs separation, not a tint; a purple bloom sat on the grey
   hero as a stain rather than as light. */
.cc-card{
  box-shadow:0 24px 70px rgba(0,0,0,.6);
}

/* The dialog is modal, so the page behind must not scroll while it is up. */
body.cc-locked{ overflow:hidden; }

/* The dialog is modal, so the page behind must not scroll while it is up. */
body.cc-locked{ overflow:hidden; }

/* ---- Notice ----
   Padded on three sides; the action bar below cancels the sides itself so
   it can run edge to edge, and the Manage link sits under it with its own
   breathing room. */
.cc-notice{ padding:24px 24px 20px; }
/* The label idiom used across the site (.case-kicker, .work-kicker): tiny,
   uppercase, wide-tracked, dim. Not a bold 15px "Cookies". */
.cc-title{
  margin-bottom:12px;
  font-size:10px;
  font-weight:500;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:var(--ink-40);
}
.cc-text{
  font-size:13px;
  line-height:1.6;
  color:var(--ink-60);
  letter-spacing:-.01em;
}
.cc-text a{
  color:var(--ink-90);
  text-decoration:underline;
  text-underline-offset:3px;
  text-decoration-color:var(--ink-40);
  transition:color .25s ease, text-decoration-color .25s ease;
}
.cc-text a:hover{ color:var(--frost); text-decoration-color:currentColor; }

/* ---- Actions ----
   The .cta-bar idiom: full-bleed bars stacked flush to the card's foot,
   divided by hairlines rather than floated as rounded pills. */
/* A direct child of the card in both views, so the bars already span its
   full width — the hairline above them is the card's own divider. */
.cc-actions{
  display:flex;
  border-top:1px solid var(--ink-14);
}
.cc-btn{
  flex:1 1 0;
  padding:15px 12px;
  font-size:11px;
  font-weight:500;
  letter-spacing:.1em;
  text-transform:uppercase;
  text-align:center;
  color:var(--ink-60);
  transition:background .3s ease, color .3s ease, letter-spacing .3s ease;
}
.cc-btn + .cc-btn{ border-left:1px solid var(--ink-14); }
.cc-btn:hover{ color:var(--frost); letter-spacing:.14em; }
/* Exactly the .cta-bar idiom: Frost ground, Void type, going Aurora only on
   hover. Aurora is an accent on this site — the footer aside, it appears on
   hover and focus, not as a resting fill. A saturated purple button on a
   small sheet over the black hero read as someone else's UI. */
.cc-btn-primary{
  background:var(--frost);
  color:var(--void);
}
/* Stays monochrome on hover. .cta-bar goes Aurora here, but that is a
   full-bleed bar on its own section; on this small sheet the flash of purple
   landed exactly as the visitor clicked Accept — the one moment the control
   should not draw attention to itself. The letter-spacing carries the hover. */
.cc-btn-primary:hover{ background:var(--ink-90); color:var(--void); }

/* "Manage Preferences" is a quiet text link under the copy, not a button. */
.cc-link{
  align-self:flex-start;
  margin:16px 0 0;
  padding:0 0 2px;
  font-size:10px;
  font-weight:500;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:var(--ink-40);
  border-bottom:1px solid var(--ink-14);
  transition:color .25s ease, border-color .25s ease;
}
.cc-link:hover{ color:var(--frost); border-color:var(--frost); }

/* ---- Preferences view ---- */
.cc-panel{ display:none; min-height:0; flex-direction:column; }
.cc.is-managing .cc-panel{ display:flex; }
/* The notice and its action bar are siblings of the panel now, so both have
   to be hidden in the managing view — the panel carries its own pair. */
.cc.is-managing .cc-notice,
.cc.is-managing > .cc-card > .cc-actions{ display:none; }

.cc-head{
  display:flex;
  align-items:center;
  gap:10px;
  padding:18px 24px;
  border-bottom:1px solid var(--ink-14);
}
.cc-back{
  font-size:10px;
  font-weight:500;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:var(--ink-40);
  transition:color .25s ease;
}
.cc-back:hover{ color:var(--frost); }

/* Only the list scrolls, so the buttons stay pinned and reachable. */
.cc-groups{
  min-height:0;
  overflow-y:auto;
  padding:0 24px;
}
.cc-group{ padding:18px 0; border-bottom:1px solid var(--ink-08); }
.cc-group:last-child{ border-bottom:0; }
.cc-group-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  margin-bottom:7px;
}
/* Group names match the body scale, not a heavier UI weight. */
.cc-group-name{
  font-size:13px;
  font-weight:500;
  letter-spacing:-.02em;
  color:var(--frost);
}
.cc-group-desc{
  font-size:12px;
  line-height:1.6;
  color:var(--ink-60);
  letter-spacing:-.01em;
}
.cc-always{
  font-size:9px;
  font-weight:500;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:var(--ink-40);
  white-space:nowrap;
}

/* Switch: square-ish like the rest of the UI, Aurora only when on. */
.cc-switch{ position:relative; flex:none; width:34px; height:18px; }
.cc-switch input{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  margin:0;
  opacity:0;
  cursor:pointer;
}
.cc-track{
  display:block;
  width:100%;
  height:100%;
  border:1px solid var(--ink-14);
  border-radius:999px;
  background:transparent;
  transition:background .3s ease, border-color .3s ease;
  pointer-events:none;
}
.cc-track::after{
  content:"";
  position:absolute;
  top:4px;
  left:4px;
  width:10px;
  height:10px;
  border-radius:50%;
  background:var(--ink-40);
  transition:transform .3s cubic-bezier(.22,1,.36,1), background .3s ease;
}
/* On reads as Frost, not Aurora: the switches are what a visitor turns on
   just before accepting, so purple here was most of the colour they saw. The
   knob inverts to Void against the filled track, which is the same
   figure/ground flip the primary button uses. */
.cc-switch input:checked + .cc-track{
  background:var(--frost);
  border-color:var(--frost);
}
.cc-switch input:checked + .cc-track::after{
  transform:translateX(16px);
  background:var(--void);
}
.cc-switch input:focus-visible + .cc-track{ outline:2px solid var(--aurora); outline-offset:3px; }

@media (max-width:600px){
  .cc{ padding:12px; }
  .cc-card{ width:100%; max-height:88svh; }
  .cc-notice{ padding:20px 20px 18px; }
  .cc-head, .cc-groups{ padding-left:20px; padding-right:20px; }
  /* Two full-width bars stack rather than squeezing side by side. */
  .cc-actions{ flex-direction:column; }
  .cc-btn + .cc-btn{ border-left:0; border-top:1px solid var(--ink-14); }
}

@media (prefers-reduced-motion:reduce){
  .cc-card{ transition:none; transform:none; }
  .cc-btn:hover{ letter-spacing:.1em; }
}

/* ============================================================
   LEGAL PAGES
   The imprint and the privacy policy reuse the case-study shell, but a
   legal document reads differently from a case study: many short blocks
   in sequence rather than a few long ones. These rules give that
   sequence a rhythm without inventing a second design language.
   ============================================================ */

/* A hairline between blocks turns a wall of text into a list of parts.
   Only between, never above the first — hence the sibling selector. */
.legal-body .case-sec + .case-sec{
  padding-top:clamp(26px,3vw,40px);
  border-top:1px solid var(--ink-08);
}

/* The policy's headings carry their own numbers ("1. Introduction"). Set
   them slightly larger and let the number sit in the left margin on wide
   screens, so the heading text still aligns with the copy below it. */
.legal-body .case-sec h2{
  font-size:clamp(20px,2vw,28px);
  color:var(--frost);
}

/* Address and contact blocks read as data, not prose: a touch tighter and
   brighter than surrounding body copy so they are easy to pick out. */
.legal-address{
  color:var(--ink-90);
  line-height:1.75;
}

/* The lead under the h1 states the law the page answers to. It is the one
   line a reader checks first, so it gets the brighter ink. */
.legal-body .case-lead{ color:var(--ink-90); }

/* Long documents need an anchor back to the top on a phone, where the
   footer is a long way down. Sits inline, not fixed — a floating button
   would cover the copy this page exists to show. */
.legal-top{
  display:inline-block;
  margin-top:8px;
  font-size:12px;
  letter-spacing:.04em;
  text-transform:uppercase;
  color:var(--ink-40);
  text-decoration:underline;
  text-underline-offset:4px;
  transition:color .25s ease;
}
.legal-top:hover{ color:var(--frost); }

/* The two legal pages link to each other, so a reader who lands on one can
   reach the other without going via the footer. */
.legal-crosslink{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:clamp(30px,3.6vw,52px);
}
.legal-crosslink a{
  padding:9px 15px;
  border:1px solid var(--ink-14);
  border-radius:4px;
  font-size:12.5px;
  letter-spacing:-.01em;
  color:var(--ink-60);
  transition:border-color .25s ease, color .25s ease;
}
.legal-crosslink a:hover{ border-color:var(--ink-40); color:var(--frost); }
