/* ============================================================
   RippleIT LLC — main stylesheet
   Palette from the official brand kit (brand-tokens.json).
   ============================================================ */

/* --- Tokens ------------------------------------------------ */
:root {
  /* Brand */
  --blue:        #6FB2DD;
  --blue-hover:  #5AA3D4;
  --blue-tint:   #E3F0FA;
  --navy:        #101B2D;
  --ink:         #181B20;
  --ice:         #F1F8FF;
  --slate:       #5A8AA8;
  --white:       #FFFFFF;

  /* Derived surfaces */
  --bg:          var(--navy);
  --bg-raised:   #16233A;
  --bg-sunken:   #0B1422;
  --line:        rgba(111, 178, 221, 0.14);
  --line-strong: rgba(111, 178, 221, 0.28);

  /* Text */
  --fg:          #F4F9FD;
  --fg-muted:    #B6CAD9;
  --fg-faint:    #8AA0B4;

  /* Type */
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Rhythm */
  --gutter: clamp(1.25rem, 5vw, 4rem);
  --maxw:   1240px;

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur:      0.7s;
}

/* --- Reset ------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }

body {
  min-height: 100dvh;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, picture, svg, canvas { display: block; max-width: 100%; }
input, button, textarea, select { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--blue); color: var(--navy); }

/* --- Layout ------------------------------------------------ */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* --- Type scale -------------------------------------------- */
.display {
  font-size: clamp(2.5rem, 5.2vw, 4.5rem);
  line-height: 1.0;
  letter-spacing: -0.042em;
  font-weight: 700;
  /* Vertical gradient: bright at the top where the eye lands, settling into
     the palette lower down. Kept in the top half of the luminance range so
     contrast never drops below AA. */
  background: linear-gradient(176deg, #FFFFFF 0%, #EAF4FC 38%, #B9D8EE 78%, #8FC0E2 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  /* Tight glyph-hugging shadow only — a wide halo reads as a smudged box
     behind the text and makes the whole block look misplaced. */
  filter: drop-shadow(0 1px 6px rgba(7, 14, 26, 0.7));
}
.display .accent {
  background: linear-gradient(120deg, #9FD1F0 0%, var(--blue) 55%, #4E9AC9 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
/* Fallback: if background-clip:text is unsupported, keep solid legible text. */
@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
  .display { color: var(--fg); background: none; }
  .display .accent { color: var(--blue); background: none; }
}
.h2 {
  font-size: clamp(1.75rem, 3.2vw, 2.75rem);
  line-height: 1.1;
  letter-spacing: -0.028em;
  font-weight: 600;
}
.lead {
  margin-top: 1.75rem;
  font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
  line-height: 1.55;
  color: var(--fg-muted);
  max-width: 46ch;
}
.stage .lead,
.stage .eyebrow { text-shadow: 0 1px 12px rgba(7, 14, 26, 0.9); }
.eyebrow {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--blue);
  display: block;
  margin-bottom: 1.75rem;
}

/* --- Persistent WebGL stage --------------------------------- */
/* Fixed behind everything and OUTSIDE the swapped container, so the star
   field survives navigation. Sections paint no background of their own,
   so the stars are never hidden behind a panel. */
.gl-stage {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.gl-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; }

/* Milky Way photograph, visible only at the left and right edges.
   A horizontal mask fades it to nothing across the centre, so it frames the
   page without ever sitting behind the copy or the particle mark. */
.sky {
  position: absolute;
  inset: 0;
  background-image: url("../img/bg/sky-1400.webp");
  background-size: cover;
  background-position: center;
  opacity: 0.44;
  /* Fade in from EVERY edge — left, right, top and bottom — so the photo
     frames the whole viewport. An inverted radial mask: transparent in the
     centre (where the copy and the mark live), opaque toward the corners. */
  -webkit-mask-image: radial-gradient(ellipse 58% 54% at 50% 50%,
    transparent 0%, transparent 44%, rgba(0,0,0,0.85) 74%, #000 100%);
  mask-image: radial-gradient(ellipse 58% 54% at 50% 50%,
    transparent 0%, transparent 44%, rgba(0,0,0,0.85) 74%, #000 100%);
  /* Knock the photo's own blue/purple back toward the brand navy. */
  mix-blend-mode: screen;
}
@media (min-width: 1600px) {
  .sky { background-image: url("../img/bg/sky-2400.webp"); }
}
/* On narrow screens the copy spans full width, so the side bands would sit
   behind text — hide the photo and let the stars carry it. */
@media (max-width: 900px) { .sky { display: none; } }
#hero-gl { opacity: 0; transition: opacity 0.35s ease-out; }
.gl-ready #hero-gl { opacity: 1; }

/* ONE entrance, not two. `.entrance-hold` is set by an inline HEAD script
   before the first paint, so the hero copy is never painted visible and then
   hidden — it simply starts hidden and is released with the stars.
   It is removed the moment the field is ready (or fails), so nothing can be
   stranded invisible. */
html.entrance-hold [data-hero-fade],
html.entrance-hold [data-split] { opacity: 0; }
#hero-canvas { opacity: 0.75; }
.gl-ready #hero-canvas { display: none; }

/* SplitText targets — set by JS, safe defaults if it never runs. */
.split-line { display: block; overflow: hidden; }
.split-word { display: inline-block; will-change: transform; }

/* --- Stage (each full-height section) ----------------------- */
/* Every section is a stage: same shape as the first, alternating side.
   No panels, no cards, no background changes — one continuous canvas so
   the star field reads as a single field running through the whole page. */
.stage {
  position: relative;
  display: flex;
  align-items: center;
  /* Every stage commands near-full viewport height so sections read as equal
     acts; the hero alone takes the full 100. */
  min-height: 86svh;
  padding-block: clamp(3.5rem, 7vh, 5.5rem);
}
/* Only the hero commands a full viewport; other stages take the height
   their content needs — forcing 100svh everywhere made the page feel long. */
.stage--full { min-height: 100svh; }
.stage__inner { position: relative; z-index: 2; width: 100%; }

@media (min-width: 901px) {
  /* The inner is a 2-col grid; ALL copy occupies one column, so every child
     shares one left edge by construction rather than per-child max-widths. */
  .stage__inner { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 4rem; }
  .stage__inner > * { grid-column: 1; min-width: 0; }
  /* Mirrored stages put the copy in the right column; text stays left-aligned. */
  .stage--mirror .stage__inner > * { grid-column: 2; }
}

/* Scrim: keeps copy legible over the moving star field. Mirrored stages
   darken the opposite edge, since the copy has swapped sides. */
.stage::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  /* Dead-vertical edge: any tilt here reads as a crooked layout. */
  background: linear-gradient(to right,
    rgba(16,27,45,0.95) 0%, rgba(16,27,45,0.90) 26%,
    rgba(16,27,45,0.60) 44%, rgba(16,27,45,0.12) 58%, transparent 68%);
}
.stage--mirror::after {
  background: linear-gradient(to left,
    rgba(16,27,45,0.95) 0%, rgba(16,27,45,0.90) 26%,
    rgba(16,27,45,0.60) 44%, rgba(16,27,45,0.12) 58%, transparent 68%);
}
@media (max-width: 900px) {
  .stage::after, .stage--mirror::after {
    background: radial-gradient(120% 80% at 50% 45%, rgba(16,27,45,0.66) 0%, rgba(16,27,45,0.9) 70%);
  }
}

/* --- Capability list (no cards) ----------------------------- */
.stage--mirror .display { font-size: clamp(2.125rem, 3.9vw, 3.25rem); }

.caps { list-style: none; margin-top: 1.75rem; display: grid; gap: 1rem 2.25rem; }
@media (min-width: 901px) { .caps { grid-template-columns: 1fr 1fr; } }
.cap {
  padding-top: 1.125rem;
  border-top: 1px solid var(--line-strong);
}
.cap__n {
  font-family: var(--mono);
  font-size: 0.6875rem;
  color: var(--blue);
  letter-spacing: 0.14em;
  display: block;
  margin-bottom: 0.625rem;
}
.cap__t { font-size: 1.0625rem; font-weight: 600; letter-spacing: -0.012em; }
.cap__b { color: var(--fg-muted); font-size: 0.875rem; line-height: 1.45; margin-top: 0.375rem; }

/* --- Buttons ----------------------------------------------- */
.btns { display: flex; flex-wrap: wrap; gap: 0.875rem; margin-top: 2rem; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.9375rem 1.75rem;
  border-radius: 100px;
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  border: 1px solid transparent;
  transition: background 0.25s var(--ease-out), border-color 0.25s var(--ease-out), color 0.25s var(--ease-out), transform 0.25s var(--ease-out);
}
.btn--primary { background: var(--blue); color: var(--navy); font-weight: 600; }
.btn--primary:hover { background: var(--blue-hover); transform: translateY(-2px); }
.btn--ghost { border-color: var(--line-strong); color: var(--fg); }
.btn--ghost:hover { border-color: var(--blue); color: var(--blue); transform: translateY(-2px); }

/* --- Generic section --------------------------------------- */
.section { padding-block: clamp(6rem, 14vh, 11rem); position: relative; }

.section__head { max-width: 62ch; margin-bottom: 4.5rem; }
.section__head .h2 { margin-block: 1.25rem 1.5rem; }

/* --- Service cards ----------------------------------------- */
.cards { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.card {
  position: relative;
  padding: 2.5rem 2rem;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  transition: border-color 0.4s var(--ease-out), transform 0.4s var(--ease-out);
}
.card:hover { border-color: var(--line-strong); transform: translateY(-4px); }
/* ripple echo that expands from the card corner on hover */
.card::before {
  content: "";
  position: absolute;
  top: -60%; right: -30%;
  width: 320px; aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(111,178,221,0.16), transparent 68%);
  opacity: 0;
  transition: opacity 0.5s var(--ease-out), scale 0.7s var(--ease-out);
  scale: 0.6;
}
.card:hover::before { opacity: 1; scale: 1; }
.card > * { position: relative; }
.card__num { font-family: var(--mono); font-size: 0.75rem; color: var(--blue); letter-spacing: 0.1em; }
.card__title { font-size: 1.4375rem; font-weight: 600; letter-spacing: -0.02em; margin-block: 1rem 0.875rem; }
.card__body { color: var(--fg-muted); font-size: 0.9375rem; }
.card__tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.75rem; }
.tag {
  font-family: var(--mono);
  font-size: 0.6875rem;
  padding: 0.3125rem 0.6875rem;
  border: 1px solid var(--line);
  border-radius: 100px;
  color: var(--fg-faint);
}

/* --- Reveal primitive (GSAP drives these) ------------------- */
.reveal { opacity: 0; transform: translateY(28px); }
/* If JS fails or is disabled, never leave content invisible */
.no-js .reveal { opacity: 1; transform: none; }

/* --- Accessibility ----------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
  .gl-stage { display: none; }
}

/* ============================================================
   Chrome: nav, footer, page transitions
   ============================================================ */

/* --- Nav ---------------------------------------------------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  padding-block: 1.125rem;
  background: linear-gradient(to bottom, rgba(11,20,34,0.92), rgba(11,20,34,0));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.nav__inner { display: flex; align-items: center; gap: 2rem; }
.nav__logo { flex: none; }
.nav__logo img { width: 132px; height: auto; }
.nav__links { display: flex; gap: 1.75rem; margin-left: auto; }
.nav__link {
  font-size: 0.9375rem;
  color: var(--fg-muted);
  position: relative;
  padding-block: 0.25rem;
  transition: color 0.25s var(--ease-out);
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease-out);
}
.nav__link:hover { color: var(--fg); }
.nav__link:hover::after,
.nav__link.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav__link.is-active { color: var(--blue); }
.btn--sm { padding: 0.625rem 1.125rem; font-size: 0.875rem; }
@media (max-width: 860px) {
  .nav__links { display: none; }
  .nav__cta { margin-left: auto; }
}

/* --- Page content sits above the fixed GL stage -------------- */
.transition-main { position: relative; z-index: 1; }

/* --- Page transitions --------------------------------------- */
/* Driven by GSAP in main.js, NOT by CSS transitionend. Relying on
   transitionend leaves the page stuck at opacity:0 if the event never
   fires (non-compositing tab, skipped animations). GSAP completes
   deterministically and carries a timeout guard. */

/* --- Footer -------------------------------------------------- */
.foot {
  position: relative;
  z-index: 1;
  background: var(--bg-sunken);
  border-top: 1px solid var(--line);
  padding-block: 2.25rem 1.75rem;
}
.foot__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.foot__brand img { width: 158px; height: auto; }
.foot__nav { display: flex; flex-wrap: wrap; gap: 1.75rem; }
.foot__nav a {
  color: var(--fg-muted);
  font-size: 0.9375rem;
  transition: color 0.25s var(--ease-out);
}
.foot__nav a:hover { color: var(--blue); }
.foot__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  flex-wrap: wrap;
  margin-top: 1.75rem;
  padding-top: 1.375rem;
  border-top: 1px solid var(--line);
  color: var(--fg-faint);
  font-size: 0.8125rem;
}
.foot__bottom a { color: var(--blue); }
.foot__bottom a:hover { color: var(--blue-hover); }
@media (max-width: 640px) {
  .foot__top, .foot__bottom { flex-direction: column; align-items: flex-start; }
}

