/* =====================================================================
   Waitack — main_v2.css
   Light theme on a white background using the brand palette:
     #0E2A44  deep navy   — text, dark sections, footer
     #1F6F75  teal        — eyebrows, secondary accent
     #93C940  lime        — primary CTA buttons
     #C8DC2A  chartreuse  — secondary highlight, hover, gradients
   ===================================================================== */

:root {
  /* Brand palette */
  --c-navy:       #0E2A44;
  --c-teal:       #1F6F75;
  --c-lime:       #93C940;
  --c-chartreuse: #C8DC2A;

  /* Light surfaces */
  --v2-bg:        #ffffff;          /* default page background */
  --v2-bg-elev:   #f7f9fa;          /* cards, subtle elevation */
  --v2-bg-soft:   #eef2f4;          /* hover, panels */
  --v2-bg-tint:   #f3faec;          /* very pale lime — section accent */
  --v2-line:      rgba(14, 42, 68, .08);
  --v2-line-2:    rgba(14, 42, 68, .18);

  /* Light-mode ink */
  --v2-ink:       var(--c-navy);
  --v2-ink-soft:  #4a5b71;
  --v2-ink-mute:  #8492a4;

  /* Accent (primary CTA = lime; hover = chartreuse) */
  --v2-accent:     var(--c-lime);
  --v2-accent-2:   var(--c-chartreuse);
  --v2-accent-ink: var(--c-navy);
  --v2-eyebrow:    var(--c-teal);

  /* Inverted (used in the dark CTA + footer) */
  --v2-dark-bg:        var(--c-navy);
  --v2-dark-ink:       #ffffff;
  --v2-dark-ink-soft:  #b9c8db;
  --v2-dark-ink-mute:  #7a8aa1;
  --v2-dark-line:      rgba(255,255,255,.10);

  /* H2 ink — gray, not black. Overridden inside dark containers via the
     ".v2-section.dark, .v2-cta-final, .v2-footer" group below so the gray
     stays readable on the navy background. */
  --v2-h2-color: var(--v2-ink-soft);

  --v2-radius:    14px;
  --v2-radius-lg: 22px;
  --v2-shadow:    0 18px 50px rgba(14,42,68,.10);
  --v2-shadow-soft: 0 6px 18px rgba(14,42,68,.06);

  --v2-font-display: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --v2-font-body:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --v2-font-mono:    "SF Mono", ui-monospace, Menlo, Consolas, monospace;

  --v2-max:       1600px;        /* hard cap so it doesn't sprawl on 4K */
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.v2 {
  margin: 0; padding: 0;
  background: var(--v2-bg);
  color: var(--v2-ink);
  font-family: var(--v2-font-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.v2 img { max-width: 100%; height: auto; display: block; }
body.v2 a { color: var(--c-teal); text-decoration: none; }
body.v2 a:hover { color: var(--c-navy); }

/* Headings: family + weight + spacing only; color flows via inheritance
   (body.v2 sets navy default; dark sections set white on their container).
   Each step DOWN the hierarchy is only slightly smaller — the user wants
   normal/h4/h3/h2 to feel close to the title size. */
body.v2 h1, body.v2 h2, body.v2 h3, body.v2 h4 {
  font-family: var(--v2-font-display);
  letter-spacing: -0.02em; line-height: 1.15;
  margin: 0 0 .5em;
}
body.v2 h1 {
  font-size: clamp(3rem, 5.5vw, 5rem);
  font-weight: 800;
  letter-spacing: -0.035em; line-height: 1.05;
}
body.v2 h2 {
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  font-weight: 700;
  /* Gray (not pure black) — uses the inherit-friendly custom prop so
     dark sections automatically switch to the dark-mode gray. */
  color: var(--v2-h2-color);
}
body.v2 h3 {
  font-size: clamp(1.6rem, 2.4vw, 2rem);
  font-weight: 700;
}
body.v2 h4 {
  font-size: clamp(1.15rem, 1.4vw, 1.3rem);
  font-weight: 700;
}
body.v2 p, body.v2 li {
  /* Body text matches h4 size, regular weight. */
  font-size: clamp(1.15rem, 1.4vw, 1.3rem);
  font-weight: 400;
}
body.v2 p  { margin: 0 0 1em; }

/* 90% of viewport on wide screens, capped at --v2-max so the layout
   doesn't sprawl on ultra-wide monitors. Padding stays for small screens. */
.v2-container {
  width: min(90%, var(--v2-max));
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ---------- Palette stripe — visual brand signature ---------- */
.v2-palette-stripe {
  height: 6px;
  background: linear-gradient(90deg,
    var(--c-navy)        0%,  var(--c-navy)        25%,
    var(--c-teal)        25%, var(--c-teal)        50%,
    var(--c-lime)        50%, var(--c-lime)        75%,
    var(--c-chartreuse)  75%, var(--c-chartreuse) 100%);
}

/* ---------- Buttons ---------- */
.v2-btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .85rem 1.4rem;
  border-radius: 999px;
  font-weight: 700; font-size: .95rem;
  border: 1px solid transparent;
  transition: transform .15s ease, background .15s ease, color .15s ease, border-color .15s;
  cursor: pointer; white-space: nowrap;
}
.v2-btn-primary {
  background: var(--v2-accent); color: var(--v2-accent-ink);
  box-shadow: 0 6px 18px rgba(147,201,64,.35);
}
.v2-btn-primary:hover {
  background: var(--v2-accent-2); color: var(--v2-accent-ink);
  transform: translateY(-1px);
}
.v2-btn-ghost {
  background: transparent; color: var(--v2-ink);
  border-color: var(--v2-line-2);
}
.v2-btn-ghost:hover { background: var(--v2-bg-soft); color: var(--v2-ink); border-color: var(--c-teal); }
.v2-btn-dark { background: var(--c-navy); color: #fff; }
.v2-btn-dark:hover { background: #143553; color: #fff; }

/* ---------- Nav ---------- */
.v2-nav {
  position: sticky; top: 0; z-index: 30;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 1px solid var(--v2-line);
}
.v2-nav .v2-container {
  display: flex; align-items: center; gap: 1.5rem;
  padding-top: .9rem; padding-bottom: .9rem;
  flex-wrap: wrap;             /* let nav drop to 2 lines on medium screens */
}
.v2-nav .brand { flex: 0 0 auto; }
.v2-nav .brand img { height: 24px; }  /* dark logo on white */
.v2-nav nav {
  flex: 1 1 auto;
  display: flex; gap: 1.25rem;
  flex-wrap: wrap;             /* nav items wrap to a second row when tight */
  min-width: 0;
}
.v2-nav nav a {
  color: var(--v2-ink); font-size: .95rem; font-weight: 500;
  white-space: nowrap;          /* keep each label on one line */
}

/* --- Burger menu (only visible below the burger breakpoint) --------- */
.v2-nav-toggle { display: none; }   /* the checkbox itself is never shown */

.v2-nav-burger {
  display: none;                /* hidden on wide / medium */
  width: 38px; height: 38px;
  flex-direction: column; justify-content: center; align-items: center;
  gap: 5px; cursor: pointer; margin-left: auto;
}
.v2-nav-burger span {
  display: block; width: 22px; height: 2px; background: var(--c-navy);
  border-radius: 2px; transition: transform .2s, opacity .2s;
}
.v2-nav nav a:hover { color: var(--c-teal); }
.v2-nav .lang {
  flex: 0 0 auto;             /* never shrink */
  display: flex; gap: .35rem; color: var(--v2-ink-mute); font-size: .85rem;
}
.v2-nav .lang a { color: var(--v2-ink-mute); }
.v2-nav .lang a.active { color: var(--c-navy); font-weight: 700; }
.v2-nav .v2-btn { flex: 0 0 auto; }   /* CTA stays full-size */

/* ---------- Parallax ----------
   Elements with `data-parallax="<speed>"` get a transform on every scroll
   tick. CSS only declares `will-change` so the browser can hoist them onto
   the GPU; the actual transform is computed in JS (see home_v2.html). */
[data-parallax] { will-change: transform; }
@media (prefers-reduced-motion: reduce) {
  [data-parallax] { transform: none !important; }
  /* reveal-on-scroll elements: render in their final state, no animation */
  [data-reveal] .v2-container,
  .v2-proof .v2-container {
    transform: none !important;
    opacity: 1 !important;
    transition: none !important;
  }
  /* About-page team mosaic: skip the assemble/disassemble scatter
     entirely. The JS already bails out early when this media query
     matches, but this rule is the belt-and-braces fallback. */
  .v2-team-tile {
    transform: none !important;
    opacity: 1 !important;
  }
}

/* ---------- Hero ---------- */
.v2-hero {
  padding: 2.5rem 0 5rem;             /* tight top so the H1 sits high */
  background:
    radial-gradient(ellipse at 85% -10%, rgba(200, 220, 42, .35) 0%, transparent 55%),
    radial-gradient(ellipse at 0% 30%,  rgba(31, 111, 117, .12) 0%, transparent 55%),
    var(--v2-bg);
  border-bottom: 1px solid var(--v2-line);
}
.v2-hero h1 {
  max-width: 18ch;
  background: linear-gradient(180deg, var(--c-navy) 0%, var(--c-teal) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.v2-hero .v2-sub {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--v2-ink-soft);
  max-width: 60ch; margin-top: 1rem;
}
.v2-hero .v2-actions { margin-top: 2rem; display: flex; gap: .8rem; flex-wrap: wrap; }
.v2-hero .v2-product {
  margin: 3.5rem auto 0;              /* centred under the hero copy */
  max-width: 880px;                   /* a bit smaller than the container */
  background: var(--v2-bg-elev);
  border: 1px solid var(--v2-line);
  border-radius: var(--v2-radius-lg);
  box-shadow: var(--v2-shadow);
  overflow: hidden;
}
.v2-hero .v2-product img { width: 100%; display: block; }
.v2-hero .v2-product iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  border: 0;
}

/* ---------- "By the numbers" — proof strip ----------------------------
   Promoted from a thin caption-row to a full moment of impact: bigger
   numbers, brand-tinted background gradient, a colored accent dot above
   each stat (cycling teal / lime / chartreuse), and a colored stripe
   running across the very top of the section. */
.v2-proof {
  padding: 4rem 0;
  position: relative;
  overflow: hidden;                       /* clip the slide-in source position */
  /* Deliberate background contrast against the rest of the page (which is
     plain white). A pale-gray → pale-lime gradient anchors the section
     without competing with the brand colors above and below it. */
  background: linear-gradient(180deg, var(--v2-bg-soft) 0%, var(--v2-bg-tint) 100%);
  border-top: 1px solid var(--v2-line);
  border-bottom: 1px solid var(--v2-line);
}
.v2-proof::before {
  /* tri-color stripe at the very top of the section */
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px;
  background: linear-gradient(90deg,
    var(--c-teal) 0%, var(--c-lime) 50%, var(--c-chartreuse) 100%);
}
.v2-proof .v2-container {
  display: grid;
  grid-template-columns: 1fr;            /* label centred above the stats row */
  align-items: center; gap: 2rem;
  text-align: center;
  /* Slide-in setup — starts off-screen-right, lands at natural position when
     the section enters the viewport (JS toggles the .is-in-view class). */
  transform: translateX(110vw);
  opacity: 0;
  transition: transform .9s cubic-bezier(.22, 1, .36, 1), opacity .6s ease-out;
}
.v2-proof.is-in-view .v2-container {
  transform: translateX(0);
  opacity: 1;
}
.v2-proof .label {
  display: block;
  color: var(--c-teal);
  font-family: var(--v2-font-display);
  font-size: clamp(2rem, 4vw, 3.4rem);    /* full heading-sized */
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  text-transform: none;                    /* drop the eyebrow uppercase */
}
.v2-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}
.v2-stat { position: relative; padding-top: 1.25rem; }
.v2-stat::before {
  content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--c-teal);
}
.v2-stat:nth-child(2)::before { background: var(--c-lime); }
.v2-stat:nth-child(3)::before { background: var(--c-chartreuse); }
.v2-stat .num {
  font-family: var(--v2-font-display);
  font-size: clamp(2.8rem, 5.5vw, 4.6rem);
  font-weight: 800;
  letter-spacing: -0.035em; line-height: 1;
  color: var(--c-navy);
}
.v2-stat .lbl {
  color: var(--v2-ink-soft);
  font-size: clamp(1.15rem, 1.6vw, 1.4rem);
  line-height: 1.4;
  margin: .9rem auto 0;
  max-width: 28ch;
}

/* ---------- Section primitives ---------- */
.v2-section { padding: 6rem 0; border-bottom: 1px solid var(--v2-line); }
.v2-section.dark {
  background: var(--c-navy); color: var(--v2-dark-ink);
  /* gray-on-dark variant for H2 */
  --v2-h2-color: var(--v2-dark-ink-soft);
}
.v2-section.dark h1, .v2-section.dark h2, .v2-section.dark h3 { color: var(--v2-dark-ink); }
.v2-section.dark .v2-section-head p { color: var(--v2-dark-ink-soft); }
.v2-section.dark a { color: var(--c-chartreuse); }
.v2-section.dark a:hover { color: #fff; }

.v2-section.elev { background: var(--v2-bg-elev); }
.v2-section.tint { background: var(--v2-bg-tint); }
.v2-section.cream { background: var(--v2-bg-soft); }

.v2-eyebrow {
  display: inline-block; font-size: .78rem; letter-spacing: .14em;
  text-transform: uppercase; font-weight: 700;
  color: var(--v2-eyebrow);
  padding: .35rem .75rem; border-radius: 999px;
  background: rgba(31,111,117,.08);
  border: 1px solid rgba(31,111,117,.22);
  margin-bottom: 1rem;
}
.v2-section.dark .v2-eyebrow {
  color: var(--c-chartreuse);
  background: rgba(200,220,42,.10);
  border-color: rgba(200,220,42,.30);
}

.v2-section-head { max-width: 60ch; margin-bottom: 3rem; }
.v2-section-head p { color: var(--v2-ink-soft); font-size: 1.1rem; }

/* ---------- Pillars (4-card platform breakdown) ---------- */
.v2-pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.v2-pillar {
  background: var(--v2-bg); border: 1px solid var(--v2-line);
  border-radius: var(--v2-radius); padding: 1.75rem;
  transition: border-color .15s, transform .15s, box-shadow .15s;
}
.v2-pillar:hover {
  border-color: var(--c-lime); transform: translateY(-2px);
  box-shadow: var(--v2-shadow-soft);
}
.v2-pillar h3 { color: var(--v2-ink); }
.v2-pillar p { color: var(--v2-ink-soft); font-size: .98rem; }
.v2-pillar .icon {
  width: 38px; height: 38px; border-radius: 10px;
  background: linear-gradient(135deg, var(--c-lime) 0%, var(--c-chartreuse) 100%);
  margin-bottom: 1rem;
}
/* Pillars inside dark section invert */
.v2-section.dark .v2-pillar {
  background: rgba(255,255,255,.04); border-color: var(--v2-dark-line);
}
.v2-section.dark .v2-pillar:hover { border-color: var(--c-chartreuse); }
.v2-section.dark .v2-pillar h3 { color: var(--v2-dark-ink); }
.v2-section.dark .v2-pillar p { color: var(--v2-dark-ink-soft); }

/* ---------- Audience cards (3 columns) ---------- */
.v2-audience {
  display: grid;
  /* Featured card gets a bit more room than the other two. */
  grid-template-columns: 1.15fr 1fr 1fr;
  gap: 1rem;
  align-items: stretch;
}
.v2-audience .card {
  background: var(--v2-bg); color: var(--v2-ink);
  border-radius: var(--v2-radius-lg);
  padding: 2rem; border: 1px solid var(--v2-line);
  transition: transform .15s, box-shadow .15s, border-color .15s;
  position: relative;
}
/* Default per-position accents (after reorder: End-users / Landlords / Advisors). */
.v2-audience .card:nth-child(1) { border-top: 6px solid var(--c-lime); }
.v2-audience .card:nth-child(2) { border-top: 4px solid var(--c-teal); }
.v2-audience .card:nth-child(3) { border-top: 4px solid var(--c-chartreuse); }

/* Featured (= End-users) — visually prominent. The audience section is on
   a pale-lime tint, so the featured card stays white but gets a thicker
   lime border, stronger lift and shadow to pop forward. */
.v2-audience .card.featured {
  background: var(--v2-bg);
  border: 2px solid var(--c-lime);
  border-top-width: 6px;                       /* matches default top stripe */
  box-shadow: 0 18px 40px rgba(14, 42, 68, .14);
  transform: translateY(-8px);                 /* lift at rest */
}
.v2-audience .card.featured h3 {
  color: var(--v2-ink);                       /* keep navy, not gray */
}
.v2-audience .card-badge {
  display: inline-block; font-size: .72rem; letter-spacing: .14em;
  text-transform: uppercase; font-weight: 800;
  padding: .3rem .65rem; border-radius: 999px;
  background: var(--c-lime); color: var(--c-navy);
  margin-bottom: 1rem;
}
.v2-audience .card:hover { transform: translateY(-9px); box-shadow: var(--v2-shadow-soft); }
.v2-audience .card.featured:hover { transform: translateY(-10px); }
.v2-audience .card h3 { color: var(--v2-ink); }
.v2-audience .card ul { padding-left: 1.1rem; margin: 0; }
.v2-audience .card li { margin: .35em 0; color: var(--v2-ink-soft); }

/* ---------- Client conveyor belts (marquee) ----------------------------
   Each track is the logo list duplicated once; the @keyframes scrolls
   the track by -50% so the loop is seamless. Pauses on hover, and stops
   entirely when the visitor prefers reduced motion. */
.v2-clients .v2-clients-row-title {
  font-size: 1rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .14em;
  color: var(--c-teal);
  margin: 2.5rem 0 1rem;
}
.v2-clients .v2-clients-row-title:first-of-type { margin-top: 1rem; }

.v2-marquee {
  position: relative;
  overflow: hidden;
  padding: 0;
}
/* Soft fade on both edges so logos don't get clipped harshly. */
.v2-marquee::before,
.v2-marquee::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 80px;
  z-index: 2; pointer-events: none;
}
.v2-marquee::before { left: 0;  background: linear-gradient(90deg, var(--v2-bg) 0%, transparent 100%); }
.v2-marquee::after  { right: 0; background: linear-gradient(-90deg, var(--v2-bg) 0%, transparent 100%); }

.v2-marquee-track {
  display: flex; gap: 3.5rem;
  width: max-content;
  align-items: center;
  animation: v2-marquee-scroll 38s linear infinite;
  will-change: transform;
}
.v2-marquee-track.reverse { animation-direction: reverse; }
.v2-marquee:hover .v2-marquee-track { animation-play-state: paused; }

@keyframes v2-marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .v2-marquee-track {
    animation: none; transform: none;
    width: 100%;                /* override max-content so flex-wrap engages */
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem 2rem;
  }
}

/* Logo bar — fixed height defines the row; each item sizes itself by the
   logo's natural aspect ratio so a wide wordmark and a square mark both
   look right next to each other.

   Note on the `body.v2` prefix: the base stylesheet declares
   ``body.v2 img { max-width:100%; height:auto }`` (specificity 0,1,2),
   which would otherwise override an un-prefixed `.v2-marquee-item img`
   rule (0,1,1). Prefixing with `body.v2` lifts us to 0,2,2 — we win the
   cascade and our caps actually apply. */
.v2-marquee-item {
  flex: 0 0 auto;
  height: 96px;                       /* row height */
  padding: 8px 0;                     /* breathing room top + bottom */
  display: flex; align-items: center; justify-content: center;
}
body.v2 .v2-marquee-item img {
  height: auto;
  width: auto;
  max-height: 80px;                   /* bar minus padding — height cap */
  max-width: 400px;                   /* accommodates ~5:1 wordmarks (L'Oréal etc.) */
  object-fit: contain;
  /* Colored logos render in their natural colors. A subtle scale-up on
     hover keeps the interactivity cue without touching saturation. */
  transition: transform .2s;
}
body.v2 .v2-marquee-item:hover img { transform: scale(1.05); }

/* ---------- Case study cards ---------- */
.v2-cases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.v2-case {
  background: var(--v2-bg); border: 1px solid var(--v2-line);
  border-radius: var(--v2-radius);
  padding: 2rem; display: flex; flex-direction: column; gap: 1rem;
  transition: transform .15s, border-color .15s, box-shadow .15s;
}
.v2-case:hover {
  border-color: var(--c-lime); transform: translateY(-3px);
  box-shadow: var(--v2-shadow-soft);
}
.v2-case .num {
  font-size: .85rem; color: var(--c-teal);
  font-weight: 800; letter-spacing: .14em;
}
.v2-case h3 { color: var(--v2-ink); margin: 0; }
.v2-case p { color: var(--v2-ink-soft); font-size: .98rem; flex: 1; }
.v2-case .read { color: var(--c-teal); font-weight: 700; }
.v2-case .read:hover { color: var(--c-navy); }

/* ---------- Insights (article cards) ---------- */
.v2-articles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.v2-article {
  background: var(--v2-bg); border: 1px solid var(--v2-line);
  border-radius: var(--v2-radius); overflow: hidden;
  display: flex; flex-direction: column;
  transition: border-color .15s, transform .15s, box-shadow .15s;
}
.v2-article:hover {
  border-color: var(--c-lime); transform: translateY(-2px);
  box-shadow: var(--v2-shadow-soft);
}
.v2-article .thumb { aspect-ratio: 16 / 10; background: var(--v2-bg-soft); overflow: hidden; }
.v2-article .thumb img { width: 100%; height: 100%; object-fit: cover; }
.v2-article .body { padding: 1.25rem; }
.v2-article .date {
  color: var(--c-teal); font-size: .78rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
}
.v2-article h3 { font-size: 1.1rem; color: var(--v2-ink); margin: .5rem 0 0; }

/* ---------- About snippet ---------- */
.v2-about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.v2-about-grid p { color: var(--v2-ink-soft); font-size: 1.05rem; }
.v2-team-row { display: flex; gap: -.75rem; margin-top: 1.5rem; flex-wrap: wrap; }
.v2-team-row img {
  width: 56px; height: 56px; border-radius: 50%; object-fit: cover;
  border: 3px solid var(--v2-bg); margin-left: -.75rem;
  box-shadow: 0 2px 6px rgba(14,42,68,.10);
}
.v2-team-row img:first-child { margin-left: 0; }

/* ---------- FAQ ---------- */
.v2-faq { max-width: 820px; margin: 0 auto; }
.v2-faq details {
  border-top: 1px solid var(--v2-line);
  padding: 1.4rem 0;
}
.v2-faq details:last-of-type { border-bottom: 1px solid var(--v2-line); }
.v2-faq summary {
  cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  font-size: 1.15rem; font-weight: 700; color: var(--v2-ink);
}
.v2-faq summary::-webkit-details-marker { display: none; }
.v2-faq summary::after {
  content: "+"; font-size: 1.6rem; color: var(--c-lime); line-height: 1;
  font-weight: 800;
}
.v2-faq details[open] summary::after { content: "−"; color: var(--c-teal); }
.v2-faq details > *:not(summary) {
  margin-top: 1rem; color: var(--v2-ink-soft); line-height: 1.65;
}

/* ---------- CTA (final, dark) ---------- */
.v2-cta-final {
  background:
    radial-gradient(ellipse at 80% 0%, rgba(200,220,42,.20) 0%, transparent 60%),
    radial-gradient(ellipse at 10% 100%, rgba(31,111,117,.30) 0%, transparent 60%),
    var(--c-navy);
  color: var(--v2-dark-ink);
  padding: 6rem 0; text-align: center;
  border-bottom: 1px solid var(--v2-dark-line);
  --v2-h2-color: var(--v2-dark-ink-soft);  /* gray on navy */
}
.v2-cta-final h2 {
  color: var(--v2-dark-ink);
  max-width: 22ch; margin-left: auto; margin-right: auto;
}
.v2-cta-final p { color: var(--v2-dark-ink-soft); max-width: 50ch; margin: 1rem auto 0; }
.v2-cta-final .v2-actions { justify-content: center; margin-top: 2rem; }
.v2-cta-final .v2-eyebrow {
  color: var(--c-chartreuse);
  background: rgba(200,220,42,.10);
  border-color: rgba(200,220,42,.30);
}
.v2-cta-form {
  margin: 3rem auto 0; max-width: 760px;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--v2-dark-line);
  border-radius: var(--v2-radius-lg); padding: 2rem;
  text-align: left;
}
.v2-cta-form .grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.v2-cta-form label {
  display: flex; flex-direction: column; gap: .35rem;
  font-size: .85rem; color: var(--v2-dark-ink-soft); font-weight: 600;
}
.v2-cta-form label.full { display: block; margin-top: 1rem; }
.v2-cta-form input, .v2-cta-form textarea {
  width: 100%; padding: .75rem .9rem;
  background: rgba(0,0,0,.20); border: 1px solid var(--v2-dark-line);
  color: var(--v2-dark-ink); border-radius: 10px; font: inherit;
}
.v2-cta-form input:focus, .v2-cta-form textarea:focus {
  outline: 2px solid var(--c-lime); border-color: transparent;
}
.v2-cta-form button { margin-top: 1.2rem; }
.v2-cta-form .meta { color: var(--v2-dark-ink-mute); font-size: .85rem; margin-top: .8rem; }
.v2-cta-form .meta a { color: var(--c-chartreuse); }

/* ---------- Footer ---------- */
.v2-footer {
  background: var(--c-navy); color: var(--v2-dark-ink-soft); padding: 4rem 0 2rem;
  --v2-h2-color: var(--v2-dark-ink-soft);
}
.v2-footer .grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2.5rem;
}
.v2-footer h4 { color: #fff; font-size: 1rem; font-weight: 700; margin-bottom: .8rem; }
.v2-footer ul { list-style: none; padding: 0; margin: 0; }
.v2-footer li { margin: .3em 0; }
.v2-footer a { color: var(--v2-dark-ink-soft); }
.v2-footer a:hover { color: var(--c-chartreuse); }
.v2-footer .brand img { height: 26px; filter: brightness(0) invert(1); }
.v2-footer .tagline { color: var(--v2-dark-ink-soft); margin-top: 1rem; max-width: 28ch; }
.v2-footer .legal {
  margin-top: 3rem; padding-top: 1.5rem;
  border-top: 1px solid var(--v2-dark-line);
  display: flex; justify-content: space-between; align-items: center;
  color: var(--v2-dark-ink-mute); font-size: .85rem;
}
.v2-footer .legal img { height: 36px; background: #fff; border-radius: 6px; padding: 4px 8px; }

/* ---------- Messages ---------- */
.v2 .messages { list-style: none; padding: 0; margin: 1rem 0; }
.v2 .messages li {
  padding: .75rem 1rem; border-radius: 10px; margin: .35rem 0;
  background: var(--v2-bg-elev); color: var(--v2-ink); border: 1px solid var(--v2-line);
}
.v2 .messages li.msg-success { border-color: var(--c-lime); background: var(--v2-bg-tint); }
.v2 .messages li.msg-error   { border-color: #ef4444; background: #fef2f2; }

/* ---------- Secondary pages (page_v2 / article_v2 / case_study_child_v2)
   Shared layout primitives used by every page that isn't the one-pager
   home. They reuse the same tokens as the rest of v2 so the design
   feels uniform across the site. */
.v2-page-header {
  padding: 5rem 0 3.5rem;
  background: linear-gradient(180deg, var(--v2-bg-tint) 0%, var(--v2-bg) 100%);
  border-bottom: 1px solid var(--v2-line);
}
.v2-page-header h1 {
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin: 0 0 .6rem;
  max-width: 22ch;
}
.v2-page-header .v2-eyebrow { margin-bottom: 1rem; }
.v2-page-sub {
  font-size: clamp(1.2rem, 1.8vw, 1.5rem);
  color: var(--v2-ink-soft);
  max-width: 60ch;
  margin: .25rem 0 0;
  font-weight: 400;
}

/* About-page header is centred (other secondary pages stay left-aligned).
   The H1 and subtitle have intrinsic max-width caps; auto-margins centre
   them inside the text-align:center container. */
.v2-about .v2-page-header { text-align: center; }
.v2-about .v2-page-header h1,
.v2-about .v2-page-header .v2-page-sub {
  margin-left: auto;
  margin-right: auto;
}
.v2-back-link {
  margin: 0 0 1rem;
  font-size: .95rem;
  letter-spacing: .02em;
}
.v2-back-link a { color: var(--c-teal); font-weight: 600; }
.v2-back-link a:hover { color: var(--c-navy); }

.v2-page-body { padding: 4rem 0 5rem; }

/* --- Post-specific header bits --- */
.v2-post-header { background: linear-gradient(180deg, var(--v2-bg-soft) 0%, var(--v2-bg) 100%); }
.v2-post-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: .75rem;
  margin: 0 0 1rem;
  font-size: .95rem; color: var(--v2-ink-mute);
}
.v2-post-date { font-variant-numeric: tabular-nums; }
.v2-post-author { color: var(--v2-ink-soft); }
.v2-pill {
  display: inline-block;
  font-size: .78rem; letter-spacing: .14em;
  text-transform: uppercase; font-weight: 800;
  padding: .3rem .7rem; border-radius: 999px;
  background: var(--c-lime); color: var(--c-navy);
}

/* --- Case-study-child themes line --- */
.v2-themes {
  margin: .75rem 0 0;
  color: var(--v2-ink-soft);
  font-size: 1rem;
  font-style: italic;
}

/* --- Prose: typography for rendered markdown content ----------------
   Targets the structure produced by python-markdown (h2/h3 + p + lists +
   blockquote + img + tables + code). The aim is to match the v2 type
   scale and brand palette without each markdown file needing custom
   wrappers. */
.v2-prose {
  max-width: 72ch;
  margin: 0 auto;                          /* centred reading column */
  font-size: clamp(1.15rem, 1.4vw, 1.3rem);
  line-height: 1.7;
  color: var(--v2-ink);
}
.v2-prose > :first-child { margin-top: 0; }
.v2-prose h1 {
  font-size: clamp(2.4rem, 4.4vw, 3.6rem);
  font-weight: 800; letter-spacing: -0.025em; line-height: 1.1;
  margin: 2.5rem 0 1rem;
}
.v2-prose h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 700; letter-spacing: -0.02em; line-height: 1.15;
  color: var(--v2-h2-color);                /* gray, picks up dark variant inside dark sections */
  margin: 2.6rem 0 .9rem;
}
.v2-prose h3 {
  font-size: clamp(1.4rem, 2.2vw, 1.75rem);
  font-weight: 700; letter-spacing: -0.015em;
  margin: 2rem 0 .75rem;
}
.v2-prose h4 {
  font-size: clamp(1.15rem, 1.6vw, 1.35rem);
  font-weight: 700;
  margin: 1.6rem 0 .6rem;
}
.v2-prose p { margin: 0 0 1.1em; }
.v2-prose strong { font-weight: 700; }
.v2-prose em { font-style: italic; }
.v2-prose ul, .v2-prose ol { padding-left: 1.6rem; margin: 0 0 1.4em; }
.v2-prose li { margin: .45em 0; }
.v2-prose li > ul, .v2-prose li > ol { margin: .35em 0; }
.v2-prose blockquote {
  border-left: 4px solid var(--c-teal);
  padding: .25rem 1.25rem;
  margin: 1.5em 0;
  color: var(--v2-ink-soft);
  font-style: italic;
}
.v2-prose a {
  color: var(--c-teal);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.v2-prose a:hover { color: var(--c-navy); }
.v2-prose img {
  max-width: 100%; height: auto; display: block;
  border-radius: var(--v2-radius);
  margin: 1.75em 0;
  box-shadow: var(--v2-shadow-soft);
}
.v2-prose hr {
  border: 0;
  height: 1px;
  background: var(--v2-line);
  margin: 2.5em 0;
}
.v2-prose code {
  background: var(--v2-bg-soft);
  padding: .15em .4em;
  border-radius: 4px;
  font-family: var(--v2-font-mono);
  font-size: .9em;
}
.v2-prose pre {
  background: var(--c-navy); color: #fff;
  padding: 1.25rem 1.4rem;
  border-radius: var(--v2-radius);
  overflow-x: auto;
  margin: 1.5em 0;
}
.v2-prose pre code {
  background: transparent; color: inherit; padding: 0;
  font-size: .9rem;
}
.v2-prose table {
  width: 100%; border-collapse: collapse;
  margin: 1.75em 0;
  font-size: .98rem;
}
.v2-prose th, .v2-prose td {
  padding: .75rem 1rem;
  border-bottom: 1px solid var(--v2-line);
  text-align: left;
}
.v2-prose th {
  background: var(--v2-bg-soft);
  font-weight: 700;
}

/* ---------- Content-type templates ---------- */

/* --- About: team mosaic ----------------------------------------------
   Asymmetric grid: the lead tile (CEO) spans two columns + two rows,
   the rest fill in as 1×1 squares. Auto-flows so adding/removing
   members in team.json just reshuffles the mosaic without code edits. */
.v2-team {
  background: var(--v2-bg);
  border-top: 1px solid var(--v2-line);
  /* Clip the scatter overflow when tiles slide out beyond the grid —
     prevents the JS-driven offsets from creating a horizontal scrollbar. */
  overflow: hidden;
}
.v2-team-mosaic {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: minmax(220px, auto);
  gap: 1rem;
}
.v2-team-tile {
  position: relative;
  display: flex; flex-direction: column;
  background: var(--v2-bg-elev);
  border: 1px solid var(--v2-line);
  border-radius: var(--v2-radius-lg);
  overflow: hidden;
  /* `transform` is driven by the per-frame scatter JS — no CSS transition
     on it (would lag the scroll). Opacity has a short ease so the hover
     fade still feels organic. */
  transition: opacity .25s, border-color .2s, box-shadow .2s;
  will-change: transform, opacity;
}
.v2-team-tile:hover {
  border-color: var(--c-teal);
  box-shadow: var(--v2-shadow-soft);
}
.v2-team-tile--lead {
  grid-column: span 2;
  grid-row: span 2;
  background: var(--c-navy);
  color: var(--v2-dark-ink);
  border-color: var(--c-navy);
}
.v2-team-tile--lead:hover { border-color: var(--c-lime); }
.v2-team-portrait {
  flex: 0 0 auto;
  background: var(--v2-bg-tint);
  aspect-ratio: 4 / 3;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.v2-team-tile--lead .v2-team-portrait {
  aspect-ratio: 1 / 1;
  background: rgba(255,255,255,.05);
}
.v2-team-portrait img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center top;
}
.v2-team-initials {
  font-family: var(--v2-font-display);
  font-size: 3rem; font-weight: 800;
  color: var(--c-teal);
}
.v2-team-body {
  padding: 1.25rem 1.4rem 1.5rem;
  display: flex; flex-direction: column; gap: .4rem;
}
.v2-team-tile--lead .v2-team-body { padding: 1.5rem 1.75rem 2rem; }
.v2-team-body h3 {
  font-size: 1.15rem; line-height: 1.2;
  margin: 0; font-weight: 700;
}
.v2-team-tile--lead .v2-team-body h3 {
  font-size: clamp(1.6rem, 2.2vw, 2rem);
  color: var(--v2-dark-ink);
}
.v2-team-role {
  margin: 0;
  font-size: .85rem;
  color: var(--c-teal);
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.v2-team-tile--lead .v2-team-role { color: var(--c-lime); }
.v2-team-bio {
  margin: .35rem 0 0;
  font-size: .95rem;
  line-height: 1.5;
  color: var(--v2-ink-soft);
}
.v2-team-tile--lead .v2-team-bio {
  color: var(--v2-dark-ink-soft);
  font-size: 1.05rem;
}

/* --- Post / Insight: hero image + central column + signature ----- */
.v2-post-hero {
  margin: 0;
  background: var(--v2-bg-soft);
  overflow: hidden;
}
.v2-post-hero img {
  width: 100%;
  max-height: 540px;
  object-fit: cover;
  display: block;
}
.v2-post-body { padding: 4rem 0 5rem; }
.v2-post-column {
  /* The user asked for the prose to sit centred at 80% of the page —
     the .v2-container is already capped to 1600px, so 80% of that
     reads as the column width; we centre it. */
  width: min(80%, 880px);
  margin: 0 auto;
}
.v2-post-column .v2-prose { max-width: none; }

.v2-signature {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 1.5rem;
  align-items: center;
  margin-top: 4rem;
  padding: 2rem;
  background: var(--v2-bg-elev);
  border: 1px solid var(--v2-line);
  border-left: 4px solid var(--c-teal);
  border-radius: var(--v2-radius);
}
.v2-signature-portrait {
  width: 96px; height: 96px;
  border-radius: 50%;
  object-fit: cover; object-position: center top;
  border: 3px solid var(--v2-bg);
  box-shadow: var(--v2-shadow-soft);
}
.v2-signature-body { display: flex; flex-direction: column; gap: .15rem; }
.v2-signature-label {
  margin: 0;
  font-size: .75rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--c-teal);
}
.v2-signature-name {
  margin: .2rem 0 0;
  font-family: var(--v2-font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--v2-ink);
}
.v2-signature-role {
  margin: 0;
  font-size: .95rem;
  color: var(--v2-ink-soft);
  font-weight: 500;
}
.v2-signature-bio {
  margin: .5rem 0 0;
  font-size: .95rem;
  line-height: 1.5;
  color: var(--v2-ink-soft);
}

/* --- Business cases: hero band + themes pills --- */
.v2-case-header {
  background: linear-gradient(180deg, var(--v2-bg-soft) 0%, var(--v2-bg-tint) 100%);
}
.v2-themes-pills {
  list-style: none;
  padding: 0; margin: 1.5rem 0 0;
  display: flex; flex-wrap: wrap; gap: .5rem;
}
.v2-themes-pills li {
  display: inline-block;
  font-size: .8rem; letter-spacing: .06em;
  font-weight: 700;
  padding: .35rem .85rem;
  background: var(--v2-bg);
  border: 1px solid var(--v2-line);
  border-radius: 999px;
  color: var(--v2-ink-soft);
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .v2-pillars, .v2-audience, .v2-cases, .v2-articles { grid-template-columns: 1fr 1fr; }
  .v2-about-grid { grid-template-columns: 1fr; gap: 2rem; }
  .v2-footer .grid { grid-template-columns: 1fr 1fr; }
  .v2-stats { grid-template-columns: 1fr 1fr 1fr; }
  .v2-proof .v2-container { grid-template-columns: 1fr; }

  /* Team mosaic — 2 columns at tablet width, lead tile spans both. */
  .v2-team-mosaic { grid-template-columns: repeat(2, 1fr); }
  .v2-team-tile--lead { grid-column: span 2; grid-row: span 1; }

  /* Post column widens on narrower screens (80 % of a smaller container
     would feel cramped — let it stretch). */
  .v2-post-column { width: min(92%, 720px); }
}

/* Burger breakpoint — nav can no longer fit on 2 rows here. */
@media (max-width: 760px) {
  .v2-nav-burger { display: flex; }       /* show burger */

  /* Hide inline nav by default, render it as a full-width dropdown panel
     when the checkbox is checked. The :checked ~ nav sibling selector
     drives this without any JavaScript. */
  .v2-nav nav {
    display: none;
    order: 99;                            /* push under the header row */
    flex-basis: 100%;
    flex-direction: column;
    gap: .25rem;
    padding: 1rem 0 .5rem;
    border-top: 1px solid var(--v2-line);
    margin-top: .5rem;
  }
  .v2-nav-toggle:checked ~ nav { display: flex; }

  /* Burger → X animation when open */
  .v2-nav-toggle:checked ~ .v2-nav-burger span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .v2-nav-toggle:checked ~ .v2-nav-burger span:nth-child(2) {
    opacity: 0;
  }
  .v2-nav-toggle:checked ~ .v2-nav-burger span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  /* Make tappable nav items inside the dropdown a bit roomier */
  .v2-nav nav a { padding: .5rem 0; font-size: 1.05rem; }
}

@media (max-width: 640px) {
  .v2-pillars, .v2-audience, .v2-cases, .v2-articles { grid-template-columns: 1fr; }
  .v2-hero { padding: 4rem 0 3rem; }
  .v2-section { padding: 4rem 0; }
  .v2-cta-form .grid-2 { grid-template-columns: 1fr; }
  .v2-footer .grid { grid-template-columns: 1fr; }
  .v2-footer .legal { flex-direction: column; gap: 1rem; }

  /* Team mosaic collapses to a single column — lead tile no longer spans. */
  .v2-team-mosaic { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .v2-team-tile--lead { grid-column: span 1; grid-row: span 1; }

  /* Post column: full bleed of the container on mobile. */
  .v2-post-column { width: 100%; }

  /* Signature stacks the portrait above the body on narrow screens. */
  .v2-signature { grid-template-columns: 1fr; text-align: left; gap: 1rem; }
  .v2-signature-portrait { width: 72px; height: 72px; }
}
