:root{
  --bg:#05020E;
  --white: #ECEBEA;
  --dim: rgba(236,235,234,0.68);
  --dimmer: rgba(236,235,234,0.44);
  --card-bg: rgba(8,9,14,0.92);
  --card-border: rgba(236,235,234,0.12);
  --pill-border: rgba(236,235,234,0.18);
  --violet: #6E3CFF;
  --coral: #FF5A3D;
  --orange: #FA6C06;
  --panel-bg: rgba(5,2,14,0.94);
  --panel-border: rgba(236,235,234,0.12);
  --font-heading: "Archivo", "Inter", sans-serif;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
}

*{ box-sizing:border-box; }

html,body{
  margin:0; padding:0;
  background: var(--bg);
  color: var(--white);
  font-family: var(--font);
  overflow-x:hidden;
  width:100%;
  -webkit-font-smoothing:antialiased;
}

/* Lenis / native smooth scroll handles this element as the scroller */
html.lenis, html.lenis body{ height:auto; }
.lenis.lenis-smooth{ scroll-behavior:auto !important; }

a{ color:inherit; }

#canvas-root{
  position:fixed;
  inset:0;
  width:100vw;
  height:100vh;
  z-index:1;
}
#canvas-root canvas{ display:block; width:100%; height:100%; }

#flash-overlay{
  position:fixed; inset:0; z-index:5;
  background: radial-gradient(circle at 50% 55%, #fff6ee 0%, #ffd9c4 18%, rgba(255,90,61,0.45) 42%, rgba(110,60,255,0.25) 62%, rgba(0,0,0,0) 78%);
  opacity:0;
  pointer-events:none;
  mix-blend-mode: screen;
}

#grain-overlay{
  position:fixed; inset:0; z-index:6;
  pointer-events:none;
  background:
    radial-gradient(ellipse at center, rgba(0,0,0,0) 55%, rgba(0,0,0,0.55) 100%);
  opacity:0.9;
}
#grain-overlay::after{
  content:"";
  position:absolute; inset:-50%;
  width:200%; height:200%;
  opacity:0.035;
  background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHdpZHRoPScxNjAnIGhlaWdodD0nMTYwJz48ZmlsdGVyIGlkPSduJz48ZmVUdXJidWxlbmNlIHR5cGU9J2ZyYWN0YWxOb2lzZScgYmFzZUZyZXF1ZW5jeT0nMC45JyBudW1PY3RhdmVzPScyJyBzdGl0Y2hUaWxlcz0nc3RpdGNoJy8+PC9maWx0ZXI+PHJlY3Qgd2lkdGg9JzEwMCUnIGhlaWdodD0nMTAwJScgZmlsdGVyPSd1cmwoI24pJyBvcGFjaXR5PScwLjklJy8+PC9zdmc+");
  animation: grain 1s steps(2) infinite;
}
@keyframes grain{ 0%{transform:translate(0,0)} 50%{transform:translate(-2%,1%)} 100%{transform:translate(1%,-2%)} }

#progress-rail{
  position:fixed;
  right: 22px; top: 50%;
  transform: translateY(-50%);
  width:2px; height: 160px;
  background: rgba(255,255,255,0.10);
  z-index: 20;
  border-radius:2px;
}
#progress-fill{
  position:absolute; left:0; top:0; width:100%; height:0%;
  background: linear-gradient(180deg, var(--violet), var(--coral), var(--orange));
  border-radius:2px;
  transition: height 0.05s linear;
}
/* dots marking forced-stop points along the rail */
#progress-stops{
  position:fixed; right: 18px; top:50%; transform:translateY(-50%);
  width:10px; height:160px; z-index:21; pointer-events:none;
}
#progress-stops .stop-dot{
  position:absolute; left:50%; width:6px; height:6px; border-radius:50%;
  background: rgba(236,235,234,0.35);
  transform:translate(-50%,-50%);
}

/* ---------- Persistent brand bar (always on top, not tied to a stage) ---------- */
.site-bar{
  position:fixed;
  top:0; left:0; right:0;
  z-index: 30;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 24px 36px;
  pointer-events:none;
}
.site-bar > *{ pointer-events:auto; }
.brand-lockup{
  display:flex;
  align-items:center;
  gap: 12px;
  text-decoration:none;
  background:none;
  border:none;
  cursor:pointer;
}
.brand-mark{
  height: 34px;
  width:auto;
  display:block;
}
.brand-word{
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.22em;
  font-weight: 500;
  color: var(--white);
  padding-top: 2px;
}
.site-bar-cta{ font-size:13px; padding:11px 18px; }

