:root {
  --ink: #fbf8f0;
  --ink-2: #f3eedf;
  --panel: #fffefb;
  --panel-2: #f6f2e6;
  --line: rgba(119, 185, 0, 0.28);
  --line-ink: rgba(22, 29, 16, 0.12);
  --text: #161d10;
  --muted: #5d6650;
  --gold: #77b900;
  --gold-ink: #141a0d;
  --accent-text: #3d5c12;
  --leaf: #77b900;
  --cyan: #0f6f86;
  --night: #0b0e08;
  --night-text: #eef6f1;
  --night-muted: #a8c5b3;
  --cream: #fbf8f0;
  --cream-2: #f6f2e6;
  --card: #fffefb;
  --tan: #ddd8ca;
  --cream-ink: #161d10;
  --cream-muted: #5d6650;
  --cream-green: #3d5c12;
  --header: 72px;
  --max: 1120px;
  --sans: "IBM Plex Sans", "Segoe UI", sans-serif;
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  color-scheme: light;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
}

img, svg { max-width: 100%; display: block; }

a { color: inherit; }

button, input, select, textarea { font: inherit; color: inherit; }

:focus { outline: none; }

:focus-visible {
  outline: 2px solid var(--accent-text);
  outline-offset: 3px;
}

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.wrap {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  background: var(--gold);
  color: var(--gold-ink);
  padding: 8px 12px;
  z-index: 20;
}

.skip:focus { top: 12px; }

body.nav-open { overflow: hidden; }

h1, h2, h3, .display {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 0.95;
  text-transform: uppercase;
  margin: 0;
}

h1 { font-size: clamp(3.4rem, 8vw, 6.4rem); font-weight: 800; }

h2 { font-size: clamp(2rem, 4vw, 3.3rem); }

h3 { font-size: clamp(1.4rem, 2vw, 1.8rem); text-transform: none; letter-spacing: 0; font-family: var(--sans); font-weight: 600; line-height: 1.3; }

p { margin: 0; }

.kicker {
  margin: 0 0 12px;
  color: var(--accent-text);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.rv { opacity: 0; transform: translateY(16px); }
.rv.in { opacity: 1; transform: none; transition: opacity .6s ease, transform .6s ease; }

.lead { color: var(--muted); font-size: 1.05rem; max-width: 42rem; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  padding-top: env(safe-area-inset-top);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
/* glass layer lives on a pseudo-element so backdrop-filter does not trap the fixed mobile nav */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(251, 248, 240, .72);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  transition: background .3s, box-shadow .3s;
}
.site-header.solid { border-bottom-color: var(--line-ink); }
.site-header.solid::before {
  background: rgba(251, 248, 240, .94);
  box-shadow: 0 10px 30px -24px rgba(22, 29, 16, .5);
}

.wrap-wide {
  width: min(1320px, calc(100% - 40px));
  margin-inline: auto;
}

.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--header);
}

.logo { display: inline-flex; align-items: center; text-decoration: none; flex: none; }
.logo img { height: 38px; width: auto; display: block; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 2px;
}

.site-nav > a,
.nav-drop > button {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 40px;
  padding: 0 14px;
  border: 0;
  border-radius: 10px;
  background: none;
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: color .2s, background .2s;
}
.site-nav > a::after,
.nav-drop > button::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 6px;
  height: 2px;
  border-radius: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s cubic-bezier(.2, .7, .2, 1);
}
.site-nav > a:hover,
.nav-drop > button:hover,
.nav-drop.open > button { color: var(--accent-text); background: rgba(119, 185, 0, .08); }
.site-nav > a:hover::after,
.nav-drop > button:hover::after,
.site-nav > a[aria-current="page"]::after,
.nav-drop[data-current="true"] > button::after { transform: scaleX(1); }
.site-nav > a[aria-current="page"],
.nav-drop[data-current="true"] > button { color: var(--accent-text); }

.chev { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s; }
.nav-drop:hover .chev,
.nav-drop.open .chev,
.nav-drop > button[aria-expanded="true"] .chev { transform: rotate(180deg); }

.nav-drop { position: relative; }

.nav-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 320px;
  padding: 8px;
  background: var(--panel);
  border: 1px solid var(--line-ink);
  border-radius: 16px;
  box-shadow: 0 24px 50px -28px rgba(22, 29, 16, .45);
  display: grid;
  gap: 2px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .2s, transform .2s, visibility .2s;
}
.nav-menu::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -12px;
  height: 12px;
}
.nav-menu a {
  display: grid;
  gap: 2px;
  padding: 10px 12px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--text);
  position: relative;
}
.nav-menu a b { font-weight: 600; font-size: 14px; }
.nav-menu a small { color: var(--muted); font-size: 12.5px; }
.nav-menu a:hover, .nav-menu a[aria-current="page"] { background: rgba(119, 185, 0, .1); }
.nav-menu a[aria-current="page"] b { color: var(--accent-text); }
.nav-menu-all { border-bottom: 1px solid var(--line-ink); border-radius: 10px 10px 0 0 !important; margin-bottom: 4px; }

.nav-drop:hover .nav-menu,
.nav-drop:focus-within .nav-menu,
.nav-drop.open .nav-menu { opacity: 1; visibility: visible; transform: none; }

.nav-cta { display: flex; align-items: center; gap: 8px; margin-left: 14px; }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 14px; }
.nav-cta .btn-gold::after { content: none; }
.nav-cta .btn-gold:hover { transform: none; box-shadow: 0 8px 20px -10px rgba(119, 185, 0, .9); }
.nav-cta .btn-ghost:hover { transform: none; }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-ink);
  background: transparent;
  border-radius: 12px;
  padding: 0;
  cursor: pointer;
  position: relative;
}
.nav-toggle span {
  position: absolute;
  left: 12px;
  right: 12px;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: transform .3s, opacity .3s, top .3s;
}
.nav-toggle span:nth-child(1) { top: 14px; }
.nav-toggle span:nth-child(2) { top: 21px; }
.nav-toggle span:nth-child(3) { top: 28px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  font-weight: 600;
}

.btn-gold { background: var(--gold); color: var(--gold-ink); }
.btn-gold::after { content: "→"; transition: transform .2s; }
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 12px 28px -14px rgba(119, 185, 0, .85); }
.btn-gold:hover::after { transform: translateX(4px); }

.btn-ghost, .btn-line {
  background: transparent;
  border-color: var(--line-ink);
  color: var(--text);
}

.btn-ghost:hover, .btn-line:hover { border-color: var(--gold); background: rgba(119, 185, 0, .08); transform: translateY(-2px); }

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 100svh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 104px 0 18px;
}

