/* ==========================================================
   1-TO-ALL — 1toall.ai brand film
   ink black · brand red · cream type
   ========================================================== */
:root {
  --bg: #0A0A0A;
  --ink: #F5F2EA;
  --red: #EA2041;
  --red-dim: rgba(234, 32, 65, 0.55);
  --dim: rgba(245, 242, 234, 0.55);
  --faint: rgba(245, 242, 234, 0.28);
  --hair: rgba(245, 242, 234, 0.12);
  --display: "Saira Condensed", "Noto Sans Thai", "Arial Narrow", sans-serif;
  --body: "Inter", "Noto Sans Thai", system-ui, sans-serif;
  --mono: "Space Mono", "Noto Sans Thai", monospace;
}

/* Thai glyphs fall through to Noto Sans Thai automatically (per-glyph fallback);
   these overrides only ease line-height/weight where Thai copy replaces tight
   Latin display type — Thai tone marks/vowels stack above and below the letter
   and get clipped by Latin-tuned line-heights below ~1.1. */
[data-lang="th"] .statement,
[data-lang="th"] .mega,
[data-lang="th"] .sline,
[data-lang="th"] .tcard {
  line-height: 1.28;
  font-weight: 700;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scrollbar-width: none; }
html::-webkit-scrollbar { display: none; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
.mono { font-family: var(--mono); }
.red { color: var(--red); }
.dim { color: var(--dim); }
.lower { text-transform: lowercase; }

/* ---------- grain ---------- */
.grain {
  position: fixed; inset: -60px;
  z-index: 90;
  pointer-events: none;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain-shift 0.9s steps(4) infinite;
}
@keyframes grain-shift {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-18px, 12px); }
  50% { transform: translate(14px, -20px); }
  75% { transform: translate(-10px, -8px); }
  100% { transform: translate(0, 0); }
}

/* ---------- preloader ---------- */
.preloader {
  position: fixed; inset: 0;
  z-index: 200;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 34px;
  transition: opacity 0.8s ease 0.15s, visibility 0.8s ease 0.15s;
}
.preloader.done { opacity: 0; visibility: hidden; }
.pre-orb { position: relative; width: 120px; height: 120px; }
.orb-core {
  position: absolute; inset: 14px;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 32%, #ffd7de 0%, #EA2041 42%, #59091a 78%, #1a0308 100%);
  animation: orb-pulse 2.2s ease-in-out infinite;
}
.orb-swirl {
  position: absolute; inset: 8px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0deg, rgba(255, 215, 222, 0.85) 40deg, transparent 90deg, transparent 180deg, rgba(234, 32, 65, 0.7) 230deg, transparent 290deg);
  mix-blend-mode: screen;
  animation: orb-spin 3.4s linear infinite;
}
.orb-halo {
  position: absolute; inset: -30px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(234, 32, 65, 0.35) 0%, transparent 65%);
  animation: orb-pulse 2.2s ease-in-out infinite reverse;
}
@keyframes orb-spin { to { transform: rotate(360deg); } }
@keyframes orb-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.08); } }
.pre-brand {
  font-family: var(--display);
  font-weight: 900;
  font-size: 30px;
  letter-spacing: 0.34em;
  margin-left: 0.34em;
}
.pre-status {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--dim);
}

/* ---------- fixed chrome ---------- */
.chrome-top {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 80;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 32px;
}
.brand {
  display: flex;
  align-items: flex-end;
  gap: 7px;
}
.brand img {
  display: block;
  height: 34px;
  width: auto;
}
.brand-dot {
  color: var(--red);
  font-size: 13px;
  letter-spacing: 0.08em;
  padding-bottom: 3px;
}
.chrome-right {
  display: flex;
  align-items: center;
  gap: 18px;
}
.chrome-cta {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--dim);
  transition: color 0.3s;
}
.chrome-cta:hover { color: var(--ink); }

