/* ============================================================
   Juicebox Technology paid-search LP
   Design language derived from the LIVE juicebox.com.au/technology
   - bg #0C0D10 · text #FAFAFA · accent soft purple #B488F2
   - display: Bagoss Standard (licensed) -> Fraunces substitute
   - body/UI: Söhne (licensed) -> Inter substitute
   - primary CTA: white pill, dark text · minimal, dark, editorial
   Self-contained: does NOT use the repo's prototype pages.css.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Schibsted+Grotesk:wght@400;500;600;700&family=Inter:wght@400;500;600&display=swap');

:root {
  --bg: #0C0D10;
  --bg-2: #141519;          /* raised card */
  --bg-3: #1B1D23;          /* hover / input */
  --fg: #FAFAFA;
  --fg-dim: rgba(250,250,250,0.62);
  --fg-mute: rgba(250,250,250,0.42);
  --line: rgba(250,250,250,0.13);
  --line-2: rgba(250,250,250,0.24);
  --accent: #B488F2;        /* live soft purple (primary accent) */
  --accent-soft: rgba(180,136,242,0.16);
  --accent-line: rgba(180,136,242,0.45);
  --accent-2: #63C4E6;      /* live teal-blue (secondary accent) */
  --accent-2-soft: rgba(99,196,230,0.16);
  --accent-2-line: rgba(99,196,230,0.5);
  --blue-deep: #18243f;     /* navy for the top-of-page gradient */
  --grad-brand: linear-gradient(100deg, var(--accent) 0%, var(--accent-2) 100%);
  --grad-slogan: #3A5480; /* mid navy-blue (between deep navy and lighter slate); background-clip:text renders it flat */
  --ink: #0C0D10;           /* text on white/accent */
  --white: #FAFAFA;

  --font-display: 'Schibsted Grotesk', 'Inter', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', 'Söhne', 'Helvetica Neue', Helvetica, Arial, sans-serif;

  --max: 1760px;
  --px: clamp(28px, 4.5vw, 104px);
  --r-pill: 999px;
  --r-card: 18px;
  --r-media: 14px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
::selection { background: var(--accent); color: var(--ink); }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
img { max-width: 100%; display: block; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--px); }