/* Eyebrow labels used to sit inside a bordered, backgrounded pill everywhere
   — nice once, repetitive sitewide. Reduced to a plain mono label with a
   small coral marker; still reads as a wayfinding cue without the chrome. */
.pill{
  display:inline-flex;
  align-items:center;
  gap:9px;
  padding:0;
  border-radius:0;
  border:none;
  background:none;
  font-family: var(--font-mono);
  font-size:11px;
  font-weight:500;
  letter-spacing:0.14em;
  text-transform:uppercase;
  color: var(--dimmer);
  width:max-content;
  max-width:100%;
}
.pill-icon{ font-size:9px; opacity:0.9; color: var(--coral); transform:translateY(-1px); }

.headline{
  margin:0;
  font-family: var(--font-heading);
  font-weight:300;
  letter-spacing:-0.01em;
  line-height:1.08;
  color: var(--white);
}
.headline .line{ display:block; }
.headline .accent-dot{ color: var(--coral); }

.sub{
  margin:0;
  font-weight:300;
  line-height:1.55;
  color: var(--dim);
}

.cta-row{ display:flex; gap:12px; align-items:center; flex-wrap:wrap; }

.btn{
  font-family: var(--font);
  font-size:14px;
  font-weight:500;
  padding:13px 20px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,0.14);
  background: rgba(20,18,28,0.9);
  color: var(--white);
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  gap:10px;
  text-decoration:none;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.2s ease;
}
.btn:hover{ background: rgba(255,255,255,0.14); border-color: rgba(255,255,255,0.28); }
.btn-primary{ background: var(--coral); border-color: var(--coral); color:#100608; font-weight:600; }
.btn-primary:hover{ background:#ff6f52; border-color:#ff6f52; }
.btn-secondary{ background: rgba(255,255,255,0.05); }
.btn-ghost{ background: rgba(5,2,14,0.72); backdrop-filter: blur(10px); }
.btn[disabled]{ opacity:0.55; cursor:default; }
.btn .arrow{
  display:inline-flex; align-items:center; justify-content:center;
  width:20px; height:20px; border-radius:50%;
  border:1px solid rgba(255,255,255,0.3);
  font-size:11px;
  flex:none;
}
.btn-primary .arrow{ border-color: rgba(16,6,8,0.4); }

/* ===================== Stages (fixed full-viewport overlays) ===================== */
.stage{
  position:fixed;
  inset:0;
  z-index:10;
  width:100%;
  height:100%;
  pointer-events:none;
  display:flex;
  align-items:center;
  justify-content:center;
  padding: 90px 24px 48px;
}
.stage .btn{ pointer-events:auto; }

/* solid, legible content container — every stage's copy lives inside one of these
   so the particle field never shows through behind text (legibility requirement) */
.panel{
  pointer-events:auto;
  width:min(720px, 92vw);
  max-height:min(760px, calc(100vh - 120px));
  overflow-y:auto;
  background: var(--panel-bg);
  border:1px solid var(--panel-border);
  border-radius:18px;
  padding: clamp(28px,4vw,48px) clamp(24px,5vw,52px);
  box-shadow: 0 30px 80px rgba(0,0,0,0.45);
  text-align:center;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:16px;
}
.panel-wide{ width:min(940px, 94vw); position:relative; }
.panel > .headline{ width:100%; }
.panel > .sub{ width:100%; max-width:560px; }

/* ===================== Hero — headline dominant, particles do the framing =====================
   The previous per-line dark bands read as boxes stacked on the animation.
   Instead: no background on the panel or the type at all — legibility comes
   from a soft, wide radial vignette sitting behind the whole text block
   (quieting/darkening the particle field in that region only) plus a text
   shadow on the glyphs themselves. The headline is now the dominant element
   on the screen; the eyebrow is gone and the supporting copy + CTAs are
   deliberately smaller and quieter beneath it. */
#top .panel{
  background:none; border:none; box-shadow:none;
  padding:0; max-height:none; overflow:visible;
  gap:30px;
  position:relative;
}
#top .panel::before{
  content:"";
  position:absolute;
  left:50%; top:38%;
  transform:translate(-50%,-50%);
  width:min(1200px, 145vw);
  height:min(640px, 120vh);
  background: radial-gradient(ellipse at center, rgba(5,2,14,0.78) 0%, rgba(5,2,14,0.5) 40%, rgba(5,2,14,0) 70%);
  z-index:-1;
  pointer-events:none;
}
#top .headline{ display:flex; flex-direction:column; align-items:center; gap:0; }
#top .headline .line{
  display:block; width:auto;
  background:none; border-radius:0; padding:0; box-shadow:none;
  font-size: clamp(56px, 10.4vw, 152px);
  font-weight:300;
  letter-spacing:-0.02em;
  text-shadow: 0 8px 46px rgba(0,0,0,0.6), 0 2px 12px rgba(0,0,0,0.5);
}
#top .sub{
  background:none; border-radius:0; padding:0; box-shadow:none;
  width:auto; max-width:480px; margin:0 auto;
  font-size:14.5px;
  color: var(--dim);
  text-shadow: 0 2px 18px rgba(0,0,0,0.65);
}
#top .hero-cta{ margin-top:2px; }