.floor {
  position: absolute;
  left: -20%;
  right: -20%;
  bottom: -8%;
  height: 58%;
  z-index: -1;
  background-image:
    linear-gradient(rgba(119, 185, 0, .28) 1px, transparent 1px),
    linear-gradient(90deg, rgba(119, 185, 0, .28) 1px, transparent 1px);
  background-size: 64px 64px;
  transform: perspective(520px) rotateX(64deg);
  transform-origin: 50% 100%;
  mask-image: linear-gradient(0deg, #000 12%, transparent 82%);
  animation: floor 3.6s linear infinite;
}

.hero-glow {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(55% 45% at 70% 78%, rgba(119, 185, 0, .22), transparent 70%),
    radial-gradient(40% 30% at 18% 12%, rgba(15, 111, 134, .12), transparent 70%);
}

@keyframes floor { to { background-position: 0 64px; } }

.hero-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: start;
}

.hero h1 span { display: block; }

.hero h1 .outline {
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(22, 29, 16, .8);
}

.hero .lead { margin: 18px 0 26px; color: #262b1d; }

.hud {
  text-align: right;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--muted);
  display: grid;
  gap: 6px;
}

.hud b { color: var(--accent-text); font-weight: 600; }
.hud .live { color: var(--cyan); }

.stage { margin-top: 12px; }
.stage svg { width: 100%; height: auto; }
.trace { fill: none; stroke: rgba(22, 29, 16, .18); stroke-width: 2; }
.trace-live { stroke: var(--gold); stroke-dasharray: 10 14; animation: dash 1.1s linear infinite; }
.trace-cyan { stroke: var(--cyan); stroke-dasharray: 4 18; animation: dash 1.6s linear infinite reverse; opacity: .7; }
@keyframes dash { to { stroke-dashoffset: -48; } }

.node-label { font-family: var(--mono); font-size: 13px; fill: #5d6650; transition: fill .3s; }
.node circle { fill: #fffefb; stroke: #cfc9b6; stroke-width: 2; transition: stroke .3s, fill .3s; }
.node use { fill: none; stroke: #8b917d; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; transition: stroke .3s; }
.node.on circle { stroke: var(--gold); fill: #f3f8e4; }
.node.on use { stroke: var(--accent-text); }
.node.on .node-label { fill: #161d10; }
.node.now circle { fill: var(--gold); stroke: var(--gold); }
.node.now use { stroke: var(--gold-ink); }
.node .ring { fill: none; stroke: var(--gold); opacity: 0; transform-box: fill-box; transform-origin: center; }
.node.now .ring { animation: ringpulse 1.6s ease-out infinite; }
@keyframes ringpulse { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(2.1); opacity: 0; } }

.shield { fill: none; stroke: var(--cyan); stroke-width: 1.5; stroke-dasharray: 14 10; opacity: 0; transition: opacity .5s; }
.hero.secure .shield { opacity: .9; animation: dash 1.4s linear infinite; }

.pkt { fill: var(--gold); offset-path: path("M 60 90 H 940"); offset-distance: 0%; animation: travel 5.2s linear infinite; filter: drop-shadow(0 0 6px rgba(119, 185, 0, .8)); }
.pkt-2 { fill: var(--cyan); animation-duration: 7.4s; animation-delay: -2.6s; opacity: 0; transition: opacity .4s; filter: drop-shadow(0 0 6px rgba(15, 111, 134, .8)); }
.pkt-3 { fill: #3d5c12; animation-duration: 6.1s; animation-delay: -4.1s; opacity: 0; transition: opacity .4s; }
.hero.p2 .pkt-2, .hero.p3 .pkt-2, .hero.p3 .pkt-3 { opacity: 1; }
@keyframes travel { to { offset-distance: 100%; } }

.stage-list { display: none; }

.dust {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    radial-gradient(2px 2px at 12% 30%, rgba(119, 185, 0, .55), transparent 60%),
    radial-gradient(2px 2px at 48% 12%, rgba(15, 111, 134, .5), transparent 60%),
    radial-gradient(1.5px 1.5px at 78% 22%, rgba(119, 185, 0, .5), transparent 60%),
    radial-gradient(2px 2px at 88% 58%, rgba(119, 185, 0, .45), transparent 60%),
    radial-gradient(1.5px 1.5px at 30% 66%, rgba(15, 111, 134, .45), transparent 60%),
    radial-gradient(2px 2px at 62% 44%, rgba(119, 185, 0, .4), transparent 60%);
  background-size: 100% 100%;
  animation: drift 18s ease-in-out infinite alternate;
}
@keyframes drift { to { transform: translate3d(-24px, 18px, 0); } }

.hero .rise { opacity: 0; transform: translateY(20px); animation: rise .8s cubic-bezier(.2, .7, .2, 1) forwards; }
.hero .kicker.rise { animation-delay: .05s; }
.hero h1 .rise:first-child { animation-delay: .15s; }
.hero h1 .rise:last-child { animation-delay: .28s; }
.hero .lead.rise { animation-delay: .42s; }
.hero .actions.rise { animation-delay: .55s; }

.hero-foot {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--line-ink);
}

.hero-foot b { font-family: var(--display); font-size: 1.6rem; letter-spacing: .04em; text-transform: uppercase; }

.dots { display: flex; gap: 8px; }
.dots button {
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  position: relative;
  cursor: pointer;
}
.dots button::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid var(--accent-text);
  display: block;
  margin: auto;
}
.dots button[aria-selected="true"]::before { background: var(--gold); border-color: var(--gold); }

.scroll-cue {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}
.scroll-cue i {
  width: 16px;
  height: 26px;
  border: 1px solid var(--accent-text);
  border-radius: 10px;
  position: relative;
}
.scroll-cue i::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 5px;
  width: 3px;
  height: 6px;
  border-radius: 2px;
  background: var(--gold);
  animation: scrollbit 1.4s ease-in-out infinite;
}
@keyframes scrollbit { to { transform: translateY(8px); opacity: .2; } }

.actions { display: flex; flex-wrap: wrap; gap: 12px; }

.band { padding: 72px 0; }

.band-alt { background: var(--ink-2); }

.band-head { margin-bottom: 28px; max-width: 40rem; }

.band-head .lead { margin-top: 12px; }

/* ---------- Night band + signature carousel ---------- */
.band-night {
  background:
    radial-gradient(60% 50% at 85% 10%, rgba(119, 185, 0, .16), transparent 70%),
    radial-gradient(40% 40% at 10% 90%, rgba(15, 111, 134, .18), transparent 70%),
    var(--night);
  color: var(--night-text);
  color-scheme: dark;
}
.band-night .kicker { color: #8af0b7; }
.band-night h2 { color: var(--night-text); }
.band-night .lead { color: var(--night-muted); }

.band-head-row {
  max-width: none;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}

.carousel-nav { display: flex; gap: 8px; }

.icon-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(238, 246, 241, .22);
  background: transparent;
  color: var(--night-text);
  font-size: 20px;
  cursor: pointer;
  transition: border-color .2s, background .2s, transform .2s;
}
.icon-btn:hover { border-color: var(--gold); background: rgba(119, 185, 0, .14); transform: translateY(-2px); }

.carousel { position: relative; }

.carousel-viewport {
  position: relative;
  display: grid;
  min-height: 460px;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(238, 246, 241, .12);
  background:
    linear-gradient(rgba(119, 185, 0, .08) 1px, transparent 1px) 0 0 / 40px 40px,
    linear-gradient(90deg, rgba(119, 185, 0, .08) 1px, transparent 1px) 0 0 / 40px 40px,
    #0d120a;
}

.slide {
  grid-area: 1 / 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 48px;
  position: relative;
  visibility: hidden;
  clip-path: inset(0 100% 0 0);
}
.slide.is-active { visibility: visible; clip-path: inset(0); animation: wipe .7s cubic-bezier(.7, 0, .2, 1); z-index: 2; }
.slide.is-leaving { visibility: visible; clip-path: inset(0); animation: wipe-out .7s cubic-bezier(.7, 0, .2, 1) forwards; z-index: 1; }
@keyframes wipe { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0); } }
@keyframes wipe-out { from { clip-path: inset(0); opacity: 1; } to { clip-path: inset(0 0 0 100%); opacity: .4; } }

