/* =========================================================
   NEXTGEN CONSULTING — design system
   Light, warm, simple & creative: white/ivory surfaces,
   golden-yellow accent, soft charcoal ink, round card UI
   with numbered badges & tile-avatars (referencing product UI).
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Geologica:wght@400;500;600;700&family=Onest:wght@400;500;600;700;800&display=swap');

:root{
  --bg: #faf7f0;
  --bg-soft: #f3efe3;
  --surface: #ffffff;
  --surface-2: #fffdf8;
  --border: rgba(23,22,15,.08);
  --border-strong: rgba(23,22,15,.16);
  --text: #18181b;
  --muted: #6b6a63;
  --muted-2: #9c9a90;

  --yellow: #ffc933;
  --yellow-deep: #f0af00;
  --yellow-soft: #fff2cc;
  --yellow-ink: #4a3900;

  --coral: #ff7a5c;
  --coral-soft: #ffe3db;
  --coral-ink: #7a2b17;

  --ink: #17181c;
  --ink-soft: #eceae4;

  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --radius-btn: 12px;
  --container: 1240px;

  --font: 'Onest', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --display: 'Geologica', 'Onest', system-ui, sans-serif;

  --ease: cubic-bezier(.19,1,.22,1);
}

*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  background:var(--bg);
  color:var(--text);
  font-family:var(--font);
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
  line-height:1.5;
  overflow-x:hidden;
}
img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
ul{ margin:0; padding:0; list-style:none; }
button{ font-family:inherit; }

/* large tilted "paper" accents peeking from behind section content —
   the same handmade-paper motif as the hero collage, planted directly
   inside each section (static, scrolls with the page) so empty margins
   read as an intentional stack of sheets rather than dead space */
.bg-paper{ position:absolute; z-index:0; border-radius:var(--radius-lg); pointer-events:none; }
@media (max-width:900px){ .bg-paper{ display:none; } }

.bg-paper-yellow{
  width:420px; height:420px; background:var(--yellow-soft);
  border:1px solid rgba(240,175,0,.25);
  left:-170px; top:40px; transform:rotate(-3deg);
}
.bg-paper-coral{
  width:380px; height:380px; background:var(--coral-soft);
  border:1px solid rgba(255,122,92,.25);
  right:-160px; top:10%; transform:rotate(3deg);
}
.bg-paper-ink{
  width:300px; height:300px; background:var(--ink-soft);
  border:1px solid var(--border-strong);
  right:-130px; bottom:0; transform:rotate(-2deg);
}
.bg-paper-yellow-sm{
  width:260px; height:260px; background:var(--yellow-soft);
  border:1px solid rgba(240,175,0,.25);
  left:-120px; bottom:-20px; transform:rotate(2deg);
}
.bg-paper-coral-sm{
  width:240px; height:240px; background:var(--coral-soft);
  border:1px solid rgba(255,122,92,.25);
  right:-110px; top:-20px; transform:rotate(-3deg);
}

/* subtle film-grain texture for tactile, less "flat" feel */
body::after{
  content:"";
  position:fixed; inset:0; z-index:999; pointer-events:none;
  opacity:.035; mix-blend-mode:multiply;
  background-image:url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="160" height="160"><filter id="n"><feTurbulence type="fractalNoise" baseFrequency="0.85" numOctaves="2" stitchTiles="stitch"/></filter><rect width="100%25" height="100%25" filter="url(%23n)"/></svg>');
}

.container{
  width:min(calc(100% - 40px), var(--container));
  margin:0 auto;
  position:relative;
  z-index:1;
}
@media (max-width:760px){
  .container{ width:min(calc(100% - 28px), var(--container)); }
}

section{ position:relative; z-index:1; padding:110px 0; }
@media (max-width:960px){ section{ padding:80px 0; } }
@media (max-width:640px){ section{ padding:60px 0; } }

h1,h2,h3,h4{
  margin:0;
  font-family:var(--display);
  font-weight:600;
  letter-spacing:-0.035em;
  line-height:1.12;
  text-transform:none;
}
p{ margin:0; color:var(--muted); }

em{
  font-family:var(--display);
  font-style:normal;
  font-weight:600;
}

/* highlighter-marker effect for key words */
.mark{
  position:relative;
  background-image:linear-gradient(120deg, var(--yellow) 0%, var(--yellow) 100%);
  background-repeat:no-repeat;
  background-size:100% 42%;
  background-position:0 82%;
  padding:0 3px;
  box-decoration-break:clone;
  -webkit-box-decoration-break:clone;
}
@media (prefers-reduced-motion: no-preference){
  .mark{
    background-size:0% 42%;
    transition:background-size .7s var(--ease);
  }
  .reveal.visible .mark,
  .hero .mark,
  .seo-hero .mark,
  .cases-hero .mark,
  .blog-hero .mark{
    background-size:100% 42%;
  }
}

/* ---------- eyebrow / section kicker ---------- */
.eyebrow{
  display:inline-flex; align-items:center; gap:10px;
  font-size:12.5px;
  color:var(--muted);
  font-weight:700;
  letter-spacing:.04em;
  text-transform:none;
  margin-bottom:16px;
  padding:0;
  border:none;
  background:none;
  border-radius:0;
}
.eyebrow::before{
  content:"";
  width:20px; height:2px;
  border-radius:2px;
  background:var(--yellow-deep);
  box-shadow:none;
  flex:none;
}

.section-head{
  display:flex; align-items:flex-end; justify-content:space-between; gap:40px;
  max-width:none;
  margin-bottom:52px;
  position:relative;
}
.section-head .head-text{ max-width:640px; }
.section-head h2{
  font-size:clamp(30px,4vw,44px);
  margin-bottom:14px;
  color:var(--text);
  max-width:16ch;
}
.section-head p{ font-size:16.5px; color:var(--muted); max-width:48ch; }
.section-head.center{ text-align:center; justify-content:center; }
.section-head.center .head-text{ margin:0 auto; }
@media (max-width:760px){ .section-head{ flex-direction:column; align-items:flex-start; } }

/* ---------- buttons ---------- */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:10px;
  min-height:48px; padding:0 22px;
  border-radius:var(--radius-btn);
  font-family:var(--font);
  font-weight:700; font-size:14.5px;
  letter-spacing:-.01em;
  border:1.5px solid transparent;
  cursor:pointer;
  transition:transform .25s var(--ease), box-shadow .25s var(--ease), background-color .25s ease, color .25s ease, border-color .25s ease;
  white-space:nowrap;
}
.btn-primary{
  background:var(--yellow);
  color:var(--ink);
  border-color:rgba(23,24,28,.12);
  box-shadow:none;
}
.btn-primary:hover{
  transform:translateY(-1px);
  background:#ffd34a;
  box-shadow:0 8px 18px -10px rgba(23,22,15,.35);
}
.btn-dark{
  background:var(--ink);
  color:#fff;
  border-color:var(--ink);
}
.btn-dark:hover{
  transform:translateY(-1px);
  box-shadow:0 8px 18px -10px rgba(0,0,0,.4);
}
.btn-ghost{
  background:transparent;
  color:var(--text);
  border-color:var(--border-strong);
}
.btn-ghost:hover{
  transform:translateY(-1px);
  border-color:var(--text);
  background:var(--surface);
}
.btn-block{ width:100%; }
.btn svg{ width:16px; height:16px; flex:none; }