/* ---------- type ---------- */
h1, h2, h3, .display { font-family: var(--font-display); font-weight: 500; font-optical-sizing: auto; }
h1 { font-size: clamp(40px, 6vw, 78px); line-height: 1.05; letter-spacing: -0.01em; margin: 0; }
h2 { font-size: clamp(30px, 4.2vw, 50px); line-height: 1.08; letter-spacing: -0.01em; margin: 0; }
h3 { font-size: clamp(21px, 2.2vw, 27px); line-height: 1.2; letter-spacing: -0.005em; margin: 0; }
.eyebrow {
  font-family: var(--font-body);
  font-size: 13px; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--fg-dim);
  display: inline-flex; align-items: center; gap: 12px;
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--accent); opacity: 0.8; }
.eyebrow--plain::before { display: none; }
.hl { color: var(--accent); }
.hl-underline {
  background: linear-gradient(180deg, transparent 62%, var(--accent-soft) 62%);
  padding: 0 1px;
}
.lede { font-size: clamp(17px, 1.6vw, 20px); line-height: 1.55; color: var(--fg-dim); max-width: 62ch; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 11px 24px;
  border-radius: var(--r-pill);
  font-family: var(--font-body); font-size: 15.5px; font-weight: 500; line-height: 1;
  border: 1px solid transparent; cursor: pointer;
  transition: transform 200ms var(--ease), background 200ms var(--ease), border-color 200ms var(--ease), color 200ms var(--ease);
}
.btn .arr { transition: transform 200ms var(--ease); }
.btn:hover .arr { transform: translateX(4px); }
.btn--white { background: var(--white); color: var(--ink); }
.btn--white:hover { transform: translateY(-2px); background: #fff; }
.btn--accent { background: var(--accent); color: var(--ink); }
.btn--accent:hover { transform: translateY(-2px); filter: brightness(1.05); }
.btn--ghost { background: transparent; color: var(--fg); border-color: var(--line-2); }
.btn--ghost:hover { background: rgba(250,250,250,0.06); border-color: var(--fg); }
.btn--lg { padding: 13px 28px; font-size: 16.5px; }
.btn--full { width: 100%; justify-content: center; }
/* gradient (purple->teal) secondary button */
.btn--grad { background: var(--grad-brand); color: var(--ink); font-weight: 600; }
.btn--grad:hover { transform: translateY(-2px); filter: brightness(1.06); }
/* live-style white pill with an accent circular arrow (primary CTAs) */
.btn--white.btn--lg, .btn--white.btn--full { padding: 6px 6px 6px 24px; gap: 12px; }
.btn--white.btn--full { justify-content: space-between; }
.btn--white.btn--lg .arr, .btn--white.btn--full .arr {
  width: 32px; height: 32px; border-radius: 50%; flex: none;
  display: inline-grid; place-items: center;
  background: var(--accent); color: var(--ink); font-size: 16px;
}
.btn--white.btn--lg:hover .arr, .btn--white.btn--full:hover .arr { transform: none; filter: brightness(1.05); }

/* gradient clipped text (purple->teal), used sparingly on a heading word */
.grad-text { background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- nav (slim, one path) ---------- */
.nav {
  position: sticky; top: 0; z-index: 60;
  background: rgba(12,13,16,0.72);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; gap: 18px; height: 66px; }
.brand {
  font-family: var(--font-body); font-weight: 600; font-size: 21px;
  letter-spacing: -0.02em; color: var(--fg);
  display: inline-flex; align-items: center;
}
.brand img { height: 22px; width: auto; display: block; }
/* animated wordmark (Lottie) replaces the static PNG once it's ready.
   lottie-web sizes the <svg> to 100% of this container, so the container
   carries the dimensions (kept to the 1655:420 ~3.94:1 native aspect). */
.brand-lottie { display: none; height: 30px; width: 118px; line-height: 0; }
.brand-lottie svg { display: block !important; width: 100% !important; height: 100% !important; }
.brand.lottie-ready .brand-lottie { display: block; }
.brand.lottie-ready .brand-fallback { display: none; }
/* slogan (at top of page) swaps to the section menu on scroll */
/* Slogan carries the same purple->teal gradient as the hero .btn--grad CTA.
   Display face at 700 (loaded via the @import above, so the bold is real
   rather than browser-synthesised) with tightened tracking to read blockier. */
.nav-slogan { margin-left: 16px; font-family: var(--font-display); font-size: 15px; font-weight: 700;
  letter-spacing: -0.012em; white-space: nowrap;
  background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav-links { display: none; align-items: center; gap: 24px; margin-left: 14px;
  font-family: var(--font-display); font-size: 14px; font-weight: 700; letter-spacing: -0.008em; }
/* Each link takes one step along the same purple->teal ramp as the slogan and
   the hero CTA, so the row reads as one sweep rather than seven random colours.
   Seven evenly interpolated stops for the seven links: recalculate the whole
   ramp (not just append) if the nav gains or loses an item. */
.nav-links a { background: none; -webkit-background-clip: border-box; background-clip: border-box;
  white-space: nowrap; transition: opacity 180ms var(--ease); }
.nav-links a:nth-child(1) { color: #B488F2; }
.nav-links a:nth-child(2) { color: #A792F0; }
.nav-links a:nth-child(3) { color: #999CEE; }
.nav-links a:nth-child(4) { color: #8CA6EC; }
.nav-links a:nth-child(5) { color: #7EB0EA; }
.nav-links a:nth-child(6) { color: #71BAE8; }
.nav-links a:nth-child(7) { color: #63C4E6; }
.nav-links a:hover { opacity: 0.75; }
/* must follow the nth-child stops (equal specificity) so the active section wins */
.nav-links a.is-active { color: var(--fg); }
.nav.is-scrolled .nav-slogan { display: none; }
.nav.is-scrolled .nav-links { display: flex; }
@media (max-width: 960px){ .nav-slogan { display: none !important; } }
/* Measured with fonts loaded, the full row (brand 118 + links 456 + phone 251
   + CTA 176 + gaps) needs ~1055px. Hide the links below 1240 so they never wrap
   or collide with the phone number; that leaves ~75px slack at the boundary and
   still keeps them on 1280px and wider screens. */
@media (max-width: 1240px){ .nav-links { display: none !important; } }
.nav-phone {
  margin-left: auto;
  font-size: 13.5px; color: var(--fg-dim);
  display: inline-flex; align-items: center; gap: 8px;
}
.nav-phone .dot { color: var(--accent); font-size: 9px; }
@media (max-width: 620px){ .nav-phone .txt { display:none; } }
@media (max-width: 500px){ .nav-phone { display: none; } }
.nav-cta { padding: 11px 20px; font-size: 14px; }

/* ---------- credentials ribbon ---------- */
.ribbon { border-bottom: 1px solid var(--line); background: #0A0B0E; }
.ribbon-inner {
  display: flex; flex-wrap: nowrap; justify-content: flex-start; align-items: center;
  gap: 14px; padding: 12px var(--px);
  font-size: 11.5px; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--fg-dim); white-space: nowrap; overflow: hidden;
}
.ribbon .cred { display: inline-flex; gap: 7px; align-items: baseline; }
.ribbon .cred .k { color: var(--fg-mute); }
.ribbon .cred .v .hl { color: var(--accent); }
.ribbon .cred + .cred::before { content: "·"; color: var(--fg-mute); margin-right: 7px; }
@media (max-width: 940px){
  .ribbon-inner { flex-wrap: wrap; white-space: normal; overflow: visible; gap: 8px 16px; }
  .ribbon .cred + .cred::before { display: none; }
}
/* limited mobile ribbon: show only the strongest trust signals, one compact line */
@media (max-width: 640px){
  .ribbon-inner { justify-content: center; gap: 5px 14px; font-size: 10px; letter-spacing: 0.05em; }
  .ribbon .cred:nth-child(1), .ribbon .cred:nth-child(5) { display: none; }
}

/* ---------- section rhythm ---------- */
.section { padding: clamp(72px, 8vw, 120px) 0; }
/* Anchor targets: cancel the section's own top padding so the sticky-nav offset
   (html scroll-padding-top) lands on the section heading, not the section border. */
.section[id] { scroll-margin-top: calc(-1 * clamp(72px, 8vw, 120px)); }

/* A restrained blue lift in two of the plainer mid-page sections, using the same
   cornflower hue as the hero and final-CTA glows. Pseudo-elements, so no markup
   change; they sit behind the content and never intercept clicks. Kept to two,
   on opposite sides, to break up the long unlit stretch without overdoing it. */
#why-us, #insights { position: relative; overflow: hidden; }
#why-us > .wrap, #insights > .wrap { position: relative; z-index: 1; }
#why-us::before, #insights::before {
  content: ""; position: absolute; pointer-events: none; z-index: 0; border-radius: 50%;
}
#why-us::before { width: 720px; height: 720px; right: -220px; top: -280px;
  background: radial-gradient(circle, rgba(88,128,232,0.16), transparent 68%); }
#insights::before { width: 660px; height: 660px; left: -240px; top: -200px;
  background: radial-gradient(circle, rgba(88,128,232,0.14), transparent 68%); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; flex-wrap: wrap; margin-bottom: 52px; }
.section-head .eyebrow { margin-bottom: 18px; }
.section-head h2 { max-width: 20ch; }
.section-head-side { font-size: 15.5px; line-height: 1.6; color: var(--fg-dim); max-width: 38ch; align-self: flex-end; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(8px,1.4vw,22px) 0 clamp(56px,7vw,96px); background: linear-gradient(180deg, var(--blue-deep) 0%, rgba(12,13,16,0) 60%); }
.hero-glow {
  position: absolute; pointer-events: none; z-index: 0;
  width: 820px; height: 820px; right: -180px; top: -260px;
  background: radial-gradient(circle, rgba(88,128,232,0.30), rgba(88,128,232,0.06) 42%, transparent 70%);
}
.hero-glow.two { width: 440px; height: 440px; right: 24%; top: 130px; opacity: 0.55;
  background: radial-gradient(circle, rgba(180,136,242,0.22), transparent 70%); }
.hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0,1fr) minmax(0,480px); gap: 48px; align-items: start; }
.hero-grid > * { min-width: 0; }
.hero-grid > div:first-child { padding-top: 29px; }   /* breathing room above the eyebrow, left column only (desktop) */
@media (max-width: 1080px){ .hero-grid { grid-template-columns: 1fr; gap: 34px; } .hero-grid > div:first-child { padding-top: 0; } .hero { padding-top: 28px; } }
.hero h1 { font-size: clamp(36px, 4vw, 80px); line-height: 1.03; letter-spacing: -0.015em; margin: 16px 0 26px; max-width: 22ch; }
.hero-sub { font-size: clamp(16px, 1.3vw, 19.5px); line-height: 1.5; color: var(--fg-dim); max-width: 52ch; margin: 0 0 26px; }
.hero-sub strong { color: var(--fg); font-weight: 500; }

/* intent selector */
.intent { margin: 22px 0 28px; }
.intent-label { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-mute); white-space: nowrap; margin-right: 4px; }
.intent-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.intent-btn {
  font-size: 11px; letter-spacing: 0; white-space: nowrap;
  color: var(--fg-dim); background: transparent;
  border: 1px solid var(--line-2); padding: 8px 12px; border-radius: var(--r-pill);
  transition: all 180ms var(--ease);
}
.echo-link { display: inline-block; margin-top: 7px; color: var(--accent); border-bottom: 1px solid var(--accent-line); white-space: nowrap; font-weight: 500; }
.echo-link:hover { border-bottom-color: var(--accent); }
.case:target { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }
.intent-btn:hover { color: var(--fg); border-color: var(--fg); }
.intent-btn.is-on { color: var(--ink); background: var(--accent); border-color: var(--accent); font-weight: 500; }
.intent-echo {
  margin-top: 18px; font-size: 16px; line-height: 1.5; color: var(--fg-dim);
  border-left: 2px solid var(--accent); padding: 3px 0 3px 15px; min-height: 1.5em;
  max-width: 72ch;
}
.intent-echo b { color: var(--fg); font-weight: 600; }

/* hero secondary CTAs (below the intent echo) */
.hero-cta { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; margin-top: 28px; }
.hero-textlink { display: inline-flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 600; color: var(--accent-2); border-bottom: 1px solid var(--accent-2-line); padding-bottom: 2px; transition: border-color 180ms var(--ease); }
.hero-textlink:hover { border-bottom-color: var(--accent-2); }
.hero-textlink .arr { transition: transform 200ms var(--ease); }
.hero-textlink:hover .arr { transform: translateX(4px); }

.hero-meta { display: grid; grid-template-columns: auto 1fr; gap: 12px 22px; padding-top: 28px; border-top: 1px solid var(--line); font-size: 14px; color: var(--fg-dim); }
.hero-meta .label { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-mute); padding-top: 2px; }
.hero-meta .val { color: var(--fg); }

/* lead form card */
.lead-wrap { position: sticky; top: 84px; }
@media (max-width: 1080px){ .lead-wrap { position: relative; top: 0; } }
.lead { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r-card); padding: 26px; position: relative; max-width: 100%; }

/* --- cover that flips into the form --- */
.lead-cover { position: absolute; inset: 0; z-index: 4; border-radius: var(--r-card); overflow: hidden; border: 1px solid var(--line); background: var(--bg-2); transition: transform 560ms var(--ease), opacity 440ms var(--ease); }
.lead-cover-media { position: absolute; inset: 0; background: linear-gradient(155deg, #1d2b50 0%, #17203a 42%, #0e1119 100%); display: grid; place-items: center; }
.lead-cover-ph { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(250,250,250,0.38); }
.lead-cover-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.lead-cover-scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6,8,14,0) 34%, rgba(6,8,14,0.92) 100%); }
.lead-cover-content { position: absolute; left: 0; right: 0; bottom: 0; padding: 24px; z-index: 2; }
.lead-cover-tag { font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-2); margin-bottom: 10px; }
.lead-cover-title { font-family: var(--font-display); font-weight: 500; font-size: 22px; line-height: 1.16; letter-spacing: -0.01em; margin: 0 0 18px; color: var(--fg); }
.lead-wrap .lead { transition: opacity 440ms var(--ease) 110ms, transform 480ms var(--ease) 110ms, visibility 0s 110ms; }
.lead-wrap:not(.is-revealed) .lead { opacity: 0; visibility: hidden; transform: translateY(8px); }
.lead-wrap.is-revealed .lead { opacity: 1; visibility: visible; transform: none; }
.lead-wrap.is-revealed .lead-cover { opacity: 0; transform: translateY(-18px); pointer-events: none; }
.lead-tag { font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.lead-title { font-family: var(--font-display); font-weight: 500; font-size: 20px; line-height: 1.14; margin: 0 0 6px; }
.lead-sub { font-size: 13px; color: var(--fg-dim); margin: 0 0 20px; }
.lead form { display: grid; gap: 15px; }
.lead-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 440px){ .lead-row { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 5px; }
.field label { font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-mute); }
.field label .req { color: var(--accent); margin-left: 2px; }
.field input, .field select, .field textarea {
  background: var(--bg-3); border: 1px solid var(--line); border-radius: 10px;
  color: var(--fg); font-family: var(--font-body); font-size: 14px; padding: 9px 11px;
  outline: none; resize: none; transition: border-color 180ms var(--ease), box-shadow 180ms var(--ease);
}
.field textarea { min-height: 52px; }
.field label { margin-bottom: -1px; }
.field input::placeholder, .field textarea::placeholder { color: var(--fg-mute); }
.field select { color: var(--fg-dim); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field.is-err input, .field.is-err select, .field.is-err textarea { border-color: #ff6a6a; }
.lead-heyhun { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.lead-error { margin: 10px 0 0; font-size: 13px; color: #ff6a6a; }
.lead-error a { color: inherit; }
.lead .btn--white { margin-top: 2px; padding: 12px 22px; }
.lead-next { margin: 10px 0 0; padding: 0; display: grid; gap: 5px; }
.lead-next li { list-style: none; font-size: 11px; color: var(--fg-dim); display: flex; gap: 8px; align-items: flex-start; }
.lead-next .tick { color: var(--accent); flex-shrink: 0; }
.lead-success { display: none; text-align: center; padding: 16px 4px 8px; }
.lead-success.is-on { display: block; }
.lead-success .big { display: block; color: var(--accent); font-size: 34px; margin-bottom: 10px; }
.lead-success h4 { font-family: var(--font-display); font-weight: 500; font-size: 22px; margin: 0 0 8px; }
.lead-success p { font-size: 14px; color: var(--fg-dim); margin: 0; }

/* ---------- proof band ---------- */
.proof { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #0A0B0E; }
.proof-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 1px; background: var(--line); background-clip: content-box; }
@media (max-width: 820px){ .proof-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 480px){ .proof-grid { grid-template-columns: 1fr; } }
.proof-cell { background: #0A0B0E; padding: 30px 28px; border-top: 2px solid transparent; transition: border-color 250ms var(--ease); }
.proof-cell:hover { border-top-color: var(--accent); }
.proof-cell .num { font-family: var(--font-display); font-weight: 500; font-size: clamp(32px,3.6vw,44px); line-height: 1; color: var(--fg); font-variant-numeric: tabular-nums; }
.proof-cell .num .hl { color: var(--accent); }
.proof-cell .lbl { margin-top: 12px; font-size: 13.5px; line-height: 1.45; color: var(--fg-dim); }
.proof-cell .src { margin-top: 10px; font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-mute); }

/* ---------- versus comparison ---------- */
.versus { border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; }
.versus-row { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; border-top: 1px solid var(--line); }
.versus-row:first-child { border-top: 0; }
.versus-row > div { padding: 16px 18px; border-left: 1px solid var(--line); font-size: 13.5px; line-height: 1.45; color: var(--fg-dim); }
.versus-row > div:first-child { border-left: 0; }
.versus-head > div { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-mute); }
.versus-head .us { color: var(--fg); }
.rowlabel { font-family: var(--font-display); font-weight: 500; font-size: 16px; color: var(--fg) !important; letter-spacing: 0; }
.versus .us { background: var(--accent-soft); }
.versus .mk { font-weight: 600; margin-right: 6px; }
.versus .mk.yes { color: var(--accent); }
.versus .mk.no { color: var(--fg-mute); }
@media (max-width: 720px){
  .versus-row { grid-template-columns: 1fr; }
  .versus-row > div { border-left: 0; border-top: 1px solid var(--line); }
  .versus-row > div:first-child { border-top: 0; }
  .versus-head { display: none; }
  .versus [data-col]::before { content: attr(data-col) " "; font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-mute); display: block; margin-bottom: 4px; }
}

/* ---------- work / cases ---------- */
.work-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 18px; }
@media (max-width: 760px){ .work-grid { grid-template-columns: 1fr; } }
.case {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden;
  display: flex; flex-direction: column; color: var(--fg);
  transition: border-color 260ms var(--ease), transform 260ms var(--ease);
}
.case:hover { border-color: var(--line-2); transform: translateY(-2px); }
.case[data-matched="1"] { border-color: var(--accent-line); }
.case-img { position: relative; aspect-ratio: 16/10; overflow: hidden; background: var(--bg-3); }
.case-img img { width: 100%; height: 100%; object-fit: cover; position: relative; z-index: 1; }
.case-img .ph-label { position: absolute; inset: 0; z-index: 0; display: grid; place-items: center; padding: 0 16px; text-align: center; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-mute); }
.case-img.placeholder { display: grid; place-items: center; }
.case-img.placeholder span { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-mute); }
.case-matchtag { display: none; position: absolute; top: 14px; left: 14px; z-index: 2; font-size: 10px; letter-spacing: 0.09em; text-transform: uppercase; font-weight: 600; color: var(--ink); background: var(--accent); padding: 5px 10px; border-radius: var(--r-pill); }
.case[data-matched="1"] .case-matchtag { display: inline-block; }
.case-body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.case-meta { font-size: 11px; letter-spacing: 0.07em; text-transform: uppercase; color: var(--fg-mute); display: flex; gap: 16px; }
.case-desc { font-size: 14.5px; line-height: 1.55; color: var(--fg-dim); margin: 0; }
.case-stats { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); display: flex; gap: 26px; }
.case-stat .num { font-family: var(--font-display); font-weight: 500; font-size: 22px; color: var(--accent); line-height: 1; }
.case-stat .lbl { margin-top: 5px; font-size: 12px; color: var(--fg-mute); }