.lang-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: 1px solid var(--hair);
  padding: 6px 10px;
  cursor: pointer;
  transition: border-color 0.3s;
}
.lang-toggle:hover { border-color: var(--red-dim); }
.lang-opt {
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--faint);
  transition: color 0.3s;
}
.lang-opt.active { color: var(--ink); }
.lang-opt:not(.active):hover { color: var(--dim); }
.lang-sep { font-size: 11px; color: var(--faint); }

/* chapter nav (right rail) */
.chapter-nav {
  position: fixed;
  right: 28px; top: 50%;
  transform: translateY(-50%);
  z-index: 80;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.chap-link {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  cursor: pointer;
  background: none; border: 0;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  padding: 4px 7px;
  transition: color 0.35s, background 0.35s;
}
.chap-link.active, .chap-link:hover {
  background: rgba(10, 10, 10, 0.85);  /* solid chip so the label reads above busy sections */
  box-shadow: 0 0 0 1px rgba(245, 242, 234, 0.07);
}
.chap-link .chap-title {
  opacity: 0;
  transform: translateX(6px);
  transition: opacity 0.3s, transform 0.3s;
}
.chap-link:hover .chap-title, .chap-link.active .chap-title { opacity: 1; transform: translateX(0); }
.chap-link .chap-tick {
  width: 18px; height: 1px;
  background: currentColor;
  transition: width 0.35s, background 0.35s;
}
.chap-link.active { color: var(--ink); }
.chap-link.active .chap-tick { width: 34px; background: var(--red); }

/* scroll to discover */
.scroll-discover {
  position: fixed;
  left: 34px; bottom: 42px;
  z-index: 80;
  display: flex;
  align-items: center;
  gap: 14px;
  transform-origin: left bottom;
  transform: rotate(-90deg) translateX(0);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.34em;
  color: var(--dim);
  transition: opacity 0.5s;
}
.scroll-discover i {
  display: block;
  width: 56px; height: 1px;
  background: linear-gradient(90deg, var(--red), transparent);
  animation: discover-line 1.8s ease-in-out infinite;
}
@keyframes discover-line { 0%, 100% { transform: scaleX(0.55); opacity: 0.5; } 50% { transform: scaleX(1); opacity: 1; } }
.scroll-discover.hidden { opacity: 0; }

.page-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2px;
  z-index: 85;
  background: transparent;
}
#page-progress-fill {
  height: 100%; width: 0%;
  background: var(--red);
  box-shadow: 0 0 14px var(--red);
}

/* ---------- scrub sections ---------- */
.scrub { position: relative; height: 520vh; }
.scrub .pin {
  position: sticky; top: 0;
  height: 100vh; width: 100%;
  overflow: hidden;
  background: var(--bg);
}
.scrub canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
}
.vignette {
  position: absolute; inset: 0;
  pointer-events: none;
  background:
    radial-gradient(130% 95% at 50% 45%, transparent 48%, rgba(0, 0, 0, 0.62) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.5) 0%, transparent 22%, transparent 72%, rgba(0, 0, 0, 0.72) 100%);
}

/* hero block */
.hero-block {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  z-index: 6;
  /* Same fix as .hub-open (see its comment): keeps "1-TO-ALL" clear of the fixed
     chapter-nav rail. Asymmetric since the rail only obstructs the right side. */
  padding: 0 290px 0 max(5vw, 32px);
  will-change: opacity, transform;
}
.eyebrow {
  font-size: 12px;
  letter-spacing: 0.42em;
  color: var(--red);
}
.hero-title {
  font-family: var(--display);
  font-weight: 900;
  /* Same overflow class as .mega — verified via Range, not getBoundingClientRect() (see
     .mega's comment). "1-TO-ALL" collided with the ORIGIN nav chip at ~1200px viewport
     width before this fix; the old 17.5vw/15.5rem clamp allowed it to render wider than
     the space this padding leaves available at common desktop widths. */
  font-size: clamp(4.6rem, 14vw, 15rem);
  line-height: 0.92;
  letter-spacing: 0.015em;
  margin: 18px 0 20px;
  display: flex;
  min-width: 0;
  max-width: 100%;
}
.hero-title .ltr {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.35em) rotate(2deg);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.hero-title.in .ltr { opacity: 1; transform: translateY(0) rotate(0); }
.hero-sub {
  font-size: clamp(0.95rem, 1.6vw, 1.25rem);
  color: var(--dim);
  letter-spacing: 0.04em;
}

