:root {
  --bg: #07140f;
  --bg-deep: #04100c;
  --panel: rgba(13, 34, 26, .76);
  --ink: #ebf8ed;
  --muted: #9ab7a5;
  --green: #a6e22e;
  --mint: #6fe8c4;
  --violet: #a873dd;
  --orange: #ff8a3d;
  --line: rgba(150, 220, 170, .18);
  --header-h: 82px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); scroll-padding-top: var(--header-h); }
body { margin: 0; overflow-x: hidden; color: var(--ink); background: radial-gradient(140% 80% at 50% 0%, #12241c 0%, var(--bg) 48%, var(--bg-deep) 100%); font-family: Inter, sans-serif; }
body.admin-bar .site-header { top: 32px; }
a { color: inherit; }
img { max-width: 100%; }
button, a { -webkit-tap-highlight-color: transparent; }

.ambient { position: fixed; z-index: 0; inset: 0; overflow: hidden; pointer-events: none; }
.ambient > i { position: absolute; display: block; border-radius: 55% 45% 62% 38% / 46% 57% 43% 54%; filter: blur(28px); opacity: .72; }
.ambient .a-one { width: 34vw; aspect-ratio: 1; left: -10vw; top: 9vh; background: radial-gradient(circle, rgba(166,226,46,.12), transparent 68%); animation: ambient-drift 26s ease-in-out infinite; }
.ambient .a-two { width: 38vw; aspect-ratio: 1; right: -10vw; top: 42vh; background: radial-gradient(circle, rgba(111,232,196,.11), transparent 68%); animation: ambient-drift 32s ease-in-out infinite reverse; }
.ambient .a-three { width: 27vw; aspect-ratio: 1; left: 42vw; top: 74vh; background: radial-gradient(circle, rgba(168,115,221,.08), transparent 68%); animation: ambient-drift 38s ease-in-out infinite; }
.ambient b { position: absolute; left: var(--x); top: var(--y); width: 5px; aspect-ratio: 1; border-radius: 50%; background: var(--mint); box-shadow: 0 0 14px var(--mint); opacity: .55; animation: particle-float 8s ease-in-out infinite var(--d); }

.site-header { position: fixed; z-index: 100; left: 0; right: 0; top: 0; height: var(--header-h); padding: 0 clamp(20px, 4vw, 58px); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 30px; background: linear-gradient(180deg, rgba(7,20,15,.92), rgba(7,20,15,.45) 76%, transparent); transition: background .35s, border-color .35s, backdrop-filter .35s; }
.site-header.scrolled { background: rgba(7,20,15,.84); border-bottom: 1px solid var(--line); backdrop-filter: blur(18px); }
.brand { display: inline-flex; align-items: center; gap: 12px; width: max-content; text-decoration: none; }
.brand-mark { width: 42px; aspect-ratio: 1; display: grid; place-items: center; border: 2px solid var(--green); border-radius: 50%; box-shadow: 0 0 20px rgba(166,226,46,.28); }
.brand-mark span { width: 16px; aspect-ratio: 1; border-radius: 50%; background: var(--green); box-shadow: 0 0 12px var(--green); }
.brand strong { display: block; font: 700 22px/1 Fredoka, sans-serif; letter-spacing: .08em; }
.brand small { display: block; margin-top: 4px; color: #75a086; font: 700 8px/1 "Space Mono", monospace; letter-spacing: .28em; }
.site-header nav { display: flex; align-items: center; gap: clamp(22px, 3vw, 42px); }
.site-header nav a { position: relative; padding: 10px 0; color: #a9c2b2; text-decoration: none; font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; transition: color .25s; }
.site-header nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 3px; height: 2px; background: var(--green); transition: right .3s var(--ease); }
.site-header nav a:hover, .site-header nav a.active { color: var(--green); }
.site-header nav a:hover::after, .site-header nav a.active::after { right: 0; }
.nav-cta { justify-self: end; padding: 10px 22px; border: 1px solid var(--green); border-radius: 999px; color: var(--green); text-decoration: none; font: 600 12px/1 Fredoka, sans-serif; letter-spacing: .12em; text-transform: uppercase; transition: background .25s, color .25s, transform .25s; }
.nav-cta:hover { transform: translateY(-2px); background: var(--green); color: var(--bg-deep); }
.menu-button { display: none; justify-self: end; width: 42px; height: 42px; border: 0; color: var(--green); background: transparent; }
.menu-button span { display: block; width: 23px; height: 1px; margin: 7px auto; background: currentColor; transition: transform .25s; }
.page-progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: transparent; }
.page-progress i { display: block; width: calc(var(--page-progress, 0) * 100%); height: 100%; background: linear-gradient(90deg, var(--mint), var(--green)); box-shadow: 0 0 12px var(--green); }

main { position: relative; z-index: 1; }
.eyebrow, .chapter-code { margin: 0; color: var(--mint); font: 400 11px/1.5 "Space Mono", monospace; letter-spacing: .24em; text-transform: uppercase; }
.eyebrow { margin-bottom: 22px; }
h1, h2, h3 { margin-top: 0; font-family: Fredoka, sans-serif; }
.primary-button { display: inline-flex; align-items: center; gap: 28px; padding: 15px 28px; border-radius: 999px; background: var(--green); box-shadow: 0 12px 32px rgba(166,226,46,.22); color: #07110d; text-decoration: none; font: 600 14px/1 Fredoka, sans-serif; letter-spacing: .04em; transition: transform .25s var(--ease), box-shadow .25s; }
.primary-button:hover { transform: translateY(-3px); box-shadow: 0 17px 42px rgba(166,226,46,.34); }

.hero { position: relative; min-height: 100svh; display: grid; grid-template-columns: minmax(0, .96fr) minmax(460px, 1.04fr); align-items: center; gap: clamp(36px, 6vw, 90px); width: min(1450px, calc(100% - 9vw)); margin: 0 auto; padding: calc(var(--header-h) + 56px) 0 92px; }
.hero-copy { position: relative; z-index: 3; max-width: 680px; }
.hero h1 { margin-bottom: 24px; color: var(--ink); font-size: clamp(58px, 6.5vw, 104px); line-height: .89; letter-spacing: -.045em; }
.hero h1 em { color: var(--green); font-style: normal; }
.lede { max-width: 570px; margin: 0 0 32px; color: #abc1b2; font-size: clamp(16px, 1.45vw, 20px); line-height: 1.65; }
.hero-visual { position: relative; min-height: min(65vw, 690px); display: grid; place-items: center; }
.hero-halo { position: absolute; width: 84%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(166,226,46,.18), transparent 66%); filter: blur(22px); animation: halo-breathe 6s ease-in-out infinite; }
.organic-window { position: relative; margin: 0; overflow: hidden; border: 2px solid rgba(166,226,46,.31); box-shadow: 0 26px 76px rgba(0,0,0,.46), 0 0 55px rgba(166,226,46,.11); }
.organic-window img { display: block; width: 100%; height: 100%; object-fit: cover; transform: translate3d(0, calc(var(--parallax, 0) * -24px), 0) scale(1.07); transition: filter .6s; }
.hero-window { width: min(49vw, 720px); aspect-ratio: 1.06; border-radius: 52% 48% 58% 42% / 47% 55% 45% 53%; animation: hero-float 9s ease-in-out infinite; }
.hero-window img { object-position: 61% center; }
.floating-tag { position: absolute; z-index: 3; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border: 1px solid rgba(111,232,196,.35); border-radius: 12px; background: rgba(7,20,15,.78); backdrop-filter: blur(12px); color: #b7cdbf; font: 400 10px/1 "Space Mono", monospace; letter-spacing: .12em; text-transform: uppercase; box-shadow: 0 12px 30px rgba(0,0,0,.22); }
.floating-tag span { color: var(--green); font-weight: 700; }
.tag-one { left: 3%; top: 21%; animation: tag-float 7s ease-in-out infinite; }
.tag-two { right: 1%; bottom: 19%; animation: tag-float 8s ease-in-out infinite reverse; }
.scroll-cue { position: absolute; left: 50%; bottom: 24px; transform: translateX(-50%); display: flex; align-items: center; gap: 12px; color: #779987; text-decoration: none; font: 400 10px/1 "Space Mono", monospace; letter-spacing: .2em; text-transform: uppercase; }
.scroll-cue i { color: var(--green); font-style: normal; animation: scroll-bob 2s ease-in-out infinite; }

.sequence { position: relative; padding: clamp(100px, 11vw, 170px) 0 30px; }
.sequence-heading { width: min(1040px, calc(100% - 48px)); margin: 0 auto clamp(90px, 12vw, 170px); text-align: center; }
.sequence-heading h2 { margin-bottom: 24px; color: var(--ink); font-size: clamp(52px, 7vw, 106px); line-height: .9; letter-spacing: -.035em; }
.sequence-heading > p:last-child { max-width: 640px; margin: 0 auto; color: var(--muted); font-size: 17px; line-height: 1.65; }
.sequence-rail { position: fixed; z-index: 50; right: 26px; top: 50%; width: 82px; transform: translateY(-50%) translateX(130%); display: grid; gap: 12px; padding: 18px 10px; border: 1px solid var(--line); border-radius: 22px; background: rgba(7,20,15,.72); backdrop-filter: blur(15px); opacity: 0; transition: opacity .35s, transform .5s var(--ease); }
.sequence-rail.visible { opacity: 1; transform: translateY(-50%) translateX(0); }
.sequence-rail::before { content: ""; position: absolute; left: 24px; top: 32px; bottom: 32px; width: 1px; background: rgba(150,220,170,.16); }
.sequence-rail > i { position: absolute; left: 24px; top: 32px; width: 1px; height: calc((100% - 64px) * var(--sequence-progress, 0)); background: var(--green); box-shadow: 0 0 10px var(--green); transition: height .2s linear; }
.sequence-rail a { position: relative; display: grid; grid-template-columns: 30px 1fr; align-items: center; gap: 5px; color: #6f8e7c; text-decoration: none; transition: color .3s; }
.sequence-rail a::before { content: ""; z-index: 2; width: 8px; aspect-ratio: 1; margin-left: 10px; border: 2px solid #547564; border-radius: 50%; background: var(--bg); transition: background .3s, border-color .3s, box-shadow .3s; }
.sequence-rail a b { display: none; }
.sequence-rail a span { font: 400 8px/1 "Space Mono", monospace; letter-spacing: .08em; text-transform: uppercase; writing-mode: vertical-rl; max-height: 0; opacity: 0; transition: max-height .35s, opacity .35s; }
.sequence-rail a.active { color: var(--green); }
.sequence-rail a.active::before { background: var(--green); border-color: var(--green); box-shadow: 0 0 12px var(--green); }
.sequence-rail a.active span { max-height: 70px; opacity: 1; }

.chapter { --active: 0; position: relative; min-height: 112svh; display: grid; place-items: center; width: min(1360px, calc(100% - 7vw)); margin: 0 auto; padding: 90px 0 150px; }
.chapter-card { position: relative; width: 100%; min-height: 620px; display: grid; grid-template-columns: minmax(340px, .88fr) minmax(0, 1.35fr); align-items: center; gap: clamp(38px, 6vw, 92px); padding: clamp(30px, 4vw, 66px); border: 1px solid rgba(150,220,170,.16); border-radius: 34px; background: linear-gradient(145deg, rgba(255,255,255,.035), rgba(255,255,255,.008)); box-shadow: 0 38px 100px rgba(0,0,0,.18); backdrop-filter: blur(4px); transform: translateY(calc((1 - var(--active)) * 30px)) scale(calc(.97 + var(--active) * .03)); opacity: calc(.55 + var(--active) * .45); transition: border-color .5s, box-shadow .5s; }
.chapter.active .chapter-card { border-color: rgba(166,226,46,.31); box-shadow: 0 38px 110px rgba(0,0,0,.28), 0 0 70px rgba(166,226,46,.045); }
.image-left .chapter-card { grid-template-columns: minmax(0, 1.35fr) minmax(340px, .88fr); }
.chapter-copy { position: relative; z-index: 3; max-width: 520px; }
.chapter-code { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; color: var(--mint); }
.chapter-code span { color: var(--green); font-weight: 700; }
.chapter-copy h3 { margin-bottom: 22px; color: var(--ink); font-size: clamp(44px, 5.1vw, 76px); line-height: .93; letter-spacing: -.03em; }
.chapter-copy > p:not(.chapter-code) { margin: 0; color: var(--muted); font-size: clamp(15px, 1.25vw, 18px); line-height: 1.72; }
.chapter-media { min-width: 0; }
.chapter-image .chapter-media { width: 100%; aspect-ratio: 1.15; border-radius: 51% 49% 56% 44% / 48% 56% 44% 52%; animation: media-breathe 10s ease-in-out infinite; }
.chapter-image.image-left .chapter-media { border-radius: 46% 54% 49% 51% / 55% 46% 54% 45%; animation-direction: reverse; }
.chapter-image .chapter-media img { object-position: center; filter: brightness(calc(.76 + var(--active) * .24)) saturate(calc(.82 + var(--active) * .22)); }
.planner-media { margin: 0; overflow: hidden; border: 1px solid rgba(111,232,196,.28); border-radius: 22px; box-shadow: 0 24px 60px rgba(0,0,0,.32); transform: perspective(1200px) rotateY(calc((1 - var(--active)) * -5deg)) translateY(calc(var(--parallax, 0) * -12px)); transform-origin: right center; }
.planner-media img { display: block; width: 100%; }
.fact-list { display: grid; gap: 11px; margin: 28px 0 0; padding: 0; list-style: none; }
.fact-list li { position: relative; padding-left: 22px; color: #b3cabc; font: 400 12px/1.5 "Space Mono", monospace; }
.fact-list li::before { content: ""; position: absolute; left: 0; top: .54em; width: 7px; aspect-ratio: 1; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); }
.status-line { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 11px; margin-top: 30px; padding: 14px 16px; border: 1px solid rgba(111,232,196,.22); border-radius: 12px; color: #b2c9bb; font: 400 11px/1 "Space Mono", monospace; text-transform: uppercase; }
.status-line i { width: 9px; aspect-ratio: 1; border-radius: 50%; background: var(--mint); box-shadow: 0 0 11px var(--mint); animation: status-pulse 2s ease-in-out infinite; }
.status-line b { color: var(--green); }
.molecular-flow { display: flex; align-items: center; gap: 10px; margin-top: 30px; }
.molecular-flow span { padding: 9px 12px; border: 1px solid rgba(166,226,46,.35); border-radius: 9px; color: var(--green); background: rgba(166,226,46,.06); font: 700 11px/1 "Space Mono", monospace; }
.molecular-flow i { color: var(--mint); font-style: normal; }
.chapter-connector { position: absolute; z-index: 4; left: 50%; bottom: 48px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 10px; color: #698a77; text-decoration: none; font: 400 9px/1 "Space Mono", monospace; letter-spacing: .18em; text-transform: uppercase; }
.chapter-connector::before { content: ""; position: absolute; z-index: -1; top: -62px; width: 1px; height: 52px; background: linear-gradient(transparent, rgba(166,226,46,.42)); }
.chapter-connector i { color: var(--green); font-style: normal; animation: scroll-bob 2s ease-in-out infinite; }

.chapter-function .chapter-card { grid-template-columns: minmax(340px, .88fr) minmax(460px, 1.12fr); }
.gfp-media { width: 100%; aspect-ratio: 1.15; border-radius: 52% 48% 57% 43% / 47% 55% 45% 53%; animation: media-breathe 10s ease-in-out infinite; }
.gfp-media img { object-position: 62% center; filter: brightness(calc(.76 + var(--active) * .26)) saturate(calc(.86 + var(--active) * .24)); }
.function-label { position: absolute; z-index: 2; right: 8%; bottom: 9%; padding: 9px 13px; border: 1px solid rgba(166,226,46,.44); border-radius: 10px; background: rgba(7,20,15,.82); color: var(--green); font: 400 10px/1 "Space Mono", monospace; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity .85s var(--ease), transform .85s var(--ease); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.chapter-card .reveal:nth-child(2) { transition-delay: .12s; }


@keyframes ambient-drift { 33% { transform: translate(50px,-32px) scale(1.05); } 66% { transform: translate(-28px,22px) scale(.96); } }
@keyframes particle-float { 50% { transform: translateY(-15px); opacity: 1; } }
@keyframes halo-breathe { 50% { transform: scale(1.08); opacity: .68; } }
@keyframes hero-float { 50% { transform: translateY(-16px) rotate(1.2deg); } }
@keyframes tag-float { 50% { transform: translateY(-10px); } }
@keyframes scroll-bob { 50% { transform: translateY(7px); opacity: .6; } }
@keyframes media-breathe { 50% { border-radius: 47% 53% 48% 52% / 54% 45% 55% 46%; transform: translateY(-8px); } }
@keyframes status-pulse { 50% { opacity: .45; transform: scale(.8); } }

@media (max-width: 1100px) {
  .site-header { grid-template-columns: 1fr auto; }
  .site-header nav, .nav-cta { display: none; }
  .menu-button { display: block; }
  .site-header.menu-open nav { position: absolute; top: calc(var(--header-h) - 4px); left: 18px; right: 18px; display: grid; gap: 8px; padding: 22px; border: 1px solid var(--line); border-radius: 16px; background: rgba(7,20,15,.97); backdrop-filter: blur(18px); }
  .hero { grid-template-columns: .9fr 1.1fr; width: calc(100% - 48px); }
  .hero h1 { font-size: clamp(52px, 7vw, 78px); }
  .chapter { width: calc(100% - 48px); }
  .chapter-card, .image-left .chapter-card, .chapter-function .chapter-card { grid-template-columns: minmax(290px, .8fr) minmax(0, 1.2fr); gap: 36px; }
  .image-left .chapter-card .chapter-media { order: 2; }
  .image-left .chapter-card .chapter-copy { order: 1; }
  .sequence-rail { display: none; }
}

@media (max-width: 760px) {
  :root { --header-h: 68px; }
  body.admin-bar .site-header { top: 46px; }
  .site-header { padding: 0 18px; }
  .brand-mark { width: 36px; }.brand strong { font-size: 18px; }
  .hero { min-height: auto; grid-template-columns: 1fr; width: calc(100% - 36px); gap: 38px; padding-top: calc(var(--header-h) + 62px); padding-bottom: 100px; }
  .hero-copy { order: 2; }.hero-visual { order: 1; min-height: 52vh; }
  .hero-window { width: 100%; max-width: 560px; aspect-ratio: 1.04; }
  .hero h1 { font-size: clamp(50px, 15vw, 72px); }
  .lede { font-size: 15px; }
  .tag-one { left: -2%; top: 15%; }.tag-two { right: -1%; bottom: 13%; }
  .scroll-cue { display: none; }
  .sequence { padding-top: 92px; }
  .sequence-heading { width: calc(100% - 36px); margin-bottom: 76px; text-align: left; }
  .sequence-heading h2 { font-size: clamp(49px, 14.5vw, 72px); }
  .sequence-heading > p:last-child { font-size: 14px; }
  .chapter { min-height: auto; width: calc(100% - 28px); padding: 30px 0 126px; }
  .chapter-card, .image-left .chapter-card, .chapter-function .chapter-card { min-height: 0; grid-template-columns: 1fr; gap: 34px; padding: 22px; border-radius: 24px; }
  .chapter-card { transform: translateY(calc((1 - var(--active)) * 18px)); }
  .image-left .chapter-card .chapter-media { order: 1; }.image-left .chapter-card .chapter-copy { order: 2; }
  .chapter-copy h3 { font-size: clamp(42px, 12vw, 58px); }
  .chapter-copy > p:not(.chapter-code) { font-size: 14px; }
  .chapter-image .chapter-media { aspect-ratio: 1.18; }
  .planner-media { order: -1; max-width: 100%; border-radius: 15px; }
  .planner-media img { width: 100%; max-width: 100%; }
  .gfp-media { aspect-ratio: 1.08; }
  .chapter-function { padding-bottom: 48px; }
  .function-label { right: 8%; bottom: 8%; font-size: 8px; }
}

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