/* meet the team */
.team-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
@media (max-width: 860px){ .team-grid { grid-template-columns: repeat(2,1fr); } }
.team-card { margin: 0; }
.team-photo { aspect-ratio: 4/5; overflow: hidden; border-radius: var(--r-media); background: #e9e9ea; }
.team-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 12%; display: block; }
.team-card figcaption { margin-top: 14px; }
.team-card b { display: block; font-family: var(--font-display); font-weight: 500; font-size: 17px; letter-spacing: -0.01em; color: var(--fg); }
.team-card span { display: block; font-size: 14px; color: var(--fg-dim); margin-top: 2px; }

/* trusted-by client wall (text logos; swap for real logo SVGs when available) */
.clients-title { text-align: center; font-family: var(--font-display); font-weight: 500; font-size: clamp(26px, 3vw, 40px); letter-spacing: -0.01em; line-height: 1.1; margin: 0 auto; max-width: 20ch; }
.clients-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 44px 24px; align-items: center; margin-top: 56px; }
@media (max-width: 860px){ .clients-grid { grid-template-columns: repeat(3, 1fr); gap: 36px 20px; } }
@media (max-width: 520px){ .clients-grid { grid-template-columns: repeat(2, 1fr); } }
.client { display: flex; align-items: center; justify-content: center; min-height: 52px; }
.client img { height: 38px; width: auto; max-width: 100%; object-fit: contain; opacity: 0.72; transition: opacity 180ms var(--ease); }
.client:hover img { opacity: 1; }

