/* grndwork: styles
   Colour notes (WCAG AA):
   --red  #ED213D  brand red. Large text (>=24px) and decorative use only (4.3:1 on white).
   --red-ink #D41A33  same hue, deeper. Buttons and small red text (5.26:1 on white).
   --red-on-dark #FF6B7D  small red text on navy (4.9:1). */

:root {
  --red: #ED213D;
  --red-ink: #D41A33;
  --red-on-dark: #FF6B7D;
  --navy: #2A2D42;
  --navy-2: #34384F;
  --gray: #F4F5F7;
  --line: #E2E4EA;
  --muted: #5B5F75;
  --muted-dark: #B9BCCB;
  --white: #FFFFFF;

  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 14px;
  --container: 1160px;
  --gutter: clamp(1rem, 4vw, 2rem);
  --section-y: clamp(4.5rem, 10vw, 8rem);
  --header-h: 68px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--navy);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.08; letter-spacing: -0.025em; margin: 0; font-weight: 700; }
h2 { font-size: clamp(2rem, 4.6vw, 3.25rem); max-width: 18ch; }
h3 { font-size: 1.25rem; letter-spacing: -0.015em; }
p { margin: 0; }
ul, ol, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }

/* The wordmark echo: heavy italic red emphasis words */
h1 em, h2 em {
  font-style: italic;
  font-weight: 900;
  color: var(--red);
  letter-spacing: -0.03em;
  padding-right: 0.04em; /* keep italic overhang from clipping */
}

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 100;
  background: var(--navy); color: var(--white); padding: .75rem 1rem; border-radius: 8px;
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 1rem; }
:focus-visible { outline: 3px solid var(--red-ink); outline-offset: 3px; border-radius: 4px; }
.section-dark :focus-visible { outline-color: var(--red-on-dark); }

.eyebrow {
  font-size: .8125rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--red-ink); margin-bottom: 1rem;
  display: inline-flex; align-items: center; gap: .6rem;
}
.eyebrow::before { content: ""; width: 1.5rem; height: 2px; background: currentColor; }
.lead { font-size: clamp(1.0625rem, 1.6vw, 1.1875rem); color: var(--muted); max-width: 56ch; margin-top: 1.25rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: .8rem 1.5rem; border-radius: 999px;
  font: 600 1rem/1 var(--font); text-decoration: none; cursor: pointer;
  border: 2px solid transparent;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease), translate .35s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--red-ink); color: var(--white); }
.btn-primary:hover { background: var(--navy); }
.section-dark .btn-primary:hover { background: var(--white); color: var(--navy); }
.btn-ghost { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-ghost:hover { background: var(--navy); color: var(--white); }
.btn-sm { min-height: 42px; padding: .6rem 1.15rem; font-size: .9375rem; }
.btn-block { width: 100%; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--white); /* solid, so the logo's white background blends in */
  border-bottom: 1px solid transparent;
  transition: border-color .25s, box-shadow .25s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px -18px rgba(42, 45, 66, .5); }
.nav-bar { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand img { height: 32px; width: auto; }

.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; margin-right: -8px; padding: 0;
  background: none; border: 0; cursor: pointer; color: var(--navy); border-radius: 10px;
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
  display: block; width: 22px; height: 2px; background: currentColor; border-radius: 2px;
  transition: transform .25s var(--ease), opacity .2s;
}
.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -7px; }
.nav-toggle-bars::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-7px) rotate(-45deg); }

.site-nav {
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--white); border-bottom: 1px solid var(--line);
  padding: .5rem var(--gutter) 1.5rem;
  display: none;
}
.site-nav.is-open { display: block; animation: drop .25s var(--ease); }
.site-nav ul { display: grid; }
.site-nav li a {
  display: block; padding: .9rem 0; font-weight: 600; font-size: 1.125rem; text-decoration: none;
  border-bottom: 1px solid var(--line);
}
.site-nav .btn { margin-top: 1.25rem; width: 100%; }
/* No JS: show the links inline-wrapped so the nav still works */
html:not(.js) .nav-toggle { display: none; }
html:not(.js) .site-nav { display: block; position: static; border: 0; padding: 0 0 1rem; }

@keyframes drop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

