/* ===================================================================
   OJI STORY — design system
   Warm cream canvas · Instrument Serif display · DM Sans body
   Playful pastel color-blocks · sticker maximalism
   =================================================================== */

/* ---------- Tokens ---------- */
:root {
  /* grounds */
  --cream: #fff5e3;
  --cream-2: #fffef5;
  --cream-3: #fefae7;
  --paper: #fffefa;

  /* ink */
  --ink: #1c140a;
  --ink-soft: #4a3f2f;
  --ink-faint: #8a7c63;

  /* brand */
  --blue: #0252db;
  --blue-deep: #0140a8;
  --yellow: #feba2c;
  --yellow-2: #ffe24f;
  --orange: #ff8a1f;
  --pink: #f6c2f4;
  --mint: #c0ecbf;
  --lilac: #7575c8;
  --teal: #14543f;
  --rust: #a62121;
  --brown: #966133;

  /* fx */
  --radius: 28px;
  --radius-lg: 40px;
  --radius-pill: 999px;
  --shadow-sm: 0 2px 0 rgba(28,20,10,.9);
  --shadow-card: 0 18px 50px -24px rgba(28,20,10,.45);
  --border: 2.5px solid var(--ink);

  --maxw: 1280px;
  --gutter: clamp(20px, 5vw, 64px);

  /* Spacing scale. Every gap in this sheet used to be its own ad-hoc clamp(),
     which is why rhythm drifted between sections. New/edited rules pull from
     here instead; the fluid steps keep the same feel across breakpoints. */
  --space-1: 8px;
  --space-2: 12px;
  --space-3: clamp(14px, 1.6vw, 20px);
  --space-4: clamp(20px, 2.2vw, 28px);
  --space-5: clamp(26px, 3vw, 40px);
  --space-6: clamp(34px, 4vw, 56px);
  --space-7: clamp(44px, 5.5vw, 76px);
  --space-col: clamp(26px, 3.4vw, 52px);   /* image ↔ text inside a project row */
  --space-row: clamp(36px, 4.5vw, 72px);   /* project row ↔ project row */

  --display: "Bungee", "DM Sans", system-ui, sans-serif; /* primary display */
  --serif: "Instrument Serif", Georgia, serif;            /* secondary accent */
  --sans: "DM Sans", "Inter", system-ui, sans-serif;

  --ease: cubic-bezier(.2,.7,.2,1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Cross-document view transitions — pages cross-fade instead of cutting.
   Opted in site-wide: both the outgoing and incoming document must declare
   it, otherwise the browser skips the transition and rejects a promise the
   page can't catch. Chromium + Safari 18.2+; ignored everywhere else. */
@view-transition { navigation: auto; }
@media (prefers-reduced-motion: reduce) { @view-transition { navigation: none; } }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.55;
  font-size: clamp(16px, 1.05vw, 18px);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;            /* clip (not hidden) so body stays non-scrolling — keeps window scroll + position:sticky working */
  cursor: auto;
}

img { display: block; max-width: 100%; height: auto; }
/* <picture> exists only to let the browser choose AVIF over WebP — it should
   never become a box of its own between a layout parent and its image. */
picture { display: contents; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: none; }
ul { list-style: none; padding: 0; }

/* ---------- Focus (WCAG 2.4.7) ----------
   Nothing on the site drew a focus ring — the only :focus rule in the sheet
   set `outline: none` — so a keyboard user had no idea where they were. The
   double ring (ink + cream) stays visible on every one of the section
   backgrounds, from --cream through --blue and --ink.
   :focus-visible only, so a mouse click doesn't leave a ring behind. */
:where(a, button, input, textarea, select, summary, [tabindex]):focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
  border-radius: 4px;
  box-shadow: 0 0 0 6px var(--cream-2);
}
.bg-ink :focus-visible, .bg-blue :focus-visible, .bg-teal :focus-visible {
  outline-color: var(--yellow);
  box-shadow: 0 0 0 6px rgba(28,20,10,.55);
}

/* Skip link — first tab stop, hidden until focused */
.skip-link {
  position: absolute; left: 12px; top: -100px; z-index: 10000;
  background: var(--ink); color: var(--cream);
  padding: 12px 20px; border-radius: var(--radius-pill);
  font-weight: 600; transition: top .18s var(--ease);
}
.skip-link:focus { top: 12px; }

/* Film-grain overlay */
body::after {
  content: "";
  position: fixed; inset: 0; z-index: 9998; pointer-events: none;
  opacity: .035; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Typography ----------
   Bungee = primary display (loud, playful). Instrument Serif = secondary accent. */
.display, h1, h2 { font-family: var(--display); font-weight: 400; line-height: 1.12; letter-spacing: -.005em; overflow-wrap: break-word; hyphens: auto; }
h1 { font-size: clamp(2.3rem, 6.2vw, 5rem); }
h2 { font-size: clamp(1.7rem, 4vw, 3.2rem); }
h3 { font-family: var(--serif); font-weight: 400; line-height: 1.04; letter-spacing: -.01em; font-size: clamp(1.6rem, 3vw, 2.6rem); }
/* Instrument Serif as the elegant secondary voice inside Bungee headlines */
.serif-italic { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: 0; text-transform: none; }
h1 .serif-italic { font-size: 1.18em; line-height: .95; display: inline-block; }
.eyebrow {
  font-family: var(--sans); font-weight: 600;
  font-size: .78rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--ink-soft);
  display: inline-flex; align-items: center; gap: .5em;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--blue); display: inline-block; }
.lead { font-size: clamp(1.15rem, 1.8vw, 1.5rem); color: var(--ink-soft); max-width: 60ch; }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
section { position: relative; padding-block: clamp(72px, 11vw, 150px); }
[id] { scroll-margin-top: 96px; }
.section-head { max-width: 70ch; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head h2 { margin-top: .25em; }

/* color-blocked section variants with big rounded top */
.block { border-radius: var(--radius-lg) var(--radius-lg) 0 0; margin-top: -2px; }
.bg-blue  { background: var(--blue);  color: var(--cream-2); }
.bg-blue .eyebrow, .bg-blue .lead { color: rgba(255,255,255,.82); }
.bg-blue .eyebrow::before { background: var(--yellow); }
.bg-yellow { background: var(--yellow); color: var(--ink); }
.bg-pink  { background: var(--pink); }
.bg-mint  { background: var(--mint); }
.bg-teal  { background: var(--teal); color: var(--cream-2); }
.bg-teal .eyebrow, .bg-teal .lead { color: rgba(255,255,255,.8); }
.bg-cream2 { background: var(--cream-2); }
.bg-ink   { background: var(--ink); color: var(--cream); }
.bg-ink .eyebrow, .bg-ink .lead { color: rgba(255,247,227,.72); }
.bg-ink .eyebrow::before { background: var(--yellow); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .6em;
  font-weight: 600; font-size: 1rem;
  padding: .85em 1.5em; border-radius: var(--radius-pill);
  border: var(--border); background: var(--blue); color: #fff;
  box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s;
  will-change: transform;
}
.btn .arr { transition: transform .3s var(--ease); }
.btn:hover { transform: translate(-2px,-2px); box-shadow: 5px 7px 0 rgba(28,20,10,.9); }
.btn:hover .arr { transform: translateX(4px); }
.btn:active { transform: translate(1px,1px); box-shadow: 1px 2px 0 rgba(28,20,10,.9); }
.btn--ghost { background: var(--paper); color: var(--ink); }
.btn--yellow { background: var(--yellow); color: var(--ink); }
.btn--sm { padding: .6em 1.1em; font-size: .9rem; }
.btn--lg { padding: 1.05em 2em; font-size: 1.1rem; }

/* text link with animated underline */
.link-u { position: relative; font-weight: 600; }
.link-u::after { content:""; position:absolute; left:0; bottom:-3px; width:100%; height:2px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease); }
.link-u:hover::after { transform: scaleX(1); transform-origin: left; }

/* ---------- Custom cursor ---------- */
.cursor-dot {
  position: fixed; top: 0; left: 0; width: 11px; height: 11px; border-radius: 50%;
  background: var(--blue); pointer-events: none; z-index: 10000;
  transform: translate(-50%,-50%); transition: width .2s, height .2s, background .2s, opacity .2s;
  mix-blend-mode: multiply; opacity: 0;
}
.cursor-dot.is-active { width: 46px; height: 46px; background: var(--yellow); }
@media (hover: none), (pointer: coarse) { .cursor-dot { display: none; } }

/* ---------- Nav: compact sticky bar (collapsible) ---------- */
.nav {
  position: fixed; inset: 14px var(--gutter) auto; z-index: 1200;
  display: flex; align-items: center; justify-content: space-between;
  padding: 9px 9px 9px 16px; border-radius: var(--radius-pill);
  background: rgba(255,254,250,.7); backdrop-filter: blur(14px) saturate(1.4);
  border: 2px solid rgba(28,20,10,.14);
  transition: box-shadow .3s, background .3s, border-radius .3s;
  max-width: calc(var(--maxw) - var(--gutter)); margin-inline: auto;
}
.nav.scrolled { box-shadow: var(--shadow-card); background: rgba(255,254,250,.94); }
.nav__brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-size: 1rem; letter-spacing: -.01em; }
.nav__brand img { width: 32px; height: 32px; border-radius: 9px; }
.nav__right { display: flex; align-items: center; gap: 8px; }
.nav__cta { display: inline-flex; }
@media (max-width: 560px){ .nav__cta { display: none; } }

