/* =========================================================================
   SOLVA STUDIOS — website studio for gyms & combat sports
   Design system
   - Palette is locked (off-white / electric blue / black).
   - Distinctiveness lives in type (Bricolage + JetBrains Mono),
     the "blue = the enquiry is happening" semantic colour rule,
     and the conversion-audit / diagnostic signature.
   ========================================================================= */

/* ----------------------------- Tokens ----------------------------------- */
:root {
  /* Core palette */
  --bg: #f4f4f4;
  --ink: #0a0a0a;
  --black: #000000;
  --blue: #0a34fa;
  --blue-press: #0726c4;
  /* Lighter blue used ONLY on black/dark surfaces so the accent still clears
     WCAG AA (≈5:1 on #000, vs 2.88:1 for the core blue). */
  --blue-on-dark: #6f8bff;
  /* --accent is "the live/enquiry blue" — it auto-swaps to --blue-on-dark
     inside dark scopes (see .section--dark / .selector__panel). */
  --accent: var(--blue);

  /* Derived neutrals (subtle, on-palette only) */
  --paper-2: #ececec;          /* inset panels on light */
  --line: rgba(10, 10, 10, 0.14);
  --line-strong: rgba(10, 10, 10, 0.28);
  --muted: rgba(10, 10, 10, 0.62);   /* body sub-text — ≥4.5:1 on #f4f4f4 */
  --muted-2: rgba(10, 10, 10, 0.45);

  /* Dark-section equivalents (set on .section--dark) */
  --ink-on-dark: #f4f4f4;
  --muted-on-dark: rgba(244, 244, 244, 0.58);
  --line-on-dark: rgba(244, 244, 244, 0.16);

  /* Type */
  --wordmark: "Archivo Black", "Arial Black", ui-sans-serif, sans-serif;
  --display: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --body: "Hanken Grotesk", ui-sans-serif, system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* Layout */
  /* Full-bleed layout: content extends across the page, held off the edges
     only by the gutter. (Was capped at 1240px and centered.) */
  --shell: none;
  --gutter: clamp(1.25rem, 4vw, 4rem);
  --section-y: clamp(4.5rem, 9vw, 8.5rem);
  --radius: 6px;
  --radius-lg: 14px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur: 0.55s;

  --nav-h: 104px;
}

/* ----------------------------- Reset ------------------------------------ */
*,
*::before,
*::after { box-sizing: border-box; }

* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
ul, ol { list-style: none; padding: 0; }
em { font-style: normal; color: var(--blue); }

::selection { background: var(--blue); color: #fff; }

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 1rem;
  z-index: 200;
  background: var(--blue);
  color: #fff;
  padding: 0.65rem 1rem;
  border-radius: var(--radius);
  font: 600 0.85rem/1 var(--mono);
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 1rem; }

/* ----------------------------- Layout ----------------------------------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); position: relative; }

.section--dark {
  background: var(--black);
  color: var(--ink-on-dark);
  --ink: var(--ink-on-dark);
  --muted: var(--muted-on-dark);
  --line: var(--line-on-dark);
  --line-strong: rgba(244, 244, 244, 0.3);
  --paper-2: #111;
  --accent: var(--blue-on-dark);
}

/* ----------------------------- Shared type ------------------------------ */
.sec-tag,
.menu__label {
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.sec-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--accent);
  margin-bottom: 1.4rem;
}
.sec-tag::before {
  content: "";
  width: 22px; height: 1px;
  background: var(--accent);
}

.sec-head { max-width: 60ch; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.sec-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2rem, 1.1rem + 3.6vw, 3.8rem);
  line-height: 0.98;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.sec-lead {
  margin-top: 1.4rem;
  max-width: 56ch;
  color: var(--muted);
  font-size: clamp(1.05rem, 1rem + 0.35vw, 1.25rem);
  line-height: 1.5;
}

.sec-head--split {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: end;
  max-width: none;
}
.sec-lead--right { margin-top: 0; }

/* ----------------------------- Buttons ---------------------------------- */
.btn {
  --bd: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--mono);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 0.85rem 1.3rem;
  border-radius: var(--radius);
  position: relative;
  white-space: nowrap;
  transition: transform 0.35s var(--ease), background-color 0.3s var(--ease),
    color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.btn__arrow { transition: transform 0.35s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(4px); }

