/* ==========================================================================
   Xentham — Homepage V3 (dark theme concept)
   Standalone stylesheet. Same structure/sections as V2, dark palette.
   Does NOT touch V1 (styles.css) or V2 (v2.css).
   Centrepiece: the D.O.M.I.N.A.T.E. framework section.
   ========================================================================== */

:root {
  --paper:     #100E0B;   /* page field — warm near-black */
  --card:      #191512;   /* raised surfaces */
  --ink:       #F6F1E8;   /* primary text */
  --muted:     #A2958A;
  --line:      #2C2620;
  --gold:      #F0B429;
  --gold-deep: #F7C75A;   /* text-safe gold on dark backgrounds */
  --gold-soft: rgba(240, 180, 41, 0.10);
  --gold-brd:  rgba(240, 180, 41, 0.30);

  --display: 'Archivo', sans-serif;
  --body:    'Instrument Sans', sans-serif;
  --mono:    'JetBrains Mono', monospace;

  --s-4: 4px;  --s-8: 8px;  --s-12: 12px; --s-16: 16px; --s-24: 24px;
  --s-32: 32px; --s-48: 48px; --s-64: 64px; --s-96: 96px;

  --grid: 1200px;
  --gutter: var(--s-32);

  /* On a dark field a cast shadow alone reads as nothing, so each elevation
     pairs a deep shadow with a faint inner top highlight. */
  --shadow-card: 0 20px 44px -22px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.03);
  --shadow-lift: 0 30px 60px -24px rgba(0, 0, 0, 1), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

*, *::before, *::after { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; color-scheme: dark; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { list-style: none; padding: 0; }
a { text-decoration: none; color: inherit; }
button { font: inherit; }

.wrap {
  width: 100%;
  max-width: calc(var(--grid) + (var(--gutter) * 2));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--s-96); }
/* Sections alternate near-black / raised charcoal and each raised band carries
   hairline borders, so neighbouring sections read as separate rather than
   merging into one continuous field. */
.bg-card {
  background: var(--card);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

/* --- Type --- */
.eyebrow {
  display: flex; align-items: center; gap: var(--s-12);
  font-family: var(--mono); font-size: 12px;
  text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--gold-deep);
}
.eyebrow::before { content: ""; width: 24px; height: 2px; background: var(--gold); }

.h-hero {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(38px, 4.8vw, 64px);
  line-height: 1.02; letter-spacing: -0.025em;
}
.h-sec {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(26px, 3.1vw, 38px);
  line-height: 1.15; letter-spacing: -0.015em;
}
.h-item { font-family: var(--display); font-weight: 700; font-size: 20px; line-height: 1.3; letter-spacing: -0.01em; }

.gold-word { color: var(--gold-deep); }

.body-l { font-size: 18px; line-height: 1.6; color: var(--muted); max-width: 55ch; }
.body-m { font-size: 16px; line-height: 1.65; color: var(--muted); max-width: 60ch; }
.body-s { font-size: 14px; line-height: 1.65; color: var(--muted); }

.mono-xs {
  font-family: var(--mono); font-size: 10px;
  text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--muted);
}

/* --- Buttons / chips --- */
.btn {
  display: inline-flex; align-items: center; gap: var(--s-8);
  border-radius: 12px; padding: 14px 22px;
  font-family: var(--display); font-weight: 700; font-size: 14px; line-height: 1;
  color: #171310;
  background: linear-gradient(135deg, #FFD874, #F0B429 45%, #DF9F12);
  border: 1px solid rgba(255, 214, 112, 0.45);
  box-shadow: 0 14px 30px -14px rgba(240, 180, 41, 0.65);
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
}
.btn:hover, .btn:focus-visible { transform: translateY(-2px); box-shadow: 0 18px 38px -14px rgba(240, 180, 41, 0.85); }

.btn--ghost {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
  color: var(--ink);
}
.btn--ghost:hover { box-shadow: var(--shadow-lift); border-color: var(--gold-brd); color: var(--gold-deep); }

.btn--ink { background: var(--card); border-color: var(--line); color: var(--ink); box-shadow: var(--shadow-card); }
.btn--ink:hover { box-shadow: var(--shadow-lift); color: var(--gold-deep); }

.chip {
  display: inline-flex; align-items: center; gap: var(--s-8);
  border-radius: 999px; padding: 6px 14px;
  font-family: var(--mono); font-size: 10px;
  text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--gold-deep);
  background: var(--gold-soft);
  border: 1px solid var(--gold-brd);
}