/* ---------- process + pricing ---------- */
.steps { display: grid; grid-template-columns: repeat(2,1fr); gap: 0 52px; }
@media (max-width: 800px){ .steps { grid-template-columns: 1fr; } }
.step { display: grid; grid-template-columns: auto 1fr; gap: 20px; padding: 24px 0; border-top: 1px solid var(--line); }
.step:nth-last-child(-n+1) { border-bottom: 1px solid var(--line); }
.step-num { font-size: 13px; font-weight: 600; color: var(--accent); padding-top: 3px; min-width: 26px; }
.step-title { font-family: var(--font-display); font-weight: 500; font-size: 18px; line-height: 1.25; margin: 0 0 6px; }
.step-body { font-size: 14.5px; line-height: 1.55; color: var(--fg-dim); margin: 0; }
.price-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; margin-top: 44px; }
@media (max-width: 820px){ .price-grid { grid-template-columns: 1fr; } }
.price-card { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r-card); padding: 26px 24px; display: flex; flex-direction: column; gap: 10px; }
.price-card .kicker { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.price-card .amount { font-family: var(--font-display); font-weight: 500; font-size: clamp(28px,3vw,36px); line-height: 1; color: var(--fg); }
.price-card .amount small { font-size: 15px; color: var(--fg-mute); }
.price-card .desc { font-size: 14px; line-height: 1.5; color: var(--fg-dim); }
.price-card .meta { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); font-size: 11.5px; letter-spacing: 0.03em; color: var(--fg-mute); }
.price-note { margin-top: 22px; font-size: 14.5px; color: var(--fg-dim); max-width: 72ch; }
.price-note strong { color: var(--fg); font-weight: 500; }

