/* EnerGPT — site.css. Editorial dark corporate identity.
   Deep navy + charcoal grounds, warm off-white type, one electric-blue accent, a whisper of film grain.
   Fonts are self-hosted (Inter variable, DM Mono). No external requests anywhere. */

@font-face { font-family: "Inter"; src: url("/assets/fonts/inter-variable.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "DM Mono"; src: url("/assets/fonts/dm-mono-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "DM Mono"; src: url("/assets/fonts/dm-mono-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --bg: #070B1A;          /* deep navy */
  --bg-2: #0A1022;
  --bg-3: #0F1730;
  --char: #121419;        /* charcoal */
  --char-2: #181B22;
  --ink: #F3EEE4;         /* warm off-white */
  --ink-2: #C6C0B3;
  --ink-3: #8C877C;
  --line: rgba(243, 238, 228, 0.10);
  --line-2: rgba(243, 238, 228, 0.20);
  --elec: #60A5FA;        /* electric blue — the accent, used sparingly */
  --elec-2: #3B82F6;
  --elec-deep: #1E40AF;
  --elec-soft: #93C5FD;
  --ice: #DBEAFE;
  --tint: rgba(30, 64, 175, 0.24);   /* deep electric undertone, gradients only */
  --tint-2: rgba(96, 165, 250, 0.055);
  --glow: rgba(96, 165, 250, 0.55);
  --rule: linear-gradient(90deg, rgba(243, 238, 228, 0) 0%, rgba(243, 238, 228, 0.20) 18%, rgba(243, 238, 228, 0.20) 82%, rgba(243, 238, 228, 0) 100%);
  /* film grain: a tiled noise layer, peaks near 4% white. Use as the first background layer. */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.92' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1.5 -.5'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23g)' opacity='.085'/%3E%3C/svg%3E");
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono: "DM Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-2: cubic-bezier(0.22, 1, 0.36, 1);
  --max: 1180px;
  --gutter: clamp(16px, 4vw, 44px);
  --nav-h: 72px;
  --mono-ls: .28em;
  --mono-ls-tight: .2em;
  color-scheme: dark;
}

/* ── reset ───────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); background: var(--bg); scrollbar-color: rgba(243, 238, 228, 0.18) var(--bg); }
body {
  margin: 0; background: var(--grain), var(--bg); color: var(--ink);
  font: 400 17px/1.6 var(--sans); font-feature-settings: "cv11", "ss01"; font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
  overflow-x: hidden; min-height: 100vh;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 800; letter-spacing: -0.03em; line-height: 1.02; color: var(--ink); text-wrap: balance; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--elec); outline-offset: 3px; box-shadow: 0 0 0 6px rgba(96, 165, 250, 0.16); }
a:focus-visible { border-radius: 3px; }
[tabindex="-1"]:focus, [tabindex="-1"]:focus-visible { outline: none; box-shadow: none; }
::selection { background: rgba(96, 165, 250, 0.34); color: #fff; }
[hidden] { display: none !important; }
.sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }

.mono { font-family: var(--mono); font-weight: 500; font-size: 11.5px; letter-spacing: var(--mono-ls); text-transform: uppercase; }
.skip { position: absolute; left: 16px; top: -48px; z-index: 100; padding: 10px 14px; background: var(--ink); color: var(--bg); border-radius: 4px; font-weight: 600; }
.skip:focus { top: 12px; }
.wrap { width: min(var(--max), 100% - 2 * var(--gutter)); margin-inline: auto; }
/* halos, ghost numerals and bleeding art may never widen a phone's viewport; vertical bleed and sticky stay free */
main, .foot { overflow-x: clip; }

/* ── type scale ──────────────────────────────────────────────────────── */
.eyebrow { font-family: var(--mono); font-weight: 500; font-size: 11.5px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--elec); margin: 0 0 22px; }
.h1 { font-size: clamp(40px, 7.4vw, 96px); font-weight: 850; letter-spacing: -0.04em; line-height: 0.98; }
.h2 { font-size: clamp(32px, 4.8vw, 62px); letter-spacing: -0.035em; }
.h3 { font-size: clamp(22px, 2.4vw, 30px); letter-spacing: -0.02em; line-height: 1.15; }
.lead { font-size: clamp(18px, 1.55vw, 22px); line-height: 1.5; color: var(--ink-2); max-width: 36em; text-wrap: pretty; }
.body { color: var(--ink-2); max-width: 38em; text-wrap: pretty; }
.muted { color: var(--ink-3); }