/* --- Cards --- */
.card {
  border-radius: 20px;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); border-color: var(--gold-brd); }
.card--pad { padding: var(--s-32); display: flex; flex-direction: column; gap: var(--s-24); }
.card--static:hover { transform: none; border-color: var(--line); box-shadow: var(--shadow-card); }

.icon-tile {
  width: 48px; height: 48px; border-radius: 14px;
  display: grid; place-items: center;
  color: var(--gold-deep);
  background: var(--gold-soft);
  border: 1px solid var(--gold-brd);
}
.icon-tile svg { width: 22px; height: 22px; }

.ghost-num {
  font-family: var(--display); font-weight: 800;
  font-size: 48px; line-height: 1;
  color: rgba(246, 241, 232, 0.07);
  user-select: none;
}

.row-split { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--s-16); }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-24); }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-24); }

/* ==========================================================================
   Nav
   ========================================================================== */

.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(16, 14, 11, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav__inner {
  display: grid; grid-template-columns: 1fr auto 1fr;
  align-items: center; gap: var(--s-32);
  min-height: 76px;
}
.nav__logo { justify-self: start; }
/* The V1 logo asset is already a light wordmark — on dark it needs no filter */
.nav__logo img, .footer__logo img { height: 40px; width: auto; }
.nav__links { display: flex; align-items: center; justify-content: center; gap: var(--s-24); }
.nav__links a {
  font-family: var(--mono); font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--muted);
  padding-block: var(--s-8);
  border-bottom: 1px solid transparent;
  transition: color .2s ease, border-color .2s ease;
}
.nav__links a:hover, .nav__links a:focus-visible { color: var(--gold-deep); border-bottom-color: var(--gold); }
.nav__side { display: flex; align-items: center; gap: var(--s-16); justify-self: end; }
.nav__toggle {
  display: none; background: var(--card); border: 1px solid var(--line);
  border-radius: 10px; padding: var(--s-8) var(--s-12); cursor: pointer;
}
.nav__toggle span { display: block; width: 18px; height: 2px; background: var(--ink); }
.nav__toggle span + span { margin-top: 4px; }

/* ==========================================================================
   Hero
   ========================================================================== */

.hero { position: relative; overflow: hidden; padding-block: var(--s-96); }
/* Warm gold glow instead of a flat field */
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(620px 420px at 82% 6%, rgba(240, 180, 41, 0.16), transparent 70%),
    radial-gradient(520px 380px at 6% 92%, rgba(240, 180, 41, 0.08), transparent 70%);
}
.hero__grid {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1fr) 520px;
  gap: var(--s-64); align-items: center;
}
.hero__copy { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s-24); }
.hero__points { display: flex; flex-direction: column; gap: var(--s-12); }
.hero__points li { display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: var(--s-12); align-items: start; }
.hero__points i { width: 8px; height: 8px; border-radius: 3px; background: var(--gold); margin-top: 7px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: var(--s-12); margin-top: var(--s-8); }