/* scroll-scrub overlay lines */
.scrub-lines { position: absolute; inset: 0; z-index: 5; pointer-events: none; }
.sline {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: max-content;
  max-width: 88vw;
  text-align: center;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2rem, 6.4vw, 5.6rem);
  line-height: 1;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  opacity: 0;
  text-shadow: 0 4px 60px rgba(0, 0, 0, 0.8);
  will-change: opacity, transform;
}

/* ---------- content chapters ---------- */
.content-chapter { position: relative; padding: 22vh 8vw 14vh; }
.chapter-intro { max-width: 1100px; margin-bottom: 12vh; }
.intro-statement {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.6rem, 3.4vw, 3rem);
  line-height: 1.15;
  margin-top: 22px;
  color: var(--ink);
}

/* reveal (IO-driven) */
.reveal {
  opacity: 0;
  transform: translateY(42px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.in { opacity: 1; transform: translateY(0); }

/* statements */
.statements { max-width: 1200px; }
.statement {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(3rem, 8.6vw, 8.2rem);
  line-height: 0.95;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  margin-top: 14vh;
}
.statement-sub {
  margin-top: 26px;
  max-width: 560px;
  font-size: clamp(0.95rem, 1.3vw, 1.15rem);
  line-height: 1.7;
  color: var(--dim);
}

/* stats strip */
.stats-strip {
  margin-top: 16vh;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  border-top: 1px solid var(--hair);
}
.stat {
  padding: 34px 26px 30px 0;
  border-bottom: 1px solid var(--hair);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.stat-num {
  font-size: clamp(1.9rem, 3.4vw, 3rem);
  font-weight: 700;
  color: var(--ink);
}
.stat-label {
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--dim);
}

/* growth chart */
.growth { margin-top: 18vh; }
.growth-title {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2rem, 4.6vw, 4.2rem);
  text-transform: uppercase;
  margin: 14px 0 7vh;
}
.chart-wrap { max-width: 1080px; }
#growth-chart { width: 100%; height: auto; overflow: visible; }
.chart-year, .chart-val {
  font-family: var(--mono);
  font-size: 15px;
  fill: var(--dim);
}
.chart-val { fill: var(--ink); font-size: 16px; }
.chart-val.target-val { fill: var(--red); font-weight: 700; }
.chart-year.target-year { fill: var(--red); }
.grid-line { stroke: rgba(245, 242, 234, 0.07); stroke-width: 1; }
.chart-pt { fill: var(--ink); }
.chart-pt-target {
  fill: none;
  stroke: var(--red);
  stroke-width: 3;
  animation: target-pulse 1.6s ease-in-out infinite;
  transform-origin: center;
  transform-box: fill-box;
}
@keyframes target-pulse { 0%, 100% { stroke-opacity: 1; transform: scale(1); } 50% { stroke-opacity: 0.45; transform: scale(1.25); } }

.growth-cards {
  margin-top: 9vh;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  max-width: 1080px;
}
.gcard {
  border: 1px solid var(--hair);
  padding: 30px 28px 34px;
  background: rgba(245, 242, 234, 0.02);
  transition: border-color 0.4s, transform 0.4s;
}
.gcard:hover { border-color: var(--red-dim); transform: translateY(-4px); }
.gcard span { font-size: 13px; letter-spacing: 0.18em; }
.gcard p { margin-top: 16px; color: var(--dim); line-height: 1.65; font-size: 0.95rem; }

/* ---------- solutions ---------- */
.sol-head {
  position: absolute;
  top: 12vh; left: 8vw;
  z-index: 6;
  max-width: 520px;
}
.sol-statement {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.5rem, 2.8vw, 2.5rem);
  line-height: 1.1;
  margin-top: 14px;
  text-transform: uppercase;
}
.sol-list {
  position: absolute;
  left: 8vw; right: 8vw; bottom: 11vh;
  z-index: 6;
  list-style: none;
}
.sol-row {
  display: grid;
  grid-template-columns: 44px minmax(180px, 340px) 1fr 40px;
  align-items: baseline;
  gap: 18px;
  padding: 15px 6px;
  border-top: 1px solid var(--hair);
  opacity: 0;
  transform: translateY(26px);
  pointer-events: none;
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), background 0.3s;
  cursor: pointer;
}
.sol-row.on { opacity: 1; transform: translateY(0); pointer-events: auto; }
.sol-row:hover { background: rgba(234, 32, 65, 0.07); }
.sol-idx { font-size: 11px; color: var(--red); }
.sol-name {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.3rem, 2.6vw, 2.2rem);
  letter-spacing: 0.03em;
}
.sol-pitch { color: var(--dim); font-size: clamp(0.8rem, 1.1vw, 1rem); }
.sol-open {
  font-family: var(--mono);
  color: var(--red);
  font-size: 22px;
  text-align: right;
  transition: transform 0.3s;
}
.sol-row:hover .sol-open { transform: rotate(90deg); }
.sol-hint {
  position: absolute;
  right: 8vw; top: 12vh;
  z-index: 6;
  font-size: 10px;
  letter-spacing: 0.3em;
  color: var(--faint);
}