/* ── buttons ─────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 15px 24px; border-radius: 999px; min-height: 44px;
  background: var(--ink); color: var(--bg); font-weight: 600; font-size: 15.5px; letter-spacing: -0.005em;
  border: 1px solid var(--ink); box-shadow: 0 0 0 0 rgba(96, 165, 250, 0);
  transition: transform .5s var(--ease), background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease), box-shadow .6s var(--ease);
}
.btn:hover { background: #fff; border-color: #fff; transform: translateY(-1px); box-shadow: 0 14px 38px -16px rgba(96, 165, 250, 0.6), 0 0 0 1px rgba(96, 165, 250, 0.08); }
.btn::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--elec-2); box-shadow: 0 0 8px rgba(59, 130, 246, 0.7); transition: transform .5s var(--ease); }
.btn:hover::after { transform: translateX(3px); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn--ghost:hover { background: rgba(243, 238, 228, 0.05); border-color: rgba(96, 165, 250, 0.45); box-shadow: 0 0 28px -10px rgba(96, 165, 250, 0.45); }
.btn--ghost::after { background: var(--ink-3); box-shadow: none; }
.btn--ghost:hover::after { background: var(--elec); box-shadow: 0 0 8px rgba(96, 165, 250, 0.8); }
.btn--sm { padding: 10px 18px; font-size: 14px; }
.link {
  display: inline-flex; align-items: center; gap: 10px; font-weight: 600; color: var(--ink);
  padding-bottom: 2px; border-bottom: 1px solid var(--line-2); transition: border-color .35s var(--ease), gap .4s var(--ease);
}
.link:hover { border-color: var(--elec); gap: 14px; }
.link::after { content: "→"; content: "→" / ""; color: var(--elec); font-weight: 500; }
.ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }
@media (max-width: 480px) { .ctas:has(.btn + .btn) .btn { flex: 1 1 100%; justify-content: center; } }

/* ── nav ─────────────────────────────────────────────────────────────── */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; transition: background .5s var(--ease), border-color .5s var(--ease), box-shadow .5s var(--ease); border-bottom: 1px solid transparent; }
.nav.is-scrolled, .nav.is-open { background: rgba(7, 11, 26, 0.74); -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4); border-color: var(--line); box-shadow: 0 18px 40px -30px rgba(0, 0, 0, 0.8); }
.nav__in { height: var(--nav-h); width: min(var(--max), 100% - 2 * var(--gutter)); margin-inline: auto; display: flex; align-items: center; gap: 36px; }
.brand { display: inline-flex; align-items: center; gap: 11px; position: relative; }
.brand::before { content: ""; position: absolute; inset: -7px -6px; }
.brand__word { font-weight: 800; font-size: 19px; letter-spacing: -0.03em; }
.mark { width: 28px; height: 28px; flex: none; fill: none; stroke: var(--ink); stroke-width: 2.6; stroke-linecap: round; }
.mark__live { stroke: var(--elec); }
.mark__node { fill: var(--elec); stroke: none; filter: drop-shadow(0 0 5px rgba(96, 165, 250, 0.8)); }
.nav__links { display: flex; gap: 30px; margin-left: auto; }
.nav__cta { white-space: nowrap; }
@media (min-width: 861px) and (max-width: 1023px) { .nav__in { gap: 22px; } .nav__links { gap: 20px; } }
/* home's first viewport carries the hero's cream pill; the nav's stays quiet until the page scrolls. Contact needs no link to itself. */
.page-home .nav:not(.is-scrolled) .nav__cta { background: transparent; color: var(--ink); border-color: var(--line-2); }
.page-home .nav:not(.is-scrolled) .nav__cta:hover { background: rgba(243, 238, 228, 0.05); border-color: rgba(96, 165, 250, 0.45); }
.page-contact .nav__cta { display: none; }
.nav__links a, .menu__links a { font-size: 15px; font-weight: 500; color: var(--ink-2); transition: color .3s var(--ease); position: relative; }
.nav__links a:hover, .nav__links a[aria-current="page"] { color: var(--ink); }
.nav__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -8px; height: 1px; background: var(--elec); box-shadow: 0 0 8px rgba(96, 165, 250, 0.7); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.nav__links a:hover::after { transform: scaleX(1); opacity: .5; }
.nav__links a[aria-current="page"]::after { transform: scaleX(1); opacity: 1; }
.nav__toggle { display: none; width: 44px; height: 44px; margin-right: -10px; flex-direction: column; justify-content: center; align-items: center; gap: 6px; border-radius: 50%; }
.nav__bar { display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 1px; transition: transform .45s var(--ease), opacity .3s; }
.nav.is-open .nav__bar:first-child { transform: translateY(4px) rotate(45deg); }
.nav.is-open .nav__bar:last-child { transform: translateY(-4px) rotate(-45deg); }
.menu { padding: 12px var(--gutter) 34px; border-top: 1px solid var(--line); }
.menu__links { display: grid; gap: 4px; margin-bottom: 22px; }
.menu__links a { display: block; padding: 14px 0; font-size: 26px; font-weight: 700; letter-spacing: -0.02em; color: var(--ink); border-bottom: 1px solid var(--line); }
.menu__links a[aria-current="page"] { color: var(--elec); }
.menu__cta { width: 100%; justify-content: center; }
.menu__tag { margin-top: 26px; color: var(--ink-3); text-wrap: balance; }
@media (max-width: 860px) {
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: flex; margin-left: auto; }
  .nav.is-open { background: var(--bg); bottom: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-backdrop-filter: none; backdrop-filter: none; transition-duration: 0s; }
  .menu:not([hidden]) .menu__links a, .menu:not([hidden]) .menu__cta { animation: menu-in .6s var(--ease) both; }
  .menu:not([hidden]) .menu__links a:nth-child(2) { animation-delay: .08s; }
  .menu:not([hidden]) .menu__links a:nth-child(3) { animation-delay: .16s; }
  .menu:not([hidden]) .menu__links a:nth-child(4) { animation-delay: .24s; }
  .menu:not([hidden]) .menu__links a:nth-child(5) { animation-delay: .32s; }
  .menu:not([hidden]) .menu__cta { animation-delay: .4s; }
  @keyframes menu-in { from { opacity: 0; transform: translate3d(0, 10px, 0); } }
}
@media (min-width: 861px) { .menu { display: none !important; } }