/* ---------- testimonial ---------- */
.testi { position: relative; overflow: hidden; }
.testi-glow { position: absolute; pointer-events: none; width: 500px; height: 500px; left: -160px; top: -120px; background: radial-gradient(circle, rgba(180,136,242,0.16), transparent 70%); }
.testi-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1.2fr 1fr; gap: 52px; align-items: center; }
@media (max-width: 900px){ .testi-grid { grid-template-columns: 1fr; gap: 36px; } }
.quote { font-family: var(--font-display); font-weight: 500; font-size: clamp(26px,3.4vw,40px); line-height: 1.2; letter-spacing: -0.01em; max-width: 22ch; margin: 0; }
.quote .hl { color: var(--accent); }
.quote-cite { margin-top: 26px; display: flex; align-items: center; gap: 14px; font-size: 14px; color: var(--fg-dim); }
.quote-cite b { color: var(--fg); font-weight: 600; }
.team-mini { display: flex; align-items: center; gap: 14px; margin-top: 26px; }
.team-avatars { display: flex; }
.team-avatars img { width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--bg); object-fit: cover; margin-left: -10px; background: var(--bg-3); }
.team-avatars img:first-child { margin-left: 0; }
.team-mini .txt { font-size: 13px; line-height: 1.4; color: var(--fg-dim); }
.team-mini .txt b { color: var(--fg); font-weight: 600; }
.testi-side { display: grid; gap: 14px; }
.mini-quote { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r-card); padding: 22px; font-size: 15px; line-height: 1.55; color: var(--fg-dim); }
.mini-quote .em { color: var(--accent); font-size: inherit; }
.mini-quote b { color: var(--fg); display: block; margin-top: 12px; font-weight: 600; font-size: 13px; }
.mini-quote span { color: var(--fg-mute); font-size: 12px; }

/* ---------- faq ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; display: flex; align-items: flex-start; justify-content: space-between; gap: 26px; padding: 24px 0; font-family: var(--font-display); font-weight: 500; font-size: clamp(18px,1.8vw,22px); line-height: 1.3; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq .ic { flex-shrink: 0; width: 30px; height: 30px; border: 1px solid var(--line-2); border-radius: 50%; display: grid; place-items: center; font-size: 17px; margin-top: 2px; transition: all 260ms var(--ease); }
.faq details[open] .ic { background: var(--accent); border-color: var(--accent); color: var(--ink); transform: rotate(45deg); }
.faq .a { padding: 0 56px 28px 0; font-size: 15.5px; line-height: 1.65; color: var(--fg-dim); max-width: 80ch; }
.faq .a strong { color: var(--fg); font-weight: 600; }

/* ---------- final CTA ---------- */
.cta { text-align: center; position: relative; overflow: hidden; padding: clamp(88px,9vw,132px) 0; }
.cta-glow { position: absolute; pointer-events: none; width: 760px; height: 760px; left: 50%; top: -320px; transform: translateX(-50%); background: radial-gradient(circle, rgba(88,128,232,0.22), transparent 68%); }
.cta-inner { position: relative; z-index: 2; }
.cta h2 { max-width: 18ch; margin: 0 auto; }
.cta p { margin: 22px auto 0; font-size: 18px; color: var(--fg-dim); max-width: 50ch; }
.cta-actions { margin-top: 36px; display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.cta-meta { margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: center; gap: 18px 36px; font-size: 12px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--fg-mute); }
.cta-meta .tick { color: var(--accent); margin-right: 6px; }

/* ---------- footer ---------- */
.footer { background: #0A0B0E; border-top: 1px solid var(--line); padding: 44px 0 34px; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px 40px; }
.footer-brand { font-family: var(--font-body); font-weight: 600; font-size: 22px; letter-spacing: -0.02em; color: var(--fg); }
.footer-brand img { height: 26px; width: auto; display: block; }
.footer-blurb { margin: 14px 0 0; font-size: 14px; line-height: 1.55; color: var(--fg-dim); max-width: 44ch; }
.footer-blurb a { color: var(--fg); border-bottom: 1px solid var(--accent-line); }
.footer-addr { font-size: 13px; line-height: 1.7; color: var(--fg-dim); }
.footer-addr b { color: var(--fg); font-weight: 600; }
.footer-ack { margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 12.5px; line-height: 1.55; color: var(--fg-mute); max-width: 66ch; }
.footer-bottom { margin-top: 20px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 11.5px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--fg-mute); }
.footer-bottom a { color: var(--fg-mute); }
.footer-bottom a:hover { color: var(--accent); }

