/* ==========================================================================
   TLAY · IoT Frontier Model — frontier.tlay.io
   ========================================================================== */

:root {
  --bg: #05070a;
  --bg-1: #080b10;
  --bg-2: #0c1117;
  --bg-3: #111821;
  --line: rgba(220, 232, 245, 0.08);
  --line-2: rgba(220, 232, 245, 0.14);
  --line-3: rgba(220, 232, 245, 0.24);
  --text: #eef1f4;
  --text-2: #b7c0ca;
  --muted: #7d8894;
  --dim: #4c5662;

  --heat: #ff7a3d;
  --heat-2: #ffb35c;
  --heat-glow: rgba(255, 122, 61, 0.35);
  --cool: #5be3cf;
  --cool-2: #9af2e4;
  --cool-glow: rgba(91, 227, 207, 0.3);
  --ivory: #f3ead8;
  --warn: #ff5d6c;

  --font-display: "Instrument Serif", Georgia, serif;
  --font-sans: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "Geist Mono", "SFMono-Regular", Menlo, monospace;

  --container: 1240px;
  --gutter: 32px;
  --radius: 18px;
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
  color-scheme: dark;
}


*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* film grain + vignette */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none; z-index: 100;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
em { font-style: italic; }
::selection { background: var(--heat); color: #000; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.mono { font-family: var(--font-mono); letter-spacing: 0.02em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- type ---------- */
.display {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.02;
  margin: 0;
}
.display em { color: var(--ivory); }

.h2 { font-size: clamp(40px, 5.6vw, 76px); max-width: 15ch; }

.lead { font-size: clamp(18px, 1.5vw, 21px); color: var(--text-2); max-width: 60ch; }
.body { color: var(--text-2); max-width: 62ch; }
.body p { margin: 0 0 1.1em; }

.label {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-mono);
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 28px;
}
.label::before { content: ""; width: 28px; height: 1px; background: var(--heat); }
.label .num { color: var(--heat); }

.tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted);
  padding: 6px 10px; border: 1px solid var(--line-2); border-radius: 100px;
}
.tag .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--cool); box-shadow: 0 0 10px var(--cool); }

/* ---------- buttons ---------- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; gap: 10px;
  height: 52px; padding: 0 24px;
  border-radius: 100px;
  font-size: 15px; font-weight: 500;
  transition: transform .3s var(--ease), background .3s, border-color .3s, box-shadow .3s;
  white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn-primary { background: var(--ivory); color: #0a0a0a; }
.btn-primary:hover { box-shadow: 0 0 0 6px rgba(243, 234, 216, 0.12), 0 10px 40px rgba(255, 179, 92, 0.25); }
.btn-ghost { border: 1px solid var(--line-3); color: var(--text); }
.btn-ghost:hover { border-color: var(--text-2); background: rgba(255,255,255,0.03); }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  transition: background .4s, border-color .4s, backdrop-filter .4s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(5, 7, 10, 0.72);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border-bottom-color: var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo { height: 28px; width: auto; display: block; }
.brand-div { width: 1px; height: 20px; background: var(--line-3); }
.brand-sub { font-family: "Instrument Serif", serif; font-style: italic; font-size: 22px; line-height: 1; color: var(--text-2); letter-spacing: 0; }
footer .brand-logo { height: 32px; }
.brand-name { display: flex; align-items: baseline; gap: 8px; font-weight: 600; letter-spacing: 0.14em; font-size: 15px; }
.brand-name .sub { font-family: "Instrument Serif", serif; font-style: italic; font-weight: 400; letter-spacing: 0; font-size: 19px; color: var(--text-2); }
.nav-links { display: flex; gap: 30px; font-size: 14px; color: var(--muted); }
.nav-links a { transition: color .2s; position: relative; }
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-links a.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -8px; height: 1px; background: var(--heat); }
.nav-right { display: flex; align-items: center; gap: 14px; }
.nav .btn { height: 40px; padding: 0 18px; font-size: 14px; }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; } .reveal.d3 { transition-delay: .24s; } .reveal.d4 { transition-delay: .32s; }

/* ---------- sections ---------- */
section { position: relative; }
.section { padding: 160px 0; }
.section + .section { border-top: 1px solid var(--line); }
.section-head { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: end; margin-bottom: 80px; }
.section-head .body { justify-self: end; }