/* ── sections ────────────────────────────────────────────────────────── */
.sec { position: relative; padding: clamp(84px, 11vw, 150px) 0; }
.sec--tight { padding: clamp(60px, 7vw, 100px) 0; }
/* each tinted ground starts from its flat tone at the top edge, so joins and seams meet a clean colour */
.sec--char {
  background:
    var(--grain),
    linear-gradient(180deg, var(--char) 0, rgba(18, 20, 25, 0) 96px),
    radial-gradient(90% 70% at 12% 0%, rgba(243, 238, 228, 0.035), rgba(243, 238, 228, 0) 60%),
    radial-gradient(60% 50% at 100% 100%, var(--tint-2), rgba(96, 165, 250, 0) 70%),
    linear-gradient(180deg, var(--char) 0%, var(--char-2) 100%);
}
.sec--navy {
  background:
    var(--grain),
    linear-gradient(180deg, var(--bg-2) 0, rgba(10, 16, 34, 0) 120px),
    radial-gradient(120% 80% at 80% 0%, var(--tint), rgba(30, 64, 175, 0) 55%),
    radial-gradient(70% 60% at 0% 100%, var(--tint-2), rgba(96, 165, 250, 0) 70%),
    var(--bg-2);
}
.sec--line { border-top: 1px solid var(--line); border-image: var(--rule) 1; }
.sec__head { max-width: 760px; margin-bottom: clamp(44px, 6vw, 80px); }
.sec__head .lead { margin-top: 22px; }
.split { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.split--rev > :first-child { order: 2; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split--rev > :first-child { order: 0; } }
.hr { height: 1px; background: var(--rule); border: 0; margin: 0; }

/* ── hero ────────────────────────────────────────────────────────────── */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: grid; align-items: center; padding: calc(var(--nav-h) + 56px) 0 72px; overflow: hidden; isolation: isolate; }
.hero__field { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; }
.hero__veil { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(90deg, var(--bg) 0%, rgba(7, 11, 26, 0.92) 30%, rgba(7, 11, 26, 0.35) 55%, rgba(7, 11, 26, 0) 75%),
    linear-gradient(180deg, rgba(7, 11, 26, 0.6) 0%, rgba(7, 11, 26, 0) 25%, rgba(7, 11, 26, 0) 70%, var(--bg) 100%);
}
.hero__in { position: relative; width: min(var(--max), 100% - 2 * var(--gutter)); margin-inline: auto; }
.hero__copy { max-width: 720px; }
.hero__copy .lead { margin-top: 30px; }
.hero__strip { position: absolute; left: 0; right: 0; bottom: 26px; display: flex; justify-content: flex-start; align-items: center; width: min(var(--max), 100% - 2 * var(--gutter)); margin-inline: auto; color: var(--ink-3); font-family: var(--mono); font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; }
.hero__strip span + span::before { content: "·"; margin: 0 .8em; color: var(--ink-3); }
.hero__scroll { width: 1px; height: 44px; background: linear-gradient(180deg, var(--elec), transparent); position: absolute; right: var(--gutter); bottom: 72px; }
@media (max-width: 860px) {
  .hero { min-height: 92vh; min-height: 92svh; padding-top: calc(var(--nav-h) + 40px); }
  .hero__veil { background: linear-gradient(180deg, rgba(7, 11, 26, 0.80) 0%, rgba(7, 11, 26, 0.62) 45%, rgba(7, 11, 26, 0.22) 72%, var(--bg) 100%); }
  .hero__strip { display: none; }
  .hero__scroll { display: none; }
}
/* sub-page hero: a quiet aurora of deep current behind the headline, a horizon hairline under it */
.hero--page {
  min-height: auto; padding: calc(var(--nav-h) + clamp(64px, 10vw, 128px)) 0 clamp(56px, 7vw, 96px);
  background:
    radial-gradient(70% 90% at 88% -10%, rgba(30, 64, 175, 0.34), rgba(30, 64, 175, 0) 62%),
    radial-gradient(45% 60% at 62% 0%, rgba(96, 165, 250, 0.07), rgba(96, 165, 250, 0) 70%),
    radial-gradient(55% 80% at 0% 0%, rgba(15, 23, 48, 0.85), rgba(15, 23, 48, 0) 70%),
    var(--bg);
}
.hero--page::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; z-index: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(96, 165, 250, 0) 0%, rgba(96, 165, 250, 0.32) 50%, rgba(96, 165, 250, 0) 100%);
}
.hero--page .hero__veil { background: var(--grain), linear-gradient(180deg, rgba(7, 11, 26, 0) 0%, rgba(7, 11, 26, 0) 50%, var(--bg) 100%); }
.hero--page .hero__copy { max-width: 1040px; }