/* faint oversized brand mark, tucked behind content as a quiet texture —
   never competes with the copy, just adds a bit more of the identity into
   the page beyond the header lockup. */
.panel-watermark{
  position:absolute;
  width:260px; height:auto;
  opacity:0.05;
  pointer-events:none;
}
.panel-wide .panel-watermark{ top:6px; right:6px; transform:rotate(8deg); }
.stage-content .panel-watermark{ bottom:0; left:50%; transform:translateX(-50%) rotate(-6deg); width:340px; }

.split-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  width:100%;
  text-align:left;
  align-items:start;
}
.split-grid .col{ display:flex; flex-direction:column; gap:16px; }
.split-grid .headline{ text-align:left; }

/* stage content wrapper for card-grid stages (no single solid panel — the
   cards themselves are the solid surfaces) */
.stage-content{
  position:relative;
  pointer-events:auto;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:28px;
  max-height:calc(100vh - 120px);
  overflow-y:auto;
  padding: 8px;
  width:100%;
}

.card-grid{
  display:flex;
  gap:20px;
  flex-wrap:wrap;
  justify-content:center;
  width:100%;
}

/* ===================== "What we do" — editorial, not cards =====================
   Three items now read as a numbered editorial sequence (a top rule, a big
   number, label + copy) rather than three identical floating boxes — no
   background, no border, no shadow. A slight vertical stagger per item
   keeps the row from feeling like a rigid grid. */
.metric-card{
  position:relative;
  flex: 1 1 260px;
  max-width:340px;
  padding-top: 22px;
  border-top: 1px solid var(--card-border);
  text-align:left;
  opacity:0;
}
.card-grid .metric-card:nth-child(2){ margin-top:30px; }
.card-grid .metric-card:nth-child(3){ margin-top:60px; }
.metric-label{ font-family: var(--font-mono); font-size:11px; letter-spacing:0.1em; color: var(--dimmer); font-weight:500; text-transform:uppercase; }
.metric-value{ font-family: var(--font-heading); font-size:46px; font-weight:300; color: var(--coral); margin-top:12px; letter-spacing:-0.02em; }
.metric-copy{ font-size:13.5px; line-height:1.6; color: var(--dim); margin-top:14px; font-weight:300; max-width:320px; }

/* ===================== Offer cards — kept as cards (functional: pricing/
   package selection), simplified: thinner border, no glow ring, tighter
   radius, no heavy shadow. ===================== */
.offer-card{
  position:relative;
  flex: 0 1 300px;
  max-width:320px;
  padding: 26px 26px;
  border-radius: 14px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(236,235,234,0.09);
  text-align:left;
  opacity:0;
}
.offer-eyebrow{ font-family: var(--font-mono); font-size:11px; letter-spacing:0.1em; color: var(--dimmer); font-weight:500; text-transform:uppercase; }
.offer-copy{ font-size:13.5px; line-height:1.55; color: var(--dim); margin-top:12px; font-weight:300; }
.offer-title{ font-family: var(--font-heading); font-size:21px; font-weight:400; color: var(--white); margin-top:10px; line-height:1.22; }
.offer-tag{ margin-top:16px; font-family: var(--font-mono); font-size:10px; letter-spacing:0.08em; color: var(--coral); text-transform:uppercase; }