/* the Menu toggle button */
.nav__toggle {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 8px 8px 16px; border-radius: var(--radius-pill);
  border: 2px solid var(--ink); background: var(--ink); color: var(--cream);
  font-weight: 600; font-size: .92rem; transition: transform .25s var(--ease);
}
.nav__toggle:hover { transform: translateY(-1px); }
.nav__toggle .lines { width: 34px; height: 34px; border-radius: 50%; background: var(--yellow); position: relative; flex: none; }
.nav__toggle .lines::before, .nav__toggle .lines::after { content:""; position:absolute; left:9px; right:9px; height:2.5px; background: var(--ink); top:50%; transition: transform .35s var(--ease); }
.nav__toggle .lines::before { transform: translateY(-4px); }
.nav__toggle .lines::after { transform: translateY(4px); }
body.menu-open .nav__toggle .lines::before { transform: rotate(45deg); }
body.menu-open .nav__toggle .lines::after { transform: rotate(-45deg); }
body.menu-open .nav__toggle .txt::after { content: "Close"; }
body.menu-open .nav__toggle .txt { font-size: 0; }
body.menu-open .nav__toggle .txt::after { font-size: .92rem; }

/* ---------- Full-screen overlay menu ---------- */
.navmenu {
  position: fixed; inset: 0; z-index: 1100; background: var(--ink); color: var(--cream);
  display: grid; grid-template-rows: minmax(0,1fr) auto; padding: clamp(78px,10vh,120px) var(--gutter) clamp(18px,3.5vh,44px);
  clip-path: circle(0% at calc(100% - 56px) 40px);
  transition: clip-path .6s var(--ease); pointer-events: none;
  overflow: hidden;
}
body.menu-open .navmenu { clip-path: circle(150% at calc(100% - 56px) 40px); pointer-events: auto; }
.navmenu__links { display: flex; flex-direction: column; gap: clamp(4px,1.2vh,12px); justify-content: center; min-height: 0; overflow-y: auto; padding-block: 8px; }
.navmenu__links a {
  font-family: var(--display); font-size: clamp(1.45rem, min(7vw, 6.2vh), 4.6rem); line-height: 1.12;
  color: var(--cream); width: max-content; max-width: 100%; position: relative;
  opacity: 0; transform: translateY(40px);
  transition: color .3s, transform .3s;
  display: inline-flex; align-items: baseline; gap: 18px;
}
body.menu-open .navmenu__links a { opacity: 1; transform: none; transition: opacity .5s var(--ease), transform .5s var(--ease), color .3s; }
body.menu-open .navmenu__links a:nth-child(1){ transition-delay:.12s }
body.menu-open .navmenu__links a:nth-child(2){ transition-delay:.18s }
body.menu-open .navmenu__links a:nth-child(3){ transition-delay:.24s }
body.menu-open .navmenu__links a:nth-child(4){ transition-delay:.30s }
body.menu-open .navmenu__links a:nth-child(5){ transition-delay:.36s }
body.menu-open .navmenu__links a:nth-child(6){ transition-delay:.42s }
body.menu-open .navmenu__links a:nth-child(7){ transition-delay:.48s }
.navmenu__links a .num { font-family: var(--sans); font-size: .9rem; font-weight: 600; color: var(--yellow); opacity: .7; }
.navmenu__links a:hover { color: var(--yellow); }
.navmenu__links a:hover .arr2 { transform: translateX(10px) rotate(0deg); }
.navmenu__links a .arr2 { font-family: var(--sans); font-size: .5em; transform: rotate(-30deg); transition: transform .3s var(--ease); color: var(--yellow); }
.navmenu__foot { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 16px; border-top: 2px solid rgba(255,247,227,.18); padding-top: 24px; }
.navmenu__foot a { color: rgba(255,247,227,.8); font-weight: 500; }
.navmenu__foot a:hover { color: var(--yellow); }
.navmenu__sticker { position: absolute; right: clamp(20px,6vw,90px); top: 22%; width: clamp(120px,18vw,240px); opacity: .9; pointer-events: none; animation: floaty 6s var(--ease) infinite; }
@keyframes floaty { 0%,100%{ transform: translateY(0) rotate(-4deg);} 50%{ transform: translateY(-18px) rotate(4deg);} }
@media (max-width: 760px){ .navmenu__sticker { display:none; } }
@media (prefers-reduced-motion: reduce){ .navmenu { transition: opacity .3s; } .navmenu__sticker { animation: none; } }