.btn--solid {
  background: var(--blue);
  color: #fff;
}
.btn--solid:hover {
  background: var(--blue-press);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -12px rgba(10, 52, 250, 0.7);
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line-strong);
}
.btn--ghost:hover {
  border-color: var(--blue);
  color: var(--blue);
  transform: translateY(-2px);
}
.btn--ghost-invert { color: var(--ink-on-dark); }

.btn--lg { padding: 1rem 1.5rem; font-size: 0.86rem; }
.btn--block { width: 100%; justify-content: center; }

/* ----------------------------- Nav -------------------------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  min-height: var(--nav-h);
  display: flex;
  align-items: center;
  padding-top: 9px; /* clears the black top bar */
  transition: background-color 0.4s var(--ease), border-color 0.4s var(--ease),
    backdrop-filter 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
/* Thin black bar pinned across the very top (reference navbar signature) */
.nav::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 9px;
  background: var(--black);
}
.nav.is-stuck {
  background: rgba(244, 244, 244, 0.82);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom-color: var(--line);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  width: 100%;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.18rem;
  letter-spacing: -0.03em;
}
.brand__mark {
  width: 26px; height: 26px;
  border: 1.5px solid var(--ink);
  border-radius: 5px;
  position: relative;
  display: grid;
  place-items: center;
  transition: border-color 0.3s var(--ease);
}
.brand__corner {
  width: 11px; height: 11px;
  border-top: 3px solid var(--blue);
  border-left: 3px solid var(--blue);
  position: absolute;
  top: 5px; left: 5px;
  transition: transform 0.4s var(--ease);
}
.brand:hover .brand__corner { transform: translate(2px, 2px); }
.brand__tm { font-size: 0.6rem; color: var(--blue); font-family: var(--mono); }
.brand__name { line-height: 1; }

/* Nav brand rotator: SOLVA wordmark ↔ tagline, cross-fading every 3s.
   Both children are stacked in the same grid cell and run the same 6s
   keyframes; the tagline is offset by -3s, so one fades in exactly while
   the other fades out. Pure CSS — no JS, no layout shift. */
.brand__rotator {
  display: grid;
  align-items: center;
}
.brand__rotator > * {
  grid-area: 1 / 1;
  animation: brand-swap 6s ease-in-out infinite;
}
.brand__wordmark {
  font-family: var(--wordmark);
  font-size: 1.5rem;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.brand__tagline {
  font-family: var(--body);
  font-weight: 500;
  font-size: 0.9rem;
  line-height: 1.3;
  letter-spacing: -0.005em;
  color: var(--ink);
  animation-delay: -3s;
}
@keyframes brand-swap {
  0%, 42%  { opacity: 1; transform: translateY(0); }
  50%, 92% { opacity: 0; transform: translateY(-8px); }
  100%     { opacity: 1; transform: translateY(0); }
}

.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(1.5rem, 3vw, 2.75rem);
  margin-left: auto;
}
.nav__links a {
  font-family: var(--body);
  font-weight: 500;
  font-size: clamp(1.15rem, 1.6vw, 1.5rem);
  letter-spacing: -0.01em;
  color: var(--ink);
  position: relative;
  padding: 0.2rem 0;
  transition: opacity 0.25s var(--ease);
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 100%; height: 2px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.nav__links a:hover { opacity: 0.55; }
.nav__links a:hover::after,
.nav__links a.is-current::after { transform: scaleX(1); }
.nav__burger { display: none; }

/* ----------------------------- Mobile menu ------------------------------ */
.menu {
  position: fixed;
  inset: 0;
  z-index: 150;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  padding-block: 1.4rem 2rem;
  transform: translateY(-100%);
  opacity: 0;
  transition: transform 0.5s var(--ease), opacity 0.4s var(--ease);
}
.menu[hidden] { display: none; }
.menu.is-open { transform: translateY(0); opacity: 1; }

.menu__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
}
.menu__label { color: var(--muted); }
.menu__close {
  font-family: var(--mono);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 0.5rem 0.9rem;
}
.menu__links {
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: center;
  gap: 0.2rem;
}
.menu__links a {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(2rem, 11vw, 3.2rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
  display: flex;
  align-items: baseline;
  gap: 0.9rem;
  padding-block: 0.35rem;
  opacity: 0;
  transform: translateY(16px);
}
.menu.is-open .menu__links a {
  animation: menuIn 0.5s var(--ease) forwards;
}
.menu__idx {
  font-family: var(--mono);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--blue);
  letter-spacing: 0;
}
@keyframes menuIn {
  to { opacity: 1; transform: translateY(0); }
}
.menu__foot { margin-top: auto; }