.slide-copy { position: relative; z-index: 2; max-width: 30rem; }
.slide .tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #8af0b7;
  margin-bottom: 14px;
}
.slide h2 { margin-bottom: 14px; color: var(--night-text); }
.slide p { color: var(--night-muted); margin-bottom: 22px; font-size: 1.05rem; }

.slide .rise { opacity: 0; transform: translateY(18px); }
.slide.is-active .rise { animation: rise .7s cubic-bezier(.2, .7, .2, 1) forwards; }
.slide.is-leaving .rise, .slide.is-leaving .hot { opacity: 1; transform: none; }
.slide.is-active .rise:nth-child(2) { animation-delay: .1s; }
.slide.is-active .rise:nth-child(3) { animation-delay: .2s; }
.slide.is-active .rise:nth-child(4) { animation-delay: .3s; }
@keyframes rise { to { opacity: 1; transform: none; } }

.scn {
  grid-column: 2;
  grid-row: 1;
  width: 100%;
  height: auto;
  max-height: 380px;
  justify-self: end;
  fill: none;
  stroke: rgba(238, 246, 241, .55);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  transform-origin: 50% 50%;
}
.slide.is-active .scn { animation: ken 7s ease-in-out infinite alternate; }
@keyframes ken { from { transform: scale(1); } to { transform: scale(1.07) translate(-1%, 1%); } }
.scn text { font-family: var(--mono); font-size: 12px; letter-spacing: .12em; fill: #8af0b7; stroke: none; }
.scn .die { stroke: rgba(238, 246, 241, .7); fill: rgba(255, 255, 255, .02); }
.scn .grid-lines, .scn .net, .scn .trace-b, .scn .net-l { stroke: rgba(238, 246, 241, .18); }
.scn .core { stroke: var(--gold); fill: rgba(119, 185, 0, .16); }
.scn .part { stroke: rgba(238, 246, 241, .5); fill: rgba(238, 246, 241, .06); }
.scn .pins { stroke: rgba(238, 246, 241, .35); }
.scn .blink { animation: blink 2.2s ease-in-out infinite; }
@keyframes blink { 50% { fill: rgba(119, 185, 0, .5); filter: drop-shadow(0 0 8px rgba(119, 185, 0, .8)); } }
.scn .sig, .scn .loop, .scn .up { stroke: var(--gold); stroke-width: 2; stroke-dasharray: 8 12; animation: dash 1.2s linear infinite; }
.scn .arc { stroke: #8af0b7; opacity: 0; animation: ping 2.4s ease-out infinite; }
.scn .a2 { animation-delay: .5s; } .scn .a3 { animation-delay: 1s; }
@keyframes ping { 0% { opacity: 0; } 20% { opacity: .9; } 70% { opacity: 0; } }
.scn .road { stroke: rgba(238, 246, 241, .25); }
.scn .road-dash { stroke: rgba(238, 246, 241, .6); stroke-dasharray: 20 30; animation: dash 1s linear infinite; }
.scn .wheel { stroke: rgba(238, 246, 241, .7); fill: #0d120a; }
.scn .body { stroke: rgba(238, 246, 241, .75); }
.scn .neurons { stroke: var(--gold); fill: rgba(119, 185, 0, .2); }
.scn .net { stroke-dasharray: 6 10; animation: dash 1.8s linear infinite; }
.scn .l2 { animation-direction: reverse; }
.scn .wave { stroke: #8af0b7; stroke-dasharray: 600; stroke-dashoffset: 600; animation: draw 3s ease-in-out infinite alternate; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.scn .scan { stroke: #8af0b7; stroke-width: 2; animation: scan 2.6s ease-in-out infinite alternate; filter: drop-shadow(0 0 6px #8af0b7); }
@keyframes scan { from { transform: translateY(-80px); } to { transform: translateY(80px); } }
.scn .u2 { animation-delay: -.4s; } .scn .u3 { animation-delay: -.8s; }

.hot {
  position: absolute;
  left: var(--x);
  top: var(--y);
  display: flex;
  align-items: center;
  gap: 8px;
  transform: translate(-6px, -6px);
  z-index: 3;
  opacity: 0;
}
.slide.is-active .hot { animation: rise .6s .7s forwards; }
.hot i {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gold);
  position: relative;
}
.hot i::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1.5px solid var(--gold);
  animation: pulse 1.8s ease-out infinite;
}
@keyframes pulse { 0% { transform: scale(.6); opacity: 1; } 100% { transform: scale(2); opacity: 0; } }
.hot span {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--night-text);
  background: rgba(11, 14, 8, .7);
  border: 1px solid rgba(238, 246, 241, .16);
  border-radius: 999px;
  padding: 5px 10px;
  backdrop-filter: blur(6px);
}

.carousel-bar {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 18px;
}

.progress { display: flex; gap: 6px; flex: 1; }
.progress button {
  flex: 1;
  height: 4px;
  border: 0;
  border-radius: 99px;
  background: rgba(238, 246, 241, .16);
  padding: 0;
  cursor: pointer;
  overflow: hidden;
  position: relative;
}
.progress button i { display: block; height: 100%; width: 0; background: var(--gold); border-radius: 99px; }
.progress button[aria-current="true"] i { width: 100%; }
.playing .progress button[aria-current="true"] i { width: 0; animation: fill 5.5s linear forwards; }
@keyframes fill { to { width: 100%; } }
.counter { font-family: var(--mono); font-size: 12px; letter-spacing: .12em; color: var(--night-muted); }

.tiles, .cards, .boot-grid, .metric-grid, .role-grid {
  display: grid;
  gap: 16px;
}

.tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.tile, .card, .boot, .glass, .role {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
  text-decoration: none;
}

.tile {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 10px;
  min-height: 220px;
  position: relative;
  overflow: hidden;
  border-color: var(--line-ink);
}

.tile::before {
  content: "";
  position: absolute;
  inset: -10%;
  background-image:
    linear-gradient(rgba(119, 185, 0, .2) 1px, transparent 1px),
    linear-gradient(90deg, rgba(119, 185, 0, .2) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: radial-gradient(circle at 80% 10%, #000 0%, transparent 68%);
  transition: transform .7s ease;
}

.tile:nth-child(3n)::before { background-image: linear-gradient(rgba(15, 111, 134, .22) 1px, transparent 1px), linear-gradient(90deg, rgba(15, 111, 134, .22) 1px, transparent 1px); }
.tile:hover::before { transform: scale(1.12); }
.tile strong, .tile span, .tile .actions, .tile .ico { position: relative; }

/* cursor-reactive glow */
.glow { --mx: 50%; --my: 50%; }
.glow::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(220px circle at var(--mx) var(--my), rgba(119, 185, 0, .18), transparent 60%);
  opacity: 0;
  transition: opacity .3s;
}
.glow:hover::after { opacity: 1; }

/* bento */
.bento {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 14px;
}
.bento .tile { grid-column: span var(--span, 4); min-height: 200px; }
.bento .tile:hover { transform: translateY(-4px) scale(1.01); box-shadow: 0 24px 40px -30px rgba(22, 29, 16, .5); }
.tile .ico {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: var(--accent-text);
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  margin-bottom: auto;
  transition: transform .4s cubic-bezier(.2, .7, .2, 1), stroke .3s;
}
.tile:hover .ico { transform: translateY(-4px) scale(1.12); stroke: var(--gold); }

.tile strong, .card strong, .role strong {
  font-family: var(--display);
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  line-height: 1;
}

.tile span, .card p, .role p { color: var(--muted); }

.tile:hover, .card:hover, .role:hover { border-color: var(--gold); transform: translateY(-3px); }

.stepper-rail {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.stepper-rail button, .tabs button, .chip, .filter button {
  min-height: 44px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  padding: 0 14px;
  cursor: pointer;
}

.stepper-rail button[aria-selected="true"],
.tabs button[aria-selected="true"],
.filter button[aria-pressed="true"] {
  background: var(--gold);
  color: var(--gold-ink);
  border-color: var(--gold);
}

.stepper-panel, .tab-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
}

.stepper-panel h3 { margin-bottom: 8px; }

/* ---------- Services grid + engagement ---------- */
.svc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.svc-tile {
  min-height: 280px;
  text-decoration: none;
  gap: 10px;
}
.svc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: auto;
  position: relative;
}
.svc-tile .kicker { margin: 0; color: var(--accent-text); }
.svc-tile .ico { width: 32px; height: 32px; margin-bottom: 0; }
.svc-tile strong { margin-top: 18px; }
.svc-tile .chips { margin-top: 6px; position: relative; }
.svc-tile .svc-more {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--accent-text);
}
.svc-more i { font-style: normal; transition: transform .3s cubic-bezier(.2, .7, .2, 1); }
.svc-tile:hover .svc-more i { transform: translateX(5px); }

