/* =========================================================
   Vantage Mind: main stylesheet
   Edit the tokens in :root to restyle the whole site.
   Light "paper" theme by default; .theme-dark switches any
   block (process band, footer, service mockups) to ink.
   ========================================================= */

:root {
  /* Colour */
  --bg:          #f3efe6;
  --bg-raised:   #fbf9f4;
  --bg-card:     #ebe6db;
  --line:        #d6cfc1;
  --line-soft:   #e2dccf;
  --text:        #151412;
  --text-muted:  #57534b;
  --text-dim:    #77726a;
  --accent:      #cf3b0c;
  --accent-2:    #cf3b0c;
  --accent-soft: rgba(207, 59, 12, 0.1);
  --ink:         #151412;
  --paper:       #f3efe6;
  --good:        #1f7a4a;
  --warn:        #a86a00;
  --bad:         #c0362c;
  --chip:        rgba(21, 20, 18, 0.06);

  /* Type */
  --font-display: "Instrument Serif", Georgia, "Times New Roman", serif;
  --font-body:    "Manrope", system-ui, -apple-system, sans-serif;
  --font-code:    ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  /* Layout */
  --max:     1240px;
  --gutter:  clamp(16px, 4vw, 40px);
  --radius-lg: 14px;
  --radius:    10px;
  --radius-sm: 6px;
  --section-gap: clamp(80px, 11vw, 140px);
}