/* =========================================================================
   HERO
   ========================================================================= */
.hero { padding-top: clamp(2.5rem, 6vw, 5rem); }
/* Two-cell diagonal composition (reference layout): the tall visual in the
   right cell sets the row height; the statement bottom-aligns opposite it.
   Columns are equal so the centre divider sits exactly mid-page. */
.hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  position: relative;
}
/* Hairline divider: dead-centre between statement and mock, running from
   just below the nav down to the wordmark (the grid's full height). */
.hero__grid::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--line);
}

/* Statement + CTA block: top-left, aligned with the divider's top edge
   (the giant wordmark below carries the visual scale) */
.hero__copy { align-self: start; }
.hero__statement {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.25rem, 1rem + 1vw, 1.7rem);
  line-height: 1.4;
  letter-spacing: -0.015em;
  max-width: 44ch;
  text-wrap: pretty;
}
/* Keep the semantic colour rule alive: the conversion moment reads blue */
.hero__statement em {
  font-style: normal;
  color: var(--accent);
}

/* CTA as the diagnostic "fix" pin from the audit mock, made live:
   pulsing blue dot (blue = the enquiry is happening), display-type link,
   arrow that advances on hover, mono meta-readout underneath. */
.hero__cta { margin-top: clamp(1.6rem, 3vw, 2.6rem); }
.hero__cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 2.4rem;
}
.cta-pin {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.2rem, 1rem + 0.9vw, 1.6rem);
  letter-spacing: -0.02em;
  color: var(--ink);
}
.cta-pin__dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 4px rgba(10, 52, 250, 0.16);
  animation: pulse 2.6s var(--ease) infinite;
  flex: none;
}
.cta-pin__text { position: relative; }
.cta-pin__text::after {
  content: "";
  position: absolute;
  left: 0; bottom: -5px;
  width: 100%; height: 2px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.cta-pin:hover .cta-pin__text::after,
.cta-pin:focus-visible .cta-pin__text::after { transform: scaleX(1); }
.cta-pin__arrow {
  color: var(--blue);
  transition: transform 0.3s var(--ease);
}
.cta-pin:hover .cta-pin__arrow { transform: translateX(6px); }
/* Secondary pin: the hollow grey "leak" ring from the audit mock. On
   hover/focus it fills solid blue — the leak becoming the fix. */
.cta-pin--alt .cta-pin__dot {
  background: transparent;
  border: 2px solid var(--muted-2);
  box-shadow: none;
  animation: none;
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.cta-pin--alt:hover .cta-pin__dot,
.cta-pin--alt:focus-visible .cta-pin__dot {
  background: var(--blue);
  border-color: var(--blue);
}
.cta-pin--alt .cta-pin__arrow { color: var(--muted-2); }
.cta-pin--alt:hover .cta-pin__arrow { color: var(--blue); }

.cta-pin__meta {
  display: block;
  margin-top: 0.9rem;
  font-family: var(--mono);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(10, 52, 250, 0.18); }
  50% { box-shadow: 0 0 0 7px rgba(10, 52, 250, 0.05); }
}

/* Giant edge-to-edge wordmark — the font-size (vw) is tuned so the
   ARCHIVO BLACK glyphs of "SOLVA STUDIOS" fill the shell width minus
   gutters (measured in-browser; retune if the text changes). */
.hero__wordmark {
  font-family: var(--wordmark);
  font-size: 10.6vw;
  line-height: 0.85;
  letter-spacing: -0.025em;
  color: var(--ink);
  white-space: nowrap;
  user-select: none;
  margin-top: clamp(2rem, 5vw, 4.5rem);
  margin-bottom: -0.06em; /* trims descender air above the ticker */
}

/* Hero visual: diagnostic browser mock ---------------------------------- */
/* Top-right of the composition (where the reference places its image),
   slightly inset from the right edge. */
.hero__visual {
  position: relative;
  align-self: start;
  max-width: 640px;
  width: 100%;
  justify-self: center;
}
.audit { position: relative; transform-style: preserve-3d; }

.browser {
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 40px 80px -50px rgba(10, 10, 10, 0.6),
    0 12px 24px -18px rgba(10, 10, 10, 0.4);
}
.browser__bar {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.7rem 0.9rem;
  background: var(--paper-2);
  border-bottom: 1px solid var(--line);
  position: relative;
}
.browser__dots { display: inline-flex; gap: 6px; }
.browser__dots i {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--line-strong);
}
.browser__url {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--muted);
  background: var(--bg);
  padding: 0.25rem 0.7rem;
  border-radius: 100px;
  flex: 1;
  text-align: center;
}
.browser__scan {
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--blue), transparent);
  opacity: 0;
  pointer-events: none;
  z-index: 2;
}
/* Sweep is driven by percentage of the view box, not a magic pixel value,
   so it always travels the full height regardless of the mock's size. */