@keyframes swapin { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.engage-rail { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.engage-body {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 20px;
  align-items: stretch;
}
.engage-well {
  display: grid;
  place-items: center;
  min-height: 320px;
  background: var(--panel);
  border: 1px solid var(--line-ink);
  border-radius: 18px;
  padding: 24px;
  position: relative;
  overflow: hidden;
  background-image:
    linear-gradient(rgba(119, 185, 0, .12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(119, 185, 0, .12) 1px, transparent 1px);
  background-size: 28px 28px;
}
.engage-well .diagram {
  width: 100%;
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  overflow: visible;
}
.engage-well .diagram svg { width: 100%; }
.engage-well .eg { display: none; }
.engage-well .eg.on { display: block; animation: swapin .5s cubic-bezier(.2, .7, .2, 1) both; }
.engage.playing .life-bar i { animation: fill 4s linear forwards; }
.engage-copy {
  background: var(--panel);
  border: 1px solid var(--line-ink);
  border-radius: 18px;
  padding: 26px 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.engage-copy .kicker { margin-bottom: 8px; }
.engage-copy .note { margin-top: 14px; }
.engage-more { margin-top: 18px; }
.engage-copy a { color: var(--accent-text); font-weight: 600; text-decoration: none; }
.engage-copy a:hover { text-decoration: underline; }

.mission {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 18px;
  align-items: stretch;
}

.glass h3 {
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 12px;
}

.mission-line {
  width: 72px;
  align-self: center;
  height: 3px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--gold), var(--cyan), var(--gold));
  background-size: 200% 100%;
  animation: flow 2.4s linear infinite;
}
@keyframes flow { to { background-position: 200% 0; } }

.boot-grid { grid-template-columns: 1fr 1fr; }

.boot .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0;
}

.boot .meta span, .chips span, .chip-list span {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 10px;
  color: var(--text);
}

.flag { color: var(--accent-text); }

.metric-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.metric {
  padding: 8px 0;
}

.metric strong {
  display: block;
  font-family: var(--display);
  font-size: clamp(2.8rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 0.9;
  color: var(--accent-text);
}

.metric span { color: var(--muted); }

.cta {
  display: grid;
  grid-template-columns: 1.4fr auto;
  gap: 24px;
  align-items: end;
  padding: 36px;
  border-radius: 20px;
  background: var(--panel);
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.cta::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--cyan), var(--gold));
  background-size: 200% 100%;
  animation: flow 2.8s linear infinite;
}

.hero-state .lead { margin: 4px 0 0; }