/* ---------- hero ---------- */
.hero { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; padding-top: 72px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(60% 50% at 72% 45%, rgba(255, 122, 61, 0.10), transparent 70%),
    radial-gradient(40% 40% at 85% 70%, rgba(91, 227, 207, 0.08), transparent 70%);
  pointer-events: none;
}
.hero-grid-lines {
  position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 96px 96px;
  mask-image: radial-gradient(70% 60% at 50% 40%, #000 20%, transparent 80%);
  -webkit-mask-image: radial-gradient(70% 60% at 50% 40%, #000 20%, transparent 80%);
  opacity: .5;
}
.hero-body { position: relative; flex: 1; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: center; gap: 24px; }
.hero-copy { position: relative; z-index: 2; padding: 64px 0 48px; }
.hero h1 { font-size: clamp(52px, 6.4vw, 98px); max-width: 12.5ch; margin-top: 28px; }
.hero h1 em { background: linear-gradient(100deg, var(--heat-2) 0%, var(--heat) 40%, var(--cool) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .06em; }
.hero .lead { margin-top: 32px; max-width: 54ch; }
.hero-ctas { display: flex; gap: 14px; margin-top: 44px; flex-wrap: wrap; }
.hero-pillars { display: flex; gap: 36px; margin-top: 64px; padding-top: 28px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.hero-pillars div { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--text-2); }
.hero-pillars .mono { font-size: 11px; color: var(--heat); letter-spacing: .14em; }
.globe-wrap { position: relative; height: 100%; min-height: 560px; }
#globe { position: absolute; top: 50%; left: 50%; width: 124%; aspect-ratio: 1; transform: translate(-46%, -50%); cursor: grab; touch-action: pan-y; }
#globe:active { cursor: grabbing; }
.scroll-hint {
  position: absolute; left: var(--gutter); bottom: 30px;
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted);
}
.scroll-hint i { width: 1px; height: 36px; background: linear-gradient(var(--heat), transparent); animation: drip 2.2s infinite var(--ease); transform-origin: top; }
@keyframes drip { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* ---------- ticker ---------- */
.ticker { position: relative; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-1); overflow: hidden; }
.ticker-label {
  position: absolute; left: 0; top: 0; bottom: 0; z-index: 2;
  display: flex; align-items: center; gap: 10px; padding: 0 22px 0 var(--gutter);
  background: linear-gradient(90deg, var(--bg-1) 75%, transparent);
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-2);
}
.ticker-label .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--heat); box-shadow: 0 0 12px var(--heat); animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.ticker-track { display: flex; width: max-content; animation: marquee 80s linear infinite; padding-left: 280px; }
.ticker-item { display: flex; gap: 18px; padding: 16px 32px; font-family: var(--font-mono); font-size: 12px; color: var(--muted); white-space: nowrap; border-right: 1px solid var(--line); }
.ticker-item b { color: var(--text-2); font-weight: 500; }
.ticker-item .h { color: var(--heat-2); }
.ticker-item .c { color: var(--cool); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- 01 second summer ---------- */
.summer-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.25fr); gap: 72px; align-items: start; }
.chart-card {
  position: relative;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(180deg, var(--bg-2), var(--bg-1));
  padding: 26px 26px 18px;
}
.chart-card-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 14px; flex-wrap: wrap; }
.chart-card-head .t { font-size: 14px; color: var(--text-2); }
.legend { display: flex; gap: 18px; flex-wrap: wrap; font-size: 12px; color: var(--muted); margin-top: 10px; }
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.legend i { width: 18px; height: 2px; border-radius: 2px; display: inline-block; }
.svg-text { font-family: var(--font-mono); font-size: 11px; fill: var(--muted); letter-spacing: .02em; }
.svg-text-sans { font-family: var(--font-sans); }