/* ── decisions (home) ────────────────────────────────────────────────── */
.decisions { display: grid; grid-template-columns: 1px 1fr; gap: 0 clamp(28px, 5vw, 72px); }
.rail { background: var(--line); position: relative; overflow: hidden; }
.rail::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, var(--elec), var(--elec-2)); transform-origin: top; transition: transform 2.2s var(--ease-2); }
html.js-armed .rail:not(.in)::after { transform: scaleY(0); }
.decision { display: grid; grid-template-columns: 64px 1fr; gap: 18px; padding: clamp(26px, 3.4vw, 42px) 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.decision:last-child { border-bottom: 0; }
.decision__n { font-family: var(--mono); font-size: 12px; letter-spacing: 0.2em; color: var(--elec); }
.decision h3 { font-size: clamp(28px, 4vw, 52px); letter-spacing: -0.035em; }
.decision p { margin-top: 12px; color: var(--ink-2); max-width: 34em; }
@media (max-width: 600px) { .decision { grid-template-columns: 1fr; gap: 8px; } }

/* ── statement block ─────────────────────────────────────────────────── */
.statement { font-size: clamp(28px, 4.2vw, 56px); font-weight: 700; letter-spacing: -0.035em; line-height: 1.08; max-width: 18em; text-wrap: balance; }
.statement em { font-style: normal; color: var(--elec); }
.statement + .body { margin-top: 28px; }

/* ── flux core ───────────────────────────────────────────────────────── */
.flux { width: min(460px, 86vw); margin-inline: auto; overflow: visible; }
.flux__halo { fill: var(--elec); opacity: .10; transform-box: fill-box; transform-origin: center; animation: fx-breathe 7s var(--ease-2) infinite; }
.flux__core { filter: drop-shadow(0 0 22px rgba(96, 165, 250, 0.55)); }
.flux__ring { fill: none; stroke: var(--line-2); stroke-width: 1; transform-box: fill-box; transform-origin: center; }
.flux__ring--1 { stroke-dasharray: 5 9; animation: fx-rot 70s linear infinite; }
.flux__ring--2 { stroke-dasharray: 1.5 13; animation: fx-rot 110s linear infinite reverse; }
.flux__ring--3 { stroke: var(--elec); stroke-width: 1.2; stroke-dasharray: 46 420; stroke-linecap: round; opacity: .9; animation: fx-rot 22s linear infinite; }
.flux__tick { stroke: var(--ink-2); stroke-width: 1.2; stroke-linecap: round; opacity: .25; animation: fx-tick 4.8s var(--ease-2) infinite; }
.flux__tick:nth-child(2)  { animation-delay: .4s } .flux__tick:nth-child(3)  { animation-delay: .8s } .flux__tick:nth-child(4)  { animation-delay: 1.2s }
.flux__tick:nth-child(5)  { animation-delay: 1.6s } .flux__tick:nth-child(6)  { animation-delay: 2s } .flux__tick:nth-child(7)  { animation-delay: 2.4s }
.flux__tick:nth-child(8)  { animation-delay: 2.8s } .flux__tick:nth-child(9)  { animation-delay: 3.2s } .flux__tick:nth-child(10) { animation-delay: 3.6s }
.flux__tick:nth-child(11) { animation-delay: 4s } .flux__tick:nth-child(12) { animation-delay: 4.4s }
.flux__sat { fill: var(--ink); transform-box: view-box; transform-origin: 160px 160px; animation: fx-rot 22s linear infinite; }
@keyframes fx-rot { to { transform: rotate(360deg); } }
@keyframes fx-breathe { 0%, 100% { transform: scale(1); opacity: .08; } 50% { transform: scale(1.18); opacity: .16; } }
@keyframes fx-tick { 0%, 60%, 100% { opacity: .22; stroke: var(--ink-2); } 12% { opacity: 1; stroke: var(--elec); } }
.traits { display: grid; gap: 0; margin-top: 36px; border-top: 1px solid var(--line); }
.trait { display: grid; grid-template-columns: 26px 1fr; gap: 16px; align-items: baseline; padding: 18px 0; border-bottom: 1px solid var(--line); }
.trait__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--elec); box-shadow: 0 0 10px rgba(96, 165, 250, .7); transform: translateY(-2px); }
.trait h3 { font-size: 20px; letter-spacing: -0.02em; }
.trait p { color: var(--ink-3); margin-top: 4px; font-size: 15.5px; }
.status { display: inline-flex; align-items: center; gap: 10px; margin-top: 30px; color: var(--ink-3); }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--elec); box-shadow: 0 0 0 0 rgba(96, 165, 250, .6); animation: fx-ping 2.8s var(--ease-2) infinite; }
@keyframes fx-ping { 0% { box-shadow: 0 0 0 0 rgba(96, 165, 250, .55); } 70%, 100% { box-shadow: 0 0 0 10px rgba(96, 165, 250, 0); } }