/* ---------- Sticker illustrations (floating decor) ---------- */
.sticker { position: absolute; pointer-events: none; z-index: 1; will-change: transform; }
.sticker img { filter: drop-shadow(0 10px 18px rgba(28,20,10,.18)); }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; border-block: var(--border); background: var(--ink); color: var(--cream); padding-block: 18px; }
.marquee__track { display: flex; width: max-content; gap: 0; animation: marquee 34s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item { display: inline-flex; align-items: center; gap: 28px; padding-inline: 28px; font-family: var(--display); font-size: clamp(1.05rem, 2.2vw, 1.8rem); white-space: nowrap; }
.marquee__item::after { content: "✺"; color: var(--yellow); font-size: .7em; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee__track { animation: none; } }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(32px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
.reveal[data-delay="4"] { transition-delay: .32s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- Cards (tilt) ---------- */
.card {
  background: var(--paper); border: var(--border); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-card);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
  will-change: transform;
}
.tilt { transform-style: preserve-3d; }

/* =====================  HERO + PHYSICS PLAYGROUND  ===================== */
.hero { min-height: 100svh; display: grid; place-items: center; text-align: center; padding-top: 90px; position: relative; overflow: hidden; }
/* min-width:0 because .hero is a grid and a grid item defaults to
   min-width:auto — it refuses to shrink below its min-content width. On
   brand-building that made the wrapper 414px wide inside a 390px phone
   (the headline's longest token plus its own padding), pushing the whole
   hero past the screen edge where body's overflow-x:clip cut it off. */
.hero__inner { position: relative; z-index: 5; pointer-events: none; min-width: 0; }
/* only the actual controls + letter glyphs capture events; gaps drag-through to physics */
.hero__inner .btn, .hero__inner a, .hero__inner .char { pointer-events: auto; }
.hero__kicker { margin-bottom: 18px; }
.hero h1 { margin: 0 auto; max-width: 16ch; }
.hero h1 .w { display: inline-block; }
.hero__sub { margin: 26px auto 34px; max-width: 52ch; font-size: clamp(1.05rem,1.6vw,1.35rem); color: var(--ink-soft); }
.hero__cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* physics canvas fills the hero, sits behind the headline but is draggable */
.playground { position: absolute; inset: 0; z-index: 2; }
.playground canvas { display: block; width: 100%; height: 100%; }
@media (pointer: coarse), (max-width: 639px) { .play-hint { display: none !important; } }
.play-hint { position: absolute; left: 50%; bottom: 64px; transform: translateX(-50%); z-index: 4; font-size: .8rem; font-weight: 600; letter-spacing: .04em; color: var(--ink-soft); background: rgba(255,254,250,.7); border: 2px solid rgba(28,20,10,.16); border-radius: var(--radius-pill); padding: .5em 1em; pointer-events: none; }
/* --blue on the hint's pale ground is 3.8:1; --blue-deep is 5.34:1 */
.play-hint b { color: var(--blue-deep); }

/* static collage fallback (reduced-motion / no physics) */
.scatter { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.scatter img { position: absolute; width: clamp(70px, 9vw, 140px); border-radius: 12px; border: 2px solid var(--paper); box-shadow: var(--shadow-card); }
.scatter .illus { border: none; box-shadow: none; filter: drop-shadow(0 12px 18px rgba(28,20,10,.22)); }

.scroll-cue { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 6; font-size: .78rem; letter-spacing: .15em; text-transform: uppercase; color: var(--ink-soft); display: flex; flex-direction: column; align-items: center; gap: 8px; }
.scroll-cue .bar { width: 2px; height: 40px; background: linear-gradient(var(--ink), transparent); animation: cue 1.8s var(--ease) infinite; }
@keyframes cue { 0%{transform:scaleY(.2);transform-origin:top} 50%{transform:scaleY(1);transform-origin:top} 51%{transform-origin:bottom} 100%{transform:scaleY(.05);transform-origin:bottom} }

/* =====================  HERO — KINETIC STORYBOARD  ===================== */
.hero--kinetic { isolation: isolate; padding-bottom: clamp(104px,15vh,170px); }
/* drifting paint blobs */
.hero__bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.blob { position: absolute; border-radius: 50%; filter: blur(44px); opacity: .55; mix-blend-mode: multiply; will-change: transform; }
.blob--blue   { width: 46vw; height: 46vw; left: -8vw; top: -8vw;     background: radial-gradient(circle at 45% 45%, var(--blue), transparent 70%); animation: drift1 22s ease-in-out infinite; }
.blob--yellow { width: 40vw; height: 40vw; right: -6vw; top: 0;       background: radial-gradient(circle at 50% 50%, var(--yellow), transparent 70%); animation: drift2 26s ease-in-out infinite; opacity: .62; }
.blob--pink   { width: 42vw; height: 42vw; right: 4vw; bottom: -14vw; background: radial-gradient(circle at 50% 50%, var(--pink), transparent 70%); animation: drift3 24s ease-in-out infinite; }
.blob--mint   { width: 38vw; height: 38vw; left: 2vw; bottom: -12vw;  background: radial-gradient(circle at 50% 50%, var(--mint), transparent 70%); animation: drift1 28s ease-in-out infinite reverse; }
@keyframes drift1 { 0%,100%{ transform: translate(0,0) scale(1);} 50%{ transform: translate(6vw,4vw) scale(1.12);} }
@keyframes drift2 { 0%,100%{ transform: translate(0,0) scale(1);} 50%{ transform: translate(-5vw,5vw) scale(1.1);} }
@keyframes drift3 { 0%,100%{ transform: translate(0,0) scale(1);} 50%{ transform: translate(-4vw,-5vw) scale(1.15);} }
.hero__grain { position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background: repeating-linear-gradient(0deg, rgba(28,20,10,.04) 0 1px, transparent 1px 4px); }

/* skewed kinetic ribbon */
.hero__ribbon { position: absolute; left: -12%; right: -12%; width: 124%; bottom: 18px; z-index: 1;
  background: var(--ink); color: var(--cream); border-block: var(--border);
  transform: rotate(-3deg); padding-block: 11px; box-shadow: var(--shadow-card); }
.hero__ribbon .marquee__item { font-size: clamp(1.05rem,2.4vw,1.7rem); }
.hero__ribbon.marquee.skewable { transform: rotate(-3deg); }
.hero__ribbon.marquee.skewable .marquee__track { transform: skewX(var(--skew,0deg)); }
@media (max-width: 700px){ .hero__ribbon { bottom: 12px; } }

/* ambient floating doodles */
.doodle { z-index: 1; }
.doodle img { width: 100%; }
.d1 { width: clamp(64px,8vw,118px); top: 13%; left: 6%; }
.d2 { width: clamp(54px,6vw,92px); top: 18%; right: 8%; }
.d3 { width: clamp(56px,7vw,104px); bottom: 16%; left: 9%; }
.d4 { width: clamp(46px,5vw,72px); bottom: 22%; right: 11%; }
@media (max-width: 560px){ .d3, .d4 { display: none; } }

/* rotating seal badge */
.seal { position: absolute; top: clamp(82px,12vh,118px); right: clamp(16px,5vw,60px); width: clamp(94px,11vw,130px); aspect-ratio: 1; z-index: 4; pointer-events: none; }
.seal svg { width: 100%; height: 100%; animation: spin 18s linear infinite; }
.seal text { font-family: var(--sans); font-weight: 700; font-size: 9.2px; letter-spacing: .14em; fill: var(--ink); }
.seal__star { position: absolute; inset: 0; display: grid; place-items: center; color: var(--blue); font-size: clamp(1.1rem,1.6vw,1.45rem); }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 700px){ .seal { display: none; } }

/* serif accent + hand-drawn underline */
.ink-accent { position: relative; white-space: nowrap; }
.ink-underline { position: absolute; left: -2%; right: -2%; width: 104%; bottom: -.12em; height: .36em; color: var(--blue); overflow: visible; }
.ink-underline path { stroke-dasharray: 340; stroke-dashoffset: 340; }
body.hero-in .ink-underline path { animation: draw 1.1s var(--ease) .65s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* intro stagger (revealed once JS adds body.hero-in) */
.hero--kinetic .hero__inner > * { opacity: 0; transform: translateY(26px); }
body.hero-in .hero--kinetic .hero__inner > * { opacity: 1; transform: none; transition: opacity .7s var(--ease), transform .7s var(--ease); }
body.hero-in .hero--kinetic .hero__kicker { transition-delay: .05s; }
body.hero-in .hero--kinetic h1 { transition-delay: .15s; }
body.hero-in .hero--kinetic .hero__sub { transition-delay: .38s; }
body.hero-in .hero--kinetic .hero__cta { transition-delay: .52s; }

@media (prefers-reduced-motion: reduce){
  .blob, .seal svg, .sticker[data-float] { animation: none !important; }
  .ink-underline path { stroke-dashoffset: 0; }
  .hero--kinetic .hero__inner > * { opacity: 1; transform: none; }
}

/* =====================  LOADER — paper rip reveal  ===================== */
body.loading { overflow: hidden; }
.loader { position: fixed; inset: 0; z-index: 9999; overflow: hidden;
  /* safety: if JS never finishes, fade out after 12s so the page is never trapped
     (was 9s — the deck phase runs ahead of the rip, so the whole loader is longer) */
  animation: loaderfail .4s linear 12s forwards; }
@keyframes loaderfail { to { opacity: 0; visibility: hidden; pointer-events: none; } }
/* two paper halves — JS clips them to a jagged centre seam, then peels them apart
   in discrete stop-motion frames (no transition = jerky, hand-torn feel) */
.loader__half { position: absolute; inset: 0; z-index: 1; will-change: transform, clip-path; transition: none;
  background-color: var(--cream);
  background-image:
    radial-gradient(135% 120% at 32% 18%, rgba(255,255,255,.55), rgba(255,255,255,0) 60%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.055'/%3E%3C/svg%3E");
  background-size: cover, 180px 180px;
  /* drop-shadow follows the jagged clip — gives the torn edge depth as halves part */
  filter: drop-shadow(0 0 16px rgba(28,20,10,.22)); }
.loader__content { position: absolute; inset: 0; z-index: 2; display: grid; place-content: center; justify-items: center; gap: 22px; transition: opacity .25s ease; }
.loader.tearing .loader__content { opacity: 0; }
/* ---- the deck — the studio's prints stacked as cards, shuffling top-to-back ----
   Each card's depth in the stack is a custom property (--i) set by JS; nothing in
   the DOM ever reorders, so the per-card colours below (nth-child) stay put while
   the stack restacks around them. --r is the card's rotation, also set by JS. */
/* margin-bottom clears the stack's downward drift (the deepest card translates ~40px
   past the box) so the status bar below never clips a card corner */
.deck { position: relative; width: clamp(190px,23vw,242px); height: clamp(272px,33vw,340px);
  margin-bottom: 18px; perspective: 1200px; }
.deck__card { position: absolute; inset: 0; --i: 0; --r: 0deg;
  display: flex; flex-direction: column; gap: 9px; padding: 12px;
  border: var(--border); background: var(--cream-2); color: var(--ink);
  box-shadow: 8px 8px 0 var(--ink); transform-style: preserve-3d;
  z-index: calc(10 - var(--i));
  transform: translate3d(calc(var(--i) * 6px), calc(var(--i) * 8px), 0)
             rotate(var(--r)) scale(calc(1 - var(--i) * .04));
  transition: transform .52s cubic-bezier(.22,1.2,.36,1), opacity .3s linear, box-shadow .4s var(--ease); }
/* yellow / blue / black, in rotation — the six cards are .deck's only children */
.deck__card:nth-child(1) { background: var(--yellow); }
.deck__card:nth-child(2) { background: var(--blue);     color: var(--paper); }
.deck__card:nth-child(3) { background: var(--yellow-2); }
.deck__card:nth-child(4) { background: var(--ink);      color: var(--cream); }
.deck__card:nth-child(5) { background: var(--blue);     color: var(--paper); }
.deck__card:nth-child(6) { background: var(--yellow); }
/* only the front card casts the full hard shadow — six stacked 8px shadows compound
   into a black mass behind the deck and the layering stops reading as cards */
.deck__card:not(.is-top) { box-shadow: 3px 3px 0 var(--ink); }
/* the card being dealt away — thrown off to the right, mirroring the original's exit */
.deck__card.is-out { transform: translate3d(230px,-44px,0) rotate(20deg) scale(.9); opacity: 0; }
/* one frame with motion suppressed, so a card can be re-seated at the back unseen */
.deck__card.no-tr { transition: none; }

.deck__head { display: flex; align-items: center; justify-content: space-between; }
.deck__dot { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--ink);
  background: var(--paper); display: grid; place-items: center; }
.deck__dot::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ink); }
.deck__tag { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 9px; font-weight: 700;
  letter-spacing: .06em; border: 2px solid var(--ink); background: var(--paper); color: var(--ink);
  padding: 1px 6px; box-shadow: 2px 2px 0 var(--ink); }

.deck__media { flex: 1; min-height: 0; border: 2px solid var(--ink); background: var(--paper); overflow: hidden; }
.deck__media img { width: 100%; height: 100%; object-fit: cover; display: block; }

.deck__body { display: flex; align-items: center; gap: 8px; }
.deck__ico { flex: none; width: 30px; height: 30px; display: grid; place-items: center;
  border: 2px solid var(--ink); border-radius: 50%; background: var(--ink); color: var(--paper); }
.deck__ico svg { grid-area: 1/1; }
.deck__ico svg:nth-child(1) { animation: deckspin 3s linear infinite; }   /* top card only */
.deck__card:not(.is-top) .deck__ico { background: rgba(255,255,255,.6); color: var(--ink); }
.deck__card:not(.is-top) .deck__ico svg:nth-child(1) { display: none; }
.deck__card.is-top .deck__ico svg:nth-child(2) { display: none; }
@keyframes deckspin { to { transform: rotate(360deg); } }
.deck__title { font-family: var(--display); font-size: .84rem; font-weight: 400; line-height: 1;
  letter-spacing: -.01em; text-transform: uppercase; margin: 0; }

.deck__foot { display: flex; flex-direction: column; gap: 4px; }
.deck__stat { display: flex; justify-content: space-between; align-items: center;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 9px; font-weight: 700; }
.deck__bar { height: 14px; border: 2px solid var(--ink); background: var(--paper); padding: 2px;
  box-shadow: 2px 2px 0 var(--ink); }
.deck__bar i { display: block; height: 100%; width: 0%; background: var(--ink); }

/* status bar under the stack */
.loader__label { display: flex; align-items: center; gap: 9px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .68rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  background: var(--ink); color: var(--paper); border: var(--border);
  padding: 7px 15px; box-shadow: 4px 4px 0 rgba(28,20,10,.4); }
.loader__spin { flex: none; color: var(--yellow); animation: deckspin 1s linear infinite; }
@media (prefers-reduced-motion: reduce){ .loader { display: none; } }

/* =====================  KINETIC DECK — what we bring to the table  =====================
   Replaces the decorative service marquee. Cards are laid out on a normal flex
   wrap so the section has real height and works with JS off; the drag handler
   then writes --dx/--dy per card to move it. Because the offsets are custom
   properties on top of the resting layout, a dragged card never affects the
   position of any other — no reflow, no jumping.

   Cards are <button>s: focusable, Enter/Space turns them over, and the flip is
   a plain aria-pressed toggle rather than a right-click menu (which would take
   over the browser's own menu and do nothing at all on touch). */
/* overflow-x: clip is a second guard behind the JS drag bounds — nothing in
   here may ever widen the document. clip, not hidden: hidden would create a
   scroll container and break position:sticky elsewhere on the page. */
.kdeck-sec { padding: 30px 0 8px; overflow-x: clip; }
.kdeck-hint {
  font-size: .8rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-faint); margin: 0 0 18px;
}
.kdeck {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: clamp(10px, 1.4vw, 18px);
  padding: 6px 0 10px;
  perspective: 1400px;
}
.kdeck__card {
  --dx: 0px; --dy: 0px; --rot: 0deg;
  position: relative;
  width: clamp(150px, 16.5vw, 200px);
  height: clamp(228px, 25vw, 300px);   /* taller now each card carries work */
  padding: 0; border: 0; background: none;
  font: inherit; color: inherit; text-align: left;
  cursor: grab;
  touch-action: none;               /* we handle the drag via Pointer Events */
  /* ...but only for mouse and pen. On anything with a finger the drag is off
     (see initKineticDeck) and the browser must get scrolling back, or the
     deck becomes ~1000px of page you cannot swipe through. */
  transform-style: preserve-3d;
  transform: translate3d(var(--dx), var(--dy), 0) rotate(var(--rot));
  transition: transform .42s var(--ease), z-index 0s;
}
@media (any-pointer: coarse) {
  .kdeck__card { touch-action: manipulation; cursor: pointer; }
}
.kdeck__card.is-drag { cursor: grabbing; transition: none; z-index: 40; }
.kdeck__card:focus-visible { outline: 3px solid var(--blue); outline-offset: 6px; border-radius: 4px; }