.sites-split { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 0; margin-top: 96px; }
.site-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; background: var(--bg-1); position: relative; overflow: hidden; }
.site-card::after { content: ""; position: absolute; inset: auto -40% -60% auto; width: 260px; height: 260px; border-radius: 50%; filter: blur(60px); opacity: .25; }
.site-card.a::after { background: var(--heat); }
.site-card.b::after { background: #4a5867; }
.site-card .mono { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.site-card h4 { font-family: var(--font-display); font-weight: 400; font-size: 28px; margin: 12px 0 8px; }
.site-card p { margin: 0; color: var(--text-2); font-size: 15px; }
.site-card.a h4 { color: var(--heat-2); }
.site-card.b h4 { color: var(--text-2); }
.gap-link { position: relative; width: 220px; height: 2px; display: flex; align-items: center; justify-content: center; }
.gap-link::before { content: ""; position: absolute; left: 0; right: 0; top: 0; border-top: 1px dashed var(--line-3); }
.gap-link span {
  position: relative; z-index: 1; background: var(--bg); padding: 6px 12px; border: 1px solid var(--line-2); border-radius: 100px;
  font-family: var(--font-mono); font-size: 11px; color: var(--warn); letter-spacing: .08em; white-space: nowrap;
}
.question { margin-top: 120px; text-align: center; }
.question p { font-family: var(--font-display); font-size: clamp(28px, 3.4vw, 46px); line-height: 1.18; max-width: 26ch; margin: 0 auto; color: var(--text); }
.question p .muted { color: var(--muted); }

/* ---------- 02 record chain ---------- */
.chain-wrap { border: 1px solid var(--line); border-radius: 24px; background: var(--bg-1); padding: 40px; position: relative; overflow: hidden; }
.chain-top { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 40px; flex-wrap: wrap; }
.switch { display: inline-flex; align-items: center; gap: 14px; font-size: 14px; color: var(--text-2); }
.switch-btn { width: 52px; height: 30px; border-radius: 100px; background: var(--bg-3); border: 1px solid var(--line-2); position: relative; transition: background .3s; }
.switch-btn::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--muted); transition: transform .35s var(--ease), background .3s; }
.switch-btn[aria-checked="true"] { background: rgba(91, 227, 207, 0.18); border-color: rgba(91, 227, 207, 0.5); }
.switch-btn[aria-checked="true"]::after { transform: translateX(22px); background: var(--cool); box-shadow: 0 0 12px var(--cool); }
.chain { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; position: relative; }
.chain-line { position: absolute; left: 4%; right: 4%; top: 30px; height: 1px; background: var(--line-2); overflow: hidden; }
.chain-line::after { content: ""; position: absolute; top: -1px; left: -20%; width: 20%; height: 3px; background: linear-gradient(90deg, transparent, var(--cool), transparent); animation: travel 3.2s linear infinite; }
@keyframes travel { to { left: 100%; } }
.chain-node { position: relative; display: flex; flex-direction: column; gap: 10px; transition: opacity .5s, filter .5s; }
.chain-node .ic {
  width: 60px; height: 60px; border-radius: 16px; display: grid; place-items: center;
  background: var(--bg-2); border: 1px solid var(--line-2); position: relative; z-index: 1;
  transition: border-color .4s, box-shadow .4s;
}
.chain-node .ic svg { width: 26px; height: 26px; stroke: var(--text-2); fill: none; stroke-width: 1.5; }
.chain-node .k { font-family: var(--font-mono); font-size: 11px; color: var(--muted); letter-spacing: .1em; text-transform: uppercase; margin-top: 8px; }
.chain-node .n { font-size: 15px; font-weight: 500; }
.chain-node .v { font-family: var(--font-mono); font-size: 12px; letter-spacing: -0.01em; color: var(--text-2); padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); }
.chain-node.after .ic { border-color: rgba(91, 227, 207, 0.45); box-shadow: 0 0 24px rgba(91, 227, 207, 0.15); }
.chain-node.after .ic svg { stroke: var(--cool); }
.chain-node.after .v { color: var(--cool-2); border-color: rgba(91, 227, 207, 0.2); }
.chain-bracket { grid-column: 4 / 7; margin-top: 18px; border-top: 1px solid rgba(91, 227, 207, 0.4); position: relative; padding-top: 12px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--cool); text-align: center; transition: opacity .5s; }
.chain-bracket::before, .chain-bracket::after { content: ""; position: absolute; top: -6px; width: 1px; height: 6px; background: rgba(91, 227, 207, 0.4); }
.chain-bracket::before { left: 0; } .chain-bracket::after { right: 0; }