.is-loaded .audit .browser__scan { animation: scan 5s var(--ease) 1.2s infinite; }
@keyframes scan {
  0% { top: 0; opacity: 0; }
  10% { opacity: 0.9; }
  45% { top: calc(100% - 2px); opacity: 0.9; }
  55%, 100% { top: calc(100% - 2px); opacity: 0; }
}

.browser__view {
  position: relative;
  padding: 1.3rem;
  min-height: 290px;
  background:
    linear-gradient(0deg, rgba(10, 10, 10, 0.02), rgba(10, 10, 10, 0.02));
}

/* The muted "gym site" being examined */
.mock { display: flex; flex-direction: column; gap: 1rem; filter: saturate(0.2); }
.mock__nav { display: flex; align-items: center; justify-content: space-between; }
.mock__logo { width: 64px; height: 14px; background: var(--ink); border-radius: 3px; opacity: 0.8; }
.mock__links { display: flex; gap: 8px; }
.mock__links i { width: 26px; height: 8px; background: var(--line-strong); border-radius: 3px; }
.mock__hero { display: flex; flex-direction: column; gap: 9px; padding: 0.6rem 0; }
.mock__h1 { width: 78%; height: 22px; background: var(--ink); opacity: 0.85; border-radius: 4px; }
.mock__h2 { width: 52%; height: 12px; background: var(--line-strong); border-radius: 4px; }
.mock__btn { width: 96px; height: 26px; background: var(--line-strong); border-radius: 5px; margin-top: 4px; }
.mock__row { display: flex; gap: 10px; }
.mock__card { flex: 1; height: 56px; background: var(--paper-2); border: 1px solid var(--line); border-radius: 6px; }

