/* ERD website concept, 2 Nov 2026. Everything visual that is not already in
   erd.css (the design pack) lives here: layout, the circuit rail, the hero
   stage, the arcs, the process line, the sectors slider, the portal devices,
   the partners, the footer. Colours stay on the pack's tokens, with the green
   deepened to the one John asked for on 2 Nov (no mint). */

:root {
  --green-bright: #1a9a55;       /* John, 2 Nov: the darker green, not the mint one */
  --green-text: #2fae66;         /* small text on black where #1a9a55 falls under 4.5:1 */
  --panel-2: #171717;
  --nav-h: 76px;
  --rail-w: 72px;
}
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--black); color: var(--text); font-family: var(--font-body); overflow-x: hidden; }
.wrap { width: min(1180px, 100% - 48px); margin: 0 auto; }
section { position: relative; }
img, video { max-width: 100%; display: block; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- type ---------- */
.eyebrow { font-family: var(--font-display); font-weight: 500; font-size: 12px; letter-spacing: 2.4px; text-transform: uppercase; color: var(--muted); margin: 0 0 14px; }
.eyebrow.center, .center { text-align: center; }
.h2 { font-family: var(--font-display); font-weight: 700; font-size: clamp(30px, 4.2vw, 50px); line-height: 1.08; letter-spacing: -0.5px; margin: 0 0 18px; max-width: 18ch; }
.h2.center { margin-left: auto; margin-right: auto; }
.h2 em, .hero-h em { font-style: normal; color: var(--red); }
.hero-h em { display: block; }
.mt { margin-top: 72px; }
.h3 { font-family: var(--font-display); font-weight: 700; font-size: clamp(24px, 3vw, 34px); line-height: 1.12; margin: 0 0 14px; }
.lead { font-family: var(--font-display); font-weight: 600; font-size: 19px; line-height: 1.45; margin: 0 0 14px; }
.lead-muted { color: var(--muted); font-size: 17px; line-height: 1.65; max-width: 62ch; margin: 0 0 28px; }
.lead-muted.center { margin-left: auto; margin-right: auto; }
p { line-height: 1.65; }
.guess { color: var(--red); }
.link-arrow { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-family: var(--font-display); font-weight: 600; border-bottom: 1px solid var(--line-strong); padding-bottom: 4px; }
.link-arrow i { width: 18px; height: 1px; background: var(--red); position: relative; transition: width 0.25s var(--ease); }
.link-arrow i::after { content: ""; position: absolute; right: -1px; top: -3px; width: 6px; height: 6px; border-top: 1px solid var(--red); border-right: 1px solid var(--red); transform: rotate(45deg); }
.link-arrow:hover i { width: 30px; }

/* word-by-word headline reveal (site.js wraps each word in a span) */
[data-words] .w { display: inline-block; opacity: 0; transform: translateY(0.55em) rotate(1.5deg); filter: blur(4px); transition: opacity 0.55s var(--ease), transform 0.7s var(--ease), filter 0.6s ease; transition-delay: calc(var(--i) * 55ms); }
[data-words].in .w { opacity: 1; transform: none; filter: none; }
html:not(.js) [data-words] .w { opacity: 1; transform: none; filter: none; }

/* ---------- loader ---------- */
.loader { position: fixed; inset: 0; z-index: 100; background: #000; display: grid; place-items: center; transition: opacity 0.6s ease, visibility 0.6s; }
.loader.off { opacity: 0; visibility: hidden; }
.loader-video { width: min(60vw, 520px); height: auto; }

/* ---------- circuit rail ---------- */
.rail { position: fixed; left: 0; top: 0; bottom: 0; width: var(--rail-w); z-index: 5; pointer-events: none; }
.rail-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.rail-track { stroke: rgba(255, 0, 0, 0.14); stroke-width: 2; vector-effect: non-scaling-stroke; }
.rail-draw { stroke: var(--red); stroke-width: 2; vector-effect: non-scaling-stroke; stroke-dasharray: 100; stroke-dashoffset: calc(100 - var(--p, 0)); filter: drop-shadow(0 0 6px rgba(255, 0, 0, 0.7)); transition: stroke-dashoffset 0.12s linear; }
.rail-pads i { position: absolute; left: 50%; top: var(--at); width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; border: 2px solid rgba(255, 0, 0, 0.35); background: #050505; transition: background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease; }
.rail-pads i.lit { background: var(--red); border-color: var(--red); box-shadow: 0 0 14px rgba(255, 0, 0, 0.9); }

/* ---------- nav ---------- */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 50; height: var(--nav-h); transition: background 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease; border-bottom: 1px solid transparent; }
.nav.scrolled { background: rgba(5, 5, 5, 0.72); -webkit-backdrop-filter: blur(16px) saturate(1.3); backdrop-filter: blur(16px) saturate(1.3); border-color: var(--line); }
.nav-in { width: min(1180px, 100% - 48px); margin: 0 auto; height: 100%; display: flex; align-items: center; gap: 32px; }
.nav-brand img { width: 74px; height: auto; }
.nav-links { display: flex; gap: 28px; margin-left: auto; }
.nav-links a { color: var(--text); text-decoration: none; font-family: var(--font-display); font-weight: 500; font-size: 14px; letter-spacing: 0.3px; position: relative; padding: 6px 0; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px; background: var(--red); transition: right 0.3s var(--ease); }
.nav-links a:hover::after, .nav-links a.active::after { right: 0; }
.nav-links a.active { color: #fff; }
.nav-burger { display: none; margin-left: auto; width: 42px; height: 42px; background: transparent; border: 1px solid var(--line-strong); border-radius: 8px; cursor: pointer; position: relative; }
.nav-burger span { position: absolute; left: 11px; right: 11px; height: 2px; background: #fff; top: 15px; transition: transform 0.25s ease, top 0.25s ease; }
.nav-burger span + span { top: 25px; }
.nav-burger[aria-expanded="true"] span { top: 20px; transform: rotate(45deg); }
.nav-burger[aria-expanded="true"] span + span { transform: rotate(-45deg); }
.mnav { display: none; }
.nav.open .mnav { display: grid; position: absolute; top: var(--nav-h); left: 0; right: 0; background: rgba(5, 5, 5, 0.96); border-bottom: 1px solid var(--line); padding: 10px 24px 20px; }
.mnav a { color: var(--text); text-decoration: none; padding: 14px 0; border-bottom: 1px solid var(--line); font-family: var(--font-display); font-weight: 600; }

/* ---------- hero ---------- */
/* The hero is one pinned experience: at rest the loop plays and a head torch follows the
   cursor; scrolling the 300vh track scrubs the meter-to-screen film on a canvas while the
   copy gives way to the three beats. Sticky needs the track free of overflow clipping. */
.hero { position: relative; height: 400vh; isolation: isolate; --tx: 62%; --ty: 44%; --hf: 1; }
.hero-pin { position: sticky; top: 0; height: 100svh; max-height: 1000px; display: grid; align-items: center; padding: calc(var(--nav-h) + 40px) 0 80px; overflow: hidden; }
.hero-rest { opacity: var(--hf); transform: translateY(calc((1 - var(--hf)) * -70px)); will-change: opacity, transform; }
.hero-rest.off { pointer-events: none; }
.hero-torch { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.5); opacity: var(--hf);
  -webkit-mask-image: radial-gradient(circle at var(--tx) var(--ty), transparent 0, transparent 110px, rgba(0, 0, 0, 0.75) 300px, #000 520px);
  mask-image: radial-gradient(circle at var(--tx) var(--ty), transparent 0, transparent 110px, rgba(0, 0, 0, 0.75) 300px, #000 520px); }
.hero-halo { position: absolute; inset: 0; opacity: var(--hf); mix-blend-mode: screen; background: radial-gradient(circle at var(--tx) var(--ty), rgba(255, 196, 120, 0.30) 0, rgba(255, 150, 80, 0.10) 160px, transparent 360px); }
.hero-media canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; opacity: 0; transition: opacity 0.35s ease; }
.hero-media canvas.is-on { opacity: 1; }
.hero-beats { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%); width: min(1180px, 100% - 48px); margin: 0 auto; opacity: calc(1 - var(--hf)); pointer-events: none; }
.hero-beats .eyebrow { margin-bottom: 20px; }
.hero-beats .beat { position: absolute; left: 0; top: 40px; max-width: 560px; opacity: 0; transform: translateY(26px); transition: opacity 0.55s ease, transform 0.55s ease; }
.hero-beats .beat.is-on { opacity: 1; transform: none; }
.hero-beats .beat .h2 { margin-bottom: 14px; }
.hero-beats .beat p { color: #d6d6d6; font-size: 18px; line-height: 1.6; }
.hero-media { position: absolute; inset: 0; z-index: -1; background: #000; }
.hero-img { width: 100%; height: 100%; object-fit: cover; transform-origin: 60% 50%; animation: kenburns 28s ease-in-out infinite alternate; }
@keyframes kenburns { from { transform: scale(1.04) translate3d(0, 0, 0); } to { transform: scale(1.14) translate3d(-2%, -1.5%, 0); } }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; opacity: 0; transition: opacity 1.2s ease; }
.hero-video.on { opacity: 1; }
.hero-atmos { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; mix-blend-mode: screen; opacity: 0.42; }
.hero-haze { position: absolute; width: 60vw; height: 60vw; border-radius: 50%; filter: blur(80px); opacity: 0.55; mix-blend-mode: screen; animation: haze 18s ease-in-out infinite alternate; }
.hz-red { background: radial-gradient(circle, rgba(255, 0, 0, 0.55), transparent 62%); left: -14vw; top: 10vh; }
.hz-green { background: radial-gradient(circle, rgba(0, 102, 51, 0.6), transparent 62%); right: -18vw; bottom: -10vh; animation-delay: -9s; }
@keyframes haze { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(6vw, -4vh, 0) scale(1.15); } }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5, 5, 5, 0.86) 0%, rgba(5, 5, 5, 0.55) 45%, rgba(5, 5, 5, 0.25) 100%), linear-gradient(0deg, var(--black) 0%, transparent 28%, transparent 85%, rgba(5, 5, 5, 0.6) 100%); }
.hero-grid { display: grid; grid-template-columns: 1.3fr 0.9fr; gap: 48px; align-items: end; }
.hero-mark { margin-bottom: 26px; }
.hero-h { font-family: var(--font-display); font-weight: 700; font-size: clamp(38px, 6vw, 76px); line-height: 1.02; letter-spacing: -1px; margin: 0 0 22px; max-width: 12ch; }
.hero-sub { color: #d6d6d6; font-size: 18px; line-height: 1.6; max-width: 52ch; margin: 0 0 30px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-live { max-width: 400px; padding: 26px 28px; text-align: left; justify-self: end; }
.live-head { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 500; font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green-bright); box-shadow: 0 0 0 0 rgba(26, 154, 85, 0.6); animation: pulse 2s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(26, 154, 85, 0.7); } 100% { box-shadow: 0 0 0 12px rgba(26, 154, 85, 0); } }
.odo { font-family: var(--font-display); font-weight: 300; font-variant-numeric: tabular-nums; font-size: clamp(34px, 3.6vw, 46px); letter-spacing: 1px; margin: 14px 0 4px; color: #fff; }
.live-label { color: var(--muted); font-size: 13px; }
.live-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.live-row b { display: block; font-family: var(--font-display); font-weight: 700; font-size: 22px; color: #fff; }
.live-row b.guess { color: var(--red); }
.live-row small { color: var(--muted); font-size: 12px; }
.hero-scroll { opacity: var(--hf); position: absolute; left: 50%; bottom: 26px; width: 26px; height: 42px; margin-left: -13px; border: 1px solid var(--line-strong); border-radius: 13px; }
.hero-scroll span { position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 2px; background: var(--red); animation: wheel 1.8s ease-in-out infinite; }
@keyframes wheel { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }

/* ---------- tagline ticker ---------- */
.tagband { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #070707; overflow: hidden; }
.ticker { overflow: hidden; -webkit-mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.ticker-track { display: flex; gap: 64px; width: max-content; padding: 20px 0; animation: ticker 42s linear infinite; }
.tk { font-family: var(--font-display); font-weight: 700; font-style: italic; letter-spacing: 3px; text-transform: uppercase; font-size: 15px; white-space: nowrap; }
.tk.r { color: var(--red); } .tk.g { color: var(--green-bright); } .tk.w { color: var(--muted); }
@keyframes ticker { to { transform: translateX(-33.333%); } }

/* ---------- intro ---------- */
.intro { padding: 120px 0 90px; }
.intro-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: center; }
.intro-fig { margin: 0; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); box-shadow: 0 40px 90px rgba(0, 0, 0, 0.6); position: relative; }
.intro-fig img { width: 100%; height: auto; }
.fig-tag { position: absolute; left: 18px; bottom: 16px; display: flex; align-items: center; gap: 8px; font-size: 12px; color: #ddd; background: rgba(5, 5, 5, 0.6); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line); }
.fig-tag .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--red); box-shadow: 0 0 8px var(--red); }

/* ---------- what we do ---------- */
.what { padding: 70px 0 100px; }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 46px; }
.tile-x { background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015)); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px 28px 32px; min-height: 230px; display: flex; flex-direction: column; gap: 12px; transform-style: preserve-3d; }
.tile-ico { width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; background: var(--red-soft); border: 1px solid rgba(255, 0, 0, 0.35); margin-bottom: 6px; }
.tile-ico svg { width: 30px; height: 30px; stroke: var(--red); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tile-x h3 { font-family: var(--font-display); font-weight: 700; font-size: 20px; color: var(--red); margin: 0; }
.tile-x p { color: #e8e8e8; font-size: 15px; margin: 0; }
.tile-cta { justify-content: center; background: linear-gradient(160deg, rgba(255, 0, 0, 0.16), rgba(0, 102, 51, 0.14)); border-color: rgba(255, 0, 0, 0.3); }
.tile-cta h3 { color: #fff; font-size: 26px; }
.tile-cta .btn { align-self: flex-start; margin-top: 8px; }

/* ---------- the ERD way ---------- */
.way { padding: 60px 0 110px; }
.way-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 40px; }
.way-col { position: relative; padding: 44px 36px 36px; border-radius: var(--radius-lg); border: 1px solid var(--line); background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01)); overflow: hidden; }
.way-erd { border-color: rgba(26, 154, 85, 0.35); }
.way-conv { border-color: rgba(255, 0, 0, 0.3); }
.arc { position: absolute; right: -70px; top: -70px; width: 260px; height: 260px; opacity: 0.9; }
.arc-track { fill: none; stroke: rgba(255, 255, 255, 0.07); stroke-width: 1.5; }
.arc-draw { fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; transform: rotate(-90deg); transform-origin: 50% 50%; transition: stroke-dashoffset 1.6s var(--ease); }
.arc-draw.g { stroke: var(--green-bright); filter: drop-shadow(0 0 6px rgba(26, 154, 85, 0.6)); }
.arc-draw.r { stroke: var(--red); filter: drop-shadow(0 0 6px rgba(255, 0, 0, 0.6)); }
.way-col.fade-up .arc-draw { stroke-dashoffset: 0; }
.way-title { font-family: var(--font-display); font-weight: 700; font-size: 26px; margin-bottom: 26px; }
.way-erd .way-title { color: var(--green-bright); }
.way-conv .way-title { color: var(--red); }
.way-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.way-steps li { display: grid; grid-template-columns: 54px 1fr; gap: 14px; align-items: start; }
.way-steps b { font-family: var(--font-display); font-weight: 300; font-size: 38px; line-height: 1; letter-spacing: -1px; }
.way-erd .way-steps b { color: var(--green-bright); }
.way-conv .way-steps b { color: var(--red); }
.way-steps h4 { font-family: var(--font-display); font-weight: 700; font-size: 16px; margin: 4px 0 6px; }
.way-steps p { color: var(--muted); font-size: 14px; margin: 0; line-height: 1.6; }