@media (min-width: 860px) {
  .nav-toggle { display: none; }
  .site-nav, html:not(.js) .site-nav {
    display: flex; align-items: center; gap: 2rem;
    position: static; padding: 0; border: 0; background: none;
  }
  .site-nav ul { display: flex; gap: 2rem; }
  .site-nav li a {
    padding: .25rem 0; font-size: .9875rem; border: 0; position: relative;
  }
  .site-nav li a::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px;
    background: var(--red); transform: scaleX(0); transform-origin: left;
    transition: transform .25s var(--ease);
  }
  .site-nav li a:hover::after, .site-nav li a[aria-current="true"]::after { transform: scaleX(1); }
  .site-nav .btn { margin: 0; width: auto; }
}

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(4rem, 11vw, 9rem) 0 clamp(6rem, 12vw, 10rem); overflow: hidden; }
.hero-title {
  font-size: clamp(2.6rem, 8.4vw, 6.25rem);
  line-height: 1;
  letter-spacing: -0.045em;
  font-weight: 700;
}
.hero-title span { display: block; }
.hero-sub { font-size: clamp(1.0625rem, 1.8vw, 1.25rem); color: var(--muted); max-width: 60ch; margin-top: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2.25rem; }

/* ---------- Sections ---------- */
.section { padding-block: var(--section-y); }
.section-gray { background: var(--gray); }
.section-dark { background: var(--navy); color: var(--white); }
.section-dark .eyebrow { color: var(--red-on-dark); }
.section-dark .lead { color: var(--muted-dark); }
.section-head { margin-bottom: clamp(2.5rem, 5vw, 4rem); }