/* ---------- Technology flow (Services) ---------- */
.spk { fill: var(--gold); offset-path: path("M 0 20 H 1000"); animation: travel 4.6s linear infinite; filter: drop-shadow(0 0 5px rgba(119, 185, 0, .8)); }
.spk-2 { fill: var(--cyan); animation-duration: 6.8s; animation-delay: -2.2s; }
.spk-3 { fill: #3d5c12; animation-duration: 5.7s; animation-delay: -4s; }

.flow-rail {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}
.flow-rail button {
  min-height: 100px;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto 1fr;
  align-items: start;
  gap: 10px 8px;
  padding: 12px 12px 12px;
  border-radius: 14px;
  border: 1px solid var(--line-ink);
  background: var(--panel);
  cursor: pointer;
  text-align: left;
  color: var(--muted);
  transition: border-color .3s, background .3s, transform .3s, box-shadow .3s, color .3s;
}
.flow-rail .ico { grid-column: 1; grid-row: 1; width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; transition: stroke .3s, transform .3s; }
.flow-rail i { grid-column: 2; grid-row: 1; font-style: normal; font-family: var(--mono); font-size: 11px; letter-spacing: .08em; color: var(--accent-text); }
.flow-rail b { grid-column: 1 / -1; grid-row: 2; align-self: end; font-family: var(--display); font-size: 1.05rem; letter-spacing: .04em; text-transform: uppercase; line-height: 1; color: var(--text); }
.flow-rail button:hover { border-color: var(--gold); transform: translateY(-2px); color: var(--accent-text); }
.flow-rail button[aria-selected="true"] {
  border-color: var(--gold);
  color: var(--gold);
  background: linear-gradient(160deg, #f3f8e4, var(--panel));
  box-shadow: 0 16px 30px -24px rgba(22, 29, 16, .5);
}
.flow-rail button[aria-selected="true"] .ico { transform: scale(1.15); }
.flow-rail button[aria-selected="true"] b { color: var(--accent-text); }

.flow-track {
  --to: 0px;
  position: relative;
  height: 32px;
  margin: 14px 0 4px;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
  align-items: center;
  justify-items: center;
}
.flow-line, .flow-fill, .flow-pkt, .flow-spark { position: absolute; top: 50%; pointer-events: none; }
.flow-line { left: 0; right: 0; height: 2px; transform: translateY(-50%); background: rgba(22, 29, 16, .14); border-radius: 99px; }
.flow-fill { left: 0; height: 2px; width: var(--to); transform: translateY(-50%); background: linear-gradient(90deg, var(--gold), var(--cyan)); border-radius: 99px; transition: width .6s cubic-bezier(.2, .7, .2, 1); }
.flow-pkt {
  left: var(--to);
  width: 10px; height: 10px;
  margin: -5px 0 0 -5px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 10px rgba(119, 185, 0, .9);
  transition: left .6s cubic-bezier(.2, .7, .2, 1);
  z-index: 2;
}
.flow-spark {
  left: 0;
  width: 6px; height: 6px;
  margin: -3px 0 0 -3px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px rgba(15, 111, 134, .9);
  animation: sparkx 4.6s linear infinite;
}
@keyframes sparkx { to { left: 100%; } }
.flow-node {
  position: relative;
  z-index: 1;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--panel);
  border: 2px solid rgba(22, 29, 16, .25);
  transition: border-color .3s, background .3s, transform .3s, box-shadow .3s;
}
.flow-node.on { border-color: var(--gold); }
.flow-node.now { background: var(--gold); border-color: var(--gold); transform: scale(1.3); box-shadow: 0 0 0 6px rgba(119, 185, 0, .18); }
.flow.playing .life-bar i { animation: fill 3.8s linear forwards; }

.flow-detail {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr;
  gap: 14px;
}
.flow-detail > div {
  background: var(--panel);
  border: 1px solid var(--line-ink);
  border-radius: 14px;
  padding: 18px 20px;
  position: relative;
  overflow: hidden;
}
.flow-stage h3 { font-family: var(--display); text-transform: uppercase; letter-spacing: .04em; font-size: clamp(1.8rem, 3vw, 2.4rem); line-height: .95; margin: 6px 0 10px; }
.flow-stage .lead { font-size: 1rem; margin: 0; }
.flow-io { padding-left: 24px; }
.flow-io::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--gold); }
.flow-io-out::before { background: var(--cyan); }
.flow-io p { font-size: 1.1rem; font-weight: 600; margin-top: 6px; }
.flow-detail.swap > * { animation: swapin .45s cubic-bezier(.2, .7, .2, 1) both; }
.flow-detail.swap > *:nth-child(2) { animation-delay: .07s; }
.flow-detail.swap > *:nth-child(3) { animation-delay: .14s; }

/* ---------- Mission / vision art ---------- */
.mv { padding-top: 16px; }
.mv-art {
  width: 100%;
  height: 150px;
  fill: none;
  stroke: var(--line-ink);
  stroke-width: 1.4;
  margin-bottom: 14px;
}
.mv-art .ring-l { stroke: rgba(119, 185, 0, .35); }
.mv-art .target { fill: var(--gold); stroke: none; }
.mv-art .conv { fill: var(--cyan); stroke: none; animation: conv 3.2s var(--d) cubic-bezier(.4, 0, .6, 1) infinite; }
@keyframes conv { 0% { transform: translate(0, 0); opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { transform: translate(var(--tx), var(--ty)); opacity: 0; } }
.mv-art .horizon { stroke: var(--line-ink); }
.mv-art .arc { stroke: rgba(119, 185, 0, .5); stroke-dasharray: 6 8; animation: dash 2s linear infinite; }
.mv-art .beacons circle { fill: var(--gold); stroke: none; transform-box: fill-box; transform-origin: center; animation: beacon 2s var(--d) ease-in-out infinite; }
@keyframes beacon { 50% { transform: scale(1.7); filter: drop-shadow(0 0 6px rgba(119, 185, 0, .9)); } }
.mv-art .net-l { stroke: rgba(15, 111, 134, .45); }
.mv-art .rise-l { stroke: rgba(22, 29, 16, .18); stroke-dasharray: 2 6; }

/* ---------- Lifecycle ---------- */
.life-rail {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 4px;
}
.life-rail button {
  min-height: 60px;
  border: 0;
  border-bottom: 2px solid var(--line-ink);
  background: transparent;
  padding: 8px 4px 10px;
  cursor: pointer;
  display: grid;
  gap: 4px;
  justify-items: start;
  text-align: left;
  font-size: 13px;
  color: var(--muted);
  transition: color .3s, border-color .3s;
}
.life-rail button i { font-style: normal; font-family: var(--mono); font-size: 11px; letter-spacing: .08em; color: var(--accent-text); }
.life-rail button:hover { color: var(--text); border-color: var(--gold); }
.life-rail button[aria-selected="true"] { color: var(--text); font-weight: 600; border-color: var(--gold); }
.life-bar { height: 3px; background: rgba(22, 29, 16, .08); border-radius: 99px; margin: 10px 0 20px; overflow: hidden; }
.life-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--gold), var(--cyan)); }
.life.playing .life-bar i { animation: fill 4.2s linear forwards; }