/* Diagnostic pins */
.pin { position: absolute; transform: translate(-50%, -50%); }
.pin__dot {
  display: block;
  width: 14px; height: 14px;
  border-radius: 50%;
  position: relative;
}
.pin__dot::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px solid currentColor;
  opacity: 0.4;
}
.pin__tag {
  position: absolute;
  left: 20px; top: 50%;
  transform: translateY(-50%);
  white-space: nowrap;
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 500;
  padding: 0.22rem 0.5rem;
  border-radius: 4px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 6px 16px -10px rgba(0, 0, 0, 0.5);
}
.pin--leak { color: var(--muted-2); }
.pin--leak .pin__dot { background: #fff; border: 2px solid var(--muted-2); }
.pin--leak .pin__tag { color: var(--ink); }
.pin--fix { color: var(--blue); }
.pin--fix .pin__dot { background: var(--blue); box-shadow: 0 0 0 4px rgba(10, 52, 250, 0.18); }
.pin--fix .pin__tag { color: var(--blue); border-color: rgba(10, 52, 250, 0.4); }
.is-loaded .pin { animation: pinIn 0.5s var(--ease) backwards; }
.is-loaded .pin:nth-of-type(1) { animation-delay: 1.5s; }
.is-loaded .pin:nth-of-type(2) { animation-delay: 1.8s; }
.is-loaded .pin:nth-of-type(3) { animation-delay: 2.1s; }
@keyframes pinIn {
  from { opacity: 0; transform: translate(-50%, -50%) scale(0.5); }
}

/* =========================================================================
   TICKER
   ========================================================================= */
.ticker {
  position: relative;
  background: var(--black);
  color: var(--ink-on-dark);
  --accent: var(--blue-on-dark);
  overflow: hidden;
  border-block: 1px solid var(--black);
  padding-block: 1.05rem;
}
.ticker__track {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  width: max-content;
  animation: marquee 38s linear infinite;
}
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker__item {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.1rem, 2.5vw, 1.7rem);
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.ticker__sep { color: var(--accent); font-size: 1.2rem; }
@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* =========================================================================
   PROBLEM
   ========================================================================= */
.flow {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.flow__row {
  background: var(--bg);
  padding: clamp(1.3rem, 3vw, 2rem);
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 1.5rem;
  align-items: center;
}
.flow__row--win { background: #fff; }
.flow__label {
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.flow__row--win .flow__label { color: var(--blue); }
.flow__steps {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 0.4rem;
  align-items: stretch;
}
.flow__step {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.7rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  min-width: 0;
}
.flow__step::after {
  content: "→";
  position: absolute;
  right: -0.65rem;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--muted-2);
  z-index: 1;
}
.flow__step:last-child::after { content: none; }
.flow__k { font-family: var(--mono); font-size: 0.74rem; font-weight: 600; }
.flow__v { font-size: 0.78rem; color: var(--muted); }

.flow__row--leak .flow__step--end { border-color: var(--line-strong); }
.flow__row--leak .flow__step--end .flow__k { color: var(--muted); }
.flow__row--win .flow__step { background: #fff; }
.flow__row--win .flow__step--end {
  background: var(--blue);
  border-color: var(--blue);
}
.flow__row--win .flow__step--end .flow__k,
.flow__row--win .flow__step--end .flow__v { color: #fff; }

/* =========================================================================
   SERVICES — selector
   ========================================================================= */
.selector {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: start;
}
.selector__list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}
.selector__item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: clamp(0.85rem, 1.8vw, 1.15rem) 0.4rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  position: relative;
  transition: padding-left 0.3s var(--ease), color 0.3s var(--ease);
}
.selector__item::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: var(--blue);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.3s var(--ease);
}
.selector__idx {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--muted);
  transition: color 0.3s var(--ease);
}
.selector__name {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.15rem, 1rem + 1vw, 1.7rem);
  letter-spacing: -0.02em;
  flex: 1;
  line-height: 1.05;
  color: var(--muted);
  transition: color 0.3s var(--ease);
}
.selector__arrow {
  font-family: var(--mono);
  color: var(--blue);
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.selector__item:hover { padding-left: 1rem; }
.selector__item:hover .selector__name { color: var(--ink); }
.selector__item.is-active { padding-left: 1rem; }
.selector__item.is-active::before { transform: scaleY(1); }
.selector__item.is-active .selector__name { color: var(--ink); }
.selector__item.is-active .selector__idx { color: var(--blue); }
.selector__item.is-active .selector__arrow { opacity: 1; transform: translateX(0); }

.selector__panel {
  position: sticky;
  top: calc(var(--nav-h) + 1.5rem);
  max-height: calc(100vh - var(--nav-h) - 3rem);
  overflow: auto;
  background: var(--black);
  color: var(--ink-on-dark);
  --accent: var(--blue-on-dark);
  border-radius: var(--radius-lg);
  padding: clamp(1.6rem, 3vw, 2.6rem);
  min-height: 320px;
  display: flex;
  flex-direction: column;
}
.panel__count {
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 1.4rem;
}
.panel__title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.7rem, 1.2rem + 2vw, 2.6rem);
  letter-spacing: -0.025em;
  line-height: 1;
  margin-bottom: 1rem;
}
.panel__desc {
  color: rgba(244, 244, 244, 0.72);
  font-size: 1.02rem;
  line-height: 1.55;
  margin-bottom: auto;
  padding-bottom: 1.8rem;
}
.panel__out {
  border-top: 1px solid rgba(244, 244, 244, 0.16);
  padding-top: 1.3rem;
}
.panel__out-label {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 0.5rem;
}
.panel__out-text { font-size: 1.02rem; color: #fff; }

/* smooth swap animation */
.panel__title, .panel__desc, .panel__out-text, .panel__count { transition: opacity 0.28s var(--ease), transform 0.28s var(--ease); }
.selector__panel.is-swapping .panel__title,
.selector__panel.is-swapping .panel__desc,
.selector__panel.is-swapping .panel__out-text,
.selector__panel.is-swapping .panel__count {
  opacity: 0;
  transform: translateY(8px);
}

/* =========================================================================
   WORK / DEMO (dark)
   ========================================================================= */
.demo {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: clamp(1.8rem, 4vw, 3.5rem);
  align-items: center;
}
.demo__frame {
  display: block;
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.browser--dark { border-color: rgba(244, 244, 244, 0.16); background: #0c0c0c; }
.browser__bar--dark { background: #161616; border-bottom-color: rgba(244, 244, 244, 0.1); }
.browser--dark .browser__url { background: #000; color: rgba(244, 244, 244, 0.5); }
.browser--dark .browser__dots i { background: rgba(244, 244, 244, 0.25); }
.browser__view--demo { padding: 0; min-height: auto; background: #0c0c0c; container-type: inline-size; }

/* IronForm demo — a faithful miniature of the real client hero
   (ironform-eosin.vercel.app): full-bleed boxing photo, dark left/bottom
   gradient for legibility, Bebas Neue display, blood-red accent. This is the
   CLIENT's brand — red/photo is correct here and intentionally distinct from
   the agency's blue/editorial identity. */
.ironform {
  --gym-red: #dc2626;
  --gym-red-text: #ef4444;
  --gym-ink: #f5f5f4;
  --gym-muted: #b4b1ad;
  position: relative;
  display: flex;
  flex-direction: column;
  /* Sized to fill the screen but never exceed it: the mock + browser bar stay
     within the viewport so the whole preview is visible at once. */
  min-height: 360px;
  height: min(76vh, 640px);
  padding: clamp(1.2rem, 3vw, 2.1rem);
  color: var(--gym-ink);
  background-image:
    linear-gradient(to right, rgba(10, 10, 10, 0.94) 0%, rgba(10, 10, 10, 0.55) 48%, rgba(10, 10, 10, 0.1) 100%),
    linear-gradient(to top, rgba(10, 10, 10, 0.85) 0%, rgba(10, 10, 10, 0) 55%),
    url("assets/ironform-hero.jpg");
  background-size: cover;
  background-position: 72% center;
}
.ironform__nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.ironform__logo {
  font-family: "Bebas Neue", var(--display);
  font-weight: 400;
  letter-spacing: 0.06em;
  font-size: clamp(1.1rem, 2.6vw, 1.5rem);
  line-height: 1;
}
.ironform__logo-accent { color: var(--gym-red-text); }
.ironform__links {
  display: flex;
  align-items: center;
  gap: clamp(0.4rem, 1.2cqi, 0.95rem);
}
.ironform__navlink {
  font-family: var(--mono);
  font-size: 0.56rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(245, 245, 244, 0.72);
  white-space: nowrap;
}
.ironform__navlink.is-active {
  color: var(--gym-red-text);
  border-bottom: 1.5px solid var(--gym-red);
  padding-bottom: 2px;
}
.ironform__cta {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid var(--gym-red);
  padding: 0.45rem 0.8rem;
  border-radius: 4px;
  color: var(--gym-ink);
  white-space: nowrap;
}
.ironform__hero { margin-top: auto; padding-top: clamp(1.4rem, 4vw, 2.5rem); }
.ironform__kicker {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gym-red-text);
  display: block;
  margin-bottom: 0.7rem;
}
.ironform__h1 {
  font-family: "Bebas Neue", var(--display);
  font-weight: 400;
  font-size: clamp(2.1rem, 7.5vw, 4rem);
  line-height: 0.92;
  letter-spacing: 0.005em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 1.2rem;
}
.ironform__accent { color: var(--gym-red-text); }
.ironform__btns { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.ironform__btn {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.65rem 1.05rem;
  border-radius: 5px;
  border: 1px solid rgba(245, 245, 244, 0.25);
  color: var(--gym-ink);
}
.ironform__btn--solid { background: var(--gym-red); border-color: var(--gym-red); color: #fff; }
.ironform__reassure {
  display: block;
  margin-top: 0.9rem;
  font-family: var(--mono);
  font-size: 0.64rem;
  color: var(--gym-muted);
}

/* The full nav fits a wide frame; when the frame itself gets narrow (small
   desktop two-column, or mobile) it collapses to wordmark + Start here — like
   the real site does on phones. Keyed to the frame width via a container query,
   not the viewport, so it's correct at every breakpoint. */
@container (max-width: 620px) {
  .ironform__links { display: none; }
}

.demo__shine {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    180px 180px at var(--mx, 50%) var(--my, 50%),
    rgba(255, 255, 255, 0.1),
    transparent 70%
  );
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}
.demo__frame:hover .demo__shine { opacity: 1; }

.demo__notes-title {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.4rem;
  letter-spacing: -0.02em;
  margin-bottom: 1.2rem;
}
.ticklist { display: flex; flex-direction: column; gap: 0.75rem; margin-bottom: 1.8rem; }
.ticklist li {
  position: relative;
  padding-left: 1.7rem;
  color: rgba(244, 244, 244, 0.78);
  font-size: 0.96rem;
}
.ticklist li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.42em;
  width: 9px; height: 9px;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(45deg);
}
.demo__fineprint {
  margin-top: 1.4rem;
  font-size: 0.85rem;
  color: var(--muted-on-dark);
  max-width: 38ch;
}

/* =========================================================================
   PROCESS
   ========================================================================= */
/* A connected timeline rail — a sequence reads as a path, not a card grid. */
.rail {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
}
.rail__step {
  position: relative;
  padding-right: 1.4rem;
}
/* connector segment from this node to the next */
.rail__step::after {
  content: "";
  position: absolute;
  top: 14px;
  left: 30px;
  right: 0;
  height: 2px;
  background: var(--line);
}
.rail__step:last-child::after { display: none; }

.rail__node {
  position: relative;
  z-index: 1;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--line-strong);
  display: grid;
  place-items: center;
  font: 600 0.72rem/1 var(--mono);
  color: var(--muted);
  margin-bottom: 1.4rem;
  transition: background-color 0.35s var(--ease), border-color 0.35s var(--ease), color 0.35s var(--ease);
}
/* the first node is "live" (blue) — the path has a start */
.rail__step:first-child .rail__node {
  border-color: var(--blue);
  color: var(--blue);
}
.rail__step:hover .rail__node {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}
.rail__title {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.1rem, 1rem + 0.5vw, 1.35rem);
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}
.rail__text { color: var(--muted); font-size: 0.9rem; line-height: 1.45; }

@media (max-width: 900px) {
  /* vertical timeline on narrow screens */
  .rail { grid-template-columns: 1fr; }
  .rail__step {
    display: grid;
    grid-template-columns: 30px 1fr;
    column-gap: 1.2rem;
    padding: 0 0 1.8rem 0;
  }
  .rail__step::after {
    top: 30px;
    bottom: 0;
    left: 14px;
    right: auto;
    width: 2px;
    height: auto;
  }
  .rail__step:last-child { padding-bottom: 0; }
  .rail__node { margin-bottom: 0; }
  .rail__body { padding-top: 2px; }
}

/* =========================================================================
   FINAL CTA
   ========================================================================= */
.cta-sec { text-align: center; }
.cta-sec__inner { display: flex; flex-direction: column; align-items: center; }
.cta-sec .sec-tag::before { display: none; }
.cta-sec__title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.1rem, 1rem + 5.4vw, 4.6rem);
  line-height: 0.96;
  letter-spacing: -0.035em;
  margin-bottom: 1.6rem;
  text-wrap: balance;
}
.cta-sec__lead {
  max-width: 52ch;
  color: var(--muted-on-dark);
  font-size: clamp(1.05rem, 1rem + 0.4vw, 1.25rem);
  margin-bottom: 2.4rem;
}
.cta-sec__ctas { display: flex; flex-wrap: wrap; gap: 0.8rem; justify-content: center; }
.cta-sec__email {
  margin-top: 1.8rem;
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--muted-on-dark);
}
.cta-sec__email a { color: var(--accent); }
.cta-sec__email a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* =========================================================================
   CONTACT STRIP ("Let's start a conversation")
   ========================================================================= */