/* the two faces */
.kdeck__face {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; gap: 8px;
  padding: 14px;
  border: var(--border);
  box-shadow: 6px 6px 0 var(--ink);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transition: transform .5s var(--ease);
}
.kdeck__face--front { background: var(--yellow); color: var(--ink); transform: rotateY(0deg); }
.kdeck__face--back  { background: var(--blue);  color: var(--paper); transform: rotateY(180deg); }
.kdeck__card[aria-pressed="true"] .kdeck__face--front { transform: rotateY(-180deg); }
.kdeck__card[aria-pressed="true"] .kdeck__face--back  { transform: rotateY(0deg); }

/* palette rotates yellow → blue → black across the deck */
.kdeck__card:nth-child(3n+2) .kdeck__face--front { background: var(--blue);     color: var(--paper); }
.kdeck__card:nth-child(3n+2) .kdeck__face--back  { background: var(--ink);      color: var(--cream); }
.kdeck__card:nth-child(3n+3) .kdeck__face--front { background: var(--ink);      color: var(--cream); }
.kdeck__card:nth-child(3n+3) .kdeck__face--back  { background: var(--yellow-2); color: var(--ink); }

.kdeck__pin {
  width: 15px; height: 15px; border-radius: 50%;
  border: 2px solid currentColor; flex: none;
}
.kdeck__num {
  position: absolute; top: 13px; right: 14px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px; font-weight: 700; opacity: .8;
}
/* a piece of the actual work behind each service, framed like the loader's
   deck cards so the two decks read as one family */
.kdeck__media {
  display: block;
  flex: 1;
  min-height: 0;
  border: 2px solid currentColor;
  background: var(--paper);
  overflow: hidden;
}
.kdeck__media img { width: 100%; height: 100%; object-fit: cover; display: block; }

.kdeck__title {
  font-family: var(--display); font-size: clamp(.72rem, 1.05vw, .86rem);
  line-height: 1.15; text-transform: uppercase;
}
.kdeck__turn {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 9px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; opacity: .7;
}
.kdeck__copy { font-size: .78rem; line-height: 1.4; margin: auto 0; }

@media (hover: hover) {
  .kdeck__card:hover { --rot: -2deg; }
  .kdeck__card:hover .kdeck__face { box-shadow: 9px 9px 0 var(--ink); }
}
@media (max-width: 560px) {
  .kdeck__card { width: clamp(132px, 42vw, 168px); height: clamp(166px, 52vw, 206px); }
}
/* No drag, no tilt — but the cards still turn over, so nothing is unreachable. */
@media (prefers-reduced-motion: reduce) {
  .kdeck__card { transition: none; transform: none; }
  .kdeck__card:hover { --rot: 0deg; }
  .kdeck__face { transition: none; }
}

/* =====================  HERO — the light table (deal-out on scroll)  =====================
   A pinned stage. At rest the studio's prints sit in a neat fanned deck under the
   wordmark; as you scroll they DEAL OUT across the full width of the screen in a
   smooth, staggered cascade (lerp-eased, fully reversible, never fading). */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.hero--reveal { background: var(--yellow); color: var(--ink); position: relative; overflow: visible;
  display: block;            /* override .hero's grid-centering so the sticky stage pins from the top */
  min-height: 230svh; padding: 0; }
/* The 230svh runway is scroll distance for the deal-out, not empty page — the
   stage inside is sticky. But on a phone that is nearly two and a half
   screenfuls of thumb before the first real section, and the collage has far
   less room to travel anyway, so the runway is shortened to match. */
@media (max-width: 760px) { .hero--reveal { min-height: 165svh; } }
.hero__stage { position: sticky; top: 0; left: 0; width: 100%; height: 100svh; overflow: hidden; }

/* reserved middle band — flex:1 so it always sits BETWEEN the title and the caption;
   JS positions cards as a % of THIS band, so they can never overlap the text */
.hero__collage { position: relative; z-index: 1; flex: 1 1 auto; align-self: stretch;
  width: 100%; min-height: 0; margin-block: clamp(6px, 1.6vh, 18px); pointer-events: none; }
.hero__collage .kc { position: absolute; left: 50%; top: 50%;
  width: clamp(92px, min(15vw, 17vh), 188px); aspect-ratio: 4/5; object-fit: cover;
  border: 3px solid var(--ink); border-radius: 12px; background: var(--paper);
  box-shadow: 8px 11px 0 rgba(28,20,10,.85);
  transform: translate(-50%,-50%); transform-origin: center; will-change: transform, left, top;
  opacity: 0; }
.hero__collage .kc1 { z-index: 2; }
.hero__collage .kc2 { z-index: 4; }
.hero__collage .kc3 { z-index: 5; }
.hero__collage .kc4 { z-index: 3; }
.hero__collage .kc5 { z-index: 1; }

/* text overlay — head pinned near the top (clear of the nav), CTA at the bottom */
.hero--reveal .hero__inner { position: absolute; inset: 0; z-index: 3;
  display: flex; flex-direction: column; justify-content: space-between; align-items: center;
  text-align: center; pointer-events: none;
  padding: clamp(104px,14vh,150px) var(--gutter) clamp(30px,5vh,60px); }
.hero__head { display: flex; flex-direction: column; align-items: center; gap: clamp(8px,1.4vh,16px); will-change: transform; }
.hero__foot { display: flex; flex-direction: column; align-items: center; gap: clamp(14px,2.2vh,22px); will-change: transform; }
.hero__title, .hero__tag { will-change: transform; }

.hero__eyebrow { font-family: var(--display); font-size: clamp(.6rem,1.5vw,.76rem);
  /* was rgba(28,20,10,.62) = 4.14:1 on --yellow; --ink-soft is 6.01:1 */
  letter-spacing: .26em; text-transform: uppercase; color: var(--ink-soft); }

.hero__title { font-family: var(--display); color: var(--ink); text-transform: uppercase;
  font-size: clamp(3rem,15vw,11rem); line-height: .9; letter-spacing: -.01em; margin: 0; }