/* ── domain tiles ────────────────────────────────────────────────────── */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.tile { background: var(--bg); padding: clamp(24px, 2.6vw, 36px); display: flex; flex-direction: column; gap: 16px; min-height: 250px; position: relative; transition: background .5s var(--ease); }
.tile:hover { background: var(--bg-3); }
.tile__top { display: flex; justify-content: space-between; align-items: center; color: var(--ink-3); font-family: var(--mono); font-size: 11px; letter-spacing: .2em; }
.tile h3 { font-size: 22px; letter-spacing: -0.02em; }
.tile p { color: var(--ink-2); font-size: 15.5px; flex: 1; }
.tile .link { align-self: flex-start; font-size: 14.5px; }
.tile::after { content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%; background: var(--elec); box-shadow: 0 0 10px rgba(96, 165, 250, .6); transform: scaleX(0); transform-origin: left; transition: transform .7s var(--ease); }
.tile:hover::after { transform: scaleX(1); }
.glyph { width: 30px; height: 30px; fill: none; stroke: var(--ink-2); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; transition: stroke .4s var(--ease); }
.tile:hover .glyph, .domain .glyph { stroke: var(--elec); }
.sec--char .tile { background: var(--char); }
.sec--char .tile:hover { background: var(--char-2); }
@media (max-width: 960px) { .tiles { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .tiles { grid-template-columns: 1fr; } .tile { min-height: 0; } }

/* ── lifecycle (platform) ────────────────────────────────────────────── */
.lifecycle { margin: clamp(36px, 5vw, 64px) 0 0; }
.lifecycle svg { width: 100%; height: auto; overflow: visible; }
.lc__base { stroke: var(--line-2); stroke-width: 1; }
.lc__flow { stroke: var(--elec); stroke-width: 1.6; stroke-linecap: round; stroke-dasharray: 90 1110; animation: lc-flow 9s linear infinite; filter: drop-shadow(0 0 6px rgba(96, 165, 250, .7)); }
.lc__flow--b { animation-delay: -4.5s; opacity: .7; }
@keyframes lc-flow { from { stroke-dashoffset: 1200; } to { stroke-dashoffset: 0; } }
.lc__node { fill: var(--bg); stroke: var(--ink-2); stroke-width: 1.4; }
.lc__ring { fill: none; stroke: var(--elec); stroke-width: 1; opacity: 0; transform-box: fill-box; transform-origin: center; animation: lc-ring 9s var(--ease-2) infinite; }
.lc__stem { stroke: var(--line-2); stroke-width: 1; }
.lc__cap { fill: var(--ink-3); }
.lc__ring:nth-of-type(1) { animation-delay: 0s } .lc__ring:nth-of-type(2) { animation-delay: 1.5s } .lc__ring:nth-of-type(3) { animation-delay: 3s }
.lc__ring:nth-of-type(4) { animation-delay: 4.5s } .lc__ring:nth-of-type(5) { animation-delay: 6s } .lc__ring:nth-of-type(6) { animation-delay: 7.5s }
@keyframes lc-ring { 0% { opacity: .9; transform: scale(.4); } 30%, 100% { opacity: 0; transform: scale(2.6); } }
.stages { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin-top: 18px; }
.stage { font-family: var(--mono); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-3); text-align: center; }
.stage b { display: block; font-family: var(--sans); font-weight: 600; font-size: 14px; letter-spacing: -0.01em; color: var(--ink); text-transform: none; margin-bottom: 4px; }
@media (max-width: 640px) { .stages { grid-template-columns: repeat(3, 1fr); gap: 16px 8px; } .stage { text-align: left; } }

/* ── principles ──────────────────────────────────────────────────────── */
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 56px); }
.principle { border-top: 1px solid var(--line-2); padding-top: 22px; }
.principle .mono { color: var(--elec); display: block; margin-bottom: 20px; }
.principle h3 { font-size: 24px; letter-spacing: -0.025em; }
.principle p { color: var(--ink-2); margin-top: 12px; font-size: 16px; }
@media (max-width: 760px) { .principles { grid-template-columns: 1fr; } }