/* ===================== Work — Well Planned as a full-width showcase =====================
   Replaces the old three-card grid (two of which were placeholders). One
   generous piece, image-led, reads as proof of the level of work rather
   than a busy grid. */
.work-eyebrow-label{ margin:0 auto; }
.work-hero{
  display:flex;
  width:100%;
  max-width:1000px;
  margin:0 auto;
  text-decoration:none;
  color:inherit;
  border-radius:16px;
  overflow:hidden;
  background: rgba(255,255,255,0.02);
  border:1px solid rgba(236,235,234,0.08);
  transition: border-color 0.3s ease, transform 0.3s ease;
  opacity:0;
}
.work-hero:hover{ border-color: rgba(255,90,61,0.35); transform:translateY(-3px); }
.work-hero-visual{
  position:relative;
  flex:1 1 52%;
  min-height:220px;
  background:
    radial-gradient(circle at 28% 24%, rgba(250,108,6,0.16), transparent 55%),
    linear-gradient(155deg, rgba(255,255,255,0.05), rgba(255,255,255,0.01));
  display:flex; align-items:center; justify-content:center;
}
.work-hero-symbol{ width:32%; max-width:120px; height:auto; opacity:0.16; pointer-events:none; }
.work-hero-body{
  flex:1 1 44%;
  display:flex; flex-direction:column; align-items:flex-start; justify-content:center;
  padding: 34px 38px;
  gap:14px;
  text-align:left;
}
.work-hero-logo{ height:28px; width:auto; }
.work-hero-copy{ font-size:14.5px; line-height:1.6; color: var(--dim); margin:0; font-weight:300; max-width:340px; }
.work-hero-tags{ justify-content:flex-start; }
.work-hero-link{
  margin-top:4px; display:inline-flex; align-items:center; gap:8px;
  font-family: var(--font-mono); font-size:11.5px; letter-spacing:0.08em; text-transform:uppercase; color: var(--coral);
}
.work-hero-link .arrow{
  display:inline-flex; align-items:center; justify-content:center;
  width:18px; height:18px; border-radius:50%; border:1px solid rgba(255,90,61,0.4); font-size:10px;
}

/* ===================== Hero scroll-down cue ===================== */
.scroll-cue{
  position:absolute; left:50%; bottom:5vh; transform:translateX(-50%);
  display:flex; flex-direction:column; align-items:center; gap:10px;
  pointer-events:auto; cursor:pointer; background:none; border:none; padding:6px;
  color: var(--dim);
  font-family: var(--font-mono); font-size:10.5px; letter-spacing:0.16em; text-transform:uppercase;
}
.scroll-cue .chevron{
  width:14px; height:14px;
  border-right:2px solid var(--dim); border-bottom:2px solid var(--dim);
  transform:rotate(45deg);
  animation: cue-bounce 1.8s ease-in-out infinite;
}
@keyframes cue-bounce{
  0%,100%{ transform:rotate(45deg) translate(0,0); opacity:0.6; }
  50%{ transform:rotate(45deg) translate(5px,5px); opacity:1; }
}
@media (prefers-reduced-motion: reduce){
  .scroll-cue .chevron{ animation:none; }
}

/* ===================== Work teaser tags ===================== */
.tag-row{ display:flex; gap:10px; justify-content:center; flex-wrap:wrap; }
.tag-pill{
  font-family: var(--font-mono); font-size:11px; letter-spacing:0.08em; text-transform:uppercase;
  color: var(--dim); border:1px solid var(--pill-border); border-radius:999px; padding:6px 13px;
  background: rgba(255,255,255,0.03);
}
.work-note{
  font-family: var(--font-mono); font-size:11px; letter-spacing:0.04em; color: var(--dimmer);
  margin:0;
}