.hero__title .word { display: inline-block; white-space: nowrap; }
.hero__title .word + .word { margin-left: .28em; }
.hero__title .ch { display: inline-block; overflow: hidden; vertical-align: top; }
.hero__title .ch > span { display: inline-block; transform: translateY(110%); }

.hero__tag { margin: 0; font-family: var(--serif); color: var(--ink);
  font-size: clamp(1.1rem,3.6vw,2.1rem); line-height: 1.18; max-width: 24ch; }
.hero__tag .wd { display: inline-block; overflow: hidden; vertical-align: bottom; }
.hero__tag .wd:not(:last-child) { margin-right: .26em; }
.hero__tag .wd > span { display: inline-block; transform: translateY(115%); }
.hero__tag .wd.accent > span { color: var(--blue); font-style: italic; }

.hero--reveal .hero__cta { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; pointer-events: auto; }

/* ---- entrance (gated on body.hero-in) — opacity only; JS owns card position ---- */
.hero__eyebrow, .hero--reveal .hero__cta { opacity: 0; transform: translateY(16px); }
body.hero-in .hero__title .ch > span,
body.hero-in .hero__tag .wd > span { transform: none; transition: transform .72s var(--ease); }
body.hero-in .hero__eyebrow,
body.hero-in .hero--reveal .hero__cta { opacity: 1; transform: none; transition: opacity .7s var(--ease), transform .7s var(--ease); }
body.hero-in .hero--reveal .hero__cta { transition-delay: .5s; }
body.hero-in .hero__collage .kc { opacity: 1; transition: opacity .6s var(--ease); }
body.hero-in .hero__collage .kc1 { transition-delay: .30s; }
body.hero-in .hero__collage .kc2 { transition-delay: .38s; }
body.hero-in .hero__collage .kc3 { transition-delay: .46s; }
body.hero-in .hero__collage .kc4 { transition-delay: .54s; }
body.hero-in .hero__collage .kc5 { transition-delay: .62s; }

@media (max-width: 760px){
  .hero--reveal { min-height: 200svh; }
  .hero__collage .kc { width: clamp(96px, min(30vw, 15vh), 164px); border-width: 2.5px; }
  .hero__tag { max-width: 20ch; }
}
@media (prefers-reduced-motion: reduce){
  /* no pinned track — single static screen, prints shown in their resting deck */
  .hero--reveal { min-height: 100svh !important; }
  .hero__stage { position: relative; height: 100svh; }
  .hero__title .ch > span, .hero__tag .wd > span { transform: none !important; }
  .hero__eyebrow, .hero--reveal .hero__cta, .hero__collage .kc { opacity: 1 !important; }
}

/* =====================  BRAND BUILDING PAGE  ===================== */
.bb-hero { background: var(--cream); }
.bb-h1 { font-family: var(--display); text-transform: uppercase; line-height: .92;
  font-size: clamp(2.5rem, 8.2vw, 6.4rem); letter-spacing: -.01em; margin: 0; max-width: 15ch; }
.bb-h1 .bb-h1__hl { color: var(--blue); display: inline-block; }
/* "Brand&nbsp;Builders" is one unbreakable 14-character token, and Bungee is
   a wide face — at the 2.5rem floor it measured 374px, wider than a phone's
   content column. Dropping the floor on small screens keeps the phrase on one
   line (which is the point of the nbsp) instead of letting it run off. */
@media (max-width: 480px) { .bb-h1 { font-size: clamp(1.95rem, 9vw, 2.5rem); } }

/* What is brand building — dark statement section */
.bb-what { text-align: center; }
.bb-statement { font-family: var(--serif); color: var(--cream);
  font-size: clamp(2rem, 5.4vw, 4.2rem); line-height: 1.08; max-width: 20ch; margin: 14px auto 0; }
.bb-statement .hl { color: var(--yellow); font-style: italic; }
.bb-substatement { font-family: var(--sans); color: rgba(255,247,227,.78);
  font-size: clamp(1.05rem, 2vw, 1.4rem); line-height: 1.45; max-width: 42ch; margin: 22px auto 0; }
.bb-substatement b { color: var(--cream); font-weight: 600; }

/* Services — three bold cards */
.bb-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2.4vw, 28px);
  margin-top: clamp(30px, 4vw, 52px); }
.bb-card { position: relative; display: flex; flex-direction: column;
  border: var(--border); border-radius: var(--radius); background: var(--paper);
  padding: clamp(24px, 2.6vw, 40px); box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.bb-card:hover { transform: translateY(-6px); box-shadow: 10px 14px 0 rgba(28,20,10,.9); }
.bb-card__bar { width: 56px; height: 9px; border-radius: var(--radius-pill); margin-bottom: 22px; }
.bb-card__no { font-family: var(--display); font-size: .85rem; color: var(--ink-faint); letter-spacing: .12em; }
.bb-card h3 { font-family: var(--display); text-transform: uppercase; line-height: 1.04;
  font-size: clamp(1.15rem, 1.8vw, 1.55rem); margin: 10px 0 14px; }
.bb-card p { color: var(--ink-soft); font-size: clamp(.95rem, 1.1vw, 1.02rem); }
.bb-card--a .bb-card__bar { background: var(--blue); }
.bb-card--b .bb-card__bar { background: var(--orange); }
.bb-card--c .bb-card__bar { background: var(--teal); }
@media (max-width: 860px){ .bb-grid { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; } }

/* =====================  PLAYZONE (moved physics toy)  ===================== */
.playzone__stage { position: relative; min-height: clamp(420px,60vh,620px); margin-top: clamp(28px,4vw,48px);
  border: var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-card);
  background: repeating-linear-gradient(0deg, rgba(28,20,10,.04) 0 2px, transparent 2px 26px), var(--paper); }
.playzone .play-hint { bottom: 22px; }

/* =====================  NUMBERS  ===================== */
.stats { display: grid; grid-template-columns: repeat(4,1fr); gap: clamp(20px,3vw,40px); }
.stat__num { font-family: var(--display); font-size: clamp(2.2rem,5vw,4.2rem); line-height: 1; color: var(--blue); }
.bg-ink .stat__num { color: var(--yellow); }
.stat__label { margin-top: 8px; font-weight: 500; color: var(--ink-soft); }
.bg-ink .stat__label { color: rgba(255,247,227,.75); }
@media (max-width: 720px){ .stats { grid-template-columns: repeat(2,1fr); row-gap: 36px; } }

/* =====================  CASE STUDIES  =====================
   Alternating editorial rows. Two rules keep them tight:
   `align-items: start` (the text hangs from the top of the frame instead of
   floating in the middle of it) and a max-height on the frame, so no single
   project image can ever demand a whole screen of scroll to take in. */
.cases { display: flex; flex-direction: column; gap: var(--space-row); }
.case { display: grid; grid-template-columns: minmax(0,1.08fr) minmax(0,1fr); gap: var(--space-col); align-items: start; }
/* the media keeps the wider track on both alternations — swapping only `order`
   would hand even rows the narrow track and make their frames shorter */
.case:nth-child(even) { grid-template-columns: minmax(0,1fr) minmax(0,1.08fr); }
.case:nth-child(even) .case__media { order: 2; }
.case__media {
  border-radius: var(--radius); overflow: hidden; border: var(--border);
  box-shadow: var(--shadow-card); position: relative;
  aspect-ratio: 16/10;
  max-height: min(46vh, 400px);   /* the frame never eats the viewport */
}
.case__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.case:hover .case__media img { transform: scale(1.05); }
.case__tag { position:absolute; top:14px; left:14px; background: var(--paper); border:2px solid var(--ink); border-radius: var(--radius-pill); padding: .35em .9em; font-size:.78rem; font-weight:600; }
/* The body spans the frame's full height and pushes the chips + CTA to its
   foot, so the CTA baseline lands with the bottom of the image. That closes
   the dead space outright rather than just moving it below the text. */
.case__body { align-self: stretch; display: flex; flex-direction: column; padding-block-start: clamp(2px, .5vw, 10px); }
.case__body .case__chips { margin-top: auto; }
/* --ink-faint on --pink is 2.71:1 — below AA. --ink-soft is 6.82:1. */
.case__index { font-family: var(--serif); font-size: 1.2rem; color: var(--ink-soft); }
.case h3 { margin: 6px 0 14px; }
.case__chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0; }
.chip { font-size: .8rem; font-weight: 600; padding: .35em .85em; border-radius: var(--radius-pill); background: var(--cream-3); border: 2px solid rgba(28,20,10,.14); }
/* .mt-l is built for standalone CTAs; inside a card it opens a needless hole */
.case__body .btn.mt-l { margin-top: var(--space-4); }
.case__outcome { display: flex; gap: 26px; margin-top: 22px; flex-wrap: wrap; }
.case__outcome b { font-family: var(--serif); font-size: 2rem; color: var(--blue); display: block; line-height: 1; }
.case__outcome span { font-size: .85rem; color: var(--ink-soft); }

/* Tablet — the old sheet jumped 2-col straight to 1-col at 820px, leaving
   821–1279px running two ~380px columns that the chips + CTA overflowed. */