/* Header CTA — denser, less “soap” */
.header-cta .btn{
  min-height:42px;
  padding:0 16px;
  font-size:13.5px;
}

/* ---------- header ---------- */
.site-header{
  position:fixed; top:0; left:0; right:0; z-index:100;
  padding:20px 0;
  transition:background-color .3s ease, border-color .3s ease, padding .3s ease, box-shadow .3s ease;
  border-bottom:1px solid transparent;
}
.site-header.scrolled{
  background:rgba(250,247,240,.85);
  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);
  border-bottom-color:var(--border);
  padding:14px 0;
}
.header-inner{ display:flex; align-items:center; justify-content:space-between; gap:24px; }

.logo{ display:flex; align-items:center; gap:10px; font-weight:800; font-size:19px; letter-spacing:-.02em; }
.logo-mark{
  width:38px; height:38px; border-radius:11px;
  background:var(--ink);
  display:flex; align-items:center; justify-content:center;
  flex:none; overflow:hidden;
}
.logo-mark svg{ width:19px; height:19px; }
.logo-mark-img{ border-radius:50%; background:none; }
.logo-mark-img img{ width:100%; height:100%; object-fit:cover; border-radius:50%; }
.logo-mark-img.pop img{ animation:logoLidPop .6s cubic-bezier(.34,1.56,.64,1); }
@keyframes logoLidPop{
  0%{ transform:rotate(0deg) scale(1); }
  28%{ transform:rotate(-22deg) scale(1.14); }
  60%{ transform:rotate(10deg) scale(1.05); }
  100%{ transform:rotate(0deg) scale(1); }
}
.logo span.muted{ color:var(--muted-2); font-weight:600; }

.nav{ display:flex; align-items:center; gap:36px; }
.nav a{
  font-size:14.5px; font-weight:600; color:var(--muted);
  transition:color .25s ease;
  position:relative;
}
.nav a::after{
  content:"";
  position:absolute; left:0; right:100%; bottom:-6px;
  height:2px; border-radius:2px;
  background:var(--yellow-deep);
  transition:right .35s var(--ease);
}
.nav a:hover{ color:var(--text); }
.nav a:hover::after{ right:0; }
.header-cta{ display:flex; align-items:center; gap:14px; }
/* denser CTA — single definition */

.burger{
  display:none; width:42px; height:42px; border-radius:12px;
  border:1px solid var(--border-strong); background:var(--surface);
  align-items:center; justify-content:center; cursor:pointer;
}
.burger span, .burger span::before, .burger span::after{
  content:""; display:block; width:18px; height:2px; background:var(--text); border-radius:2px;
  position:relative; transition:transform .25s ease, opacity .25s ease;
}
.burger span::before{ position:absolute; top:-6px; }
.burger span::after{ position:absolute; top:6px; }
.burger.active span{ background:transparent; }
.burger.active span::before{ transform:rotate(45deg); top:0; }
.burger.active span::after{ transform:rotate(-45deg); top:0; }

.mobile-menu{
  position:fixed; inset:0; z-index:99;
  background:var(--bg);
  display:flex; flex-direction:column; align-items:center; justify-content:center; gap:26px;
  opacity:0; visibility:hidden; transform:translateY(-8px);
  transition:opacity .3s ease, transform .3s ease, visibility .3s;
}
.mobile-menu.open{ opacity:1; visibility:visible; transform:none; }
.mobile-menu a{ font-size:26px; font-weight:700; text-transform:none; }
.mobile-menu .btn{ margin-top:12px; }

@media (max-width:900px){
  .nav, .header-cta .btn-ghost{ display:none; }
  .burger{ display:flex; }
}

/* ---------- breadcrumb ---------- */
.breadcrumb{
  padding:96px 0 10px;
  font-size:13px; color:var(--muted-2); font-weight:600;
  line-height:1.6;
}
.breadcrumb a{
  color:var(--muted);
  padding:3px 8px;
  margin:0 2px 0 -8px;
  border-radius:999px;
  transition:color .2s ease, background .2s ease;
}
.breadcrumb a:hover{ color:var(--text); background:var(--yellow-soft); }

/* =========================================================
   HERO
   ========================================================= */
.hero{ padding:172px 0 90px; position:relative; }
.hero-grid{
  display:grid; grid-template-columns:1.05fr .95fr; gap:60px; align-items:center;
}
@media (max-width:980px){ .hero-grid{ grid-template-columns:1fr; } }

.chip-row{ display:flex; flex-wrap:wrap; gap:10px; margin-bottom:24px; }
.chip{
  font-size:13px; font-weight:700;
  padding:8px 16px; border-radius:999px;
  border:1px solid var(--border-strong);
  color:var(--muted);
  background:var(--surface);
}

.hero h1{
  font-size:clamp(34px,4.8vw,56px);
  color:var(--text);
  margin-bottom:24px;
  max-width:18ch;
}
.hero-lead{ font-size:18px; max-width:50ch; margin-bottom:34px; }

.tag-list{ display:flex; flex-wrap:wrap; gap:12px; margin-bottom:38px; }
.tag-list li{
  display:flex; align-items:center; gap:8px;
  font-size:14px; font-weight:600; color:var(--text);
  padding:10px 18px 10px 14px;
  border-radius:999px;
  background:var(--surface);
  border:1px solid var(--border);
}
.tag-list li::before{
  content:"";
  width:7px; height:7px; border-radius:50%;
  background:var(--yellow-deep);
}
.hero-actions{ display:flex; flex-wrap:wrap; gap:16px; align-items:center; }

/* ---------- hero visual: one confident product frame instead of
   scattered floating cards, plus two small annotation chips for depth ---------- */
.hero-visual{ position:relative; min-height:460px; }

/* a plain tilted paper shape behind the frame — like a sheet peeking out,
   deliberately not a glowing gradient orb */
.paper-shape{
  position:absolute; z-index:0;
  width:82%; height:78%; border-radius:var(--radius-lg);
  background:var(--yellow-soft);
  border:1px solid rgba(240,175,0,.25);
  bottom:-6%; left:-6%;
  transform:rotate(-5deg);
}

.hero-frame{
  position:relative; z-index:2;
  margin:14px 9% 0 3%;
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:var(--radius-lg);
  box-shadow:0 34px 64px -28px rgba(23,22,15,.28);
  transform:rotate(-2deg);
  overflow:hidden;
}
.hero-frame-bar{
  display:flex; align-items:center; gap:8px;
  padding:16px 20px; border-bottom:1px solid var(--border);
  background:var(--bg-soft);
}
.hero-frame-dot{ width:9px; height:9px; border-radius:50%; background:var(--border-strong); flex:none; }
.hero-frame-dot.on{ background:var(--yellow-deep); }
.hero-frame-tabs{ display:flex; gap:16px; margin-left:12px; }
.hero-frame-tabs em{ font-style:normal; font-size:12px; font-weight:700; color:var(--muted-2); }
.hero-frame-tabs em.on{ color:var(--text); }
.hero-frame-body{ padding:24px; }