/* Services cards */
.cards { display: grid; gap: 1.25rem; }
@media (min-width: 760px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card {
  position: relative; padding: 2rem 1.75rem 2.25rem;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.card::before {
  content: ""; position: absolute; left: 1.75rem; right: 1.75rem; top: -1px; height: 3px;
  background: var(--red); transform: scaleX(.18); transform-origin: left;
  transition: transform .45s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: 0 24px 48px -28px rgba(42, 45, 66, .35); border-color: #D5D8E0; }
.card:hover::before { transform: scaleX(1); }
.card-num { display: block; font-size: .875rem; font-weight: 700; color: var(--muted); letter-spacing: .08em; margin-bottom: 2.5rem; }
.card h3 { font-size: 1.5rem; }
.card > p { color: var(--muted); margin-top: .75rem; }
.ticks { margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--line); display: grid; gap: .5rem; }
.ticks li { position: relative; padding-left: 1.5rem; font-weight: 500; font-size: 1rem; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .62em; width: .7rem; height: 2px; background: var(--red);
}

/* Process timeline: vertical on mobile, horizontal on desktop */
.timeline { position: relative; display: grid; gap: 1.75rem; counter-reset: step; }
.timeline::before {
  content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: var(--line);
}
.step { position: relative; padding-left: 2.5rem; counter-increment: step; }
.step-dot {
  position: absolute; left: 0; top: .3rem; width: 16px; height: 16px; border-radius: 50%;
  background: var(--white); border: 3px solid var(--navy);
  transition: background-color .3s, border-color .3s, transform .3s var(--ease);
}
.step:hover .step-dot { background: var(--red); border-color: var(--red); transform: scale(1.15); }
.step h3::before {
  content: counter(step, decimal-leading-zero); display: block;
  font-size: .8125rem; font-weight: 700; color: var(--red-ink); letter-spacing: .1em; margin-bottom: .35rem;
}
.step p { color: var(--muted); font-size: .9875rem; margin-top: .4rem; max-width: 40ch; }
.step:last-child .step-dot { background: var(--red); border-color: var(--red); }

@media (min-width: 980px) {
  .timeline { grid-template-columns: repeat(7, 1fr); gap: 1.25rem; }
  .timeline::before { left: 8px; right: 8px; top: 7px; bottom: auto; width: auto; height: 2px; }
  .step { padding-left: 0; padding-top: 2.75rem; }
  .step-dot { top: 0; }
  .step h3 { font-size: 1.125rem; }
  .step p { font-size: .9375rem; }
}

/* Industries */
.industries { display: grid; gap: 2rem; }
@media (min-width: 960px) { .industries { grid-template-columns: 5fr 7fr; gap: 4rem; align-items: center; } .industries .section-head { margin: 0; } }
.chips { display: flex; flex-wrap: wrap; gap: .6rem; }
.chips li {
  padding: .6rem 1.1rem; border-radius: 999px; background: var(--white);
  border: 1px solid var(--line); font-weight: 500; font-size: .9875rem;
  transition: border-color .2s, color .2s, transform .2s var(--ease);
}
.chips li:hover { border-color: var(--navy); transform: translateY(-2px); }

/* Hero split: copy + proof on the left, Leakology visual on the right */
.hero-split { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 960px) {
  .hero { padding-top: clamp(3rem, 6vw, 5rem); }
  .hero-split { grid-template-columns: 7fr 5fr; gap: 3rem; }
  .hero-split .hero-title { font-size: clamp(3rem, 5.4vw, 4.75rem); }
  .hero-split .hero-sub { font-size: 1.125rem; margin-top: 1.5rem; }
}
.proof {
  display: flex; gap: 1rem; align-items: center; margin-top: 2rem; padding: 1rem 1.25rem;
  border: 1px solid var(--line); border-left: 4px solid var(--red); border-radius: 12px;
  text-decoration: none; background: var(--white); max-width: 560px;
  transition: box-shadow .25s var(--ease), transform .25s var(--ease);
}
.proof:hover { box-shadow: 0 16px 36px -24px rgba(42, 45, 66, .45); transform: translateY(-2px); }
.proof-num { font-size: clamp(1.6rem, 3vw, 2rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1; flex: none; }
.proof-text { font-size: .9375rem; color: var(--muted); line-height: 1.45; }
.proof-text strong { color: var(--navy); }
.proof-link { display: inline-block; font-weight: 600; color: var(--navy); border-bottom: 2px solid var(--red); }

/* Featured case study */
.feature-work {
  display: grid; gap: 2rem; align-items: center;
  background: var(--white); border: 1px solid var(--line); border-radius: calc(var(--radius) + 4px);
  padding: clamp(1.25rem, 3vw, 2.5rem);
}
@media (min-width: 960px) { .feature-work { grid-template-columns: 7fr 5fr; gap: 3.5rem; } }
.fw-media {
  position: relative; display: block; padding: clamp(1rem, 3vw, 2rem) clamp(1rem, 3vw, 2rem) clamp(4.5rem, 9vw, 6rem);
  border-radius: var(--radius);
  background:
    linear-gradient(var(--red), var(--red)) left bottom / 30% 6px no-repeat,
    repeating-linear-gradient(90deg, rgba(255,255,255,.055) 0 1px, transparent 1px 40px),
    repeating-linear-gradient(0deg, rgba(255,255,255,.055) 0 1px, transparent 1px 40px),
    var(--navy);
}
.fw-main { width: 100%; height: auto; border-radius: 10px; box-shadow: 0 30px 50px -24px rgba(0,0,0,.6); }
.fw-float {
  position: absolute; right: clamp(.5rem, 2vw, 1.25rem); bottom: clamp(1rem, 2.5vw, 1.5rem);
  width: min(78%, 520px); height: auto; border-radius: 10px; background: var(--white);
  box-shadow: 0 24px 44px -16px rgba(0,0,0,.55); transition: transform .4s var(--ease);
}
.feature-work:hover .fw-float { transform: translateY(-5px); }
.fw-body h3 { font-size: clamp(1.4rem, 2.6vw, 1.85rem); letter-spacing: -0.02em; margin-top: .5rem; }
.fw-body > p:not(.work-cat) { color: var(--muted); margin-top: .85rem; }
.fw-stats { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 1.75rem; margin: 1.5rem 0 1.75rem; }
.fw-stats dt { font-size: clamp(1.4rem, 2.6vw, 1.75rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.fw-stats dd { font-size: .875rem; color: var(--muted); margin-top: .35rem; max-width: 12ch; }
.work-cat { font-size: .8125rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--red-ink); }

/* Featured case study without screenshots */
.feature-work-text { grid-template-columns: 1fr !important; }
.feature-work-text .fw-body { max-width: 46rem; }
.feature-work-text .fw-stats dt { font-size: clamp(2rem, 4vw, 3rem); }

/* Fit check */
.fit-grid { display: grid; gap: 1.25rem; }
@media (min-width: 860px) { .fit-grid { grid-template-columns: 7fr 5fr; } }
.fit-col { border-radius: var(--radius); padding: clamp(1.5rem, 3vw, 2.25rem); }
.fit-yes { background: var(--navy-2); border: 1px solid rgba(255,255,255,.1); }
.fit-no { border: 1px dashed rgba(255,255,255,.22); }
.fit-col h3 { font-size: 1.25rem; }
.fit-col ul { display: grid; gap: .9rem; margin-top: 1.25rem; }
.fit-col li { position: relative; padding-left: 2rem; color: var(--muted-dark); }
.fit-col li::before {
  content: ""; position: absolute; left: 0; top: .2em; width: 1.25rem; height: 1.25rem; border-radius: 50%;
  background-position: center; background-size: 12px; background-repeat: no-repeat;
}
.fit-yes li { color: var(--white); }
.fit-yes li::before {
  background-color: var(--red);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2l2.2 2.2 4.8-4.8' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.fit-no li::before {
  box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.35);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3.5 3.5l5 5M8.5 3.5l-5 5' fill='none' stroke='%23B9BCCB' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
}

/* Process: time + deliverable tag under each step title */
.step p.step-meta { font-size: .8125rem; font-weight: 600; color: var(--navy); margin-top: .35rem; }

/* Contact expectations */
.expect { display: grid; gap: .6rem; margin-top: 1.75rem; }
.expect li { position: relative; padding-left: 1.75rem; color: var(--white); font-weight: 500; }
.expect li::before {
  content: ""; position: absolute; left: 0; top: .3em; width: 1.1rem; height: 1.1rem; border-radius: 50%;
  background: var(--red) center / 10px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2l2.2 2.2 4.8-4.8' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

@media (prefers-reduced-motion: reduce) {
  .proof:hover, .feature-work:hover .fw-float { transform: none; }
}

/* Contact */
.contact-grid { display: grid; gap: 3rem; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: 1fr 1fr; gap: 4.5rem; align-items: start; } }
.contact h2 { font-size: clamp(2.1rem, 4.8vw, 3.5rem); }
.contact-meta { margin-top: 2.5rem; display: grid; gap: 1rem; }
.contact-meta li { display: grid; gap: .15rem; }
.meta-label { font-size: .8125rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-dark); }
.contact-meta a { font-weight: 600; font-size: 1.125rem; text-decoration-color: var(--red); text-underline-offset: 4px; text-decoration-thickness: 2px; }

.form-wrap {
  background: var(--white); color: var(--navy); border-radius: calc(var(--radius) + 4px);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .5);
}
.contact-form { display: grid; gap: 1.1rem; }
.field-row { display: grid; gap: 1.1rem; }
@media (min-width: 560px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: .4rem; }
.field label { font-weight: 600; font-size: .9375rem; }
.opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--navy);
  padding: .8rem .95rem; min-height: 48px;
  border: 1.5px solid #CDD0D9; border-radius: 10px; background: var(--white);
  transition: border-color .2s, box-shadow .2s;
}
.field select {
  appearance: none; -webkit-appearance: none; padding-right: 2.5rem;
  background-image: linear-gradient(45deg, transparent 50%, var(--navy) 50%), linear-gradient(135deg, var(--navy) 50%, transparent 50%);
  background-position: calc(100% - 20px) 52%, calc(100% - 15px) 52%;
  background-size: 5px 5px; background-repeat: no-repeat;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(212, 26, 51, .25);
}
.field input::placeholder, .field textarea::placeholder { color: #767A8E; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { font-size: .9375rem; min-height: 1.2em; color: var(--red-ink); }
.form-status:empty { display: none; }
.form-thanks h3 { font-size: 1.75rem; }
.form-thanks p { color: var(--muted); margin-top: .5rem; }
.form-thanks:focus { outline: none; }

/* Footer */
.site-footer { background: var(--navy); color: var(--muted-dark); border-top: 1px solid rgba(255, 255, 255, .1); padding: 3rem 0 2.5rem; }
.footer-grid { display: grid; gap: 2rem; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1fr auto; align-items: center; } .footer-legal { grid-column: 1 / -1; } }
.brand-pill { background: var(--white); padding: .7rem 1.1rem; border-radius: 999px; }
.brand-pill img { height: 24px; }
.footer-brand p { margin-top: 1rem; color: var(--white); font-weight: 500; }
.footer-nav { display: flex; flex-wrap: wrap; gap: .5rem 1.75rem; }
.footer-nav a { color: var(--white); text-decoration: none; font-weight: 500; }
.footer-nav a:hover { color: var(--red-on-dark); }
.footer-legal { font-size: .875rem; padding-top: 1.5rem; border-top: 1px solid rgba(255, 255, 255, .1); }