/* Lead form card */
.lead {
  border-radius: 20px;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lift);
  overflow: hidden;
}
.lead__head {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-16);
  padding: var(--s-16) var(--s-24);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(160deg, #221C16, #191512);
}
.lead__head strong { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); }
.lead__body { padding: var(--s-32); display: flex; flex-direction: column; gap: var(--s-24); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-16); }
.field { display: flex; flex-direction: column; gap: var(--s-8); }
.field label { font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); }
.field input, .field select {
  width: 100%;
  background: transparent;
  border: none; border-bottom: 1px solid #3A322A;
  border-radius: 6px;
  font-family: var(--body); font-size: 15px; color: var(--ink);
  padding: var(--s-12) 0;
  transition: border-color .2s ease;
}
.field input::placeholder { color: #6B6058; }
.field input:focus, .field select:focus { outline: none; border-bottom-color: var(--gold); }
.field select { appearance: none; padding-right: var(--s-24);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0h10L5 6z' fill='%23F0B429'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 4px center; }
.field select option { background: var(--card); color: var(--ink); }
.form-trust { display: flex; flex-wrap: wrap; gap: var(--s-8) var(--s-16); }
.form-trust li { display: flex; align-items: center; gap: var(--s-8); }
.form-trust i { width: 6px; height: 6px; border-radius: 2px; background: var(--gold); }
.form-note { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; color: var(--muted); }
.form-note[data-state="error"] { color: #FF7A6B; }
.form-note[data-state="ok"] { color: var(--gold-deep); }

/* ==========================================================================
   Stats strip
   ========================================================================== */

.signals { padding-block: var(--s-96); }
.signals__head {
  display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: var(--s-48); align-items: end;
  margin-bottom: var(--s-48);
}
.signals__note { text-align: right; justify-self: end; }
.signals__grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--s-16); }
.signal {
  position: relative; overflow: hidden;
  border-radius: 16px; padding: var(--s-24);
  background: linear-gradient(180deg, #1F1A16, #171310);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.signal:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); border-color: var(--gold-brd); }
/* quarter-circle arc peeking from the bottom-right corner */
.signal::after {
  content: ""; position: absolute; right: -30px; bottom: -30px;
  width: 72px; height: 72px; border-radius: 50%;
  border: 1.5px solid var(--gold-brd);
  pointer-events: none;
}
.signal b {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(28px, 2.4vw, 36px); line-height: 1; letter-spacing: -0.02em;
  color: var(--ink);
  display: block;
}
.signal h3 {
  margin-top: var(--s-16);
  font-family: var(--display); font-weight: 700;
  font-size: 15px; letter-spacing: -0.005em; color: var(--ink);
}
.signal p { margin-top: var(--s-8); font-size: 13px; line-height: 1.5; color: var(--muted); }

/* ==========================================================================
   D.O.M.I.N.A.T.E. framework — the centrepiece
   ========================================================================== */

.dominate { position: relative; }
.dominate__grid {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: var(--s-64); align-items: start;
}
.dominate__intro { position: sticky; top: 110px; display: flex; flex-direction: column; align-items: flex-start; gap: var(--s-24); }
.dominate__title {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(30px, 3.6vw, 46px);
  line-height: 1.08; letter-spacing: -0.02em;
}
.dominate__title .tm { font-size: 0.45em; vertical-align: super; letter-spacing: 0; }

/* --- Proof composition: gold card + rotating seal + floating pill --- */
.method-visual {
  position: relative;
  margin-top: var(--s-16);
  width: 100%;
  max-width: 400px;
  /* room for the seal poking past the top-right and pill past bottom-left */
  padding: 44px 44px 24px 0;
}
.method-card {
  border-radius: 20px;
  padding: var(--s-24);
  background: linear-gradient(150deg, #FFDC7C, #F0B429 60%, #DF9F12);
  border: 1px solid rgba(255, 214, 112, 0.45);
  box-shadow: 0 26px 54px -20px rgba(240, 180, 41, 0.45);
}
.method-card__spark { width: 100%; height: auto; display: block; }
.method-card__cap { margin-top: var(--s-16); }
.method-card__cap b {
  display: block;
  font-family: var(--display); font-weight: 800;
  font-size: 34px; line-height: 1; letter-spacing: -0.02em;
  color: #171310;
}
.method-card__cap span {
  display: block; margin-top: var(--s-8);
  font-family: var(--mono); font-size: 10px;
  text-transform: uppercase; letter-spacing: .12em;
  color: rgba(23, 19, 16, 0.7);
}

.method-seal {
  position: absolute; top: 0; right: 0;
  width: 108px; height: 108px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--paper);
  border: 1px solid var(--gold-brd);
  box-shadow: var(--shadow-lift);
}
.method-seal svg {
  position: absolute; inset: 6px;
  animation: seal-spin 24s linear infinite;
}
.method-seal svg text {
  font-family: var(--mono); font-size: 12.5px;
  letter-spacing: 0.18em;
  fill: var(--gold-deep);
}
.method-seal__core {
  font-family: var(--display); font-weight: 800; font-size: 26px;
  color: var(--ink);
}
@keyframes seal-spin { to { transform: rotate(360deg); } }

.method-pill {
  position: absolute; left: -10px; bottom: 4px;
  border-radius: 999px; padding: 10px 18px;
  font-family: var(--display); font-weight: 700; font-size: 14px;
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--gold-brd);
  box-shadow: var(--shadow-lift);
}

.frame {
  border-radius: 20px;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
  padding: var(--s-16) var(--s-24);
}
.frame__step {
  position: relative;
  display: grid; grid-template-columns: 48px minmax(0, 1fr);
  gap: var(--s-16);
  padding-block: var(--s-16);
}
/* Divider between steps, inset to the text column so it starts clear of the
   rail instead of cutting across it. Drawn on the body rather than as a
   border on the step itself, because both step pseudo-elements are already
   carrying rail segments. */
.frame__step + .frame__step .frame__body::before {
  content: "";
  position: absolute;
  top: 0; right: 0;
  left: calc(48px + var(--s-16));   /* tile column + grid gap */
  height: 1px;
  background: var(--line);
}

/* Rail connecting the letters. Split into two segments per step — one above
   the tile, one below — so it stops on the tile's border instead of running
   through it. The tile tint is translucent here, so simply stacking the tile
   over a full-height rail would leave the line visible inside the box.
   Offsets track the step's 16px block padding plus the 48px tile. */
.frame__step::before,
.frame__step::after {
  content: ""; position: absolute; left: 23px; width: 2px;
  background: rgba(240, 180, 41, 0.16);
}
.frame__step::before { top: 0; height: var(--s-16); }               /* step top → tile top */
.frame__step::after  { top: calc(var(--s-16) + 48px); bottom: 0; }  /* tile bottom → step bottom */
/* Nothing to connect above the first tile or below the last one */
.frame__step:first-child::before,
.frame__step:last-child::after { content: none; }

.frame__letter {
  position: relative; z-index: 1;
  width: 48px; height: 48px; border-radius: 13px;
  display: grid; place-items: center;
  font-family: var(--display); font-weight: 800; font-size: 22px;
  color: var(--gold-deep);
  /* gold tint over an opaque base — keeps the rail out of the tile even if a
     segment ever lands a subpixel long */
  background: linear-gradient(160deg, rgba(240, 180, 41, 0.16), rgba(240, 180, 41, 0.06)), var(--paper);
  border: 1px solid var(--gold-brd);
  transition: background .25s ease, color .25s ease, transform .25s ease;
}
.frame__step:hover .frame__letter {
  background: linear-gradient(135deg, #FFD874, #F0B429);
  color: #171310;
  transform: scale(1.05);
}
.frame__step h3 { font-family: var(--display); font-weight: 700; font-size: 17px; letter-spacing: -0.01em; margin-top: var(--s-4); color: var(--ink); }
/* Reserve two lines of body copy so steps whose blurb fits on one line keep
   the same row height as the ones that wrap — 1.65em is one .body-s line. */
.frame__step p { margin-top: var(--s-4); min-height: calc(1.65em * 2); }

/* ==========================================================================
   Results
   ========================================================================== */

.case {
  border-radius: 24px; overflow: hidden;
  background: var(--card); border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
}
.case__head {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-16);
  padding: var(--s-16) var(--s-32);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(160deg, #221C16, #191512);
}
.case__head strong { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }
.case__body { padding: var(--s-32); display: flex; flex-direction: column; gap: var(--s-32); }
.case__foot { padding: var(--s-16) var(--s-32); border-top: 1px solid var(--line); }

.nbx { display: flex; flex-direction: column; gap: var(--s-8); }
.nbx b {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(30px, 3.4vw, 44px); line-height: 1; letter-spacing: -0.02em;
  background: linear-gradient(120deg, #E9A916, #FFD874 55%, #E9A916);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.bars { display: flex; flex-direction: column; gap: var(--s-16); }
.bar { display: grid; grid-template-columns: minmax(0, 1fr) 56px; gap: var(--s-16); align-items: center; }
.bar__label { font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); margin-bottom: var(--s-8); }
.bar__track { height: 8px; border-radius: 99px; background: #221D18; border: 1px solid var(--line); overflow: hidden; }
.bar__fill { height: 100%; border-radius: 99px; background: linear-gradient(90deg, #FFD874, #E9A916); }
.bar__fill--muted { background: #4A4038; }
.bar__val { font-family: var(--display); font-weight: 800; font-size: 15px; color: var(--gold-deep); text-align: right; }

/* ==========================================================================
   Clients — logo wall. Marks sit muted by default and warm to gold on
   hover, the standard treatment so the row reads as proof, not decoration.
   ========================================================================== */

.clients__head {
  display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: var(--s-48); align-items: end;
  margin-bottom: var(--s-48);
}
.clients__note { text-align: right; justify-self: end; }

.logos {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.logo {
  display: flex; align-items: center; justify-content: center; gap: var(--s-12);
  padding: var(--s-32) var(--s-24);
  color: #7C7168;
  /* hairline grid between cells, without doubling on the outer edges */
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: color .25s ease, background-color .25s ease;
}
.logo:nth-child(3n) { border-right: 0; }
.logo:nth-last-child(-n+3) { border-bottom: 0; }
.logo:hover { color: var(--gold-deep); background: rgba(240, 180, 41, 0.06); }
.logo__mark { width: 26px; height: 26px; flex: 0 0 auto; }
.logo__name {
  font-family: var(--display); font-weight: 700;
  font-size: 17px; letter-spacing: -0.01em;
  white-space: nowrap;
}
.clients__foot { margin-top: var(--s-16); }

/* CTA bar closing the client wall — the whole strip is the link.
   Uses the same gold gradient as .btn so it reads as the one bright action
   in the dark field rather than another charcoal slab. */
.nextbar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--s-24);
  margin-top: var(--s-32);
  padding: var(--s-24) var(--s-32);
  border-radius: 20px;
  background: linear-gradient(135deg, #FFDC7C, #F0B429 55%, #DF9F12);
  border: 1px solid rgba(255, 214, 112, 0.45);
  box-shadow: 0 20px 44px -18px rgba(240, 180, 41, 0.55);
  color: #171310;
  transition: transform .25s ease, box-shadow .25s ease;
}
.nextbar:hover {
  transform: translateY(-3px);
  box-shadow: 0 26px 52px -18px rgba(240, 180, 41, 0.7);
}
.nextbar__plus {
  font-family: var(--display); font-weight: 700;
  font-size: 24px; line-height: 1;
  color: rgba(23, 19, 16, 0.55);
}
.nextbar__text { display: flex; flex-direction: column; gap: var(--s-4); }
.nextbar__eyebrow {
  font-family: var(--mono); font-size: 10px;
  text-transform: uppercase; letter-spacing: 0.16em;
  color: rgba(23, 19, 16, 0.65);
}
.nextbar__title {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(19px, 2.2vw, 26px); letter-spacing: -0.015em;
  color: #171310;
}
.nextbar__arrow {
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  background: #171310;
  color: var(--gold);
  transition: transform .25s ease;
}
.nextbar__arrow svg { width: 17px; height: 17px; }
.nextbar:hover .nextbar__arrow { transform: translate(2px, -2px); }

/* ==========================================================================
   How we work — alternating timeline. Thin centre rail with small dots; each
   card pairs a text body with a divided date panel and points at the rail.
   ========================================================================== */

.vtl { position: relative; display: flex; flex-direction: column; gap: var(--s-24); }
.vtl::before {
  content: "";
  position: absolute;
  left: 50%; transform: translateX(-50%);
  top: 0; bottom: 0;
  width: 3px; border-radius: 3px;
  background: linear-gradient(180deg,
    rgba(240, 180, 41, 0.10),
    var(--gold) 12%,
    var(--gold) 88%,
    rgba(240, 180, 41, 0.10));
}

.vtl__step {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 48px minmax(0, 1fr);
  align-items: center;
}
/* grid-row: 1 is required — the dot is first in the DOM and holds column 2,
   so a card asking for column 1 would otherwise wrap onto a second row. */
.vtl__dot { grid-column: 2; grid-row: 1; justify-self: center; }
.vtl__step:nth-child(odd) .vtl__card { grid-column: 1; grid-row: 1; }
.vtl__step:nth-child(even) .vtl__card { grid-column: 3; grid-row: 1; }

.vtl__dot {
  position: relative; z-index: 1;
  width: 13px; height: 13px; border-radius: 50%;
  background: var(--gold);
  /* the first ring is the section background, punching a gap in the rail */
  box-shadow: 0 0 0 4px var(--card), 0 0 0 6px var(--gold-brd);
  transition: transform .25s ease;
}
.vtl__step:hover .vtl__dot { transform: scale(1.35); }

.vtl__card {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1fr) 104px;
  border-radius: 14px;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.vtl__step:hover .vtl__card { box-shadow: var(--shadow-lift); border-color: var(--gold-brd); }
.vtl__step:nth-child(odd):hover .vtl__card { transform: translateX(-4px); }
.vtl__step:nth-child(even):hover .vtl__card { transform: translateX(4px); }

/* Pointer arrow from the card toward the rail */
.vtl__card::after {
  content: "";
  position: absolute; top: 50%; margin-top: -7px;
  width: 0; height: 0;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
}
.vtl__step:nth-child(odd) .vtl__card::after {
  right: -7px;
  border-left: 7px solid var(--paper);
  filter: drop-shadow(1px 0 0 var(--line));
}
.vtl__step:nth-child(even) .vtl__card::after {
  left: -7px;
  border-right: 7px solid var(--paper);
  filter: drop-shadow(-1px 0 0 var(--line));
}

.vtl__body { padding: var(--s-24); display: flex; flex-direction: column; gap: var(--s-8); }
.vtl__title { font-family: var(--display); font-weight: 700; font-size: 19px; letter-spacing: -0.01em; color: var(--ink); }
.vtl__body .body-s { max-width: 46ch; }

/* Date panel — divided off the body */
.vtl__when {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; padding: var(--s-16) var(--s-12);
  border-left: 1px solid var(--line);
  background: linear-gradient(180deg, #221C16, #191512);
  text-align: center;
}
.vtl__unit,
.vtl__step-no {
  font-family: var(--mono); font-size: 9px;
  text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--muted);
}
.vtl__num {
  font-family: var(--display); font-weight: 800;
  font-size: 26px; line-height: 1.1; letter-spacing: -0.02em;
  color: var(--gold-deep);
}

/* ==========================================================================
   Services — four-column row: number + icon, title, blurb, bullet list,
   divider, "Explore this service" footer link. Core service card elevated.
   ========================================================================== */

.svc-head {
  display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: var(--s-48); align-items: end;
  margin-bottom: var(--s-48);
}
.svc-head__note { text-align: right; justify-self: end; }

.svc-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-16); }

.svc-card {
  display: flex; flex-direction: column; align-items: flex-start; gap: var(--s-16);
  border-radius: 16px; padding: var(--s-24);
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.svc-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); border-color: var(--gold-brd); }
/* Core service — lifted, and tinted so it reads as the highlighted one */
.svc-card--hi {
  border-color: var(--gold-brd);
  background: linear-gradient(180deg, rgba(240, 180, 41, 0.07), var(--card) 55%);
  box-shadow: var(--shadow-lift);
  transform: translateY(-8px);
}
.svc-card--hi:hover { transform: translateY(-12px); }

.svc-card__top {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-16);
}
.svc-num {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.14em; color: var(--muted);
}
.icon-tile--sm { width: 40px; height: 40px; border-radius: 12px; }
.icon-tile--sm svg { width: 18px; height: 18px; }

.svc-list { display: flex; flex-direction: column; gap: var(--s-8); }
.svc-list li {
  position: relative;
  padding-left: var(--s-16);
  font-size: 13px; line-height: 1.5; color: var(--ink);
}
.svc-list li::before {
  content: ""; position: absolute; left: 0; top: 7px;
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--gold);
}

.svc-cta {
  margin-top: auto;
  width: 100%;
  padding-top: var(--s-16);
  border-top: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-8);
  font-family: var(--display); font-weight: 700; font-size: 13px;
  color: var(--ink);
  transition: color .2s ease;
}
.svc-cta span { transition: transform .2s ease; }
.svc-cta:hover { color: var(--gold-deep); }
.svc-cta:hover span { transform: translateX(4px); }

/* ==========================================================================
   ROI calculator — anchored to the real 6.61x case-study ROAS, labelled
   illustrative. The multiplier lives in v3.js; keep the two in sync.
   ========================================================================== */

.calc {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--s-64); align-items: center;
}
.calc__panel {
  display: flex; flex-direction: column; gap: var(--s-24);
  border-radius: 20px; padding: var(--s-32);
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
}
.calc__row { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-16); }
.calc__out {
  font-family: var(--display); font-weight: 800;
  font-size: 24px; letter-spacing: -0.02em; color: var(--ink);
}
.calc__panel input[type="range"] {
  width: 100%;
  accent-color: var(--gold);
  cursor: pointer;
}
.calc__results {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-16);
}
.calc__results > div {
  border-radius: 14px; padding: var(--s-16);
  background: var(--card); border: 1px solid var(--line);
}
.calc__results b {
  display: block; margin-top: var(--s-8);
  font-family: var(--display); font-weight: 800;
  font-size: clamp(22px, 2.2vw, 30px); line-height: 1; letter-spacing: -0.02em;
  color: var(--gold-deep);
}