.mockup-kanban.lg .col{ padding:14px; gap:10px; }
.mockup-kanban.lg .chip{ height:34px; }
.mockup-kanban .col-label{ display:block; font-size:11px; font-weight:700; color:var(--muted-2); margin-bottom:2px; }
.mockup-kanban .chip.yellow{ background:var(--yellow-soft); border-color:transparent; }
.mockup-kanban .chip.coral{ background:var(--coral-soft); border-color:transparent; }
.mockup-kanban .chip.short{ width:58%; }

.float-chip{
  position:absolute; z-index:3;
  display:flex; align-items:center; gap:12px;
  background:var(--surface); border:1px solid var(--border);
  border-radius:var(--radius-md);
  padding:14px 18px;
  box-shadow:0 22px 42px -20px rgba(23,22,15,.32);
}
.float-chip svg{ width:18px; height:18px; color:var(--yellow-deep); flex:none; }
.float-chip strong{ display:block; font-size:13.5px; color:var(--text); }
.float-chip span{ font-size:12px; color:var(--muted); }
.float-chip-a{ top:2%; left:0; transform:rotate(-3deg); max-width:220px; align-items:flex-start; }
.float-chip-a span{ font-size:12.5px; color:var(--text); font-weight:600; line-height:1.4; }
.float-chip-b{ bottom:6%; right:0; transform:rotate(2deg); }

@media (max-width:980px){
  .hero-visual{ min-height:400px; max-width:520px; margin:0 auto; }
  .hero-frame{ margin:14px 4% 0; }
}
@media (max-width:560px){
  .hero-visual{ min-height:360px; }
  .hero-frame{ transform:none; margin-top:26px; }
  .float-chip-b{ display:none; }
  .float-chip-a{ max-width:170px; padding:10px 14px; }
}

/* =========================================================
   PHOTO TINT — warm duotone treatment so photography reads
   as part of the brand rather than generic stock imagery
   ========================================================= */
.photo-tint{ position:relative; overflow:hidden; }
.photo-tint img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.photo-tint::before{
  content:""; position:absolute; inset:0; z-index:1;
  mix-blend-mode:multiply; pointer-events:none;
}
.photo-tint.tint-yellow::before{ background:linear-gradient(155deg, rgba(255,201,51,.6), rgba(23,24,28,.3)); }
.photo-tint.tint-coral::before{ background:linear-gradient(155deg, rgba(255,122,92,.55), rgba(23,24,28,.35)); }
.photo-tint.tint-ink::before{ background:linear-gradient(155deg, rgba(23,24,28,.65), rgba(255,201,51,.3)); }

/* =========================================================
   ICON TILES
   ========================================================= */