.life-body {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 24px;
  align-items: center;
}
.life-well {
  background: var(--panel);
  border: 1px solid var(--line-ink);
  border-radius: 18px;
  padding: 18px;
  position: relative;
  overflow: hidden;
  background-image:
    linear-gradient(rgba(119, 185, 0, .12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(119, 185, 0, .12) 1px, transparent 1px);
  background-size: 28px 28px;
}
.life-well svg { width: 100%; height: auto; fill: none; stroke: rgba(22, 29, 16, .55); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.life-well text { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; fill: var(--accent-text); stroke: none; }
.lf { display: none; }
.lf.on { display: block; animation: rise .5s cubic-bezier(.2, .7, .2, 1); }
.lf .draw { stroke: var(--gold); stroke-dasharray: 400; stroke-dashoffset: 400; animation: draw 1.6s ease-out forwards; }
.lf .tick { stroke: var(--cyan); stroke-width: 2.2; stroke-dasharray: 60; stroke-dashoffset: 60; animation: draw 1s .4s ease-out forwards; }
.lf .dot { fill: var(--gold); stroke: none; }
.lf .pulse { transform-box: fill-box; transform-origin: center; animation: beacon 1.6s ease-in-out infinite; }
.lf .slide-x { animation: slidex 1.6s ease-in-out infinite alternate; }
@keyframes slidex { to { transform: translateX(60px); } }
.lf .cursor { fill: var(--gold); stroke: none; animation: caret 1s steps(2) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.lf .wave-l { stroke-dasharray: 800; stroke-dashoffset: 800; animation: draw 2.4s ease-in-out infinite alternate; }

.life-copy h3 { font-family: var(--display); text-transform: uppercase; letter-spacing: .04em; font-size: clamp(1.8rem, 3vw, 2.6rem); line-height: .95; margin-bottom: 12px; }
.life-copy .lead { margin-bottom: 4px; }
.life-copy.swap > * { animation: swapin .45s cubic-bezier(.2, .7, .2, 1) both; }
.life-copy.swap > *:nth-child(2) { animation-delay: .06s; }
.life-copy.swap > *:nth-child(3) { animation-delay: .12s; }
.life-copy.swap > *:nth-child(4) { animation-delay: .18s; }

/* ---------- Bootcamp strip + CTA strip ---------- */
.boot { position: relative; overflow: hidden; padding-top: 28px; }
.boot-strip {
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 6px;
  background: repeating-linear-gradient(90deg, var(--gold) 0 18px, transparent 18px 30px);
  background-size: 30px 6px;
  animation: floorx 1.2s linear infinite;
}
.boot-strip.strip-2 { background-image: repeating-linear-gradient(90deg, var(--cyan) 0 18px, transparent 18px 30px); }
@keyframes floorx { to { background-position: 30px 0; } }
.boot:hover { border-color: var(--gold); transform: translateY(-3px); }

.cta-strip {
  position: absolute;
  left: 0; right: 0; top: 50%;
  transform: translateY(-50%);
  width: 100%;
  height: 80px;
  opacity: .5;
  pointer-events: none;
}
.cta-strip .trace { stroke: rgba(22, 29, 16, .1); }
.cta-strip .trace-live { stroke-dasharray: 6 18; opacity: .6; }
.cta-strip .spk { offset-path: path("M 0 40 H 1000"); }
.cta-nodes circle { fill: #fffefb; stroke: var(--line-ink); stroke-width: 1.5; }
.cta > div { position: relative; }

.page-hero { position: relative; overflow: hidden; padding: 128px 0 48px; }
.page-hero::before {
  content: "";
  position: absolute;
  left: -15%;
  right: -15%;
  bottom: -55%;
  height: 80%;
  z-index: -1;
  background-image:
    linear-gradient(rgba(119, 185, 0, .25) 1px, transparent 1px),
    linear-gradient(90deg, rgba(119, 185, 0, .25) 1px, transparent 1px);
  background-size: 52px 52px;
  transform: perspective(500px) rotateX(64deg);
  transform-origin: 50% 100%;
  mask-image: linear-gradient(0deg, #000 10%, transparent 75%);
  animation: floor 4s linear infinite;
  pointer-events: none;
}

.page-hero .lead { margin-top: 14px; }

.cap-nav {
  position: sticky;
  top: var(--header);
  z-index: 8;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 10px 0;
  background: rgba(251, 248, 240, 0.94);
  border-bottom: 1px solid var(--line-ink);
  box-shadow: 0 8px 20px -18px rgba(22, 29, 16, .45);
}

.cap-nav a {
  flex: none;
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  font-size: 14px;
}

.cap-nav a:hover { border-color: var(--gold); color: var(--accent-text); }
.cap-nav a.is-active {
  border-color: var(--gold);
  background: rgba(119, 185, 0, .12);
  color: var(--accent-text);
}

.diagram {
  min-height: 160px;
  border-radius: 14px;
  background: var(--panel-2);
  border: 1px solid var(--line-ink);
  display: grid;
  place-items: center;
  padding: 16px;
  position: relative;
  overflow: hidden;
}
.diagram svg { width: min(100%, 360px); height: auto; display: block; }

/* generated step diagram (see renderDiagram in site.js) */
.sd .link-bg { fill: none; stroke: rgba(22, 29, 16, .14); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sd .link { fill: none; stroke: var(--gold); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: var(--len); stroke-dashoffset: 0; }
.sd .pkt-d { fill: var(--gold); opacity: 0; filter: drop-shadow(0 0 5px rgba(119, 185, 0, .85)); }
.sd .step rect { fill: #143b28; stroke: rgba(22, 29, 16, .25); stroke-width: 1.2; }
.sd .step.is-first rect { stroke: var(--gold); stroke-width: 1.6; }
.sd .step.is-last rect { stroke: var(--cyan); stroke-width: 1.6; }
.sd .step text { fill: #eef6f1; font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: .06em; }
.diagram.in .sd .link, .eg.on .sd .link { animation: drawlen 1.4s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes drawlen { from { stroke-dashoffset: var(--len); } to { stroke-dashoffset: 0; } }
.diagram.in .sd .pkt-d, .eg.on .sd .pkt-d { animation: pktin 4s linear .6s infinite; }
@keyframes pktin { 0% { offset-distance: 0%; opacity: 0; } 6% { opacity: 1; } 94% { opacity: 1; } 100% { offset-distance: 100%; opacity: 0; } }
.diagram.in .sd .step, .eg.on .sd .step { animation: swapin .5s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(var(--i) * 110ms); }

.cap {
  scroll-margin-top: 140px;
  padding: 40px 0;
  border-top: 1px solid var(--line);
}

.cap-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 32px;
  align-items: start;
}
.cap-grid .diagram { position: sticky; top: calc(var(--header) + 76px); }

.cap .kicker { margin-bottom: 8px; }

.cap h2 { margin-bottom: 12px; }

.cap .lead { margin-bottom: 16px; }

.cap-label {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 18px 0 8px;
}

.cap ul, .plain-list { margin: 0; padding-left: 18px; }
.cap ul.cols { columns: 2; column-gap: 28px; }
.cap ul.cols li { break-inside: avoid; }

.cap li + li, .plain-list li + li { margin-top: 6px; }
.cap .chips { margin-top: 0; }

.chips, .chip-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }

.note {
  margin-top: 10px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
}

.services { grid-template-columns: 1fr 1fr; }

.card h2 { margin: 8px 0 10px; }

.filter { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0; }

.role-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.empty {
  color: var(--muted);
  padding: 12px 0;
}

.contact {
  position: relative;
  padding: 0 0 72px;
  background:
    radial-gradient(50% 40% at 80% 0%, rgba(119, 185, 0, .14), transparent 70%),
    radial-gradient(40% 40% at 10% 100%, rgba(15, 111, 134, .16), transparent 70%),
    var(--night);
  color: var(--night-text);
  color-scheme: dark;
}
.contact-trace {
  display: block;
  width: 100%;
  height: 40px;
  margin-bottom: 28px;
}
.contact-trace .trace { stroke: rgba(238, 246, 241, .12); }
.contact-trace .trace-live { stroke-dasharray: 6 18; opacity: .7; }
.contact-trace .spk { offset-path: path("M 0 20 H 1000"); animation: travel 6.5s linear infinite; }
.contact-trace .spk-2 { animation-duration: 9s; animation-delay: -3s; }
.contact h2 { color: var(--night-text); }
.contact a { color: var(--night-text); }
.contact .kicker { color: #8af0b7; }
.contact .lead, .contact label { color: var(--night-muted); }
.contact .note { color: var(--night-muted); margin-top: 12px; }
.contact-mail {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 600;
  border-bottom: 1px solid rgba(238, 246, 241, .28);
  text-decoration: none;
  transition: color .2s, border-color .2s;
}
.contact-mail:hover { color: #8af0b7; border-color: #8af0b7; }
.contact input, .contact select, .contact textarea {
  background: #fffefb;
  color: #161d10;
  border: 1px solid rgba(238, 246, 241, .35);
}
.contact input:focus-visible,
.contact select:focus-visible,
.contact textarea:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
  border-color: var(--gold);
}
.form-status {
  min-height: 1.4em;
  margin: 4px 0 0;
  font-size: 14px;
  color: #8af0b7;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 32px;
}

form { display: grid; gap: 12px; }

.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

label { display: grid; gap: 6px; font-size: 14px; color: var(--muted); }

input, select, textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--ink);
  font-size: 16px;
}

textarea { min-height: 120px; resize: vertical; }

.err { color: #8af0b7; font-size: 13px; }

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  padding: 0 0 36px;
  background:
    radial-gradient(60% 40% at 90% 100%, rgba(119, 185, 0, .14), transparent 70%),
    radial-gradient(40% 40% at 0% 0%, rgba(15, 111, 134, .16), transparent 70%),
    var(--night);
  color: var(--night-muted);
  color-scheme: dark;
}
.footer-trace { display: block; width: 100%; height: 40px; }
.footer-trace .trace { stroke: rgba(238, 246, 241, .12); }
.footer-trace .trace-live { stroke-dasharray: 6 18; opacity: .7; }
.footer-trace .spk { animation-duration: 7s; }
.footer-trace .spk-2 { animation-duration: 9.5s; }

.footer-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 32px;
  padding: 28px 0 40px;
}
.footer-brand .logo img { height: 42px; }
.footer-tag {
  margin-top: 16px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #8af0b7;
}
.footer-line { margin-top: 10px; max-width: 30rem; color: var(--night-muted); }
.footer-mail {
  display: inline-flex;
  align-items: center;
  margin-top: 18px;
  min-height: 44px;
  color: var(--night-text);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid rgba(238, 246, 241, .25);
  transition: border-color .2s, color .2s;
}
.footer-mail:hover { color: #8af0b7; border-color: #8af0b7; }

.footer-col { display: grid; align-content: start; gap: 2px; }
.footer-col h4 {
  margin: 0 0 10px;
  font-family: var(--display);
  font-size: 1.05rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--night-text);
}
.footer-col a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  color: var(--night-muted);
  text-decoration: none;
  font-size: 15px;
  position: relative;
  transition: color .2s, transform .2s;
}
.footer-col a::before {
  content: "";
  width: 0;
  height: 1px;
  background: var(--gold);
  margin-right: 0;
  transition: width .25s, margin-right .25s;
}
.footer-col a:hover { color: var(--night-text); }
.footer-col a:hover::before { width: 12px; margin-right: 8px; }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 20px;
  border-top: 1px solid rgba(238, 246, 241, .12);
  font-size: 13px;
}
.legal { margin: 0; }
.footer-note { font-family: var(--mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; }
.to-top {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid rgba(238, 246, 241, .18);
  border-radius: 999px;
  color: var(--night-text);
  text-decoration: none;
  transition: border-color .2s, background .2s;
}
.to-top:hover { border-color: var(--gold); background: rgba(119, 185, 0, .12); }
.to-top span { transition: transform .25s; }
.to-top:hover span { transform: translateY(-3px); }

body.aiie { background: var(--cream); color: var(--cream-ink); }

body.aiie .page-hero {
  background: var(--night);
  color: var(--night-text);
}
body.aiie .page-hero h1,
body.aiie .page-hero .kicker { color: #8af0b7; }
body.aiie .page-hero h1 { color: var(--night-text); }
body.aiie .page-hero .lead { color: var(--night-muted); }
body.aiie .page-hero::before { opacity: .45; }

.aiie-intro { padding: 48px 0 20px; }

.aiie-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
}

.aiie-card {
  text-align: left;
  background: var(--card);
  border: 1px solid var(--tan);
  border-radius: 20px;
  padding: 16px;
  cursor: pointer;
  color: var(--cream-ink);
  min-height: 44px;
  position: relative;
  overflow: hidden;
  transition: border-color .25s, transform .25s, box-shadow .25s;
}

.aiie-card .mark {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--leaf);
  margin-bottom: 12px;
}

.aiie-card .well {
  background: #f5f1e4;
  border-radius: 14px;
  min-height: 110px;
  margin-bottom: 12px;
  display: grid;
  place-items: center;
  transition: transform .4s cubic-bezier(.2, .7, .2, 1);
}

.aiie-card p { color: var(--cream-muted); margin: 8px 0 12px; }

.aiie-card em {
  font-style: normal;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--cream-green);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.aiie-card em::after { content: "→"; transition: transform .2s; }

.aiie-card:hover, .aiie-card[aria-expanded="true"] {
  border-color: var(--leaf);
  transform: translateY(-3px);
  box-shadow: 0 18px 36px -28px rgba(22, 29, 16, .45);
}
.aiie-card:hover .well, .aiie-card[aria-expanded="true"] .well { transform: scale(1.04); }
.aiie-card[aria-expanded="true"] em::after { transform: translateX(4px); }
.aiie-card[aria-expanded="true"] em::before { content: "Open · "; }

.aiie-panel {
  margin-top: 16px;
  background: var(--card);
  border: 1px solid var(--tan);
  border-radius: 20px;
  padding: 24px;
  color: var(--cream-ink);
  transform-origin: top;
}
.aiie-panel.is-open {
  animation: panelIn .45s cubic-bezier(.2, .7, .2, 1);
}
@keyframes panelIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

.aiie-panel h2 { color: var(--cream-ink); margin-bottom: 10px; }

.aiie-panel p, .aiie-panel li { color: var(--cream-muted); }

.aiie-panel .chip-list span {
  color: var(--cream-green);
  border-color: var(--tan);
}

.auth {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  min-height: calc(100vh - var(--header));
}

.auth-side {
  padding: 48px 32px;
  background:
    radial-gradient(80% 50% at 50% 100%, rgba(119, 185, 0, .25), transparent 70%),
    var(--night);
  color: var(--night-text);
  border-right: 1px solid rgba(119, 185, 0, .25);
}
.auth-side h1 { color: var(--night-text); }
.auth-side .lead, .auth-side ol { color: var(--night-muted); }

.auth-side ol { margin: 24px 0 0; padding-left: 18px; color: var(--night-muted); }
.auth-side .demo { color: #8af0b7; }
#auth-view { padding-top: var(--header); }

.auth-card { padding: 36px 28px 64px; max-width: 640px; }

.demo {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--accent-text);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }

.check { display: flex; gap: 8px; align-items: center; color: var(--text); }

.check input { width: auto; }

.interest { display: flex; flex-wrap: wrap; gap: 8px; }

.interest label {
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 10px;
  color: var(--text);
}

.stats { grid-template-columns: repeat(5, minmax(0, 1fr)); }

.ring {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: conic-gradient(var(--gold) calc(var(--p) * 1%), rgba(22, 29, 16, 0.1) 0);
  font-family: var(--display);
  font-size: 1.3rem;
}

.ring span {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--ink);
  display: grid;
  place-items: center;
}

.status {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.status span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 12px;
  color: var(--muted);
}

.status span.on { border-color: var(--gold); color: var(--accent-text); }

@media (max-width: 939px) {
  .nav-toggle { display: block; }
  .logo img { height: 32px; }

  .site-nav {
    display: flex;
    position: fixed;
    inset: calc(var(--header) + env(safe-area-inset-top)) 0 0 0;
    background: var(--ink);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 16px 20px 32px;
    overflow: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity .25s, transform .25s, visibility .25s;
  }
  .site-nav.open { opacity: 1; visibility: visible; transform: none; }

  .site-nav > a,
  .nav-drop > button {
    height: auto;
    width: 100%;
    justify-content: space-between;
    padding: 14px 0;
    border-radius: 0;
    border-bottom: 1px solid var(--line-ink);
    font-family: var(--display);
    font-size: 1.9rem;
    text-transform: uppercase;
    letter-spacing: .03em;
    opacity: 0;
    transform: translateY(10px);
  }
  .site-nav > a::after, .nav-drop > button::after { display: none; }
  .site-nav > a:hover, .nav-drop > button:hover, .nav-drop.open > button { background: none; }
  .site-nav.open > a, .site-nav.open .nav-drop > button, .site-nav.open .nav-cta { animation: rise .45s cubic-bezier(.2, .7, .2, 1) forwards; }
  .site-nav.open > :nth-child(2) > button, .site-nav.open > a:nth-child(2) { animation-delay: .05s; }
  .site-nav.open > :nth-child(3) > button, .site-nav.open > a:nth-child(3) { animation-delay: .1s; }
  .site-nav.open > a:nth-child(4) { animation-delay: .15s; }
  .site-nav.open > a:nth-child(5) { animation-delay: .2s; }
  .site-nav.open .nav-cta { animation-delay: .25s; }
  .chev { width: 18px; height: 18px; }

  .nav-drop { display: grid; }
  .nav-menu {
    position: static;
    display: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    border: 0;
    box-shadow: none;
    background: transparent;
    padding: 4px 0 8px 12px;
    min-width: 0;
  }
  .nav-drop.open .nav-menu { display: grid; }
  .nav-drop:hover .nav-menu, .nav-drop:focus-within .nav-menu { display: none; }
  .nav-drop.open:hover .nav-menu, .nav-drop.open:focus-within .nav-menu { display: grid; }
  .nav-menu-all { border-bottom: 0; margin-bottom: 0; }

  .nav-cta { margin: 20px 0 0; flex-direction: column; align-items: stretch; opacity: 0; transform: translateY(10px); }
  .nav-cta .btn { min-height: 48px; }

  .footer-top { grid-template-columns: 1fr 1fr; gap: 24px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .footer-note { display: none; }

  .hero { min-height: 0; padding: 96px 0 28px; }
  .floor, .dust, .pkt, .pkt-2, .pkt-3, .scroll-cue, .page-hero::before, .stage svg, .shield, .hud { display: none; }

  .stage-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: node;
  }
  .stage-list li {
    counter-increment: node;
    font-family: var(--mono);
    font-size: 12px;
    padding: 10px 12px;
    border: 1px solid var(--line-ink);
    border-radius: 10px;
    color: var(--muted);
    transition: border-color .3s, color .3s, background .3s;
  }
  .stage-list li::before { content: counter(node, decimal-leading-zero) " "; color: var(--accent-text); }
  .stage-list li.on { color: var(--text); border-color: var(--gold); }
  .stage-list li.now { background: var(--gold); color: var(--gold-ink); border-color: var(--gold); }
  .stage-list li.now::before { color: var(--gold-ink); }

  .hero-top, .mission, .boot-grid, .cap-grid, .contact-grid, .auth, .cta, .services, .hero-foot, .flow-detail, .life-body, .engage-body {
    grid-template-columns: 1fr;
  }
  .svc-grid { grid-template-columns: 1fr; }
  .svc-tile { min-height: 0; }
  .engage-rail { display: flex; overflow-x: auto; gap: 8px; grid-template-columns: none; }
  .engage-rail button { flex: none; min-width: 120px; }
  .engage-well { min-height: 0; }
  .cap-grid .diagram { position: static; }
  .cap ul.cols { columns: 1; }
  .contact-trace { margin-bottom: 12px; }
  .hero-foot { flex-wrap: wrap; }
  .mission-line, .progress, .hot, .cta-strip { display: none; }

  .tiles, .metric-grid, .role-grid, .aiie-grid, .stats { grid-template-columns: 1fr; }
  .bento { grid-template-columns: 1fr; }
  .bento .tile { grid-column: auto; min-height: 150px; }

  .fields { grid-template-columns: 1fr; }

  .carousel-viewport { min-height: 0; }
  .slide { grid-template-columns: 1fr; padding: 24px; gap: 8px; }
  .scn { grid-column: 1; grid-row: 1; max-height: 200px; justify-self: center; }
  .slide-copy { grid-row: 2; }
  .slide.is-active .scn { animation: none; }
  .band-head-row { flex-wrap: wrap; }

  .flow-rail { display: flex; overflow-x: auto; gap: 8px; padding-bottom: 4px; scrollbar-width: thin; }
  .flow-rail button { flex: none; width: 128px; min-height: 88px; }
  .flow-track { display: none; }
  .spk, .cta-strip { display: none; }

  .life-rail { display: flex; overflow-x: auto; gap: 8px; padding-bottom: 4px; scrollbar-width: thin; }
  .life-rail button { flex: none; min-width: 120px; }

  .cta .actions { justify-content: flex-start; }
}

@media (min-width: 640px) and (max-width: 939px) {
  .tiles, .aiie-grid, .role-grid, .svc-grid { grid-template-columns: 1fr 1fr; }
  .metric-grid, .stats { grid-template-columns: 1fr 1fr; }
  .bento { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .pkt, .pkt-2, .pkt-3, .spk, .floor, .dust, .page-hero::before, .scroll-cue i::after, .boot-strip, .hot i::after, .node .ring { display: none; }
  .rv, .hero .rise, .slide .rise, .hot, .site-nav > a, .nav-drop > button, .nav-cta { opacity: 1; transform: none; animation: none; }
  .site-nav, .nav-menu, .nav-toggle span, .footer-trace .spk { transition: none; animation: none; }
  .slide.is-active, .slide.is-leaving, .aiie-card, .aiie-panel, .scn, .scn *, .trace-live, .trace-cyan, .mission-line, .cta::after, .mv-art *, .lf, .lf *, .eg, .eg *, .progress button i, .life-bar i, .shield, .flow-detail.swap > *, .flow-fill, .flow-pkt, .flow-node, .life-copy.swap > *, .sd .link, .sd .step { transition: none; animation: none; }
  .flow-spark, .sd .pkt-d { display: none; }
  .slide.is-leaving { visibility: hidden; }
  .lf .draw, .lf .tick, .lf .wave-l, .scn .wave { stroke-dashoffset: 0; }
}