/* ---------- Case study pages ---------- */
.cs-hero { padding: clamp(2.25rem, 5vw, 3.5rem) 0 clamp(2rem, 4vw, 3rem); }
.cs-back { display: flex; width: fit-content; gap: .4rem; font-weight: 600; font-size: .9375rem; text-decoration: none; color: var(--muted); margin-bottom: 1.5rem; }
.cs-back:hover { color: var(--navy); }
.cs-hero h1 { font-size: clamp(2.4rem, 6vw, 4.25rem); letter-spacing: -0.04em; max-width: 20ch; }
.cs-hero h1 em { font-style: italic; font-weight: 900; color: var(--red); }
.cs-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem 1.5rem; margin-top: 2.5rem; padding-top: 1.75rem; border-top: 1px solid var(--line); }
@media (min-width: 700px) { .cs-meta { grid-template-columns: repeat(4, auto); justify-content: start; } }
.cs-meta dt { font-size: .8125rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.cs-meta dd { font-weight: 600; margin-top: .2rem; }

.shot-bar { display: flex; gap: 6px; padding: 10px 14px; background: var(--gray); border-bottom: 1px solid var(--line); }
.shot-bar span { width: 10px; height: 10px; border-radius: 50%; background: #D5D8E0; }

.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: rgba(255, 255, 255, .14); border-radius: var(--radius); overflow: hidden; }
@media (min-width: 860px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { background: var(--navy); padding: 1.75rem 1.25rem; }
.stat-num { display: block; font-size: clamp(2rem, 4.4vw, 3rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.stat-num em { font-style: italic; font-weight: 900; color: var(--red-on-dark); }
.stat-label { display: block; color: var(--muted-dark); margin-top: .6rem; font-size: .9375rem; }
.stats-note { color: var(--muted-dark); font-size: .875rem; margin-top: 1rem; }

.cs-cols { display: grid; gap: 2.5rem; }
@media (min-width: 960px) { .cs-cols { grid-template-columns: 4fr 8fr; gap: 4rem; } }
.cs-cols h2 { font-size: clamp(1.75rem, 3.4vw, 2.4rem); }
.prose p + p { margin-top: 1rem; }
.prose p { color: var(--muted); font-size: 1.0625rem; max-width: 62ch; }
.prose strong { color: var(--navy); }



/* Showcase: browser window on a navy "survey grid" stage, with floating detail cards */
.showcase {
  position: relative; border-radius: calc(var(--radius) + 6px); overflow: hidden;
  padding: clamp(1.25rem, 4vw, 3.5rem) clamp(1rem, 4vw, 3.5rem) clamp(4.5rem, 9vw, 6rem);
  background:
    linear-gradient(var(--red), var(--red)) left bottom / 30% 8px no-repeat,
    linear-gradient(#202233, #202233) left bottom / 100% 8px no-repeat,
    repeating-linear-gradient(90deg, rgba(255,255,255,.055) 0 1px, transparent 1px 48px),
    repeating-linear-gradient(0deg, rgba(255,255,255,.055) 0 1px, transparent 1px 48px),
    var(--navy);
}
.sc-main {
  margin: 0; width: min(100%, 860px); border-radius: 12px; overflow: hidden; background: var(--white);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .6);
}
.sc-main img { width: 100%; height: auto; }
.sc-float {
  position: absolute; height: auto; border-radius: 10px; background: var(--white);
  box-shadow: 0 28px 50px -18px rgba(0, 0, 0, .55), 0 0 0 1px rgba(42, 45, 66, .06);
  transition: transform .5s var(--ease);
}
.sc-rows { width: clamp(220px, 44%, 520px); right: clamp(.75rem, 3vw, 2.5rem); top: 52%; }
.sc-totals { width: clamp(170px, 30%, 372px); left: clamp(1.5rem, 7vw, 6rem); bottom: clamp(1.25rem, 3vw, 2.5rem); }
.showcase:hover .sc-rows { transform: translateY(-6px); }
.showcase:hover .sc-totals { transform: translateY(-4px); }
@media (max-width: 620px) {
  .showcase { padding-bottom: 3.25rem; }
  .sc-rows { top: auto; bottom: 1.1rem; width: 82%; right: .6rem; }
  .sc-totals { display: none; }
}
.showcase + .cs-meta { margin-top: 2rem; }

/* Feature rows: copy beside a focused crop shown near 1:1 */
.frow { display: grid; gap: 1.5rem; align-items: center; padding-block: clamp(2rem, 5vw, 3.5rem); border-top: 1px solid var(--line); }
.frow:first-of-type { border-top: 0; padding-top: 0; }
@media (min-width: 960px) {
  .frow { grid-template-columns: 5fr 7fr; gap: 4rem; }
  .frow-flip { grid-template-columns: 7fr 5fr; }
  .frow-flip .frow-copy { order: 2; }
}
.frow-num { display: block; font-size: .8125rem; font-weight: 700; letter-spacing: .1em; color: var(--red-ink); margin-bottom: .6rem; }
.frow-copy h3 { font-size: clamp(1.4rem, 2.6vw, 1.85rem); letter-spacing: -0.02em; }
.frow-copy p { color: var(--muted); margin-top: .85rem; max-width: 48ch; }
.frow-media {
  position: relative; margin: 0; border-radius: var(--radius); overflow: hidden;
  background: var(--white); border: 1px solid var(--line);
  box-shadow: 0 30px 60px -36px rgba(42, 45, 66, .5);
}
.frow-media img { width: 100%; height: auto; }
.fade-right { -webkit-mask-image: linear-gradient(90deg, #000 78%, transparent); mask-image: linear-gradient(90deg, #000 78%, transparent); }
.fade-right.fade-bottom {
  -webkit-mask-image: linear-gradient(90deg, #000 80%, transparent), linear-gradient(180deg, #000 80%, transparent);
  -webkit-mask-composite: source-in; mask-image: linear-gradient(90deg, #000 80%, transparent), linear-gradient(180deg, #000 80%, transparent);
  mask-composite: intersect;
}
.frow-stack { overflow: visible; padding-bottom: 6rem; background: var(--white); }
.frow-stack > img:first-child { border-radius: var(--radius) var(--radius) 0 0; }
.frow-media .frow-float {
  position: absolute; right: -1rem; bottom: -1.5rem; width: min(58%, 372px); height: auto;
  border-radius: 10px; background: var(--white);
  box-shadow: 0 24px 44px -16px rgba(42, 45, 66, .45), 0 0 0 1px rgba(42, 45, 66, .08);
}
@media (max-width: 620px) { .frow-stack { padding-bottom: 4.5rem; } .frow-media .frow-float { right: .5rem; bottom: -1rem; width: 66%; } }

.frows-text { display: grid; gap: 1.25rem; }
@media (min-width: 900px) { .frows-text { grid-template-columns: repeat(3, 1fr); } }
.frows-text .frow { display: block; padding: clamp(1.5rem, 3vw, 2rem); border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.frows-text .frow:first-of-type { padding-top: clamp(1.5rem, 3vw, 2rem); }

.also { display: grid; gap: 1rem; margin-top: clamp(2rem, 5vw, 3rem); padding-top: 2rem; border-top: 1px solid var(--line); }
@media (min-width: 760px) { .also { grid-template-columns: 1fr 1fr; gap: 2.5rem; } }
.also li { color: var(--muted); padding-left: 1.25rem; position: relative; }
.also li::before { content: ""; position: absolute; left: 0; top: .6em; width: .5rem; height: .5rem; background: var(--red); transform: skewX(-12deg); }
.also strong { color: var(--navy); }

@media (prefers-reduced-motion: reduce) { .showcase:hover .sc-float { transform: none; } }

.quote { margin: 0; max-width: 52rem; }
.quote blockquote { margin: 0; }
.quote p { font-size: clamp(1.4rem, 3vw, 2rem); line-height: 1.3; font-weight: 600; letter-spacing: -0.02em; }
.quote p::before { content: "\201C"; color: var(--red); font-weight: 900; font-style: italic; margin-right: .1em; }
.quote p::after { content: "\201D"; color: var(--red); font-weight: 900; font-style: italic; margin-left: .05em; }
.quote footer { margin-top: 1.25rem; color: var(--muted); font-weight: 500; }

.cs-results { margin-top: clamp(3rem, 6vw, 5rem); }
.cs-cta { text-align: left; }
.cs-cta h2 { max-width: 20ch; }
.cs-cta .hero-actions { margin-top: 2rem; }
.section-dark .btn-ghost { border-color: var(--white); color: var(--white); }
.section-dark .btn-ghost:hover { background: var(--white); color: var(--navy); }

/* Thanks page */
.thanks-page { min-height: 100vh; display: grid; align-content: center; justify-items: start; gap: 1.5rem; padding: 3rem var(--gutter); max-width: 760px; margin: 0 auto; }
.thanks-page h1 { font-size: clamp(2.4rem, 7vw, 4rem); margin-top: 2rem; }
.thanks-page .lead { margin: 0 0 .5rem; }

/* ================= Motion & visual interest ================= */

/* Service card illustrations */
.card-art { display: block; width: 100%; height: auto; margin-bottom: 1.5rem; overflow: visible; }
.card .card-num { margin-bottom: .75rem; }
.ca-panel { fill: var(--gray); }
.ca-frame { fill: var(--white); stroke: var(--line); stroke-width: 1.5; }
.ca-navy { fill: var(--navy); }
.ca-red { fill: var(--red); }
.ca-side { fill: rgba(255, 255, 255, .55); }
.ca-dim { fill: rgba(255, 255, 255, .3); }
.ca-line { fill: #D5D8E0; }
.ca-soft { fill: #E6E8ED; }
.ca-bar { fill: #C9CCD8; }
.ca-chip { fill: var(--white); stroke: var(--line); stroke-width: 1.5; }
.ca-tick { fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ca-bar-top { fill: var(--gray); stroke: var(--line); stroke-width: 1.5; }
.ca-dot { fill: #C9CCD8; }
.ca-cursor { fill: var(--navy); stroke: #fff; stroke-width: 1.2; }
.ca-tri { fill: none; stroke: var(--navy); stroke-width: 3; stroke-linejoin: round; }
.ca-pen { fill: none; stroke: var(--navy); stroke-width: 2; stroke-dasharray: 360; stroke-dashoffset: 0; }
.ca-anchor { fill: var(--white); stroke: var(--red); stroke-width: 2; }
.ca-circle { opacity: .92; }
.card-art * { transform-box: fill-box; }

/* Apps: bars grow, status chip pops */
.ca-bar { transform-origin: 50% 100%; transition: transform .7s var(--ease); }
.ca-pop { transform-origin: 30% 50%; transition: transform .45s var(--ease), opacity .45s; }
.card:hover .b1 { transform: scaleY(1.25); }
.card:hover .b2 { transform: scaleY(.8); }
.card:hover .b3 { transform: scaleY(1.12); }
.card:hover .b4 { transform: scaleY(1.3); }
/* Web: cursor glides to the button, button presses */
.ca-cursor { transform: translate(150px, 112px); transition: transform .9s var(--ease); }
.ca-btn { transform-origin: center; transition: transform .25s var(--ease) .75s, fill .25s .75s; }
.card:hover .ca-cursor { transform: translate(232px, 62px); }
.card:hover .ca-btn { transform: scale(.92); fill: var(--red-ink); }
.ca-l1, .ca-l3 { transform-origin: 0 50%; transition: transform .6s var(--ease); }
.card:hover .ca-l1 { transform: scaleX(.75); }
.card:hover .ca-l3 { transform: scaleX(.85); }
/* Design: shapes shift, square rotates */
.ca-circle, .ca-square, .ca-tri { transform-origin: center; transition: transform .7s var(--ease); }
.card:hover .ca-circle { transform: translateX(-10px) scale(1.06); }
.card:hover .ca-square { transform: rotate(12deg); }
.card:hover .ca-tri { transform: translateY(-6px) rotate(-8deg); }

/* Intro animations when the card scrolls into view (JS only) */
.js .card.reveal .ca-bar { transform: scaleY(0); }
.js .card.reveal.is-visible .ca-bar { transform: none; }
.js .card.reveal.is-visible .b2 { transition-delay: .08s; }
.js .card.reveal.is-visible .b3 { transition-delay: .16s; }
.js .card.reveal.is-visible .b4 { transition-delay: .24s; }
.js .card.reveal .ca-pop { transform: scale(.6); opacity: 0; }
.js .card.reveal.is-visible .ca-pop { transform: none; opacity: 1; transition-delay: .5s; }
.js .card.reveal .ca-pen { stroke-dashoffset: 360; }
.js .card.reveal.is-visible .ca-pen { stroke-dashoffset: 0; transition: stroke-dashoffset 1.6s var(--ease) .3s; }
.js .card.reveal:hover .b1, .js .card.reveal:hover .b2, .js .card.reveal:hover .b3, .js .card.reveal:hover .b4 { transition-delay: 0s; }
.js .card.reveal.is-visible:hover .b1 { transform: scaleY(1.25); }
.js .card.reveal.is-visible:hover .b2 { transform: scaleY(.8); }
.js .card.reveal.is-visible:hover .b3 { transform: scaleY(1.12); }
.js .card.reveal.is-visible:hover .b4 { transform: scaleY(1.3); }

/* Industries marquee: two rows scrolling in opposite directions */
.marquee {
  display: grid; gap: .75rem; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee-track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee-track.rev { animation-direction: reverse; animation-duration: 44s; }
.marquee-track .chips { flex-wrap: nowrap; padding-right: .6rem; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Process: red progress line draws across, dots light in sequence */
.timeline::after {
  content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: var(--red);
  transform: scaleY(0); transform-origin: top; transition: transform 1.8s var(--ease) .2s;
}
.step-dot { z-index: 1; }
.timeline.is-visible::after { transform: none; }
.timeline.is-visible .step-dot { background: var(--red); border-color: var(--red); }
.timeline.is-visible .step:nth-child(1) .step-dot { transition-delay: .2s; }
.timeline.is-visible .step:nth-child(2) .step-dot { transition-delay: .45s; }
.timeline.is-visible .step:nth-child(3) .step-dot { transition-delay: .7s; }
.timeline.is-visible .step:nth-child(4) .step-dot { transition-delay: .95s; }
.timeline.is-visible .step:nth-child(5) .step-dot { transition-delay: 1.2s; }
.timeline.is-visible .step:nth-child(6) .step-dot { transition-delay: 1.45s; }
.timeline.is-visible .step:nth-child(7) .step-dot { transition-delay: 1.7s; }
html:not(.js) .timeline::after { transform: none; }
@media (min-width: 980px) {
  .timeline::after { left: 8px; right: 8px; top: 7px; bottom: auto; width: auto; height: 2px; transform: scaleX(0); transform-origin: left; }
  .timeline.is-visible::after, html:not(.js) .timeline::after { transform: none; }
}

/* Reduced motion: everything static and fully visible */
@media (prefers-reduced-motion: reduce) {
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .marquee-track { animation: none; width: auto; }
  .marquee-track .chips { flex-wrap: wrap; padding-right: 0; }
  .marquee-track .chips[aria-hidden="true"] { display: none; }
  .js .card.reveal .ca-bar, .js .card.reveal .ca-pop { transform: none; opacity: 1; }
  .js .card.reveal .ca-pen { stroke-dashoffset: 0; }
  .timeline::after { transform: none !important; }
}

/* ================= Immersive intro (topographic terrain) ================= */
.immersive { position: relative; background: var(--navy); color: var(--white); overflow: clip; }
.immersive::after { content: ""; position: absolute; left: 0; bottom: 0; width: 30%; height: 6px; background: var(--red); z-index: 2; }
.terrain-wrap {
  position: sticky; top: 0; height: 100vh; height: 100svh; margin-bottom: -100vh; margin-bottom: -100svh;
  pointer-events: none; z-index: 0;
}
.terrain { display: block; width: 100%; height: 100%; }
.immersive .hero, .story { position: relative; z-index: 1; }
/* soft vignette so text always reads over the contours */
.terrain-wrap::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 70% at 18% 50%, rgba(42, 45, 66, .85), transparent 70%);
}
@media (max-width: 859px) {
  .terrain-wrap::after { background: linear-gradient(180deg, transparent 20%, rgba(42, 45, 66, .75) 60%); }
}

.hero-dark { min-height: calc(100svh - var(--header-h)); display: flex; align-items: center; padding-block: clamp(3rem, 7vw, 5rem) clamp(5rem, 9vw, 7rem); }
.hero-dark .hero-inner { width: 100%; }
.hero-dark .hero-title { color: var(--white); }
.hero-dark .eyebrow { color: var(--red-on-dark); }
.hero-dark .hero-sub { color: var(--muted-dark); }
.hero-dark .btn-ghost { border-color: rgba(255, 255, 255, .8); color: var(--white); }
.hero-dark .btn-ghost:hover { background: var(--white); color: var(--navy); }
.hero-dark .btn-primary:hover { background: var(--white); color: var(--navy); }
.hero-dark .proof { background: rgba(255, 255, 255, .05); border-color: rgba(255, 255, 255, .14); border-left-color: var(--red); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.hero-dark .proof-num, .hero-dark .proof-text strong, .hero-dark .proof-link { color: var(--white); }
.hero-dark .proof-text { color: var(--muted-dark); }
.hero-dark :focus-visible { outline-color: var(--red-on-dark); }
.hero-space { min-height: 1px; }
@media (max-width: 959px) { .hero-space { display: none; } }

.scroll-cue {
  position: absolute; left: 50%; bottom: 1.75rem; translate: -50% 0;
  display: flex; flex-direction: column; align-items: center; gap: .6rem;
  font-size: .75rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--muted-dark);
}
.scroll-cue span { position: relative; width: 1px; height: 42px; background: rgba(255, 255, 255, .2); overflow: hidden; }
.scroll-cue span::after { content: ""; position: absolute; left: 0; top: -40%; width: 100%; height: 40%; background: var(--red); animation: cue 2s var(--ease) infinite; }
@keyframes cue { to { top: 100%; } }

.story-step { min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding-block: 6rem; }
.story-step .container { width: 100%; }
.story-copy { max-width: 30rem; }
.story-num { font-size: .8125rem; font-weight: 700; letter-spacing: .18em; color: var(--red-on-dark); }
.story-title { font-size: clamp(3.25rem, 9vw, 7.5rem); font-weight: 800; letter-spacing: -0.055em; line-height: .95; margin-top: .75rem; }
.story-title .dot { color: var(--red); }
.story-copy > p:not(.story-num) { color: var(--muted-dark); font-size: clamp(1.0625rem, 1.6vw, 1.3rem); margin-top: 1.25rem; max-width: 34ch; }
.story-link { display: inline-flex; gap: .4rem; margin-top: 1.75rem; color: var(--white); font-weight: 600; text-decoration: none; border-bottom: 2px solid var(--red); padding-bottom: 3px; }
.story-link span { transition: translate .25s var(--ease); }
.story-link:hover span { translate: 4px 0; }
@media (max-width: 859px) {
  .story-step { align-items: flex-end; padding-block: 50svh 4.5rem; min-height: 100svh; }
}

/* ================= Word-by-word heading reveals ================= */
.split .sw { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .12em; margin-bottom: -.12em; }
.split .sw > span { display: inline-block; transform: translateY(105%); transition: transform .9s var(--ease); }
.is-visible .split .sw > span, .split.is-visible .sw > span { transform: none; }
/* split headings animate their words instead of fading the whole block */
.js .reveal.split { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .scroll-cue span::after { animation: none; }
  .split .sw > span { transform: none !important; }
}

/* ---------- Scroll reveal (only when JS is running) ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .btn:hover, .card:hover, .chips li:hover { transform: none; }
}
