/* ============================================================
   Upshift — AI product strategy & evaluation
   Mobile-first. Breakpoints: 640 / 900 / 1180
   ============================================================ */

:root {
  --bg:        #000000;
  --surface:   #0b0b0b;
  --surface-2: #111111;
  --line:      rgba(255, 255, 255, .09);
  --line-2:    rgba(255, 255, 255, .14);
  --ink:       #ffffff;
  --muted:     rgba(255, 255, 255, .62);
  --faint:     rgba(255, 255, 255, .38);

  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-xl: 26px;

  --wrap: 1240px;
  --pad: 20px;

  --font: "Hanken Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

svg { display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; font-weight: 300; letter-spacing: -0.025em; line-height: 1.05; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.defs { position: absolute; width: 0; height: 0; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 300; background: #fff; color: #000; padding: 12px 18px; border-radius: 8px; }

:focus-visible { outline: 1px solid rgba(255,255,255,.7); outline-offset: 3px; border-radius: 6px; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--pad);
}

/* ---------- shared type ---------- */

.display {
  font-size: clamp(2.75rem, 12vw, 4.5rem);
  font-weight: 300;
  letter-spacing: -0.035em;
}
.display--xl { font-size: clamp(2.9rem, 13vw, 5.5rem); }
/* the hero/contact line breaks are tuned for wide screens — let phones rewrap */
.display br { display: none; }
.display--lg { font-size: clamp(1.6rem, 5.6vw, 2.35rem); line-height: 1.25; letter-spacing: -0.02em; }

.sub {
  color: var(--muted);
  font-size: clamp(.95rem, 2.4vw, 1.05rem);
  max-width: 48ch;
  margin-top: 18px;
}
.sub--center { margin-inline: auto; text-align: center; max-width: 40ch; }

.muted { color: var(--muted); }

/* badge pill */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 16px 8px 13px;
  border-radius: 100px;
  background: #171717;
  border: 1px solid var(--line);
  font-size: .82rem;
  color: rgba(255,255,255,.88);
  margin-bottom: 22px;
}
.badge .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 8px 1px rgba(255,255,255,.85);
}
.badge .ring {
  width: 11px; height: 11px; border-radius: 50%;
  border: 1.5px solid #fff;
  position: relative;
}
.badge .ring::after {
  content: ""; position: absolute; inset: 2.5px;
  border-radius: 50%; background: #fff;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: var(--r-sm);
  font-size: .93rem;
  font-weight: 400;
  color: #fff;
  border: 1px solid var(--line-2);
  background: #0d0d0d;
  transition: background .3s, border-color .3s, box-shadow .4s, transform .35s var(--ease);
  white-space: nowrap;
}
.btn--glow {
  box-shadow: 0 0 0 1px rgba(255,255,255,.04), 0 0 22px -6px rgba(255,255,255,.35), inset 0 1px 0 rgba(255,255,255,.09);
}
.btn--glow:hover {
  background: #1a1a1a;
  border-color: rgba(255,255,255,.35);
  box-shadow: 0 0 0 1px rgba(255,255,255,.07), 0 0 34px -6px rgba(255,255,255,.55), inset 0 1px 0 rgba(255,255,255,.14);
  transform: translateY(-1px);
}
.btn--pill { border-radius: 100px; background: #161616; padding: 10px 18px; font-size: .88rem; }
.btn--pill:hover { background: #222; }
.ico-sparkle { width: 15px; height: 15px; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.actions--center { justify-content: center; }

/* ============================================================
   NAV
   ============================================================ */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background .35s, border-color .35s, backdrop-filter .35s;
  border-bottom: 1px solid transparent;
}
.nav.is-stuck {
  background: rgba(0,0,0,.72);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--line);
}

.nav__inner {
  max-width: var(--wrap);
  margin-inline: auto;
  padding: 14px var(--pad);
  display: flex;
  align-items: center;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 1.08rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  margin-right: auto;
}
.brand__mark { width: 19px; height: 19px; color: #fff; flex: none; }
.brand__mark svg { width: 100%; height: 100%; }

.nav__links { display: none; gap: 30px; font-size: .93rem; color: rgba(255,255,255,.8); }
.nav__links a { transition: color .25s; }
.nav__links a:hover { color: #fff; }

.nav__cta { display: none; }

.nav__toggle {
  width: 40px; height: 40px;
  display: grid; place-content: center; gap: 5px;
  background: #131313;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer; padding: 0;
}
.nav__toggle span {
  display: block; width: 16px; height: 1.5px; background: #fff;
  transition: transform .35s var(--ease);
}
.nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(3.25px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.25px) rotate(-45deg); }

.nav__mobile {
  background: rgba(0,0,0,.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 10px var(--pad) 22px;
  display: grid;
  animation: drop .32s var(--ease);
}
.nav__mobile[hidden] { display: none; }
.nav__mobile > a {
  padding: 15px 2px;
  font-size: 1.15rem;
  border-bottom: 1px solid var(--line);
}
.nav__mobile > a:last-child { border-bottom: 0; margin-top: 16px; justify-self: start; }
@keyframes drop { from { opacity: 0; transform: translateY(-10px); } }

/* ============================================================
   SMOKE BACKGROUND
   ============================================================ */

.smoke {
  position: absolute;
  inset: -10% -5%;
  z-index: 0;
  pointer-events: none;
  filter: url(#smoke);
  opacity: .85;
}
/* Ring-shaped gradients, not filled blobs: once the turbulence filter warps
   them the bright band becomes the ridge of a smoke ribbon. */
.wisp {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(closest-side,
    transparent 34%,
    rgba(255,255,255,.30) 46%,
    rgba(255,255,255,.95) 57%,
    rgba(255,255,255,.28) 68%,
    transparent 80%);
  filter: blur(11px);
  will-change: transform;
}
.wisp--a { width: 74%; height: 62%; left: 6%;   top: 14%;  animation: drift1 26s ease-in-out infinite alternate; }
.wisp--b { width: 56%; height: 48%; left: 40%;  top: 40%;  opacity: .8; animation: drift2 32s ease-in-out infinite alternate; }
.wisp--c { width: 46%; height: 36%; left: -6%;  top: 54%;  opacity: .6; animation: drift3 38s ease-in-out infinite alternate; }
.wisp--d { width: 88%; height: 66%; left: 2%;   top: 20%;  animation: drift2 30s ease-in-out infinite alternate; }
.wisp--e { width: 62%; height: 50%; left: 38%;  top: 14%;  opacity: .7; animation: drift1 36s ease-in-out infinite alternate; }

@keyframes drift1 { to { transform: translate3d(6%, -5%, 0) scale(1.12) rotate(7deg); } }
@keyframes drift2 { to { transform: translate3d(-8%, 4%, 0) scale(1.18) rotate(-6deg); } }
@keyframes drift3 { to { transform: translate3d(10%, 6%, 0) scale(1.1) rotate(4deg); } }

/* the small glowing dot the original floats near the top-left */
.orb {
  position: absolute;
  top: 92px; left: 8%;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 18px 4px rgba(255,255,255,.55);
  z-index: 2;
  animation: pulse 4s ease-in-out infinite;
}
.orb--left { top: auto; bottom: 22%; left: 4%; }
@keyframes pulse { 50% { opacity: .45; transform: scale(.85); } }

/* ============================================================
   HERO
   ============================================================ */

.hero {
  position: relative;
  overflow: hidden;
  padding: 120px 0 0;
  isolation: isolate;
}
.hero::after {
  /* vignette so the smoke fades into pure black at the edges */
  content: "";
  position: absolute; inset: 0; z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(46% 34% at 50% 44%, rgba(0,0,0,.72), rgba(0,0,0,.35) 55%, transparent 78%),
    radial-gradient(125% 80% at 50% 45%, transparent 28%, rgba(0,0,0,.5) 70%, #000 100%),
    linear-gradient(180deg, rgba(0,0,0,.8) 0%, transparent 24%, transparent 60%, #000 96%);
}
.hero__inner { position: relative; z-index: 2; text-align: center; padding-bottom: 56px; }
.hero__inner .badge { backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }


/* client ticker — third cell of the hero stat bar. one name at a time, sliding
   up, so it sits in the same optical slot as the numerals beside it. */
/* the ticker is aria-hidden (it repeats), so the names are read here */
.logos__names { position: absolute; left: -9999px; }
.logos__rail {
  --tick: 2.52rem; /* == 2.1rem * 1.2, the numeral line box next to it */
  height: var(--tick);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 18%, #000 82%, transparent);
          mask-image: linear-gradient(180deg, transparent, #000 18%, #000 82%, transparent);
}
.logos__track {
  display: flex;
  flex-direction: column;
  /* holds on each name, then slides — see the keyframe pairs below */
  animation: ticker 15s cubic-bezier(.66, 0, .34, 1) infinite;
}
.logo {
  height: var(--tick);
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}
.logo img {
  height: 22px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  opacity: .55;
}
/* shown only when a logo file is missing — see the fallback in script.js */
.logo__name {
  font-size: clamp(1.2rem, 3.4vw, 1.7rem);
  font-weight: 300;
  letter-spacing: -0.01em;
  color: rgba(255,255,255,.62);
}
/* six dwells, six slides. the 7th item repeats the 1st so 100% == 0%. */
@keyframes ticker {
  0%,     13.0%  { transform: translateY(0); }
  16.7%,  29.7%  { transform: translateY(calc(var(--tick) * -1)); }
  33.3%,  46.3%  { transform: translateY(calc(var(--tick) * -2)); }
  50.0%,  63.0%  { transform: translateY(calc(var(--tick) * -3)); }
  66.7%,  79.7%  { transform: translateY(calc(var(--tick) * -4)); }
  83.3%,  96.3%  { transform: translateY(calc(var(--tick) * -5)); }
  100%           { transform: translateY(calc(var(--tick) * -6)); }
}
/* the global reduced-motion rule snaps animations to their end frame; park the
   ticker on the first name instead of the trailing duplicate */
@media (prefers-reduced-motion: reduce) {
  .logos__track { transform: none !important; }
}

/* ============================================================
   SECTIONS / SPLIT LAYOUT
   ============================================================ */

.section { padding: 76px 0; position: relative; }

.split { display: grid; gap: 40px; align-items: center; }

/* ---------- about ---------- */

.tags { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 28px; }
.tag {
  padding: 9px 15px;
  border-radius: var(--r-sm);
  background: var(--surface-2);
  border: 1px solid var(--line);
  font-size: .84rem;
  color: rgba(255,255,255,.8);
}

.roles { margin-top: 32px; border-top: 1px solid var(--line); }
.role {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  font-size: .93rem;
  color: var(--muted);
}
.role span:first-child { color: #fff; }
.role span:nth-child(3) { grid-column: 2; grid-row: 1; text-align: right; }

/* recent works */

/* ---------- services cards ---------- */

.cards { display: grid; gap: 16px; margin-top: 56px; }
.card {
  background: linear-gradient(180deg, #101010, #0a0a0a);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 24px;
  transition: border-color .35s, transform .45s var(--ease);
}
.card:hover { border-color: var(--line-2); transform: translateY(-3px); }
.card h3 {
  display: flex; align-items: center; gap: 12px;
  font-size: clamp(1.15rem, 3.6vw, 1.4rem);
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.card__i { width: 21px; height: 21px; color: rgba(255,255,255,.85); flex: none; }
.card__i svg { width: 100%; height: 100%; }
.card p { margin-top: 18px; color: var(--muted); font-size: .9rem; }

@keyframes marquee { to { transform: translateX(-50%); } }

/* capability pill marquees */
.pill-rows { margin-top: 56px; display: grid; gap: 14px; }
.pill-row {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.pill-row__track { display: flex; gap: 12px; width: max-content; animation: marquee 42s linear infinite; }
.pill-row--rev .pill-row__track { animation-direction: reverse; animation-duration: 50s; }
.pill {
  padding: 11px 18px;
  border-radius: 100px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  font-size: .86rem;
  color: rgba(255,255,255,.72);
  white-space: nowrap;
}

/* ---------- reviews rail ---------- */

.rail {
  margin-top: 48px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 6px;
}
.rail::-webkit-scrollbar { display: none; }
.rail__track {
  display: flex;
  gap: 16px;
  width: max-content;
  padding-inline: var(--pad);
}
.review {
  margin: 0;
  scroll-snap-align: center;
  width: min(86vw, 380px);
  background: linear-gradient(180deg, #101010, #090909);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.review figcaption { display: flex; align-items: center; gap: 13px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.review figcaption strong { display: block; font-size: 1.25rem; font-weight: 300; letter-spacing: -0.02em; }
.review figcaption em { font-style: normal; font-size: .82rem; color: var(--faint); }
/* icon tile on a principle card — deliberately not a round headshot */
.mark {
  width: 36px; height: 36px; border-radius: 10px; flex: none;
  border: 1px solid var(--line-2);
  background: linear-gradient(150deg, rgba(255,255,255,.22), rgba(255,255,255,.04) 60%, transparent);
}
.mark--2 { background: linear-gradient(30deg, rgba(255,255,255,.22), rgba(255,255,255,.04) 60%, transparent); }
.mark--3 { background: linear-gradient(210deg, rgba(255,255,255,.22), rgba(255,255,255,.04) 60%, transparent); }
.mark--4 { background: linear-gradient(330deg, rgba(255,255,255,.22), rgba(255,255,255,.04) 60%, transparent); }
.review blockquote { margin: 0; color: var(--muted); font-size: .93rem; flex: 1; }

/* stats bar */
.stats {
  margin-top: 48px;
  background: linear-gradient(180deg, #101010, #0a0a0a);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  display: grid;
  gap: 1px;
  overflow: hidden;
}
.stat { text-align: center; padding: 28px 20px; position: relative; }
.stat + .stat::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: var(--line);
}
.stat strong { display: block; font-size: clamp(2rem, 7vw, 2.5rem); font-weight: 300; letter-spacing: -0.03em; }
.stat > span { color: var(--muted); font-size: .9rem; }

/* hero variant — always 3 across, no card chrome, so it stays above the fold */
.stats--hero {
  margin: 38px auto 0;
  max-width: 860px;
  background: none;
  border: 0;
  border-radius: 0;
  /* the ticker cell needs more room than a numeral — names are long */
  grid-template-columns: 1fr 1fr;
  gap: 0;
}
.stats--hero .stat { padding: 0 14px; }
.stats--hero .stat + .stat::before {
  top: 4px; bottom: 4px; left: 0; right: auto;
  width: 1px; height: auto;
}
/* line box pinned so the ticker rail beside it lands on the same baseline */
.stats--hero .stat strong { font-size: clamp(1.5rem, 5vw, 2.1rem); line-height: 1.2; }
/* direct child only — the ticker's own text must not pick up caption sizing */
.stats--hero .stat > span { font-size: .78rem; line-height: 1.35; display: block; }

/* the ticker takes the numeral's optical slot in its cell */
.stat--ticker { overflow: hidden; }
.stat--ticker > span { margin-top: 4px; }
/* below the breakpoint it spans the full row, so the divider becomes a top rule */
.stats--hero .stat--ticker { grid-column: 1 / -1; margin-top: 20px; padding: 18px 0 0; }
.stats--hero .stat--ticker::before {
  top: 0; bottom: auto; left: 14px; right: 14px;
  width: auto; height: 1px;
}

/* word-led variant — no oversized numerals */
.stats--text .stat { padding: 30px 26px; }
.stats--text .stat strong { font-size: clamp(1.35rem, 4.5vw, 1.6rem); margin-bottom: 8px; }
.stats--text .stat > span { display: block; max-width: 34ch; margin-inline: auto; }

/* ============================================================
   QUALIFIER — runs before the Cal popup
   ============================================================ */

.qual[hidden] { display: none; }
.qual {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: var(--pad);
}
.qual__scrim {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.qual__panel {
  position: relative;
  width: 100%;
  max-width: 560px;
  max-height: calc(100svh - 2 * var(--pad));
  overflow-y: auto;
  padding: 34px 28px 28px;
  border-radius: var(--r-lg);
  border: 1px solid var(--line-2);
  background: linear-gradient(180deg, #121212, #0a0a0a);
  box-shadow: 0 30px 80px -20px rgba(0,0,0,.9);
  animation: qual-in .32s var(--ease);
}
@keyframes qual-in { from { opacity: 0; transform: translateY(12px) scale(.99); } }

.qual__x {
  position: absolute; top: 14px; right: 14px;
  width: 34px; height: 34px;
  display: grid; place-content: center;
  background: none; border: 0; cursor: pointer;
  color: var(--faint); font-size: 1.5rem; line-height: 1;
  border-radius: 8px;
  transition: color .25s, background .25s;
}
.qual__x:hover { color: #fff; background: #1c1c1c; }

.qual__eyebrow {
  font-size: .75rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--faint);
}
.qual__title { font-size: clamp(1.5rem, 5vw, 1.9rem); margin-top: 8px; }

.qual__set { border: 0; padding: 0; margin: 26px 0 0; }
.qual__set legend { font-size: .92rem; color: var(--muted); padding: 0; margin-bottom: 12px; }
.qual__set legend i { font-style: normal; color: var(--faint); }

.qual__opts { display: flex; flex-wrap: wrap; gap: 8px; }
.qual__opt {
  padding: 9px 15px;
  border-radius: 100px;
  border: 1px solid var(--line);
  background: #131313;
  color: rgba(255,255,255,.82);
  font: inherit;
  font-size: .88rem;
  cursor: pointer;
  transition: background .22s, border-color .22s, color .22s;
}
.qual__opt:hover { border-color: var(--line-2); background: #1a1a1a; }
.qual__opt[aria-pressed="true"] {
  background: #fff;
  border-color: #fff;
  color: #000;
}

.qual__view[hidden] { display: none; }
.qual__body { color: var(--muted); font-size: .95rem; margin-top: 16px; }
.qual__back {
  background: none; border: 0; padding: 0;
  color: var(--faint); font: inherit; font-size: .88rem; cursor: pointer;
  text-decoration: underline; text-underline-offset: 3px;
  transition: color .25s;
}
.qual__back:hover { color: #fff; }

.qual__foot { margin-top: 30px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.qual__go[disabled] { opacity: .4; cursor: not-allowed; box-shadow: none; }
.qual__go[disabled]:hover { background: #0d0d0d; border-color: var(--line-2); transform: none; }
.qual__note { font-size: .82rem; color: var(--faint); }
.qual__note[hidden] { display: none; }

/* lead offering cards + capability group heading */
.cards__head {
  margin-top: 54px;
  font-size: .75rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 18px;
}
.cards--three { grid-template-columns: 1fr; }
.card--lead { border-color: var(--line-2); background: linear-gradient(180deg, #131313, #0b0b0b); }
.card__kicker {
  font-size: .72rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--faint); margin-bottom: 10px;
}
.card--lead h3 { border-bottom: 0; padding-bottom: 0; }
.card__lede { color: rgba(255,255,255,.9); font-size: 1rem; margin: 6px 0 16px; }
.card__list { margin-top: 16px; display: grid; gap: 8px; }
.card__list li {
  position: relative; padding-left: 18px;
  color: var(--muted); font-size: .88rem;
}
.card__list li::before {
  content: ""; position: absolute; left: 0; top: .55em;
  width: 5px; height: 5px; border-radius: 50%; background: var(--line-2);
}

/* ============================================================
   LEGAL PAGES (privacy, terms)
   ============================================================ */

.legal { padding-top: 120px; }
.legal__inner { max-width: 760px; padding-bottom: 80px; }
.legal__back { margin-bottom: 28px; font-size: .9rem; }
.legal__back a { color: var(--faint); transition: color .25s; }
.legal__back a:hover { color: #fff; }
.legal__meta { margin-top: 14px; color: var(--faint); font-size: .85rem; }
.legal__lede { margin-top: 28px; color: var(--muted); font-size: 1.02rem; }

.legal h2 {
  margin-top: 46px;
  font-size: clamp(1.15rem, 3.6vw, 1.4rem);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.legal h3 { margin-top: 28px; font-size: 1.02rem; color: rgba(255,255,255,.9); }
.legal p, .legal li { color: var(--muted); font-size: .95rem; }
.legal p { margin-top: 16px; }
.legal ul { margin-top: 16px; display: grid; gap: 10px; }
.legal li { position: relative; padding-left: 20px; }
.legal li::before {
  content: ""; position: absolute; left: 0; top: .6em;
  width: 5px; height: 5px; border-radius: 50%; background: var(--line-2);
}
.legal strong { color: rgba(255,255,255,.9); font-weight: 400; }
.legal a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

.legal__table { margin-top: 20px; overflow-x: auto; }
.legal__table table { border-collapse: collapse; width: 100%; min-width: 520px; }
.legal__table th, .legal__table td {
  text-align: left; padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  font-size: .88rem; color: var(--muted);
}
.legal__table th { color: rgba(255,255,255,.9); font-weight: 400; }
.legal .footer a { text-decoration: none; }

/* sections that lost their image column read better as a single measure */
.split--solo { display: block; }
.split--solo .split__text { max-width: 72ch; margin-inline: auto; }
/* the roles table wants the wider measure the prose does not */
.split--solo .roles { max-width: none; }

/* inline answer to the question every buyer asks */
.note {
  margin-top: 28px;
  padding: 28px 30px;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  border-left: 2px solid rgba(255,255,255,.5);
  background: linear-gradient(180deg, #101010, #0a0a0a);
}
.note__q { font-size: 1.05rem; color: #fff; margin-bottom: 12px; }
.note p { color: var(--muted); font-size: .95rem; max-width: 70ch; }

/* ---------- faq ---------- */

.faq { display: grid; gap: 10px; }
.faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  transition: border-color .3s, background .3s;
}
.faq details[open] { background: var(--surface-2); border-color: var(--line-2); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 17px 20px;
  cursor: pointer;
  font-size: .95rem;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq p { padding: 0 20px 20px; color: var(--muted); font-size: .88rem; max-width: 60ch; }

.plus { position: relative; width: 13px; height: 13px; flex: none; }
.plus::before, .plus::after {
  content: "";
  position: absolute; left: 50%; top: 50%;
  background: rgba(255,255,255,.75);
  transform: translate(-50%, -50%);
  transition: transform .35s var(--ease);
}
.plus::before { width: 13px; height: 1.4px; }
.plus::after  { width: 1.4px; height: 13px; }
details[open] .plus::before { transform: translate(-50%, -50%) rotate(45deg); }
details[open] .plus::after  { transform: translate(-50%, -50%) rotate(45deg); }

/* ============================================================
   CONTACT / FOOTER
   ============================================================ */

.contact {
  position: relative;
  overflow: hidden;
  padding: 110px 0 0;
  isolation: isolate;
  border-top: 1px solid var(--line);
  border-radius: var(--r-xl) var(--r-xl) 0 0;
}
.contact::after {
  content: "";
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(110% 70% at 50% 40%, transparent 25%, rgba(0,0,0,.5) 68%, #000 100%),
    linear-gradient(180deg, #000 0%, transparent 26%);
}
.smoke--contact { opacity: .8; }
.contact__inner { position: relative; z-index: 2; text-align: center; }
.contact__inner .display { margin-bottom: 30px; }
.contact__inner .badge { backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.contact__alt { margin-top: 18px; font-size: 14px; color: var(--faint); }
.contact__alt a { color: var(--muted); border-bottom: 1px solid var(--line-2); padding-bottom: 1px; transition: color .25s var(--ease); }
.contact__alt a:hover { color: var(--ink); }

.socials { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 34px; }
.socials a { color: rgba(255,255,255,.85); transition: color .25s, transform .35s var(--ease); }
.socials a:hover { color: #fff; transform: translateY(-2px); }
.socials svg { width: 19px; height: 19px; }
.sep { width: 1px; height: 15px; background: var(--line-2); }

.footer {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 10px;
  justify-items: center;
  text-align: center;
  padding-top: 90px;
  padding-bottom: 34px;
  font-size: .85rem;
  color: var(--muted);
}
.footer a:hover { color: #fff; }

/* ============================================================
   REVEAL
   ============================================================ */

.fade { opacity: 0; transform: translateY(16px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.fade.is-in { opacity: 1; transform: none; }

/* ============================================================
   ≥ 640px — large phone / small tablet
   ============================================================ */

@media (min-width: 640px) {
  :root { --pad: 32px; }

  .hero { padding-top: 150px; }
  .section { padding: 100px 0; }
  .display br { display: inline; }
  .actions .btn { min-width: 168px; }

  .cards { grid-template-columns: repeat(2, 1fr); }
  .cards--three { grid-template-columns: repeat(2, 1fr); }

  .role { grid-template-columns: 1fr 1fr auto; }
  .role span:nth-child(3) { grid-column: 3; }

  .stats { grid-template-columns: repeat(3, 1fr); }
  .stat + .stat::before { top: 20%; bottom: 20%; left: 0; right: auto; width: 1px; height: auto; }

  .footer {
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    text-align: left;
  }
  .footer span:last-child { text-align: right; }
}

/* ============================================================
   ≥ 900px — tablet landscape / laptop
   ============================================================ */

@media (min-width: 900px) {
  .nav__toggle { display: none; }
  .nav__mobile { display: none !important; }
  .nav__links { display: flex; }
  .nav__cta { display: inline-flex; }

  .hero { padding-top: 0; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; }
  .hero__inner { padding-top: 120px; padding-bottom: 40px; }
  /* one name at a time fits a normal column, so all three are equal */
  .stats--hero { grid-template-columns: repeat(3, 1fr); }
  .stats--hero .stat--ticker { grid-column: auto; margin-top: 0; padding: 0; }
  /* back to the vertical divider the other cells use */
  .stats--hero .stat--ticker::before {
    top: 4px; bottom: 4px; left: 0; right: auto;
    width: 1px; height: auto;
  }

  .section { padding: 130px 0; }

  .split { grid-template-columns: 1fr 1fr; gap: 64px; }
  .split--faq { grid-template-columns: 1fr 1.15fr; align-items: start; }


  .cards { gap: 20px; }

  .rail__track { padding-inline: max(var(--pad), calc((100vw - var(--wrap)) / 2 + var(--pad))); }
  .review { width: 380px; }

  .contact { padding-top: 150px; min-height: 92svh; display: flex; flex-direction: column; justify-content: center; }
  .contact__inner { padding-top: 60px; }
  .footer { padding-top: 130px; }
}

/* ============================================================
   ≥ 1180px — desktop
   ============================================================ */

@media (min-width: 1180px) {
  :root { --pad: 40px; }

  .display { font-size: 5rem; }
  .display--xl { font-size: 6.4rem; }
  .display--lg { font-size: 2.6rem; }

  .hero__inner .sub { max-width: 46ch; font-size: 1.06rem; }
  .split { gap: 80px; }
  /* three engagements side by side once there is room for them */
  .cards--three { grid-template-columns: repeat(3, 1fr); }
}

/* ============================================================
   Motion / fallbacks
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .fade { opacity: 1; transform: none; }
}

/* the displacement filter is expensive on phones — plain blur reads fine */
@media (max-width: 640px), (prefers-reduced-motion: reduce) {
  .smoke { filter: blur(14px); opacity: .7; }
}