.chain-wrap.off .chain-node.lost { opacity: .22; filter: grayscale(1); }
.chain-wrap.off .chain-node.lost .v { text-decoration: line-through; }
.chain-wrap.off .chain-bracket { opacity: 0.15; }
.chain-wrap.off .chain-line::after { background: linear-gradient(90deg, transparent, var(--warn), transparent); }

.learn { margin-top: 40px; display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center; padding: 26px 28px; border-radius: 16px; border: 1px solid rgba(91, 227, 207, 0.25); background: linear-gradient(90deg, rgba(91, 227, 207, 0.07), transparent 70%); transition: border-color .5s, background .5s; }
.learn .tag { color: var(--cool); border-color: rgba(91, 227, 207, 0.35); }
.learn p { margin: 0; font-size: 17px; color: var(--text); }
.learn .off-text, .chain-wrap.off .learn .on-text { display: none; }
.chain-wrap.off .learn .off-text { display: block; }
.learn .tag-off, .chain-wrap.off .learn .tag-on { display: none; }
.chain-wrap.off .learn .tag-off { display: inline-flex; color: var(--warn); border-color: rgba(255, 93, 108, 0.4); }
.chain-wrap.off .learn .tag-off .dot { background: var(--warn); box-shadow: 0 0 10px var(--warn); }
.chain-wrap.off .learn { border-color: rgba(255, 93, 108, 0.3); background: linear-gradient(90deg, rgba(255, 93, 108, 0.08), transparent 70%); }

.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-top: 64px; }
.principle { background: var(--bg); padding: 34px 30px; }
.principle .mono { font-size: 11px; color: var(--heat); letter-spacing: .14em; }
.principle h4 { font-family: var(--font-display); font-weight: 400; font-size: 32px; margin: 14px 0 8px; }
.principle p { margin: 0; color: var(--text-2); font-size: 15px; }

/* ---------- quote ---------- */
.quote-band { padding: 180px 0; text-align: center; position: relative; overflow: hidden; border-top: 1px solid var(--line); }
.quote-band::before { content: ""; position: absolute; left: 50%; top: 50%; width: 900px; height: 900px; transform: translate(-50%, -50%); background: radial-gradient(circle, rgba(255, 122, 61, 0.12), transparent 60%); pointer-events: none; }
.quote-band blockquote { margin: 0 auto; max-width: 22ch; font-family: var(--font-display); font-size: clamp(36px, 5vw, 72px); line-height: 1.08; letter-spacing: -0.01em; position: relative; }
.quote-band blockquote .soft { color: var(--muted); }
.quote-band cite { display: block; margin-top: 40px; font-style: normal; font-family: var(--font-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.sun-rings { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); pointer-events: none; opacity: .5; }

/* ---------- 03 triad ---------- */
.triad-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.9fr); gap: 72px; align-items: center; }
#triad { width: 100%; height: auto; overflow: visible; }
#triad .party { cursor: pointer; }
#triad .party .halo { transition: opacity .4s, stroke .4s; }
.split-lists { display: grid; gap: 18px; }
.list-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 28px; background: var(--bg-1); }
.list-card h5 { margin: 0 0 16px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; display: flex; align-items: center; gap: 10px; font-weight: 500; }
.list-card.shared h5 { color: var(--cool); }
.list-card.private h5 { color: var(--heat-2); }
.list-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.list-card li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; font-size: 15px; color: var(--text-2); }
.list-card li svg { width: 16px; height: 16px; margin-top: 4px; }
.three-q { margin-top: 96px; display: grid; grid-template-columns: 0.8fr repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.three-q > div { background: var(--bg); padding: 30px 28px; }
.three-q .intro { font-size: 15px; color: var(--muted); }
.three-q .q { font-family: var(--font-display); font-size: 26px; line-height: 1.2; }
.three-q .q .mono { display: block; font-size: 11px; color: var(--heat); letter-spacing: .14em; margin-bottom: 12px; font-family: var(--font-mono); }

/* ---------- 04 what / iso ---------- */
.what-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: 56px; align-items: center; }
#iso { width: 100%; height: auto; overflow: visible; }
.functions { display: grid; gap: 12px; }
.fn { display: grid; grid-template-columns: 44px 1fr; gap: 18px; padding: 22px; border: 1px solid var(--line); border-radius: 16px; background: var(--bg-1); transition: border-color .3s, background .3s, transform .4s var(--ease); }
.fn:hover { border-color: rgba(243, 234, 216, 0.3); transform: translateX(4px); }
.fn .ic { width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line-2); display: grid; place-items: center; background: var(--bg-2); }
.fn .ic svg { width: 20px; height: 20px; stroke: var(--ivory); fill: none; stroke-width: 1.5; }
.fn h4 { margin: 0 0 4px; font-size: 16px; font-weight: 500; display: flex; gap: 10px; align-items: baseline; }
.fn h4 .mono { font-size: 11px; color: var(--muted); }
.fn p { margin: 0; font-size: 14px; color: var(--text-2); }
.gov { margin-top: 72px; display: grid; grid-template-columns: auto 1fr; gap: 32px; align-items: center; padding: 32px 36px; border-radius: 20px; border: 1px solid var(--line-2); background: radial-gradient(120% 200% at 0% 0%, rgba(243, 234, 216, 0.06), transparent 50%), var(--bg-1); }
.gov p { margin: 0; font-size: 18px; color: var(--text); max-width: 80ch; }
.gov-seal { width: 72px; height: 72px; }