/* ==========================================================================
   Founder
   ========================================================================== */

.founder { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--s-64); align-items: center; }
.founder__copy { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s-24); }
.portrait {
  position: relative; border-radius: 24px; overflow: hidden;
  background: linear-gradient(160deg, #FFD874, #E9A916);
  border: 1px solid var(--gold-brd);
  box-shadow: var(--shadow-lift);
  aspect-ratio: 4 / 5;
}
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.portrait figcaption {
  position: absolute; inset-inline: var(--s-16); bottom: var(--s-16);
  border-radius: 14px; padding: var(--s-12) var(--s-16);
  background: rgba(12, 10, 8, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--ink);
  backdrop-filter: blur(4px);
}
.portrait figcaption b { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; display: block; }
.portrait figcaption span { font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

.inline-stats { display: flex; gap: var(--s-32); flex-wrap: wrap; }
.inline-stat b { font-family: var(--display); font-weight: 800; font-size: 26px; color: var(--gold-deep); display: block; letter-spacing: -0.02em; }

/* ==========================================================================
   FAQ
   ========================================================================== */

.faq { border-radius: 24px; background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow-card); overflow: hidden; }
.faq__item + .faq__item { border-top: 1px solid var(--line); }
.faq__q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: var(--s-24);
  text-align: left; background: transparent; border: 0; cursor: pointer;
  padding: var(--s-24) var(--s-32);
  font-family: var(--display); font-weight: 700; font-size: 17px; color: var(--ink);
  transition: color .2s ease;
}
.faq__q:hover { color: var(--gold-deep); }
.faq__sign { flex: 0 0 auto; position: relative; width: 14px; height: 14px; }
.faq__sign::before, .faq__sign::after { content: ""; position: absolute; background: var(--gold); transition: transform .2s ease; border-radius: 2px; }
.faq__sign::before { inset-inline: 0; top: 6px; height: 2px; }
.faq__sign::after { inset-block: 0; left: 6px; width: 2px; }
.faq__q[aria-expanded="true"] .faq__sign::after { transform: scaleY(0); }
.faq__a { padding: 0 var(--s-32) var(--s-24); }
.faq__a[hidden] { display: none; }