/* ---------- process ---------- */
.process { padding: 60px 0 100px; }
.proc-line { position: relative; height: 3px; background: var(--line); border-radius: 2px; margin: 48px 0 32px; overflow: hidden; }
.proc-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: linear-gradient(90deg, var(--red), #ff5a5a); border-radius: 2px; box-shadow: 0 0 12px rgba(255, 0, 0, 0.6); transition: width 1.4s var(--ease); }
.proc-line.fade-up .proc-fill, .proc-line.in .proc-fill { width: 100%; }
.proc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.proc-ico { width: 66px; height: 66px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.08), transparent 60%); margin-bottom: 18px; }
.proc-ico svg { width: 30px; height: 30px; stroke: #fff; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.proc h3 { font-family: var(--font-display); font-weight: 700; font-size: 20px; margin: 0 0 8px; color: var(--red); }
.proc p { color: var(--muted); font-size: 15px; margin: 0; max-width: 34ch; }

/* ---------- field strip ---------- */
.field { padding: 20px 0 60px; overflow: hidden; }
.field-track { display: flex; gap: 22px; padding: 0 24px; align-items: flex-start; }
.field-shot { margin: 0; flex: 1; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); background: #000; will-change: transform; }
.field-shot:nth-child(2) { margin-top: 70px; }
.field-shot img { width: 100%; height: auto; transform: scale(1.03); transition: transform 1.2s var(--ease); }
.field-shot:hover img { transform: scale(1.08); }
.field-shot figcaption { padding: 12px 16px; font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); }