.tile{
  width:54px; height:54px; border-radius:16px;
  display:flex; align-items:center; justify-content:center;
  flex:none;
}
.tile svg{ width:24px; height:24px; }
.tile-yellow{ background:var(--yellow); color:var(--ink); }
.tile-dark{ background:var(--ink); color:#fff; }
.tile-coral{ background:var(--coral-soft); color:var(--coral-ink); }

/* ---------- numbered step badge (referencing product UI "1 2 3" cards) ---------- */
.step-badge{
  width:42px; height:42px; border-radius:50%;
  background:var(--ink); color:#fff;
  display:flex; align-items:center; justify-content:center;
  font-weight:800; font-size:15px;
  flex:none;
}

/* =========================================================
   SERVICES — simple animated cards (no numbering): each one
   leads with a live mini-mockup, then a short explanation
   ========================================================= */
.card{
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:var(--radius-lg);
  padding:34px 30px;
  transition:transform .4s var(--ease), border-color .4s var(--ease), box-shadow .4s var(--ease);
  position:relative;
  overflow:hidden;
}
.card::before{
  content:"";
  position:absolute; left:24px; right:24px; top:0;
  height:3px; border-radius:0 0 4px 4px;
  background:linear-gradient(90deg, var(--yellow), var(--coral));
  opacity:0;
  transform:scaleX(.4);
  transform-origin:left center;
  transition:opacity .35s ease, transform .45s var(--ease);
}
.card:hover{
  transform:translateY(-6px);
  border-color:var(--border-strong);
  box-shadow:0 30px 50px -30px rgba(23,22,15,.2);
}
.card:hover::before{
  opacity:1;
  transform:scaleX(1);
}

.service-cards{ display:grid; grid-template-columns:repeat(3,1fr); gap:24px; align-items:stretch; }
@media (max-width:900px){ .service-cards{ grid-template-columns:1fr; } }

.feature-card{
  display:flex; flex-direction:column; gap:16px;
  height:100%;
  box-sizing:border-box;
}
.feature-card-visual{
  margin-bottom:2px; min-height:112px;
  display:flex; align-items:center; justify-content:center;
  border-radius:18px;
  background:
    radial-gradient(120% 80% at 10% 0%, rgba(255,201,51,.18), transparent 55%),
    radial-gradient(90% 70% at 100% 100%, rgba(255,122,92,.10), transparent 50%),
    var(--bg-soft);
  padding:18px 14px;
}
.feature-card-visual .mockup{ margin-top:0; width:100%; }
.feature-card h3{ font-size:21px; color:var(--text); }
.feature-card p{ font-size:14.5px; flex:1; }
.feature-card .post-link{ margin-top:auto; }

.service-checklist{ display:flex; flex-direction:column; gap:12px; margin-top:4px; }
.service-checklist li{ display:flex; align-items:flex-start; gap:11px; font-size:14px; color:var(--text); line-height:1.4; }
.service-checklist svg{ width:18px; height:18px; flex:none; margin-top:2px; color:var(--yellow-deep); }

/* decorative mini mockups inside service cards — no stock imagery needed */
.mockup{ margin-top:8px; }
.mockup-browser{ background:var(--bg-soft); border-radius:16px; padding:16px; flex:1; }
.mockup-browser .dots{ display:flex; gap:6px; margin-bottom:16px; }
.mockup-browser .dots span{ width:8px; height:8px; border-radius:50%; background:var(--border-strong); }
.mockup-browser .lines span{ display:block; height:9px; border-radius:6px; background:var(--border-strong); margin-bottom:9px; }
.mockup-browser .lines span:nth-child(1){ width:72%; }
.mockup-browser .lines span:nth-child(2){ width:46%; background:var(--yellow); }
.mockup-browser .lines span:nth-child(3){ width:58%; }
.mockup-browser .lines span:last-child{ margin-bottom:0; }

.mockup-kanban{ display:flex; gap:10px; }
.mockup-kanban .col{ flex:1; background:var(--bg-soft); border-radius:12px; padding:10px; display:flex; flex-direction:column; gap:8px; }
.mockup-kanban .chip{ height:24px; border-radius:8px; background:#fff; border:1px solid var(--border); }
.mockup-kanban .col:nth-child(2) .chip:first-child{ background:var(--yellow-soft); border-color:transparent; }
.mockup-kanban .col:nth-child(3) .chip:first-child{ background:var(--coral-soft); border-color:transparent; }

.mockup-sync{ display:flex; align-items:center; background:var(--bg-soft); border-radius:16px; padding:18px; flex:1; }
.sync-box{
  width:52px; height:40px; border-radius:10px; flex:none;
  background:#fff; border:1px solid var(--border-strong);
  display:flex; align-items:center; justify-content:center;
  font-size:12px; font-weight:800; color:var(--muted-2); letter-spacing:.02em;
}
.sync-line{ flex:1; height:2px; margin:0 12px; position:relative; background-image:repeating-linear-gradient(to right, var(--border-strong) 0 6px, transparent 6px 12px); }
.sync-dot{
  position:absolute; top:50%; left:8%; transform:translate(-50%,-50%);
  width:24px; height:24px; border-radius:50%; background:var(--yellow);
  animation:sync-travel 3.6s cubic-bezier(.65,0,.35,1) infinite;
}
@keyframes sync-travel{
  0%, 12%{ left:8%; }
  50%, 62%{ left:92%; }
  100%{ left:8%; }
}

.mockup-flow{ display:flex; align-items:center; background:var(--bg-soft); border-radius:16px; padding:18px 20px; }
.mockup-flow .node{
  width:32px; height:32px; border-radius:50%; flex:none;
  background:var(--bg-soft); border:1px solid var(--border-strong);
  display:flex; align-items:center; justify-content:center;
}
.mockup-flow .node svg{ width:14px; height:14px; }
.mockup-flow .node.active{ background:var(--yellow); border-color:var(--yellow); }
.mockup-flow .line{ flex:1; height:2px; position:relative; background-image:repeating-linear-gradient(to right, var(--border-strong) 0 6px, transparent 6px 12px); }
.mockup-flow .line::after{
  content:""; position:absolute; top:50%; left:0;
  width:8px; height:8px; margin-top:-4px; border-radius:50%;
  background:var(--yellow-deep); opacity:0;
  animation:flow-travel 2.4s ease-in-out infinite;
}
.mockup-flow .line:nth-child(4)::after{ animation-delay:1.2s; }
@keyframes flow-travel{
  0%{ left:0; opacity:0; }
  8%{ opacity:1; }
  92%{ opacity:1; }
  100%{ left:calc(100% - 8px); opacity:0; }
}

@media (prefers-reduced-motion:reduce){
  .sync-dot, .mockup-flow .line::after{ animation:none; }
}

/* =========================================================
   PILLS (shared)
   ========================================================= */
.pill{
  display:inline-flex; align-items:center; gap:8px; align-self:flex-start;
  font-size:12.5px; font-weight:700;
  padding:7px 14px; border-radius:999px;
}
.pill-yellow{ background:var(--yellow-soft); color:var(--yellow-ink); }
.pill-coral{ background:var(--coral-soft); color:var(--coral-ink); }
.pill-dark{ background:var(--ink-soft); color:var(--text); }

/* =========================================================
   FEATURED CASE — spotlight layout
   ========================================================= */
.feature-case{
  background:var(--surface); border:1px solid var(--border); border-radius:var(--radius-xl);
  padding:56px; display:grid; grid-template-columns:1fr .85fr; gap:56px; align-items:center;
  margin-bottom:24px;
}
@media (max-width:900px){ .feature-case{ grid-template-columns:1fr; padding:32px 24px; gap:32px; } }
.feature-case h3{ font-size:clamp(24px,3vw,30px); margin:16px 0 20px; color:var(--text); }
.feature-case > div > p{ font-size:15px; margin-bottom:28px; max-width:52ch; }
.feature-cols{ display:grid; grid-template-columns:repeat(3,1fr); gap:20px; }
@media (max-width:560px){ .feature-cols{ grid-template-columns:1fr; gap:16px; } }
.feature-cols div span{ display:block; font-size:11.5px; font-weight:700; text-transform:uppercase; letter-spacing:.06em; color:var(--muted-2); margin-bottom:6px; }
.feature-cols div p{ font-size:13.5px; color:var(--text); margin:0; }

.feature-visual{
  background:var(--ink); border-radius:var(--radius-lg);
  min-height:320px;
}
.feature-visual .tile{
  position:absolute; z-index:2; top:22px; right:22px;
  width:56px; height:56px; border-radius:16px;
  box-shadow:0 14px 26px -12px rgba(0,0,0,.4);
}
.feature-visual .tile svg{ width:24px; height:24px; }
.feature-badge{
  position:absolute; z-index:2; left:22px; bottom:22px;
  background:#fff; border-radius:var(--radius-md); padding:16px 20px;
  box-shadow:0 20px 40px -20px rgba(0,0,0,.5);
  max-width:200px;
}
.feature-badge span{ display:block; font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:.06em; color:var(--muted-2); margin-bottom:4px; }
.feature-badge b{ font-size:14px; color:var(--text); font-weight:700; }

/* =========================================================
   CASES — secondary grid
   ========================================================= */
.cases-grid{ display:grid; grid-template-columns:repeat(2,1fr); gap:24px; }
@media (max-width:760px){ .cases-grid{ grid-template-columns:1fr; } }

.case-card{ display:flex; flex-direction:column; gap:18px; }
.case-card h3{ font-size:21px; color:var(--text); }
.case-card p{ font-size:14.5px; }
.case-result{
  margin-top:auto; padding-top:16px; border-top:1px solid var(--border);
  font-size:13.5px; color:var(--text);
}
.case-result b{ color:var(--yellow-ink); font-weight:700; }

.cases-more{ text-align:center; margin-top:32px; }

/* =========================================================
   PROCESS — ascending "staircase" rhythm instead of three
   identical cards in a row; each step sits a little higher
   ========================================================= */
.process-list{ display:grid; grid-template-columns:repeat(3,1fr); gap:24px; position:relative; }
@media (max-width:900px){ .process-list{ grid-template-columns:1fr; } }
.process-step{
  background:var(--surface); border:1px solid var(--border); border-radius:var(--radius-lg);
  padding:34px 28px; position:relative;
  transition:border-color .3s ease, box-shadow .35s var(--ease);
}
.process-step:hover{
  border-color:rgba(240,175,0,.45);
  box-shadow:0 22px 40px -28px rgba(23,22,15,.28);
}
.process-step .step-badge{ margin-bottom:24px; font-family:var(--display); }
.process-step h3{ font-size:20px; color:var(--text); margin-bottom:12px; }
.process-step p{ font-size:14.5px; }
@media (min-width:901px){
  .process-step:nth-child(1){ transform:translateY(48px); }
  .process-step:nth-child(2){ transform:translateY(16px); }
  .process-step:nth-child(3){ transform:translateY(-16px); }
}

/* =========================================================
   CONTACT
   ========================================================= */
/* =========================================================
   QUALIFY TABS
   ========================================================= */
.qualify-tabs{
  display:flex; gap:4px; background:var(--bg-soft); border:1px solid var(--border-strong);
  border-radius:999px; padding:5px; max-width:600px; margin-bottom:52px;
}
.qualify-tab{
  flex:1; border:none; background:transparent; cursor:pointer; font-family:var(--font);
  padding:13px 18px; border-radius:999px; font-size:13.5px; font-weight:700;
  color:var(--muted-2); transition:background .25s ease, color .25s ease;
}
.qualify-tab.active{ background:var(--ink); color:#fff; }
@media (max-width:640px){
  .qualify-tabs{ max-width:none; }
  .qualify-tab{ font-size:12.5px; padding:12px 10px; }
}

.qualify-panel{ display:none; }
.qualify-panel.active{ display:block; }

.qualify-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:40px 32px; }
@media (max-width:900px){ .qualify-grid{ grid-template-columns:1fr; gap:32px; } }

.qualify-icon{
  width:52px; height:52px; border-radius:15px; background:var(--yellow-soft);
  display:flex; align-items:center; justify-content:center; margin-bottom:20px; color:var(--ink);
}
.qualify-icon svg{ width:23px; height:23px; }
.qualify-card h3{ font-size:17.5px; margin-bottom:10px; line-height:1.35; }
.qualify-card p{ font-size:14px; color:var(--muted); }

#cta-band{ padding:64px 0; }
.cta-band{
  display:flex; align-items:flex-end; justify-content:space-between; gap:30px; flex-wrap:wrap;
  border-top:1px solid var(--border); border-bottom:1px solid var(--border);
  padding:44px 0;
}
.cta-band h2{ color:var(--text); font-size:clamp(30px,4.4vw,46px); max-width:14ch; margin:0; }
.cta-band-arrow{
  flex:none;
  width:60px; height:60px; border-radius:50%;
  background:var(--yellow); color:var(--ink);
  display:flex; align-items:center; justify-content:center;
  animation:arrow-bounce 1.8s ease-in-out infinite;
  transition:transform .25s ease, background .25s ease;
}
.cta-band-arrow:hover{ background:var(--yellow-deep); transform:scale(1.06); }
.cta-band-arrow svg{ width:22px; height:22px; }
@keyframes arrow-bounce{
  0%,100%{ transform:translateY(0); }
  50%{ transform:translateY(6px); }
}
@media (prefers-reduced-motion:reduce){ .cta-band-arrow{ animation:none; } }
@media (max-width:640px){ .cta-band{ padding:32px 0; align-items:center; } }

.contact-wrap{
  background:var(--ink);
  border-radius:var(--radius-xl);
  padding:64px;
  display:grid; grid-template-columns:1fr 1fr; gap:60px;
  position:relative; overflow:hidden;
}
@media (max-width:900px){
  .contact-wrap{ grid-template-columns:1fr; padding:36px 26px; }
  .contact-info{ padding-bottom:0; min-height:0; }
}
.contact-wrap::before{
  content:""; position:absolute; width:460px; height:460px; border-radius:50%;
  background:var(--yellow); opacity:.14;
  top:-200px; right:-140px; pointer-events:none;
}
.contact-info{
  display:flex;
  flex-direction:column;
  position:relative;
  z-index:1;
  min-height:100%;
  padding-bottom:240px; /* reserved dark space for the greeting mascot */
}
.contact-info h2{ font-size:clamp(28px,3.4vw,38px); color:#fff; margin-bottom:30px; max-width:16ch; }
.contact-info .eyebrow{
  color:rgba(255,255,255,.65);
  background:none;
  border:none;
  padding:0;
}
.contact-info .eyebrow::before{
  background:var(--yellow);
  box-shadow:none;
}
.contact-details{ display:flex; flex-direction:column; gap:14px; margin-bottom:30px; }
.contact-details a, .contact-details span{
  display:flex; align-items:center; gap:12px; font-size:15px; color:#fff; font-weight:600;
}
.contact-details svg{ width:18px; height:18px; color:var(--yellow); flex:none; }
.contact-info .btn-ghost{ background:transparent; border-color:rgba(255,255,255,.25); color:#fff; }
.contact-info .btn-ghost:hover{ border-color:#fff; }
.contact-social{ display:flex; gap:12px; flex-wrap:wrap; }
.form-card{ position:relative; z-index:5; background:var(--surface); border-radius:var(--radius-lg); padding:32px; }
.field{ margin-bottom:16px; }
.field label{ display:block; font-size:12.5px; color:var(--muted); margin-bottom:8px; font-weight:600; }
.field input, .field textarea{
  width:100%; background:var(--bg-soft); border:1px solid var(--border-strong);
  border-radius:var(--radius-sm); padding:14px 16px; color:var(--text); font-family:var(--font);
  font-size:15px; transition:border-color .25s ease, background-color .25s ease;
  resize:none;
}
.field input:focus, .field textarea:focus{ outline:none; border-color:var(--yellow-deep); background:#fff; }
.field textarea{ min-height:96px; }

.consent{ display:flex; align-items:flex-start; gap:10px; font-size:12.5px; color:var(--muted-2); margin:18px 0 12px; }
.consent input{ margin-top:3px; accent-color:var(--yellow-deep); }
.consent a{ color:var(--ink); text-decoration:underline; text-underline-offset:2px; }
.form-error{
  margin:0 0 16px; font-size:13px; font-weight:600; color:#b42318;
  min-height:1.2em;
}
.form-error[hidden]{ display:none; }

/* slide-to-send */
.slide-btn{
  touch-action:none;
  user-select:none;
  position:relative; width:100%; height:58px; border-radius:999px;
  background:var(--bg-soft); border:1px solid var(--border-strong);
  overflow:hidden; user-select:none; cursor:grab;
}
.slide-btn .slide-fill{
  position:absolute; inset:0; width:58px; background:var(--yellow);
  border-radius:999px; transition:width .05s linear;
}
.slide-btn .slide-label{
  position:absolute; inset:0; display:flex; align-items:center; justify-content:center;
  font-size:13.5px; color:var(--muted); font-weight:700;
  pointer-events:none; z-index:1;
}
.slide-btn .slide-handle{
  position:absolute; top:4px; left:4px; width:50px; height:50px; border-radius:50%;
  background:var(--ink); color:var(--yellow);
  display:flex; align-items:center; justify-content:center;
  z-index:2; transition:box-shadow .2s ease;
  box-shadow:0 6px 16px -6px rgba(0,0,0,.3);
}
.slide-btn .slide-handle svg{ width:18px; height:18px; }
.slide-btn.done .slide-fill{ width:100% !important; }
.slide-btn.done .slide-label{ color:var(--ink); }
.slide-btn.shake{ animation:slideShake .4s ease; }
@keyframes slideShake{
  0%, 100%{ transform:translateX(0); }
  25%{ transform:translateX(-6px); }
  75%{ transform:translateX(6px); }
}

.form-success{ display:none; text-align:center; padding:30px 10px; }
.form-success.show{ display:block; }
.form-success .tile{ margin:0 auto 18px; }
.form-success h3{ font-size:20px; color:var(--text); margin-bottom:10px; }
.form-success p{ font-size:14px; }

/* =========================================================
   FAQ
   ========================================================= */
.faq-list{ display:flex; flex-direction:column; gap:14px; max-width:820px; }
.faq-item{
  background:var(--surface); border:1px solid var(--border); border-radius:var(--radius-lg);
  overflow:hidden;
  transition:border-color .25s ease, box-shadow .3s ease;
}
.faq-item:hover{ border-color:var(--border-strong); }
.faq-item.open{
  border-color:rgba(240,175,0,.4);
  box-shadow:0 16px 30px -24px rgba(23,22,15,.3);
}
.faq-q{
  display:flex; align-items:center; justify-content:space-between; gap:20px;
  padding:24px 28px; cursor:pointer;
}
.faq-q span{ font-size:16.5px; font-weight:700; color:var(--text); font-family:var(--display); letter-spacing:-.02em; }
.faq-toggle{
  width:32px; height:32px; border-radius:50%; flex:none;
  border:1px solid var(--border-strong);
  display:flex; align-items:center; justify-content:center;
  position:relative;
  transition:background-color .3s ease, border-color .3s ease;
}
.faq-toggle::before, .faq-toggle::after{
  content:""; position:absolute; background:var(--text);
  transition:transform .3s ease;
}
.faq-toggle::before{ width:12px; height:1.8px; }
.faq-toggle::after{ width:1.8px; height:12px; }
.faq-item.open .faq-toggle{ background:var(--yellow); border-color:var(--yellow); }
.faq-item.open .faq-toggle::before, .faq-item.open .faq-toggle::after{ background:var(--ink); }
.faq-item.open .faq-toggle::after{ transform:rotate(90deg) scaleY(0); }
.faq-a{ max-height:0; overflow:hidden; transition:max-height .4s var(--ease); }
.faq-a p{ padding:0 28px 26px; font-size:14.5px; max-width:70ch; }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer{ border-top:1px solid var(--border); padding:0 0 30px; }
.footer-cta{
  display:flex; align-items:flex-end; justify-content:space-between; gap:30px; flex-wrap:wrap;
  padding:80px 0 60px; border-bottom:1px solid var(--border); margin-bottom:56px;
}
.footer-cta h2{ font-size:clamp(32px,5.6vw,58px); max-width:14ch; color:var(--text); }
.footer-cta h2 .mark{ background-size:100% 32%; }
.footer-grid{ display:grid; grid-template-columns:1.4fr .8fr .8fr; gap:50px; margin-bottom:56px; }
.footer-grid:first-child{ padding-top:64px; }
@media (max-width:760px){ .footer-grid{ grid-template-columns:1fr; gap:36px; } }
.footer-grid h4{
  font-size:12.5px; text-transform:uppercase; letter-spacing:.1em; color:var(--muted-2);
  margin-bottom:20px; font-weight:700;
}
.footer-grid ul{ display:flex; flex-direction:column; gap:12px; }
.footer-grid a{ color:var(--muted); font-size:14.5px; font-weight:500; transition:color .25s ease; }
.footer-grid a:hover{ color:var(--text); }
.footer-about p{ font-size:14.5px; max-width:38ch; margin-top:16px; }
.footer-bottom{
  display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:14px;
  padding-top:26px; border-top:1px solid var(--border);
  font-size:13px; color:var(--muted-2); font-weight:500;
}
.footer-bottom a{ color:var(--muted-2); }
.footer-bottom a:hover{ color:var(--text); }
.footer-legal{ display:flex; gap:22px; flex-wrap:wrap; }

/* =========================================================
   REVEAL ANIMATION
   ========================================================= */
.reveal{ opacity:1; transform:none; }
.reveal-stagger > *{ opacity:1; transform:none; }
html.js .reveal{ opacity:0; transform:translateY(24px); transition:opacity .8s var(--ease), transform .8s var(--ease); }
html.js .reveal.visible{ opacity:1; transform:none; }
html.js .reveal-stagger > *{ opacity:0; transform:translateY(24px); transition:opacity .7s var(--ease), transform .7s var(--ease); }
html.js .reveal-stagger.visible > *{ opacity:1; transform:none; }
html.js .reveal-stagger.visible > *:nth-child(1){ transition-delay:.05s; }
html.js .reveal-stagger.visible > *:nth-child(2){ transition-delay:.14s; }
html.js .reveal-stagger.visible > *:nth-child(3){ transition-delay:.23s; }
html.js .reveal-stagger.visible > *:nth-child(4){ transition-delay:.32s; }

/* =========================================================
   BLOG PAGE
   ========================================================= */
.blog-hero{ padding:4px 0 36px; }
.blog-hero h1{ font-size:clamp(34px,5vw,50px); color:var(--text); margin-bottom:14px; }
.blog-hero p{ font-size:16px; max-width:56ch; margin-bottom:22px; }
.filter-row{ display:flex; flex-wrap:wrap; gap:10px; }

.blog-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:24px; padding-bottom:50px; }
@media (max-width:980px){ .blog-grid{ grid-template-columns:1fr 1fr; } }
@media (max-width:680px){ .blog-grid{ grid-template-columns:1fr; } }

.post-card{ display:flex; flex-direction:column; gap:18px; }
.post-thumb{ height:170px; border-radius:var(--radius-md); }
.post-thumb .tile{
  position:absolute; z-index:2; right:14px; bottom:14px;
  width:46px; height:46px; border-radius:14px;
  box-shadow:0 12px 22px -10px rgba(0,0,0,.4);
}
.post-thumb .tile svg{ width:20px; height:20px; }
.post-meta{ display:flex; align-items:center; gap:12px; font-size:12.5px; font-weight:600; color:var(--muted-2); }
.post-card h3{ font-size:19px; color:var(--text); text-transform:none; letter-spacing:-.01em; }
.post-card p{ font-size:14px; }
.post-link{ display:flex; align-items:center; gap:8px; font-size:13.5px; color:var(--text); font-weight:700; margin-top:auto; }
.post-link svg{ width:14px; height:14px; }

.newsletter{
  background:var(--ink); border-radius:var(--radius-xl);
  padding:56px; display:flex; align-items:center; justify-content:space-between; gap:30px; flex-wrap:wrap;
}
.newsletter h3{ font-size:24px; color:#fff; margin-bottom:8px; }
.newsletter p{ font-size:14.5px; color:rgba(255,255,255,.6); }

/* =========================================================
   CASES PAGE (dedicated) — zigzag rows
   ========================================================= */
.cases-hero{ padding:4px 0 28px; }
.cases-hero h1{ font-size:clamp(34px,5vw,52px); color:var(--text); margin-bottom:14px; }
.cases-hero p{ font-size:16px; max-width:56ch; }

.case-rows{ display:flex; flex-direction:column; gap:24px; padding-bottom:40px; }
.case-row{
  position:relative; z-index:0; overflow:hidden;
  background:var(--surface); border:1px solid var(--border); border-radius:var(--radius-xl);
  padding:48px; display:grid; grid-template-columns:.8fr 1.2fr; gap:48px; align-items:center;
}
.case-num{
  position:absolute; top:8px; right:28px; z-index:-1;
  font-family:var(--display); font-style:normal; font-weight:600;
  font-size:104px; line-height:1; color:var(--ink); opacity:.05;
  pointer-events:none; user-select:none;
}
@media (max-width:860px){ .case-num{ font-size:72px; top:0; right:14px; } }
.case-row.flip{ grid-template-columns:1.2fr .8fr; }
.case-row.flip .case-row-visual{ order:2; }
@media (max-width:860px){
  .case-row, .case-row.flip{ grid-template-columns:1fr; padding:30px 24px; gap:28px; }
  .case-row.flip .case-row-visual{ order:0; }
}
.case-row-visual{
  border-radius:var(--radius-lg); min-height:220px;
  display:flex; align-items:center; justify-content:center;
}
.case-row-visual .tile{ width:64px; height:64px; border-radius:20px; position:relative; z-index:2; box-shadow:0 14px 26px -12px rgba(0,0,0,.4); }
.case-row-visual .tile svg{ width:28px; height:28px; }
.case-row h3{ font-size:clamp(20px,2.4vw,26px); margin:14px 0 12px; color:var(--text); }
.case-row > div > p.lead{ font-size:14.5px; margin-bottom:22px; }
.case-row-cols{ display:grid; grid-template-columns:repeat(3,1fr); gap:18px; }
@media (max-width:560px){ .case-row-cols{ grid-template-columns:1fr; gap:14px; } }
.case-row-cols div span{ display:block; font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:.06em; color:var(--muted-2); margin-bottom:6px; }
.case-row-cols div p{ font-size:13.5px; color:var(--text); margin:0; }

/* =========================================================
   LEGAL PAGES
   ========================================================= */
.legal-hero{ padding:6px 0 40px; }
.legal-hero h1{ font-size:clamp(30px,4.4vw,44px); color:var(--text); margin-bottom:14px; }
.legal-hero span{ font-size:13.5px; color:var(--muted-2); font-weight:600; }
.legal-body{ max-width:820px; padding-bottom:100px; display:flex; flex-direction:column; gap:36px; }
.legal-body h2{ font-size:19px; color:var(--text); margin-bottom:14px; text-transform:none; letter-spacing:-.01em; }
.legal-body p{ font-size:15px; color:var(--muted); margin-bottom:10px; }
.legal-card{
  background:var(--surface); border:1px solid var(--border); border-radius:var(--radius-lg); padding:30px 32px;
}
.legal-req{ display:grid; grid-template-columns:1fr 1fr; gap:14px 30px; font-size:14px; }
@media (max-width:640px){ .legal-req{ grid-template-columns:1fr; } }
.legal-req div span{ display:block; color:var(--muted-2); font-size:11.5px; text-transform:uppercase; letter-spacing:.06em; margin-bottom:4px; font-weight:700; }
.legal-req div b{ color:var(--text); font-weight:600; }

/* =========================================================
   PRICING PAGE
   ========================================================= */
.price-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:24px; padding-top:16px; }
@media (max-width:900px){ .price-grid{ grid-template-columns:1fr; } }

.card.price-card{ overflow:visible; }
.price-card{ display:flex; flex-direction:column; gap:14px; position:relative; }
.price-card .label{ font-size:12px; font-weight:700; letter-spacing:.04em; color:var(--muted-2); }
.price-card h3{ font-size:21px; color:var(--text); }
.price-amount{
  font-family:var(--display); font-style:normal; font-weight:600;
  font-size:clamp(28px,3vw,34px); color:var(--text); line-height:1;
}
.price-amount span{
  font-family:var(--font); font-style:normal; font-weight:600;
  font-size:13.5px; color:var(--muted-2); margin-left:6px;
}
.price-desc{ font-size:14px; }
.price-card .service-checklist{ flex:1; margin-top:2px; }
.price-card .btn{ margin-top:6px; }

.price-card.featured{
  border-color:var(--yellow-deep);
  box-shadow:0 30px 60px -30px rgba(240,175,0,.4);
}
.price-card-badge{
  position:absolute; top:-14px; left:30px;
  z-index:2;
  background:var(--yellow); color:var(--ink);
  font-size:11.5px; font-weight:800; letter-spacing:.02em;
  padding:6px 14px; border-radius:999px;
  line-height:1.2;
  white-space:nowrap;
}

.price-note{ margin-top:30px; font-size:13.5px; color:var(--muted-2); max-width:74ch; }

/* =========================================================
   MASCOT RUNNER — scroll-driven running dog companion
   ========================================================= */
.mascot-runner{
  position:fixed;
  top:0; left:0;
  width:78px; height:78px;
  z-index:45;
  pointer-events:none;
  opacity:0;
  transition:opacity .35s ease;
  will-change:transform;
  isolation:isolate;
}
.mascot-runner.ready{ opacity:1; }
.mascot-runner img{
  width:100%; height:100%; object-fit:contain; display:block;
  transform-origin:50% 78%;
  position:relative; z-index:1;
  image-rendering:auto;
  -webkit-backface-visibility:hidden;
  backface-visibility:hidden;
}
.mascot-runner::after{
  content:'';
  position:absolute; left:50%; bottom:2px;
  width:30px; height:9px;
  background:rgba(23,24,28,.16);
  border-radius:50%;
  filter:blur(2.5px);
  transform:translateX(-50%);
  z-index:0;
}

/* Lives INSIDE .contact-wrap — clipped by overflow:hidden. */
.mascot-meet{
  position:absolute;
  left:12%;
  bottom:3%;
  width:277px; height:277px;
  z-index:4;
  pointer-events:none;
  opacity:0;
  transform:none;
  overflow:hidden;
}
.mascot-meet .meet-sprite{
  position:absolute;
  inset:0;
  display:block;
  width:100%; height:100%;
  object-fit:contain;
  object-position:center bottom;
  image-rendering:auto;
  -webkit-user-drag:none;
  user-select:none;
  opacity:0;
  transition:none;
  z-index:0;
  /* Keep decoded bitmap painted; only toggle visibility via opacity */
  will-change:opacity;
}
.mascot-meet .meet-sprite.is-active{
  opacity:1;
  z-index:1;
}
.mascot-meet::after{
  content:'';
  position:absolute; left:50%; bottom:6%;
  width:72px; height:16px;
  background:rgba(0,0,0,.45);
  border-radius:50%;
  filter:blur(4px);
  transform:translateX(-50%);
  opacity:0;
  z-index:2;
}
.mascot-meet.is-visible{
  opacity:1;
}
.mascot-meet.is-visible::after{
  opacity:.8;
}
@media (max-width:900px){
  .mascot-runner, .mascot-meet{ display:none; }
}
@media (prefers-reduced-motion:reduce){
  .mascot-runner, .mascot-meet{ display:none; }
}

/* ---------- SEO landings / articles ---------- */
.seo-hero{
  padding:28px 0 48px;
  position:relative;
  border-bottom:1px solid var(--border);
  background:
    linear-gradient(180deg, rgba(255,242,204,.35) 0%, transparent 70%),
    var(--bg);
  overflow:hidden;
}
.seo-hero .container{ position:relative; z-index:1; }
.seo-hero::before{
  content:"";
  position:absolute; left:0; top:0; bottom:0;
  width:6px;
  background:var(--yellow);
}
.seo-hero::after{
  content:"";
  position:absolute; right:-4%; top:20%;
  width:min(38vw,380px); height:min(38vw,380px);
  border:1px solid rgba(23,22,15,.06);
  border-radius:32px;
  transform:rotate(12deg);
  pointer-events:none; z-index:0;
}
.seo-hero h1{
  max-width:16ch;
  margin:0 0 18px;
  font-size:clamp(34px,5vw,54px);
  line-height:1.05;
}
.seo-hero .hero-lead{
  max-width:48ch;
  color:var(--muted);
  font-size:18px;
  margin:0 0 28px;
  line-height:1.55;
}
.seo-hero .hero-actions{ margin-top:4px; display:flex; flex-wrap:wrap; gap:12px; }
.seo-hero .eyebrow{ margin-bottom:18px; }

.seo-body{ padding:48px 0 100px; }
.seo-layout{
  display:grid;
  grid-template-columns:minmax(0,1fr) 320px;
  gap:48px;
  align-items:start;
}

.seo-main{ display:grid; gap:18px; }
.seo-main .seo-block{
  margin:0;
  padding:28px 30px;
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:var(--radius-lg);
  position:relative;
}
.seo-main .seo-block:hover{
  border-color:var(--border-strong);
}
.seo-main h2{
  font-size:clamp(22px,2.8vw,28px);
  margin:0 0 12px;
  letter-spacing:-.03em;
  display:block;
  max-width:22ch;
}
.seo-main h2::before{ display:none; }
.seo-main p, .seo-article p{
  color:var(--muted);
  font-size:16.5px;
  line-height:1.65;
  margin:0 0 12px;
}
.seo-main p:last-child{ margin-bottom:0; }

.seo-steps{
  margin:16px 0 0; padding:0; list-style:none;
  color:var(--text); display:grid; gap:12px;
  counter-reset:seo-step;
}
.seo-steps li{
  counter-increment:seo-step;
  display:grid;
  grid-template-columns:48px 1fr;
  gap:16px;
  align-items:center;
  padding:16px 18px;
  border-radius:var(--radius-md);
  background:var(--bg-soft);
  border:1px solid transparent;
  font-size:15px; font-weight:600;
}
.seo-steps li::before{
  content:counter(seo-step, decimal-leading-zero);
  font-family:var(--display);
  font-size:15px; font-weight:600;
  color:var(--ink);
  background:var(--yellow);
  border-radius:10px;
  width:48px; height:40px;
  display:inline-flex; align-items:center; justify-content:center;
}

.seo-aside{ position:sticky; top:96px; display:grid; gap:16px; }
.seo-card{
  padding:24px;
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:var(--radius-lg);
}
.seo-card.seo-card-cta{
  background:var(--ink);
  border-color:var(--ink);
  color:#fff;
}
.seo-card.seo-card-cta h3{ color:#fff; }
.seo-card.seo-card-cta p{
  color:rgba(255,255,255,.65);
  font-size:14px;
  margin:0 0 18px;
  line-height:1.5;
}
.seo-card h3{ margin:0 0 14px; font-size:17px; }
.seo-keys{ list-style:none; margin:0 0 8px; padding:0; display:grid; gap:8px; }
.seo-keys li, .seo-keys a{ color:var(--muted); font-size:13.5px; line-height:1.4; }
.seo-keys li{
  padding:10px 12px;
  border-radius:10px;
  background:var(--bg-soft);
  border-left:3px solid var(--yellow);
}
.seo-keys a{
  display:block; padding:10px 12px; border-radius:10px;
  border:1px solid var(--border);
  transition:background .2s ease, color .2s ease, border-color .2s ease;
}
.seo-keys a:hover{
  color:var(--text);
  border-color:var(--text);
  background:var(--surface);
}

/* Case detail metrics */
.case-metrics{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:14px;
  margin:0 0 28px;
}
.case-metric{
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:var(--radius-lg);
  padding:22px 20px;
  min-height:140px;
  display:flex; flex-direction:column; gap:10px;
}
.case-metric span{
  font-size:11px; font-weight:700;
  letter-spacing:.08em; text-transform:uppercase;
  color:var(--muted-2);
}
.case-metric p{
  margin:0;
  color:var(--text);
  font-size:16px;
  font-weight:600;
  line-height:1.4;
  font-family:var(--display);
  letter-spacing:-.02em;
}
.case-metric:nth-child(1){ border-top:3px solid var(--coral); }
.case-metric:nth-child(2){ border-top:3px solid var(--yellow); }
.case-metric:nth-child(3){ border-top:3px solid var(--ink); }

.seo-cta-band{
  margin-top:36px;
  padding:28px 30px;
  border-radius:var(--radius-lg);
  background:
    linear-gradient(135deg, rgba(255,201,51,.22), transparent 55%),
    var(--surface);
  border:1px solid var(--border);
  display:flex; align-items:center; justify-content:space-between; gap:24px; flex-wrap:wrap;
}
.seo-cta-band h3{
  margin:0 0 6px;
  font-size:22px;
}
.seo-cta-band p{
  margin:0;
  color:var(--muted);
  font-size:14.5px;
  max-width:42ch;
}

.seo-article{ max-width:760px; }
.seo-article h2{ font-size:clamp(22px,2.6vw,28px); margin:32px 0 12px; }
.seo-article ul{ margin:0 0 16px; padding-left:18px; color:var(--muted); display:grid; gap:6px; }
.seo-code{
  display:block; overflow:auto; padding:16px 18px; margin:16px 0 20px;
  background:var(--ink); color:#f4f1ea; border-radius:var(--radius-sm);
  font-family:ui-monospace, SFMono-Regular, Menlo, monospace; font-size:13px; line-height:1.55;
  border:1px solid rgba(255,255,255,.06);
}
@media (max-width:900px){
  .seo-layout{ grid-template-columns:1fr; }
  .seo-aside{ position:static; }
  .case-metrics{ grid-template-columns:1fr; }
  .seo-hero::after{ display:none; }
  .seo-hero h1{ max-width:none; }
}
