/* ==========================================================================
   TEEMWORKS — Brand Strategy & Creative Studio
   Google Fonts are loaded via <link rel="preconnect"> + <link rel="stylesheet">
   in each page's <head> (not @import here) so the font CSS fetches in
   parallel with this file instead of being discovered only after it
   downloads and parses — a real render-blocking chain @import creates.
   ========================================================================== */

:root{
  /* Primary blue — the dominant colour. Page backgrounds, main UI. */
  --blue:#3661FE;
  --blue-2:#369BFE;
  --blue-3:#88CFFE;
  --blue-4:#D2F7FF;
  /* Primary purple — highlight colour. Used deliberately, not everywhere. */
  --purple:#8752FA;
  --purple-2:#9180FA;
  --purple-3:#C1B9FA;
  --purple-4:#E1D9FA;
  /* Primary orange — highlight colour. */
  --orange:#FFAD00;
  --orange-2:#FEC763;
  --orange-3:#FFDC9C;
  --orange-4:#FFE9C4;
  /* Secondary lilac + yellow — reserved for hover states, cursor trail,
     small details. Never a dominant surface colour. */
  --lilac:#CD83FF;
  --lilac-2:#E5ABFF;
  --lilac-3:#F5CFFF;
  --lilac-4:#FDE9FF;
  --yellow:#FFCC00;
  --yellow-2:#FFE649;
  --yellow-3:#FFE883;
  --yellow-4:#FFF2C9;

  /* Legacy aliases — keep the rest of the site (buttons, tags, inner pages)
     wired to the new palette without touching every rule individually. */
  --lavender:var(--purple);
  --accent:var(--orange);

  --white:#FFFFFF;
  --surface:#F7FAFE;
  --ink:#0E0E12;
  --ink-soft:rgba(14,14,18,.62);
  --ink-faint:rgba(14,14,18,.38);
  --on-blue:#FFFFFF;
  --on-blue-soft:rgba(255,255,255,.72);
  --on-blue-faint:rgba(255,255,255,.42);

  /* All three tokens point at Nunito only now — Nunito Sans (and the
     unused Inter font-face request) removed everywhere, including the
     Google Fonts <link> on every page. */
  --font-head:'Nunito',sans-serif;
  --font-head-alt:'Nunito',sans-serif;
  --font-body:'Nunito',sans-serif;

  --container:1360px;
  --pad:clamp(20px,5vw,78px);
  /* The real left/right edge of the centred .container/.hero-inner-style
     content (max-width:var(--container); margin:0 auto inside a
     padding:var(--pad) wrapper) — works out to var(--pad) on any viewport
     narrow enough that the container isn't actually constraining width,
     and pulls inward to match the container's true edge once the
     viewport exceeds container + 2*pad. Fixed-position chrome (logo/
     CTA/egg) uses this instead of --pad directly so it always lines up
     with where the content edge actually is, rather than just the raw
     screen padding. */
  --edge-inset:max(var(--pad),(100vw - var(--container)) / 2);

  /* --fs-hero (H1) and --fs-xl (major-section H2) both used to run big
     enough, and close enough to each other, that H1 and H2 were nearly
     indistinguishable at normal desktop widths — H1 capped at 6.4rem/
     102px, H2 at 4.5rem/72px, just 30px apart. Pulled both down and
     spread them further apart (max 5rem vs 3.2rem, a clear ~1.5x step)
     so H1 always reads as bigger without either one feeling oversized. */
  --fs-hero:clamp(2rem,5.4vw,5rem);
  --fs-xl:clamp(1.6rem,3.6vw,3.2rem);
  --fs-lg:clamp(1.4rem,3.5vw,2.7rem);
  --fs-md:clamp(1rem,2.1vw,1.5rem);
  --fs-eyebrow:.7rem;

  --ease-out:cubic-bezier(.16,1,.3,1);
  --ease-soft:cubic-bezier(.22,.61,.36,1);
  --ease-bounce:cubic-bezier(.34,1.56,.64,1);

  /* consistent spacing scale, ~20% tighter */
  --space-xs:clamp(6px,.8vw,10px);
  --space-sm:clamp(13px,1.6vw,19px);
  --space-md:clamp(22px,3.2vw,35px);
  --space-lg:clamp(38px,5.6vw,64px);
  --space-xl:clamp(58px,8vw,96px);
}

*,*::before,*::after{box-sizing:border-box;}
html{scroll-behavior:auto;overflow-x:hidden;}
body{
  position:relative;
  margin:0;
  background:var(--surface);
  color:var(--ink);
  font-family:var(--font-body);
  font-size:16px;
  line-height:1.65;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}
html,body{max-width:100%;}

/* Dragging to draw the cursor-trail sketch shouldn't also highlight
   page text/images underneath it. Form fields are explicitly opted
   back in below so typing/copying still works normally. */
html{
  -webkit-user-select:none;
  -moz-user-select:none;
  user-select:none;
}
input,textarea,select,[contenteditable]{
  -webkit-user-select:text;
  -moz-user-select:text;
  user-select:text;
}

img{max-width:100%;display:block;-webkit-user-drag:none;user-drag:none;}
a{color:inherit;text-decoration:none;}
button{font-family:inherit;background:none;border:none;cursor:pointer;color:inherit;}
ul{list-style:none;margin:0;padding:0;}
h1,h2,h3,p{margin:0;}
input,select,textarea{font-family:inherit;font-size:1rem;color:inherit;}

.container{
  width:100%;
  max-width:var(--container);
  margin:0 auto;
  padding-left:var(--pad);
  padding-right:var(--pad);
}

section{position:relative;}

.eyebrow{
  font-family:var(--font-head-alt);
  font-weight:700;
  font-size:var(--fs-eyebrow);
  letter-spacing:.14em;
  text-transform:uppercase;
  color:var(--ink-faint);
}
.section--blue .eyebrow,.section--dark .eyebrow{color:var(--on-blue-faint);}
.eyebrow--accent{color:var(--accent);}

.h-display{
  font-family:var(--font-head);
  font-weight:800;
  text-transform:uppercase;
  line-height:1.08;
  letter-spacing:0;
  margin:0;
}
.h-serif-note{
  font-family:var(--font-head-alt);
  font-weight:400;
  font-style:italic;
  text-transform:none;
}

/* expand → hold → contract driven words */
.ehc{
  display:inline-block;
  transform-origin:center center;
  will-change:transform,opacity;
}
.ehc-block{
  display:block;
  transform-origin:center center;
  will-change:transform,opacity;
}

/* mask reveal */
.mask{overflow:hidden;display:block;}
.reveal-line{display:block;will-change:transform;}

/* ==========================================================================
   Sections / backgrounds
   ========================================================================== */
.section{padding:clamp(90px,14vw,180px) 0;}
.section--tight{padding:clamp(60px,9vw,120px) 0;}
.section--white{background:var(--surface);color:var(--ink);}
.section--blue{background:var(--blue);color:var(--on-blue);}
.section--lavender{background:var(--lavender);color:var(--white);}
.section--gold{background:var(--accent);color:var(--ink);}

.section--sticky{
  min-height:100vh;
  display:flex;
  align-items:center;
  justify-content:center;
}

/* ==========================================================================
   Top bar — logo button (top-left) and CTA pill (top-right). Independent
   fixed elements, not a traditional nav bar; primary navigation lives in
   the bottom dock.
   ========================================================================== */
/* Top navigation blur — a frosted strip behind the fixed logo/CTA pill,
   only visible once the page is actually scrolled (see initScrollTopbar
   in animations.js, which toggles body.is-scrolled). A pseudo-element
   rather than a real element, so nothing is added to any page's markup
   — right below the logo/cta-pill's z-index:600 so they stay perfectly
   sharp on top of it, and pointer-events:none so it never blocks clicks
   on anything beneath it. Invisible/inert at the top of the page. */
body::before{
  content:'';
  position:fixed;
  top:0;left:0;right:0;
  height:88px;
  z-index:590;
  pointer-events:none;
  /* rgb(54,97,254) is var(--blue) itself, spelled out as channels so it
     can carry an alpha — a dark navy tint here read as a visible seam
     against the page's own bright blue instead of blending into it. */
  background:rgba(54,97,254,0);
  backdrop-filter:blur(0px) saturate(1) brightness(1);
  -webkit-backdrop-filter:blur(0px) saturate(1) brightness(1);
  border-bottom:1px solid rgba(255,255,255,0);
  box-shadow:0 4px 32px rgba(0,0,80,0);
  /* No fade mask here on purpose — a gradient fade on backdrop-filter
     itself means anything straddling the fade (e.g. a hero heading that
     scrolls up into this band) ends up half-blurred/half-sharp, which
     read as broken rather than soft. A clean, fully-blurred edge looks
     right once the tint colour actually matches the page (above). */
  transition:background-color .4s var(--ease-out),backdrop-filter .4s var(--ease-out),-webkit-backdrop-filter .4s var(--ease-out),border-color .4s var(--ease-out),box-shadow .4s var(--ease-out);
}
body.is-scrolled::before{
  background:rgba(54,97,254,.15);
  backdrop-filter:blur(28px) saturate(1.8) brightness(1.08);
  -webkit-backdrop-filter:blur(28px) saturate(1.8) brightness(1.08);
  border-bottom:1px solid rgba(255,255,255,.14);
  box-shadow:0 4px 32px rgba(0,0,80,.12);
}
@media (max-width:768px){
  body::before{height:62px;}
}

/* Just the logo image, full and uncropped — no pill, no circle, no
   background or border behind it. A white-pill backing and a bordered
   circle badge were both tried in earlier passes and both explicitly
   rejected: only the asset itself, sitting directly on the page. */
.logo-btn{
  /* top:24px — matches .dock/.egg-wrap--fixed's own 24px bottom inset.
     .cta-pill uses a different top (18px, not 24px) since it's a taller
     box; see its own comment for why they don't share this value.
     left:var(--edge-inset) (not --pad directly) keeps this lined up
     with the hero content's actual left edge specifically, not just
     the raw screen padding — see --edge-inset's definition. */
  position:fixed;
  top:24px;left:var(--edge-inset);
  z-index:600;
  display:block;
  height:40px;
  transition:transform .35s var(--ease-out);
}
.logo-btn img{
  height:100%;
  width:auto;
  display:block;
}
/* Scale only, never a rotation: rotating this much fine, closely packed
   detail forces non-axis-aligned resampling that visibly blurs the
   strokes together ("melts" the mark) — a real bug hit and fixed in an
   earlier pass, not a hypothetical risk. */
.logo-btn:hover{transform:scale(1.05);}
@media (max-width:768px){
  .logo-btn{height:32px;top:18px;} /* matches .cta-pill's mobile top below */
}

.cta-pill{
  /* top:18px, NOT the same 24px as .logo-btn — the two boxes are
     different heights (logo is a fixed 40px; this pill is ~52px once
     its 15px top/bottom padding plus line-height are counted), so
     sharing a top offset left their visual centres about 6px apart —
     the logo reading noticeably higher than the button. This centres
     the pill on the logo's own vertical centre instead of just
     matching its top edge. right:var(--edge-inset) keeps this lined up
     with the hero's actual right content edge (the supporting column /
     scroll cue), not just the raw screen padding — see --edge-inset's
     definition. */
  position:fixed;
  top:18px;right:var(--edge-inset);
  z-index:600;
  display:inline-flex;
  align-items:center;
  gap:8px;
  background:#fff;
  color:var(--blue);
  font-family:var(--font-head-alt);
  font-weight:700;
  font-size:.85rem;
  letter-spacing:.01em;
  padding:15px 24px;
  border-radius:100px;
  overflow:hidden;
  box-shadow:0 2px 14px rgba(14,14,18,.12);
  /* No transform here — the "load then pop" scale sequence is precisely
     timed in JS (initLoadThenPopHover in animations.js) so the pop can
     genuinely start only once the fill has finished, rather than
     approximating it with a CSS transition-delay. The fill itself is a
     literal left-to-right progress sweep (::before, scaleX), not a
     colour crossfade, so the loading is unmistakably visible. */
  transition:box-shadow .3s var(--ease-out);
}
.cta-pill::before{
  content:'';
  position:absolute;
  inset:0;
  z-index:0;
  background:var(--accent);
  transform:scaleX(0);
  transform-origin:left;
  /* Slow, clearly visible fill — cubic-bezier approximation of GSAP's
     power2.out, matching the JS-timed pop that starts once this
     finishes (see initLoadThenPopHover in animations.js). */
  transition:transform .9s cubic-bezier(.25,.46,.45,.94);
}
.cta-pill:hover::before{transform:scaleX(1);}
.cta-pill:hover{
  box-shadow:0 10px 26px rgba(14,14,18,.18);
}
.cta-pill span,.cta-pill-arrow{position:relative;z-index:1;}
.cta-pill,.cta-pill:hover{color:var(--blue);}
.cta-pill-arrow{display:inline-block;transition:transform .35s var(--ease-out);}
.cta-pill:hover .cta-pill-arrow{transform:translate(4px,-4px);}
@media (max-width:768px){
  .cta-pill{top:18px;padding:10px 16px;font-size:.7rem;gap:6px;} /* matches .logo-btn's mobile top */
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-family:var(--font-head-alt);
  font-weight:700;
  font-size:.82rem;
  letter-spacing:.04em;
  text-transform:uppercase;
  padding:14px 24px;
  border-radius:100px;
  border:1.5px solid currentColor;
  overflow:hidden;
  position:relative;
  background:transparent;
  transition:color .55s var(--ease-out);
}
.btn::before{
  content:'';
  position:absolute;
  inset:0;
  z-index:0;
  background:var(--btn-fill,var(--lavender));
  transform:scaleX(0);
  transform-origin:left;
  /* Slow, clearly visible fill — cubic-bezier approximation of GSAP's
     power2.out, matching the JS-timed pop that starts once this
     finishes (see initLoadThenPopHover in animations.js). */
  transition:transform .9s cubic-bezier(.25,.46,.45,.94);
}
.btn:hover::before{transform:scaleX(1);}
.btn span,.btn-arrow{position:relative;z-index:1;}
.btn-arrow{transition:transform .35s var(--ease-out);}
.btn:hover .btn-arrow{transform:translate(3px,-3px);}

/* Every fill colour has an explicit, hard-coded hover text colour — never
   inherited — so contrast is guaranteed regardless of the button's
   starting colour. Fill and text colour transition together. */