/* solutions overlay */
.panel-overlay {
  position: fixed; inset: 0;
  z-index: 120;
  visibility: hidden;
  pointer-events: none;
}
.panel-overlay.open { visibility: visible; pointer-events: auto; }
.panel-backdrop {
  position: absolute; inset: 0;
  background: rgba(4, 4, 5, 0.72);
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.45s;
}
.panel-overlay.open .panel-backdrop { opacity: 1; }
.panel-sheet {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: min(560px, 92vw);
  background: #0E0D0E;
  border-left: 1px solid var(--hair);
  padding: 90px 54px 54px;
  transform: translateX(102%);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}
.panel-overlay.open .panel-sheet { transform: translateX(0); }
.panel-close {
  position: absolute;
  top: 26px; right: 30px;
  background: none; border: 0;
  color: var(--dim);
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
  transition: color 0.3s, transform 0.3s;
}
.panel-close:hover { color: var(--red); transform: rotate(90deg); }
.panel-idx { color: var(--red); font-size: 12px; letter-spacing: 0.3em; }
.panel-sheet h3 {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(2.6rem, 5vw, 4rem);
  text-transform: uppercase;
  margin: 10px 0 6px;
  line-height: 0.95;
}
.panel-pitch { color: var(--red); font-size: 1.05rem; margin-bottom: 40px; }
.panel-items { list-style: none; border-top: 1px solid var(--hair); margin-bottom: 48px; }
.panel-items li {
  padding: 16px 2px;
  border-bottom: 1px solid var(--hair);
  color: var(--dim);
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 14px;
}
.panel-items li::before {
  content: "";
  width: 7px; height: 7px;
  background: var(--red);
  transform: rotate(45deg);
  flex: none;
}
.panel-link { margin-top: auto; align-self: flex-start; }