/* ==========================================================================
   CTA band + footer
   ========================================================================== */

/* On dark, the closing band can't invert to a darker slab — it lifts instead:
   a gold-edged panel with the same glow as the hero. */
.cta {
  background: linear-gradient(150deg, #221C16, #14110E 70%);
  color: var(--ink);
  border: 1px solid var(--gold-brd);
  border-radius: 28px;
  margin-inline: var(--gutter);
  max-width: var(--grid);
  margin-left: auto; margin-right: auto;
  padding: var(--s-64);
  display: grid; grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--s-48); align-items: center;
  box-shadow: var(--shadow-lift);
  position: relative; overflow: hidden;
}
.cta::before {
  content: ""; position: absolute; top: -120px; right: -120px;
  width: 340px; height: 340px;
  background: radial-gradient(closest-side, rgba(240, 180, 41, 0.28), transparent);
  pointer-events: none;
}
.cta h2 { font-family: var(--display); font-weight: 800; font-size: clamp(28px, 3.6vw, 44px); letter-spacing: -0.02em; line-height: 1.1; }
.cta p { color: var(--muted); margin-top: var(--s-12); }
.cta__side { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s-12); position: relative; }

.footer { padding-block: var(--s-64) var(--s-32); }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: var(--s-32); align-items: start; }
.footer h4 { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); margin: 0 0 var(--s-16); }
.footer__list { display: flex; flex-direction: column; gap: var(--s-12); }
.footer__list a { font-size: 14px; color: var(--muted); transition: color .2s ease; }
.footer__list a:hover { color: var(--gold-deep); }
.footer__bottom {
  margin-top: var(--s-48); padding-top: var(--s-24); border-top: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-16); flex-wrap: wrap;
}