/* ---------- sectors ---------- */
.sectors { padding: 60px 0 100px; }
.strips { display: flex; gap: 10px; height: 480px; margin-top: 40px; }
.strip { position: relative; flex: 1; overflow: hidden; border-radius: var(--radius); border: 1px solid var(--line); cursor: pointer; transition: flex 0.7s var(--ease); text-decoration: none; color: inherit; }
.strip img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 1s var(--ease); }
.strip::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(5, 5, 5, 0.94) 0%, rgba(5, 5, 5, 0.3) 48%, rgba(5, 5, 5, 0.1)); }
.strip .label { position: absolute; left: 22px; right: 22px; bottom: 22px; z-index: 1; }
.strip h3 { font-family: var(--font-display); font-size: 22px; font-weight: 700; margin: 0 0 6px; }
.strip p { color: #d8d8d8; font-size: 14px; line-height: 1.5; margin: 0; max-width: 36ch; opacity: 0; transform: translateY(8px); transition: opacity 0.4s ease 0.15s, transform 0.5s var(--ease) 0.15s; }
.strip .accent-bar { margin-bottom: 12px; }
.strips:hover .strip, .strips:focus-within .strip { flex: 0.7; }
.strip:hover, .strip:focus-within, .strips:not(:hover):not(:focus-within) .strip.is-open { flex: 2.6; }
.strip:hover img, .strip:focus-within img, .strips:not(:hover):not(:focus-within) .strip.is-open img { transform: scale(1); }
.strip:hover p, .strip:focus-within p, .strips:not(:hover):not(:focus-within) .strip.is-open p { opacity: 1; transform: none; }
.strip:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* ---------- portal ---------- */
.portal-show { padding: 60px 0 120px; overflow: hidden; }
.portal-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: center; }
.ticks { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 10px; }
.ticks li { padding-left: 28px; position: relative; color: #e4e4e4; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 7px; width: 14px; height: 8px; border-left: 2px solid var(--green-bright); border-bottom: 2px solid var(--green-bright); transform: rotate(-45deg); }
.devices { position: relative; transform-style: preserve-3d; }
.dev-desk { width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--line-strong); box-shadow: 0 50px 100px rgba(0, 0, 0, 0.7), 0 0 60px rgba(255, 0, 0, 0.08); }
.dev-phone { position: absolute; right: -6%; bottom: -12%; width: 26%; height: auto; border-radius: 22px; border: 1px solid var(--line-strong); box-shadow: 0 40px 80px rgba(0, 0, 0, 0.7); animation: floaty 7s ease-in-out infinite; }
@keyframes floaty { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-12px) rotate(-1deg); } }