/* ---------- trusted by (logo wall) ---------- */
.trusted { padding-bottom: 16vh; }
.trusted-statement {
  font-size: clamp(1.1rem, 2.4vw, 1.9rem);
  letter-spacing: 0.14em;
  margin-top: 22px;
  color: var(--ink);
}
.logo-wall { margin-top: 4vh; }
.marquee-label {
  font-size: 10px;
  letter-spacing: 0.3em;
  color: var(--faint);
  margin: 44px 0 18px;
}
.marquee {
  overflow: hidden;
  border-top: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee-scroll 46s linear infinite;
}
.marquee-right .marquee-track { animation-direction: reverse; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.logo-slot {
  flex: none;
  width: 190px;
  height: 86px;
  margin: 18px 14px;
  display: grid;
  place-items: center;
  border: 1px solid var(--hair);
  background: #EDEAE3;
  color: rgba(245, 242, 234, 0.4);
  font-size: 12px;
  letter-spacing: 0.22em;
  filter: grayscale(1);
  opacity: 0.5;
  transition: opacity 0.35s, border-color 0.35s, filter 0.35s, transform 0.35s, box-shadow 0.35s;
}
.logo-slot img { max-width: 148px; max-height: 56px; width: auto; height: auto; object-fit: contain; }
.logo-slot:hover {
  filter: none;
  opacity: 1;
  border-color: var(--red-dim);
  transform: scale(1.05);
  box-shadow: 0 10px 34px rgba(234, 32, 65, 0.22);
}
.track-gov { animation-duration: 60s; }
.track-ent { animation-duration: 170s; }
.trusted-close {
  margin-top: 8vh;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.5rem, 3.2vw, 2.8rem);
  color: var(--dim);
}

/* ---------- flagships & the brain — hub ---------- */
.hub-open {
  position: absolute;
  inset: 0;
  /* Asymmetric on purpose: the chapter-nav rail's label chip is fixed-size text (doesn't
     scale with viewport) sitting ~290px from the right edge when active — that obstruction
     only exists on the right, so a symmetric max(9vw, 300px) wastes 300px on the empty left
     side while still being too tight for a long word like "PRODUCTIVITY" at narrower widths
     (a single unbreakable word can't wrap, so if it doesn't fit, it visually overflows past
     max-width:100% — the box shrinks, the text ink doesn't). Right padding is a hard floor
     sized to that fixed obstruction; left is much smaller since nothing sits there. */
  padding: 0 290px 0 max(5vw, 32px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  z-index: 6;
  will-change: opacity, transform;
}
#threads {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  z-index: 2;
}
.thread {
  stroke: var(--red);
  stroke-width: 1.5;
  opacity: 0.8;
}
.thread.flow { stroke-dasharray: 4 14; animation: thread-flow 1.4s linear infinite; }
@keyframes thread-flow { to { stroke-dashoffset: -18; } }
.hub-glow {
  position: absolute;
  left: 50%; top: 50%;
  width: 60vmin; height: 60vmin;
  transform: translate(-50%, -50%) scale(0.3);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(234, 32, 65, 0.4) 0%, rgba(234, 32, 65, 0.12) 40%, transparent 70%);
  opacity: 0;
  z-index: 1;
  pointer-events: none;
  transition: opacity 0.8s ease, transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.hub-section .pin.ignited .hub-glow { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.hub-stage { position: absolute; inset: 0; z-index: 3; }
.hub-card, .hub-core-card {
  position: absolute;
  left: var(--hx); top: var(--hy);
  transform: translate(-50%, -50%) translateY(30px);
  width: min(240px, 22vw);
  padding: 20px 20px 22px;
  border: 1px solid var(--hair);
  background: rgba(10, 10, 10, 0.82);
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.35s, box-shadow 0.35s;
}
.hub-card.on, .hub-core-card.on {
  opacity: 1;
  transform: translate(-50%, -50%);
  pointer-events: auto;
}
.hub-card:hover {
  border-color: var(--red-dim);
  transform: translate(-50%, -50%) translateY(-6px);
  box-shadow: 0 14px 40px rgba(234, 32, 65, 0.18);
}
/* two side columns — bottom-centre band stays clear for the copy beats */
.hub-card[data-order="0"] { --hx: 16%; --hy: 16%; }
.hub-card[data-order="1"] { --hx: 84%; --hy: 16%; }
.hub-card[data-order="2"] { --hx: 16%; --hy: 50%; }
.hub-card[data-order="3"] { --hx: 84%; --hy: 50%; }
.hub-card[data-order="4"] { --hx: 16%; --hy: 84%; }
.hub-card[data-order="5"] { --hx: 84%; --hy: 84%; }
.hub-num { font-size: 10px; letter-spacing: 0.26em; color: var(--red); }
.hub-card h3, .hub-core-card h3 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.2rem, 1.9vw, 1.7rem);
  margin: 8px 0 6px;
  letter-spacing: 0.02em;
}
.hub-card p, .hub-core-card p { color: var(--dim); font-size: 0.82rem; line-height: 1.5; }
.hub-core-card {
  --hx: 50%; --hy: 50%;
  width: min(320px, 30vw);
  text-align: center;
  border-color: var(--red-dim);
  background: rgba(16, 6, 8, 0.9);
  z-index: 4;
}
.hub-core-card h3 { font-size: clamp(1.9rem, 3vw, 2.7rem); color: var(--red); }
.hub-core-card.on { box-shadow: 0 0 60px rgba(234, 32, 65, 0.35), 0 0 160px rgba(234, 32, 65, 0.18); }
.hub-core-card:hover { transform: translate(-50%, -50%) scale(1.04); }
.tcards-hub .tcard {
  top: auto; bottom: 7vh;
  transform: translate(-50%, 0);
  font-size: clamp(1rem, 1.9vw, 1.6rem);
  font-weight: 700;
  width: min(580px, 42vw);  /* stays inside the clear centre band between the card columns */
}