/* ---------- sticky CTA ---------- */
/* Floating bottom-right CTA removed: the top nav CTA is sticky and always visible. */

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 640ms var(--ease), transform 640ms var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce){ .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* ---------- case-study lightbox ---------- */
.case { cursor: pointer; }
.cs-modal { position: fixed; inset: 0; z-index: 120; display: none; align-items: center; justify-content: center; padding: clamp(14px,3vw,44px); }
.cs-modal.is-open { display: flex; }
.cs-backdrop { position: absolute; inset: 0; background: rgba(6,8,14,0.8); backdrop-filter: blur(6px); }
.cs-dialog { position: relative; z-index: 2; width: 100%; max-width: 1200px; max-height: 90vh; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; box-shadow: 0 40px 90px -30px rgba(0,0,0,0.75); }
.cs-scroll { max-height: 90vh; overflow-y: auto; overflow-x: hidden; }
/* Equal columns: gives the text more width (fewer lines) and keeps the media
   column's aspect-ratio images from growing tall enough to drive the height. */
.cs-body { display: grid; grid-template-columns: 1fr 1fr; }
/* Grid/flex children default to min-width:auto, which refuses to shrink below
   their content and can push a horizontal scrollbar. Let them shrink. */
.cs-body > * { min-width: 0; }
@media (max-width: 820px){ .cs-body { grid-template-columns: 1fr; } }
.cs-media { padding: 22px; display: flex; flex-direction: column; gap: 12px; background: #0d0f14; }
.cs-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cs-slide { border-radius: var(--r-media); overflow: hidden; background: var(--bg-3); }
.cs-slide:first-child { grid-column: 1 / -1; aspect-ratio: 16/10; }
.cs-slide:not(:first-child) { aspect-ratio: 16/10; }
.cs-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cs-slide--ph { display: grid; place-items: center; border: 1px dashed var(--line-2); background: rgba(255,255,255,0.02); }
.cs-slide--ph span { font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-mute); }
.cs-info { padding: 26px 28px 28px; display: flex; flex-direction: column; }
.cs-count { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-mute); margin-bottom: 16px; }
.cs-meta { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
/* count + tag share one line to save vertical space */
.cs-topline { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; min-width: 0; }
.cs-topline .cs-count, .cs-topline .cs-meta { margin-bottom: 0; }
.cs-topline .cs-count::after { content: "·"; margin-left: 8px; color: var(--fg-mute); }
.cs-title { font-family: var(--font-display); font-weight: 500; font-size: clamp(22px,2.4vw,30px); line-height: 1.15; letter-spacing: -0.01em; margin: 0 0 12px; }
.cs-text { font-size: 15px; line-height: 1.6; color: var(--fg-dim); margin: 0 0 18px; }
.cs-quote { margin: 0 0 18px; padding: 12px 16px; border-left: 2px solid var(--accent); background: rgba(180,136,242,0.07); border-radius: 0 var(--r-media) var(--r-media) 0; max-width: 100%; min-width: 0; }
.cs-quote blockquote { margin: 0; font-size: 15px; line-height: 1.5; color: var(--fg); overflow-wrap: break-word; }
.cs-quote figcaption { margin-top: 9px; font-size: 12px; color: var(--fg-mute); overflow-wrap: break-word; }
.cs-stats { display: flex; gap: 30px; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.cs-stat .num { display: block; font-family: var(--font-display); font-weight: 500; font-size: 24px; color: var(--accent); }
.cs-stat .lbl { display: block; margin-top: 4px; font-size: 12px; color: var(--fg-mute); }
/* CTA + secondary text link, pinned to the bottom of the info column */
.cs-actions { margin-top: auto; display: flex; align-items: center; flex-wrap: wrap; gap: 18px; }
.cs-actions .hero-textlink { font-size: 14px; }
.cs-close { position: absolute; top: 14px; right: 14px; z-index: 4; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line-2); background: rgba(12,13,16,0.65); color: var(--fg); font-size: 20px; line-height: 1; display: grid; place-items: center; cursor: pointer; transition: all 180ms var(--ease); }
.cs-close:hover { background: var(--fg); color: var(--ink); }
.cs-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 4; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-2); background: rgba(12,13,16,0.72); color: var(--fg); font-size: 20px; line-height: 1; display: grid; place-items: center; cursor: pointer; transition: all 180ms var(--ease); }
.cs-arrow:hover { background: var(--fg); color: var(--ink); }
.cs-prev { left: 16px; }
.cs-next { right: 16px; }
.cs-arrow.is-disabled { opacity: 0; pointer-events: none; }