/* ── applications page ───────────────────────────────────────────────── */
.jump { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 34px; }
.jump a { font-family: var(--mono); font-size: 11.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-3); padding: 6px 0; border-bottom: 1px solid transparent; transition: color .3s, border-color .3s; }
.jump a:hover { color: var(--ink); border-color: var(--elec); }
.domain { display: grid; grid-template-columns: 180px 1fr; gap: clamp(24px, 5vw, 80px); padding: clamp(48px, 6vw, 88px) 0; border-top: 1px solid var(--line); scroll-margin-top: calc(var(--nav-h) + 12px); }
.domain__side { display: grid; gap: 18px; align-content: start; }
.domain__n { font-family: var(--mono); font-size: 12px; letter-spacing: .22em; color: var(--elec); }
.domain .glyph { width: 56px; height: 56px; stroke-width: 1.1; }
.domain h2 { font-size: clamp(30px, 3.6vw, 46px); letter-spacing: -0.03em; }
.domain__claim { margin-top: 14px; font-size: clamp(19px, 1.7vw, 24px); font-weight: 600; letter-spacing: -0.02em; color: var(--ink); max-width: 24em; }
.domain .body { margin-top: 16px; }
@media (max-width: 760px) { .domain { grid-template-columns: 1fr; gap: 20px; } .domain__side { grid-auto-flow: column; justify-content: start; align-items: center; } }

/* ── notices, cards, empty states ────────────────────────────────────── */
.card { border: 1px solid var(--line); background: linear-gradient(180deg, rgba(243, 238, 228, 0.025), rgba(243, 238, 228, 0) 40%), var(--bg-2); padding: clamp(26px, 3vw, 40px); border-radius: 6px; box-shadow: inset 0 1px 0 rgba(243, 238, 228, 0.04); }
.notice { display: grid; grid-template-columns: 10px 1fr; gap: 16px; align-items: start; }
.notice::before { content: ""; width: 8px; height: 8px; margin-top: 8px; border-radius: 50%; background: var(--ink-3); }
.notice--staging::before { background: var(--elec); box-shadow: 0 0 10px rgba(96, 165, 250, .6); }
.notice h3 { font-size: 20px; letter-spacing: -0.02em; line-height: 1.2; }
.notice p { margin-top: 8px; color: var(--ink-2); }
.empty { border: 1px dashed var(--line-2); padding: clamp(40px, 6vw, 72px) var(--gutter); text-align: center; color: var(--ink-3); border-radius: 6px; }
.empty p { font-size: 18px; }

/* ── closing band ────────────────────────────────────────────────────── */
.close { text-align: left; }
.close .h2 { max-width: 14em; }
.close .body { margin-top: 18px; }

/* ── footer ──────────────────────────────────────────────────────────── */
.foot { position: relative; padding: 0 0 44px; margin-top: 0; background: var(--grain), linear-gradient(180deg, var(--char) 0%, #0E1015 100%); }
.foot__current { height: 1px; background: var(--line); overflow: hidden; position: relative; }
.foot__current span { position: absolute; top: 0; left: 0; width: 30%; height: 100%; background: linear-gradient(90deg, transparent, var(--elec), var(--ice), var(--elec), transparent); box-shadow: 0 0 10px rgba(96, 165, 250, .7); transform: translateX(-100%); animation: current 7s linear infinite; }
@keyframes current { from { transform: translateX(-100%); } to { transform: translateX(333.34%); } }
.foot__in { width: min(var(--max), 100% - 2 * var(--gutter)); margin-inline: auto; display: flex; justify-content: space-between; gap: 40px; padding: 56px 0 40px; flex-wrap: wrap; }
.foot__tag { margin-top: 16px; color: var(--ink-3); max-width: 26em; }
.foot__links { display: flex; flex-wrap: wrap; gap: 0 28px; align-content: start; }
.foot__links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink-2); font-size: 15px; font-weight: 500; transition: color .3s var(--ease); }
.foot__links a:hover { color: var(--ink); }
.foot__fine { width: min(var(--max), 100% - 2 * var(--gutter)); margin-inline: auto; color: var(--ink-3); font-size: 12px; letter-spacing: .14em; line-height: 1.8; }
.foot__fine span { display: inline-block; }
@media (max-width: 600px) { .foot__fine { font-size: 12.5px; } }

/* ════════════════════════════════════════════════════════════════════════
   MOTION GRAMMAR — shared primitives every section may use.
   Natural styles are the composed final frame. Hidden states exist only under
   html.js-armed, which motion.js adds after it has registered its targets.
   ════════════════════════════════════════════════════════════════════════ */

/* ── section tag  [ 01 — LABEL ]  hairline draws, then the text arrives ── */
.tag { display: flex; align-items: center; gap: 14px; margin: 0 0 24px; font-family: var(--mono); font-weight: 500; font-size: 11.5px; letter-spacing: 0.28em; text-transform: uppercase; line-height: 1.5; color: var(--ink-2); }
.tag::before { content: ""; flex: none; width: 32px; height: 1px; background: linear-gradient(90deg, rgba(96, 165, 250, 0.25), var(--elec)); box-shadow: 0 0 8px rgba(96, 165, 250, 0.55); transform-origin: left center; }
.tag__t { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 0 .55em; }
.tag__i { color: var(--elec); }
.tag__s { color: var(--ink-3); }
.tag__l { color: var(--ink-2); }