.theme-dark {
  --bg:          #151412;
  --bg-raised:   #1e1d1a;
  --bg-card:     #282622;
  --line:        #3a3732;
  --line-soft:   #2c2a26;
  --text:        #f3efe6;
  --text-muted:  #b3ada2;
  --text-dim:    #8b857a;
  --accent-2:    #ff7a4d;
  --accent-soft: rgba(255, 122, 77, 0.14);
  --good:        #6fd39a;
  --warn:        #f2c14e;
  --bad:         #ff8a7a;
  --chip:        rgba(243, 239, 230, 0.07);
  background: var(--bg);
  color: var(--text);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
h1, h2 { margin: 0; font-family: var(--font-display); font-weight: 400; line-height: 1.02; letter-spacing: -0.015em; }
h3, h4 { margin: 0; font-family: var(--font-body); font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; }
h1 em, h2 em { color: var(--accent-2); }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 50px; padding: 0 24px;
  border-radius: var(--radius-sm); border: 1px solid transparent;
  font-weight: 600; font-size: 15px; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
  white-space: nowrap;
}
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--accent); }
.theme-dark .btn-primary { background: var(--accent); color: #fff; }
.theme-dark .btn-primary:hover { background: #e2531f; }
.cta .btn-primary { background: var(--ink); color: var(--paper); }
.cta .btn-primary:hover { background: #000; }
.btn-ghost { background: transparent; border-color: var(--text); }
.btn-ghost:hover { background: var(--text); color: var(--bg); }
.btn-sm { height: 40px; padding: 0 16px; font-size: 14px; }
.btn-arrow { width: 15px; height: 15px; transition: transform .2s; }
.btn:hover .btn-arrow { transform: translate(2px, -2px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(243, 239, 230, .88);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
.logo { display: flex; align-items: center; gap: 10px; line-height: 1; white-space: nowrap; }
.logo-mark { width: 30px; height: 30px; flex: none; transition: transform .4s ease; }
.logo-mark .lm-tile { fill: var(--text); }
.logo-mark .lm-v { stroke: var(--bg); }
.logo-mark .lm-dot { fill: var(--accent); }
.logo:hover .logo-mark { transform: rotate(-8deg); }
.logo-word { font-family: var(--font-body); font-size: 17px; font-weight: 800; letter-spacing: .06em; }
.logo-word span + span { font-weight: 500; color: var(--text-muted); }
@media (max-width: 480px) {
  .logo-mark { width: 26px; height: 26px; }
  .logo-word { font-size: 15px; }
}
.nav-links { display: flex; gap: 32px; }
.nav-links a { position: relative; padding: 6px 0; color: var(--text-muted); font-size: 15px; font-weight: 500; transition: color .2s; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .25s; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); }
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { transform: none; }
.nav-toggle { display: none; background: transparent; border: 1px solid var(--line); border-radius: var(--radius-sm); width: 44px; height: 44px; cursor: pointer; }
.nav-toggle span { display: block; width: 18px; height: 1.5px; background: var(--text); margin: 4px auto; transition: transform .25s, opacity .25s; }
.mobile-menu { display: none; }

@media (max-width: 860px) {
  .nav-links, .nav .btn { display: none; }
  .nav-toggle { display: block; }
  .mobile-menu {
    display: block; overflow: hidden; max-height: 0;
    transition: max-height .35s ease;
  }
  .mobile-menu.open { max-height: 460px; }
  .mobile-menu nav { display: flex; flex-direction: column; padding: 8px var(--gutter) 24px; }
  .mobile-menu a:not(.btn) { padding: 14px 0; font-family: var(--font-display); font-size: 30px; line-height: 1.1; border-bottom: 1px solid var(--line); }
  .mobile-menu .btn { margin-top: 22px; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }
}

/* ---------- Sections ---------- */
.section { padding-top: var(--section-gap); }
.band { padding: var(--section-gap) 0; margin-top: var(--section-gap); }
.band + .section { padding-top: var(--section-gap); }

/* Eyebrow label: "—— OUR SERVICES" */
.tag {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 12.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent-2); margin-bottom: 22px;
}
.tag::before { content: ""; width: 28px; height: 1.5px; background: currentColor; }

/* Section head: rule on top, headline left, intro right */
.section-head {
  display: grid; grid-template-columns: 1.25fr 1fr; gap: 0 56px; align-items: end;
  padding-top: 28px; margin-bottom: 64px; border-top: 1px solid var(--line);
}
.section-head .tag { grid-column: 1 / -1; }
.section-head h2 { font-size: clamp(38px, 5.4vw, 68px); }
.section-head p { color: var(--text-muted); font-size: 17.5px; max-width: 440px; justify-self: end; }
@media (max-width: 860px) {
  .section-head { grid-template-columns: 1fr; margin-bottom: 44px; }
  .section-head p { justify-self: start; margin-top: 18px; }
}

/* Sticky split: heading column stays put while the content column scrolls */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: start; }
.split-aside { position: sticky; top: 112px; }
.split-aside .section-head { display: block; margin-bottom: 0; }
.split-aside .section-head p { justify-self: auto; margin-top: 20px; }
@media (max-width: 960px) {
  .split { grid-template-columns: 1fr; gap: 44px; }
  .split-aside { position: static; }
}

/* ---------- Home hero ---------- */
.hero { padding: clamp(48px, 7vw, 96px) 0 0; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 88px); align-items: center; }
.hero-badge { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 500; color: var(--text-muted); margin-bottom: 28px; }
.hero-badge b { background: var(--accent); color: #fff; font-weight: 700; font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; padding: 4px 9px; border-radius: 4px; }
.hero h1 { font-size: clamp(54px, 8.6vw, 112px); line-height: .95; letter-spacing: -0.02em; }
.hero .lede { max-width: 520px; margin-top: 30px; font-size: clamp(16.5px, 1.5vw, 19px); color: var(--text-muted); }
.hero-actions { display: flex; gap: 12px; margin-top: 38px; flex-wrap: wrap; }

/* Hero visual: abstract campaign network. Pulses run from the hub out to each
   ad platform (launch) and back (results); an ad-performance chart sits behind. */
.hero-visual { position: relative; padding-bottom: 44px; }
.hv-stage { position: relative; aspect-ratio: 4 / 5; container-type: inline-size; }
.hv-net { position: absolute; inset: 0; width: 100%; height: 100%; }
.hv-link { fill: none; stroke: rgba(21, 20, 18, .28); stroke-width: 1.2; stroke-dasharray: 3 5; }
.hv-orbit { fill: none; stroke: rgba(21, 20, 18, .14); stroke-width: 1; stroke-dasharray: 2 7; }
.hv-pulse { fill: none; stroke: var(--accent); stroke-width: 1.2; }
.hv-halo { fill: none; stroke-width: 1.5; }
.hv-node circle { fill: var(--bg-raised); stroke: var(--line); stroke-width: 1.2; }
.hv-dot-out { fill: var(--accent); filter: drop-shadow(0 0 4px rgba(207, 59, 12, .6)); }
.hv-dot-back { fill: #1f9d5c; filter: drop-shadow(0 0 4px rgba(31, 157, 92, .6)); }

.hv-bar { fill: url(#hv-bar-g); transform-box: fill-box; transform-origin: bottom; animation: hvBar 4.5s ease-in-out infinite alternate; animation-delay: calc(var(--i) * -.35s); }
@keyframes hvBar { from { transform: scaleY(.45); } to { transform: scaleY(1); } }
.hv-trend { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 420; stroke-dashoffset: 420; opacity: .9; animation: hvTrend 7s ease-in-out infinite; }
@keyframes hvTrend {
  0% { stroke-dashoffset: 420; opacity: .9; }
  45%, 85% { stroke-dashoffset: 0; opacity: .9; }
  100% { stroke-dashoffset: 0; opacity: 0; }
}

.hv-chip {
  position: absolute; display: flex; flex-direction: column; gap: .4cqw;
  padding: 2.2cqw 3cqw; border-radius: 2.4cqw;
  background: var(--bg-raised); color: var(--text);
  font-size: 2.9cqw; line-height: 1.2; white-space: nowrap;
  animation: float 7s ease-in-out infinite;
}
.hv-chip span { display: flex; align-items: center; gap: 1.4cqw; color: var(--text-dim); font-weight: 600; }
.hv-chip i { position: absolute; top: 2.9cqw; left: 3cqw; width: 1.8cqw; height: 1.8cqw; border-radius: 50%; }
.hv-chip span { padding-left: 2.8cqw; }
.hv-chip b { font-family: var(--font-display); font-weight: 400; font-size: 5.6cqw; line-height: 1; }
.c-1 { left: 5%; top: 4.5%; }
.c-2 { right: 5%; top: 4.5%; animation-delay: -2s; }
.c-3 { left: 5%; top: 72%; animation-delay: -4s; }
.c-4 { right: 5%; top: 72%; animation-delay: -6s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

.hv-card {
  position: absolute; right: -16px; bottom: 0; padding: 14px 18px;
  background: var(--bg-raised); border: 1px solid var(--line); border-radius: var(--radius);
}
.hv-card small { display: flex; align-items: center; gap: 8px; color: var(--text-dim); font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.hv-card small i { width: 7px; height: 7px; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 0 rgba(31, 122, 74, .5); animation: livePing 2s ease-out infinite; }
@keyframes livePing { to { box-shadow: 0 0 0 8px rgba(31, 122, 74, 0); } }
.hv-card strong { display: block; font-family: var(--font-display); font-weight: 400; font-size: 40px; line-height: 1; margin-top: 6px; }
.hv-card span { display: block; color: var(--text-muted); font-size: 13px; margin-top: 2px; }
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 520px; }
}
@media (max-width: 480px) {
  .hero-visual { padding-bottom: 60px; }
  .hv-card { right: 0; padding: 11px 14px; }
  .hv-card strong { font-size: 30px; }
}

/* Result strip under the hero */
.stat-strip { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: clamp(56px, 8vw, 96px); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat-strip li { padding: 28px 24px 26px 0; }
.stat-strip li + li { padding-left: 24px; border-left: 1px solid var(--line); }
.stat-strip strong { display: block; font-family: var(--font-display); font-weight: 400; font-size: clamp(44px, 5vw, 64px); line-height: 1; }
.stat-strip span { display: block; margin-top: 8px; color: var(--text-muted); font-size: 14.5px; }
@media (max-width: 760px) {
  .stat-strip { grid-template-columns: 1fr 1fr; }
  .stat-strip li:nth-child(3) { padding-left: 0; border-left: 0; }
  .stat-strip li:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* Client logos */
.logos { display: flex; align-items: center; gap: 40px; padding: 32px 0; }
.logos p { flex: none; color: var(--text-dim); font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; max-width: 160px; line-height: 1.4; }
.marquee { flex: 1; min-width: 0; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; align-items: center; gap: 64px; width: max-content; animation: marquee 32s linear infinite; }
.marquee-track img { height: 30px; width: auto; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (max-width: 640px) { .logos { flex-direction: column; align-items: stretch; gap: 20px; } .logos p { max-width: none; } }

/* Big serif ticker band */
.ticker { background: var(--accent); color: #fff; overflow: hidden; padding: 18px 0; margin-top: 8px; }
.ticker .marquee-track { gap: 0; animation-duration: 40s; }
.ticker span { font-family: var(--font-display); font-size: clamp(30px, 4vw, 48px); line-height: 1; white-space: nowrap; padding: 0 28px; display: inline-flex; align-items: center; gap: 56px; }
.ticker span::after { content: "✺"; font-size: .6em; }

/* ---------- Page hero (About, Blog, Contact) ---------- */
.page-hero .container { display: grid; grid-template-columns: 1.4fr 1fr; gap: 0 56px; align-items: end; }
.page-hero .container::after { content: ""; grid-column: 1 / -1; height: 1px; background: var(--line); margin-top: 48px; }
.page-hero .tag { grid-column: 1 / -1; }
.page-hero h1 { font-size: clamp(50px, 7.6vw, 104px); line-height: .95; }
.page-hero .lede { color: var(--text-muted); font-size: 18px; max-width: 440px; justify-self: end; }
@media (max-width: 860px) {
  .page-hero .container { grid-template-columns: 1fr; }
  .page-hero .lede { justify-self: start; margin-top: 22px; }
}

/* ---------- Services ---------- */
.platforms { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.platforms li { display: flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 600; padding: 8px 14px; border: 1px solid var(--line); border-radius: 99px; }
.platforms svg { width: 18px; height: 18px; flex: none; }

.services-list { display: grid; gap: 20px; counter-reset: svc; }
.service { counter-increment: svc; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0; border-radius: var(--radius-lg); background: var(--bg-raised); overflow: hidden; }
.service-body { padding: 30px 28px; display: flex; flex-direction: column; }
.service-body::before { content: "0" counter(svc); font-family: var(--font-display); font-size: 44px; line-height: 1; color: var(--accent); margin-bottom: 18px; }
.service-body .kicker { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--text-dim); }
.service-body h3 { font-size: 22px; margin: 8px 0 12px; }
.service-body p { color: var(--text-muted); font-size: 15.5px; }
.service-visual { order: 2; position: relative; overflow: hidden; display: grid; place-items: center; padding: 22px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 22px; }
.chips span { font-size: 12.5px; font-weight: 600; padding: 5px 11px; background: var(--chip); border-radius: 4px; color: var(--text-muted); }
@media (max-width: 1100px) and (min-width: 961px), (max-width: 640px) {
  .service { grid-template-columns: 1fr; }
  .service-visual { min-height: 260px; }
}

/* Mock UI pieces shared by visuals (rendered on ink via .theme-dark) */
.mock { width: 100%; background: var(--bg-raised); border: 1px solid var(--line); border-radius: 10px; padding: 14px; font-size: 13px; }
.mock-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; }
.mock-top b { font-weight: 600; }
.mock-top small { color: var(--text-dim); font-size: 11.5px; text-align: right; }
.task { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 6px; border-radius: 6px; }
.task em { font-style: normal; color: var(--text-dim); font-size: 11.5px; }
.task .dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.task .name { flex: 1; }
.task .name, .task em { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.task .name { min-width: 0; }
.scroll-y { height: 188px; overflow: hidden; mask-image: linear-gradient(transparent, #000 15%, #000 85%, transparent); -webkit-mask-image: linear-gradient(transparent, #000 15%, #000 85%, transparent); }
.scroll-y > div { animation: scrollY 14s linear infinite; }
@keyframes scrollY { to { transform: translateY(-50%); } }

.prompt-box { background: var(--bg-card); border-radius: 8px; padding: 12px; margin-top: 10px; color: var(--text-muted); min-height: 60px; }
.prompt-box .caret { display: inline-block; width: 1px; height: 14px; background: var(--accent-2); vertical-align: middle; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.prompt-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.prompt-actions span { font-size: 11.5px; padding: 4px 9px; border-radius: 4px; background: var(--chip); color: var(--text-muted); }

.lead-row { display: flex; gap: 8px; overflow: hidden; }
.lead { flex: none; width: 140px; background: var(--bg-card); border-radius: 8px; padding: 10px; font-size: 12px; }
.lead b { display: block; font-size: 12.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lead .ok { color: var(--good); font-size: 11px; }
.lead dl { margin: 8px 0 0; display: grid; grid-template-columns: auto 1fr; gap: 3px 8px; color: var(--text-dim); }
.lead dd { margin: 0; color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; }
.pill-tabs { display: flex; gap: 6px; margin-top: 12px; }
.pill-tabs span { font-size: 11.5px; padding: 4px 10px; border-radius: 4px; background: var(--chip); color: var(--text-dim); }
.pill-tabs span.on { background: var(--accent); color: #fff; }

.days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin: 10px 0 12px; text-align: center; font-size: 11.5px; color: var(--text-dim); }
.days span { padding: 6px 0; border-radius: 5px; }
.days span.on { background: var(--accent); color: #fff; }
.slot { display: flex; justify-content: space-between; gap: 8px; padding: 9px 10px; background: var(--accent-soft); border-radius: 6px; font-size: 12px; }
.slot + .slot { margin-top: 6px; }
.slot small { color: var(--text-dim); white-space: nowrap; }
.progress { height: 6px; background: var(--line); border-radius: 99px; overflow: hidden; margin-top: 6px; }
.progress i { display: block; height: 100%; background: var(--accent-2); border-radius: inherit; }

/* ---------- Process (ink band) ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); counter-reset: step; }
.step { counter-increment: step; padding: 0 28px 8px; border-left: 1px solid var(--line); display: flex; flex-direction: column; }
.step:first-child { padding-left: 0; border-left: 0; }
.step::before { content: "0" counter(step); font-family: var(--font-display); font-size: clamp(64px, 7vw, 96px); line-height: .9; color: var(--accent-2); margin-bottom: 28px; }
.step h3 { font-size: 21px; }
.step p { color: var(--text-muted); margin-top: 10px; font-size: 15.5px; }
.step ul { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); display: grid; gap: 8px; }
.step li { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--text); }
.step li::before { content: ""; width: 6px; height: 6px; background: var(--accent-2); flex: none; }
@media (max-width: 960px) {
  .steps { grid-template-columns: 1fr 1fr; gap: 48px 0; }
  .step:nth-child(3) { padding-left: 0; border-left: 0; }
}
@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; }
  .step { padding: 0; border-left: 0; }
  .step + .step { padding-top: 36px; border-top: 1px solid var(--line); }
}

/* ---------- Case studies ---------- */
.cases-wrap { position: relative; }
.cases { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; scrollbar-width: none; cursor: grab; }
.cases::-webkit-scrollbar { display: none; }
.cases.dragging { cursor: grabbing; scroll-snap-type: none; }
.case { flex: 0 0 min(100%, 1060px); scroll-snap-align: start; display: grid; grid-template-columns: 1fr 1.2fr; background: var(--bg-raised); border-radius: var(--radius-lg); overflow: hidden; }
.case img { width: 100%; height: 100%; object-fit: cover; min-height: 320px; pointer-events: none; }
.case-body { padding: clamp(24px, 4vw, 48px); display: flex; flex-direction: column; }
.case-body blockquote { margin: 0; font-family: var(--font-display); font-size: clamp(28px, 3vw, 40px); line-height: 1.08; }
.case-body > p { color: var(--text-muted); margin-top: 18px; }
.impact { margin-top: auto; padding-top: 28px; }
.impact h4 { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 12px; }
.impact ul { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.impact li { padding: 14px 12px 0 0; font-size: 13px; color: var(--text-muted); line-height: 1.35; }
.impact li strong { display: block; font-family: var(--font-display); font-weight: 400; font-size: 34px; line-height: 1; color: var(--text); margin-bottom: 6px; }
.slider-controls { display: flex; align-items: center; gap: 10px; margin-top: 24px; }
.slider-controls button { width: 48px; height: 48px; border-radius: var(--radius-sm); border: 1px solid var(--text); background: transparent; color: var(--text); cursor: pointer; display: grid; place-items: center; transition: background .2s, color .2s; }
.slider-controls button svg { width: 20px; height: 20px; }
.slider-controls button:hover { background: var(--text); color: var(--bg); }
.slider-controls small { color: var(--text-dim); font-size: 13px; margin-left: 8px; }
@media (max-width: 860px) { .impact ul { grid-template-columns: 1fr 1fr; } }
@media (max-width: 760px) { .case { grid-template-columns: 1fr; } .case img { min-height: 220px; max-height: 240px; } }

/* ---------- Benefits ---------- */
.benefits { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.benefit { padding: 32px 28px 36px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: background .25s; }
.benefit:hover { background: var(--bg-raised); }
.benefit svg { width: 30px; height: 30px; color: var(--accent); margin-bottom: 40px; }
.benefit h3 { font-size: 19px; }
.benefit p { color: var(--text-muted); margin-top: 10px; font-size: 15.5px; }
@media (max-width: 900px) { .benefits { grid-template-columns: 1fr 1fr; } }
@media (max-width: 580px) { .benefits { grid-template-columns: 1fr; } .benefit svg { margin-bottom: 24px; } }

/* ---------- Pricing ---------- */
.pricing-card { display: grid; grid-template-columns: 1fr 1fr; border-radius: var(--radius-lg); overflow: hidden; }
.pricing-main { padding: clamp(28px, 4vw, 48px); display: flex; flex-direction: column; }
.pricing-main .plan { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-2); }
.pricing-main .price { font-family: var(--font-display); font-weight: 400; font-size: clamp(64px, 8vw, 96px); line-height: 1; margin: 14px 0 16px; letter-spacing: -0.02em; }
.pricing-main p { color: var(--text-muted); max-width: 380px; }
.pricing-main .btn { margin-top: 36px; align-self: flex-start; }
.pricing-list { padding: clamp(28px, 4vw, 48px); background: var(--bg-raised); }
.pricing-list h4 { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 12px; }
.pricing-list li { display: flex; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.pricing-list li:last-child { border-bottom: 0; }
.pricing-list li svg { width: 18px; height: 18px; color: var(--accent); flex: none; }
@media (max-width: 760px) { .pricing-card { grid-template-columns: 1fr; } }

/* ---------- Testimonials ---------- */
.testimonials { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.testimonial { margin: 0; background: var(--bg-raised); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; display: flex; flex-direction: column; gap: 28px; }
.testimonial blockquote { margin: 0; font-size: 16.5px; line-height: 1.6; }
.testimonial:first-child { grid-column: 1 / -1; background: transparent; border: 0; border-radius: 0; padding: 0 0 36px; border-bottom: 1px solid var(--line); }
.testimonial:first-child blockquote { font-family: var(--font-display); font-size: clamp(32px, 4.4vw, 56px); line-height: 1.08; max-width: 1000px; }
.testimonial figcaption { display: flex; align-items: center; gap: 14px; margin-top: auto; }
.testimonial img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; }
.testimonial figcaption b { display: block; font-weight: 700; }
.testimonial figcaption span { color: var(--text-dim); font-size: 14px; }
@media (max-width: 860px) { .testimonials { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 24px 0; font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; font-size: 20px; font-weight: 400; transition: transform .25s, background .25s, color .25s; }
.faq summary:hover::after { border-color: var(--text); }
.faq details[open] summary::after { transform: rotate(45deg); background: var(--accent); border-color: var(--accent); color: #fff; }
.faq details p { padding: 0 54px 26px 0; color: var(--text-muted); }

/* ---------- CTA (accent band) ---------- */
.cta { display: grid; grid-template-columns: 1.5fr auto; gap: 24px 48px; align-items: end; padding: clamp(40px, 7vw, 88px) clamp(24px, 5vw, 64px); border-radius: var(--radius-lg); background: var(--accent); color: #fff; }
.cta h2 em { color: var(--ink); }
.cta h2 { font-size: clamp(42px, 6.4vw, 84px); line-height: .98; max-width: 820px; }
.cta p { color: rgba(255, 255, 255, .85); margin-top: 18px; font-size: 18px; }
.cta > .btn { grid-column: 2; grid-row: 1 / span 2; align-self: end; height: 56px; padding: 0 28px; }
@media (max-width: 760px) {
  .cta { grid-template-columns: 1fr; }
  .cta > .btn { grid-column: 1; grid-row: auto; justify-self: start; }
}

/* ---------- About ---------- */
.about-intro { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.about-intro h2 { font-size: clamp(38px, 4.8vw, 60px); }
.about-intro > div > p { color: var(--text-muted); font-size: 18px; margin-top: 22px; }
.stats { display: grid; border-top: 1px solid var(--line); }
.stat { display: grid; grid-template-columns: 170px 1fr; gap: 24px; align-items: center; padding: 26px 0; border-bottom: 1px solid var(--line); }
.stat strong { font-family: var(--font-display); font-size: 64px; font-weight: 400; line-height: .9; color: var(--accent); }
.stat strong small { display: block; font-family: var(--font-body); font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text); margin-top: 10px; }
.stat p { color: var(--text-muted); font-size: 15.5px; }
@media (max-width: 860px) { .about-intro { grid-template-columns: 1fr; gap: 40px; } }
@media (max-width: 480px) { .stat { grid-template-columns: 1fr; gap: 12px; } }

.values { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.value { padding: 30px 26px 34px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.value svg { width: 30px; height: 30px; color: var(--accent); margin-bottom: 48px; }
.value h3 { font-size: 19px; }
.value p { color: var(--text-muted); margin-top: 10px; font-size: 15px; }
@media (max-width: 960px) { .values { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .values { grid-template-columns: 1fr; } .value svg { margin-bottom: 24px; } }

.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.compare-col { border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 40px); border: 1px solid var(--line); }
.compare-col.win { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.compare-col h3 { font-family: var(--font-display); font-weight: 400; font-size: 40px; letter-spacing: -0.01em; margin-bottom: 18px; }
.compare-col li { display: flex; align-items: center; gap: 12px; padding: 13px 0; color: var(--text-muted); border-top: 1px solid var(--line); }
.compare-col.win li { color: var(--paper); border-color: #3a3732; }
.compare-col li svg { width: 18px; height: 18px; flex: none; }
.compare-col li svg.x { color: var(--bad); }
.compare-col li svg.y { color: #ff7a4d; }
@media (max-width: 720px) { .compare { grid-template-columns: 1fr; } }

.team { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; max-width: 820px; }
.member img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius-lg); background: var(--bg-card); }
.member h3 { font-family: var(--font-display); font-weight: 400; font-size: 34px; letter-spacing: -0.01em; margin-top: 18px; }
.member p { color: var(--text-dim); margin-top: 4px; font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.team.solo { grid-template-columns: minmax(0, 400px); }
@media (max-width: 560px) { .team { grid-template-columns: 1fr; } }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 64px; align-items: start; }
.contact-info h2 { font-size: clamp(40px, 4.4vw, 56px); }
.contact-info p { color: var(--text-muted); margin: 16px 0 32px; font-size: 17px; }
.contact-link { display: flex; align-items: center; gap: 16px; padding: 20px 0; border-top: 1px solid var(--line); transition: color .2s; font-weight: 600; font-size: 17px; }
.contact-link:last-child { border-bottom: 1px solid var(--line); }
.contact-link:hover { color: var(--accent); }
.contact-link svg { width: 24px; height: 24px; color: var(--accent); flex: none; }
.contact-link small { display: block; color: var(--text-dim); font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.form { background: var(--bg-raised); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 44px); display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 13px; font-weight: 700; color: var(--text-muted); }
.field input, .field textarea {
  width: 100%; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 13px 14px; font-size: 15.5px; transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.form .btn { grid-column: 1 / -1; width: 100%; height: 54px; }
.form-status { grid-column: 1 / -1; font-size: 14.5px; min-height: 1em; }
.form-status.ok { color: var(--good); }
.form-status.err { color: var(--bad); }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .form { grid-template-columns: 1fr; } }

/* ---------- Blog ---------- */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px 24px; }
.post-card { display: flex; flex-direction: column; }
.post-card .thumb { aspect-ratio: 4 / 3; background: var(--bg-card); overflow: hidden; border-radius: var(--radius-lg); }
.post-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.post-card:hover .thumb img { transform: scale(1.04); }
.post-card .body { padding: 20px 0 0; }
.post-meta { display: flex; gap: 14px; align-items: center; font-size: 13px; color: var(--text-dim); }
.post-meta .cat { color: var(--accent); font-weight: 700; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.post-card h2 { font-size: clamp(26px, 2.4vw, 32px); margin-top: 12px; line-height: 1.08; transition: color .2s; }
.post-card:hover h2 { color: var(--accent); }
/* Lead post spans the full row */
.posts > .post-card:first-child { grid-column: 1 / -1; display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center; }
.posts > .post-card:first-child .thumb { aspect-ratio: 16 / 10; }
.posts > .post-card:first-child h2 { font-size: clamp(36px, 4.4vw, 58px); }
@media (max-width: 900px) { .posts { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) {
  .posts { grid-template-columns: 1fr; }
  .posts > .post-card:first-child { display: flex; gap: 0; }
}

.article { max-width: 780px; margin: 0 auto; padding-top: clamp(40px, 6vw, 72px); }
.back-link { display: inline-flex; align-items: center; gap: 8px; color: var(--text-muted); font-size: 14.5px; font-weight: 600; margin-bottom: 40px; }
.back-link:hover { color: var(--accent); }
.article h1 { font-size: clamp(44px, 6.4vw, 76px); line-height: .98; margin: 18px 0 22px; }
.article .summary { color: var(--text-muted); font-size: 20px; }
.article .cover { margin: 44px 0 52px; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 16 / 9; background: var(--bg-card); }
.article .cover img { width: 100%; height: 100%; object-fit: cover; }
.prose { font-size: 18px; line-height: 1.75; color: #2b2925; }
.prose h2, .prose h3 { font-family: var(--font-display); font-weight: 400; font-size: 38px; line-height: 1.05; letter-spacing: -0.01em; margin: 52px 0 16px; color: var(--text); }
.prose h4 { font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; margin: 28px 0 8px; color: var(--accent); }
.prose p { margin: 0 0 18px; }
.prose ol, .prose ul { padding-left: 22px; margin: 0 0 18px; }
.prose ul { list-style: disc; }
.prose li { margin-bottom: 12px; }
.prose li::marker { color: var(--accent); }
.prose strong { color: var(--text); font-weight: 700; }

/* ---------- Footer (ink) ---------- */
.site-footer { margin-top: var(--section-gap); padding: 72px 0 0; overflow: hidden; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 40px; }
.site-footer .logo-mark .lm-tile { fill: var(--paper); }
.site-footer .logo-mark .lm-v { stroke: var(--ink); }
.footer-brand p { color: var(--text-muted); margin: 18px 0 24px; max-width: 340px; font-size: 15px; }
.newsletter { display: flex; gap: 8px; max-width: 400px; }
.newsletter input { flex: 1; min-width: 0; height: 44px; padding: 0 14px; background: var(--bg-raised); border: 1px solid var(--line); border-radius: var(--radius-sm); font-size: 14.5px; }
.newsletter input:focus { outline: none; border-color: var(--accent-2); }
.newsletter .btn-sm { height: 44px; }
.newsletter-status { font-size: 13.5px; margin-top: 8px; color: var(--good); min-height: 1em; }
.footer-col h4 { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 16px; }
.footer-col a { display: block; padding: 5px 0; color: var(--text-muted); font-size: 15px; transition: color .2s; }
.footer-col a:hover { color: var(--accent-2); }
.footer-bottom { margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--text-dim); font-size: 13px; }
.footer-mark { font-family: var(--font-display); font-size: clamp(64px, 17.5vw, 250px); line-height: .8; letter-spacing: -0.03em; white-space: nowrap; color: var(--text); margin: 40px 0 -0.08em; user-select: none; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer-col:last-child { grid-column: 1 / -1; } }

/* ---------- 404 ---------- */
.notfound { padding: 120px var(--gutter) 40px; }
.notfound h1 { font-size: clamp(120px, 26vw, 320px); line-height: .85; color: var(--accent); }
.notfound p { font-family: var(--font-display); font-size: clamp(30px, 4vw, 48px); line-height: 1.05; margin: 18px 0 32px; }

/* ---------- Scroll reveal (classes added by js/main.js) ---------- */
.js-reveal .reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity .7s cubic-bezier(.22,1,.36,1), transform .7s cubic-bezier(.22,1,.36,1);
  transition-delay: calc(var(--i, 0) * 70ms);
}
.js-reveal .reveal.in { opacity: 1; transform: none; }
.js-reveal .reveal .progress i { transform: scaleX(0); transform-origin: left; transition: transform 1.2s cubic-bezier(.22,1,.36,1) .4s; }
.js-reveal .reveal.in .progress i { transform: none; }

/* Grid children must be allowed to shrink below their content width */
.split > *, .service > *, .service-visual, .mock, .testimonials > *, .posts > *, .contact-grid > *, .about-intro > *, .hero-grid > * { min-width: 0; }