/* ---------- statement ---------- */
.statement { padding: 200px 0; border-top: 1px solid var(--line); position: relative; overflow: hidden; }
.statement canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .9; }
.statement .container { position: relative; }
.statement h2 { font-size: clamp(40px, 5.8vw, 86px); max-width: 18ch; line-height: 1.04; }
.statement h2 em { color: var(--cool-2); }
.not-row { display: flex; gap: 40px; margin-top: 56px; flex-wrap: wrap; align-items: center; font-size: 18px; }
.not-row .x { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--warn); text-decoration-thickness: 1px; }
.not-row .y { color: var(--text); display: inline-flex; align-items: center; gap: 12px; }
.not-row .y::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--cool); box-shadow: 0 0 14px var(--cool); }

/* ---------- 05 how ---------- */
.how { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 80px; }
.steps { display: flex; flex-direction: column; }
.step { min-height: 78vh; display: flex; flex-direction: column; justify-content: center; padding: 40px 0; opacity: .28; transition: opacity .6s var(--ease); }
.step.active { opacity: 1; }
.step .num { font-family: var(--font-mono); font-size: 12px; letter-spacing: .14em; color: var(--heat); display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.step .num::after { content: ""; flex: 0 0 60px; height: 1px; background: var(--line-3); }
.step h3 { font-family: var(--font-display); font-weight: 400; font-size: clamp(32px, 3.4vw, 48px); line-height: 1.08; margin: 0 0 22px; }
.step p { margin: 0; color: var(--text-2); max-width: 52ch; }
.step .note { margin-top: 24px; padding: 16px 18px; border-left: 2px solid var(--cool); background: rgba(91, 227, 207, 0.05); font-size: 15px; color: var(--text); border-radius: 0 10px 10px 0; }
.stage-col { position: relative; }
.stage { position: sticky; top: 12vh; height: 76vh; border: 1px solid var(--line); border-radius: 24px; background: radial-gradient(100% 80% at 50% 0%, rgba(255, 255, 255, 0.03), transparent 60%), var(--bg-1); overflow: hidden; }
.stage-progress { position: absolute; top: 22px; left: 24px; right: 24px; display: flex; gap: 6px; z-index: 2; }
.stage-progress i { flex: 1; height: 2px; background: var(--line-2); border-radius: 2px; overflow: hidden; position: relative; }
.stage-progress i::after { content: ""; position: absolute; inset: 0; background: var(--heat); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); }
.stage-progress i.on::after { transform: scaleX(1); }
.panel { position: absolute; inset: 0; padding: 56px 28px 28px; display: flex; align-items: center; justify-content: center; opacity: 0; transform: scale(.97); transition: opacity .7s var(--ease), transform .7s var(--ease); pointer-events: none; }
.panel.active { opacity: 1; transform: none; pointer-events: auto; }
.panel svg { width: 100%; height: 100%; max-height: 100%; overflow: visible; }
.step-visual { display: none; }