.coming-tag {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.3em;
  color: var(--bg);
  background: var(--red);
  padding: 4px 10px;
  margin-left: 14px;
  vertical-align: middle;
}
.mega {
  font-family: var(--display);
  font-weight: 900;
  /* Capped lower than a naive "biggest possible" value. "PRODUCTIVITY" is a single
     unbreakable word — CSS won't shrink or wrap it to fit its box, so if the clamp() allows
     a font-size where PRODUCTIVITY's rendered width exceeds the available space (viewport
     minus .hub-open's padding), the text ink overflows past its own box and can collide with
     the chapter-nav rail even though max-width:100%/min-width:0 keep the *box* correctly
     sized (verified via Range.getBoundingClientRect() on the text node, which reports the
     actual painted extent — element.getBoundingClientRect() reports the box, not the ink,
     and misses this class of overflow entirely). 10vw / 12.5rem keeps ~5.4x fontSize as
     PRODUCTIVITY's width and stays inside the available space at every width from 761px
     (just above the mobile breakpoint that hides the nav rail) upward. */
  font-size: clamp(4rem, 10vw, 12.5rem);
  line-height: 0.88;
  letter-spacing: 0.01em;
  margin: 6vh 0 5vh;
  color: var(--red);
  text-shadow: 0 0 90px rgba(234, 32, 65, 0.5), 0 0 220px rgba(234, 32, 65, 0.3);
  min-width: 0;   /* override the flex-item default so this actually respects the parent's padding */
  max-width: 100%;
}

/* pinned title-card sections */
.pinned-cards { position: relative; }
.pinned-cards .pin {
  position: sticky; top: 0;
  height: 100vh;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: var(--bg);
}
.tcards { position: absolute; inset: 0; z-index: 5; pointer-events: none; }
.tcard {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: min(1000px, 86vw);
  text-align: center;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.9rem, 5vw, 4.4rem);
  line-height: 1.08;
  opacity: 0;
  text-shadow: 0 6px 50px rgba(0, 0, 0, 0.9);
  will-change: opacity, transform;
}
.tcard.red-card { color: var(--red); font-size: clamp(2.6rem, 8vw, 7.5rem); }
.tcard.closer-card { font-size: clamp(3.4rem, 11vw, 10.5rem); text-shadow: 0 0 90px rgba(234, 32, 65, 0.45); }
.whynow-eyebrow {
  position: absolute;
  top: 11vh; left: 8vw;
  z-index: 6;
}