@media (max-width: 1199px){
  .case { grid-template-columns: minmax(0,1.12fr) minmax(0,1fr); gap: var(--space-5); }
  .case:nth-child(even) { grid-template-columns: minmax(0,1fr) minmax(0,1.12fr); }
  .case__media { aspect-ratio: 3/2; max-height: min(42vh, 340px); }
}
@media (max-width: 899px){
  .case, .case:nth-child(even) { grid-template-columns: 1fr; gap: var(--space-4); }
  .case:nth-child(even) .case__media { order: 0; }
  .case__body { align-self: auto; }
  .case__body .case__chips { margin-top: 18px; }
  .case__media { aspect-ratio: 16/9; max-height: min(52vh, 420px); }
  .case__body { padding-block-start: 0; }
}
@media (max-width: 560px){
  .case__media { aspect-ratio: 4/3; max-height: 58vh; }
  .case__chips { margin: 14px 0; }
  .case__body .btn.mt-l { width: 100%; justify-content: center; }
}

/* =====================  PRACTICES  ===================== */
.practice-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: clamp(18px,2.5vw,28px); }
.practice {
  border: var(--border); border-radius: var(--radius); padding: clamp(24px,3vw,38px);
  background: var(--paper); position: relative; overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.practice:hover { transform: translateY(-6px); box-shadow: var(--shadow-card); }
.practice__no { font-family: var(--serif); font-size: 1rem; color: var(--ink-faint); }
.practice h3 { margin: 10px 0 8px; }
.practice__sub { color: var(--ink-soft); margin-bottom: 18px; }
.practice__list { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.practice__price { display:flex; align-items:baseline; gap:8px; padding-top:16px; border-top: 2px dashed rgba(28,20,10,.18); }
.practice__price b { font-family: var(--display); font-size: 1.15rem; color: var(--blue); }
.practice__price span { font-size:.82rem; color: var(--ink-soft); }
.practice__blob { position:absolute; right:-40px; top:-40px; width:130px; height:130px; border-radius:50%; opacity:.5; filter: blur(2px); }
@media (max-width: 720px){ .practice-grid { grid-template-columns: 1fr; } }

/* =====================  OFFERINGS (Brand Building)  ===================== */
.offers { display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(18px,2.5vw,28px); margin-top: clamp(28px,4vw,48px); }
.offer {
  flex: 1 1 calc(50% - 14px); max-width: calc(50% - 14px);
  border: var(--border); border-radius: var(--radius); padding: clamp(24px,3vw,38px);
  background: var(--paper); position: relative; display: flex; flex-direction: column;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.offer:hover { transform: translateY(-6px); box-shadow: var(--shadow-card); }
.offer__no { font-family: var(--serif); font-size: 1rem; color: var(--ink-faint); }
.offer h3 { margin: 8px 0 10px; }
.offer__def { color: var(--ink-soft); margin-bottom: 18px; }
.offer .practice__list { margin-bottom: 20px; }
.offer__meta { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: auto; padding-top: 18px; border-top: 2px dashed rgba(28,20,10,.18); }
.offer__meta h4 { font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 6px; }
.offer__meta p { font-size: .92rem; color: var(--ink-soft); }
@media (max-width: 720px){ .offer { flex-basis: 100%; max-width: 100%; } }
@media (max-width: 420px){ .offer__meta { grid-template-columns: 1fr; gap: 12px; } }

/* =====================  OJI WORLD / STUDIO SYSTEM  ===================== */
.worlds { display: grid; grid-template-columns: repeat(4,1fr); gap: clamp(16px,2vw,24px); margin-top: clamp(28px,4vw,48px); }
.world { border: var(--border); border-radius: var(--radius); overflow: hidden; background: var(--paper); box-shadow: var(--shadow-card); display: flex; flex-direction: column; transition: transform .35s var(--ease), box-shadow .35s var(--ease); text-decoration: none; color: inherit; }
.world:hover { transform: translateY(-6px); }
.world__media { aspect-ratio: 4/3; overflow: hidden; border-bottom: var(--border); }
.world__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.world:hover .world__media img { transform: scale(1.06); }
.world__body { padding: clamp(18px,2vw,24px); flex: 1; }
.world__body h3 { margin: 0 0 4px; display: flex; align-items: center; gap: 6px; }
.world__body h3 .arr2 { font-size: .55em; color: var(--blue); }
.world__role { display: inline-block; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); font-weight: 700; margin-bottom: 10px; }
.world__body p { color: var(--ink-soft); font-size: .95rem; }
@media (max-width: 920px){ .worlds { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 560px){ .worlds { grid-template-columns: 1fr; } }  /* was 520 — matched to .squad so both collapse together */

/* =====================  PRODUCTS / KADAI  ===================== */
.kadai { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px,5vw,70px); align-items: center; }
.kadai__gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.kadai__gallery img { border-radius: 18px; border: 2px solid var(--ink); aspect-ratio: 3/4; object-fit: cover; box-shadow: var(--shadow-card); }
.kadai__gallery img:nth-child(1){ grid-row: span 2; aspect-ratio: 3/5; }
@media (max-width: 820px){ .kadai { grid-template-columns: 1fr; } }

/* =====================  INDUSTRIES band  ===================== */
.pills { display: flex; flex-wrap: wrap; gap: 12px; }
.pills li { border: 2px solid currentColor; border-radius: var(--radius-pill); padding: .6em 1.2em; font-family: var(--serif); font-size: clamp(1.1rem,2vw,1.6rem); transition: background .25s, color .25s; }
.bg-blue .pills li:hover { background: var(--yellow); color: var(--ink); border-color: var(--yellow); }

/* =====================  HOW WE WORK  ===================== */
.principles { display: grid; grid-template-columns: repeat(3,1fr); gap: clamp(20px,3vw,36px); counter-reset: p; }
.principle { padding-top: 26px; border-top: 3px solid var(--ink); }
.bg-teal .principle { border-color: var(--yellow); }
.principle::before { counter-increment: p; content: "0" counter(p); font-family: var(--display); font-size: 1.8rem; display:block; margin-bottom: 14px; color: var(--blue); }
.bg-teal .principle::before { color: var(--yellow); }
.principle h3 { font-size: clamp(1.4rem,2.4vw,2rem); margin-bottom: 10px; }
@media (max-width: 820px){ .principles { grid-template-columns: 1fr; } }

/* =====================  LOGO WALL  ===================== */
.logowall { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; border: var(--border); border-radius: var(--radius); overflow: hidden; background: var(--paper); }
.logowall div { aspect-ratio: 3/2; display: grid; place-items: center; padding: 18px; border-right: 2px solid rgba(28,20,10,.12); border-bottom: 2px solid rgba(28,20,10,.12); }
.logowall img { max-height: 56px; max-width: 100%; width: auto; object-fit: contain; filter: grayscale(1); opacity: .55; transition: .35s; }
.logowall div:hover img { filter: none; opacity: 1; transform: scale(1.06); }
@media (max-width: 820px){ .logowall { grid-template-columns: repeat(3,1fr); } }
/* 15 logos: 5-up and 3-up divide evenly, 2-up leaves an empty bordered cell.
   Letting the last one span both columns closes the hole. */
@media (max-width: 440px){
  .logowall { grid-template-columns: repeat(2,1fr); }
  .logowall div:last-child:nth-child(odd) { grid-column: span 2; aspect-ratio: 3/1; }
}

/* =====================  JOURNAL  ===================== */
.journal { display: grid; grid-template-columns: repeat(3,1fr); gap: clamp(18px,2.5vw,28px); }
.post { border: var(--border); border-radius: var(--radius); padding: clamp(22px,3vw,30px); background: var(--paper); display: flex; flex-direction: column; gap: 12px; min-height: 280px; transition: transform .35s var(--ease), background .35s; }
.post:hover { transform: translateY(-6px); background: var(--yellow); }
.post__cat { font-size: .76rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); }
.post h3 { font-size: clamp(1.4rem,2.2vw,1.9rem); }
.post__meta { margin-top: auto; font-size: .85rem; color: var(--ink-soft); }
@media (max-width: 820px){ .journal { grid-template-columns: 1fr; } }

/* =====================  TESTIMONIALS  ===================== */
.quotes { display: grid; grid-template-columns: repeat(3,1fr); gap: clamp(18px,2.5vw,26px); }
.quote { background: var(--paper); border: var(--border); border-radius: var(--radius); padding: clamp(24px,3vw,34px); display: flex; flex-direction: column; }
.quote p { font-family: var(--serif); font-size: clamp(1.3rem,2vw,1.7rem); line-height: 1.2; }
.quote footer { margin-top: 22px; font-size: .9rem; }
.quote footer b { display: block; }
.quote footer span { color: var(--ink-soft); }
.quote .mark { font-family: var(--serif); font-size: 3.4rem; color: var(--yellow); line-height: .6; }
@media (max-width: 820px){ .quotes { grid-template-columns: 1fr; } }

/* =====================  FAQ  ===================== */
.faq { max-width: 860px; margin-inline: auto; }
.faq__item { border-top: 2px solid rgba(28,20,10,.2); }
.faq__item:last-child { border-bottom: 2px solid rgba(28,20,10,.2); }
.faq__q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 20px; text-align: left; padding: 26px 0; font-family: var(--serif); font-size: clamp(1.3rem,2.4vw,1.9rem); }
.faq__q .pm { flex: none; width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--ink); position: relative; transition: background .25s; }
.faq__q .pm::before, .faq__q .pm::after { content:""; position:absolute; inset:50% 8px; height:2.5px; background: var(--ink); transform: translateY(-50%); transition: transform .3s; }
.faq__q .pm::after { transform: translateY(-50%) rotate(90deg); }
.faq__item.open .pm { background: var(--yellow); }
.faq__item.open .pm::after { transform: translateY(-50%) rotate(0); }
.faq__a { overflow: hidden; height: 0; transition: height .35s var(--ease); }
.faq__a > div { padding: 0 0 26px; color: var(--ink-soft); max-width: 70ch; }