/* --- Inner page header --------------------------------------- */
.phead { padding-block: clamp(9rem, 20vh, 13rem) clamp(3rem, 7vh, 5rem); }
.phead .h2 { margin-block: 1.25rem 1.5rem; }

/* --- Work list ------------------------------------------------ */
.worklist { display: grid; gap: 1.25rem; }
.work {
  display: grid;
  gap: 1.5rem;
  padding: 2.5rem;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: 18px;
  transition: border-color 0.4s var(--ease-out), transform 0.4s var(--ease-out);
}
.work:hover { border-color: var(--line-strong); transform: translateY(-3px); }
@media (min-width: 860px) { .work { grid-template-columns: 1.35fr 1fr; gap: 3rem; } }
.work__sector { font-family: var(--mono); font-size: 0.6875rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--blue); }
.work__title { font-size: clamp(1.375rem, 2.4vw, 1.875rem); font-weight: 600; letter-spacing: -0.025em; margin-block: 0.875rem 1rem; }
.work__body { color: var(--fg-muted); font-size: 0.9375rem; }
.work__outcome {
  margin-top: 1.5rem;
  padding: 0.875rem 1.125rem;
  border-left: 2px solid var(--blue);
  background: rgba(111,178,221,0.07);
  border-radius: 0 8px 8px 0;
  font-size: 0.9375rem;
  color: var(--fg);
}
.work__quote { color: var(--fg-muted); font-size: 0.9375rem; font-style: italic; border-top: 1px solid var(--line); padding-top: 1.25rem; }