.wa {
  position: fixed; right: var(--s-24); bottom: var(--s-24); z-index: 60;
  width: 56px; height: 56px; display: grid; place-items: center;
  background: #25d366; border-radius: 50%;
  box-shadow: 0 14px 30px -12px rgba(37, 211, 102, 0.55);
  transition: transform .2s ease;
}
.wa svg { width: 28px; height: 28px; fill: #fff; }
.wa:hover { transform: translateY(-2px); }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1199.98px) {
  .hero__grid { grid-template-columns: 1fr; gap: var(--s-48); }
  .dominate__grid { grid-template-columns: 1fr; gap: var(--s-48); }
  .dominate__intro { position: static; }
  .founder { grid-template-columns: 1fr; gap: var(--s-48); }
  .svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .svc-card--hi, .svc-card--hi:hover { transform: none; }
  .signals__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: var(--s-48) var(--s-32); }
}

@media (max-width: 991.98px) {
  .nav__inner { display: flex; justify-content: space-between; }
  .nav__links {
    display: none; position: absolute; inset-inline: 0; top: 100%;
    flex-direction: column; align-items: flex-start; gap: var(--s-16);
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: var(--s-24) var(--gutter);
  }
  .nav__links.is-open { display: flex; }
  .nav__toggle { display: block; }

  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .clients__head { grid-template-columns: 1fr; align-items: start; }
  .clients__note { text-align: left; justify-self: start; }
  .logos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .logo:nth-child(3n) { border-right: 1px solid var(--line); }
  .logo:nth-child(2n) { border-right: 0; }
  .logo:nth-last-child(-n+3) { border-bottom: 1px solid var(--line); }
  .logo:nth-last-child(-n+2) { border-bottom: 0; }
  /* Too narrow to alternate — collapse to a single rail down the left */
  .vtl::before { left: 6px; transform: none; }
  .vtl__step { grid-template-columns: 34px minmax(0, 1fr); align-items: start; }
  .vtl__dot { grid-column: 1; grid-row: 1; justify-self: start; margin-top: 26px; }
  .vtl__step:nth-child(odd) .vtl__card,
  .vtl__step:nth-child(even) .vtl__card { grid-column: 2; grid-row: 1; }
  .vtl__step:nth-child(odd) .vtl__card::after,
  .vtl__step:nth-child(even) .vtl__card::after {
    left: -7px; right: auto;
    border-right: 7px solid var(--paper);
    border-left: 0;
    filter: drop-shadow(-1px 0 0 var(--line));
  }
  .vtl__step:nth-child(odd):hover .vtl__card,
  .vtl__step:nth-child(even):hover .vtl__card { transform: translateX(4px); }
  .svc-grid { grid-template-columns: 1fr; }
  .svc-head { grid-template-columns: 1fr; align-items: start; }
  .svc-head__note { text-align: left; justify-self: start; }
  .calc { grid-template-columns: 1fr; gap: var(--s-48); }
  .signals__head { grid-template-columns: 1fr; align-items: start; }
  .signals__note { text-align: left; justify-self: start; }
  .signals__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cta { grid-template-columns: 1fr; padding: var(--s-48); }
}