/* ===================== Contact form ===================== */
.contact-form{
  width:100%;
  display:flex;
  flex-direction:column;
  gap:16px;
  text-align:left;
  margin-top:4px;
}
.hp-field{ position:absolute; left:-9999px; }
.form-row{ display:grid; grid-template-columns:1fr 1fr; gap:14px; }
.field{ display:flex; flex-direction:column; gap:6px; }
.field label{
  font-family: var(--font-mono); font-size:10.5px; letter-spacing:0.1em; text-transform:uppercase; color: var(--dimmer);
}
.field input, .field textarea{
  font-family: var(--font);
  font-size:14.5px;
  color: var(--white);
  background: rgba(255,255,255,0.05);
  border:1px solid var(--card-border);
  border-radius:12px;
  padding:12px 14px;
  resize:vertical;
  min-height:44px;
}
.field textarea{ min-height:96px; }
.field input:focus, .field textarea:focus{
  outline:none;
  border-color: var(--violet);
  background: rgba(110,60,255,0.08);
}
.contact-form .btn{ align-self:flex-start; }
.form-status{
  margin:0; font-family: var(--font-mono); font-size:12px; letter-spacing:0.03em; color: var(--dim); min-height:16px;
}
.form-status.is-error{ color: var(--coral); }
.form-status.is-ok{ color: #7de6a8; }
.contact-alt{
  margin:2px 0 0; font-size:13px; color: var(--dimmer);
}
.contact-alt a{ color: var(--dim); text-decoration:underline; text-underline-offset:3px; }

.contact-foot{
  display:flex; gap:16px; flex-wrap:wrap; justify-content:center;
  font-family: var(--font-mono); font-size:11px; letter-spacing:0.06em; color: var(--dimmer);
  margin-top:6px; padding-top:16px; border-top:1px solid rgba(236,235,234,0.08); width:100%;
}

/* ===================== Site footer (contact panel finale + work.html) ===================== */
.site-footer{
  display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:16px;
  width:100%; margin-top:8px; padding-top:20px;
  border-top:1px solid rgba(236,235,234,0.08);
}
.site-footer-brand{ display:flex; align-items:center; gap:10px; }
.site-footer-brand img{ height:20px; width:auto; opacity:0.85; }
.site-footer-brand span{
  font-family: var(--font-mono); font-size:11px; letter-spacing:0.18em; color: var(--dim);
}
.site-footer-links{ display:flex; gap:18px; flex-wrap:wrap; }
.site-footer-links a, .site-footer-links button{
  font-family: var(--font-mono); font-size:12px; letter-spacing:0.04em; color: var(--dim);
  background:none; border:none; padding:0; cursor:pointer; text-decoration:none;
}
.site-footer-links a:hover, .site-footer-links button:hover{ color: var(--white); }
.site-footer-meta{
  display:flex; align-items:center; gap:16px; flex-wrap:wrap;
  font-family: var(--font-mono); font-size:11px; letter-spacing:0.04em; color: var(--dimmer);
}
.site-footer-meta a{ color: var(--dimmer); text-decoration:none; }
.site-footer-meta a:hover{ color: var(--dim); }
.wp-footer{ max-width:880px; margin:0 auto; padding:28px 24px 60px; border-top:1px solid rgba(236,235,234,0.08); }

#debug-overlay{
  display:none;
  position:fixed; inset: 0 0 auto 0;
  z-index: 999;
  max-height: 40vh;
  overflow:auto;
  background: #3a0000;
  color: #ffb4b4;
  font-family: monospace;
  font-size: 12px;
  line-height:1.5;
  white-space: pre-wrap;
  padding: 14px;
  border-bottom: 2px solid #ff4d4d;
}

/* Scroll-spacer sets the total journey length. 1300vh left a lot of dead
   scroll between reveals at normal wheel speed; 980vh keeps every stage's
   hold window comfortable while tightening the overall pace. */
#scroll-spacer{ height: 980vh; width:100%; position:relative; z-index:0; }