/* --- Stats ---------------------------------------------------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1.25rem; }
.stat { padding: 1.75rem 0; border-top: 1px solid var(--line-strong); }
.stat__n { font-size: clamp(2rem, 4vw, 3rem); font-weight: 600; letter-spacing: -0.03em; color: var(--blue); line-height: 1; }
.stat__l { color: var(--fg-faint); font-size: 0.8125rem; margin-top: 0.625rem; letter-spacing: 0.02em; }

/* --- Process -------------------------------------------------- */
.steps { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.step { padding: 2rem 0 0; border-top: 1px solid var(--line); }
.step__n { font-family: var(--mono); font-size: 0.75rem; color: var(--blue); }
.step__t { font-size: 1.125rem; font-weight: 600; margin-block: 0.875rem 0.625rem; }
.step__b { color: var(--fg-muted); font-size: 0.9375rem; }

/* --- Contact -------------------------------------------------- */
.field { display: grid; gap: 0.5rem; margin-bottom: 1.25rem; }
.field label { font-size: 0.875rem; color: var(--fg-muted); }
.field input, .field textarea {
  padding: 0.875rem 1rem;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--fg);
  transition: border-color 0.25s var(--ease-out);
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--blue); }
.field textarea { min-height: 150px; resize: vertical; }
.formgrid { display: grid; gap: 0 1.25rem; }
@media (min-width: 700px) { .formgrid { grid-template-columns: 1fr 1fr; } .formgrid .field--wide { grid-column: 1 / -1; } }