/* ---------- about ---------- */
.about { padding: 100px 0; overflow: hidden; }
.about-media { position: absolute; inset: 0; z-index: -1; opacity: 0.22; }
.about-media img { width: 100%; height: 120%; object-fit: cover; }
.about::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, var(--black), rgba(5, 5, 5, 0.6) 30%, rgba(5, 5, 5, 0.75) 70%, var(--black)); }
.stats { max-width: none; display: grid; grid-template-columns: repeat(3, 1fr); padding: 34px 20px; margin: 36px 0 80px; }
.stat-x { text-align: center; border-left: 1px solid var(--line); }
.stat-x:first-child { border-left: 0; }
.stat-x b { display: block; font-family: var(--font-display); font-weight: 700; font-size: clamp(34px, 4.5vw, 54px); line-height: 1; }
.stat-x b.guess { color: var(--red); }
.stat-x span { display: block; margin-top: 10px; font-family: var(--font-display); font-weight: 500; font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); }
.partners { display: grid; grid-template-columns: 240px 240px 1fr; gap: 22px; margin-top: 30px; align-items: start; }
.partner { max-width: none; padding: 30px 22px; }
.partner-mono { width: 84px; height: 84px; margin: 0 auto 16px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: 26px; color: #fff; background: radial-gradient(circle at 30% 30%, rgba(255, 0, 0, 0.5), rgba(0, 102, 51, 0.35)); border: 1px solid var(--line-strong); }
.partner h4 { font-family: var(--font-display); font-size: 18px; margin: 0 0 4px; }
.partner .role { color: var(--muted); font-size: 13px; margin: 0 0 10px; letter-spacing: 1px; text-transform: uppercase; }
.partner .guess { font-size: 12px; margin: 0; }
.partner-story h4 { font-family: var(--font-display); font-weight: 700; font-size: 18px; color: var(--red); margin: 6px 0 12px; }
.partner-story p { color: #dcdcdc; font-size: 15px; margin: 0 0 12px; max-width: 58ch; }

/* ---------- contact ---------- */
.contact { padding: 40px 0 70px; }
.contact-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 56px; align-items: start; }
.direct { display: grid; gap: 14px; margin-top: 10px; }
.direct a { display: inline-flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; font-family: var(--font-display); font-weight: 500; width: fit-content; }
.direct i { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line-strong); display: inline-block; position: relative; }
.direct i::before { content: ""; position: absolute; inset: 9px; border: 2px solid var(--green-bright); border-radius: 50%; }
.direct .ico-mail::before { border-radius: 3px; border-color: var(--red); }
.contact-form { max-width: none; padding: 32px; display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; text-align: left; }
.contact-form .field.full, .contact-form .send { grid-column: 1 / -1; }
.send { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.send small { color: var(--dim); font-size: 12px; }
.hp { position: absolute; left: -9999px; }

/* ---------- already a client ---------- */
.client-band { padding: 20px 0 110px; }
.client-card { display: grid; grid-template-columns: 1fr 180px; gap: 32px; align-items: center; border-radius: var(--radius-lg); border: 1px solid var(--line); padding: 44px 48px; background: linear-gradient(135deg, rgba(255, 0, 0, 0.14), rgba(0, 102, 51, 0.12) 60%, rgba(255, 255, 255, 0.03)); overflow: hidden; }
.client-copy p { color: var(--muted); margin: 0 0 20px; }
.client-media img { width: 180px; height: auto; border-radius: 22px; border: 1px solid var(--line-strong); box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6); transform: rotate(-6deg) translateY(10px); }
.client-copy { order: -1; }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--line); padding: 60px 0 36px; font-size: 14px; background: #040404; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.brand-col .wordmark { margin-top: 14px; font-size: 13px; }
.brand-col .taglines { font-size: 11px; margin-top: 18px; }
.foot-col h4 { font-family: var(--font-display); font-weight: 600; font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); margin: 6px 0 14px; }
.foot-col a { display: block; color: var(--text); text-decoration: none; padding: 6px 0; }
.foot-col a:hover { color: var(--red); }
.foot-strip { margin-top: 40px; font-size: 13px; }
.foot-legal { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; color: var(--muted); font-size: 13px; }
.foot-links a { color: var(--muted); margin-left: 18px; }
.foot-note { margin-top: 16px; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: 12px; color: var(--dim); }
.foot-note a { color: var(--muted); }