/* ---------- contact ---------- */
.contact { padding-bottom: 0; }
.contact-inner {
  min-height: 72vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.contact .statement { margin-top: 3vh; }
.cta-row {
  display: flex;
  gap: 18px;
  margin-top: 7vh;
  flex-wrap: wrap;
  justify-content: center;
}
.btn {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  padding: 20px 38px;
  border: 1px solid var(--red);
  transition: background 0.35s, color 0.35s, transform 0.35s, box-shadow 0.35s;
  display: inline-block;
}
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: #ff3557; transform: translateY(-3px); box-shadow: 0 12px 44px rgba(234, 32, 65, 0.35); }
.btn-ghost { color: var(--ink); border-color: var(--faint); }
.btn-ghost:hover { border-color: var(--red); color: var(--red); transform: translateY(-3px); }
.contact-lines { margin-top: 4vh; font-size: 11px; letter-spacing: 0.22em; color: var(--dim); }
.contact-lines a:hover { color: var(--red); }

.footer {
  margin-top: 10vh;
  border-top: 1px solid var(--hair);
  padding: 60px 0 44px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 40px;
}
.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-col > span { font-size: 11px; letter-spacing: 0.26em; color: var(--red); margin-bottom: 6px; }
.footer-col p, .footer-col a { color: var(--dim); font-size: 0.92rem; line-height: 1.6; }
.footer-col a:hover { color: var(--ink); }
.footer-fine {
  grid-column: 1 / -1;
  font-size: 0.8rem;
  border-top: 1px solid var(--hair);
  padding-top: 26px;
}
.footer-fine a { text-decoration: underline; }

/* ---------- responsive ---------- */
@media (max-width: 760px) {
  .chapter-nav { display: none; }
  .scroll-discover { left: 22px; bottom: 30px; }
  .chrome-top { padding: 16px 18px; }
  .chrome-right { gap: 10px; }
  .lang-toggle { padding: 5px 8px; }
  .brand img { height: 26px; }
  .content-chapter { padding: 18vh 6vw 12vh; }
  .sol-row { grid-template-columns: 30px 1fr 32px; }
  .sol-pitch { display: none; }
  .sol-list { bottom: 8vh; }
  .panel-sheet { padding: 80px 30px 40px; }
  .stat { padding-right: 12px; }
  .logo-slot { width: 140px; height: 64px; margin: 12px 8px; font-size: 10px; }
  .logo-slot img { max-width: 108px; max-height: 42px; }
  .hub-card, .hub-core-card { width: 42vw; padding: 12px 12px 14px; }
  .hub-card p { display: none; }
  .hub-core-card { width: 62vw; }
  .hub-core-card p { display: block; font-size: 0.75rem; }
  .hub-card[data-order="0"] { --hx: 26%; --hy: 14%; }
  .hub-card[data-order="1"] { --hx: 74%; --hy: 14%; }
  .hub-card[data-order="2"] { --hx: 26%; --hy: 44%; }
  .hub-card[data-order="3"] { --hx: 74%; --hy: 44%; }
  .hub-card[data-order="4"] { --hx: 26%; --hy: 72%; }
  .hub-card[data-order="5"] { --hx: 74%; --hy: 72%; }
  .tcards-hub .tcard { bottom: 2vh; width: 92vw; }
}

@media (max-width: 420px) {
  .cta-full { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .grain { animation: none; }
  .reveal { transition: none; opacity: 1; transform: none; }
  .marquee-track { animation-play-state: paused; }
}