.btn--primary{
  color:var(--blue);
  border-color:var(--blue);
  --btn-fill:var(--lavender);
}
.btn--primary:hover{color:#fff;}

.btn--on-blue{
  color:#fff;
  border-color:#fff;
  --btn-fill:var(--accent);
}
.btn--on-blue:hover{color:var(--blue);}
.btn--ghost{background:transparent;}

/* ==========================================================================
   Dock — floating macOS-style bottom navigation. Fixed on desktop, solid
   white pill, soft shadow (no blur/liquid-glass). Replaces the old footer.
   Icons only by default — no permanent text labels. Each item's name
   appears as a small tooltip above it only while that specific item is
   hovered (plain CSS :hover, deliberately decoupled from the continuous
   cursor-driven magnification below, which also nudges neighbours).
   ========================================================================== */
.dock{
  position:fixed;
  left:50%;bottom:24px;
  transform:translateX(-50%);
  z-index:600;
  display:flex;
  align-items:center;
  gap:2px;
  background:#fff;
  border-radius:100px;
  padding:10px 14px;
  box-shadow:0 16px 40px rgba(14,14,18,.16),0 2px 10px rgba(14,14,18,.08);
  max-width:calc(100vw - 20px);
}
.dock-sep{
  width:1px;height:28px;
  background:rgba(14,14,18,.1);
  margin:0 6px;
  flex-shrink:0;
}
.dock-item{
  position:relative;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:9px 11px;
  border-radius:16px;
  flex-shrink:0;
  /* Deliberately no background/highlight here, on hover or otherwise —
     the magnification itself (icon scale + lift, driven continuously
     from cursor position in initDockInteractions) is what communicates
     "hovered", not a box behind it. */
}
.dock-icon{
  width:24px;height:24px;
  display:flex;align-items:center;justify-content:center;
  color:var(--blue);
  /* No transition here — its transform is set every frame straight from
     JS (the lerp toward each icon's target IS the smoothing), so a CSS
     transition on the same property would just fight it with a second,
     redundant layer of easing and read as laggy. */
}
.dock-icon--social{width:24px;height:24px;}
.dock-icon--social img{width:100%;height:100%;display:block;}

/* Per-item tooltip — hidden and out of layout by default, fades/lifts in
   above the icon only for the item actually under the cursor. */
.dock-tooltip{
  position:absolute;
  left:50%;bottom:calc(100% + 12px);
  transform:translate(-50%,6px) scale(.85);
  transform-origin:bottom center;
  background:#fff;
  color:var(--blue);
  font-family:var(--font-head-alt);
  font-weight:700;
  font-size:.62rem;
  letter-spacing:.05em;
  text-transform:uppercase;
  white-space:nowrap;
  padding:7px 13px;
  border-radius:100px;
  box-shadow:0 10px 24px rgba(14,14,18,.18);
  opacity:0;
  pointer-events:none;
  transition:opacity .3s var(--ease-out),transform .35s var(--ease-bounce);
}
.dock-item:hover .dock-tooltip,
.dock-item:focus-visible .dock-tooltip{
  opacity:1;
  transform:translate(-50%,0) scale(1);
}
/* Facebook, until a URL is filled in in Studio — a plain <span>, not a
   link, so there's genuinely nothing to click or navigate to even with
   hover/focus enabled. No pointer-events:none here (unlike before) —
   that also blocked the item's own :hover/:focus-visible tooltip, so
   "Facebook" never showed on hover. Hovering now just shows the name,
   same as every other dock icon; it simply can't be clicked anywhere. */
/* Full colour, same as every other dock icon — "inactive" here means
   genuinely non-clickable (it's a <span> with no href to begin with),
   not visually dimmed/greyed. */
.dock-item--disabled{
  cursor:default;
}
.dock-item--email{position:relative;}
.dock-item--email .dock-icon{
  width:26px;height:26px;
  border-radius:50%;
  border:1.5px solid rgba(54,97,254,.3);
}

/* Email popup — reveals above the dock on hover (desktop) or first tap
   (mobile, handled in animations.js). Anchored to the item's right edge
   rather than centred, since email is the dock's last item and a centred
   bubble would risk overflowing the viewport's right edge. Carries its
   own small "Email" line above the bolder "Email us" / address, so it
   reads consistently with every other item's hover tooltip. */
.dock-email-popup{
  position:absolute;
  right:-8px;left:auto;
  bottom:calc(100% + 16px);
  transform:translateY(8px) scale(.85);
  transform-origin:bottom right;
  background:#fff;
  border-radius:16px;
  padding:12px 18px;
  white-space:nowrap;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:2px;
  box-shadow:0 14px 32px rgba(14,14,18,.2);
  opacity:0;
  pointer-events:none;
  transition:opacity .35s var(--ease-out),transform .4s var(--ease-bounce);
}
.dock-email-popup::after{
  content:'';
  position:absolute;
  top:100%;right:18px;
  margin-top:-6px;
  width:12px;height:12px;
  background:#fff;
  transform:rotate(45deg);
  border-radius:2px;
}
.dock-item--email:hover .dock-email-popup,
.dock-item--email:focus-visible .dock-email-popup,
.dock-item--email.is-revealed .dock-email-popup{
  opacity:1;
  transform:translateY(0) scale(1);
}
.dock-tooltip-label{
  font-family:var(--font-head-alt);
  font-weight:700;
  font-size:.6rem;
  letter-spacing:.06em;
  text-transform:uppercase;
  color:var(--ink-faint);
}
.dock-email-popup-address{
  font-family:var(--font-head-alt);
  font-weight:600;
  font-size:.85rem;
  color:var(--blue);
}
@media (max-width:768px){
  .dock-email-popup{right:-4px;padding:10px 14px;}
}

@media (max-width:768px){
  .dock{
    bottom:14px;
    padding:8px 10px;
    gap:0;
    overflow-x:auto;
    scrollbar-width:none;
    -webkit-overflow-scrolling:touch;
  }
  .dock::-webkit-scrollbar{display:none;}
  .dock-item{padding:8px 9px;}
  .dock-sep{margin:0 3px;}
}

/* ==========================================================================
   Entry loading screen — minimal: small centred logo with a hand-drawn-
   style reveal, then a thin yellow/orange progress bar with a live
   percentage, then straight into the page underneath (see lockscreen.js).
   Shown on every load, on every page, no persistence. Sits above every
   fixed chrome element (logo/CTA/dock at z-index:600) but below the
   custom cursor, so the cursor stays visible throughout. The element
   keeps id="lockscreen" (only the visual design changed, not its role)
   so the existing entrance-gating in animations.js/egg.js — which checks
   for that id — needs no changes.
   ========================================================================== */
html.lockscreen-active,html.lockscreen-active body{overflow:hidden;}
/* Set synchronously pre-paint (see the inline script in <head>) so the
   entrance-gated chrome can't flash into its default-visible CSS state
   before the loading screen reveals it. Removed the instant the real GSAP
   entrance tween takes over (same synchronous tick, so there's no frame
   where this rule's absence would itself cause a flash). */
html.pre-entrance .logo-btn,
html.pre-entrance .cta-pill,
html.pre-entrance .dock,
html.pre-entrance main{
  opacity:0;
  pointer-events:none;
}
/* The reveal scales <main> as one piece — a normal block element, so this
   never touches the fixed-position containing-block behaviour that
   logo/CTA/dock rely on. Origin stays centred so it reads as the page
   itself settling into place, not sliding. */
main{transform-origin:50% 50%;}

.loadscreen{
  position:fixed;inset:0;
  z-index:8000;
  /* Two background layers (first listed paints on top): a bottom-anchored
     gradient that darkens/solidifies just the strip where the percent
     and progress bar sit, so they stay clearly legible no matter where
     the decorative thread artwork underneath happens to fall at a given
     viewport size — more reliable than hand-guessing a background-
     position offset against a fixed raster image. */
  background:var(--blue);
  overflow:hidden;
}
.loadscreen-shade{
  position:absolute;
  left:0;right:0;bottom:0;
  height:150px;
  pointer-events:none;
  background:linear-gradient(to top, rgba(28,54,210,.65) 0, rgba(28,54,210,.4) 70px, transparent 150px);
}
/* The artwork is a real <img> (not a CSS background) so the browser
   decodes it before it's shown instead of painting it in on its own
   schedule — that late paint was the background sliding into place
   after refresh. Fills the overlay with cover behaviour. */
.loadscreen-bg{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  max-width:none;
  object-fit:cover;
  object-position:center center;
  pointer-events:none;
  transform:translateZ(0);
}
/* Set synchronously in <head>, before <body> parses — see index.ejs —
   so a same-session in-site navigation never paints this overlay at
   all, instead of waiting for lockscreen.js (deferred, and blocked
   behind the GSAP CDN scripts loading first) to remove it a beat late. */
html.skip-loadscreen .loadscreen{display:none;}

/* Logo — centred, and the only real "graphic" on the screen (goal: feel
   premium and quiet, not like a splash screen). The exact provided PNG
   asset is never redrawn or altered: it pops in with a springy elastic
   bounce (see lockscreen.js) rather than being wiped, blurred-in or
   flipped — a different reveal style each time, same untouched asset.
   Sized large enough to overlap the decorative background threads —
   its own white backing (baked into the asset itself) cleanly covers
   whatever thread art sits behind it at that size, so overlapping it is
   safe/intentional here, unlike the bare percent text below. */
.loadscreen-logo-wrap{
  position:absolute;
  top:50%;left:50%;
  transform:translate(-50%,-50%);
  width:min(92vw,520px);
}
.loadscreen-logo-wrap img{
  display:block;
  width:100%;
  height:auto;
}

/* Progress — percentage sits just above a thin, simple bar near the
   bottom. No gradients, no extra copy; the number and the fill are the
   only things that move. */
.loadscreen-percent{
  position:absolute;
  left:50%;
  bottom:34px;
  transform:translateX(-50%);
  font-family:var(--font-head-alt);
  font-weight:700;
  font-size:.78rem;
  letter-spacing:.05em;
  color:rgba(255,255,255,.8);
  font-variant-numeric:tabular-nums;
}
/* Full-bleed bar flush with the very bottom edge — no pill, no margins —
   the fill is the whole visible signal, edge to edge. */
.loadscreen-bar{
  position:absolute;
  left:0;right:0;bottom:0;
  height:4px;
  background:rgba(255,255,255,.15);
  overflow:hidden;
}
.loadscreen-bar-fill{
  position:absolute;
  top:0;left:0;bottom:0;
  width:100%;
  transform:scaleX(0);
  transform-origin:left center;
  will-change:transform;
  background:var(--orange);
}

/* ==========================================================================
   Custom cursor
   ========================================================================== */
.cursor{
  position:fixed;
  top:0;left:0;
  /* 26.4px = 24px (the original cursor size) scaled up 10%. */
  width:26.4px;height:26.4px;
  pointer-events:none;
  z-index:9999;
  display:flex;
  align-items:center;
  justify-content:center;
  will-change:transform;
  opacity:0;
}
/* The exact provided pencil/eraser SVG files (public/assets/images/
   cursor/), referenced directly as images rather than inlined — their
   own colours are kept exactly as provided, not recoloured to
   currentColor the way the previous hand-drawn pen icon was, so the
   cursor.js colour-adapt tween now just quietly does nothing (not
   removed, since cursor.js itself is unrelated/untouched). Both icons
   sit stacked in the same spot; only one is ever visible at a time via
   .is-eraser (toggled on .cursor by egg.js the moment eraser mode is
   switched, same instant the egg widget's own icon swaps). */
.cursor-pen,.cursor-eraser{
  position:absolute;
  top:0;left:0;
  width:100%;height:100%;
  object-fit:contain;
  display:block;
}
.cursor-eraser{opacity:0;}
.cursor.is-eraser .cursor-pen{opacity:0;}
.cursor.is-eraser .cursor-eraser{opacity:1;}
html:not(.custom-cursor) .cursor{display:none !important;}
.custom-cursor,.custom-cursor a,.custom-cursor button,.custom-cursor input,.custom-cursor textarea,.custom-cursor select{cursor:none;}

/* Cursor drawing trail — fixed full-viewport canvas. Negative z-index keeps
   it behind every normal-flow section (all of which are position:relative
   at most, never establishing their own stacking context), while still
   painting above the plain page background. pointer-events:none so it can
   never intercept a click. */
.cursor-trail{
  position:fixed;
  inset:0;
  z-index:-1;
  pointer-events:none;
  display:block;
}
/* Set only for the duration of an active stroke (see cursor-trail.js
   startStroke/endStroke) — a hold-and-drag would otherwise highlight
   whatever text it passes over, same as any other text-selection drag. */
body.is-drawing-stroke{user-select:none;-webkit-user-select:none;}

/* ==========================================================================
   Teemworks "thread" — a small, playful brand-orange line running the
   full height of the page (not just the hero), a recurring detail that
   guides through the site rather than a dominant graphic. One shared
   visual treatment + animation (colour, progressive scroll-scrubbed
   draw — see initTeemThreads in animations.js), reused on every page;
   each page supplies its own <path> as the first child of its <main>,
   shaped to weave through that page's own margins/empty space — mostly
   hugging the left/right edges, never through the center where headline/
   body content lives. Desktop and mobile/tablet get genuinely different
   path shapes (.teem-thread-desktop / .teem-thread-mobile, toggled by
   the media query below) rather than one path just shrunk down, per the
   brief. Purely decorative: aria-hidden, pointer-events:none, sits
   behind all real content. Every section (and every main) that could
   otherwise paint before this element in source order has its own
   position:relative;z-index:1 specifically so the thread (position:
   absolute, z-index:0) can never render on top of it, regardless of
   path geometry — see each section's own rule for this. stroke-
   dasharray/dashoffset are set inline by JS (the path's own real length
   varies per page), not here.
   ========================================================================== */
.teem-thread{
  position:absolute;
  inset:0;
  z-index:0;
  width:100%;
  height:100%;
  overflow:visible;
  pointer-events:none;
}
.teem-thread path{
  fill:none;
  stroke:#FFAD00;
  /* Thickness confirmed correct as-is — do not thin this out again. What
     needed fixing was the PATH geometry (one huge sweep across the whole
     hero), not the stroke weight. Each page's path is now short,
     confined to a single margin lane, with small controlled curls
     instead of one sprawling arc — see the <path> comments per page. */
  stroke-width:15px;
  stroke-linecap:round;
  stroke-linejoin:round;
  opacity:.92;
  /* Stroke width is specified in real screen pixels, not viewBox units —
     without this, the non-uniform stretch from preserveAspectRatio="none"
     would squash/stretch the line's thickness unevenly depending on each
     section's aspect ratio. */
  vector-effect:non-scaling-stroke;
  filter:drop-shadow(0 8px 20px rgba(255,173,0,.22));
}
.teem-thread-mobile{display:none;}
@media (max-width:900px){
  .teem-thread-desktop{display:none;}
  .teem-thread-mobile{display:block;}
  .teem-thread path{stroke-width:10px;opacity:.85;filter:none;}
}
@media (max-width:640px){
  .teem-thread path{stroke-width:7px;opacity:.75;}
}

/* ==========================================================================
   Teemworks thread — EXACT PROVIDED ASSETS (supersedes the hand-drawn
   .teem-thread paths above on the 5 pages that have a real asset; those
   old rules are left in place but unused there). Each is the designer's
   actual filled-ribbon SVG, used byte-for-byte — never redrawn, never
   stretched non-uniformly. Sized by width only (height:auto), so the
   browser derives height from the asset's own viewBox ratio — this is
   what keeps it undistorted. Anchored to the bottom of its hero, scaled
   per-asset so every one lands at roughly the same rendered height
   (~190px) regardless of each asset's own aspect ratio, keeping it
   inside the hero's bottom gutter and clear of the centered text block.
   Purely decorative: aria-hidden, pointer-events:none, behind content
   (same z-index:0 vs. the hero-inner's z-index:1 pattern used
   everywhere else in this file). Revealed with a plain opacity fade
   (see initTeemThreadAssets in animations.js) rather than a stroke
   draw-in — these are filled shapes, not stroked lines, so stroke-
   dasharray does nothing to them; fading opacity is the one reveal
   technique that cannot distort or "morph" the path itself.
   ========================================================================== */
.teem-thread-asset{
  /* Reverted the top-anchored "spill past the bottom" placement — the
     actual drawn ribbon in each of these assets sits mostly in the
     middle of its own bounding box, not near the top edge, so cropping
     to just the top slice (via top:85% + the hero's overflow:hidden)
     showed nothing but blank canvas. Bottom-anchored is the version
     that's actually visible; the "crosses behind text" tradeoff that
     comes with that at full size is unresolved — see chat. */
  position:absolute;
  left:50%;
  bottom:-60px;
  width:145%;
  max-width:none;
  transform:translateX(-50%);
  height:auto;
  opacity:0;
  pointer-events:none;
  z-index:0;
}
@media (max-width:900px){
  .teem-thread-asset{bottom:-30px;}
}
@media (max-width:640px){
  .teem-thread-asset{bottom:-20px;}
}
/* Per-page placement overrides. Each one only moves its own page's thread. */
.teem-thread-asset--home{bottom:30px;}
.teem-thread-asset--services{left:66%;bottom:90px;}
.teem-thread-asset--about{left:58%;bottom:40px;}
.teem-thread-asset--contact{bottom:-500px;}

/* ==========================================================================
   Homepage background — one continuous blue field behind hero, selected
   work and the services preview.
   ========================================================================== */
body.page-home{background:var(--blue);color:#fff;}
/* Containing block for the full-page .teem-thread svg (position:absolute,
   inset:0) — without this, it would size/position against the next
   positioned ancestor up the tree instead of main's own full scroll
   height. */
body.page-home main{position:relative;}
/* Portfolio page adopts the same continuous-blue treatment as the
   homepage, deliberately kept as its own class rather than reusing
   .page-home so nothing here can ever couple to homepage-specific rules. */
body.page-portfolio{background:var(--blue);color:#fff;}
body.page-portfolio main{position:relative;}

/* ==========================================================================
   Hero
   ========================================================================== */
/* Hero lines are NOT opacity:0 here (unlike every other page's equivalent
   rule below) — this is homepage-only and the homepage has something no
   other page has: a fully opaque, full-viewport .loadscreen (z-index:8000)
   sitting on top of everything until initHeroReveal() runs. That reveal
   applies the real hiding mechanism itself, via gsap.set(..., {yPercent:100})
   inside a .mask{overflow:hidden} — a transform, not opacity. Since the
   opaque loadscreen already fully occludes the hero regardless, leaving
   opacity at its default 1 costs nothing visually but makes the hero text
   an eligible, immediately-painted LCP candidate instead of sitting
   opacity:0 (and therefore LCP-ineligible) for the ~3.4s the loading
   screen plays. Bonus: if the GSAP CDN ever fails to load, the hero now
   fails safe (visible in its resting position) instead of staying
   invisible forever. */
/* Same reasoning, for the portfolio page's own hero (see the
   "Portfolio (redesigned)" section near the end of this file). */
[data-pf-line]{opacity:0;}
/* Centered hero composition — this is the ONLY homepage section that's
   centered; Selected Work, Services preview, and the closing CTA below
   keep their existing left-anchored layouts untouched. */
.hero{
  position:relative;
  min-height:100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:clamp(85px,9vw,120px) var(--pad) clamp(70px,7vw,96px);
}
.hero-inner{
  /* position+z-index so this always paints above .teem-thread (position:
     absolute, z-index:0, painted in the same stacking context) — without
     this, a non-positioned in-flow element paints BEFORE a positioned
     z-index:0 sibling per CSS stacking order, i.e. the thread would sit
     on top of the text despite appearing earlier in source order. */
  position:relative;
  z-index:1;
  width:100%;
  max-width:var(--container);
  margin:0 auto;
  display:flex;
  flex-direction:column;
  align-items:center;
  text-align:center;
  /* Was space-md — bumped up now that the eyebrow line under the headline
     is gone, so the supporting copy gets real breathing room instead of
     sitting right under the headline. */
  gap:var(--space-lg);
}
.hero-copy{max-width:1150px;display:flex;flex-direction:column;align-items:center;}
.hero-heading{color:#fff;}
/* Let CMS phrases flow and wrap like words instead of forcing one hard
   line break per phrase — same masked reveal animation, just wrapping
   naturally based on available width. */
.hero-heading .mask{display:inline-block;vertical-align:top;}
.hero-heading .reveal-line{padding:0 .05em;}
.hero-heading .is-lilac{color:var(--lilac-2);}
.hero-heading .is-orange{color:var(--orange);}
/* "Great brands aren't designed." — the lead-in, deliberately small and
   receding so the line below reads as the dominant statement. */
.hero-heading-sub{
  display:block;
  font-size:clamp(1.3rem,3vw,2.15rem);
}
/* "They're understood." — the main visual emphasis. Much larger than the
   lead-in and bigger than every other page's H1 (var(--fs-hero)), and
   forced onto one line on desktop/laptop (see the min-width rule below);
   tablet/mobile fall back to wrapping if the viewport is too narrow. */
.hero-heading-emph{
  display:block;
  margin-top:.06em;
  font-size:clamp(2.6rem,9vw,6.4rem);
}
@media (min-width:1300px){
  .hero-heading-emph{white-space:nowrap;}
}
.hero-eyebrow{
  margin-top:var(--space-sm);
  font-family:var(--font-head-alt);
  font-weight:700;
  font-size:.75rem;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:rgba(255,255,255,.68);
}
.hero-aside{
  max-width:560px;
  display:flex;
  flex-direction:column;
  align-items:center;
}
.hero-desc{
  font-family:var(--font-head-alt);
  font-weight:500;
  font-size:1rem;
  line-height:1.6;
  color:rgba(255,255,255,.82);
}
.hero-scroll{
  margin-top:var(--space-sm);
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:10px;
  font-family:var(--font-head-alt);
  font-weight:700;
  font-size:.66rem;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:rgba(255,255,255,.6);
}
.hero-scroll-line{
  width:1px;height:34px;
  background:rgba(255,255,255,.35);
  position:relative;
}
.hero-scroll-line::after{
  content:'';
  position:absolute;
  left:50%;bottom:0;
  width:6px;height:6px;
  margin-left:-3px;
  border-radius:50%;
  background:#fff;
}
@media (max-width:768px){
  .hero{min-height:auto;padding-top:110px;}
  .hero-aside{max-width:100%;padding:0 var(--pad);}
}
/* Short laptop screens (shallow viewport height, not just narrow width) —
   trims padding/gap further so the hero's 100vh floor doesn't force the
   page to scroll just to see the dock on an 800px-tall display. */
@media (max-height:800px) and (min-width:769px){
  .hero{padding-top:70px;padding-bottom:56px;}
  .hero-inner{gap:var(--space-sm);}
}

/* ==========================================================================
   Doodle Easter egg — small outlined egg. Desktop: fixed bottom-right,
   above the dock. Mobile: same markup pattern but laid out inline inside
   .hero-scroll instead (two separate instances in the markup, toggled via
   this same max-width:768px breakpoint everything else uses, since
   position:fixed can't relocate an element into normal document flow).
   Hold to fill bottom->top; at 100% it shakes, cracks, and reveals a hint
   about the drag-to-doodle background feature. A second click then toggles
   an eraser mode for that same drawing (see egg.js / cursor-trail.js).
   ========================================================================== */
.egg-wrap--fixed{
  /* Bottom-right corner, sharing the dock's own bottom offset (24px) and
     the dock's height (64px, set on .egg below) so their vertical
     centres land on the exact same line with no extra math needed — dock
     centred, egg square to its right, same right edge as .cta-pill (both
     use --edge-inset, which lines up with the hero's actual right
     content edge rather than raw screen padding — see its definition).
     This is always a vertical stack (label above the square egg) and the
     egg itself never moves or changes layout mode — see .egg-message
     below for why that matters. */
  position:fixed;
  right:var(--edge-inset);
  bottom:24px;
  z-index:600;
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  /* The message bubble (.egg-message below) is vertically centred on
     this row and taller than it, so it overflows a few px above the
     row's own top edge — 2px here left no room for that and let the
     label and bubble visually collide. 10px clears it while still
     sitting much tighter than the original 6px. */
  gap:18px;
}
.egg-wrap--inline{display:none;}

.egg{
  position:relative;
  display:flex;
  align-items:center;
  justify-content:center;
  width:64px;
  height:64px;
  flex-shrink:0;
  background:#fff;
  border:none;
  border-radius:18px;
  padding:0;
  box-shadow:0 12px 28px rgba(14,14,18,.16),0 2px 8px rgba(14,14,18,.08);
  cursor:pointer;
  color:var(--blue);
}
/* 28.6x36.3 = 26x33 scaled up 10% (egg/pencil and eraser icon states
   both reuse this exact box — see EGG_ICON_MARKUP in egg.js). Only the
   icon glyph grows; the egg button itself (.egg, 64px) and its click
   target/position are untouched. */
.egg-icon-wrap{position:relative;display:block;width:28.6px;height:36.3px;}
.egg-outline{position:absolute;top:0;left:0;display:block;transition:opacity .1s;}
.egg-fill-mask{
  position:absolute;
  left:0;bottom:0;
  width:28.6px;
  height:0%;
  overflow:hidden;
  color:var(--accent);
  pointer-events:none;
  transition:opacity .1s;
}
.egg-fill-svg{position:absolute;left:0;bottom:0;display:block;}
/* Shell pieces — hidden and stacked exactly over the outline/fill at
   rest. At crack time the outline/fill fade out and these fade in
   already split along a jagged seam, then the top piece lifts/rotates
   away while the bottom piece settles slightly the other way, so the
   egg actually opens rather than just showing thin crack lines on an
   otherwise still-whole shape. Hidden again once eraser mode replaces
   them with .egg-eraser-icon below. */
.egg-shell{
  position:absolute;
  top:0;left:0;
  display:block;
  opacity:0;
  color:var(--accent);
}
/* True centre, not the old 50% 58%/50% 42% split — those were tuned so
   each of two cracking shell HALVES pivoted near their shared seam.
   shell-top is now one whole pencil icon (shell-bottom has no visible
   content), so an off-centre pivot there just rotated/scaled it visibly
   off true-centre instead of in place. */
.egg-shell-top{transform-origin:50% 50%;}
/* Eraser icon — swapped in for the shell pieces once the (already-
   cracked) egg is clicked a second time, so the icon itself makes the
   mode switch obvious rather than relying on text alone. */
.egg-eraser-icon{
  position:absolute;
  top:0;left:0;
  display:block;
  opacity:0;
  color:var(--accent);
}
.egg-label{
  font-family:var(--font-head-alt);
  font-weight:600;
  font-size:.58rem;
  letter-spacing:.02em;
  text-transform:none;
  color:var(--ink-faint);
  white-space:nowrap;
}
.egg-wrap--fixed .egg-label{
  /* The fixed egg is now global — it sits over whichever page/section is
     scrolled behind it, which can be either the site's blue field or an
     older page's white section (Services, Contact). A plain light-on-
     nothing caption (the original homepage-only treatment) would vanish
     on white, so it gets a small adaptive backdrop chip instead: dark
     enough to keep white text legible on white, subtle enough to still
     read as "sitting on the page" on blue. Doubles as the small "click
     again to erase" / "click again for pencil" hint once cracked — same
     element, just its text (and on non-drawing pages, visibility) swaps,
     so there's no separate noisy caption added. */
  color:#fff;
  text-align:right;
  background:rgba(20,20,34,.55);
  backdrop-filter:blur(6px);
  padding:5px 12px;
  border-radius:100px;
}
.egg.is-cracked{cursor:pointer;}

/* .egg-anchor wraps just the button (desktop only) so the popup can
   position itself directly against the egg's own box via a plain
   position:relative/absolute pair, rather than against the whole wrap
   (which also contains the label above it) — that's what let the popup
   reliably centre on the button regardless of the button's position in
   the column. */
.egg-anchor{position:relative;display:inline-block;}

/* Popup: absolutely positioned against .egg-anchor (i.e. the egg button
   itself), anchored past its 64px width plus a 12px gap so it never
   overlaps the egg, and vertically centred via top:50%/translateY(-50%)
   — which stays correct no matter how tall the text ends up, unlike an
   earlier version that forced a fixed height matching the egg and
   clipped whenever the wrapped text needed more room than that. Because
   its right edge is fixed, growing its max-width can only extend it
   further left — it never touches or moves the egg, which stays exactly
   where it always was. Sized generously (300px, roomy padding/line-
   height) so the two given lines of copy each sit on one line instead of
   wrapping awkwardly a second time. */
.egg-message{
  /* width (not max-width) is what's transitioned: .egg-anchor, this
     box's containing block, is only as wide as the 64px button, and an
     auto-width absolutely-positioned box with only "right" set falls
     back to CSS shrink-to-fit sizing against that tiny containing block
     — capping it with max-width alone still let shrink-to-fit pick a far
     narrower width than the cap allowed, which was the actual cause of
     the cramped wrapping/clipping. An explicit width sidesteps
     shrink-to-fit entirely. */
  position:absolute;
  top:50%;
  right:calc(100% + 12px);
  transform:translateY(-50%);
  width:0;
  overflow:hidden;
  white-space:nowrap;
  padding:18px 22px;
  opacity:0;
  pointer-events:none;
  background:#fff;
  border-radius:16px;
  box-shadow:0 12px 28px rgba(14,14,18,.16),0 2px 8px rgba(14,14,18,.08);
  font-family:var(--font-head-alt);
  font-weight:600;
  font-size:.8rem;
  line-height:1.6;
  letter-spacing:0;
  text-transform:none;
  color:var(--blue);
  transition:width .5s var(--ease-out),opacity .35s var(--ease-out);
}
.egg-message.is-visible{
  width:300px;
  opacity:1;
  pointer-events:auto;
  white-space:normal;
}
.egg-message-glyph{color:var(--accent);}

@media (max-width:768px){
  .egg-wrap--fixed{display:none;}
  .egg-wrap--inline{
    display:flex;
    flex-direction:column;
    align-items:flex-start;
    gap:8px;
    margin-top:4px;
  }
  /* The one inline-egg host that isn't a left-aligned text column —
     About's hero is centred — so the widget centres with it instead of
     sticking to the left edge of an otherwise-centred block. */
  .about-who-inner .egg-wrap--inline{align-items:center;}
  .egg-wrap--inline .egg{
    /* .egg's base rule (desktop) fixes width/height at 64x64 for the
       square button look — must be explicitly undone here, otherwise
       this row layout (icon + label side by side) gets squeezed into
       that same 64px box: .egg-icon-wrap's own children are all
       position:absolute (so it has no in-flow content of its own to
       resist shrinking) and collapses to 0 width, while the label text
       overflows out and visually overlaps the icon instead of sitting
       cleanly beside it. */
    width:auto;
    height:auto;
    background:transparent;
    box-shadow:none;
    padding:0;
    color:rgba(255,255,255,.85);
    flex-direction:row;
    align-items:center;
    gap:8px;
  }
  .egg-wrap--inline .egg-label{color:rgba(255,255,255,.6);}
  .egg-wrap--inline.is-cracked .egg{transform:scale(.85);}
  .egg-wrap--inline .egg-message{
    position:static;
    right:auto;bottom:auto;height:auto;
    display:block;
    width:auto;
    max-width:230px;
    background:rgba(255,255,255,.1);
    box-shadow:none;
    color:#fff;
    transform:none;
    max-height:0;
    padding:0;padding-top:0;padding-bottom:0;
    overflow:hidden;
    transition:opacity .4s var(--ease-out),max-height .45s var(--ease-out),padding .45s var(--ease-out);
  }
  .egg-wrap--inline .egg-message.is-visible{
    max-height:140px;
    padding-top:12px;padding-bottom:12px;
  }

  /* Light theme — for inline eggs mounted on a white/light hero (Services,
     Contact) instead of the site's usual blue, via [data-egg-theme="light"]
     on the page's mount slot (see egg.js). Same layout, just dark ink
     instead of white so the caption and message both stay legible. */
  .egg-wrap--inline.egg-theme-light .egg{color:rgba(20,20,34,.7);}
  .egg-wrap--inline.egg-theme-light .egg-label{color:var(--ink-faint);}
  .egg-wrap--inline.egg-theme-light .egg-message{
    background:rgba(20,20,34,.05);
    color:var(--ink);
  }
}

/* ==========================================================================
   Selected work — same 3-in-a-row grid layout as before, but the cards
   themselves are .portfolio-feature-card (see the Portfolio section
   further down) reused verbatim, plus a "View Other Works" CTA below.
   ========================================================================== */
/* position+z-index — same stacking fix as the hero: keeps this section's
   content above the full-page .teem-thread (now a main-level sibling
   spanning the whole page, not just the hero). */
.work{position:relative;z-index:1;padding:0 var(--pad) var(--space-xl);}
.work-inner{max-width:var(--container);margin:0 auto;}
/* Header stack — heading, then intro, then the "View Other Works" CTA,
   all centered as one column (was a left-copy/right-cta row; centered
   per spec, consistent with the rest of the homepage's section
   treatment). */
.work-header{
  display:flex;
  flex-direction:column;
  align-items:center;
  text-align:center;
  gap:var(--space-md);
  margin-bottom:var(--space-lg);
}
.work-header-copy{
  display:flex;
  flex-direction:column;
  align-items:center;
  text-align:center;
  gap:10px;
  max-width:640px;
}
.work-eyebrow-label{
  margin:0;
  font-family:var(--font-head-alt);
  font-weight:800;
  /* Same scale as every other major-section H2 on the site
     (var(--fs-xl)) — Services heading, service chapter titles, and the
     closing-CTA headings all match this now, so no H2 reads smaller
     than another. */
  font-size:var(--fs-xl);
  letter-spacing:.1em;
  text-transform:uppercase;
  color:#FFAD00;
}
.work-intro{
  margin:0;
  font-family:var(--font-head-alt);
  font-weight:500;
  font-size:1rem;
  line-height:1.6;
  color:rgba(255,255,255,.72);
}
.work-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:var(--space-md);
  justify-content:center;
}
/* Selected Work reuses .portfolio-feature-card verbatim (see index.ejs)
   — the exact same card component as the Portfolio page grid — so
   there's nothing left to style here beyond the grid container. */
@media (max-width:900px){
  .work-grid{grid-template-columns:1fr;}
}

/* ==========================================================================
   Services preview — one row: icon + title + short line, then View Services
   ========================================================================== */
.services-preview{position:relative;z-index:1;padding:var(--space-lg) var(--pad) var(--space-lg);}
.services-preview-inner{
  max-width:var(--container);
  margin:0 auto;
  border-top:1px solid rgba(255,255,255,.16);
  padding-top:var(--space-lg);
  display:flex;
  flex-direction:column;
  /* Centers every child (heading, orbit, panel, cta) as a block, not
     just the ones that already centered their own text — the heading
     is a full-width h2 and was reading left-aligned without this. */
  align-items:center;
  gap:var(--space-lg);
}
.services-preview-heading{
  margin:0;
  font-family:var(--font-head-alt);
  font-weight:800;
  /* Same size/rationale as .work-eyebrow-label above. */
  font-size:var(--fs-xl);
  letter-spacing:.1em;
  text-transform:uppercase;
  text-align:center;
  color:#FFAD00;
}
/* Switcher + CTA stack centered below the heading. */
.services-preview-main{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:var(--space-md);
}

/* -- Services switcher -------------------------------------------------
   2-column layout: the 3 service names on the left act as the section's
   own local nav; the right side shows whichever one is active — a
   short explanation plus an example image. Clicking a name swaps the
   active content with a quick crossfade, no rotation/circle/orbit
   involved (that whole earlier design is gone). All 3 right-side
   panels share one grid cell (grid-area:1/1 on every one) so the
   panel's height is always just whichever is tallest of the 3 — this
   is what lets the inactive ones be hidden/shown with a plain opacity
   transition without the panel collapsing to 0 height in between, and
   without the page ever needing to know in advance which one's active. */
.services-switcher{
  position:relative;
  display:grid;
  /* True 50/50 — was minmax(180px,280px) 1fr, a narrow fixed-width
     label column against a wide content column. align-items:start
     (was stretch) — stretch was forcing the left selector box to
     match the taller right panel's height, leaving dead space inside
     a box that's only ever built for exactly 3 rows. The box now
     sizes to its own 3 items and (via .services-switcher-left's own
     align-self below) centres itself within whatever height the
     right column ends up needing. */
  grid-template-columns:1fr 1fr;
  gap:var(--space-xl);
  align-items:start;
  width:100%;
}
/* Very subtle technical-grid backdrop behind the whole switcher —
   purely decorative texture, low-opacity white lines on the existing
   blue, no new colours. Bleeds slightly past the switcher's own edges
   for a "larger system" feel rather than a boxed-in card. Sits behind
   both columns (z-index:0); the list/panel below get z-index:1. */
.services-switcher::before{
  content:'';
  position:absolute;
  inset:-28px;
  z-index:0;
  pointer-events:none;
  background-image:
    repeating-linear-gradient(0deg, rgba(255,255,255,.05) 0 1px, transparent 1px 56px),
    repeating-linear-gradient(90deg, rgba(255,255,255,.05) 0 1px, transparent 1px 56px);
  -webkit-mask-image:radial-gradient(circle at 50% 50%, #000 55%, transparent 90%);
  mask-image:radial-gradient(circle at 50% 50%, #000 55%, transparent 90%);
}
/* .services-switcher-left wraps the hint + list as one unit — what
   .align-self:center below centres as a single block within the
   row's height, instead of the hint and list drifting independently
   (which separate grid-row placement on two siblings couldn't
   guarantee together). */
.services-switcher-left{
  grid-column:1;
  align-self:center;
  position:relative;
  z-index:1;
  display:flex;
  flex-direction:column;
  width:100%;
}
.services-switcher-hint{
  margin:0 0 var(--space-sm);
  font-family:var(--font-head-alt);
  font-weight:700;
  font-size:.74rem;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:rgba(255,255,255,.4);
}
.services-switcher-list{
  display:flex;
  flex-direction:column;
  /* Subtle framing around the list — a thin outline, not a card — plus
     a divider line between each item (border-top on every item but
     the first) so the list itself reads as one deliberate block.
     Sized for exactly 3 rows and nothing more: no longer stretched to
     match the right panel's height (see .services-switcher above),
     so there's no dead space left to balance out inside it. */
  border:1px solid rgba(255,255,255,.1);
  border-radius:18px;
  padding:0 6px;
}
.services-switcher-item{
  position:relative;
  display:flex;
  align-items:center;
  gap:14px;
  width:100%;
  text-align:left;
  background:none;
  border:none;
  border-top:1px solid rgba(255,255,255,.1);
  /* Tightened (was 22px 16px 22px 22px) — a box built for exactly 3
     rows reads tighter and more deliberate, not stretched out. */
  padding:18px 16px 18px 22px;
  cursor:pointer;
}
.services-switcher-item:first-child{border-top:none;}
/* Active accent bar: a rounded ::before inset top/bottom (not a full-
   height border-left, which touched the row's very top/bottom edge —
   i.e. exactly where the divider lines sit — and read as cutting
   through them). Insetting it means it can never reach far enough to
   touch a divider, on any row, by construction. */
.services-switcher-item::before{
  content:'';
  position:absolute;
  left:0;
  top:10px;
  bottom:10px;
  width:4px;
  border-radius:4px;
  background:transparent;
  transition:background-color .3s var(--ease-out),box-shadow .3s var(--ease-out);
}
.services-switcher-item-num{
  font-family:var(--font-head-alt);
  font-weight:700;
  font-size:.82rem;
  letter-spacing:.05em;
  color:rgba(255,255,255,.3);
  transition:color .3s var(--ease-out);
}
.services-switcher-item-label{
  font-family:var(--font-head-alt);
  font-weight:800;
  font-size:clamp(1.3rem,2.4vw,1.7rem);
  letter-spacing:.02em;
  text-transform:uppercase;
  color:rgba(255,255,255,.4);
  transition:color .3s var(--ease-out);
}
/* Small dot marker, flush right — a tiny interface detail rather than
   relying on the left border alone to carry the active state. */
.services-switcher-item-marker{
  margin-left:auto;
  width:7px;height:7px;
  flex-shrink:0;
  border-radius:50%;
  background:rgba(255,255,255,.15);
  transition:background-color .3s var(--ease-out),box-shadow .3s var(--ease-out);
}
.services-switcher-item:hover .services-switcher-item-label{color:rgba(255,255,255,.7);}
.services-switcher-item.is-active::before{
  background:var(--orange-2);
  box-shadow:0 0 8px rgba(254,199,99,.45);
}
.services-switcher-item.is-active .services-switcher-item-num{color:var(--orange-2);}
.services-switcher-item.is-active .services-switcher-item-label{color:#fff;}
.services-switcher-item.is-active .services-switcher-item-marker{
  background:var(--orange-2);
  box-shadow:0 0 0 4px rgba(254,199,99,.25);
}
.services-switcher-panel{
  grid-column:2;
  position:relative;
  z-index:1;
  display:grid;
}
.services-switcher-content{
  grid-area:1/1;
  display:flex;
  flex-direction:column;
  gap:var(--space-md);
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transform:translateY(8px);
  transition:opacity .35s var(--ease-out),transform .35s var(--ease-out),visibility 0s linear .35s;
}
.services-switcher-content.is-active{
  opacity:1;
  visibility:visible;
  pointer-events:auto;
  transform:translateY(0);
  transition:opacity .35s var(--ease-out),transform .35s var(--ease-out);
}
/* Small "Service 0X / 03" label + accent dot above the copy — the
   tiny interface detail the right side was missing entirely before. */
.services-switcher-eyebrow{
  display:flex;
  align-items:center;
  gap:8px;
  margin:0;
  font-family:var(--font-head-alt);
  font-weight:700;
  font-size:.74rem;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:var(--orange-2);
}
.services-switcher-eyebrow-dot{
  width:6px;height:6px;
  border-radius:50%;
  background:var(--orange-2);
  flex-shrink:0;
}
.services-switcher-desc{
  font-family:var(--font-head-alt);
  font-weight:500;
  font-size:1.05rem;
  line-height:1.6;
  color:rgba(255,255,255,.85);
  /* No max-width now (was 46ch) — the copy is longer and the column
     is now a full 50% of the section, so it should use the width
     it's actually given rather than wrapping artificially narrow. */
}
.services-switcher-media{
  border-radius:20px;
  overflow:hidden;
  aspect-ratio:16/9;
  background:rgba(255,255,255,.06);
  /* Thin frame so the image reads as integrated into the layout
     rather than just dropped into empty space. */
  border:1px solid rgba(255,255,255,.14);
}
.services-switcher-media img{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
}
/* Same honest empty state as .service-chapter-media--empty on the
   Services page — used here only in the static (Sanity-unreachable)
   fallback page, which has no real project photo of its own to
   reuse. */
.services-switcher-media--empty{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:14px;
  border-style:dashed;
  border-width:2px;
  border-color:rgba(255,255,255,.3);
  background:rgba(255,255,255,.07);
  color:rgba(255,255,255,.5);
  text-align:center;
  padding:var(--space-lg);
}
.services-switcher-media--empty svg{width:40px;height:40px;}
.services-switcher-media--empty p{
  margin:0;
  max-width:24ch;
  font-family:var(--font-head-alt);
  font-weight:600;
  font-size:.95rem;
  line-height:1.5;
  color:rgba(255,255,255,.65);
}
@media (max-width:768px){
  .services-switcher{grid-template-columns:1fr;gap:var(--space-lg);}
  /* Back to plain single-column stacking (left block, then panel,
     matching DOM order) — grid-column:2 left over from the desktop
     2-column grid would otherwise create a stray extra implicit
     column track once there's only 1 column. align-self:center also
     reset, there being nothing taller beside it to centre against. */
  .services-switcher-left,
  .services-switcher-panel{grid-column:auto;align-self:auto;}
  .services-switcher-list{
    flex-direction:row;
    flex-wrap:wrap;
    border:none;
    padding:0;
    gap:8px;
  }
  .services-switcher-item{
    width:auto;
    border-top:none;
    border-bottom:3px solid transparent;
    padding:10px 4px;
    gap:8px;
  }
  /* Mobile's active indicator is the border-bottom below instead —
     the inset left bar (::before) is a desktop-only accent. */
  .services-switcher-item::before{content:none;}
  .services-switcher-item.is-active{border-bottom-color:var(--orange-2);}
  .services-switcher-item-marker{display:none;}
  .services-switcher-item-label{font-size:1.05rem;}
}

/* Same white-filled pill design as .cta-pill (top-right "Work with
   Teemworks") — was previously its own outlined/transparent style;
   now matches that button's exact look, size and spacing. */
.services-preview-cta{
  position:relative;
  flex:0 0 auto;
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-family:var(--font-head-alt);
  font-weight:700;
  font-size:.85rem;
  letter-spacing:.01em;
  color:var(--blue);
  background:#fff;
  padding:15px 24px;
  border-radius:100px;
  overflow:hidden;
  box-shadow:0 2px 14px rgba(14,14,18,.12);
  transition:box-shadow .3s var(--ease-out);
}
.services-preview-cta::before{
  content:'';
  position:absolute;
  inset:0;
  z-index:0;
  background:var(--accent);
  transform:scaleX(0);
  transform-origin:left;
  /* Slow, clearly visible fill — cubic-bezier approximation of GSAP's
     power2.out, matching the JS-timed pop that starts once this
     finishes (see initLoadThenPopHover in animations.js). */
  transition:transform .9s cubic-bezier(.25,.46,.45,.94);
}
.services-preview-cta:hover::before{transform:scaleX(1);}
/* Pop sequencing lives in JS — see initLoadThenPopHover, timed to start
   once this fill sweep (above, 0.9s) has actually finished. */
.services-preview-cta,.services-preview-cta:hover{color:var(--blue);}
.services-preview-cta:hover{box-shadow:0 10px 26px rgba(14,14,18,.18);}
.services-preview-cta span{position:relative;z-index:1;}

/* ==========================================================================
   Final CTA — compact closer, not another hero. Last section on the page,
   so it carries the fixed dock's clearance padding.
   ========================================================================== */
.final-cta{
  position:relative;
  z-index:1;
  padding:var(--space-md) var(--pad) calc(var(--space-xl) + 100px);
  text-align:center;
}
/* Left-right, not centered-stack — matches the left-anchored rhythm of
   the rest of the site (hero, Selected Work, Services preview) instead
   of reading as a one-off centered moment. Heading left, button right;
   drops back to a centered stack on narrow screens where a row would
   cramp both. */
.final-cta-inner{
  max-width:var(--container);
  margin:0 auto;
}
.final-cta-heading{
  font-size:var(--fs-xl);
  color:#fff;
  white-space:nowrap;
}
/* Outlined H2 — every major section heading sitewide (Selected Work,
   Services, the 4 service chapter titles, and the 4 closing-CTA
   headings). Small caption-style H2s elsewhere (About's "Who We Are"
   etc., the project page's "The Challenge" etc.) are deliberately left
   alone — those read as captions, not section titles. H1, H3, body
   copy and buttons are untouched everywhere.
   Orange fill, white outline sitting entirely OUTSIDE the letterform.
   The previous attempt used -webkit-text-stroke, which draws its
   stroke CENTRED on the glyph edge — half of it always eats inward —
   and a ::before/attr() workaround for that only reproduces single-
   line static copy correctly (CMS text and multi-line <br> headings
   don't survive the attr()/content round-trip). This uses a ring of 8
   offset text-shadow copies instead: each is a full white silhouette
   of the glyph, but since the real orange text paints ON TOP of its
   own shadows, every shadow is only ever visible in the sliver it
   extends PAST the real glyph edge — never inside it. Needs no
   duplicated content, so it works unmodified on multi-line and
   dynamic CMS headings. */
.work-eyebrow-label,
.services-preview-heading,
.final-cta-heading,
.service-chapter-title,
.services-end-heading,
.about-end-heading,
.case-end-heading{
  /* Orange colour for each of these 7 is set at its own base rule
     elsewhere in the file (not here) — this file has some of those
     base rules defined further down than this block, so setting
     colour here too would lose to them on source order. */
  text-shadow:none;
}
.final-cta-btn{
  position:relative;
  display:inline-flex;
  align-items:center;
  gap:10.5px;
  background:#fff;
  color:var(--blue);
  font-family:var(--font-head-alt);
  font-weight:700;
  font-size:1.15rem;
  padding:23px 44px;
  border-radius:100px;
  overflow:hidden;
  box-shadow:0 2px 14px rgba(14,14,18,.12);
  /* Pop sequencing lives in JS — see initLoadThenPopHover. The fill is a
     literal left-to-right progress sweep (::before, scaleX), matching
     every other main CTA, so the loading is unmistakably visible. */
  transition:box-shadow .3s var(--ease-out);
}
.final-cta-btn::before{
  content:'';
  position:absolute;
  inset:0;
  z-index:0;
  background:var(--accent);
  transform:scaleX(0);
  transform-origin:left;
  /* Slow, clearly visible fill — cubic-bezier approximation of GSAP's
     power2.out, matching the JS-timed pop that starts once this
     finishes (see initLoadThenPopHover in animations.js). */
  transition:transform .9s cubic-bezier(.25,.46,.45,.94);
}
.final-cta-btn:hover::before{transform:scaleX(1);}
.final-cta-btn:hover{
  box-shadow:0 10px 26px rgba(14,14,18,.18);
}
.final-cta-btn span,.final-cta-arrow{position:relative;z-index:1;}
.final-cta-btn,.final-cta-btn:hover{color:var(--blue);}
.final-cta-arrow{display:inline-block;transition:transform .35s var(--ease-out);}
.final-cta-btn:hover .final-cta-arrow{transform:translate(4px,-4px);}
/* Overrides .final-cta-btn's own (enlarged) size back down to match
   .cta-pill ("Work with Teemworks") — this must come AFTER .final-cta-btn
   in source order to actually win: same specificity (one class each),
   so whichever is declared later wins, and this rule was previously
   sitting earlier in the file, silently losing every property it set. */
.work-header-cta{
  flex:0 0 auto;
  padding:15px 24px;
  gap:8px;
  font-size:.85rem;
  letter-spacing:.01em;
  white-space:nowrap;
}

/* -- "Big feature card" closing CTA ----------------------------------------
   Shared by every closing CTA on the site (Home, Portfolio, Services,
   About, Project Detail) — each page's own -inner wrapper (.final-cta-
   inner, .services-end-inner, .about-end-inner, .case-end-inner) is just
   a max-width container; this card is what actually renders inside it. */
.final-cta-card{
  position:relative;
  isolation:isolate;
  overflow:hidden;
  display:flex;
  flex-direction:column;
  align-items:center;
  /* Vertically centres the copy block (the only thing left in flow —
     the artwork below is absolutely positioned) within the card's full
     height, instead of leaving it pinned to the top with a dead zone
     underneath. This is what makes the whole card read as centered. */
  justify-content:center;
  gap:var(--space-lg);
  /* Even padding on every side now that the artwork no longer needs a
     dedicated flow gap reserved underneath the copy. */
  padding:var(--space-xl);
  min-height:clamp(420px,33vw,505px);
  border-radius:40px;
  /* Flat colour, no gradient — lighter blue than the page's base --blue,
     straight from the existing colour kit. */
  background:var(--blue-2);
}
.final-cta-card-copy{
  position:relative;
  z-index:2;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:var(--space-lg);
  width:100%;
  max-width:640px;
  text-align:center;
  /* Nudges the whole copy block up from the card's vertical centre
     (set by .final-cta-card's justify-content:center) — the heading
     and supporting line specifically were sitting a bit low. */
  margin-top:clamp(-40px,-4vw,-24px);
}
/* New supporting line under the heading (Home only — the other closing
   CTAs keep their own existing label/heading, no subtext added). */
.final-cta-supporting{
  font-family:var(--font-head-alt);
  font-weight:500;
  font-size:1.05rem;
  line-height:1.6;
  color:rgba(255,255,255,.82);
  /* Pulls it in closer under the heading specifically — the parent's
     gap:var(--space-lg) still sets the (larger) space before the
     button below, untouched. */
  margin-top:calc(var(--space-xs) - var(--space-lg));
}
/* Artwork is absolutely positioned behind the copy block (z-index:1,
   under .final-cta-card-copy's z-index:2). left:0/right:0 (no negative
   bleed) means it sits within the card's own padding box, so each hand
   still reaches toward its side but stops at the padded content edge —
   the card's existing padding becomes the breathing-room gap before the
   rounded corner, instead of the art bleeding flush into it and getting
   clipped by the curve. Still one uniformly-scaled image (height:auto
   keeps its real proportions, no stretch/distortion); bottom:0 keeps it
   anchored low so the thread flows through the lower-middle. */
.final-cta-visual{
  position:absolute;
  z-index:1;
  left:0;
  right:0;
  bottom:0;
  pointer-events:none;
}
/* Editors can upload their own graphic in Studio (Closing CTA Visual) —
   when they do, it renders here instead of the hands/thread artwork
   below. height:auto (not a fixed aspect-ratio box) so it keeps
   whichever image's own real proportions, uploaded or default, without
   stretching either. */
.final-cta-visual-img{
  display:block;
  width:100%;
  height:auto;
}
/* Default fallback when no image is set — same abstract-shape
   convention as .services-shape (square+plus, borrowed from that same
   family rather than repeating .about-shape's ring+dash), plain
   decorative shapes, no external image, kept inside the Teemworks
   blue/purple/lilac/orange palette. */
.final-cta-shape{position:absolute;}
.final-cta-shape--square{
  top:8%;right:6%;
  width:52%;height:52%;
  border:3px solid rgba(255,255,255,.45);
  border-radius:26px;
  transform:rotate(-8deg);
}
.final-cta-shape--blob{
  bottom:4%;left:2%;
  width:54%;height:54%;
  border-radius:50%;
  background:radial-gradient(circle at 35% 30%,var(--lilac),var(--orange) 85%);
  filter:blur(2px);
  opacity:.85;
}
.final-cta-shape--dot{
  top:36%;left:8%;
  width:15%;height:15%;
  border-radius:50%;
  background:var(--orange-2);
}
.final-cta-shape--plus{
  bottom:16%;right:12%;
  width:30px;height:30px;
}
.final-cta-shape--plus::before,
.final-cta-shape--plus::after{
  content:'';
  position:absolute;
  background:rgba(255,255,255,.65);
  border-radius:2px;
}
.final-cta-shape--plus::before{top:50%;left:0;width:100%;height:3px;transform:translateY(-50%);}
.final-cta-shape--plus::after{left:50%;top:0;height:100%;width:3px;transform:translateX(-50%);}
@media (max-width:900px){
  .final-cta-card{padding:var(--space-lg);gap:var(--space-md);min-height:clamp(320px,58vw,420px);}
  /* Own, tighter clamp (not the shared --fs-xl) so "Put your ideas to
     work" keeps shrinking enough to stay on one line on narrow phones
     instead of wrapping or overflowing the card. */
  .final-cta-heading{font-size:clamp(1.3rem,6.2vw,2rem);}
  /* Same reasoning — each of these 3 closing-CTA headings is now
     white-space:nowrap (exactly 2 lines, split only by the CMS's own
     <br>), so each line needs to keep shrinking enough on narrow
     phones to actually fit in one line rather than overflowing. */
  .services-end-heading,
  .about-end-heading,
  .case-end-heading{font-size:clamp(1.3rem,6.2vw,2rem);}
}

/* ==========================================================================
   Sticky question section
   ========================================================================== */
.question{
  min-height:100vh;
  overflow:hidden;
}
.question-inner{
  position:relative;
  height:100%;
  min-height:100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
}
.question-eyebrow{
  position:absolute;
  top:36px;left:0;right:0;
  text-align:center;
}
.question-group{
  position:absolute;
  left:0;right:0;
  padding:0 var(--pad);
}
.question-group .h-display{font-size:var(--fs-xl);}

/* ==========================================================================
   Problem / oversized word
   ========================================================================== */
.problem{text-align:center;}
.problem-lead{
  font-family:var(--font-head-alt);
  font-weight:500;
  font-size:var(--fs-md);
  color:var(--ink-soft);
  margin-bottom:var(--space-xs);
}
.problem-statement{font-size:var(--fs-lg);margin:var(--space-xs) 0 var(--space-sm);}
.problem-word{
  font-size:clamp(4rem,18vw,15rem);
  color:var(--blue);
  line-height:1;
  margin:var(--space-xs) 0 var(--space-sm);
}
.problem-tail{
  font-family:var(--font-head-alt);
  font-style:italic;
  font-weight:400;
  font-size:var(--fs-md);
  color:var(--ink-soft);
}

/* ==========================================================================
   Questions stack
   ========================================================================== */
.questions-stack{display:flex;flex-direction:column;gap:var(--space-sm);}
.questions-stack .h-display{
  font-size:var(--fs-xl);
  padding:clamp(14px,2vw,22px) 0;
  border-bottom:1px solid rgba(14,14,18,.08);
}
.questions-stack .h-display:first-child{border-top:1px solid rgba(14,14,18,.08);}
.questions-tail{
  margin-top:var(--space-xl);
  font-family:var(--font-head-alt);
  font-weight:500;
  font-size:var(--fs-md);
  max-width:16ch;
}

/* ==========================================================================
   Brand memory
   ========================================================================== */
.memory-q{font-size:var(--fs-xl);max-width:20ch;margin-bottom:var(--space-xl);}
.memory-row{
  display:flex;
  gap:clamp(40px,8vw,120px);
  flex-wrap:wrap;
  justify-content:space-between;
}
.memory-negatives p,.memory-positives p{
  font-family:var(--font-head-alt);
  font-size:var(--fs-md);
  font-weight:500;
  margin-bottom:var(--space-xs);
}
.memory-negatives p{color:rgba(255,255,255,.55);text-decoration:line-through;text-decoration-thickness:1px;text-decoration-color:rgba(255,255,255,.35);}
.memory-positives p{color:#fff;font-weight:700;}
.memory-positives span{color:var(--accent);}

/* ==========================================================================
   Philosophy
   ========================================================================== */
.philosophy .h-display{font-size:var(--fs-xl);}
.philosophy-line{margin-bottom:var(--space-sm);}
.philosophy-understand{color:var(--blue);}

/* ==========================================================================
   Services rows
   ========================================================================== */
.services-intro{margin-bottom:clamp(50px,8vw,100px);}
.services-intro .h-display{font-size:var(--fs-xl);}
.service-row{
  position:relative;
  z-index:0;
  border-top:1px solid rgba(14,14,18,.1);
  padding:clamp(26px,4vw,48px) 0;
  display:grid;
  grid-template-columns:80px 1fr auto;
  align-items:center;
  gap:20px;
  transition:padding-left .5s var(--ease-out);
  overflow:hidden;
}
.service-row:last-child{border-bottom:1px solid rgba(14,14,18,.1);}
.service-num{
  font-family:var(--font-head-alt);
  font-weight:700;
  font-size:.85rem;
  color:var(--ink-faint);
}
.service-name{
  font-family:var(--font-head);
  font-weight:800;
  font-size:clamp(1.8rem,5vw,3.6rem);
  text-transform:uppercase;
  line-height:1.1;
}
.service-desc{
  max-width:32ch;
  font-size:.95rem;
  color:var(--ink-soft);
  max-height:0;
  opacity:0;
  overflow:hidden;
  transition:max-height .5s var(--ease-out),opacity .4s;
}
.service-row.is-active .service-desc{max-height:200px;opacity:1;}
.service-row.is-active{padding-left:24px;}
.service-arrow{
  font-family:var(--font-head-alt);
  font-size:1.4rem;
  opacity:0;
  transform:translate(-6px,6px) rotate(-20deg);
  transition:opacity .4s,transform .4s var(--ease-out);
}
.service-row.is-active .service-arrow{opacity:1;transform:translate(0,0) rotate(0);}
.service-row-bg{
  position:absolute;inset:0;
  background:var(--blue);
  z-index:-1;
  transform:scaleY(0);
  transform-origin:bottom;
  transition:transform .5s var(--ease-out);
}
.service-row.is-active .service-row-bg{transform:scaleY(1);}
.service-row.is-active{color:#fff;}
.service-row.is-active .service-num,.service-row.is-active .service-desc{color:rgba(255,255,255,.8);}

/* ==========================================================================
   Portfolio
   ========================================================================== */
.portfolio-intro .h-display{font-size:var(--fs-xl);}
.portfolio-intro-sub{font-family:var(--font-head-alt);font-size:var(--fs-md);color:var(--ink-soft);margin-top:14px;}
.portfolio-list{margin-top:clamp(60px,10vw,120px);display:flex;flex-direction:column;gap:clamp(90px,14vw,160px);}
.portfolio-item{
  display:grid;
  grid-template-columns:1.1fr .9fr;
  gap:clamp(30px,6vw,80px);
  align-items:center;
}
.portfolio-item.is-reverse{grid-template-columns:.9fr 1.1fr;}
.portfolio-item.is-reverse .portfolio-media{order:2;}
.portfolio-item.is-reverse .portfolio-copy{order:1;}
.portfolio-media{
  position:relative;
  aspect-ratio:4/3;
  overflow:hidden;
  border-radius:4px;
  background:var(--blue);
}
.portfolio-media-inner{
  position:absolute;
  inset:-10%;
  background:inherit;
  display:flex;
  align-items:center;
  justify-content:center;
}
.portfolio-media-tag{
  font-family:var(--font-head);
  font-weight:800;
  color:rgba(255,255,255,.9);
  font-size:clamp(1.4rem,3vw,2.2rem);
  text-transform:uppercase;
  letter-spacing:.02em;
  text-align:center;
  padding:0 20px;
}
.portfolio-index{
  font-family:var(--font-head-alt);
  font-weight:700;
  color:var(--ink-faint);
  font-size:.85rem;
  margin-bottom:14px;
}
.portfolio-title{
  font-family:var(--font-head);
  font-weight:800;
  font-size:clamp(1.8rem,4.2vw,3.2rem);
  text-transform:uppercase;
  line-height:1.1;
  margin-bottom:var(--space-xs);
}
.portfolio-tags{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:16px;}
.portfolio-tags span{
  font-family:var(--font-head-alt);
  font-size:.72rem;
  font-weight:700;
  letter-spacing:.06em;
  text-transform:uppercase;
  color:var(--blue);
  border:1px solid rgba(54,97,254,.35);
  border-radius:100px;
  padding:5px 12px;
}
.portfolio-copy p.desc{color:var(--ink-soft);max-width:42ch;}

/* ==========================================================================
   Process
   ========================================================================== */
.process{
  overflow:hidden;
  min-height:100vh;
  display:flex;
  flex-direction:column;
  justify-content:center;
}
.process-head{margin-bottom:clamp(40px,8vw,80px);}
.process-head .h-display{font-size:var(--fs-xl);}
.process-track{
  display:flex;
  gap:clamp(30px,6vw,90px);
}
.process-panel{
  flex:0 0 auto;
  width:min(78vw,560px);
}
.process-panel-num{
  font-family:var(--font-head-alt);
  font-weight:700;
  font-size:.85rem;
  color:var(--on-blue-faint);
  margin-bottom:20px;
}
.process-panel .h-display{
  font-size:clamp(2.4rem,6vw,5rem);
  margin-bottom:18px;
}
.process-panel p{
  color:var(--on-blue-soft);
  max-width:36ch;
  font-size:1rem;
}
.process-viewport{overflow-x:hidden;overflow-y:visible;}

/* ==========================================================================
   About
   ========================================================================== */
.about-merge{
  display:flex;
  justify-content:center;
  align-items:baseline;
  flex-wrap:nowrap;
  margin-bottom:clamp(50px,9vw,100px);
  overflow:hidden;
}
.about-merge .h-display{
  font-size:var(--fs-hero);
  white-space:nowrap;
}
.merge-teem{will-change:transform;}
.merge-works{will-change:transform;}
.about-heading{
  font-size:var(--fs-xl);
  margin-bottom:24px;
}
.about-body{max-width:56ch;color:var(--ink-soft);font-size:1.05rem;}
.about-body p + p{margin-top:var(--space-sm);}
.team-grid{
  margin-top:clamp(60px,10vw,110px);
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:var(--space-md);
  border-top:1px solid rgba(14,14,18,.1);
  padding-top:var(--space-md);
}
.team-card .name{
  font-family:var(--font-head);
  font-weight:800;
  font-size:clamp(1.6rem,3.4vw,2.4rem);
  text-transform:uppercase;
  margin-bottom:var(--space-xs);
}
.team-card .role{
  font-family:var(--font-head-alt);
  color:var(--ink-soft);
  font-size:.95rem;
}

/* ==========================================================================
   CTA
   ========================================================================== */
.cta{text-align:center;}
.cta--left{text-align:left;}
.cta-eyebrow{margin-bottom:var(--space-sm);}
.cta .h-display{font-size:var(--fs-xl);}
.cta-word-work{color:var(--accent);}
.cta-btn-wrap{margin-top:var(--space-lg);}

/* ==========================================================================
   Page intro (secondary pages)
   ========================================================================== */
.page-hero{
  min-height:70vh;
  display:flex;
  flex-direction:column;
  justify-content:center;
  padding-top:140px;
}
.page-hero .h-display{font-size:var(--fs-hero);}
.page-hero-sub{
  margin-top:20px;
  font-family:var(--font-head-alt);
  font-size:var(--fs-md);
  color:var(--ink-soft);
  max-width:36ch;
}
.section--blue .page-hero-sub{color:var(--on-blue-soft);}

/* ==========================================================================
   Services page detail
   ========================================================================== */
.service-detail{
  border-top:1px solid rgba(14,14,18,.1);
  padding:clamp(50px,8vw,90px) 0;
  display:grid;
  grid-template-columns:.5fr 1.5fr;
  gap:var(--space-md);
}
.service-detail:last-child{border-bottom:1px solid rgba(14,14,18,.1);}
.service-detail-num{
  font-family:var(--font-head);
  font-weight:800;
  font-size:clamp(2rem,4vw,3rem);
  color:var(--ink-faint);
}
.service-detail-name{
  font-family:var(--font-head);
  font-weight:800;
  font-size:clamp(2rem,5vw,3.6rem);
  text-transform:uppercase;
  line-height:1.1;
  margin-bottom:var(--space-sm);
}
.service-detail-desc{color:var(--ink-soft);max-width:56ch;font-size:1.05rem;margin-bottom:var(--space-sm);}
.service-detail-points{display:flex;flex-wrap:wrap;gap:10px;}
.service-detail-points span{
  font-family:var(--font-head-alt);
  font-size:.78rem;
  font-weight:600;
  letter-spacing:.03em;
  text-transform:uppercase;
  background:rgba(54,97,254,.08);
  color:var(--blue);
  padding:8px 14px;
  border-radius:100px;
}

/* ==========================================================================
   Portfolio grid page
   ========================================================================== */
.portfolio-grid{
  margin-top:clamp(50px,8vw,90px);
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:clamp(30px,4vw,50px);
}
.grid-item-media{
  aspect-ratio:4/3;
  border-radius:4px;
  background:var(--blue);
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
  margin-bottom:var(--space-sm);
}
.grid-item-media span{
  font-family:var(--font-head);
  font-weight:800;
  color:rgba(255,255,255,.9);
  font-size:clamp(1.2rem,2.4vw,1.8rem);
  text-transform:uppercase;
  text-align:center;
  padding:0 20px;
}
.grid-item-title{
  font-family:var(--font-head);
  font-weight:800;
  font-size:clamp(1.3rem,2.4vw,1.7rem);
  text-transform:uppercase;
  line-height:1.1;
  margin-bottom:var(--space-xs);
}
.portfolio-grid-item{display:block;}
.portfolio-grid-item .grid-item-media{transition:transform .5s var(--ease-out);}
.portfolio-grid-item:hover .grid-item-media{transform:translateY(-6px);}
.grid-item-tag{
  font-family:var(--font-head-alt);
  font-size:.8rem;
  color:var(--ink-faint);
  font-weight:600;
  text-transform:uppercase;
  letter-spacing:.03em;
}

/* ==========================================================================
   Contact form
   ========================================================================== */
.contact-layout{
  display:grid;
  grid-template-columns:.8fr 1.2fr;
  gap:clamp(40px,6vw,90px);
  margin-bottom:70px;
}
.contact-info-item{margin-bottom:var(--space-md);}
.contact-info-item h4{
  font-family:var(--font-head-alt);
  font-size:.75rem;
  letter-spacing:.1em;
  text-transform:uppercase;
  color:var(--ink-faint);
  margin-bottom:8px;
}
.contact-info-item a,.contact-info-item p{font-size:1.05rem;}

.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:var(--space-md) var(--space-sm);}
.form-field{display:flex;flex-direction:column;gap:8px;}
.form-field.full{grid-column:1/-1;}
.form-field label{
  font-family:var(--font-head-alt);
  font-size:.78rem;
  font-weight:600;
  letter-spacing:.05em;
  text-transform:uppercase;
  color:var(--ink-faint);
}
.form-field input,.form-field select,.form-field textarea{
  border:none;
  border-bottom:1.5px solid rgba(14,14,18,.18);
  background:transparent;
  padding:10px 2px;
  transition:border-color .3s;
}
.form-field input:focus,.form-field select:focus,.form-field textarea:focus{
  outline:none;
  border-color:var(--blue);
}
.form-field textarea{resize:vertical;min-height:110px;}
.form-submit{margin-top:10px;}
.form-note{margin-top:16px;font-size:.85rem;color:var(--ink-faint);min-height:1.2em;}
.form-note.is-success{color:var(--blue);}
.form-note.is-error{color:#c0392b;}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width:900px){
  .service-row{grid-template-columns:50px 1fr;}
  .service-arrow{display:none;}
  .portfolio-item,.portfolio-item.is-reverse{grid-template-columns:1fr;}
  .portfolio-item.is-reverse .portfolio-media,.portfolio-item.is-reverse .portfolio-copy{order:initial;}
  .team-grid{grid-template-columns:1fr;}
  .service-detail{grid-template-columns:1fr;gap:14px;}
  .contact-layout{grid-template-columns:1fr;}
  .portfolio-grid{grid-template-columns:1fr;}
}

@media (max-width:768px){
  :root{
    --fs-hero:clamp(2.4rem,11vw,3.6rem);
    --fs-xl:clamp(1.9rem,9vw,2.8rem);
    --fs-md:clamp(1.1rem,5vw,1.4rem);
  }
  .section{padding:64px 0;}
  .problem-word{font-size:clamp(3rem,22vw,6rem);}
  .form-grid{grid-template-columns:1fr;}

  .question-inner{position:relative;flex-direction:column;padding:70px 0;gap:50px;text-align:left;}
  .question-group{position:static;padding:0;}

  .process-track{flex-direction:column;gap:50px;}
  .process-panel{width:100%;}

  .about-merge{flex-wrap:wrap;}

  .portfolio-media{aspect-ratio:1/1;}
}

@media (hover:none),(pointer:coarse){
  .cursor{display:none !important;}
}

/* ==========================================================================
   Portfolio (redesigned) — its own class names throughout (never reusing
   .page-hero/.portfolio-grid/.grid-item-*, which about/services/contact
   and the old portfolio markup still reference) so nothing here can ever
   bleed into another page. Continuous blue field like the homepage (see
   body.page-portfolio above), reuses .final-cta/.final-cta-btn verbatim
   for the closing section so it gets that component's existing reveal +
   fill-then-pop hover for free.
   ========================================================================== */
.portfolio-glow{
  position:absolute;
  border-radius:50%;
  filter:blur(110px);
  pointer-events:none;
  z-index:0;
}
.portfolio-glow--a{top:-140px;right:-120px;width:520px;height:520px;background:var(--lilac);opacity:.3;}
.portfolio-glow--b{top:640px;left:-180px;width:460px;height:460px;background:var(--orange);opacity:.18;}
.portfolio-glow--c{bottom:0;right:8%;width:420px;height:420px;background:var(--purple-2);opacity:.2;}

.portfolio-hero{
  position:relative;
  z-index:1;
  padding:clamp(150px,18vw,200px) var(--pad) var(--space-xl);
}
/* Centered composition — title stack, then the supporting description
   directly below it (was a left-column/right-aside split before).
   Portfolio's card grid below is untouched. */
.portfolio-hero-inner{
  /* Same stacking fix as .hero-inner — keeps this above .teem-thread. */
  position:relative;
  z-index:1;
  max-width:var(--container);
  margin:0 auto;
  display:flex;
  flex-direction:column;
  align-items:center;
  text-align:center;
  gap:var(--space-md);
}
.portfolio-hero-copy{max-width:760px;display:flex;flex-direction:column;align-items:center;}
/* .eyebrow defaults to --ink-faint (a dark tint) for use on light
   backgrounds — this page's hero sits on the solid blue field instead
   (see body.page-portfolio), so without this override it read as a
   near-black smudge instead of a legible label. */
.portfolio-hero-copy .eyebrow{color:var(--on-blue-faint);}
.portfolio-hero-title{
  font-size:var(--fs-hero);
  color:#fff;
  margin-top:var(--space-sm);
}
.portfolio-hero-title .is-orange{color:var(--orange);}
.portfolio-hero-aside{max-width:460px;margin:0 auto;}
.portfolio-hero-aside p{
  font-family:var(--font-head-alt);
  font-weight:500;
  font-size:1rem;
  line-height:1.6;
  color:rgba(255,255,255,.82);
}
@media (max-width:640px){
  .portfolio-hero-aside{max-width:100%;padding:0 var(--pad);}
}

.portfolio-feature{
  position:relative;
  z-index:1;
  padding:0 var(--pad) var(--space-xl);
}
.portfolio-feature-inner{max-width:var(--container);margin:0 auto;}
/* Category filter pills — centered row above the grid; clicking one
   toggles .portfolio-feature-card--hidden on every non-matching card
   (see initPortfolioFilter in animations.js), which fades/scales it out
   and removes it from the grid flow (display:none) once that
   transition finishes, so the remaining cards reflow cleanly. */
.portfolio-filter{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:10px;
  /* Clears the hero's thread asset (.teem-thread-asset bleeds bottom:-60px
     past the hero, into this section) so it doesn't render on top of the
     pills — scaled down at the same breakpoints the thread's own bottom
     offset shrinks at, below. */
  margin-top:90px;
  margin-bottom:var(--space-lg);
}
.portfolio-filter-btn{
  font-family:var(--font-head-alt);
  font-weight:700;
  font-size:.82rem;
  letter-spacing:.05em;
  text-transform:uppercase;
  color:rgba(255,255,255,.65);
  background:rgba(255,255,255,.06);
  border:1.5px solid rgba(255,255,255,.18);
  border-radius:100px;
  padding:10px 22px;
  cursor:pointer;
  transition:color .3s var(--ease-out),background-color .3s var(--ease-out),border-color .3s var(--ease-out);
}
.portfolio-filter-btn:hover{border-color:rgba(255,255,255,.4);color:#fff;}
.portfolio-filter-btn.is-active{
  background:var(--accent);
  border-color:var(--accent);
  color:var(--blue);
}
@media (max-width:900px){
  .portfolio-filter{margin-top:60px;}
}
@media (max-width:640px){
  .portfolio-filter{
    margin-top:50px;
    flex-wrap:nowrap;
    justify-content:flex-start;
    overflow-x:auto;
    -webkit-overflow-scrolling:touch;
    padding-bottom:4px;
  }
  .portfolio-filter::-webkit-scrollbar{display:none;}
  .portfolio-filter-btn{flex-shrink:0;}
}
.portfolio-feature-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:var(--space-md);
}
.portfolio-feature-card{
  position:relative;
  display:block;
  aspect-ratio:4/5;
  border-radius:26px;
  overflow:hidden;
  /* Same fix as .work-card: keep this on its own stable compositing
     layer at all times so the animated media's square corners never
     escape the rounded clip on hover. */
  isolation:isolate;
  will-change:transform;
  box-shadow:0 4px 20px rgba(14,14,18,.14);
  /* Combined with the existing hover transition (transform/box-shadow)
     — opacity added for the category filter's fade (see
     initPortfolioFilter in animations.js). Transform already covers
     both the hover lift and the filter's scale-out. */
  transition:transform .5s var(--ease-out),box-shadow .5s var(--ease-out),opacity .32s var(--ease-out);
}
.portfolio-feature-card:hover{
  transform:translateY(-8px);
  box-shadow:0 28px 52px rgba(14,14,18,.26);
}
.portfolio-feature-card--hidden{
  opacity:0;
  transform:scale(.92);
  pointer-events:none;
}
.portfolio-feature-media-inner{
  /* Exactly matches the card's own box — the server already crops
     coverImage to this exact 4:5 ratio (see lib/sanity.js), so there's
     nothing left for background-size:cover to crop further here. This
     used to be inset:-12% for a background parallax drift on scroll,
     but that meant a further ~12% got chopped off every edge on top of
     the server crop, however precisely a project's image was sized. */
  position:absolute;
  inset:0;
  background:linear-gradient(135deg,var(--card-a,var(--blue-2)),var(--card-b,var(--purple)));
  will-change:transform;
}
.portfolio-feature-tint{
  /* Deliberately translucent (never opaque) — this tints the artwork
     on hover, it doesn't hide it. Opacity itself is driven by the GSAP
     hover timeline in animations.js; this is just the resting state. */
  position:absolute;
  inset:0;
  background:linear-gradient(165deg,rgba(54,97,254,.4),rgba(157,109,255,.32));
  opacity:0;
  pointer-events:none;
}
.portfolio-feature-overlay{
  position:absolute;
  inset:auto 0 0 0;
  padding:24px 22px 20px;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:6px;
  color:#fff;
  background:linear-gradient(to top,rgba(10,14,38,.78) 0%,rgba(10,14,38,.4) 55%,transparent 100%);
  pointer-events:none;
}
.portfolio-feature-category{
  margin:0;
  font-family:var(--font-head-alt);
  font-weight:700;
  font-size:.64rem;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:rgba(255,255,255,.85);
}
.portfolio-feature-name{
  margin:0;
  font-family:var(--font-head);
  font-weight:800;
  font-size:1.25rem;
  text-transform:uppercase;
  line-height:1.15;
  color:#fff;
}
.portfolio-feature-desc{
  margin:0;
  max-width:34ch;
  font-family:var(--font-head-alt);
  font-size:.82rem;
  line-height:1.5;
  color:rgba(255,255,255,.85);
}
.portfolio-feature-arrow{
  position:absolute;
  right:22px;bottom:20px;
  width:38px;height:38px;
  border-radius:50%;
  border:1.5px solid rgba(255,255,255,.55);
  background:rgba(255,255,255,.1);
  display:flex;align-items:center;justify-content:center;
  font-size:1rem;
  color:#fff;
  pointer-events:none;
}
/* Image-only by default — category/title/description/arrow only ever
   appear via the GSAP hover timeline (pointer-capable devices) or the
   always-on touch fallback below. Hidden here (not just via JS) so
   there's no flash of visible text before animations.js runs. */
.portfolio-feature-category,
.portfolio-feature-name,
.portfolio-feature-desc,
.portfolio-feature-arrow{
  opacity:0;
  transform:translateY(10px);
}
@media (max-width:900px){
  .portfolio-feature-grid{grid-template-columns:1fr;}
}
@media (hover:none){
  /* No pointer to hover with — show a permanently subtle version of
     the reveal instead of something only a mouse could ever trigger. */
  .portfolio-feature-tint{opacity:.4;}
  .portfolio-feature-category,
  .portfolio-feature-name,
  .portfolio-feature-desc,
  .portfolio-feature-arrow{
    opacity:1;
    transform:none;
  }
}

/* ==========================================================================
   Case study (project detail) — own class names throughout, own page
   class (see body.page-case below) so nothing here can bleed into any
   other page. Same continuous-blue field + [data-case-line] pre-hide
   pattern as the homepage/portfolio heroes.
   ========================================================================== */
body.page-case{background:var(--blue);color:#fff;}
body.page-case main{position:relative;}
[data-case-line]{opacity:0;}

.case-breadcrumb{
  font-family:var(--font-head-alt);
  font-weight:700;
  font-size:.72rem;
  letter-spacing:.1em;
  text-transform:uppercase;
  color:rgba(255,255,255,.6);
}
.case-breadcrumb a{color:rgba(255,255,255,.6);transition:color .3s var(--ease-out);}
.case-breadcrumb a:hover{color:#fff;}
.case-category{
  display:inline-block;
  margin-top:10px;
  padding:7px 16px;
  border-radius:100px;
  background:rgba(255,173,0,.14);
  font-family:var(--font-head-alt);
  font-weight:800;
  font-size:.7rem;
  letter-spacing:.1em;
  text-transform:uppercase;
  color:var(--orange);
}

.case-hero{
  position:relative;
  z-index:1;
  padding:clamp(140px,16vw,190px) var(--pad) var(--space-xl);
}
.case-hero-inner{
  position:relative;
  z-index:1;
  max-width:var(--container);
  margin:0 auto;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:var(--space-xl);
  flex-wrap:wrap;
}
.case-hero-copy{max-width:600px;flex:1 1 460px;}
.case-hero-title{
  /* Same scale as every other page's H1 (var(--fs-hero)). */
  font-size:var(--fs-hero);
  color:#fff;
  margin-top:var(--space-sm);
}
.case-hero-title .is-orange{color:var(--orange);}
.case-hero-desc{
  margin-top:var(--space-md);
  max-width:44ch;
  font-family:var(--font-head-alt);
  font-weight:500;
  font-size:1.02rem;
  line-height:1.6;
  color:rgba(255,255,255,.82);
}
.case-hero-cta{
  position:relative;
  display:inline-flex;
  align-items:center;
  gap:8px;
  margin-top:var(--space-lg);
  background:#fff;
  color:var(--blue);
  font-family:var(--font-head-alt);
  font-weight:700;
  font-size:.85rem;
  padding:15px 26px;
  border-radius:100px;
  overflow:hidden;
  box-shadow:0 2px 14px rgba(14,14,18,.12);
  transition:box-shadow .3s var(--ease-out);
}
.case-hero-cta::before{
  content:'';
  position:absolute;
  inset:0;
  z-index:0;
  background:var(--accent);
  transform:scaleX(0);
  transform-origin:left;
  transition:transform .9s cubic-bezier(.25,.46,.45,.94);
}
.case-hero-cta:hover::before{transform:scaleX(1);}
.case-hero-cta:hover{box-shadow:0 10px 26px rgba(14,14,18,.18);}
.case-hero-cta span,.case-hero-cta-arrow{position:relative;z-index:1;}
.case-hero-cta,.case-hero-cta:hover{color:var(--blue);}
.case-hero-cta-arrow{display:inline-block;transition:transform .35s var(--ease-out);}
.case-hero-cta:hover .case-hero-cta-arrow{transform:translate(4px,-4px);}

/* Hero visual — an abstract "product mockup" built entirely from shapes
   and the Teemworks palette (no image asset available), rather than a
   flat placeholder block: a phone-proportioned white card with a
   balance-style gradient block and a few list rows, a smaller rotated
   accent card peeking out behind it for depth, and a soft glow. */
.case-hero-visual{
  position:relative;
  flex:1 1 340px;
  max-width:380px;
  aspect-ratio:3/4;
  margin:0 auto;
}
.case-hero-visual-glow{
  position:absolute;
  inset:-15%;
  background:radial-gradient(circle at 60% 30%,rgba(205,131,255,.45),transparent 60%);
  filter:blur(50px);
  z-index:0;
}
.case-hero-visual-float{
  position:absolute;
  top:8%;left:-10%;
  width:60%;height:46%;
  border-radius:24px;
  background:linear-gradient(135deg,var(--orange),var(--purple-2));
  transform:rotate(-9deg);
  box-shadow:0 20px 40px rgba(14,14,18,.25);
  z-index:1;
}
.case-hero-visual-card{
  position:relative;
  z-index:2;
  width:100%;height:100%;
  border-radius:28px;
  background:#fff;
  box-shadow:0 30px 60px rgba(14,14,18,.3);
  padding:22px;
  display:flex;
  flex-direction:column;
  gap:16px;
}
.case-hero-visual-top{display:flex;gap:6px;}
.case-hero-visual-top span{width:8px;height:8px;border-radius:50%;background:rgba(54,97,254,.18);}
.case-hero-visual-balance{
  flex:0 0 auto;
  border-radius:18px;
  padding:18px;
  display:flex;
  flex-direction:column;
  gap:10px;
  background:linear-gradient(135deg,var(--blue-2),var(--purple));
}
.case-hero-visual-balance span{display:block;border-radius:100px;background:rgba(255,255,255,.5);}
.case-hero-visual-balance-label{width:38%;height:7px;}
.case-hero-visual-balance-amount{width:62%;height:16px;background:rgba(255,255,255,.85) !important;}
.case-hero-visual-list{display:flex;flex-direction:column;gap:14px;}
.case-hero-visual-item{display:flex;align-items:center;gap:12px;}
.case-hero-visual-item .dot{
  flex-shrink:0;
  width:30px;height:30px;
  border-radius:50%;
  background:var(--surface);
}
.case-hero-visual-item .bar{
  flex:1;
  height:9px;
  border-radius:100px;
  background:rgba(14,14,18,.08);
}
.case-hero-visual-item .bar.short{max-width:60%;}
@media (max-width:1100px){
  .case-hero-inner{flex-direction:column;align-items:center;text-align:center;}
  .case-hero-copy{text-align:center;max-width:600px;}
  .case-hero-cta{align-self:center;}
  .case-hero-desc{margin-left:auto;margin-right:auto;}
  .case-hero-visual{max-width:280px;margin:var(--space-lg) auto 0;}
}

/* Story sections — 3 large numbered blocks, each its own scroll-reversed
   reveal (see initCaseStoryReveal). */
.case-story{
  position:relative;
  z-index:1;
  padding:var(--space-xl) var(--pad);
  border-top:1px solid rgba(255,255,255,.14);
}
.case-story-inner{max-width:var(--container);margin:0 auto;}
.case-story-row{
  display:flex;
  align-items:baseline;
  gap:18px;
  margin-bottom:var(--space-md);
}
.case-story-num{
  font-family:var(--font-head);
  font-weight:800;
  font-size:clamp(2.2rem,4vw,3.4rem);
  color:rgba(255,255,255,.22);
  line-height:1;
}
.case-story-eyebrow{
  margin:0;
  font-family:var(--font-head-alt);
  font-weight:700;
  font-size:.75rem;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:var(--orange-2);
}
.case-story-title{
  font-size:clamp(1.9rem,4vw,3.2rem);
  color:#fff;
  max-width:18ch;
  margin-bottom:var(--space-md);
}
.case-story-body{
  max-width:56ch;
  font-family:var(--font-head-alt);
  font-weight:500;
  font-size:1.02rem;
  line-height:1.65;
  color:rgba(255,255,255,.82);
}

.case-gallery{
  position:relative;
  z-index:1;
  padding:var(--space-xl) var(--pad);
  border-top:1px solid rgba(255,255,255,.14);
}
/* Everything — eyebrow, heading, arrows, and the carousel itself —
   lives inside this same max-width container as the rest of the page,
   so the gallery's left/right edges line up with the site's content
   grid instead of stretching into the section's full padded width. */
.case-gallery-inner{max-width:var(--container);margin:0 auto;}
.case-gallery-eyebrow{
  font-family:var(--font-head-alt);
  font-weight:700;
  font-size:.75rem;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:rgba(255,255,255,.6);
}
.case-gallery-heading{
  margin:8px 0 var(--space-lg);
  font-size:var(--fs-lg);
  color:#fff;
}
.case-gallery-heading .is-orange{color:var(--orange);}
.case-gallery-wrap{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:clamp(10px,2.8vw,32px);
}
.case-gallery-nav{
  flex-shrink:0;
  width:44px;
  height:44px;
  border-radius:50%;
  border:none;
  background:#fff;
  color:var(--blue);
  font-size:1.3rem;
  line-height:1;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  box-shadow:0 6px 18px rgba(14,14,18,.18);
  transition:transform .3s var(--ease-out);
}
.case-gallery-nav:hover{transform:scale(1.08);}
/* Tablet: still a comfortable, easy-to-hit target with real breathing
   room from the images — this is a distinct size step from mobile
   below, not a shrunk-down desktop button. */
@media (max-width:1023px){
  .case-gallery-nav{width:40px;height:40px;font-size:1.15rem;}
}
/* Mobile: small and clean so it doesn't compete with the center image
   for attention — swipe is the primary way to move here, the arrows
   are just a secondary affordance. */
@media (max-width:639px){
  .case-gallery-nav{width:32px;height:32px;font-size:1rem;box-shadow:0 4px 12px rgba(14,14,18,.16);}
}

/* Discrete coverflow — no continuous drag/autoplay. Every
   .case-gallery-item carries a data-role (-3..3, set by
   initCaseGalleryCarousel) which drives its position/scale/rotation/
   opacity. How many roles besides 0 actually render visible (desktop:
   ±2, tablet/mobile: ±1) is decided in JS (maxVisibleRank), matched to
   the breakpoints below — anything beyond that visible count, plus
   roles ±3, are an invisible recycling buffer (see the JS for how
   that's used to keep the loop seamless).

   Item size and the stage's shadow-clipping buffer are both driven by
   CSS custom properties, redeclared per breakpoint below, so JS never
   needs to know actual pixel sizes — it always reads them live off the
   rendered element. This is a real 3-tier redesign, not one clamp()
   stretched across every width: tablet and mobile each get their own
   proportions, their own (lighter) glow, and mobile's item is sized
   deliberately small relative to its stage so the neighbouring images
   read as partial peeks at the edge, not full small cards. */
.case-gallery-stage{
  --gallery-item-size:clamp(230px,19vw,360px);
  --gallery-shadow-buffer:180px;
  position:relative;
  flex:1;
  min-width:0;
  height:calc(var(--gallery-item-size) + var(--gallery-shadow-buffer));
  overflow:hidden;
}
@media (max-width:1023px){
  .case-gallery-stage{
    --gallery-item-size:clamp(190px,28vw,280px);
    --gallery-shadow-buffer:120px;
  }
}
@media (max-width:639px){
  .case-gallery-stage{
    --gallery-item-size:clamp(150px,58vw,225px);
    --gallery-shadow-buffer:80px;
  }
}
.case-gallery-item{
  position:absolute;
  top:50%;
  left:50%;
  width:var(--gallery-item-size);
  aspect-ratio:1/1;
  margin-top:calc(var(--gallery-item-size) / -2);
  margin-left:calc(var(--gallery-item-size) / -2);
  border-radius:24px;
  overflow:hidden;
  will-change:transform;
}
.case-gallery-item img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  pointer-events:none;
  -webkit-user-drag:none;
}
/* The center slot's own resting emphasis — separate from the hover
   ring below, which is an additional interactive effect on top of
   this. The glow is deliberately lighter at smaller sizes (not just
   the same shadow shrunk down) — a heavy 24px/54px blur reads as
   disproportionate and muddy on a 150px mobile card. */
.case-gallery-item.is-center{
  cursor:pointer;
  box-shadow:0 0 0 2px rgba(255,255,255,.6),0 24px 54px rgba(10,14,38,.4),0 0 34px rgba(255,173,0,.35);
}
@media (max-width:1023px){
  .case-gallery-item.is-center{
    box-shadow:0 0 0 2px rgba(255,255,255,.6),0 16px 36px rgba(10,14,38,.4),0 0 22px rgba(255,173,0,.32);
  }
}
@media (max-width:639px){
  .case-gallery-item.is-center{
    box-shadow:0 0 0 1.5px rgba(255,255,255,.6),0 10px 22px rgba(10,14,38,.38),0 0 14px rgba(255,173,0,.3);
  }
}
/* The "charge up" ring: a single shared SVG overlay repositioned onto
   the center item when hover starts (see initCaseGalleryCarousel). Its
   rect's stroke-dashoffset is animated from fully-hidden to 0 to "draw"
   the border; only on that tween's real completion does the center
   image enlarge further — an early mouseleave reverses the draw
   instead. */
.case-gallery-ring{
  position:absolute;
  top:0;left:0;
  pointer-events:none;
  opacity:0;
  overflow:visible;
}
.case-gallery-ring-rect{
  stroke:var(--accent);
  stroke-width:3;
  stroke-linecap:round;
}
.case-gallery-dots{
  display:flex;
  justify-content:center;
  gap:8px;
  margin-top:var(--space-md);
}
.case-gallery-dot{
  width:8px;
  height:8px;
  border-radius:50%;
  border:none;
  padding:0;
  background:rgba(255,255,255,.35);
  cursor:pointer;
  transition:background-color .3s var(--ease-out),width .3s var(--ease-out);
}
.case-gallery-dot.is-active{
  background:#fff;
  width:22px;
  border-radius:100px;
}
.case-gallery-hint{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  margin-top:14px;
  font-family:var(--font-head-alt);
  font-size:.78rem;
  color:rgba(255,255,255,.45);
}
.case-gallery-hint-icon{flex-shrink:0;}

.lightbox{
  position:fixed;
  inset:0;
  z-index:9500;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:5vw;
  background:rgba(10,14,38,.92);
  opacity:0;
  visibility:hidden;
  transition:opacity .35s var(--ease-out),visibility .35s var(--ease-out);
}
.lightbox.is-active{opacity:1;visibility:visible;}
.lightbox-img{
  max-width:100%;
  max-height:100%;
  border-radius:16px;
  object-fit:contain;
  transform:scale(.94);
  transition:transform .35s var(--ease-out);
}
.lightbox.is-active .lightbox-img{transform:scale(1);}
.lightbox-close{
  position:absolute;
  top:24px;right:24px;
  width:44px;height:44px;
  border-radius:50%;
  border:1.5px solid rgba(255,255,255,.3);
  background:rgba(255,255,255,.08);
  color:#fff;
  font-size:1.5rem;
  line-height:1;
  display:flex;align-items:center;justify-content:center;
  cursor:pointer;
  transition:background-color .3s var(--ease-out),border-color .3s var(--ease-out);
}
.lightbox-close:hover{background:rgba(255,255,255,.18);border-color:rgba(255,255,255,.5);}
.lightbox-prev,.lightbox-next{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  width:48px;height:48px;
  border-radius:50%;
  border:1.5px solid rgba(255,255,255,.3);
  background:rgba(255,255,255,.08);
  color:#fff;
  font-size:1.6rem;
  line-height:1;
  display:flex;align-items:center;justify-content:center;
  cursor:pointer;
  transition:background-color .3s var(--ease-out),border-color .3s var(--ease-out);
}
.lightbox-prev:hover,.lightbox-next:hover{background:rgba(255,255,255,.18);border-color:rgba(255,255,255,.5);}
.lightbox-prev{left:24px;}
.lightbox-next{right:24px;}
@media (max-width:700px){
  .lightbox-prev,.lightbox-next{width:40px;height:40px;font-size:1.3rem;}
  .lightbox-prev{left:10px;}
  .lightbox-next{right:10px;}
}

/* Supporting content: insight panel, process cards, metrics row. */
.case-insight{position:relative;z-index:1;padding:var(--space-lg) var(--pad) 0;}
.case-insight-inner{max-width:var(--container);margin:0 auto;}
.case-insight-panel{
  background:var(--surface);
  border-radius:28px;
  padding:clamp(32px,5vw,56px);
}
.case-insight-eyebrow{
  font-family:var(--font-head-alt);
  font-weight:700;
  font-size:.75rem;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:var(--ink-faint);
  margin-bottom:var(--space-md);
}
.case-insight-stats{
  display:flex;
  flex-wrap:wrap;
  gap:var(--space-lg) var(--space-xl);
}
.case-insight-stat{flex:1 1 220px;}
.case-insight-num{
  display:block;
  font-family:var(--font-head);
  font-weight:800;
  font-size:clamp(2.6rem,6vw,4.4rem);
  color:var(--blue);
  line-height:1;
  margin-bottom:10px;
}
.case-insight-label{
  display:block;
  font-family:var(--font-head-alt);
  font-weight:500;
  font-size:1rem;
  color:var(--ink-soft);
  max-width:26ch;
}

.case-process{position:relative;z-index:1;padding:var(--space-xl) var(--pad);}
.case-process-inner{max-width:var(--container);margin:0 auto;}
.case-process-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:var(--space-sm);
}
.case-process-card{
  position:relative;
  border-radius:20px;
  overflow:hidden;
  background:rgba(255,255,255,.06);
  padding:0 0 var(--space-md);
  transition:transform .5s var(--ease-out),background-color .4s var(--ease-out);
}
.case-process-card:hover{
  transform:translateY(-6px);
  background:rgba(255,255,255,.1);
}
.case-process-card-cap{
  height:88px;
  background:linear-gradient(135deg,var(--cap-a,var(--blue-2)),var(--cap-b,var(--purple)));
}
.case-process-index{
  display:block;
  margin:var(--space-sm) var(--space-sm) 0;
  font-family:var(--font-head-alt);
  font-weight:700;
  font-size:.72rem;
  color:rgba(255,255,255,.5);
}
.case-process-card h3{
  margin:8px var(--space-sm) 6px;
  font-family:var(--font-head);
  font-weight:800;
  font-size:1.15rem;
  text-transform:uppercase;
  color:#fff;
}
.case-process-card p{
  margin:0 var(--space-sm);
  font-family:var(--font-head-alt);
  font-size:.85rem;
  line-height:1.55;
  color:rgba(255,255,255,.72);
}
@media (max-width:900px){
  .case-process-grid{grid-template-columns:1fr 1fr;}
}
@media (max-width:600px){
  .case-process-grid{grid-template-columns:1fr;}
}

.case-metrics{position:relative;z-index:1;padding:var(--space-xl) var(--pad);text-align:center;}
.case-metrics-inner{max-width:var(--container);margin:0 auto;}
.case-metrics-row{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:var(--space-xl);
  border-top:1px solid rgba(255,255,255,.14);
  border-bottom:1px solid rgba(255,255,255,.14);
  padding:var(--space-lg) 0;
}
.case-metric{display:flex;flex-direction:column;align-items:center;gap:8px;}
.case-metric-num{
  font-family:var(--font-head);
  font-weight:800;
  font-size:clamp(2.2rem,5vw,3.4rem);
  color:var(--orange);
  line-height:1;
}
.case-metric-label{
  font-family:var(--font-head-alt);
  font-weight:600;
  font-size:.85rem;
  color:rgba(255,255,255,.75);
  max-width:16ch;
}
.case-metrics-statement{
  max-width:52ch;
  margin:var(--space-lg) auto 0;
  font-family:var(--font-head);
  font-weight:800;
  font-size:clamp(1.4rem,2.6vw,2rem);
  text-transform:uppercase;
  line-height:1.25;
  color:#fff;
}

/* Closing CTA — a proper section-ending heading, same scale/weight as
   .final-cta-heading elsewhere on the site. */
.case-end{
  position:relative;
  z-index:1;
  padding:var(--space-xl) var(--pad) calc(var(--space-xl) + 90px);
  text-align:center;
}
.case-end-inner{
  max-width:var(--container);
  margin:0 auto;
}
.case-end-heading{
  font-size:var(--fs-xl);
  color:#fff;
  white-space:nowrap;
}
/* The button itself reuses .final-cta-btn/.final-cta-arrow verbatim
   (see project-detail.ejs) instead of its own class — it used to have
   a separate, smaller, non-animated set of rules here that had drifted
   out of sync with every other CTA on the site (wrong size, and never
   wired into initLoadThenPopHover's load-in animation). Reusing the
   shared classes means it can never drift again. */

/* ==========================================================================
   About (redesigned) — own class names throughout, own page class (see
   body.page-about below). Editorial and spacious deliberately: no cards,
   no boxes, generous whitespace — reuses .case-breadcrumb verbatim (it
   was always a generic small-caps label, not case-study-specific) and
   the reversibleCaseReveal() JS helper for every below-the-fold section.
   ========================================================================== */
body.page-about{background:var(--blue);color:#fff;}
body.page-about main{position:relative;}
[data-about-line]{opacity:0;}

.about-hero{
  position:relative;
  z-index:1;
  padding:clamp(140px,16vw,190px) var(--pad) var(--space-xl);
}
.about-hero-inner{
  max-width:var(--container);
  margin:0 auto;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:var(--space-xl);
  flex-wrap:wrap;
}
.about-hero-copy{flex:1 1 460px;max-width:720px;}
.about-hero-title{
  /* Same scale as every other page's H1 (var(--fs-hero)). */
  font-size:var(--fs-hero);
  color:#fff;
  margin-top:var(--space-sm);
}
.about-hero-title .is-lilac{color:var(--lilac-2);}
.about-hero-title .is-orange{color:var(--orange);}
.about-hero-desc{
  margin-top:var(--space-md);
  max-width:42ch;
  font-family:var(--font-head-alt);
  font-weight:500;
  font-size:1.02rem;
  line-height:1.6;
  color:rgba(255,255,255,.82);
}

/* Hero visual — purely abstract Teemworks-owned shapes (no imagery of
   any kind): an outlined ring, a soft blurred blob, a solid dot and a
   short dash, layered for depth and given a light independent parallax
   drift each in initAboutHeroReveal so they read as alive, not static. */
.about-hero-visual{
  position:relative;
  flex:1 1 340px;
  max-width:420px;
  aspect-ratio:1/1;
  margin:0 auto;
}
.about-shape{position:absolute;border-radius:50%;}
.about-shape--ring{
  top:6%;right:4%;
  width:62%;height:62%;
  border:3px solid rgba(255,255,255,.5);
}
.about-shape--blob{
  bottom:4%;left:0;
  width:56%;height:56%;
  background:radial-gradient(circle at 35% 30%,var(--lilac),var(--purple) 70%);
  filter:blur(2px);
  opacity:.9;
}
.about-shape--dot{
  top:34%;left:12%;
  width:15%;height:15%;
  background:var(--orange);
}
.about-shape--dash{
  bottom:14%;right:10%;
  width:30%;height:10px;
  border-radius:100px;
  background:rgba(255,255,255,.65);
  transform:rotate(-16deg);
}
@media (max-width:900px){
  .about-hero-inner{flex-direction:column;align-items:flex-start;}
  .about-hero-visual{max-width:280px;margin:var(--space-lg) 0 0;}
}

/* Who we are — deliberately no card/box, just spacious editorial text
   directly on the blue field. Now the page's first section (the old
   .about-hero above it was removed) and sized to fill the viewport like
   a proper opening screen — min-height:100vh + centering, rather than
   top/bottom padding sized to the content, which left this noticeably
   shorter than one screen and let "What We Believe" peek in at the
   bottom of the very first view. */
.about-who{
  position:relative;
  z-index:1;
  min-height:100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:var(--space-lg) var(--pad);
}
.about-who-inner{position:relative;z-index:1;max-width:820px;margin:0 auto;text-align:center;}
.about-who-eyebrow{
  font-family:var(--font-head-alt);
  font-weight:700;
  font-size:.75rem;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:var(--orange-2);
  margin-bottom:var(--space-sm);
}
/* var(--fs-hero), not var(--fs-xl) — this is the page's actual H1 now
   (promoted from H3 when the old separate hero was removed), so it
   should match every other page's H1 size, not the smaller H2 scale
   it was styled at back when it was still a mid-page section title. */
.about-who-title{font-size:var(--fs-hero);color:#fff;margin-bottom:var(--space-md);}
.about-who-body{
  font-family:var(--font-head-alt);
  font-weight:500;
  font-size:1.15rem;
  line-height:1.65;
  color:rgba(255,255,255,.82);
  max-width:56ch;
  margin:0 auto;
}

/* What we believe — 3 principles in a row, separated by a hairline
   rather than any card background, with simple stroke-only icons. */
.about-principles{position:relative;z-index:1;padding:var(--space-xl) var(--pad);}
.about-principles-inner{max-width:var(--container);margin:0 auto;}
.about-principles-eyebrow{
  font-family:var(--font-head-alt);
  font-weight:700;
  font-size:.75rem;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:var(--orange-2);
  margin-bottom:var(--space-lg);
  text-align:center;
}
.about-principles-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:var(--space-lg);
}
.about-principle{padding-left:var(--space-md);border-left:1px solid rgba(255,255,255,.16);}
.about-principle:first-child{padding-left:0;border-left:none;}
.about-principle-icon{
  display:flex;
  width:44px;height:44px;
  align-items:center;
  justify-content:center;
  color:var(--orange);
  margin-bottom:var(--space-sm);
}
.about-principle-num{
  display:block;
  font-family:var(--font-head-alt);
  font-weight:700;
  font-size:.75rem;
  color:rgba(255,255,255,.5);
  margin-bottom:8px;
}
.about-principle-title{
  font-family:var(--font-head);
  font-weight:800;
  font-size:1.5rem;
  text-transform:uppercase;
  color:#fff;
  margin-bottom:10px;
}
.about-principle-body{
  font-family:var(--font-head-alt);
  font-size:.95rem;
  line-height:1.6;
  color:rgba(255,255,255,.75);
  max-width:32ch;
}
@media (max-width:900px){
  .about-principles-grid{grid-template-columns:1fr;gap:var(--space-lg);}
  .about-principle{padding-left:0;border-left:none;padding-top:var(--space-md);border-top:1px solid rgba(255,255,255,.16);}
  .about-principle:first-child{padding-top:0;border-top:none;}
}

/* How we think — one horizontal flow, plain text steps connected by
   arrow glyphs, never boxed. */
.about-process{position:relative;z-index:1;padding:var(--space-xl) var(--pad) calc(var(--space-xl) + 90px);}
.about-process-inner{max-width:var(--container);margin:0 auto;text-align:center;}
.about-process-eyebrow{
  font-family:var(--font-head-alt);
  font-weight:700;
  font-size:.75rem;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:var(--orange-2);
  margin-bottom:var(--space-lg);
}
.about-process-flow{
  display:flex;
  align-items:center;
  justify-content:center;
  flex-wrap:wrap;
  gap:var(--space-sm);
}
.about-process-step{display:flex;flex-direction:column;align-items:center;gap:6px;}
.about-process-num{
  font-family:var(--font-head-alt);
  font-weight:700;
  font-size:.72rem;
  color:rgba(255,255,255,.5);
}
.about-process-label{
  font-family:var(--font-head);
  font-weight:800;
  font-size:1.15rem;
  text-transform:uppercase;
  color:#fff;
}
.about-process-arrow{
  font-size:1.2rem;
  color:rgba(255,255,255,.4);
  padding:0 var(--space-xs);
}
@media (max-width:700px){
  .about-process-flow{flex-direction:column;}
  .about-process-arrow{transform:rotate(90deg);padding:2px 0;}
}

/* Bottom CTA — compact, matches .case-end's restraint but with its own
   extra heading line. */
.about-end{position:relative;z-index:1;padding:var(--space-lg) var(--pad) calc(var(--space-lg) + 90px);text-align:center;}
/* .about-end-copy groups the label+heading so they stay stacked
   together inside .final-cta-card-copy (see the shared "big feature
   card" rules) alongside the button. */
.about-end-inner{max-width:var(--container);margin:0 auto;}
.about-end-copy{display:flex;flex-direction:column;gap:10px;}
.about-end-label{
  font-family:var(--font-head-alt);
  font-weight:600;
  font-size:.95rem;
  color:rgba(255,255,255,.72);
}
/* Same size as .final-cta-heading/.case-end-heading/.services-end-heading
   — every closing-CTA heading on the site shares var(--fs-xl). */
.about-end-heading{
  font-size:var(--fs-xl);
  color:#fff;
  white-space:nowrap;
}
/* The button itself reuses .final-cta-btn/.final-cta-arrow verbatim
   (see about.html) instead of its own class — same drift/missing-
   animation issue as the old .case-end-cta (see style.css's case-end
   section comment). */

/* ==========================================================================
   Contact (redesigned) — own class names, own page class (see
   body.page-contact below). No form: this is a single spacious "here's how
   to reach us" page — hero, one info block (email + tagline), one CTA, and
   a large abstract contour shape on the right that spans behind all of it.
   Reuses .case-breadcrumb and the reversibleCaseReveal() JS helper, same
   as About/Portfolio/Case-study.
   ========================================================================== */
body.page-contact{background:var(--blue);color:#fff;}
body.page-contact main{position:relative;overflow:hidden;}
[data-contact-line]{opacity:0;}

/* Large abstract line/contour shape — a single SVG, stroke-only plus one
   soft filled blob for depth, deliberately not tied to any one section:
   it sits behind the hero, info block and CTA alike and drifts gently as
   the page scrolls (see initContactVisualReveal). No stock imagery of any
   kind, per spec — everything here is drawn, not photographed. */
.contact-visual{
  position:absolute;
  top:0;
  right:calc(var(--edge-inset) * -0.4);
  width:min(52vw,760px);
  height:130%;
  pointer-events:none;
  z-index:0;
  opacity:.9;
}
.contact-visual svg{width:100%;height:100%;}
.contact-visual-blob{fill:url(#contactVisualGradient);opacity:.35;}
.contact-visual-contour{fill:none;stroke:rgba(255,255,255,.4);stroke-width:2;}
.contact-visual-contour-inner{fill:none;stroke:var(--orange);stroke-width:2;opacity:.55;}
@media (max-width:900px){
  .contact-visual{display:none;}
}

/* Fits the whole page inside one viewport on desktop (no scroll): hero +
   info block share this single flex column, min-height:100dvh (falls back
   to 100vh where dvh isn't supported), centred vertically between the
   fixed header (logo/CTA, ~64px) and the fixed dock (~88px) via its own
   padding — .contact-hero/.contact-info-section below no longer carry
   their own big top/bottom padding, since this wrapper owns the vertical
   rhythm now. Mobile explicitly reverts to normal auto-height scrolling
   (see media query) since content there genuinely needs more room than
   one small screen provides. */
.contact-viewport{
  min-height:100vh;
  min-height:100dvh;
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:clamp(20px,3.6vw,48px);
  padding-top:104px;
  padding-bottom:116px;
}
@media (max-width:900px){
  .contact-viewport{
    min-height:auto;
    justify-content:flex-start;
    gap:var(--space-lg);
    padding-top:104px;
    padding-bottom:140px;
  }
}

.contact-hero{
  position:relative;
  z-index:1;
  padding:0 var(--pad);
}
.contact-hero-inner{
  position:relative;
  z-index:1;
  max-width:var(--container);
  margin:0 auto;
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  gap:var(--space-xl);
  flex-wrap:wrap;
}
.contact-hero-copy{flex:1 1 380px;max-width:560px;}
.contact-hero-title{font-size:var(--fs-hero);color:#fff;}
.contact-hero-title .is-lilac{color:var(--lilac-2);}
.contact-hero-aside{
  flex:1 1 320px;
  max-width:400px;
}
.contact-hero-aside p{
  font-family:var(--font-head-alt);
  font-weight:500;
  font-size:1.1rem;
  line-height:1.6;
  color:rgba(255,255,255,.82);
}
@media (max-width:900px){
  .contact-hero-inner{flex-direction:column;align-items:flex-start;}
}

.contact-info-section{
  position:relative;
  z-index:1;
  padding:0 var(--pad);
}
.contact-info-inner{max-width:var(--container);margin:0 auto;}
.contact-info-label{
  font-family:var(--font-head-alt);
  font-weight:700;
  font-size:.75rem;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:var(--orange-2);
  margin-bottom:var(--space-sm);
}
.contact-email{
  display:block;
  font-family:var(--font-head);
  font-weight:800;
  font-size:clamp(1.8rem,4.6vw,3.6rem);
  color:var(--orange);
  text-transform:none;
  letter-spacing:-0.01em;
  line-height:1.05;
  word-break:break-word;
  transition:opacity .3s var(--ease-out);
}
.contact-email:hover{opacity:.82;}
.contact-tagline{
  margin-top:var(--space-sm);
  font-family:var(--font-head-alt);
  font-weight:600;
  font-size:.95rem;
  letter-spacing:.02em;
  color:rgba(255,255,255,.65);
}
.contact-cta{
  position:relative;
  display:inline-flex;
  align-items:center;
  gap:8px;
  margin-top:var(--space-md);
  background:#fff;
  color:var(--blue);
  font-family:var(--font-head-alt);
  font-weight:700;
  font-size:.85rem;
  padding:15px 26px;
  border-radius:100px;
  overflow:hidden;
  box-shadow:0 2px 14px rgba(14,14,18,.12);
  transition:box-shadow .3s var(--ease-out);
}
.contact-cta::before{
  content:'';
  position:absolute;
  inset:0;
  z-index:0;
  background:var(--accent);
  transform:scaleX(0);
  transform-origin:left;
  transition:transform .9s cubic-bezier(.25,.46,.45,.94);
}
.contact-cta:hover::before{transform:scaleX(1);}
.contact-cta:hover{box-shadow:0 10px 26px rgba(14,14,18,.18);}
.contact-cta span,.contact-cta-arrow{position:relative;z-index:1;}
.contact-cta,.contact-cta:hover{color:var(--blue);}
.contact-cta-arrow{display:inline-block;transition:transform .35s var(--ease-out);}
.contact-cta:hover .contact-cta-arrow{transform:translate(4px,-4px);}

/* ==========================================================================
   Services (redesigned) — own class names, own page class (see
   body.page-services below). Editorial "one chapter at a time" scroll
   page: oversized number + title/intro on the left, subpoints on the
   right, thin hairline separators between chapters, no card grid
   anywhere. Reuses .case-breadcrumb and the reversibleCaseReveal() JS
   helper, same as About/Portfolio/Case-study/Contact.
   ========================================================================== */
body.page-services{background:var(--blue);color:#fff;}
body.page-services main{position:relative;overflow:hidden;}
[data-svc-line]{opacity:0;}

/* min-height:100vh + flex centering (same pattern as .about-who) so this
   reads as a complete first screen — the floor guarantees it's never
   shorter than one viewport; the trimmed sizes/gaps below keep it from
   growing taller than one on typical desktop/laptop heights too. */
.services-hero{
  position:relative;
  z-index:1;
  min-height:100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:var(--space-lg) var(--pad);
}
/* Centered composition — title stack, description, then the
   decorative shapes below (smaller, still centred) instead of a
   left-column/right-visual split. Everything below the hero is
   untouched. */
.services-hero-inner{
  /* Same stacking fix as .hero-inner — keeps this above .teem-thread
     regardless of path shape. */
  position:relative;
  z-index:1;
  max-width:var(--container);
  margin:0 auto;
  display:flex;
  flex-direction:column;
  align-items:center;
  text-align:center;
  gap:var(--space-sm);
}
.services-hero-copy{max-width:820px;display:flex;flex-direction:column;align-items:center;}
/* Smaller ceiling than var(--fs-hero) (every other page's H1) and the
   3 CMS phrases wrap like words (see .services-hero-title .mask below)
   instead of 3 forced lines — both trim height so the hero fits ~100vh. */
.services-hero-title{font-size:clamp(2rem,5.2vw,4.2rem);color:#fff;margin-top:var(--space-sm);}
.services-hero-title .mask{display:inline-block;vertical-align:top;}
.services-hero-title .reveal-line{padding:0 .05em;}
.services-hero-title .is-orange{color:var(--orange);}
.services-hero-desc{
  margin-top:var(--space-sm);
  max-width:40ch;
  font-family:var(--font-head-alt);
  font-weight:500;
  font-size:1.02rem;
  line-height:1.6;
  color:rgba(255,255,255,.82);
}

/* Hero visual — abstract, Teemworks-owned shapes evoking "system/
   structure" (a rotated outlined square, a soft gradient blob, a solid
   dot, a small cross mark) rather than reusing About's ring+blob
   composition verbatim. Smaller than before (160px vs 220px) so it no
   longer pushes the hero past one viewport. */
.services-hero-visual{
  position:relative;
  width:100%;
  max-width:160px;
  aspect-ratio:1/1;
  margin:var(--space-sm) auto 0;
}
.services-shape{position:absolute;}
.services-shape--square{
  top:8%;right:10%;
  width:56%;height:56%;
  border:3px solid rgba(255,255,255,.5);
  border-radius:28px;
  transform:rotate(10deg);
}
.services-shape--blob{
  bottom:6%;left:2%;
  width:52%;height:52%;
  border-radius:50%;
  background:radial-gradient(circle at 35% 30%,var(--orange-2),var(--purple) 75%);
  filter:blur(2px);
  opacity:.85;
}
.services-shape--dot{
  bottom:16%;right:8%;
  width:14%;height:14%;
  border-radius:50%;
  background:var(--orange);
}
.services-shape--plus{
  top:38%;left:14%;
  width:34px;height:34px;
}
.services-shape--plus::before,
.services-shape--plus::after{
  content:'';
  position:absolute;
  background:rgba(255,255,255,.7);
  border-radius:2px;
}
.services-shape--plus::before{top:50%;left:0;width:100%;height:3px;transform:translateY(-50%);}
.services-shape--plus::after{left:50%;top:0;height:100%;width:3px;transform:translateX(-50%);}
@media (max-width:768px){
  /* Mobile: don't force strict 100vh if it hurts readability — prioritize
     clean stacking/spacing instead, same relaxation as the homepage hero. */
  .services-hero{min-height:auto;padding:110px var(--pad) var(--space-lg);}
}
@media (max-height:800px) and (min-width:769px){
  .services-hero-inner{gap:6px;}
  .services-hero-visual{max-width:120px;margin-top:6px;}
}


.service-chapters{position:relative;z-index:1;}
.service-chapter{
  padding:clamp(64px,9vw,110px) var(--pad);
  border-top:1px solid rgba(255,255,255,.14);
}
.service-chapter:first-child{border-top:none;}
/* Reworked from a 3-column CSS Grid (minmax/1fr) to a plain 2-item
   flexbox — a genuinely different, simpler layout mechanism, not just
   a tweak of the old one. Each side is an explicit 50% (flex-basis),
   not a fractional unit competing for leftover space, so there's no
   scenario where the right side's track can end up unexpectedly
   narrow/collapsed depending on the left side's content. */
.service-chapter-inner{
  max-width:var(--container);
  margin:0 auto;
  display:flex;
  align-items:center;
  gap:var(--space-xl);
}
.service-chapter-left{
  display:flex;
  align-items:flex-start;
  gap:var(--space-xl);
  flex:1 1 56%;
  min-width:0;
}
.service-chapter-num{
  font-family:var(--font-head);
  font-weight:800;
  font-size:clamp(3.4rem,7vw,6rem);
  line-height:1;
  color:rgba(255,255,255,.16);
  flex-shrink:0;
}
.service-chapter-main{min-width:0;}
/* Same scale as every other major-section H2 (var(--fs-xl)) — see the
   note on .work-eyebrow-label. */
.service-chapter-title{font-size:var(--fs-xl);color:#FFAD00;}
.service-chapter-intro{
  margin-top:var(--space-sm);
  max-width:38ch;
  font-family:var(--font-head-alt);
  font-weight:500;
  font-size:1rem;
  line-height:1.6;
  color:rgba(255,255,255,.78);
}
.service-chapter-points{display:flex;flex-direction:column;gap:var(--space-md);margin-top:var(--space-md);}
/* The right-side image. Reworked from an <img> child to a plain CSS
   background-image on this div itself — a different rendering path
   entirely from the <img>-based version that kept not showing up (no
   lazy-loading heuristics, no decode-timing/layout race of any kind
   to depend on; the background paints as soon as this box has a
   size, same as .service-chapter-media--empty's always-visible dashed
   box already did). JS (initServiceChapterPoints) swaps
   style.backgroundImage on click instead of an img's src. */
.service-chapter-media{
  position:relative;
  flex:1 1 44%;
  max-width:440px;
  min-width:0;
  /* Vertically centred against the whole left column (num+title+intro
     +points) via .service-chapter-inner's align-items:center. No side
     margins — the progress dock now lives on the left (under the big
     number), so the right side is free and this sits flush with the
     container's own right edge. */
  margin-left:0;
  border-radius:24px;
  overflow:hidden;
  aspect-ratio:3/4;
  background-color:rgba(255,255,255,.06);
  background-size:cover;
  background-position:center;
  background-repeat:no-repeat;
  /* Quick crossfade when a different point is selected — toggles
     .is-swapping to fade out, swaps the background-image once
     hidden, then fades back in. */
  transition:opacity .25s var(--ease-out);
}
.service-chapter-media.is-swapping{opacity:0;}
/* Honest "nothing uploaded yet" state — a dashed outline, a small
   icon and a one-line instruction, instead of silently reusing an
   unrelated image (an earlier "shared placeholder" file turned out to
   actually be an orange logo-sticker graphic, not a neutral photo,
   and was showing as-is wherever no real chapter/point image existed
   — fixed by not falling back to any image file at all in that case). */
.service-chapter-media--empty{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:14px;
  /* Deliberately more visible than a subtle hint (was 1px/.2 border,
     .03 background, a small icon+caption) — this box should be
     unmistakable at a glance, never something easy to overlook. Only
     ever shown now if there's truly no project photo at all to fall
     back to first (see firstChapterImageUrl/pointImageUrl in
     services.ejs). */
  border:2px dashed rgba(255,255,255,.3);
  background:rgba(255,255,255,.07);
  color:rgba(255,255,255,.5);
  text-align:center;
  padding:var(--space-lg);
}
.service-chapter-media--empty svg{width:40px;height:40px;}
.service-chapter-media--empty p{
  margin:0;
  max-width:24ch;
  font-family:var(--font-head-alt);
  font-weight:600;
  font-size:.95rem;
  line-height:1.5;
  color:rgba(255,255,255,.65);
}
/* Now a <button>, not a plain div — each point is individually
   selectable; picking one swaps the chapter's image (right side) to
   that point's own example, while every point's title/description
   stays visible on the left exactly as before (nothing there changes
   on click). */
.service-point{
  display:flex;
  align-items:flex-start;
  gap:16px;
  width:100%;
  text-align:left;
  background:none;
  border:none;
  padding:0;
  cursor:pointer;
}
.service-point-icon{
  flex-shrink:0;
  display:flex;
  width:34px;height:34px;
  align-items:center;
  justify-content:center;
  color:rgba(255,255,255,.35);
  transition:color .3s var(--ease-out);
}
.service-point-icon img{display:block;width:30px;height:30px;object-fit:contain;}
.service-point h3{
  font-family:var(--font-head);
  font-weight:800;
  font-size:1.05rem;
  color:rgba(255,255,255,.65);
  margin-bottom:4px;
  transition:color .3s var(--ease-out);
}
.service-point p{
  font-family:var(--font-head-alt);
  font-size:.88rem;
  line-height:1.5;
  color:rgba(255,255,255,.72);
  /* No max-width now (was 34ch) — paired with the shortened copy, each
     description sits on close to one line instead of wrapping early. */
}
.service-point:hover .service-point-icon,
.service-point:hover h3{color:#fff;}
.service-point.is-active .service-point-icon{color:var(--orange);}
.service-point.is-active h3{color:#fff;}
@media (max-width:900px){
  .service-chapter-inner{flex-direction:column;gap:var(--space-md);}
  .service-chapter-left{flex-direction:column;gap:var(--space-sm);width:100%;}
  .service-chapter-media{width:100%;max-width:none;margin:0;}
  .service-chapter-num{font-size:2.6rem;}
}

.services-end{position:relative;z-index:1;padding:var(--space-lg) var(--pad) calc(var(--space-lg) + 90px);text-align:center;}
.services-end-inner{max-width:var(--container);margin:0 auto;}
/* Same size as .final-cta-heading/.case-end-heading — every closing-CTA
   heading on the site shares var(--fs-xl). */
.services-end-heading{font-size:var(--fs-xl);color:#fff;white-space:nowrap;}
/* The button itself reuses .final-cta-btn/.final-cta-arrow verbatim
   (see services.html) instead of its own class — same drift issue as
   the old .case-end-cta/.about-end-cta. */

/* ==========================================================================
   Case study — Sanity-driven additions (project-detail.ejs). A real hero
   image (when a project provides one) fills the same box the abstract
   CSS mockup otherwise occupies, so the layout never shifts either way.
   Prev/next sits as a plain two-column row above the closing CTA.
   ========================================================================== */
.case-hero-visual-img{
  position:relative;
  z-index:2;
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
  border-radius:28px;
  box-shadow:0 30px 60px rgba(14,14,18,.3);
}

.case-prevnext{
  position:relative;
  z-index:1;
  max-width:var(--container);
  margin:0 auto;
  padding:var(--space-lg) var(--pad);
  display:flex;
  justify-content:space-between;
  gap:var(--space-md);
  border-top:1px solid rgba(255,255,255,.14);
}
.case-prevnext-link{
  display:flex;
  align-items:center;
  gap:12px;
  color:#fff;
  max-width:280px;
}
.case-prevnext-link--next{margin-left:auto;text-align:right;flex-direction:row-reverse;}
.case-prevnext-arrow{
  font-size:1.1rem;
  color:rgba(255,255,255,.5);
  transition:transform .3s var(--ease-out);
  flex-shrink:0;
}
.case-prevnext-link--prev:hover .case-prevnext-arrow{transform:translateX(-4px);}
.case-prevnext-link--next:hover .case-prevnext-arrow{transform:translateX(4px);}
.case-prevnext-label{
  display:block;
  font-family:var(--font-head-alt);
  font-weight:700;
  font-size:.68rem;
  letter-spacing:.1em;
  text-transform:uppercase;
  color:rgba(255,255,255,.5);
  margin-bottom:4px;
}
.case-prevnext-name{
  display:block;
  font-family:var(--font-head);
  font-weight:800;
  font-size:1.1rem;
}
@media (max-width:700px){
  .case-prevnext{flex-direction:column;}
  .case-prevnext-link--next{margin-left:0;text-align:left;flex-direction:row;}
}

/* ==========================================================================
   Contact page — form section + quiz modal
   Scoped to body.page-contact so nothing bleeds into other pages.
   ========================================================================== */

/* Form section ------------------------------------------------------------ */
.contact-form-section{
  position:relative;
  z-index:1;
  padding:0 var(--pad) clamp(80px,10vw,140px);
}
.contact-form-inner{
  max-width:680px;
  margin:0 auto;
}
.contact-form-header{margin-bottom:var(--space-md);}
.contact-form-title{
  font-family:var(--font-head);
  font-size:clamp(1.5rem,3.5vw,2.2rem);
  font-weight:800;
  color:#fff;
  margin-bottom:8px;
}
.contact-form-subtitle{
  font-size:.95rem;
  color:var(--on-blue-soft);
}

/* Dark-theme overrides for form fields on the blue contact page */
body.page-contact .form-field label{color:var(--on-blue-faint);}
body.page-contact .form-field input,
body.page-contact .form-field select,
body.page-contact .form-field textarea{
  color:#fff;
  background:transparent;
  border-bottom-color:var(--on-blue-faint);
}
body.page-contact .form-field input::placeholder,
body.page-contact .form-field textarea::placeholder{color:var(--on-blue-faint);}
body.page-contact .form-field select option{background:var(--blue);color:#fff;}
body.page-contact .form-field input:focus,
body.page-contact .form-field select:focus,
body.page-contact .form-field textarea:focus{
  outline:none;
  border-color:var(--on-blue-soft);
}
body.page-contact .form-required{color:var(--orange);}
body.page-contact .form-note.is-success{color:var(--blue-3);}
body.page-contact .form-note.is-error{color:#ff8080;}

/* Honeypot — visually hidden, not with display:none (some bots detect that) */
.contact-form-hp{
  position:absolute;
  left:-9999px;
  top:-9999px;
  width:1px;
  height:1px;
  overflow:hidden;
  opacity:0;
  pointer-events:none;
}

/* Submit button */
.contact-submit-btn{
  display:inline-flex;
  align-items:center;
  gap:8px;
  background:#fff;
  color:var(--blue);
  border:none;
  border-radius:100px;
  padding:14px 28px;
  font-family:var(--font-head);
  font-size:1rem;
  font-weight:700;
  cursor:pointer;
  transition:background .25s,color .25s,transform .2s;
}
.contact-submit-btn:hover{background:var(--orange);color:#fff;}
.contact-submit-btn:disabled{opacity:.55;cursor:not-allowed;}
.contact-submit-arrow{
  display:inline-block;
  transition:transform .3s var(--ease-out);
}
.contact-submit-btn:hover .contact-submit-arrow{transform:translate(3px,-3px);}

/* Divider */
.contact-form-divider{
  display:flex;
  align-items:center;
  gap:16px;
  margin:var(--space-lg) 0 var(--space-md);
  color:var(--on-blue-faint);
  font-size:.85rem;
  font-family:var(--font-head-alt);
}
.contact-form-divider::before,.contact-form-divider::after{
  content:'';
  flex:1;
  height:1px;
  background:var(--on-blue-faint);
}

/* Quiz teaser */
.contact-quiz-teaser p{
  color:var(--on-blue-soft);
  font-size:.95rem;
  margin-bottom:var(--space-sm);
}
.contact-quiz-btn{
  display:inline-flex;
  align-items:center;
  gap:8px;
  background:transparent;
  color:#fff;
  border:1.5px solid var(--on-blue-faint);
  border-radius:100px;
  padding:12px 24px;
  font-family:var(--font-head);
  font-size:.95rem;
  font-weight:700;
  cursor:pointer;
  transition:border-color .25s,background .25s,color .25s;
}
.contact-quiz-btn:hover{border-color:#fff;background:rgba(255,255,255,.08);}
.contact-quiz-btn-arrow{
  display:inline-block;
  transition:transform .3s var(--ease-out);
}
.contact-quiz-btn:hover .contact-quiz-btn-arrow{transform:translate(3px,-3px);}

/* Quiz modal overlay ------------------------------------------------------ */
.quiz-overlay{
  position:fixed;
  inset:0;
  z-index:1000;
  background:rgba(10,12,30,.88);
  backdrop-filter:blur(6px);
  -webkit-backdrop-filter:blur(6px);
  display:flex;
  align-items:center;
  justify-content:center;
  padding:24px 16px;
  overscroll-behavior:contain;
}
.quiz-overlay[hidden]{display:none;}

.quiz-panel{
  background:#fff;
  border-radius:20px;
  width:100%;
  max-width:560px;
  max-height:90vh;
  overflow-y:auto;
  position:relative;
  padding:40px 40px 36px;
  overscroll-behavior:contain;
}

.quiz-close{
  position:absolute;
  top:16px;
  right:16px;
  background:none;
  border:none;
  font-size:1.2rem;
  color:var(--ink-soft);
  cursor:pointer;
  padding:6px 10px;
  border-radius:8px;
  transition:background .2s,color .2s;
}
.quiz-close:hover{background:rgba(14,14,18,.08);color:var(--ink);}

.quiz-progress{
  height:3px;
  background:rgba(14,14,18,.1);
  border-radius:2px;
  margin-bottom:28px;
  overflow:hidden;
}
.quiz-progress-bar{
  height:100%;
  background:var(--blue);
  border-radius:2px;
  width:0;
  transition:width .4s var(--ease-out);
}

.quiz-step-count{
  font-family:var(--font-head-alt);
  font-size:.78rem;
  font-weight:700;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:var(--ink-faint);
  margin-bottom:10px;
}
.quiz-question{
  font-family:var(--font-head);
  font-size:clamp(1.15rem,3vw,1.45rem);
  font-weight:800;
  color:var(--ink);
  margin-bottom:var(--space-md);
  line-height:1.3;
}
.quiz-multi-hint{
  font-size:.8rem;
  font-weight:500;
  color:var(--ink-faint);
}

.quiz-options{
  display:flex;
  flex-direction:column;
  gap:10px;
}
.quiz-option{
  text-align:left;
  background:#f7f8fc;
  border:1.5px solid transparent;
  border-radius:12px;
  padding:14px 18px;
  font-family:var(--font-body);
  font-size:.95rem;
  color:var(--ink);
  cursor:pointer;
  transition:border-color .2s,background .2s;
}
.quiz-option:hover{border-color:var(--blue);background:#eef1ff;}
.quiz-option.is-selected{border-color:var(--blue);background:#eef1ff;font-weight:700;}

.quiz-next-btn{
  margin-top:var(--space-sm);
  background:var(--blue);
  color:#fff;
  border:none;
  border-radius:100px;
  padding:13px 28px;
  font-family:var(--font-head);
  font-size:.95rem;
  font-weight:700;
  cursor:pointer;
  transition:background .2s,transform .2s;
}
.quiz-next-btn:hover{background:#2450ee;}
.quiz-next-btn[hidden]{display:none;}

/* Contact step inside quiz */
.quiz-step--contact .form-grid{margin-top:var(--space-sm);}
.quiz-recommendation{
  font-size:.9rem;
  color:var(--blue);
  font-weight:600;
  margin-bottom:var(--space-sm);
  min-height:1.4em;
}
.quiz-step--contact .contact-submit-btn{
  background:var(--blue);
  color:#fff;
}
.quiz-step--contact .contact-submit-btn:hover{background:#2450ee;}
.quiz-step--contact .form-note.is-success{color:var(--blue);}
.quiz-step--contact .form-note.is-error{color:#c0392b;}

/* Success screen */
.quiz-step--success{text-align:center;padding:var(--space-lg) 0;}
.quiz-success-inner{display:flex;flex-direction:column;align-items:center;gap:16px;}
.quiz-success-icon{
  width:56px;
  height:56px;
  border-radius:50%;
  background:#eef1ff;
  color:var(--blue);
  font-size:1.6rem;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:700;
}
.quiz-step--success p{color:var(--ink-soft);}

@media (max-width:600px){
  .quiz-panel{padding:32px 20px 28px;}
  .quiz-question{font-size:1.1rem;}
}

/* =====================================================================
   CONTACT LANDING  (cl-*)   v26
   ===================================================================== */
body.page-contact{
  background:#3661FE;
  color:#fff;
  min-height:100dvh;
  display:flex;
  flex-direction:column;
}
.cl-main{
  flex:1;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:100px 32px 120px;
}
.cl-inner{
  width:100%;
  max-width:765px;
  display:flex;
  flex-direction:column;
  gap:44px;
}
.cl-header{display:flex;flex-direction:column;gap:12px;align-items:center;text-align:center;}
.cl-heading{
  font-size:clamp(1.7rem,5.5vw,4.7rem);
  font-weight:900;
  line-height:.92;
  letter-spacing:-.03em;
  color:#fff;
  margin:0;
  white-space:nowrap;
}
.cl-heading-line{display:block;}
.cl-heading-orange{color:#FFAD00;}
.cl-sub{
  font-size:clamp(1rem,2.5vw,1.15rem);
  color:rgba(255,255,255,.62);
  line-height:1.55;
  margin:0;
}

/* Cards grid */
.cl-choices{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px;
  margin:0;
  padding:0;
  list-style:none;
}
.cl-choice{
  display:flex;
  flex-direction:column;
  align-items:center;
  text-align:center;
  border:1.5px solid rgba(255,255,255,.25);
  border-radius:20px;
  padding:27px 20px 24px;
  text-decoration:none;
  color:#fff;
  cursor:pointer;
  background:transparent;
  transition:transform .3s cubic-bezier(.25,.46,.45,.94),
             border-color .25s,
             background .25s;
  overflow:hidden;
}
.cl-choice:hover{
  transform:translateY(-6px);
  border-color:rgba(255,255,255,.65);
  background:rgba(255,255,255,.06);
}
/* legacy elements hidden */
.cl-choice-fill,.cl-choice-content,.cl-choice-label,.cl-choice-arrow{display:none;}

/* New card internals */
.cl-choice-illus{
  width:100%;
  max-height:140px;
  display:flex;
  align-items:flex-end;
  justify-content:center;
  margin-bottom:17px;
  flex-shrink:0;
}
.cl-choice-illus svg,
.cl-choice-illus img{max-height:140px;width:auto;max-width:100%;object-fit:contain;}
.cl-choice-body{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:9px;
  flex:1;
}
.cl-choice-title{
  font-size:clamp(0.95rem,2.2vw,1.15rem);
  font-weight:900;
  letter-spacing:.03em;
  line-height:1.1;
  margin:0;
  color:#fff;
}
.cl-choice-desc{
  font-size:.88rem;
  color:rgba(255,255,255,.52);
  line-height:1.55;
  margin:0;
}
.cl-choice-btn{
  margin-top:19px;
  width:41px;
  height:41px;
  border-radius:50%;
  background:#FFAD00;
  color:#000;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:1.1rem;
  font-weight:700;
  flex-shrink:0;
  transition:transform .25s;
}
.cl-choice:hover .cl-choice-btn{transform:scale(1.12) rotate(-8deg);}

@media(max-width:640px){
  .cl-main{padding:80px 20px 110px;}
  .cl-inner{gap:36px;}
  .cl-choices{grid-template-columns:1fr;gap:12px;}
  .cl-choice{padding:24px 20px;}
  .cl-choice-illus{max-height:130px;margin-bottom:16px;}
}

/* =====================================================================
   CONTACT JOURNEY  (cj-*)   v26
   ===================================================================== */
body.page-contact-journey{
  background:#3661FE;
  color:#fff;
  min-height:100dvh;
}
.cj-main{
  min-height:100dvh;
  display:flex;
  flex-direction:column;
  overflow-x:hidden;
}

/* Topbar */
.cj-topbar{
  position:sticky;
  top:0;
  z-index:50;
  display:flex;
  align-items:center;
  gap:16px;
  padding:16px 28px;
  background:#3661FE;
  border-bottom:1px solid rgba(255,255,255,.1);
}
.cj-back{
  display:flex;
  align-items:center;
  gap:6px;
  color:rgba(255,255,255,.65);
  text-decoration:none;
  font-size:.85rem;
  font-weight:700;
  letter-spacing:.04em;
  white-space:nowrap;
  transition:color .2s;
}
.cj-back:hover{color:#fff;}
.cj-progress-track{
  flex:1;
  height:4px;
  background:rgba(255,255,255,.15);
  border-radius:99px;
  overflow:hidden;
}
.cj-progress-fill{
  height:100%;
  background:#FFAD00;
  border-radius:99px;
  transition:width .5s cubic-bezier(.25,.46,.45,.94);
}
.cj-step-label{
  font-size:.78rem;
  color:rgba(255,255,255,.45);
  font-weight:700;
  letter-spacing:.06em;
  white-space:nowrap;
  text-transform:uppercase;
}

/* Steps */
.cj-step{
  flex:1;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:44px 28px 110px;
  animation:cj-fade-in .35s ease both;
}
.cj-step[hidden]{display:none !important;}
@keyframes cj-fade-in{
  from{opacity:0;transform:translateY(18px);}
  to{opacity:1;transform:translateY(0);}
}

/* Panel */
.cj-panel{
  width:100%;
  max-width:640px;
  display:flex;
  flex-direction:column;
  gap:28px;
}
.cj-panel-header{display:flex;flex-direction:column;gap:10px;align-items:center;text-align:center;}
.cj-eyebrow{
  font-size:.78rem;
  font-weight:700;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:rgba(255,255,255,.45);
  margin:0;
}
.cj-heading{
  font-size:clamp(1.6rem,5vw,3.2rem);
  font-weight:900;
  line-height:1.05;
  letter-spacing:-.025em;
  color:#fff;
  margin:0;
  white-space:nowrap;
}
.cj-heading-accent{color:#FFAD00;}
.cj-sub{
  font-size:1rem;
  color:rgba(255,255,255,.6);
  line-height:1.55;
  margin:0;
}
.cj-recommendation{display:block;margin-top:4px;}

/* Quiz question layout */
.cj-step--quiz .cj-panel{max-width:680px;}
.cj-q-layout{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:20px;
}
.cj-q-content{flex:1;min-width:0;text-align:center;}
.cj-q-illus{flex-shrink:0;width:110px;}
.cj-q-illus svg,
.cj-q-illus img{width:100%;height:auto;object-fit:contain;}
.cj-q-count{
  font-size:.74rem;
  font-weight:700;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:rgba(255,255,255,.38);
  margin:0 0 8px;
}
.cj-q-heading{
  font-size:clamp(1.55rem,4.5vw,2.3rem);
  font-weight:900;
  line-height:1.05;
  letter-spacing:-.025em;
  color:#fff;
  margin:0 0 4px;
}
.cj-multi-hint{
  font-size:.72em;
  font-weight:600;
  color:rgba(255,255,255,.38);
  letter-spacing:.04em;
  vertical-align:middle;
  text-transform:none;
}
.cj-q-sub{
  font-size:.88rem;
  color:rgba(255,255,255,.48);
  margin:4px 0 0;
  line-height:1.4;
}

/* Options — 2-column grid */
.cj-options{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
}
.cj-option{
  appearance:none;
  display:flex;
  align-items:center;
  gap:12px;
  background:rgba(255,255,255,.07);
  border:1.5px solid rgba(255,255,255,.18);
  color:#fff;
  border-radius:14px;
  padding:14px 14px 14px 14px;
  text-align:left;
  font-size:.9rem;
  font-weight:600;
  cursor:pointer;
  transition:background .18s,border-color .18s,color .18s;
  font-family:inherit;
  min-height:64px;
}
.cj-option:hover{
  background:rgba(255,255,255,.13);
  border-color:rgba(255,255,255,.4);
}
.cj-option-icon{
  flex-shrink:0;
  width:34px;
  height:34px;
  border-radius:10px;
  background:rgba(255,255,255,.1);
  display:flex;
  align-items:center;
  justify-content:center;
  color:rgba(255,255,255,.7);
  transition:background .18s,color .18s;
}
.cj-option-icon svg{width:17px;height:17px;}
.cj-option-text{flex:1;line-height:1.35;}
.cj-option-check{
  flex-shrink:0;
  width:20px;
  height:20px;
  border-radius:50%;
  border:2px solid rgba(255,255,255,.25);
  background:transparent;
  margin-left:auto;
  transition:background .18s,border-color .18s;
  position:relative;
}
/* Selected */
.cj-option.is-selected{
  background:#fff;
  border-color:#FFAD00;
  color:#1a3080;
}
.cj-option.is-selected .cj-option-icon{
  background:rgba(54,97,254,.1);
  color:#3661FE;
}
.cj-option.is-selected .cj-option-check{
  background:#FFAD00;
  border-color:#FFAD00;
}
.cj-option.is-selected .cj-option-check::after{
  content:'';
  position:absolute;
  inset:0;
  background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 8.5l2.8 2.8 5.2-5.6' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size:13px 13px;
  background-repeat:no-repeat;
  background-position:center;
}
/* Multi-select: same selected style */
.cj-options--multi .cj-option.is-selected{
  background:#fff;
  border-color:#FFAD00;
  color:#1a3080;
}
.cj-multi-footer{display:flex;justify-content:flex-end;padding-top:4px;}

/* Quiz navigation row */
.cj-quiz-nav{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:12px;
}
.cj-quiz-back-btn{
  appearance:none;
  background:transparent;
  border:1.5px solid rgba(255,255,255,.22);
  border-radius:99px;
  color:rgba(255,255,255,.62);
  font-family:inherit;
  font-size:.88rem;
  font-weight:700;
  letter-spacing:.04em;
  padding:11px 22px;
  cursor:pointer;
  display:flex;
  align-items:center;
  gap:8px;
  transition:color .2s,border-color .2s;
}
.cj-quiz-back-btn:hover{color:#fff;border-color:rgba(255,255,255,.55);}
.cj-quiz-back-btn[hidden]{display:none;}
.cj-quiz-continue-btn{
  appearance:none;
  background:#FFAD00;
  border:none;
  border-radius:99px;
  color:#000;
  font-family:inherit;
  font-size:.9rem;
  font-weight:800;
  letter-spacing:.05em;
  padding:12px 28px;
  cursor:pointer;
  display:flex;
  align-items:center;
  gap:10px;
  transition:transform .2s,opacity .2s;
}
.cj-quiz-continue-btn:disabled{opacity:.32;cursor:not-allowed;}
.cj-quiz-continue-btn:not(:disabled):hover{transform:translateY(-2px);}

/* Form */
.cj-form{display:flex;flex-direction:column;gap:0;}
.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px;}
.form-field{display:flex;flex-direction:column;gap:6px;}
.form-field.full{grid-column:1/-1;}
.form-field label{
  font-size:.78rem;
  font-weight:700;
  letter-spacing:.07em;
  text-transform:uppercase;
  color:rgba(255,255,255,.52);
}
.form-field input,
.form-field select,
.form-field textarea{
  background:rgba(255,255,255,.09);
  border:1.5px solid rgba(255,255,255,.18);
  border-radius:10px;
  padding:12px 14px;
  color:#fff;
  font-size:1rem;
  font-family:inherit;
  transition:border-color .2s,background .2s;
  width:100%;
  box-sizing:border-box;
}
.form-field input::placeholder,
.form-field textarea::placeholder{color:rgba(255,255,255,.28);}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus{
  outline:none;
  border-color:rgba(255,255,255,.65);
  background:rgba(255,255,255,.13);
}
.form-field select option{background:#2a4bdd;color:#fff;}
.form-field textarea{min-height:120px;resize:vertical;line-height:1.5;}
.cj-req{color:#FFAD00;}
.cj-optional{color:rgba(255,255,255,.3);font-weight:400;font-size:.82em;}

/* Service pills */
.cj-service-grid{display:flex;flex-wrap:wrap;gap:8px;}
.cj-service-btn{
  appearance:none;
  background:rgba(255,255,255,.09);
  border:1.5px solid rgba(255,255,255,.18);
  border-radius:99px;
  color:rgba(255,255,255,.75);
  font-size:.83rem;
  font-weight:700;
  font-family:inherit;
  padding:8px 18px;
  cursor:pointer;
  transition:background .2s,color .2s,border-color .2s;
  letter-spacing:.02em;
}
.cj-service-btn:hover{background:rgba(255,255,255,.16);color:#fff;}
.cj-service-btn.is-active{background:#FFAD00;border-color:#FFAD00;color:#000;}
.cj-form-error,.cj-submit-error{font-size:.85rem;color:#ffaaaa;min-height:1.2em;margin-top:8px;}
.cj-form-footer{display:flex;justify-content:center;margin-top:24px;}

/* Action buttons */
.cj-next-btn,.cj-skip-btn,.cj-send-btn,.cj-thanks-btn{
  display:inline-flex;
  align-items:center;
  gap:10px;
  border:none;
  border-radius:99px;
  font-family:inherit;
  font-weight:800;
  letter-spacing:.06em;
  cursor:pointer;
  text-decoration:none;
  transition:transform .2s,background .2s,opacity .2s;
  padding:14px 28px;
  font-size:.9rem;
}
.cj-btn-arrow{display:inline-block;transition:transform .25s;}
.cj-next-btn{background:#fff;color:#3661FE;}
.cj-next-btn:hover:not(:disabled){transform:translateY(-2px);}
.cj-next-btn:disabled{opacity:.38;cursor:not-allowed;}
.cj-next-btn:hover:not(:disabled) .cj-btn-arrow,
.cj-skip-btn:hover .cj-btn-arrow,
.cj-send-btn:hover .cj-btn-arrow,
.cj-thanks-btn:hover .cj-btn-arrow{transform:translate(3px,-3px);}

/* Canvas panel */
.cj-panel--canvas{max-width:800px;}
.cj-canvas-footer{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:12px;
  flex-wrap:wrap;
}
.cj-skip-btn{
  background:transparent;
  color:rgba(255,255,255,.5);
  border:1.5px solid rgba(255,255,255,.18);
}
.cj-skip-btn:hover{color:#fff;border-color:rgba(255,255,255,.55);}
.cj-send-btn{background:#FFAD00;color:#000;}
.cj-send-btn:hover{transform:translateY(-2px);}

/* Thanks panel */
.cj-panel--thanks{max-width:480px;}
.cj-thanks-inner{display:flex;flex-direction:column;align-items:flex-start;gap:20px;}
.cj-thanks-mark{font-size:3rem;color:#FFAD00;line-height:1;}
.cj-thanks-heading{
  font-size:clamp(2.4rem,8vw,5rem);
  font-weight:900;
  line-height:.9;
  letter-spacing:-.03em;
  color:#fff;
  margin:0;
}
.cj-thanks-sub{font-size:1rem;color:rgba(255,255,255,.6);line-height:1.55;margin:0;}
.cj-thanks-btn{background:#FFAD00;color:#000;margin-top:8px;}
.cj-thanks-btn:hover{transform:translateY(-2px);}

/* Honeypot */
.cj-hp{position:absolute;opacity:0;pointer-events:none;height:0;overflow:hidden;}

@media(max-width:640px){
  .cj-topbar{padding:12px 16px;}
  .cj-step{padding:28px 16px 110px;}
  .form-grid{grid-template-columns:1fr;}
  .cj-options{grid-template-columns:1fr;}
  .cj-q-layout{flex-direction:column-reverse;gap:10px;}
  .cj-q-illus{width:80px;align-self:flex-end;}
  .cj-canvas-footer{flex-direction:column;align-items:stretch;}
  .cj-skip-btn,.cj-send-btn{justify-content:center;}
  .cj-thanks-inner{align-items:center;text-align:center;}
  .cj-quiz-nav{flex-wrap:wrap;}
  .cj-quiz-continue-btn{flex:1;justify-content:center;}
}

@media(max-width:480px){
  .cj-option{font-size:.86rem;padding:12px 12px;gap:10px;}
  .cj-option-icon{width:30px;height:30px;}
}

@media(max-width:500px){
  .cj-heading{white-space:normal;}
}
@media(max-width:375px){
  .cl-heading{font-size:2.8rem;}
  .cj-heading{font-size:1.6rem;}
  .cj-q-heading{font-size:1.35rem;}
  .cj-thanks-heading{font-size:2rem;}
}

/* =====================================================================
   REUSABLE BUTTON COMPONENT  (.tw-btn)
   Used via views/_button.ejs. Variants: primary, orange, ghost.
   ===================================================================== */
.tw-btn{
  display:inline-flex;
  align-items:center;
  gap:10px;
  border:none;
  border-radius:99px;
  font-family:inherit;
  font-weight:800;
  letter-spacing:.06em;
  cursor:pointer;
  text-decoration:none;
  transition:transform .2s,background .2s,opacity .2s,border-color .2s;
  padding:14px 28px;
  font-size:.9rem;
  appearance:none;
}
.tw-btn-arrow{display:inline-block;transition:transform .25s;}
.tw-btn:hover:not(.tw-btn--disabled):not(:disabled) .tw-btn-arrow{transform:translate(3px,-3px);}
.tw-btn--primary{background:#fff;color:#3661FE;}
.tw-btn--primary:hover:not(.tw-btn--disabled){transform:translateY(-2px);}
.tw-btn--orange{background:#FFAD00;color:#000;margin-top:8px;}
.tw-btn--orange:hover:not(.tw-btn--disabled){transform:translateY(-2px);}
.tw-btn--ghost{background:transparent;color:rgba(255,255,255,.65);border:1.5px solid rgba(255,255,255,.22);}
.tw-btn--ghost:hover:not(.tw-btn--disabled){color:#fff;border-color:rgba(255,255,255,.55);}
.tw-btn--disabled,.tw-btn:disabled{opacity:.38;cursor:not-allowed;}

/* =====================================================================
   CANVAS WIDGET  (cc-*)   v26
   ===================================================================== */
.cc-widget{
  display:flex;
  flex-direction:column;
  gap:12px;
  border-radius:16px;
  background:rgba(255,255,255,.06);
  border:1.5px solid rgba(255,255,255,.12);
  padding:16px;
}
.cc-toolbar{display:flex;align-items:center;gap:16px;justify-content:space-between;}
.cc-colors{display:flex;align-items:center;gap:8px;}
.cc-color-btn{
  appearance:none;
  width:28px;
  height:28px;
  border-radius:50%;
  background:var(--cc-swatch);
  border:3px solid transparent;
  cursor:pointer;
  transition:transform .2s,border-color .2s;
  outline:none;
  padding:0;
}
.cc-color-btn:hover{transform:scale(1.15);}
.cc-color-btn.is-active{border-color:#fff;transform:scale(1.1);}
.cc-tools{display:flex;align-items:center;gap:6px;}
.cc-tool-btn{
  appearance:none;
  width:36px;
  height:36px;
  border-radius:8px;
  background:rgba(255,255,255,.1);
  border:1.5px solid rgba(255,255,255,.12);
  color:rgba(255,255,255,.75);
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  transition:background .2s,color .2s,border-color .2s;
  padding:0;
}
.cc-tool-btn:hover{background:rgba(255,255,255,.18);color:#fff;}
.cc-tool-btn.is-active{
  background:rgba(255,255,255,.22);
  border-color:rgba(255,255,255,.55);
  color:#fff;
}
.cc-canvas-wrap{
  position:relative;
  border-radius:12px;
  overflow:hidden;
  background:rgba(255,255,255,.95);
  min-height:0;
  height:260px;
  touch-action:none;
}
.cc-canvas-wrap.is-erasing{cursor:cell;}
.cc-canvas{
  position:absolute;
  top:0;left:0;
  width:100%;
  height:100%;
  display:block;
  touch-action:none;
}
.cc-hint{
  position:absolute;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:.88rem;
  font-weight:700;
  color:rgba(54,97,254,.18);
  pointer-events:none;
  letter-spacing:.08em;
  text-transform:uppercase;
  transition:opacity .3s;
  margin:0;
}
.cc-hint.is-hidden{opacity:0;}

/* Global fixes */
body.page-contact-journey .logo-btn{display:none;}

/* ── Momori: clean minimal hero — no background image ───────────────── */

/* Hide decorative thread lines only */
body[data-project-slug="momori-collectibles"] .teem-thread{ display:none; }

/* Image: small square above the title */
body[data-project-slug="momori-collectibles"] .case-hero-visual{
  order:-1;
  flex:none;
  width:clamp(160px,18vw,220px);
  aspect-ratio:1/1;
  border-radius:24px;
  overflow:hidden;
  margin:0 auto 16px;
}
body[data-project-slug="momori-collectibles"] .case-hero-visual img{
  width:100%;height:100%;object-fit:cover;display:block;
}
body[data-project-slug="momori-collectibles"] .case-hero-visual-glow,
body[data-project-slug="momori-collectibles"] .case-hero-visual-float,
body[data-project-slug="momori-collectibles"] .case-hero-visual-card{ display:none; }

/* Hero: compact, well-padded, centred */
body[data-project-slug="momori-collectibles"] .case-hero{
  min-height:calc(100svh - 80px);
  display:flex;
  flex-direction:column;
  justify-content:center;
  padding-top:clamp(90px,12vw,160px);
  padding-bottom:clamp(90px,12vw,160px);
}

/* Inner: single centred column */
body[data-project-slug="momori-collectibles"] .case-hero-inner{
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  gap:0;
}

/* Copy: centred, comfortable reading width */
body[data-project-slug="momori-collectibles"] .case-hero-copy{
  max-width:700px;
  width:100%;
  text-align:center;
  display:flex;
  flex-direction:column;
  align-items:center;
}

/* Remove breadcrumb */
body[data-project-slug="momori-collectibles"] .case-breadcrumb{ display:none; }

/* Title: big display, wraps naturally to 2 lines */
body[data-project-slug="momori-collectibles"] .case-hero-title{
  order:1;
  font-size:clamp(2.47rem,5.51vw,4.94rem);
  line-height:1.08;
  text-align:center;
  margin-top:0;
  white-space:normal;
  max-width:12ch;
}
body[data-project-slug="momori-collectibles"] .case-hero-title .mask{ display:block; text-align:center; }

/* Order: title → desc → category chip → cta */
body[data-project-slug="momori-collectibles"] .case-hero-desc{
  order:2;
  margin:12px auto 0;
  max-width:44ch;
  font-size:1rem;
  line-height:1.65;
  color:rgba(255,255,255,.75);
  text-align:center;
}
body[data-project-slug="momori-collectibles"] .case-category{
  order:3;
  margin-top:14px;
}
body[data-project-slug="momori-collectibles"] .case-hero-cta{
  order:4;
  margin:var(--space-lg) auto 0;
}
body[data-project-slug="momori-collectibles"] .egg-slot{ order:5; }

/* Gallery close below hero */
body[data-project-slug="momori-collectibles"] .case-gallery{ padding-top:var(--space-xl); }
body[data-project-slug="momori-collectibles"] .case-gallery-eyebrow{ display:none; }
body[data-project-slug="momori-collectibles"] .case-gallery-heading{ text-align:center; margin-top:0; }

/* ── Momori responsive ───────────────────────────────────────────────── */

/* Tablet: 641px – 900px */
@media (max-width:900px){
  body[data-project-slug="momori-collectibles"] .case-hero{
    padding-top:clamp(100px,13vw,140px);
    padding-bottom:clamp(36px,5vw,56px);
  }
  body[data-project-slug="momori-collectibles"] .case-hero-inner{
    align-items:center;
  }
  body[data-project-slug="momori-collectibles"] .case-hero-title{
    font-size:clamp(2rem,5.5vw,3rem);
    max-width:14ch;
  }
  body[data-project-slug="momori-collectibles"] .case-hero-desc{
    font-size:.97rem;
    max-width:38ch;
  }
  body[data-project-slug="momori-collectibles"] .case-hero-copy{
    max-width:560px;
  }
}

/* Mobile: ≤640px */
@media (max-width:640px){
  body[data-project-slug="momori-collectibles"] .case-hero{
    padding-top:clamp(90px,24vw,120px);
    padding-bottom:var(--space-lg);
  }
  body[data-project-slug="momori-collectibles"] .case-hero-inner{
    align-items:center;
  }
  body[data-project-slug="momori-collectibles"] .case-hero-copy{
    max-width:100%;
    padding:0;
  }
  body[data-project-slug="momori-collectibles"] .case-hero-title{
    font-size:clamp(1.9rem,9vw,2.6rem);
    max-width:100%;
    white-space:normal;
    line-height:1.1;
  }
  body[data-project-slug="momori-collectibles"] .case-hero-desc{
    font-size:.93rem;
    max-width:100%;
    margin-top:var(--space-sm);
  }
  body[data-project-slug="momori-collectibles"] .case-category{
    margin-top:var(--space-sm);
  }
  body[data-project-slug="momori-collectibles"] .case-hero-cta{
    margin-top:var(--space-md);
  }
  body[data-project-slug="momori-collectibles"] .case-gallery{
    padding-top:var(--space-lg);
  }
  body[data-project-slug="momori-collectibles"] .case-gallery-heading{
    font-size:var(--fs-lg);
  }
}

@media(max-width:480px){
  .cc-widget{padding:12px;}
  .cj-canvas-footer{gap:8px;}
}

/* ==========================================================================
   MOBILE & TABLET OPTIMISATION  — 2026-11
   Mobile and tablet only. Desktop (≥769px) is completely untouched.
   ========================================================================== */

/* -- Portfolio: reduce lilac/purple decorative glows (cause of purple tint) */
@media (max-width:900px){
  .portfolio-glow--a{opacity:.08;}
  .portfolio-glow--b{opacity:.06;}
  .portfolio-glow--c{opacity:.06;}
}

/* -- Sticky header: slightly more opaque on mobile but still translucent - */
@media (max-width:768px){
  body.is-scrolled::before{
    background:rgba(54,97,254,.55);
    backdrop-filter:blur(12px);
    -webkit-backdrop-filter:blur(12px);
  }
}

/* -- Homepage hero: use svh so hero fills one usable viewport on mobile -- */
@media (max-width:768px){
  .hero{
    min-height:100vh;
    min-height:100svh; /* small viewport height — excludes browser chrome */
    padding-top:70px;
    padding-bottom:96px; /* clearance for the dock */
    display:flex;
    align-items:center;
    justify-content:center;
  }
  .hero-inner{gap:var(--space-md);}
  .hero-heading-emph{font-size:clamp(2.25rem,9.5vw,2.6rem);}
  .hero-heading-sub{font-size:clamp(1rem,2.6vw,1.3rem);}
}

/* -- About page: WHO WE ARE fills one usable viewport on mobile --------- */
@media (max-width:768px){
  .about-who{
    min-height:100vh;
    min-height:100svh;
    padding-top:70px;
    padding-bottom:96px;
    align-items:center;
    justify-content:center;
  }
  .about-who-inner{text-align:center;}
  .about-who-title{font-size:clamp(2.25rem,9.5vw,2.6rem);}
}

/* -- About process: remove excessive dock-clearance bottom padding -------- */
@media (max-width:768px){
  .about-process{padding-bottom:var(--space-lg);}
}

/* -- Services page: reposition ribbon so it doesn't overlap heading ------ */
@media (max-width:768px){
  .teem-thread-asset--services{bottom:-30px;left:50%;opacity:.4;}
  .teem-thread-asset--home{opacity:.65;}
}

/* -- Services hero: fill one usable viewport on mobile ------------------- */
@media (max-width:768px){
  .services-hero{
    min-height:100vh;
    min-height:100svh;
    padding-top:70px;
    padding-bottom:96px;
  }
}

/* -- CTA headings: allow wrapping on mobile (remove white-space:nowrap) --- */
@media (max-width:900px){
  .final-cta-heading,
  .services-end-heading,
  .about-end-heading,
  .case-end-heading{
    white-space:normal;
    word-break:normal;
    hyphens:none;
  }
}
@media (max-width:640px){
  .cl-heading{white-space:normal;letter-spacing:-.03em;font-size:clamp(2.25rem,9.5vw,2.6rem);}
}

/* -- Final CTA card: reduce oversized min-height on mobile ---------------- */
@media (max-width:640px){
  .final-cta-card{
    min-height:clamp(260px,78vw,340px);
    padding:clamp(24px,6vw,40px) clamp(20px,5vw,28px) clamp(80px,22vw,120px);
    border-radius:28px;
  }
  .final-cta-card-copy{margin-top:0;}
  .final-cta-btn{padding:16px 28px;font-size:.95rem;gap:8px;}
}

/* -- Contact landing: keep 2-column layout even on small mobile ----------- */
@media (max-width:640px){
  .cl-choices{grid-template-columns:1fr 1fr;gap:10px;}
  .cl-choice{padding:16px 12px 14px;}
  .cl-choice-illus{max-height:72px;margin-bottom:10px;}
  .cl-choice-illus img{max-height:72px;}
  .cl-choice-title{font-size:.82rem;letter-spacing:.01em;}
  .cl-choice-desc{font-size:.75rem;}
  .cl-choice-btn{width:34px;height:34px;font-size:.9rem;margin-top:12px;}
}
@media (max-width:380px){
  .cl-heading{font-size:clamp(2rem,9.5vw,2.25rem);}
  .cl-choice-title{font-size:.72rem;}
  .cl-choices{gap:8px;}
}

/* -- Dock: social menu toggle button (desktop: hidden; mobile: shown) ----- */
.dock-social-toggle{display:none;}

@media (max-width:768px){
  /* Hide separator + all social items in the dock on mobile */
  .dock-sep,
  .dock-item[target="_blank"],
  .dock-item--disabled,
  .dock-item--email{display:none;}

  /* Show the social toggle button */
  .dock-social-toggle{
    display:flex;
    align-items:center;
    justify-content:center;
    padding:8px 9px;
    border-radius:16px;
    flex-shrink:0;
    color:var(--blue);
    cursor:pointer;
    background:none;
    border:none;
    font-family:inherit;
    position:relative;
  }
  .dock-social-toggle .dock-tooltip{
    display:block;
  }
}

/* Social popup panel — floats above dock when expanded */
.dock-social-popup{
  position:fixed;
  bottom:80px;
  left:50%;
  transform:translateX(-50%) translateY(12px) scale(.9);
  transform-origin:bottom center;
  background:#fff;
  border-radius:20px;
  padding:10px 14px;
  display:flex;
  align-items:center;
  gap:2px;
  z-index:601;
  opacity:0;
  pointer-events:none;
  box-shadow:0 16px 40px rgba(14,14,18,.2),0 2px 10px rgba(14,14,18,.08);
  transition:opacity .25s var(--ease-out),transform .3s var(--ease-bounce);
}
.dock-social-popup.is-open{
  opacity:1;
  pointer-events:auto;
  transform:translateX(-50%) translateY(0) scale(1);
}
.dock-social-popup .dock-item{
  display:flex;
  align-items:center;
  justify-content:center;
  padding:8px 10px;
  border-radius:14px;
  color:var(--blue);
}
.dock-social-popup .dock-icon{
  width:24px;height:24px;
}
/* Popup is a mobile-only component */
@media (min-width:769px){
  .dock-social-popup{display:none;}
}

/* -- Egg: hide message bubble on mobile (interaction disabled) ------------ */
@media (max-width:768px){
  .egg-wrap--inline .egg-message{display:none !important;}
}

/* -- Work grid: reduce gap on mobile ------------------------------------- */
@media (max-width:640px){
  .work{padding-bottom:var(--space-lg);}
  .work-header{margin-bottom:var(--space-md);}
}

/* -- Portfolio filter: allow wrapping on mobile (remove horizontal scroll) */
@media (max-width:640px){
  .portfolio-filter{
    flex-wrap:wrap;
    justify-content:center;
    overflow-x:visible;
    padding-bottom:0;
    margin-top:40px;
    gap:8px;
  }
  .portfolio-filter-btn{flex-shrink:1;}
}

/* -- Case study end heading: proper H2 size on mobile -------------------- */
@media (max-width:640px){
  .case-end-heading{font-size:clamp(1.75rem,7.5vw,2rem);}
  .case-end{padding-bottom:calc(var(--space-lg) + 90px);}
}

/* -- Services end: proper H2 size on mobile -------------------------------- */
@media (max-width:640px){
  .services-end-heading{font-size:clamp(1.75rem,7.5vw,2rem);}
}

/* -- About end: proper H2 size on mobile ----------------------------------- */
@media (max-width:640px){
  .about-end-heading{font-size:clamp(1.75rem,7.5vw,2rem);}
}

/* -- Contact journey: wider panels on small mobile ----------------------- */
@media (max-width:480px){
  .cj-topbar{padding:12px 16px;}
  .cj-step{padding:32px 16px 100px;}
}

/* -- Global: pages with final sections need dock clearance --------------- */
@media (max-width:768px){
  .about-end,
  .services-end,
  .case-end{
    padding-bottom:calc(var(--space-lg) + 100px);
  }
}

/* -- Homepage services switcher: more compact on mobile ------------------ */
@media (max-width:640px){
  .services-preview{padding-bottom:var(--space-lg);}
  .services-switcher-item{padding:8px 2px;gap:6px;}
  .services-switcher-item-label{font-size:.9rem;}
}

/* -- Reduce excessive section spacing on mobile -------------------------- */
@media (max-width:640px){
  .about-principles{padding:var(--space-lg) var(--pad);}
  .about-process{padding-top:var(--space-lg);}
  .service-chapter{padding:clamp(40px,8vw,64px) var(--pad);}
  .case-story{padding:var(--space-lg) var(--pad);}
  .case-gallery{padding:var(--space-lg) var(--pad);}
}

/* ==========================================================================
   TYPOGRAPHY SYSTEM — mobile H1 > H2 > H3 enforcement (v31)
   Overrides CSS custom properties at mobile breakpoints so every element
   that already uses --fs-hero / --fs-xl / --fs-lg inherits the corrected
   mobile sizes without needing per-selector overrides.
   Desktop tokens (≥769px) are completely untouched.
   ========================================================================== */

@media (max-width:768px){
  :root{
    /* H1 target: 36–42px.
       --fs-hero desktop: clamp(2rem,5.4vw,5rem) → mobile min was 32px.
       New mobile min: 2.25rem = 36px. */
    --fs-hero: clamp(2.25rem, 9.5vw, 2.625rem);

    /* H2 target: 28–32px.
       --fs-xl desktop: clamp(1.6rem,3.6vw,3.2rem) → mobile min was 25.6px.
       New mobile min: 1.75rem = 28px. */
    --fs-xl: clamp(1.75rem, 7.5vw, 2rem);

    /* H3 target: 20–24px.
       --fs-lg desktop: clamp(1.4rem,3.5vw,2.7rem) → mobile min 22.4px, in range.
       Slight nudge for consistency. */
    --fs-lg: clamp(1.3rem, 6vw, 1.5rem);
  }
}

/* -- Services hero H1: override hardcoded clamp to use token ------------- */
@media (max-width:768px){
  .services-hero-title{font-size:var(--fs-hero);}
}

/* -- About principles grid: single column with breathing room ------------ */
@media (max-width:640px){
  .about-principles-grid{gap:clamp(24px,6vw,32px);}
  .about-principle-title{font-size:1.3rem;}
}

/* -- Services chapter: H2 scale + tighter num on mobile ------------------ */
@media (max-width:640px){
  .service-chapter-num{font-size:clamp(2.4rem,9vw,3.4rem);}
  .service-chapter-title{font-size:var(--fs-xl);}
}

/* -- Case hero: flex-direction column on mobile for clean stacking -------- */
@media (max-width:768px){
  .case-hero-inner{flex-direction:column;gap:var(--space-md);}
  .case-hero-copy{max-width:100%;flex-basis:auto;}
  .case-hero-visual{max-width:100%;flex-basis:auto;}
  .case-hero{padding-top:clamp(90px,22vw,110px);}
}

/* -- Portfolio hero: clean stacking on mobile ---------------------------- */
@media (max-width:768px){
  .portfolio-hero-inner{flex-direction:column;gap:var(--space-md);}
}

/* -- Contact landing: heading alignment ---------------------------------- */
@media (max-width:640px){
  .cl-header{text-align:center;}
  .cl-sub{text-align:center;}
}

/* -- Global: body text comfort on mobile --------------------------------- */
@media (max-width:768px){
  body{font-size:15px;line-height:1.7;}
}

/* -- Final CTA card heading: use corrected H2 token ---------------------- */
@media (max-width:768px){
  .final-cta-heading{font-size:var(--fs-xl);}
}

/* ==========================================================================
   VISUAL REFINEMENT PASS — 2026-11 (v32)
   Loading screen, section breathing, CTA panels, header, dock alignment.
   Mobile & tablet only. Desktop completely untouched.
   ========================================================================== */

/* 1. Loading screen — keep logo small, centred, polished -------------------- */
@media (max-width:768px){
  .loadscreen-logo-wrap{
    width:min(52vw,210px); /* compact — no oversized logo on small screens */
  }
}

/* 2. Section breathing room — case/portfolio hero stack on mobile ----------- */
/* Case hero: stack copy over visual for one-column clarity */
@media (max-width:768px){
  .case-hero{
    min-height:100vh;
    min-height:100svh;
    padding-top:70px;
    padding-bottom:0; /* visual follows copy, no forced bottom clearance */
  }
  /* Stacks to column but let the content flow beyond one screen if the
     image is present — do not force it into a fixed height */
  .case-hero-inner{flex-direction:column;gap:var(--space-md);}
  .case-hero-copy{max-width:100%;flex-basis:auto;}
  .case-hero-visual{
    max-width:100%;
    flex-basis:auto;
    max-height:260px;
    overflow:hidden;
    border-radius:20px;
  }
  .case-hero-visual-img{border-radius:20px;}
}

/* 3. CTA panels — hide illustration on mobile, clean text-only layout ------ */
@media (max-width:768px){
  /* Remove the absolutely-positioned hands/thread artwork entirely —
     on a narrow screen it either overlaps the button or gets cut off,
     making the CTA look cluttered rather than intentional.
     Desktop layout is completely untouched. */
  .final-cta-visual{display:none;}
  .final-cta-card-copy{margin-top:0;}
  .final-cta-card{
    min-height:auto;
    padding:clamp(40px,10vw,56px) clamp(24px,6vw,36px);
    gap:var(--space-md);
    justify-content:flex-start;
    align-items:center;
    border-radius:28px;
    text-align:center;
  }
  .final-cta-card-copy{
    gap:var(--space-md);
    max-width:100%;
  }
  /* Keep the decorative shapes (they are CSS, not an image, and don't
     overlap the button — they're at the edges of the card) */
}

/* 4. Dock — proper alignment, safe areas, no overflow ----------------------- */
@media (max-width:768px){
  .dock{
    /* Override the base mobile rule that still has overflow-x:auto and gap:0 */
    overflow-x:visible;
    gap:2px;
    padding:10px 12px;
    /* Safe-area-aware bottom position for iOS home indicator */
    bottom:max(14px,env(safe-area-inset-bottom,14px));
  }
  /* Uniform tap target for all dock items */
  .dock-item{
    padding:9px 10px;
    min-width:40px;
    min-height:40px;
    display:flex;
    align-items:center;
    justify-content:center;
  }
  /* All icons the same container size so they align optically */
  .dock-icon{
    width:22px;
    height:22px;
    display:flex;
    align-items:center;
    justify-content:center;
    flex-shrink:0;
  }
  .dock-icon svg{
    display:block;
    max-width:100%;
    max-height:100%;
  }
  .dock-icon--social img{
    width:22px;
    height:22px;
    display:block;
    object-fit:contain;
  }
  /* Separator vertically centred within the dock */
  .dock-sep{
    height:22px;
    margin:0 4px;
    align-self:center;
  }
}

/* 5. Portfolio hero: stack cleanly on mobile -------------------------------- */
@media (max-width:768px){
  .portfolio-hero{
    min-height:100vh;
    min-height:100svh;
    padding-top:70px;
    padding-bottom:96px;
    display:flex;
    align-items:center;
  }
  .portfolio-hero-inner{flex-direction:column;gap:var(--space-md);}
}

/* 6. Viewport-fit safe-area support via body padding when needed ------------ */
@media (max-width:768px){
  main{padding-bottom:0;}
}

/* ==========================================================================
   BUG FIXES — v33
   ========================================================================== */

/* Fix 1: Duplicate dock buttons — force hide of social items in main dock.
   The .dock-item{display:flex} alignment rule (specificity 0,1,0) was
   overriding .dock-item--email and .dock-item--disabled (same spec, later
   source order). !important ensures the hide always wins in the main dock. */
@media (max-width:768px){
  .dock .dock-sep,
  .dock .dock-item[target="_blank"],
  .dock .dock-item--disabled,
  .dock .dock-item--email{
    display:none !important;
  }
}

/* Fix 2: Logo / CTA pill vertical misalignment.
   Mobile logo: height:32px → centre at top+16px.
   Mobile CTA pill: padding:10px, font .7rem × 1.65 lh ≈ 18.5px → centre at top+19.25px.
   Both have top:18px → logo centre=34px, pill centre=37.25px → 3.25px gap.
   Moving logo to top:21px → logo centre=37px ≈ pill centre=37.25px. ✓ */
@media (max-width:768px){
  .logo-btn{top:21px;}
}

/* Fix 3: Final CTA heading too large at narrow widths (wraps to 3 lines).
   The token override (--fs-xl → 29px at 390px) is too big for the card.
   Use a tighter clamp specifically for the CTA card heading on small mobile. */
@media (max-width:640px){
  .final-cta-card .final-cta-heading,
  .final-cta-card ~ * .final-cta-heading,
  .final-cta-heading{font-size:clamp(1.35rem,6.2vw,1.6rem);}
  .services-end-heading,
  .about-end-heading,
  .case-end-heading{font-size:clamp(1.35rem,6.2vw,1.6rem);}
}

/* =========================================================
   v34 — Five mobile UI polish fixes
   1. Services switcher "SELECT A SERVICE" centre-aligned
   2. Social popup icon uniform alignment
   3. Egg inline breathing room
   4. Thread ribbon mobile positioning
   5. Bottom CTA card internal spacing
   ========================================================= */

/* 1 — Services switcher: centre label + tabs on mobile */
@media (max-width:768px){
  .services-switcher-hint{text-align:center;}
  .services-switcher-list{justify-content:center;}
}

/* 2 — Social popup: lock every item to a fixed height so icons sit level.
   The email icon's 26px border-box and min-height:40px from the mobile
   dock rule can otherwise cause uneven baselines. */
.dock-social-popup{align-items:center !important;}
.dock-social-popup .dock-item{
  flex-direction:row !important;
  align-items:center !important;
  justify-content:center !important;
  height:40px !important;
  min-height:0 !important;
  padding:0 10px !important;
}
.dock-social-popup .dock-tooltip{display:none !important;}
.dock-social-popup .dock-icon,
.dock-social-popup .dock-icon img,
.dock-social-popup .dock-icon svg{
  width:22px !important;
  height:22px !important;
  display:block !important;
  flex-shrink:0 !important;
  border:none !important;
  border-radius:0 !important;
}

/* 3 — Hide egg on mobile, tablet, and any touch device */
@media (max-width:1024px),(hover:none),(pointer:coarse){
  .egg-wrap--inline{display:none !important;}
  .egg-wrap--fixed{display:none !important;}
}

/* 4 — Thread ribbons: move upward on mobile only, no size or left change */
@media (max-width:768px){
  .teem-thread-asset--home{bottom:80px;}
  .teem-thread-asset--services{bottom:80px;}
  .teem-thread-asset--about{bottom:80px;}
}

/* 5 — Bottom CTA card: consistent heading wrap, spacing, and label sizes
   across all pages (Home, Services, About, Case). */
@media (max-width:768px){
  /* Reset desktop negative-margin nudge — it over-shifts on mobile */
  .final-cta-card-copy{
    margin-top:0;
    gap:clamp(20px,5vw,28px);
  }
  /* Allow headings to wrap — nowrap causes overflow on short viewports */
  .final-cta-heading,
  .services-end-heading,
  .about-end-heading,
  .case-end-heading{
    white-space:normal;
    line-height:1.15;
  }
  /* Standardise small label/subtext size across all CTA sections */
  .about-end-label,
  .final-cta-supporting{
    font-size:.82rem;
    line-height:1.5;
  }
  /* About copy group: tighten internal gap on mobile */
  .about-end-copy{gap:6px;}
}

/* v39 fixes ——————————————————————————————————————————————————————————————— */

/* 1 — Top nav: account for iPhone notch / Dynamic Island safe area.
   Without this, logo + pill sit 18-21px from the ABSOLUTE top of the
   screen, partially behind the status bar on devices with safe-area insets. */
@media (max-width:768px){
  .logo-btn{top:calc(14px + env(safe-area-inset-top, 0px));}
  .cta-pill{top:calc(11px + env(safe-area-inset-top, 0px));}
}

/* 2 — CTA card: cancel the -30px desktop nudge on .final-cta-supporting.
   Desktop pulls it up with margin-top:calc(--space-xs - --space-lg) ≈ -30px
   to sit visually close under the heading in a tall card. On mobile the
   card is much shorter so that negative margin causes the text to overlap
   the heading — "crumpled" look. Reset to a small positive gap instead. */
@media (max-width:768px){
  .final-cta-supporting{margin-top:4px;}
}

/* Services switcher: proper 2×2 box grid on mobile — desktop untouched */
@media (max-width:768px){
  .services-switcher-list{
    display:grid !important;
    grid-template-columns:1fr 1fr;
    gap:8px;
  }
  .services-switcher-item{
    width:100% !important;
    flex-direction:column !important;
    align-items:center !important;
    justify-content:center;
    text-align:center;
    border:1.5px solid rgba(255,255,255,.18) !important;
    border-bottom:1.5px solid rgba(255,255,255,.18) !important;
    border-radius:16px;
    padding:16px 12px !important;
    gap:4px !important;
    min-height:72px;
  }
  .services-switcher-item.is-active{
    border-color:var(--orange-2) !important;
    background:rgba(255,255,255,.07);
  }
  .services-switcher-item::before{content:none !important;}
  .services-switcher-item-num{font-size:.72rem;}
  .services-switcher-item-label{font-size:.8rem !important;line-height:1.3;}
}

/* Social popup: no bounce/bump on mobile — plain fade only */
@media (max-width:1024px){
  .dock-social-popup{
    transform:translateX(-50%);
    transition:opacity .2s var(--ease-out);
  }
  .dock-social-popup.is-open{
    transform:translateX(-50%);
  }
}

/* Thread ribbons: per-page position tweaks on mobile */
@media (max-width:768px){
  /* Home: reverted — keep original centred position, only bottom:80px stays */
  /* Services: nudge slightly left of the right-side default */
  .teem-thread-asset--services{left:62%;}
  /* About: nudge slightly left of the right-side default */
  .teem-thread-asset--about{left:62%;}
  /* Portfolio ("Selected work"): move upward from default bottom:-20px */
  .teem-thread-asset--portfolio{bottom:50px;}
}

/* v43: iPad / tablet hero heading — scale down emph between mobile and desktop */
@media (max-width:1200px) and (min-width:769px){
  .hero-heading-emph{font-size:clamp(2.25rem,6.5vw,3.5rem);}
  .hero-heading-sub{font-size:clamp(1.1rem,2.4vw,1.6rem);}
}

/* Social toggle: 0 animation on mobile/tablet — tooltip hidden, no transitions */
@media (max-width:1024px){
  .dock-social-toggle .dock-tooltip{display:none !important;}
  .dock-social-toggle,
  .dock-social-toggle .dock-icon,
  .dock-social-toggle .dock-icon svg{
    transition:none !important;
    transform:none !important;
  }
}