/* ---------- insights feed (tight single row of small thumbnails) ---------- */
/* six items as two rows of three: bigger thumbs, better balance with the page */
.feed-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px 24px; }
.feed-card { cursor: pointer; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.feed-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.feed-thumb { aspect-ratio: 16/10; border-radius: var(--r-media); overflow: hidden; background: var(--bg-3); border: 1px solid var(--line); }
.feed-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 420ms var(--ease); }
.feed-card:hover .feed-thumb img { transform: scale(1.05); }
.feed-meta { display: flex; align-items: center; gap: 8px; font-size: 10px; letter-spacing: 0.09em; text-transform: uppercase; }
.feed-cat { color: var(--accent); }
.feed-date { color: var(--fg-mute); }
.feed-title { font-family: var(--font-body); font-size: 15px; font-weight: 500; line-height: 1.35; color: var(--fg); margin: 0; transition: color 180ms var(--ease); }
.feed-card:hover .feed-title { color: var(--accent-2); }
@media (max-width: 1080px){ .feed-row { grid-template-columns: repeat(2, 1fr); gap: 24px 20px; } }
@media (max-width: 720px){
  /* keep it one row: swipe horizontally, with the next card peeking */
  .feed-row { display: flex; overflow-x: auto; gap: 12px; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .feed-row::-webkit-scrollbar { display: none; }
  .feed-card { flex: 0 0 66%; scroll-snap-align: start; }
}

/* ---------- other services (cross-links to the sibling campaign pages) ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
/* icon and title share the top row (title wraps beside the icon); copy and the
   Explore link run full width beneath. Middle row takes the slack so the link
   bottom-aligns across cards of differing copy length. */
.svc-card { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto 1fr auto;
  gap: 10px 12px; align-items: center; min-width: 0;
  padding: 20px 18px 18px; background: var(--bg-2); border: 1px solid var(--line);
  border-radius: var(--r-card);
  transition: transform 240ms var(--ease), border-color 240ms var(--ease), background 240ms var(--ease); }
/* Each card takes one stop along the same purple->teal ramp as the slogan and
   nav links (five evenly interpolated stops between --accent and --accent-2).
   Soft/line variants are written out rather than using color-mix() so there's
   no dependency on newer colour syntax. Add a stop if a sixth service lands. */
.svc-card { --svc: var(--accent-2); --svc-soft: var(--accent-2-soft); --svc-line: var(--accent-2-line); }
.svc-card:nth-child(1) { --svc: #B488F2; --svc-soft: rgba(180,136,242,0.16); --svc-line: rgba(180,136,242,0.50); }
.svc-card:nth-child(2) { --svc: #A097EF; --svc-soft: rgba(160,151,239,0.16); --svc-line: rgba(160,151,239,0.50); }
.svc-card:nth-child(3) { --svc: #8CA6EC; --svc-soft: rgba(140,166,236,0.16); --svc-line: rgba(140,166,236,0.50); }
.svc-card:nth-child(4) { --svc: #77B5E9; --svc-soft: rgba(119,181,233,0.16); --svc-line: rgba(119,181,233,0.50); }
.svc-card:nth-child(5) { --svc: #63C4E6; --svc-soft: rgba(99,196,230,0.16);  --svc-line: rgba(99,196,230,0.50); }
.svc-card:hover { transform: translateY(-3px); border-color: var(--svc); background: #16171c; }
.svc-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
/* line icons drawn to the same weight as the rest of the UI; currentColor so the
   tile and glyph recolour together on hover */
.svc-icon { grid-column: 1; grid-row: 1;
  width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center;
  background: var(--svc-soft); border: 1px solid var(--svc-line); color: var(--svc);
  transition: background 240ms var(--ease), color 240ms var(--ease), border-color 240ms var(--ease); }
.svc-icon svg { width: 20px; height: 20px; display: block; }
.svc-card:hover .svc-icon { background: var(--svc); border-color: var(--svc); color: var(--ink); }
.svc-name { grid-column: 2; grid-row: 1;
  font-family: var(--font-display); font-weight: 600; font-size: 16.5px; line-height: 1.2; color: var(--fg); }
.svc-desc { grid-column: 1 / -1; grid-row: 2; font-size: 13px; line-height: 1.45; color: var(--fg-dim); }
.svc-go { grid-column: 1 / -1; grid-row: 3; align-self: end; justify-self: start;
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12.5px; font-weight: 500; color: var(--svc); }
.svc-go .arr { transition: transform 200ms var(--ease); }
.svc-card:hover .svc-go .arr { transform: translate(2px, -2px); }
@media (max-width: 1180px){ .svc-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px){
  /* one horizontally swipeable row, matching the insights feed, with the next
     card peeking so the scroll is discoverable */
  .svc-grid { display: flex; grid-template-columns: none; gap: 12px;
    overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
    scrollbar-width: none; }
  .svc-grid::-webkit-scrollbar { display: none; }
  .svc-card { flex: 0 0 72%; scroll-snap-align: start; padding: 16px 15px 15px; gap: 9px 11px; }
  .svc-icon { width: 34px; height: 34px; border-radius: 10px; }
  .svc-icon svg { width: 18px; height: 18px; }
  .svc-name { font-size: 15px; }
  .svc-desc { font-size: 12.5px; }
}

/* ---------- insights article lightbox (reuses the .cs-* modal shell) ---------- */
/* Two columns (image left, content right) so the excerpt fits without scrolling */
.ar-modal .cs-dialog { max-width: 1000px; }
.ar-body { display: grid; grid-template-columns: 0.72fr 1fr; }
.ar-body > * { min-width: 0; }
/* left column = photo + article links; right column = copy + actions */
.ar-media { grid-area: 1 / 1; padding: 22px 22px 16px; background: #0d0f14; }
.ar-links { grid-area: 2 / 1; padding: 0 22px 24px; background: #0d0f14; margin: 0; }
.ar-info { grid-area: 1 / 2; padding: 26px 28px 12px; display: flex; flex-direction: column; }
.ar-actions { grid-area: 2 / 2; padding: 0 28px 28px; align-self: end; margin-top: 0; }
.ar-photo { aspect-ratio: 4/3; border-radius: var(--r-media); overflow: hidden; background: var(--bg-3); }
.ar-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ar-title { font-family: var(--font-display); font-weight: 500; font-size: clamp(21px,2.2vw,27px); line-height: 1.16; letter-spacing: -0.01em; margin: 0 0 6px; }
.ar-date { font-size: 12px; color: var(--fg-mute); margin-bottom: 16px; }
.ar-text p { font-size: 14.5px; line-height: 1.6; color: var(--fg-dim); margin: 0 0 14px; overflow-wrap: break-word; }
.ar-source { font-size: 11.5px; color: var(--fg-mute); font-style: italic; margin: 2px 0 16px; }
/* links referenced in the article (launched sites, reports) — open in a new tab */
.ar-links { margin: 0 0 22px; }
.ar-linklist { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.ar-linklist a { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; line-height: 1; color: var(--accent-2); background: var(--accent-2-soft); border: 1px solid var(--accent-2-line); border-radius: var(--r-pill); padding: 7px 13px; transition: background 180ms var(--ease), color 180ms var(--ease); }
.ar-linklist a:hover { background: var(--accent-2); color: var(--ink); }
.ar-linklist .arr { font-size: 11px; }
@media (max-width: 820px){
  /* stack: photo on top (16/9 matches the shared .cs-arrow divider position),
     then copy, then links, then actions (source order) */
  .ar-body { grid-template-columns: 1fr; }
  .ar-media, .ar-links, .ar-info, .ar-actions { grid-area: auto; }
  .ar-media { padding: 10px; }
  .ar-photo { aspect-ratio: 16/9; }
  .ar-info { padding: 12px 14px 0; }
  .ar-links { background: none; padding: 0 14px; margin: 0 0 12px; }
  .ar-actions { padding: 0 14px 14px; align-self: auto; }
  .ar-title { font-size: 19px; margin: 0 0 5px; }
  .ar-date { font-size: 11px; margin-bottom: 10px; }
  .ar-text p { font-size: 13px; line-height: 1.45; margin: 0 0 10px; }
  /* it's an excerpt anyway, so cap it rather than make the popup scroll */
  .ar-text { display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
  .ar-source { font-size: 11px; margin: 0 0 10px; }
  .ar-links { margin: 0 0 12px; }
  .ar-linklist a { font-size: 11.5px; padding: 5px 11px; }
  .ar-info .btn { align-self: stretch; width: 100%; justify-content: center; padding: 10px 14px; font-size: 14px; }
}

/* ---------- team profile lightbox (reuses the .cs-* modal shell) ---------- */
.team-card { cursor: pointer; }
.team-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
/* Wider than the old 900px, and weighted toward the text column, so the CTA and
   its secondary link sit on one line (as they do in the case-study modal)
   without the aspect-ratio photo growing tall enough to drive the height. */
.tm-modal .cs-dialog { max-width: 1000px; }
.tm-body { display: grid; grid-template-columns: 0.72fr 1fr; }
.tm-body > * { min-width: 0; }
.tm-media { padding: 22px; background: #0d0f14; }
.tm-photo { aspect-ratio: 4/5; border-radius: var(--r-media); overflow: hidden; background: var(--bg-3); }
.tm-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tm-info { padding: 26px 28px 28px; display: flex; flex-direction: column; }
.tm-name { font-family: var(--font-display); font-weight: 500; font-size: clamp(24px,2.6vw,32px); line-height: 1.1; letter-spacing: -0.01em; margin: 0 0 16px; }
.tm-h { font-family: var(--font-body); font-size: 11px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-mute); margin: 0 0 8px; }
.tm-about { font-size: 15px; line-height: 1.6; color: var(--fg-dim); margin: 0 0 18px; overflow-wrap: break-word; }
.tm-tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0 0 18px; }
.tm-tags li { font-size: 12.5px; line-height: 1; color: var(--fg); background: var(--accent-soft); border: 1px solid var(--accent-line); border-radius: var(--r-pill); padding: 6px 12px; }
.tm-exp { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 7px; }
.tm-exp li { position: relative; padding-left: 20px; font-size: 14px; line-height: 1.45; color: var(--fg-dim); }
.tm-exp li::before { content: "\2192"; position: absolute; left: 0; top: 0; color: var(--accent); }
@media (max-width: 820px){
  .tm-body { grid-template-columns: 1fr; }
  .tm-media { padding: 10px; }
  /* 16/9 matches the case modal, so the shared .cs-arrow divider position applies */
  .tm-photo { aspect-ratio: 16/9; }
  .tm-info { padding: 10px 14px 12px; }
  .tm-name { font-size: 21px; margin: 0 0 8px; }
  .tm-h { margin-bottom: 4px; }
  .tm-about { font-size: 13px; line-height: 1.4; margin: 0 0 8px; }
  .tm-tags { gap: 6px; margin: 0 0 8px; }
  .tm-tags li { font-size: 11.5px; padding: 4px 10px; }
  .tm-exp { gap: 3px; margin: 0 0 10px; }
  .tm-exp li { font-size: 12.5px; padding-left: 18px; }
  .tm-info .btn { align-self: stretch; width: 100%; justify-content: center; padding: 10px 14px; font-size: 14px; }
  .tm-info [data-tm-cta] .arr { display: none; }
}
@media (max-width: 560px){
  .cs-arrow { width: 40px; height: 40px; }
  .cs-info { padding: 24px 22px 28px; }
}
/* Mobile case-study media: one swipeable frame (primary first), others by swipe;
   nav arrows ride the image/text divider. Placed last so it wins the cascade. */
@media (max-width: 820px){
  .cs-modal { padding: 14px; }
  /* Compressed to fit the viewport without inner scrolling. */
  .cs-dialog, .cs-scroll { max-height: calc(100vh - 28px); max-height: calc(100dvh - 28px); }
  .cs-media { padding: 10px; }
  .cs-gallery { display: flex; grid-template-columns: none; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .cs-gallery::-webkit-scrollbar { display: none; }
  .cs-media .cs-slide { flex: 0 0 100%; scroll-snap-align: start; aspect-ratio: 16/9; }
  .cs-arrow { top: calc(56.25vw - 17px); bottom: auto; transform: translateY(-50%); }
  .cs-info { padding: 14px 16px 16px; }
  .cs-topline { margin-bottom: 8px; gap: 6px; }
  .cs-title { font-size: 20px; line-height: 1.14; margin: 0 0 8px; }
  .cs-text { font-size: 13px; line-height: 1.45; margin: 0 0 10px;
    display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
  .cs-quote { margin: 0 0 10px; padding: 9px 12px; }
  .cs-quote blockquote { font-size: 13px; line-height: 1.4; }
  .cs-quote figcaption { margin-top: 5px; font-size: 11px; }
  .cs-stats { gap: 16px; padding: 10px 0; margin-bottom: 12px; }
  .cs-stat .num { font-size: 18px; }
  .cs-stat .lbl { font-size: 11px; margin-top: 2px; }
  .cs-info .btn { align-self: stretch; width: 100%; justify-content: center; padding: 10px 14px; font-size: 14px; }
  .cs-info [data-cs-cta] .arr { display: none; }
  /* stack CTA over the secondary text link (shared by both modals) */
  .cs-actions { flex-direction: column; align-items: center; gap: 10px; }
  .cs-actions .hero-textlink { font-size: 13px; }
}

/* ============================================================
   Polish layer: film-grain, crafted hero entrance
   ============================================================ */

/* Film grain: one fixed full-viewport overlay above everything. It
   modulates what's beneath (overlay blend) rather than adding grey, so
   dark stays dark and mids get a faint tactile break-up. Never blocks
   clicks. (Renders blank in screenshot exports; it's live in-browser.) */
body::after {
  content: "";
  position: fixed; inset: 0; z-index: 9999;
  pointer-events: none;
  opacity: 0.03;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
}

/* Crafted entrance: hero column assembles top-down on load, once. */
@keyframes jbFadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: no-preference){
  /* Base opacity stays 1: the animation's backwards fill hides each item
     during its delay, and forwards fill holds it visible after. So if the
     animation never runs, the hero content is still visible. */
  .hero-grid > div:first-child > .reveal {
    animation-name: jbFadeUp;
    animation-duration: 0.62s;
    animation-timing-function: var(--ease);
    animation-fill-mode: both;
  }
  .hero-grid > div:first-child > .eyebrow  { animation-delay: 0.02s; }
  .hero-grid > div:first-child > h1         { animation-delay: 0.10s; }
  .hero-grid > div:first-child > .hero-sub  { animation-delay: 0.18s; }
  .hero-grid > div:first-child > .intent    { animation-delay: 0.26s; }
  .hero-grid > div:first-child > .hero-cta  { animation-delay: 0.34s; }
}

/* ============================================================
   Mobile refinements (nav, hero CTA, intent copy, team, sticky CTA).
   Placed last so these win the cascade against the base rules above.
   ============================================================ */
@media (max-width: 620px){
  /* Nav ~25% shorter with a tighter CTA */
  .nav-inner { height: 50px; }
  .brand-lottie { height: 22px; width: 87px; }
  .brand img { height: 16px; }
  .nav-cta { padding: 8px 15px; font-size: 13px; }
  /* Keep "View our work" + "Why Juicebox" on one line */
  .hero-cta { gap: 14px; flex-wrap: nowrap; }
  .hero-cta .btn { padding-left: 16px; padding-right: 16px; }
  /* Shorten the hero eyebrow on mobile, and tighten the space above it (~15% less) */
  .eyebrow-tail { display: none; }
  .hero { padding-top: 24px; }
  /* Let the intent copy and case link flow without forced breaks */
  .echo-br { display: none; }
  .echo-link { margin-top: 0; }
  /* Stack the team credibility row: avatars above the text */
  .team-mini { flex-direction: column; align-items: flex-start; gap: 12px; }
}
@media (max-width: 500px){
  /* Once the phone number drops out, pin the CTA to the frame's right edge */
  .nav-cta { margin-left: auto; }
}