/* ===================== Responsive ===================== */
@media (max-width: 860px){
  .pill{ white-space: normal; text-align:left; }
  .pill span:not(.pill-icon){ min-width:0; white-space:normal; }

  .site-bar{ padding:18px 20px; }
  .brand-mark{ height:26px; }
  .brand-word{ font-size:10px; letter-spacing:0.16em; }
  .site-bar-cta{ font-size:12px; padding:9px 14px; }
  .site-bar-cta span.arrow{ display:none; }

  .stage{ padding:84px 16px 40px; }
  .panel, .panel-wide{ width:94vw; padding:26px 20px; gap:14px; }
  .split-grid{ grid-template-columns:1fr; gap:22px; }
  .split-grid .headline, .split-grid .col{ text-align:left; }

  .headline{ font-size: clamp(26px, 7.6vw, 40px) !important; }
  #top .headline .line{ font-size: clamp(38px, 12vw, 52px) !important; }

  .form-row{ grid-template-columns:1fr; }
  .contact-form .btn{ align-self:stretch; justify-content:center; }

  #progress-rail, #progress-stops{ right:10px; height:110px; }

  .card-grid .metric-card:nth-child(2), .card-grid .metric-card:nth-child(3){ margin-top:0; }

  .work-hero{ flex-direction:column; }
  .work-hero-visual{ min-height:160px; }
  .work-hero-body{ padding:24px 22px; }

  .site-footer{ flex-direction:column; align-items:flex-start; gap:14px; }
  .panel-watermark{ display:none; }
}

/* ===================== Reduced motion ===================== */
@media (prefers-reduced-motion: reduce){
  #flash-overlay{ display:none; }
  .btn{ transition:none; }
  .work-hero{ transition:none; }
  .work-hero:hover{ transform:none; }
  .offer-card{ transition:none; }
}

/* ======================================================================
   WORK / CASE STUDY PAGE (work.html) — calmer, editorial, image-led. No
   particle canvas, no card chrome for the text sections — large imagery,
   generous whitespace and restrained motion, deliberately quieter than the
   homepage so the work itself is what carries the page.
====================================================================== */
.wp-body{ position:relative; min-height:100vh; }
.wp-atmosphere{
  position:fixed; inset:0; z-index:0; pointer-events:none;
  background:
    radial-gradient(1200px 700px at 85% -10%, rgba(110,60,255,0.16), rgba(5,2,14,0) 60%),
    radial-gradient(1000px 600px at -10% 15%, rgba(255,90,61,0.10), rgba(5,2,14,0) 55%);
}
.wp-shell{ position:relative; z-index:2; max-width:920px; margin:0 auto; padding: 150px 24px 120px; }

.wp-hero{ text-align:center; margin-bottom:44px; }
.wp-hero-logo-single{ height:34px; width:auto; margin:0 auto 26px; display:block; }
.wp-hero .headline{ font-size: clamp(32px, 5vw, 56px); margin:18px 0; }
.wp-hero .sub{ max-width:620px; margin:0 auto; font-size:16px; }
.wp-hero .tag-row{ margin-top:22px; }
.wp-label{ justify-content:center; }

/* ---- Placeholder-aware media: a styled frame that either shows a real
   photo (once one exists at the path in `src`) or a quiet fallback label —
   never a broken-image icon. See the HTML comments beside each .wp-media
   for the exact asset path to drop a real file into. ---- */
.wp-media{
  position:relative;
  border-radius:16px;
  border:1px solid rgba(236,235,234,0.10);
  background:
    radial-gradient(circle at 25% 20%, rgba(250,108,6,0.09), transparent 55%),
    linear-gradient(155deg, rgba(255,255,255,0.035), rgba(255,255,255,0.01));
  overflow:hidden;
}
.wp-media img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; display:block; z-index:2; }
.wp-media-fallback{
  position:absolute; inset:0; z-index:1;
  display:flex; align-items:center; justify-content:center;
  padding:16px; text-align:center;
}
.wp-media-label{
  font-family: var(--font-mono); font-size:10.5px; letter-spacing:0.1em; text-transform:uppercase;
  color: var(--dimmer);
}
.wp-media-hero{ aspect-ratio: 16/9; margin: 8px 0 64px; }
.wp-media-before{ aspect-ratio: 4/3; }
.wp-media-badge{
  position:absolute; z-index:3; top:14px; right:14px;
  display:inline-flex; align-items:center; gap:7px;
  padding:7px 12px; border-radius:999px;
  background:rgba(5,2,14,0.72); backdrop-filter:blur(3px);
  border:1px solid rgba(236,235,234,0.16);
  font-family: var(--font-mono); font-size:10px; font-weight:500;
  letter-spacing:0.14em; text-transform:uppercase; color: var(--white);
}
.wp-media-badge::before{ content:""; width:6px; height:6px; border-radius:50%; background: var(--coral); flex:none; }
.wp-media-square{ aspect-ratio: 1/1; }