/* ---------- 06 three values ---------- */
.values-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
#radial { width: 100%; height: auto; overflow: visible; }
.value-cards { display: grid; gap: 14px; }
.value-card { position: relative; padding: 26px 28px 26px 84px; border: 1px solid var(--line); border-radius: 18px; background: var(--bg-1); transition: border-color .35s, background .35s; cursor: default; }
.value-card .idx { position: absolute; left: 26px; top: 26px; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-mono); font-size: 12px; border: 1px solid var(--line-2); }
.value-card h4 { margin: 0 0 4px; font-size: 13px; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .12em; font-weight: 500; }
.value-card .q { font-family: var(--font-display); font-size: 26px; line-height: 1.2; margin-bottom: 8px; }
.value-card p { margin: 0; color: var(--text-2); font-size: 15px; }
.value-card[data-v="0"] h4 { color: var(--heat-2); }
.value-card[data-v="1"] h4 { color: var(--ivory); }
.value-card[data-v="2"] h4 { color: var(--cool); }
.value-card.hl { border-color: var(--line-3); background: var(--bg-2); }

/* ---------- 07 milestone ---------- */
.milestones { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; position: relative; margin-top: 24px; }
.milestones::before { content: ""; position: absolute; left: 0; right: 0; top: 23px; height: 1px; background: var(--line-2); }
.ms-fill { position: absolute; left: 0; top: 23px; height: 1px; width: 0; background: linear-gradient(90deg, var(--heat), var(--ivory), var(--cool)); transition: width 2.4s var(--ease); }
.milestones.in .ms-fill { width: 100%; }
.ms { position: relative; padding-right: 40px; }
.ms .dot { width: 47px; height: 47px; border-radius: 50%; border: 1px solid var(--line-3); background: var(--bg); display: grid; place-items: center; position: relative; z-index: 1; transition: border-color .6s, box-shadow .6s; }
.ms .dot svg { width: 18px; height: 18px; stroke: var(--text); fill: none; stroke-width: 2; opacity: 0; transition: opacity .5s; }
.milestones.in .ms .dot { border-color: var(--ivory); box-shadow: 0 0 30px rgba(243, 234, 216, 0.2); }
.milestones.in .ms .dot svg { opacity: 1; }
.milestones.in .ms:nth-child(3) .dot, .milestones.in .ms:nth-child(3) .dot svg { transition-delay: .8s; }
.milestones.in .ms:nth-child(4) .dot, .milestones.in .ms:nth-child(4) .dot svg { transition-delay: 1.6s; }
.ms .mono { display: block; margin: 28px 0 10px; font-size: 11px; color: var(--muted); letter-spacing: .14em; text-transform: uppercase; }
.ms h4 { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: clamp(26px, 2.4vw, 34px); line-height: 1.15; }
.ms-foot { margin-top: 72px; font-size: 19px; color: var(--text-2); max-width: 64ch; }