/* ============================================================
   Rebuilt sections
   ============================================================ */

/* Sections that reform the stars get breathing room so the mark
   has somewhere to live. */
.sec { position: relative; padding-block: clamp(7rem, 18vh, 12rem); }
.sec--tight { padding-block: clamp(4rem, 9vh, 6rem); }

/* Two-column: sticky heading on the left, content scrolling on the right. */
.split { display: grid; gap: 3rem; }
@media (min-width: 960px) {
  .split { grid-template-columns: 0.85fr 1.15fr; gap: 5rem; align-items: start; }
  .split__head { position: sticky; top: 7rem; }
}
.split__head .h2 { margin-block: 1.25rem 1.25rem; }

/* --- Numbered service rows ---------------------------------- */
.rows { display: grid; }
.row {
  display: grid;
  gap: 1rem;
  padding-block: 2.25rem;
  border-top: 1px solid var(--line);
  transition: border-color 0.4s var(--ease-out);
}
.row:last-child { border-bottom: 1px solid var(--line); }
.row:hover { border-color: var(--line-strong); }
@media (min-width: 720px) { .row { grid-template-columns: auto 1fr; gap: 2.5rem; } }
.row__n {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--blue);
  padding-top: 0.4rem;
  letter-spacing: 0.08em;
}
.row__t { font-size: 1.375rem; font-weight: 600; letter-spacing: -0.02em; }
.row__b { color: var(--fg-muted); font-size: 0.9375rem; margin-top: 0.75rem; max-width: 56ch; }