.wp-media-grid{ display:grid; gap:14px; margin-top:26px; }
.wp-media-grid-brand{ grid-template-columns: 1fr 1fr; }
.wp-media-grid-apps{ grid-template-columns: repeat(3, 1fr); }

.wp-device-row{ display:flex; gap:20px; margin-top:28px; align-items:flex-start; }
.wp-device-row .wp-media{ flex:1 1 50%; }
.wp-media-desktop{ aspect-ratio: 16/10; }
.wp-media-mobile{ aspect-ratio: 9/16; max-width:280px; flex:0 1 260px !important; }

/* ---- Hero entrance: staggered fade-up on load, pure CSS (no scroll
   needed since the hero is visible immediately) — gives the case study
   page the same "alive on arrival" feel as the homepage's hero stage. ---- */
@keyframes wpFadeUp{ from{ opacity:0; transform:translateY(18px); } to{ opacity:1; transform:translateY(0); } }
.wp-hero-logo-single{ animation: wpFadeUp 0.7s cubic-bezier(0.16,0.8,0.28,1) both; }
.wp-hero .wp-label{ animation: wpFadeUp 0.7s cubic-bezier(0.16,0.8,0.28,1) 0.08s both; }
.wp-hero .headline .line:nth-child(1){ animation: wpFadeUp 0.8s cubic-bezier(0.16,0.8,0.28,1) 0.16s both; }
.wp-hero .headline .line:nth-child(2){ animation: wpFadeUp 0.8s cubic-bezier(0.16,0.8,0.28,1) 0.24s both; }
.wp-hero .sub{ animation: wpFadeUp 0.8s cubic-bezier(0.16,0.8,0.28,1) 0.34s both; }
.wp-hero .tag-row{ animation: wpFadeUp 0.8s cubic-bezier(0.16,0.8,0.28,1) 0.42s both; }
@media (prefers-reduced-motion: reduce){
  .wp-hero-logo-single, .wp-hero .wp-label, .wp-hero .headline .line, .wp-hero .sub, .wp-hero .tag-row{
    animation:none; opacity:1; transform:none;
  }
}

/* ---- Scroll reveal: lightweight fade/rise-in as sections enter view,
   toggled by IntersectionObserver in work.html (adds .is-visible once).
   No dependency on the homepage's GSAP/WebGL rig — this page is a scrolling
   article, not a scrubbed scene, so a small vanilla-JS observer is enough
   to stop it reading as static next to the homepage. ---- */
.reveal{
  opacity:0; transform:translateY(32px);
  transition: opacity 0.9s cubic-bezier(0.16,0.8,0.28,1), transform 0.9s cubic-bezier(0.16,0.8,0.28,1);
  will-change: opacity, transform;
}
.reveal.is-visible{ opacity:1; transform:translateY(0); }
.reveal-scale{
  opacity:0; transform:translateY(22px) scale(0.97);
  transition: opacity 1s cubic-bezier(0.16,0.8,0.28,1), transform 1s cubic-bezier(0.16,0.8,0.28,1);
  will-change: opacity, transform;
}
.reveal-scale.is-visible{ opacity:1; transform:translateY(0) scale(1); }
.wp-media-grid .reveal:nth-child(1){ transition-delay:0s; }
.wp-media-grid .reveal:nth-child(2){ transition-delay:0.08s; }
.wp-media-grid .reveal:nth-child(3){ transition-delay:0.16s; }
.wp-media-grid .reveal:nth-child(4){ transition-delay:0.24s; }
.wp-media-grid .reveal:nth-child(5){ transition-delay:0.32s; }
.wp-media-grid .reveal:nth-child(6){ transition-delay:0.4s; }
.wp-device-row .reveal:nth-child(2){ transition-delay:0.12s; }

@media (prefers-reduced-motion: reduce){
  .reveal, .reveal-scale{ opacity:1 !important; transform:none !important; transition:none !important; }
}

/* ---- Text sections: no boxed panel — a numbered mono label + a thin top
   rule stand in for the card chrome, matching the reduced-chrome direction
   used across the rest of the site. ---- */