/* ---------- 08 closing ---------- */
.closing-grid { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: 72px; align-items: center; }
#reprise { width: 100%; height: auto; overflow: visible; }
.finale { text-align: center; padding: 120px 0 40px; }
.finale p { font-family: var(--font-display); font-size: clamp(34px, 4.6vw, 66px); line-height: 1.1; max-width: 22ch; margin: 0 auto; }
.finale p em { background: linear-gradient(100deg, var(--heat-2), var(--cool)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- join ---------- */
.join { padding: 140px 0 160px; border-top: 1px solid var(--line); position: relative; overflow: hidden; }
.join::before { content: ""; position: absolute; left: 50%; bottom: -400px; width: 1200px; height: 800px; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(255, 122, 61, 0.12), rgba(91, 227, 207, 0.06) 50%, transparent); pointer-events: none; }
.join-head { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: end; margin-bottom: 56px; position: relative; }
.join-head .h2 { max-width: 16ch; }
.roles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; position: relative; }
.role { text-align: left; padding: 28px 26px 26px; border: 1px solid var(--line); border-radius: 18px; background: rgba(8, 11, 16, 0.8); display: flex; flex-direction: column; gap: 14px; min-height: 230px; transition: border-color .3s, transform .4s var(--ease), background .3s; }
.role:hover, .role.sel { border-color: var(--line-3); transform: translateY(-4px); background: var(--bg-2); }
.role.sel { border-color: var(--heat); box-shadow: 0 0 0 1px var(--heat) inset; }
.role .mono { font-size: 11px; color: var(--muted); letter-spacing: .14em; }
.role h4 { margin: 0; font-size: 19px; font-weight: 500; }
.role p { margin: 0; font-size: 14px; color: var(--text-2); flex: 1; }
.role .go { font-size: 13px; color: var(--heat-2); display: flex; align-items: center; gap: 8px; }
.join-cta { margin-top: 40px; display: flex; gap: 14px; align-items: center; flex-wrap: wrap; position: relative; }
.join-cta .hint { font-size: 14px; color: var(--muted); }

/* ---------- footer ---------- */
footer { border-top: 1px solid var(--line); padding: 64px 0 48px; color: var(--muted); font-size: 14px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; }
.foot-grid h6 { margin: 0 0 14px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-2); font-weight: 500; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot-grid a:hover { color: var(--text); }
.foot-note { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 24px; font-size: 12px; flex-wrap: wrap; }
.foot-note p { margin: 0; max-width: 80ch; }
.foot-word { font-family: "Instrument Serif", serif; font-size: clamp(80px, 17vw, 260px); line-height: .8; letter-spacing: -0.03em; color: transparent; -webkit-text-stroke: 1px var(--line-2); margin-top: 64px; white-space: nowrap; user-select: none; text-align: center; }