@media (max-width: 575.98px) {
  .section { padding-block: var(--s-64); }
  .hero { padding-block: var(--s-64); }
  .signals { padding-block: var(--s-64); }
  .logos { grid-template-columns: 1fr; }
  .nextbar { padding: var(--s-24); gap: var(--s-16); }
  .logo, .logo:nth-child(2n), .logo:nth-child(3n) { border-right: 0; border-bottom: 1px solid var(--line); }
  .logo:last-child { border-bottom: 0; }
  .signals__grid { grid-template-columns: 1fr; }
  .calc__results { grid-template-columns: 1fr; }
  .frame { padding: var(--s-12) var(--s-16); }
  .frame__step { grid-template-columns: 40px minmax(0, 1fr); gap: var(--s-12); }
  /* tile shrinks to 40px, so the rail's centre and lower segment move with it */
  .frame__step::before,
  .frame__step::after { left: 19px; }
  .frame__step::after { top: calc(var(--s-16) + 40px); }
  .frame__step + .frame__step .frame__body::before { left: calc(40px + var(--s-12)); }
  .frame__letter { width: 40px; height: 40px; font-size: 18px; border-radius: 11px; }
  /* Nav CTA now reads "Book a meeting" — keep it on one line at 390px */
  .nav__side { gap: var(--s-8); }
  .nav__side .btn { white-space: nowrap; padding: 12px 14px; font-size: 12px; }
  .form-grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