/* =====================  SCOPE BUILDER  ===================== */
.scope { background: var(--ink); color: var(--cream); border-radius: var(--radius-lg); padding: clamp(28px,5vw,64px); position: relative; overflow: hidden; }
.scope__head { display:flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 30px; }
.scope__steps { display:flex; gap: 8px; }
.scope__steps span { width: 34px; height: 6px; border-radius: 6px; background: rgba(255,247,227,.22); transition: background .3s; }
.scope__steps span.on { background: var(--yellow); }
.scope__panel { display: none; }
.scope__panel.active { display: block; animation: fade .4s var(--ease); }
@keyframes fade { from { opacity: 0; transform: translateY(10px);} to { opacity:1; transform:none; } }
.scope__panel h3 { color: var(--cream); margin-bottom: 20px; }
.scope__opts { display: flex; flex-wrap: wrap; gap: 12px; }
.opt { border: 2px solid rgba(255,247,227,.3); color: var(--cream); border-radius: var(--radius-pill); padding: .7em 1.3em; font-weight: 500; transition: .2s; }
.opt:hover { border-color: var(--yellow); }
.opt.sel { background: var(--yellow); color: var(--ink); border-color: var(--yellow); }
.scope textarea, .scope input { width: 100%; margin-top: 12px; background: rgba(255,247,227,.07); border: 2px solid rgba(255,247,227,.25); color: var(--cream); border-radius: 16px; padding: 14px 16px; font: inherit; }
.scope textarea::placeholder, .scope input::placeholder { color: rgba(255,247,227,.4); }
.scope__nav { display: flex; justify-content: space-between; margin-top: 30px; gap: 12px; }
.scope__summary { background: rgba(255,247,227,.06); border-radius: 18px; padding: 18px 20px; margin-top: 22px; font-size: .9rem; line-height: 1.7; }
.scope__summary b { color: var(--yellow); }

/* =====================  FOOTER  ===================== */
.footer { background: var(--ink); color: var(--cream); padding-top: clamp(60px,8vw,110px); border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
.footer__big { font-family: var(--display); font-size: clamp(1.7rem,4.6vw,3.6rem); line-height: 1.12; margin-bottom: 40px; }
.footer__big a { color: var(--yellow); }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 30px; padding-bottom: 50px; border-bottom: 2px solid rgba(255,247,227,.16); }
.footer__col h4 { font-family: var(--sans); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,247,227,.5); margin-bottom: 16px; }
.footer__col a { display: block; padding: 5px 0; color: rgba(255,247,227,.85); }
.footer__col a:hover { color: var(--yellow); }
.footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px; padding-block: 26px; font-size: .85rem; color: rgba(255,247,227,.6); }
@media (max-width: 820px){ .footer__grid { grid-template-columns: 1fr 1fr; } }

/* ---------- Masonry gallery ---------- */
/* A real grid, not CSS multi-column. Multi-column balances by height, so an
   item count that isn't a multiple of the column count left the last column
   short — a ragged gap at the foot of the wall. A grid fills row by row. */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: var(--space-3); }
.gallery figure { margin: 0; border: var(--border); border-radius: var(--radius); overflow: hidden; background: var(--paper); box-shadow: var(--shadow-card); transition: transform .4s var(--ease); display: flex; flex-direction: column; }
.gallery figure:hover { transform: translateY(-6px) rotate(-.6deg); }
/* reserves the box before decode — these images carry no width/height attrs,
   so without this the whole wall reflowed as each one loaded */
.gallery img { width: 100%; display: block; aspect-ratio: 4/3; object-fit: cover; }
.gallery figcaption { padding: 14px 18px; display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.gallery figcaption b { font-family: var(--serif); font-size: 1.3rem; font-weight: 400; }
.gallery figcaption span { font-size: .8rem; color: var(--ink-soft); white-space: nowrap; }
.gallery figcaption { margin-top: auto; }
@media (max-width: 560px){ .gallery { grid-template-columns: 1fr; } }
/* balanced 2×2 variant (avoids lone masonry orphan with 4 items) */
.gallery--quad { columns: auto; column-gap: 0; display: grid; grid-template-columns: repeat(2,1fr); gap: clamp(16px,2.5vw,24px); }
.gallery--quad figure { margin: 0; }
@media (max-width: 560px){ .gallery--quad { grid-template-columns: 1fr; } }

/* feature row reused on art/design */
.feature { display:grid; grid-template-columns:1fr 1fr; gap:clamp(24px,4vw,64px); align-items:center; }
.feature:nth-child(even) .feature__media { order:2; }
.feature__media img { width:100%; border:var(--border); border-radius:var(--radius); box-shadow:var(--shadow-card); aspect-ratio:4/3; object-fit:cover; }
@media (max-width:820px){ .feature, .feature:nth-child(even) .feature__media { grid-template-columns:1fr; order:0; } }

/* utility */
.center { text-align: center; }
.mt-l { margin-top: clamp(30px,5vw,56px); }
.maxw-sm { max-width: 56ch; }
.hide-sm { } @media(max-width:600px){ .hide-sm{ display:none; } }
.split { display:flex; gap: 16px; flex-wrap: wrap; align-items:center; }

/* =====================  CREATIVE MOTION  ===================== */
/* 3D tilt with moving sheen (set via --mx/--my from JS) */
.tilt { transform-style: preserve-3d; position: relative; transition: transform .25s var(--ease); }
.tilt::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(380px circle at var(--mx,50%) var(--my,0%), rgba(255,255,255,.45), transparent 60%);
  opacity: 0; transition: opacity .3s; mix-blend-mode: soft-light;
}
.tilt:hover::after { opacity: 1; }
.tilt > * { transform: translateZ(28px); }

/* scroll-velocity skew (JS sets --skew) */
.skewable { transform: skewY(var(--skew, 0deg)); transition: transform .15s ease-out; }
.marquee__track { transform: skewX(0deg); }
.marquee.skewable { transform: none; }
.marquee.skewable .marquee__track { transform: skewX(var(--skew, 0deg)); }
@media (prefers-reduced-motion: reduce){ .skewable, .marquee.skewable .marquee__track { transform: none !important; } }

/* letter-level headline play */
.word { display: inline-block; white-space: nowrap; }
.char { display: inline-block; will-change: transform; transition: transform .35s var(--ease), color .35s; }
.char.space { width: .28em; }
.h-play:hover .char { animation: charpop .5s var(--ease); }
.char:hover { color: var(--blue); transform: translateY(-10px) rotate(-6deg) scale(1.12); }
@keyframes charpop { 0%{transform:translateY(0)} 40%{transform:translateY(-14px) rotate(5deg)} 100%{transform:translateY(0)} }
@media (prefers-reduced-motion: reduce){ .char, .char:hover { transform: none; animation: none; } }

/* color-block wipe reveal for section headings */
.wipe { clip-path: inset(0 100% 0 0); transition: clip-path .9s var(--ease); }
.wipe.in { clip-path: inset(0 0 0 0); }
@media (prefers-reduced-motion: reduce){ .wipe { clip-path: none; } }

/* magnetic floaty CTA blob on big buttons */
.btn--lg { position: relative; }

/* sticker drift gentle idle float */
.sticker[data-float] { animation: floaty 7s var(--ease) infinite; }
@media (prefers-reduced-motion: reduce){ .sticker[data-float] { animation: none; } }

/* pill hover = playful pop */
.pills li { cursor: default; transition: transform .25s var(--ease), background .25s, color .25s, border-color .25s; }
.pills li:hover { transform: translateY(-4px) rotate(-2deg); }

/* =====================  PAINT WALL (mural minigame)  ===================== */
.wall {
  position: relative; border: var(--border); border-radius: var(--radius);
  background:
    repeating-linear-gradient(0deg, rgba(28,20,10,.045) 0 2px, transparent 2px 26px),
    repeating-linear-gradient(90deg, rgba(28,20,10,.035) 0 2px, transparent 2px 64px),
    var(--paper);
  height: clamp(320px, 52vh, 520px); overflow: hidden; box-shadow: var(--shadow-card);
  touch-action: none;
}
/* On a phone `none` made this up to 520px of page you could not swipe past —
   every attempt to scroll drew a stroke instead. `pan-y` gives vertical
   gestures back to the browser and keeps horizontal ones for painting, so the
   mural still works and the page is no longer a trap. */