/* ---------- svg animation helpers ---------- */
.draw { transition: stroke-dashoffset 2.4s var(--ease); }
.flow-dash { stroke-dasharray: 3 7; animation: dash 1.4s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -20; } }
.flow-dash.slow { animation-duration: 2.6s; }
.spin { transform-box: fill-box; transform-origin: center; animation: spin 24s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.breathe { animation: breathe 3s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes breathe { 50% { opacity: .45; } }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
  .nav-links { display: none; }
  .section-head, .join-head { grid-template-columns: 1fr; gap: 28px; }
  .section-head .body { justify-self: start; }
  .summer-grid, .triad-grid, .what-grid, .values-grid, .closing-grid { grid-template-columns: 1fr; gap: 56px; }
  .roles { grid-template-columns: repeat(2, 1fr); }
  .three-q { grid-template-columns: 1fr 1fr; }
  .three-q .intro { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .hero-body { grid-template-columns: 1fr; }
  .globe-wrap { position: absolute; inset: 0; min-height: 0; opacity: .55; pointer-events: none; }
  #globe { width: 150vw; max-width: none; left: 60%; top: 52%; transform: translate(-50%, -50%); }
  .how { grid-template-columns: 1fr; gap: 0; }
  .stage-col { display: none; }
  .step { min-height: 0; opacity: 1; padding: 48px 0; border-top: 1px solid var(--line); }
  .step-visual { display: block; margin-top: 32px; border: 1px solid var(--line); border-radius: 20px; background: var(--bg-1); padding: 18px; }
  .step-visual .panel { position: static; opacity: 1; transform: none; padding: 0; }
  .chain { grid-template-columns: repeat(3, 1fr); row-gap: 32px; }
  .chain-line { display: none; }
  .chain-bracket { grid-column: 1 / -1; }
  .principles { grid-template-columns: 1fr; }
  .sites-split { grid-template-columns: 1fr; gap: 0; }
  .gap-link { width: 2px; height: 72px; margin: 0 auto; }
  .gap-link::before { left: 0; right: auto; top: 0; bottom: 0; border-top: 0; border-left: 1px dashed var(--line-3); }
  .milestones { grid-template-columns: 1fr; gap: 40px; }
  .milestones::before, .ms-fill { display: none; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-grid > div:first-child { grid-column: 1 / -1; }
  .gov { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  :root { --gutter: 16px; }
  body { font-size: 16px; }
  .section { padding: 104px 0; }
  .section-head { margin-bottom: 48px; }
  .nav .btn { display: none; }
  .brand-logo { height: 24px; }
  .hero h1 { font-size: clamp(44px, 12vw, 60px); }
    .hero-pillars { gap: 20px; margin-top: 44px; }
  .hero-ctas .btn { flex: 1 1 auto; justify-content: center; }
  .chain-wrap { padding: 24px 18px; }
  .chain { grid-template-columns: repeat(2, 1fr); }
  .learn { grid-template-columns: 1fr; gap: 14px; }
  .roles, .three-q { grid-template-columns: 1fr; }
  .quote-band, .statement { padding: 120px 0; }
  .chart-card { padding: 18px 14px 14px; }
  .site-card { padding: 22px; }
  .gov { padding: 24px; }
  .foot-grid { grid-template-columns: 1fr; }
  .value-card { padding: 22px 20px 22px 72px; }
  .value-card .idx { left: 18px; top: 22px; }
}

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

/* ---------- visualization states ---------- */
.draw { stroke-dasharray: 1 1; stroke-dashoffset: 1; transition: stroke-dashoffset 2.6s var(--ease) .3s; }
.in .draw { stroke-dashoffset: 0; }
.fade { opacity: 0; transition: opacity 1.2s var(--ease) .2s; }
.fade.late { transition-delay: 2.2s; }
.in .fade { opacity: 1; }

#triad .party-flow, #triad .party { transition: opacity .4s; }
#triad[data-active] .party-flow, #triad[data-active] .party { opacity: .22; }
#triad[data-active="op"] [data-p="op"], #triad[data-active="mf"] [data-p="mf"], #triad[data-active="mt"] [data-p="mt"] { opacity: 1; }

#radial .branch { transition: opacity .4s; }
#radial[data-active] .branch { opacity: .25; }
#radial[data-active="0"] .branch[data-v="0"], #radial[data-active="1"] .branch[data-v="1"], #radial[data-active="2"] .branch[data-v="2"] { opacity: 1; }
#radial .branch { cursor: default; }

.grow-x, .grow-y { transform-box: fill-box; transition: transform 1.2s var(--ease); }
.grow-x { transform: scaleX(0); transform-origin: left; }
.grow-y { transform: scaleY(0); }
.panel.active .grow-x { transform: none; }
.panel.active .grow-y { transform: none; }
.ledger-row { opacity: 0; transition: opacity .6s var(--ease); }
.panel.active .ledger-row { opacity: 1; }

#summerChart .svg-text { font-size: 12.5px; }
#summerChart .svg-text-sans { font-family: var(--font-sans); }

#triad .svg-text, #iso .svg-text, #radial .svg-text, #reprise .svg-text { font-size: 12px; }

/* what: full-width isometric stack, functions as a row beneath */
.what-grid { grid-template-columns: 1fr; gap: 48px; }
.what-grid > .reveal:first-child { max-width: 900px; width: 100%; margin: 0 auto; }
.functions { grid-template-columns: repeat(4, 1fr); }
.fn { grid-template-columns: 1fr; gap: 16px; }
@media (max-width: 1100px) { .functions { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .functions { grid-template-columns: 1fr; } .fn { grid-template-columns: 44px 1fr; } }

/* thesis links on the overview page */
.nav-links a.nav-thesis { color: var(--heat-2); }
.nav-links a.nav-thesis:hover { color: var(--text); }
.quote-band cite a { transition: color .2s; }
.quote-band cite a:hover { color: var(--heat-2); }
.thesis-link { display: inline-flex; align-items: center; gap: 10px; margin-top: 40px; font-size: 15px; color: var(--heat-2); border-bottom: 1px solid rgba(255, 179, 92, .35); padding-bottom: 4px; transition: color .2s, border-color .2s; }
.thesis-link svg { width: 15px; height: 15px; transition: transform .3s var(--ease); }
.thesis-link:hover { color: var(--text); border-color: var(--text-2); }
.thesis-link:hover svg { transform: translateX(3px); }