/* --- Quote band --------------------------------------------- */
.quoteband {
  position: relative;
  border: 1px solid var(--line-strong);
  border-radius: 22px;
  padding: clamp(2.5rem, 6vw, 4.5rem);
  background:
    radial-gradient(120% 140% at 85% 15%, rgba(111,178,221,0.13), transparent 60%),
    var(--bg-raised);
  overflow: hidden;
}
.quoteband .h2 { margin-block: 1rem 1rem; max-width: 20ch; }
.quoteband .lead { max-width: 52ch; }
.quoteband__pts {
  display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem;
  margin-top: 2rem; padding-top: 1.75rem; border-top: 1px solid var(--line);
}
.quoteband__pt { display: flex; align-items: center; gap: 0.5rem; color: var(--fg-muted); font-size: 0.875rem; }
.quoteband__pt::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--blue); flex: none; }

/* --- Quote form (multi-step) --------------------------------- */
.steps__bar { display: flex; gap: 0.5rem; margin-bottom: 2.5rem; }
.steps__seg { flex: 1; height: 2px; background: var(--line); overflow: hidden; border-radius: 2px; }
.steps__seg span { display: block; height: 100%; width: 0; background: var(--blue); transition: width 0.45s var(--ease-out); }
.steps__seg.is-done span, .steps__seg.is-current span { width: 100%; }
.steps__seg.is-current span { background: var(--blue); }

.qstep { display: none; }
.qstep.is-active { display: block; }
.qstep__n { font-family: var(--mono); font-size: 0.75rem; color: var(--blue); letter-spacing: 0.14em; text-transform: uppercase; }
.qstep__q { font-size: clamp(1.375rem, 2.6vw, 1.875rem); font-weight: 600; letter-spacing: -0.02em; margin-block: 0.875rem 0.5rem; }
.qstep__hint { color: var(--fg-muted); font-size: 0.9375rem; margin-bottom: 2rem; }