.wp-block{ margin: 72px 0; }
.wp-block:first-of-type{ margin-top:0; }
.wp-index{
  font-family: var(--font-mono); font-size:11px; letter-spacing:0.14em; text-transform:uppercase;
  color: var(--coral); margin:0 0 16px; padding-top:16px; border-top:1px solid rgba(236,235,234,0.10);
}
.wp-block h2{
  font-family: var(--font-heading); font-weight:400; font-size: clamp(21px,2.8vw,30px);
  margin:0 0 16px; color:var(--white); max-width:640px;
}
.wp-block p{ font-size:15px; line-height:1.75; color: var(--dim); margin:0 0 14px; font-weight:300; max-width:620px; }
.wp-block p:last-child{ margin-bottom:0; }

.wp-split{ display:grid; grid-template-columns: 1fr 1fr; gap:40px; align-items:center; }
.wp-split .wp-media{ min-height:220px; }

.wp-testimonial{
  position:relative;
  border-radius:20px;
  border:1px solid rgba(236,235,234,0.10);
  background:
    radial-gradient(circle at 12% 8%, rgba(250,108,6,0.11), transparent 55%),
    linear-gradient(155deg, rgba(255,255,255,0.035), rgba(255,255,255,0.01));
  padding: 60px 52px 44px;
  margin: 96px 0;
  overflow:hidden;
}
.wp-testimonial::before{
  content:"\201C";
  position:absolute; top:-16px; left:32px; z-index:0;
  font-family: var(--font-heading); font-weight:600; font-size:140px; line-height:1;
  color: var(--coral); opacity:0.22; pointer-events:none;
}
.wp-testimonial blockquote{
  position:relative; z-index:1; max-width:720px;
  margin:0; font-family: var(--font-heading); font-weight:300; font-size: clamp(21px,2.8vw,29px);
  line-height:1.5; color: var(--white);
}
.wp-testimonial cite{
  position:relative; z-index:1;
  display:flex; align-items:center; gap:14px;
  margin-top:30px; font-style:normal;
}
.wp-testimonial .cite-mark{
  display:flex; align-items:center; justify-content:center; flex:none;
  width:40px; height:40px; border-radius:50%;
  background: rgba(250,108,6,0.14); border:1px solid rgba(250,108,6,0.32);
  font-family: var(--font-mono); font-size:12px; font-weight:600; letter-spacing:0.02em; color: var(--coral);
}
.wp-testimonial .cite-name{
  display:block; font-family: var(--font-mono); font-size:13px; letter-spacing:0.07em; text-transform:uppercase; color: var(--white); font-weight:500;
}
.wp-testimonial .cite-role{ display:block; color: var(--dimmer); margin-top:3px; font-family: var(--font-mono); font-size:12px; letter-spacing:0.04em; }

@media (max-width:700px){
  .wp-testimonial{ padding:44px 24px 32px; }
  .wp-testimonial::before{ font-size:96px; left:18px; }
}

.wp-cta-panel{
  text-align:center;
  padding-top:16px;
  border-top:1px solid rgba(236,235,234,0.10);
  margin:72px 0 0;
}
.wp-cta-panel h2{ margin-left:auto; margin-right:auto; }
.wp-cta-panel p{ margin-left:auto; margin-right:auto; }
.wp-cta-panel .cta-row{ justify-content:center; margin-top:18px; }

.wp-back{
  display:inline-flex; align-items:center; gap:8px;
  font-family: var(--font-mono); font-size:12px; letter-spacing:0.08em; text-transform:uppercase;
  color: var(--dimmer); text-decoration:none; margin-top:44px;
}
.wp-back:hover{ color: var(--dim); }

@media (max-width:700px){
  .wp-shell{ padding:130px 18px 90px; }
  .wp-split{ grid-template-columns:1fr; gap:20px; }
  .wp-media-grid-brand{ grid-template-columns:1fr 1fr; }
  .wp-media-grid-apps{ grid-template-columns: 1fr 1fr; }
  .wp-device-row{ flex-direction:column; }
  .wp-media-mobile{ max-width:220px; flex:0 1 auto !important; margin:0 auto; }
}

@media (prefers-reduced-motion: reduce){
  .wp-back{ transition:none; }
}

/* ===================== thanks.html ===================== */
.thanks-shell{
  min-height:100vh; display:flex; align-items:center; justify-content:center; text-align:center;
  padding:40px 24px;
}
.thanks-panel{ max-width:480px; }