.convo__head {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.5rem);
  margin-bottom: clamp(1.8rem, 4vw, 3rem);
}
.convo__arrow {
  flex-shrink: 0;
  width: clamp(64px, 11vw, 150px);
  color: var(--blue);
  display: block;
}
.convo__arrow svg { width: 100%; height: auto; display: block; }
.convo__title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.1rem, 1rem + 5.4vw, 5rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.convo__contacts {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1.4rem, 4vw, 4rem);
  /* indent so the contacts line up under the headline, not the arrow */
  padding-left: calc(clamp(64px, 11vw, 150px) + clamp(1rem, 3vw, 2.5rem));
}
.convo__contact {
  font-family: var(--body);
  font-size: clamp(1.05rem, 1rem + 0.7vw, 1.5rem);
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--blue);
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.convo__contact:hover { color: var(--blue); }

@media (max-width: 700px) {
  .convo__head { flex-direction: column; align-items: flex-start; gap: 1.2rem; }
  .convo__arrow { width: 64px; }
  .convo__contacts {
    padding-left: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.3rem;
  }
  .convo__contact { width: fit-content; }
}

/* =========================================================================
   FOOTER
   ========================================================================= */
.footer { padding-block: clamp(3rem, 6vw, 5rem) 2rem; }
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
  border-bottom: 1px solid var(--line-on-dark);
}
.brand--footer { font-size: 1.4rem; margin-bottom: 1rem; }
.brand--footer .brand__mark { border-color: var(--ink-on-dark); }
.footer__desc { color: var(--muted-on-dark); max-width: 30ch; font-size: 0.95rem; }
.footer__col { display: flex; flex-direction: column; gap: 0.7rem; }
.footer__h {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-on-dark);
  margin-bottom: 0.3rem;
}
.footer__col a {
  color: rgba(244, 244, 244, 0.8);
  font-size: 0.95rem;
  width: fit-content;
  transition: color 0.25s var(--ease);
}
.footer__col a:hover { color: var(--accent); }
.footer__soon {
  color: rgba(244, 244, 244, 0.42);
  font-size: 0.95rem;
  width: fit-content;
}
.footer__soon-tag {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  color: var(--accent);
  border: 1px solid var(--line-on-dark);
  border-radius: 100px;
  padding: 0.05rem 0.4rem;
  vertical-align: middle;
  margin-left: 0.3rem;
}
.footer__base {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 1.6rem;
  font-family: var(--mono);
  font-size: 0.74rem;
  color: var(--muted-on-dark);
}