/* Selectable option cards */
.opts { display: grid; gap: 0.75rem; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.opt { position: relative; }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt span {
  display: block;
  padding: 1.125rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-raised);
  cursor: pointer;
  font-size: 0.9375rem;
  transition: border-color 0.25s var(--ease-out), background 0.25s var(--ease-out), transform 0.25s var(--ease-out);
}
.opt span small { display: block; color: var(--fg-faint); font-size: 0.8125rem; margin-top: 0.3125rem; }
.opt span:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.opt input:checked + span { border-color: var(--blue); background: rgba(111,178,221,0.10); }
.opt input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 2px; }

.qnav { display: flex; gap: 0.75rem; margin-top: 2.5rem; align-items: center; }
.qnav .btn--ghost[hidden] { display: none; }
.qerr { color: #FFB4A2; font-size: 0.875rem; margin-top: 1rem; min-height: 1.25rem; }

/* Review list on the final step */
.review { display: grid; gap: 0; margin-bottom: 2rem; }
.review__row { display: flex; justify-content: space-between; gap: 1.5rem; padding: 0.875rem 0; border-bottom: 1px solid var(--line); font-size: 0.9375rem; }
.review__k { color: var(--fg-faint); }
.review__v { color: var(--fg); text-align: right; }

/* --- Product feature (section 03) ---------------------------- */
/* Slider: all slides share one grid cell; JS fades between them. Without JS
   every product simply stacks — nothing is hidden or lost. */
.prods { list-style: none; margin-top: 3rem; display: grid; gap: 2.5rem; }
.js-slider.prods { gap: 0; }
.js-slider .prod { grid-area: 1 / 1; }
.js-slider .prod[data-inactive] { opacity: 0; pointer-events: none; }

.prodnav { display: flex; align-items: center; gap: 1.125rem; margin-top: 2.25rem; }
.prodnav__btn {
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: none;
  color: var(--fg-muted);
  font-size: 1rem;
  transition: border-color 0.25s var(--ease-out), color 0.25s var(--ease-out), transform 0.25s var(--ease-out);
}
.prodnav__btn:hover { border-color: var(--blue); color: var(--blue); transform: translateY(-2px); }
.prodnav__count { font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.14em; color: var(--fg-faint); }
.prod {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.75rem;
  align-items: start;
}
.prod__icon {
  width: 88px; height: 88px;
  border-radius: 21px;
  border: 1px solid var(--line-strong);
  box-shadow: 0 10px 34px rgba(7,14,26,0.55);
}
.prod__head { display: flex; align-items: baseline; gap: 0.875rem; flex-wrap: wrap; }
.prod__name { font-size: clamp(1.375rem, 2.2vw, 1.75rem); font-weight: 700; letter-spacing: -0.02em; }
.prod__platform {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  color: var(--fg-faint);
  text-transform: uppercase;
}
.prod__tag {
  color: var(--blue);
  font-size: 1.0625rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-top: 0.375rem;
}
.prod__desc { color: var(--fg-muted); font-size: 0.9375rem; line-height: 1.55; margin-top: 0.625rem; max-width: 44ch; }
.prod__link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.375rem;
  padding: 0.6875rem 1.25rem;
  border: 1px solid var(--line-strong);
  border-radius: 100px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--fg);
  transition: border-color 0.25s var(--ease-out), color 0.25s var(--ease-out),
              transform 0.25s var(--ease-out), gap 0.25s var(--ease-out);
}
.prod__link:hover { border-color: var(--blue); color: var(--blue); transform: translateY(-2px); gap: 0.8125rem; }
@media (max-width: 640px) {
  .prod { grid-template-columns: 1fr; }
  .prod__icon { width: 72px; height: 72px; border-radius: 17px; }
}