/* ── gradient tail on a headline phrase: off-white into electric ──────── */
.grad-tail {
  background-image: linear-gradient(96deg, var(--ink) 0%, var(--ice) 30%, var(--elec-soft) 64%, var(--elec) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
  -webkit-box-decoration-break: slice; box-decoration-break: slice; padding-bottom: .08em;
}

/* ── ghost numeral: giant, faint, behind the section ──────────────────── */
.sec:has(.ghost-num), .hero:has(.ghost-num) { isolation: isolate; }
.ghost-num {
  position: absolute; z-index: -1; top: clamp(18px, 4vw, 56px); right: calc(var(--gutter) - 0.04em);
  font-family: var(--sans); font-weight: 200; font-size: clamp(132px, 26vw, 360px); line-height: .8; letter-spacing: -0.06em;
  font-variant-numeric: tabular-nums lining-nums; white-space: nowrap; max-width: calc(100% - 2 * var(--gutter)); overflow: hidden;
  background-image: linear-gradient(180deg, rgba(243, 238, 228, 0.10) 0%, rgba(147, 197, 253, 0.05) 45%, rgba(243, 238, 228, 0) 88%);
  -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
  pointer-events: none; user-select: none; -webkit-user-select: none;
}

/* ── bloom: a soft radial halo behind its host (static paint, no blur filter) ── */
:where(.bloom) { position: relative; isolation: isolate; }
.bloom { --bloom-rgb: 243, 238, 228; --bloom-a: 0.10; }
.bloom--blue { --bloom-rgb: 96, 165, 250; --bloom-a: 0.30; }
.bloom--ice { --bloom-rgb: 219, 234, 254; --bloom-a: 0.16; }
.bloom--deep { --bloom-rgb: 30, 64, 175; --bloom-a: 0.55; }
.bloom::before {
  content: ""; position: absolute; inset: var(--bloom-inset, -28%); z-index: -1; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side,
    rgba(var(--bloom-rgb), var(--bloom-a)) 0%,
    rgba(var(--bloom-rgb), calc(var(--bloom-a) * 0.62)) 26%,
    rgba(var(--bloom-rgb), calc(var(--bloom-a) * 0.28)) 50%,
    rgba(var(--bloom-rgb), calc(var(--bloom-a) * 0.08)) 72%,
    rgba(var(--bloom-rgb), 0) 100%);
}

/* ── giant wordmark: words rise in an 80ms cascade, glow under the pointer ── */
.giant { margin: 0; font-size: clamp(54px, 12.6vw, 196px); font-weight: 850; letter-spacing: -0.058em; line-height: .9; color: var(--ink); text-wrap: balance; }
.giant--caps { text-transform: uppercase; letter-spacing: -0.045em; }
.giant__w { display: inline-block; transition: filter .6s var(--ease-2), color .6s var(--ease-2); }
.giant__w:hover { color: #fff; filter: drop-shadow(0 0 22px rgba(96, 165, 250, 0.6)) drop-shadow(0 0 2px rgba(219, 234, 254, 0.55)); }
.giant .grad-tail { padding-bottom: .1em; }

/* ── kinetic headline: words wipe in, rise and focus (motion.js splits [data-kinetic]) ── */
.kw { display: inline-block; }
.kwi { display: inline-block; }

/* ── particle ambience ([data-particles] hosts get a canvas behind their content) ── */
[data-particles] { isolation: isolate; }
.pt-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: var(--pt-z, -1); pointer-events: none; opacity: 0; transition: opacity 1.8s var(--ease-2); }
.pt-canvas.on { opacity: 1; }

/* ── reveal grammar ──────────────────────────────────────────────────── */
.rv, .rv-l, .rv-r, .rv-scale, .rv-blur, .rv-line, .rail, .tag, .ghost-num, [data-kinetic], [data-giant] { --rvd: 0s; }
[data-d="1"] { --rvd: .09s; } [data-d="2"] { --rvd: .18s; } [data-d="3"] { --rvd: .27s; }
[data-d="4"] { --rvd: .36s; } [data-d="5"] { --rvd: .45s; } [data-d="6"] { --rvd: .54s; }
[data-d="7"] { --rvd: .63s; } [data-d="8"] { --rvd: .72s; } [data-d="9"] { --rvd: .81s; }