/* mark sizes (height = width x 98 / 148) and the rail pad positions, no inline styles under the CSP */
.hero-mark { width: 168px; height: 111px; }
.foot-mark { width: 148px; height: 98px; }
.rail-pads i:nth-child(1) { --at: 10%; } .rail-pads i:nth-child(2) { --at: 27%; } .rail-pads i:nth-child(3) { --at: 46%; }
.rail-pads i:nth-child(4) { --at: 66%; } .rail-pads i:nth-child(5) { --at: 84%; } .rail-pads i:nth-child(6) { --at: 97%; }
.thanks-main { min-height: 100svh; display: grid; place-items: center; padding: 40px; }
.thanks-card { max-width: 520px; }
.thanks-mark { width: 132px; height: 87px; margin: 0 auto 18px; }
.thanks-card p { color: var(--muted); }

/* ---------- tilt (site.js sets --rx/--ry) ---------- */
[data-tilt] { transition: transform 0.35s var(--ease); transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .partners { grid-template-columns: 1fr 1fr; }
  .partner-story { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .rail { display: none; }
  .nav-links, .nav-cta { display: none; }
  .nav-burger { display: block; }
  .hero { padding-top: calc(var(--nav-h) + 24px); }
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero-live { justify-self: stretch; max-width: none; }
  .intro-grid, .way-grid, .portal-grid, .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .tiles { grid-template-columns: 1fr 1fr; }
  .proc-grid { grid-template-columns: 1fr; gap: 26px; }
  .field-track { flex-direction: column; }
  .field-shot:nth-child(2) { margin-top: 0; }
  .strips { flex-direction: column; height: auto; }
  .strip { min-height: 170px; }
  .strips:hover .strip, .strip:hover, .strips:not(:hover):not(:focus-within) .strip.is-open { flex: 1; }
  .strip p { opacity: 1; transform: none; }
  .stats { grid-template-columns: 1fr; gap: 22px; }
  .stat-x { border-left: 0; }
  .partners { grid-template-columns: 1fr; }
  .client-card { grid-template-columns: 1fr; padding: 32px 26px; }
  .client-media { display: none; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .dev-phone { right: 0; bottom: -8%; }
}
@media (max-width: 560px) {
  .wrap, .nav-in { width: min(1180px, 100% - 32px); }
  .tiles { grid-template-columns: 1fr; }
  .contact-form { grid-template-columns: 1fr; padding: 22px; }
  .foot-grid { grid-template-columns: 1fr; }
  .live-row { grid-template-columns: 1fr 1fr 1fr; gap: 6px; }
}

/* ---------- QA snapshots (?qa=1): final state, no motion ---------- */
html.qa .reveal, html.qa [data-words] .w, html.qa .fade-up, html.qa .loader { opacity: 1 !important; transform: none !important; filter: none !important; animation: none !important; transition: none !important; }
html.qa .loader { display: none !important; }
html.qa .hero-img, html.qa .hero-haze, html.qa .ticker-track, html.qa .dev-phone, html.qa .live-dot { animation: none !important; }
html.qa .arc-draw { stroke-dashoffset: 0 !important; transition: none !important; }
html.qa .proc-fill { width: 100% !important; transition: none !important; }
html.qa .rail-draw { stroke-dashoffset: 35 !important; transition: none !important; }
html.qa .strip p { opacity: 1 !important; transform: none !important; }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .loader { display: none; }
  .hero-img, .hero-haze, .ticker-track, .live-dot, .hero-scroll span, .dev-phone { animation: none !important; }
  .hero-atmos, .hero-video { display: none; }
  [data-words] .w { opacity: 1 !important; transform: none !important; filter: none !important; transition: none !important; }
  .rail-draw { transition: none; }
  .arc-draw, .proc-fill { transition: none; }
  .way-col .arc-draw { stroke-dashoffset: 0; }
  .proc-fill { width: 100%; }
  [data-tilt] { transform: none !important; transition: none; }
  .strip, .strip img, .strip p, .field-shot img { transition: none; }
}

/* ---------- scrub progress bar (hero experience) ---------- */
.chapter-prog { position: absolute; left: 50%; bottom: 28px; width: 180px; height: 3px; margin-left: -90px; background: var(--line-strong); border-radius: 2px; overflow: hidden; }
.chapter-prog i { display: block; height: 100%; width: 0; background: var(--red); box-shadow: 0 0 10px var(--red); }
@media (max-width: 900px) {
  /* phone: the pin may be taller than the viewport, so the beats sit where the copy was */
  .hero-pin { height: auto; min-height: 100svh; max-height: none; }
  .hero-beats { top: calc(var(--nav-h) + 56px); transform: none; }
  .hero-beats .beat { top: 44px; max-width: none; }
  .hero-beats .beat .h2 { font-size: 30px; }
  .hero-torch { -webkit-mask-image: radial-gradient(circle at var(--tx) var(--ty), transparent 0, transparent 70px, rgba(0, 0, 0, 0.75) 200px, #000 360px); mask-image: radial-gradient(circle at var(--tx) var(--ty), transparent 0, transparent 70px, rgba(0, 0, 0, 0.75) 200px, #000 360px); }
}
/* no film: the hero is a normal block and the three beats read as a list under it */
html.qa .hero, .hero.static { height: auto; }
html.qa .hero-pin, .hero.static .hero-pin { position: relative; height: auto; min-height: min(100svh, 1000px); max-height: none; }
html.qa .hero-beats, .hero.static .hero-beats { position: relative; top: auto; transform: none; opacity: 1; width: min(1180px, 100% - 48px); margin: 20px auto 0; padding-bottom: 40px; display: grid; gap: 22px; }
html.qa .hero-beats .beat, .hero.static .hero-beats .beat { position: relative; top: auto; opacity: 1; transform: none; transition: none; }
html.qa .chapter-prog, .hero.static .chapter-prog { display: none; }
@media (prefers-reduced-motion: reduce) {
  .hero { height: auto; }
  .hero-pin { position: relative; height: auto; min-height: min(100svh, 1000px); max-height: none; }
  .hero-beats { position: relative; top: auto; transform: none; opacity: 1; width: min(1180px, 100% - 48px); margin: 20px auto 0; padding-bottom: 40px; display: grid; gap: 22px; }
  .hero-beats .beat { position: relative; top: auto; opacity: 1; transform: none; transition: none; }
  .hero-torch, .hero-halo, .chapter-prog { display: none; }
}