/* --- Founder (section 04): compact one-view profile ---------- */
.fhead { display: flex; gap: 1.5rem; align-items: center; margin-block: 0.25rem 1rem; }
.fhead__photo {
  width: 128px;
  aspect-ratio: 2 / 3;          /* locked to the portrait's true proportions */
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid var(--line-strong);
  box-shadow: 0 14px 40px rgba(7, 14, 26, 0.6);
  flex: none;
}
.fhead__name { font-size: clamp(1.75rem, 3vw, 2.5rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1.05; }
.fhead__title {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue);
  margin-top: 0.5rem;
}
.fhead__sub { color: var(--fg-muted); font-size: 0.875rem; margin-top: 0.25rem; }

.flinks { display: flex; gap: 0.625rem; margin-top: 0.875rem; }
.flinks a {
  display: grid;
  place-items: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  color: var(--fg-muted);
  transition: border-color 0.25s var(--ease-out), color 0.25s var(--ease-out), transform 0.25s var(--ease-out);
}
.flinks a:hover { border-color: var(--blue); color: var(--blue); transform: translateY(-2px); }

.fpath {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--fg-faint);
  letter-spacing: 0.02em;
  margin-top: 1rem;
  line-height: 1.7;
}

.fstats {
  display: flex;
  flex-wrap: wrap;
  gap: 0 2.25rem;
  margin-top: 1.25rem;
  padding-top: 1.125rem;
  border-top: 1px solid var(--line);
}
.fstat { display: flex; align-items: baseline; gap: 0.4375rem; }
.fstat__n { font-size: 1.25rem; font-weight: 700; color: var(--blue); letter-spacing: -0.02em; }
.fstat__l { font-size: 0.8125rem; color: var(--fg-faint); }

@media (max-width: 640px) {
  .fhead { align-items: flex-start; }
  .fhead__photo { width: 96px; }
}

/* --- Solid mark: the crisp logo the particles resolve into --- */
.solid-mark {
  position: absolute;
  top: 0; left: 0;
  opacity: 0;
  object-fit: contain;
  pointer-events: none;
  will-change: transform, opacity;
  /* deliberately no glow: the whole point is clean, hard edges at rest */
}


/* --- Inline quote form (section 05) -------------------------- */
/* This section carries a full form, so everything steps down one size —
   the content must clear the fixed nav even when vertically centred in a
   short viewport, not merely fit the viewport's raw height. */
#getquote .display { font-size: clamp(1.875rem, 3.1vw, 2.5rem); }
#getquote .eyebrow { margin-bottom: 1rem; }
.qwrap { margin-top: 0.875rem; max-width: 500px; }
.qinline .field { margin-bottom: 0.625rem; }
.qinline .field label { font-size: 0.8125rem; }
.qinline .field input { padding: 0.6875rem 0.9375rem; }
.qinline textarea { min-height: 72px; padding: 0.6875rem 0.9375rem; }
.qinline .btn { margin-top: 0.25rem; }
.qdone {
  border: 1px solid var(--line-strong);
  border-left: 2px solid var(--blue);
  border-radius: 14px;
  padding: 1.5rem 1.75rem;
  background: rgba(111, 178, 221, 0.06);
}
.qdone__t { font-weight: 600; font-size: 1.125rem; }
.qdone__b { color: var(--fg-muted); font-size: 0.9375rem; margin-top: 0.5rem; }


/* --- Coming-soon badge (products) ---------------------------- */
/* Gold by request — the one warm note in the palette, reserved for
   what is on the way. AA on navy (10.2:1). */
.prod__soon {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.375rem;
  padding: 0.6875rem 1.25rem;
  border: 1px solid rgba(240, 192, 105, 0.45);
  border-radius: 100px;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #F0C069;
}
.prod__soon::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #F0C069;
  animation: soon-pulse 2.2s ease-in-out infinite;
}
@keyframes soon-pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }
@media (prefers-reduced-motion: reduce) { .prod__soon::before { animation: none; } }