html.js-armed :is(.rv, .rv-l, .rv-r, .rv-scale, .rv-blur):not(.rv-done) {
  transition: opacity .9s var(--ease-2), transform .9s var(--ease), filter .9s var(--ease-2);
  transition-delay: var(--rvd, 0s);
}
html.js-armed .rv:not(.in) { opacity: 0; transform: translate3d(0, 28px, 0); }
html.js-armed .rv-l:not(.in) { opacity: 0; transform: translate3d(-36px, 0, 0); }
html.js-armed .rv-r:not(.in) { opacity: 0; transform: translate3d(36px, 0, 0); }
@media (max-width: 760px) { /* sideways travel would widen a phone's viewport: rise instead */
  html.js-armed .rv-l:not(.in), html.js-armed .rv-r:not(.in) { transform: translate3d(0, 24px, 0); }
}
html.js-armed .rv-scale:not(.in) { opacity: 0; transform: translate3d(0, 16px, 0) scale(.955); }
html.js-armed .rv-blur:not(.in) { opacity: 0; filter: blur(12px); }
html.js-armed .rv-blur:not(.rv-l):not(.rv-r):not(.rv-scale):not(.in) { transform: translate3d(0, 18px, 0); }
html.js-armed .rv-line:not(.rv-done) { transform-origin: left center; transition: transform 1.4s var(--ease-2); transition-delay: var(--rvd, 0s); }
html.js-armed .rv-line:not(.in) { transform: scaleX(0); }
html.js-armed .rv-instant { transition-duration: 0s !important; transition-delay: 0s !important; animation-duration: 0s !important; animation-delay: 0s !important; }
html.js-pre:not(.js-armed) :is(.rv, .rv-l, .rv-r, .rv-scale, .rv-blur, [data-kinetic]) { opacity: 0; animation: pre-failsafe 0s 2.5s forwards; }
@keyframes pre-failsafe { to { opacity: 1; } }

html.js-armed .tag:not(.rv-done)::before { transition: transform .7s var(--ease-2); transition-delay: var(--rvd, 0s); }
html.js-armed .tag:not(.rv-done) .tag__t { transition: opacity .7s var(--ease-2), transform .7s var(--ease); transition-delay: calc(var(--rvd, 0s) + .22s); }
html.js-armed .tag:not(.in)::before { transform: scaleX(0); }
html.js-armed .tag:not(.in) .tag__t { opacity: 0; transform: translate3d(0, 8px, 0); }

html.js-armed .ghost-num:not(.rv-done) { transition: opacity 1.8s var(--ease-2), transform 1.8s var(--ease); transition-delay: var(--rvd, 0s); }
html.js-armed .ghost-num:not(.in) { opacity: 0; transform: translate3d(0, 6%, 0); }

html.js-armed [data-giant]:not(.rv-done) .giant__w {
  transition: opacity .9s var(--ease-2), transform 1.1s var(--ease), filter 1s var(--ease-2);
  transition-delay: calc(var(--rvd, 0s) + var(--gi, 0) * 80ms);
}
html.js-armed [data-giant]:not(.in) .giant__w { opacity: 0; transform: translate3d(0, .32em, 0); filter: blur(10px); }

html.js-armed [data-kinetic]:not(.in) .kw { clip-path: inset(-0.3em 100% -0.35em -0.1em); }
html.js-armed [data-kinetic]:not(.in) .kwi { opacity: 0; transform: translate3d(0, .42em, 0); filter: blur(6px); }
html.js-armed [data-kinetic].in:not(.rv-done) .kw { animation: kw-wipe .8s var(--ease) backwards; animation-delay: calc(var(--rvd, 0s) + .1s + var(--kwi, 0) * 80ms); }
html.js-armed [data-kinetic].in:not(.rv-done) .kwi { animation: kw-rise .9s var(--ease) backwards; animation-delay: calc(var(--rvd, 0s) + .1s + var(--kwi, 0) * 80ms); }
@keyframes kw-wipe { from { clip-path: inset(-0.3em 100% -0.35em -0.1em); } to { clip-path: inset(-0.3em -0.1em -0.35em -0.1em); } }
@keyframes kw-rise { from { opacity: 0; transform: translate3d(0, .42em, 0); filter: blur(6px); } }

/* ── reduced motion: stillness, not absence ──────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001s !important; animation-iteration-count: 1 !important; transition-duration: 0.001s !important; }
  html.js-armed :is(.rv, .rv-l, .rv-r, .rv-scale, .rv-blur, .rv-line, .ghost-num) { opacity: 1; transform: none; filter: none; }
  html.js-armed .tag::before, html.js-armed .tag .tag__t, html.js-armed [data-giant] .giant__w,
  html.js-armed [data-kinetic] .kw, html.js-armed [data-kinetic] .kwi { opacity: 1; transform: none; filter: none; clip-path: none; animation: none !important; }
  .rail::after, html.js-armed .rail:not(.in)::after { transform: scaleY(1); }
  .flux__ring--3 { stroke-dasharray: none; opacity: .35; }
  .lc__flow { stroke-dasharray: none; opacity: .5; }
  .lc__ring, .foot__current span { display: none; }
  .menu__links a, .menu__cta { animation: none !important; }
  .pt-canvas { display: none; }
}