/* =========================================================================
   SCROLL REVEAL
   ========================================================================= */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.reveal.in-view { opacity: 1; transform: none; }
.reveal[data-reveal-delay="1"] { transition-delay: 0.07s; }
.reveal[data-reveal-delay="2"] { transition-delay: 0.14s; }
.reveal[data-reveal-delay="3"] { transition-delay: 0.21s; }
.reveal[data-reveal-delay="4"] { transition-delay: 0.28s; }
.reveal[data-reveal-delay="5"] { transition-delay: 0.35s; }

/* =========================================================================
   RESPONSIVE
   ========================================================================= */
@media (max-width: 1040px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__grid::before { display: none; } /* no divider once cells stack */
  .hero__visual { max-width: 520px; justify-self: start; }
  .sec-head--split { grid-template-columns: 1fr; align-items: start; gap: 1rem; }
  .sec-lead--right { max-width: 60ch; }
  .selector { grid-template-columns: 1fr; }
  .selector__panel { position: static; }
  .demo { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .nav { min-height: 84px; }
  .nav__links { display: none; }
  .brand__tagline { font-size: 0.82rem; }
  .nav__burger {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px; height: 44px;
    margin-left: auto;
  }
  .nav__burger span {
    display: block;
    width: 22px; height: 2px;
    background: var(--ink);
    transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
  }

  .flow__row { grid-template-columns: 1fr; gap: 0.8rem; }
  .flow__step::after { content: none; }

  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  /* Keep the two key pins ("No clear offer" + "Trial CTA") on mobile so the
     mock reads as richly as desktop. Hide only the right-edge pin, which would
     clip the narrow mock. */
  .pin--sm-hide { display: none; }
}

@media (max-width: 460px) {
  .footer__grid { grid-template-columns: 1fr; }
}

/* =========================================================================
   REDUCED MOTION
   ========================================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .ticker__track { animation: none; }
  .pin { opacity: 1 !important; }
  /* No brand rotation: show the SOLVA wordmark statically, hide the tagline
     (otherwise both stacked texts would render overlapped at full opacity). */
  .brand__rotator > * { animation: none; }
  .brand__tagline { display: none; }
}
