:root{--stone:#eeeeec;--white:#fafafa;--ink:#171717;--muted:#777;--line:rgba(23,23,23,.2);--header-bg:rgba(244,244,242,.76);--principles-bg:rgba(234,234,234,.94);--serif:"Iowan Old Style","Baskerville","Times New Roman",serif;--sans:Arial,"Helvetica Neue",sans-serif;--script:"Snell Roundhand","Apple Chancery",cursive;color-scheme:light}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--stone);color:var(--ink);font:14px/1.55 var(--sans);-webkit-font-smoothing:antialiased}a{color:inherit;text-decoration:none}.webgl-shell{position:fixed;z-index:0;inset:0;pointer-events:none}.webgl-shell canvas{width:100%;height:100%;display:block}.canvas-fallback{position:absolute;inset:20% 10% 10% 50%;border:1px solid var(--line);border-radius:50%;opacity:.18}.site-header{position:fixed;z-index:20;inset:0 0 auto;display:grid;grid-template-columns:1fr auto 1fr;align-items:center;height:78px;padding:0 4vw;border-bottom:1px solid var(--line);background:var(--header-bg);backdrop-filter:blur(16px)}.brand{display:flex;align-items:center;gap:12px;width:max-content}.brand span{display:grid;place-items:center;width:32px;height:32px;border:1px solid var(--ink);font:18px var(--serif)}.brand strong{font-size:11px;letter-spacing:.2em}.site-header nav{display:flex;gap:34px}.site-header nav a,.launch-link,.section-index,.scroll-note,.scene-caption,.kicker{font-size:9px;letter-spacing:.18em;text-transform:uppercase}.site-header nav a{color:var(--muted)}.header-end{justify-self:end;display:flex;align-items:center;gap:18px}.launch-link{padding-bottom:4px;border-bottom:1px solid var(--ink)}.launch-link i{margin-left:10px;font-style:normal}.panel{position:relative;z-index:1;min-height:100vh;padding:130px 6vw 80px}.hero{display:flex;align-items:center}.hero-index{position:absolute;top:112px;left:4vw;font:18px var(--serif)}.hero-copy{width:min(630px,52vw)}.kicker{margin:0 0 30px}.hero h1,.panel h2{margin:0;font:400 clamp(72px,9vw,140px)/.78 var(--serif);letter-spacing:-.065em}.hero h1 em,.panel h2 em{font-family:var(--script);font-weight:400}.lede{width:min(470px,100%);margin:42px 0 38px;color:var(--muted);font-size:16px;line-height:1.75}.hero-actions{display:flex;align-items:center;gap:28px}.solid-button{display:inline-flex;align-items:center;justify-content:center;min-height:50px;padding:0 28px;background:var(--ink);color:var(--white);font-size:9px;font-weight:700;letter-spacing:.17em;text-transform:uppercase}.line-link{padding-bottom:5px;border-bottom:1px solid var(--ink);font-size:10px;text-transform:uppercase;letter-spacing:.12em}.scroll-note{position:absolute;left:6vw;bottom:34px;display:flex;align-items:center;gap:12px;color:var(--muted)}.scroll-note span{display:inline-block;width:50px;height:1px;background:var(--ink);animation:scan 2.4s ease-in-out infinite;transform-origin:left}.scene-caption{position:absolute;right:5vw;bottom:32px;color:var(--muted);text-align:right}.manifest{position:relative;isolation:isolate;overflow:hidden;background:#09090b;color:#fafafa;clip-path:inset(0)}.manifest-copy{position:relative;z-index:1;width:min(700px,60vw);margin-top:12vh}.manifest h2{font-size:clamp(64px,8vw,118px);color:#fff}.manifest-copy>p.kicker+h2+p{width:min(490px,100%);margin:38px 0 0;color:#a1a1aa;font-size:16px;line-height:1.7}.protocol-stats{position:absolute;z-index:1;right:6vw;top:27vh;width:25vw;border-top:1px solid rgba(255,255,255,.14);backdrop-filter:blur(10px);background:rgba(9,9,11,.35);padding:4px 16px 8px;border-radius:4px}.protocol-stats div{padding:24px 0;border-bottom:1px solid rgba(255,255,255,.25)}.protocol-stats strong{display:block;font:34px var(--serif)}.protocol-stats span{color:#999;font-size:9px;letter-spacing:.15em;text-transform:uppercase}.scene-caption.dark{color:#999}.engine{min-height:125vh;padding-top:150px}.engine-layout{display:grid;grid-template-columns:1fr 1fr;gap:9vw}.engine h2{font-size:clamp(60px,7vw,108px)}.steps{margin-top:24vh;border-top:1px solid var(--ink)}.steps article{display:grid;grid-template-columns:46px 1fr;column-gap:20px;padding:24px 0;border-bottom:1px solid var(--line)}.steps span{grid-row:1/3;font:14px var(--serif)}.steps h3{margin:0 0 8px;font:28px var(--serif)}.steps p{margin:0;color:var(--muted)}.principles{background:var(--principles-bg)}.principles h2{margin-top:12vh;font-size:clamp(54px,7vw,102px)}.principle-grid{display:grid;grid-template-columns:repeat(4,1fr);margin-top:90px;border:1px solid var(--line)}.principle-grid article{min-height:200px;padding:28px;border-right:1px solid var(--line);display:flex;flex-direction:column;justify-content:flex-end}.principle-grid article:last-child{border:0}.principle-grid h3{margin:0 0 12px;font:24px var(--serif)}.principle-grid p{margin:0;color:var(--muted)}.final{display:grid;place-content:center;text-align:center;background:var(--ink);color:var(--white)}.final h2{font-size:clamp(80px,11vw,160px)}.inverted{justify-self:center;margin-top:52px;background:var(--white);color:var(--ink)}footer{position:relative;z-index:2;display:grid;grid-template-columns:1fr auto 1fr;align-items:center;padding:50px 4vw;border-top:1px solid var(--line);background:var(--stone);font-size:11px}footer p:last-child{text-align:right}@keyframes scan{50%{transform:scaleX(.35);opacity:.4}}@media(max-width:850px){.site-header{grid-template-columns:1fr 1fr}.site-header nav{display:none}.hero-copy,.manifest-copy{width:100%;max-width:620px}.hero h1,.panel h2{font-size:clamp(58px,15vw,105px)}.webgl-shell{opacity:.48}.protocol-stats{position:relative;top:auto;right:auto;width:100%;margin-top:70px}.engine-layout{grid-template-columns:1fr}.steps{margin-top:30px}.principle-grid{grid-template-columns:1fr 1fr}.principle-grid article:nth-child(2){border-right:0}.principle-grid article{border-bottom:1px solid var(--line)}.scene-caption{display:none}}@media(max-width:560px){.panel{padding-inline:20px}.hero-copy{padding-top:30px}.hero h1,.panel h2{font-size:16vw}.hero-actions{align-items:flex-start;flex-direction:column}.principle-grid{grid-template-columns:1fr}.principle-grid article{border-right:0}.site-header{padding-inline:16px}.scroll-note{left:20px}footer{grid-template-columns:1fr;gap:20px}footer p:last-child{text-align:left}}@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.scroll-note span{animation:none}}

.protocol-stats-head{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:14px 0 8px;border-bottom:1px solid rgba(255,255,255,.18);margin-bottom:4px}
.protocol-stats-head>span:last-child{color:#777;font-size:9px;letter-spacing:.14em;text-transform:uppercase}
.protocol-live{display:inline-flex;align-items:center;gap:7px;color:#cfcfcf;font-size:9px;letter-spacing:.14em;text-transform:uppercase}
.protocol-live::before{content:"";width:6px;height:6px;border-radius:50%;background:#14f195;box-shadow:0 0 0 0 rgba(20,241,149,.55);animation:protocol-pulse 1.6s ease-out infinite}
.protocol-live[data-state="syncing"]{color:#999}
.protocol-live[data-state="syncing"]::before{background:#888;animation:none}
.protocol-live[data-state="error"]{color:#f0a0a0}
.protocol-live[data-state="error"]::before{background:#ef5350;animation:none}
.protocol-stats strong{transition:color .25s ease,transform .25s ease}
.protocol-stats strong.stat-flash{color:#fff;transform:translateY(-1px)}
@keyframes protocol-pulse{0%{box-shadow:0 0 0 0 rgba(20,241,149,.5)}70%{box-shadow:0 0 0 7px rgba(20,241,149,0)}100%{box-shadow:0 0 0 0 rgba(20,241,149,0)}}
.protocol-stats{width:min(320px,28vw)}
.protocol-stats div{padding:18px 0}
.protocol-stats strong{font-size:clamp(22px,2.4vw,32px);word-break:break-word}
@media(max-width:850px){.protocol-stats{width:100%}.protocol-stats-head{margin-bottom:8px}}


/* Theme toggle + light/dark tokens */
.theme-toggle{
  display:inline-grid;
  place-items:center;
  width:36px;
  height:36px;
  border:1px solid var(--line);
  border-radius:999px;
  background:transparent;
  color:var(--ink);
  font-size:15px;
  line-height:1;
  cursor:pointer;
  transition:background .15s ease,border-color .15s ease,transform .15s ease;
}
.theme-toggle:hover{background:rgba(23,23,23,.05);transform:translateY(-1px)}
.theme-toggle:focus-visible{outline:2px solid var(--ink);outline-offset:2px}

html[data-theme="dark"]{
  color-scheme:dark;
  --stone:#121211;
  --white:#1c1c1a;
  --ink:#f0efe9;
  --muted:#9b9a92;
  --line:rgba(240,239,233,.16);
  --header-bg:rgba(18,18,16,.86);
  --principles-bg:rgba(24,24,22,.96);
}
html[data-theme="dark"] body{background:var(--stone);color:var(--ink)}
html[data-theme="dark"] .site-header{border-color:var(--line);background:var(--header-bg)}
html[data-theme="dark"] .brand img{filter:invert(1)}
html[data-theme="dark"] .theme-toggle:hover{background:rgba(240,239,233,.08)}
html[data-theme="dark"] .manifest-copy>p:last-child{color:#a8a69e}
html[data-theme="dark"] .protocol-stats{border-top-color:rgba(255,255,255,.18)}
html[data-theme="dark"] .protocol-stats div{border-bottom-color:rgba(255,255,255,.18)}
html[data-theme="dark"] .protocol-stats span,
html[data-theme="dark"] .scene-caption.dark{color:#9b9a92}
html[data-theme="dark"] .protocol-stats-head{border-bottom-color:rgba(255,255,255,.14)}
html[data-theme="dark"] .protocol-stats-head>span:last-child{color:#777}
html[data-theme="dark"] footer{background:var(--stone);border-color:var(--line)}
html[data-theme="dark"] .final{
  background:#0a0a09;
  color:#f0efe9;
}
html[data-theme="dark"] .solid-button{
  background:#f0efe9;
  color:#121211;
}
html[data-theme="dark"] .solid-button.inverted{
  background:#f0efe9;
  color:#121211;
}
html[data-theme="dark"] .launch-link,
html[data-theme="dark"] .line-link{border-bottom-color:var(--ink)}


/* Protocol / How-it-works — GTE-style black field */
.manifest .section-index,
.manifest .kicker {
  position: relative;
  z-index: 1;
  color: #a1a1aa;
}
.manifest .scene-caption {
  z-index: 1;
  color: #a1a1aa;
}
.manifest .section-index { color: rgba(255,255,255,.55); }
.manifest h2 em { color: #fff; }

.manifest-fx {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.manifest-grid {
  position: absolute;
  inset: -20%;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 72px 72px;
  transform: perspective(900px) rotateX(58deg) scale(1.35);
  transform-origin: center 30%;
  mask-image: radial-gradient(ellipse 70% 55% at 50% 35%, #000 10%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse 70% 55% at 50% 35%, #000 10%, transparent 72%);
  animation: manifest-grid-drift 28s linear infinite;
  opacity: .9;
}
.manifest-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  will-change: transform, opacity;
}
.manifest-glow-a {
  width: min(58vw, 640px);
  height: min(58vw, 640px);
  top: -12%;
  right: -8%;
  background: radial-gradient(circle, rgba(20,241,149,.22) 0%, rgba(20,241,149,0) 68%);
  animation: manifest-glow-float 9s ease-in-out infinite alternate;
}
.manifest-glow-b {
  width: min(48vw, 520px);
  height: min(48vw, 520px);
  bottom: -18%;
  left: -10%;
  background: radial-gradient(circle, rgba(99,102,241,.18) 0%, rgba(99,102,241,0) 70%);
  animation: manifest-glow-float 11s ease-in-out infinite alternate-reverse;
}
.manifest-ring {
  position: absolute;
  top: 18%;
  right: 18%;
  width: min(38vw, 420px);
  aspect-ratio: 1;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 50%;
  box-shadow:
    inset 0 0 40px rgba(20,241,149,.05),
    0 0 80px rgba(20,241,149,.06);
  animation: manifest-ring-spin 40s linear infinite;
}
.manifest-ring::before,
.manifest-ring::after {
  content: "";
  position: absolute;
  inset: 14%;
  border: 1px solid rgba(255,255,255,.05);
  border-radius: 50%;
}
.manifest-ring::after { inset: 28%; border-color: rgba(20,241,149,.12); }
.manifest-noise {
  position: absolute;
  inset: 0;
  opacity: .085;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}
.manifest-scan {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(20,241,149,.035) 48%,
    transparent 52%,
    transparent 100%
  );
  background-size: 100% 220%;
  animation: manifest-scan 7.5s ease-in-out infinite;
  opacity: .7;
}
.manifest::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(255,255,255,.06), transparent 55%),
    linear-gradient(180deg, rgba(0,0,0,.15), transparent 30%, rgba(0,0,0,.55));
}

.protocol-lanes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 36px 0 18px;
}
.protocol-lanes button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 0 14px 0 10px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px;
  background: rgba(255,255,255,.03);
  color: #a1a1aa;
  font: 700 10px/1 var(--sans);
  letter-spacing: .14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease, color .2s ease, box-shadow .2s ease, transform .15s ease;
}
.protocol-lanes button b {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.14);
  font: 700 10px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0;
}
.protocol-lanes button:hover {
  color: #fff;
  border-color: rgba(255,255,255,.28);
  background: rgba(255,255,255,.06);
}
.protocol-lanes button.is-active {
  color: #09090b;
  background: #fafafa;
  border-color: #fafafa;
  box-shadow: 0 0 0 1px rgba(255,255,255,.2), 0 10px 30px rgba(20,241,149,.12);
}
.protocol-lanes button.is-active b {
  border-color: rgba(9,9,11,.2);
  background: rgba(9,9,11,.06);
}
.protocol-lane-copy {
  width: min(490px, 100%) !important;
  margin: 0 !important;
  min-height: 3.4em;
  color: #d4d4d8 !important;
  font-size: 15px !important;
  line-height: 1.65 !important;
  transition: opacity .25s ease, transform .25s ease;
}
.protocol-lane-copy.is-swap {
  opacity: 0;
  transform: translateY(6px);
}

.protocol-stats {
  box-shadow: 0 20px 60px rgba(0,0,0,.35);
}
.protocol-stats strong { color: #fff; }
.manifest [data-manifest-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1);
}
.manifest.is-inview [data-manifest-reveal] {
  opacity: 1;
  transform: none;
}
.manifest.is-inview .protocol-stats {
  transition-delay: .12s;
}

@keyframes manifest-grid-drift {
  0% { background-position: 0 0, 0 0; }
  100% { background-position: 0 72px, 72px 0; }
}
@keyframes manifest-glow-float {
  from { transform: translate3d(0,0,0) scale(1); opacity: .75; }
  to { transform: translate3d(-18px, 22px, 0) scale(1.08); opacity: 1; }
}
@keyframes manifest-ring-spin {
  to { transform: rotate(360deg); }
}
@keyframes manifest-scan {
  0%, 100% { background-position: 0 -40%; }
  50% { background-position: 0 140%; }
}

html[data-theme="dark"] .manifest {
  background: #09090b;
  color: #fafafa;
}
html[data-theme="dark"] .manifest,
html[data-theme="dark"] .final {
  background: #09090b;
}

@media (max-width: 850px) {
  .manifest-ring { right: 4%; top: 12%; width: min(56vw, 280px); opacity: .7; }
  .protocol-lanes { margin-top: 28px; }
  .protocol-stats {
    position: relative;
    right: auto;
    top: auto;
    width: 100%;
    margin-top: 48px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .manifest-grid,
  .manifest-glow-a,
  .manifest-glow-b,
  .manifest-ring,
  .manifest-scan { animation: none; }
  .manifest [data-manifest-reveal] {
    opacity: 1;
    transform: none;
  }
}


/* Smooth home theme flips when Protocol enters/leaves view */
html.theme-switching,
html.theme-switching body,
html.theme-switching .site-header,
html.theme-switching .panel,
html.theme-switching footer {
  transition: background-color .38s ease, color .38s ease, border-color .38s ease !important;
}