@media (any-pointer: coarse) { .wall { touch-action: pan-y; } }
.wall canvas { position: absolute; inset: 0; cursor: crosshair; }
.wall__hint { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; text-align: center; color: var(--ink-faint); }
.wall__hint .big { font-family: var(--display); font-size: clamp(1.2rem, 3vw, 2rem); color: rgba(28,20,10,.16); }
.wall__tools { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 14px; flex-wrap: wrap; }
.wall__tools .tip { font-size: .85rem; color: var(--ink-soft); }
.wall__tools .tip b { color: var(--blue-deep); }  /* --blue is 3.8:1 on --yellow */

/* =====================  EXPLORE OUR WORLD  ===================== */
.explore { display: grid; grid-template-columns: repeat(10, 1fr); gap: clamp(12px, 1.6vw, 20px); }
.explore a { position: relative; border: var(--border); border-radius: var(--radius); overflow: hidden; min-height: clamp(200px, 30vw, 330px); display: flex; align-items: flex-end; box-shadow: var(--shadow-card); }
.explore a:nth-child(1) { grid-column: span 4; }
.explore a:nth-child(2) { grid-column: span 6; }
.explore a:nth-child(3) { grid-column: span 3; }
.explore a:nth-child(4) { grid-column: span 4; }
.explore a:nth-child(5) { grid-column: span 3; }
.explore img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease), filter .6s; }
.explore a:hover img { transform: scale(1.07) rotate(-1deg); }
.explore .lab {
  position: relative; z-index: 2; margin: 16px; padding: .5em 1em; color: var(--ink);
  font-family: var(--display); font-size: clamp(1.1rem, 2.4vw, 1.8rem);
  background: var(--paper); border: 2px solid var(--ink); border-radius: var(--radius-pill);
  display: inline-flex; align-items: center; gap: .5em; transition: background .3s, color .3s, transform .3s var(--ease);
}
.explore .lab .a { font-family: var(--sans); transition: transform .3s var(--ease); }
.explore a:hover .lab { background: var(--yellow); transform: translateY(-4px) rotate(-1.5deg); }
.explore a:hover .lab .a { transform: translateX(5px); }
.explore a::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(28,20,10,.32)); }
@media (max-width: 760px){ .explore a, .explore a:nth-child(n) { grid-column: span 10; min-height: 200px; } }

/* about statement big-type */
.statement { font-family: var(--display); font-size: clamp(1.5rem, 3.6vw, 2.9rem); line-height: 1.3; max-width: 24ch; }
.statement .serif-italic { font-size: 1.12em; }


/* =====================  RESPONSIVE POLISH  ===================== */
@media (max-width: 520px) {
  .footer__grid { grid-template-columns: 1fr; gap: 22px; }
  .scope { padding: 22px 18px; }
  .scope__nav { flex-direction: column-reverse; }
  .scope__nav .btn { width: 100%; justify-content: center; }
  .wall { height: clamp(260px, 46vh, 380px); }
  .wall__tools { flex-direction: column; align-items: flex-start; }
  .hero__cta .btn { width: 100%; justify-content: center; }
  .case__media { aspect-ratio: 4/3; }
  .navmenu__foot { flex-direction: column; align-items: flex-start; gap: 10px; }
}
@media (max-width: 380px) {
  h1 { font-size: 1.9rem; }
  .nav__brand span { display: none; }
}
/* very short landscape screens: keep menu usable */
/* Short / landscape screens: 2-column menu so all links fit without scrolling */
@media (max-height: 540px) and (min-width: 480px) {
  .navmenu { padding: 48px var(--gutter) 16px; grid-template-rows: minmax(0,1fr) auto; }
  .navmenu__links { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 28px; align-content: center; }
  .navmenu__links a { font-size: clamp(1.05rem, 4.4vh, 1.6rem); padding-block: 4px; }
}
/* Short + very narrow (landscape small phones): compact single column */
@media (max-height: 540px) and (max-width: 479px) {
  .navmenu { padding-top: 52px; }
  .navmenu__links { gap: 2px; }
  .navmenu__links a { font-size: clamp(1rem, 4.6vh, 1.5rem); padding-block: 5px; }
}

/* =====================  SQUAD (about)  ===================== */
.squad { display: grid; grid-template-columns: repeat(3,1fr); gap: clamp(16px,2.5vw,28px); }
.member { position: relative; border: var(--border); border-radius: var(--radius); overflow: hidden; background: var(--paper); box-shadow: var(--shadow-card); }
.member img { width: 100%; aspect-ratio: 4/5; object-fit: cover; transition: transform .7s var(--ease), filter .5s; }
.member:hover img { transform: scale(1.05) rotate(-1deg); }
.member figcaption { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding: 14px 18px; border-top: var(--border); background: var(--paper); position: relative; z-index: 2; }
.member figcaption b { font-family: var(--display); font-size: clamp(.95rem,1.6vw,1.15rem); text-transform: lowercase; }
.member figcaption span { font-size: .8rem; color: var(--ink-soft); white-space: nowrap; }
.member--join { display: grid; place-items: center; background: var(--blue); color: var(--cream-2); text-align: center; min-height: 100%; }
.member--join img { width: 55%; aspect-ratio: auto; }
.member--join .joinlab { font-family: var(--display); font-size: clamp(1.1rem,2vw,1.5rem); padding: 0 16px 18px; }
.member--join:hover img { transform: rotate(8deg) scale(1.1); }
@media (max-width: 560px){ .squad { grid-template-columns: 1fr; } }

/* =====================  SHOP GRID (store)  ===================== */
.shopgrid { display: grid; grid-template-columns: repeat(3,1fr); gap: clamp(16px,2.5vw,26px); }
.product { border: var(--border); border-radius: var(--radius); overflow: hidden; background: var(--paper); box-shadow: var(--shadow-card); display: flex; flex-direction: column; transition: transform .35s var(--ease); }
.product:hover { transform: translateY(-8px) rotate(-.5deg); }
.product img { width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--cream-3); transition: transform .6s var(--ease); }
.product:hover img { transform: scale(1.06); }
.product figcaption { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding: 14px 16px; border-top: var(--border); }
.product figcaption b { font-family: var(--display); font-size: clamp(.85rem,1.4vw,1rem); text-transform: lowercase; }
.product figcaption span { font-weight: 700; color: var(--blue); white-space: nowrap; }
@media (max-width: 820px){ .shopgrid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 480px){ .shopgrid { grid-template-columns: 1fr 1fr; gap: 12px; } .product figcaption { flex-direction: column; padding: 10px 12px; } }
.shopgrid--4 { grid-template-columns: repeat(4,1fr); }
@media (max-width: 980px){ .shopgrid--4 { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 480px){ .shopgrid--4 { grid-template-columns: 1fr 1fr; gap: 12px; } }

/* =====================  CONTACT FORM  ===================== */
.contactgrid { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(24px,4vw,60px); align-items: start; }
.cform { background: var(--paper); border: var(--border); border-radius: var(--radius); padding: clamp(22px,3.5vw,40px); box-shadow: var(--shadow-card); }
.cform label { display: block; font-weight: 600; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); margin: 18px 0 8px; }
.cform input, .cform textarea { width: 100%; font: inherit; color: var(--ink); background: var(--cream-3); border: 2px solid rgba(28,20,10,.18); border-radius: 16px; padding: 13px 16px; transition: border-color .25s, transform .25s var(--ease), box-shadow .25s; }
.cform input:focus, .cform textarea:focus { outline: none; border-color: var(--blue); transform: rotate(-.4deg); box-shadow: 4px 5px 0 rgba(2,82,219,.18); }
.cform .btn { margin-top: 22px; }
.cinfo { display: flex; flex-direction: column; gap: 18px; }
.cinfo .card-line { border: var(--border); border-radius: var(--radius); background: var(--paper); padding: 20px 24px; box-shadow: var(--shadow-card); transition: transform .3s var(--ease); }
.cinfo .card-line:hover { transform: translateX(6px) rotate(-.6deg); }
.cinfo .card-line h4 { font-family: var(--display); font-size: .95rem; margin-bottom: 6px; color: var(--blue); }
.cinfo .card-line a { font-weight: 600; }
@media (max-width: 820px){ .contactgrid { grid-template-columns: 1fr; } }

/* benefit pills (practices) */
.benefits-pills .pills li { background: var(--paper); border-color: var(--ink); cursor: default; }
.benefits-pills .pills li:hover { background: var(--yellow); transform: translateY(-4px) rotate(-2deg); }

/* =====================  MOBILE PERFECTION  ===================== */
/* Phones: drop the behind-text hero decorations for a clean, readable hero
   (physics is already off on touch). Playfulness stays in the bold type,
   marquee, explore cards, paint wall and section colour-blocks. */
@media (max-width: 640px) {
  .hero .sticker, .scatter { display: none !important; }
}

/* Mobile overlay menu: comfortable ~48px tap targets */
@media (max-width: 760px) {
  .navmenu__links a { padding-block: 10px; align-items: center; }
}

/* Footer + nav: bigger tap areas on phones */
@media (max-width: 560px) {
  .footer__col a { padding: 10px 0; }
  .navmenu__foot a { padding: 11px 0; }
  header.nav .nav__brand { padding-block: 5px; }
  .nav__brand img { width: 36px; height: 36px; }
}

/* 3-up stats stack cleanly on phones (avoids cramped Bungee numerals) */
.stats--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 600px) { .stats--3 { grid-template-columns: 1fr; gap: 24px; text-align: center; } }
