/* North Grove Tech — site styles
   Layout concept: a quiet "grove grid" — 12 columns marked by faint crosshairs,
   midnight heroes where the north star lives, open light sections below. */
:root {
  /* Brand palette (from Brand Foundations + Website Guidelines) */
  --navy: #0B1F3B;
  --midnight: #071A2C;
  --cobalt: #3B82F6;
  --deep-blue: #1E3A8A;
  --blue: #60A5FA;
  --sky: #93C5FD;
  --mint: #7EE7DB;
  --forest: #0F5132;
  --charcoal: #1F2937;

  /* Theme tokens — light */
  --bg: #F6F8FB;
  --surface: #FFFFFF;
  --surface-2: #EEF2F8;
  --ink: #0B1F3B;
  --muted: #4A5B74;
  --line: #DCE3EE;
  --link: #1D4ED8;
  --btn-bg: #2563EB;          /* cobalt, deepened one step for 4.5:1 with white text */
  --btn-fg: #FFFFFF;
  --btn-bg-hover: #1E3A8A;
  --icon-fill: #3B82F6;
  --icon-stroke-accent: #14A394;
  --chip-bg: #E6EEFD;
  --chip-fg: #1E3A8A;
  --focus: #2563EB;
  --shadow: 0 1px 2px rgba(11, 31, 59, .05), 0 12px 32px -12px rgba(11, 31, 59, .18);

  /* Midnight surfaces stay dark in both themes */
  --night-bg: #071A2C;
  --night-2: #0B2540;
  --night-ink: #F3F7FC;
  --night-muted: #A9BBD3;
  --night-line: rgba(147, 197, 253, .16);

  /* Type */
  --font-display: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --step--1: .875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: clamp(1.4rem, 1.1rem + 1vw, 1.75rem);
  --step-3: clamp(1.9rem, 1.3rem + 2.4vw, 3.1rem);
  --step-4: clamp(2.5rem, 1.4rem + 4.6vw, 5.6rem);

  --wrap: 1240px;
  --radius: 18px;
  --ease: cubic-bezier(.22, .8, .24, 1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #071A2C;
    --surface: #0C2239;
    --surface-2: #0F2944;
    --ink: #F3F7FC;
    --muted: #A9BBD3;
    --line: rgba(147, 197, 253, .14);
    --link: #93C5FD;
    --btn-bg: #60A5FA;
    --btn-fg: #071A2C;
    --btn-bg-hover: #93C5FD;
    --icon-fill: #60A5FA;
    --icon-stroke-accent: #7EE7DB;
    --chip-bg: rgba(96, 165, 250, .14);
    --chip-fg: #BFDBFE;
    --focus: #93C5FD;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 16px 40px -16px rgba(0, 0, 0, .6);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #071A2C;
  --surface: #0C2239;
  --surface-2: #0F2944;
  --ink: #F3F7FC;
  --muted: #A9BBD3;
  --line: rgba(147, 197, 253, .14);
  --link: #93C5FD;
  --btn-bg: #60A5FA;
  --btn-fg: #071A2C;
  --btn-bg-hover: #93C5FD;
  --icon-fill: #60A5FA;
  --icon-stroke-accent: #7EE7DB;
  --chip-bg: rgba(96, 165, 250, .14);
  --chip-fg: #BFDBFE;
  --focus: #93C5FD;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 16px 40px -16px rgba(0, 0, 0, .6);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { max-width: 100%; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.08;
  letter-spacing: -.025em;
  margin: 0;
  text-wrap: balance;
  font-weight: 700;
}
p { margin: 0; text-wrap: pretty; }
a { color: var(--link); text-underline-offset: .2em; }
:focus-visible { outline: 2.5px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--btn-bg); color: var(--btn-fg); padding: 10px 16px; border-radius: 999px; font-weight: 600; text-decoration: none; }
.skip:focus { top: calc(12px + env(safe-area-inset-top, 0px)); }

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + 64px);
  margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px), 4vw);
  padding-right: max(16px, env(safe-area-inset-right, 0px), 4vw);
}
@media (min-width: 1440px) { .wrap { padding-left: max(32px, env(safe-area-inset-left, 0px)); padding-right: max(32px, env(safe-area-inset-right, 0px)); } }

/* ---------- Labels ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .7em;
  font-family: var(--font-display);
  font-size: .78rem; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--muted);
}
.eyebrow::after { content: ""; width: 36px; height: 2px; border-radius: 2px; background: var(--mint); }
.eyebrow .num { color: var(--icon-fill); }
.star-bullet { width: .8em; height: .8em; flex: none; }

/* ---------- Buttons ---------- */
.btn {
  --b-bg: var(--btn-bg); --b-fg: var(--btn-fg);
  display: inline-flex; align-items: center; gap: .6em;
  min-height: 48px; padding: .75em 1.4em;
  border-radius: 999px; border: 1.5px solid transparent;
  background: var(--b-bg); color: var(--b-fg);
  font-family: var(--font-display); font-weight: 700; font-size: 1rem;
  text-decoration: none; cursor: pointer;
  transition: background-color .25s var(--ease), color .25s var(--ease), transform .25s var(--ease), border-color .25s var(--ease);
}
.btn:hover { background: var(--btn-bg-hover); }
.btn:active { transform: translateY(1px); }
.btn .arrow { transition: transform .3s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--surface-2); border-color: var(--icon-fill); }
.on-night .btn { --btn-bg: #3B82F6; --btn-fg: #FFFFFF; --btn-bg-hover: #2563EB; }
.on-night .btn { background: #2563EB; color: #fff; }
.on-night .btn:hover { background: #3B82F6; }
.on-night .btn-ghost { background: transparent; color: var(--night-ink); border-color: rgba(147, 197, 253, .35); }
.on-night .btn-ghost:hover { background: rgba(147, 197, 253, .1); border-color: var(--mint); }
.text-link { font-family: var(--font-display); font-weight: 700; color: var(--link); text-decoration: none; display: inline-flex; gap: .4em; align-items: center; }
.text-link:hover { text-decoration: underline; }
.text-link .arrow { transition: transform .3s var(--ease); }
.text-link:hover .arrow { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);
  color: var(--night-ink);
  transition: background-color .35s var(--ease), color .35s var(--ease), box-shadow .35s var(--ease);
}
.site-header.is-scrolled {
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  color: var(--ink);
  box-shadow: 0 1px 0 var(--line);
}
.nav { display: flex; align-items: center; gap: 24px; height: 76px; }
.brand { display: inline-flex; color: inherit; flex: none; border-radius: 8px; }
.brand svg { height: 40px; width: auto; display: block; }
.nav-links { display: flex; gap: 4px; margin: 0 auto; padding: 0; list-style: none; }
.nav-links a {
  position: relative; display: block; padding: 10px 16px;
  font-family: var(--font-display); font-weight: 600; font-size: .95rem;
  color: inherit; text-decoration: none; opacity: .82; border-radius: 999px;
  transition: opacity .2s;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { opacity: 1; }
.nav-links a[aria-current="page"]::after {
  content: ""; position: absolute; left: 16px; right: 16px; bottom: 4px; height: 2px; border-radius: 2px; background: var(--mint);
}
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav .btn { min-height: 44px; padding: .55em 1.2em; font-size: .92rem; }
.site-header:not(.is-scrolled) .btn { background: #2563EB; color: #fff; }
.site-header:not(.is-scrolled) .btn:hover { background: #3B82F6; }
.icon-btn {
  width: 44px; height: 44px; display: inline-grid; place-items: center;
  border-radius: 999px; border: 1.5px solid currentColor; border-color: color-mix(in srgb, currentColor 28%, transparent);
  background: transparent; color: inherit; cursor: pointer;
}
.icon-btn:hover { border-color: currentColor; }
.icon-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle .moon { display: none; }
:root[data-theme="dark"] .theme-toggle .sun { display: none; }
:root[data-theme="dark"] .theme-toggle .moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .sun { display: none; }
  :root:not([data-theme="light"]) .theme-toggle .moon { display: block; }
}
.menu-toggle { display: none; }
.mobile-menu { display: none; }

@media (max-width: 900px) {
  .nav { height: 66px; }
  .brand svg { height: 34px; }
  .nav-links, .nav-actions .btn { display: none; }
  .nav-actions { margin-left: auto; }
  .menu-toggle { display: inline-grid; }
  .mobile-menu {
    display: block; position: fixed; inset: 0; z-index: 49;
    background: var(--night-bg); color: var(--night-ink);
    padding: calc(96px + env(safe-area-inset-top, 0px)) max(24px, env(safe-area-inset-right, 0px)) 32px max(24px, env(safe-area-inset-left, 0px));
    transform: translateY(-100%); visibility: hidden;
    transition: transform .5s var(--ease), visibility 0s linear .5s;
  }
  .menu-open .mobile-menu { transform: none; visibility: visible; transition: transform .5s var(--ease); }
  .menu-open .site-header { color: var(--night-ink); background: transparent; box-shadow: none; backdrop-filter: none; }
  .mobile-menu ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
  .mobile-menu a:not(.btn) {
    display: flex; justify-content: space-between; align-items: center;
    font-family: var(--font-display); font-weight: 700; font-size: 2rem; letter-spacing: -.02em;
    color: inherit; text-decoration: none; padding: 10px 0; border-bottom: 1px solid var(--night-line);
  }
  .mobile-menu a[aria-current="page"] { color: var(--mint); }
  .mobile-menu .btn { margin-top: 28px; }
}

/* ---------- Night (midnight) surfaces ---------- */
.on-night { background: var(--night-bg); color: var(--night-ink); --muted: var(--night-muted); --line: var(--night-line); --link: #93C5FD; --icon-fill: #60A5FA; --icon-stroke-accent: #7EE7DB; --chip-bg: rgba(96,165,250,.14); --chip-fg: #BFDBFE; --focus: #93C5FD; }
.on-night .eyebrow { color: var(--night-muted); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; isolation: isolate; }
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; display: block; }
.hero::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 140px; z-index: -1;
  background: linear-gradient(to bottom, transparent, rgba(7, 26, 44, .9));
  pointer-events: none;
}
.hero-home .wrap {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .9fr); align-items: center; gap: 32px;
  padding-block: calc(140px + env(safe-area-inset-top, 0px)) 96px;
}
.hero h1 { font-size: var(--step-4); font-weight: 800; letter-spacing: -.04em; line-height: 1.0; margin-block: 22px 26px; }
.hero .lede { font-size: var(--step-1); color: var(--night-muted); max-width: 34em; line-height: 1.6; }
.hero .lede strong { color: var(--night-ink); font-weight: 600; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero-meta {
  display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 56px; padding-top: 22px;
  border-top: 1px solid var(--night-line); list-style: none; padding-left: 0;
  font-family: var(--font-display); font-weight: 700; font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; color: var(--night-muted);
}
.hero-meta li { display: inline-flex; align-items: center; gap: 10px; }
.hero-meta svg { width: 10px; height: 10px; fill: var(--mint); }

.hero-mark { position: relative; justify-self: center; width: min(100%, 460px); aspect-ratio: 272 / 215; max-width: 100%; }
.hero-mark svg { width: 100%; height: auto; overflow: visible; display: block; }
.hero-mark .glow {
  position: absolute; left: 50%; top: 4%; width: 46%; aspect-ratio: 1; transform: translate(-50%, -30%);
  background: radial-gradient(circle, rgba(126, 231, 219, .38), rgba(59, 130, 246, .12) 45%, transparent 70%);
  filter: blur(6px); pointer-events: none; z-index: -1;
}

/* Grow sequence: roots, branches, canopy tiers, then the star */
.mark-anim .m-trunk, .mark-anim .m-root, .mark-anim .m-c1, .mark-anim .m-c2, .mark-anim .m-c3, .mark-anim .m-c4, .mark-anim .m-c5, .mark-anim .m-star {
  transform-box: fill-box; transform-origin: 50% 100%;
  animation: rise 1.1s var(--ease) both;
}
.mark-anim .m-root { transform-origin: 50% 0%; animation-name: drop; animation-delay: .1s; }
.mark-anim .m-trunk { animation-delay: .15s; animation-name: grow; }
.mark-anim .m-c4, .mark-anim .m-c5 { animation-delay: .35s; }
.mark-anim .m-c3 { animation-delay: .5s; }
.mark-anim .m-c2 { animation-delay: .62s; }
.mark-anim .m-c1 { animation-delay: .76s; }
.mark-anim .m-star { transform-origin: 50% 50%; animation: star-in 1.2s var(--ease) .95s both, twinkle 5s ease-in-out 2.2s infinite; }
@keyframes rise { from { opacity: 0; transform: translateY(14px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes grow { from { opacity: 0; transform: scaleY(.2); } to { opacity: 1; transform: none; } }
@keyframes drop { from { opacity: 0; transform: scaleY(.1); } to { opacity: 1; transform: none; } }
@keyframes star-in { from { opacity: 0; transform: scale(.2) rotate(-45deg); } to { opacity: 1; transform: none; } }
@keyframes twinkle { 0%, 100% { transform: scale(1); filter: drop-shadow(0 0 0 rgba(126,231,219,0)); } 50% { transform: scale(1.12); filter: drop-shadow(0 0 10px rgba(126,231,219,.8)); } }

.page-hero .wrap { padding-block: calc(150px + env(safe-area-inset-top, 0px)) 88px; max-width: calc(var(--wrap) + 64px); }
.page-hero h1 { font-size: clamp(2.4rem, 1.3rem + 4vw, 4.6rem); max-width: 15em; }
.page-hero .lede { max-width: 38em; }

@media (max-width: 900px) {
  .hero-home .wrap { grid-template-columns: 1fr; padding-block: calc(112px + env(safe-area-inset-top, 0px)) 72px; gap: 8px; }
  .hero-mark { order: -1; width: min(62%, 280px); justify-self: start; }
  .hero-meta { margin-top: 40px; }
  .page-hero .wrap { padding-block: calc(116px + env(safe-area-inset-top, 0px)) 64px; }
}

/* ---------- Sections ---------- */
.section { padding-block: clamp(80px, 9vw, 140px); position: relative; }
.section + .section { border-top: 1px solid var(--line); }
.section-head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 24px 64px; align-items: end; margin-bottom: clamp(40px, 5vw, 72px); }
.section-head h2 { font-size: var(--step-3); margin-top: 18px; }
.section-head p { color: var(--muted); font-size: var(--step-1); max-width: 34em; line-height: 1.6; }
.section-head.solo { grid-template-columns: minmax(0, 1fr); max-width: 52rem; }
@media (max-width: 900px) { .section-head { grid-template-columns: 1fr; align-items: start; } }

/* crosshair markers at section corners (Grid & Crosshair texture) */
/* Section marker: a small dot grid from the brand motifs */
.xh { position: absolute; width: 15px; height: 15px; pointer-events: none; color: var(--icon-fill); opacity: .55;
  background: radial-gradient(circle, currentColor 1.1px, transparent 1.5px) 0 0 / 6px 6px; }
.section > .xh { top: -8px; left: max(16px, 4vw); }
@media (min-width: 1440px) { .section > .xh { left: calc(50% - var(--wrap) / 2 - 8px); } }

/* ---------- Essence ---------- */
.essence { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px 72px; align-items: start; }
.essence-quote { font-size: var(--step-3); font-weight: 700; letter-spacing: -.03em; line-height: 1.1; }
.essence-quote span { color: var(--icon-fill); }
.essence-body { display: grid; gap: 18px; color: var(--muted); font-size: var(--step-1); line-height: 1.6; padding-top: 10px; }
.essence-body strong { color: var(--ink); font-weight: 600; }
@media (max-width: 900px) { .essence { grid-template-columns: 1fr; } }

/* ---------- Practices ---------- */
.practices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.practice {
  position: relative; overflow: hidden;
  display: grid; gap: 22px; align-content: start;
  padding: clamp(28px, 3.5vw, 48px);
  border-radius: calc(var(--radius) + 6px);
  background: var(--surface); border: 1px solid var(--line);
}
.practice h3 { font-size: var(--step-2); }
.practice > p { color: var(--muted); max-width: 30em; }
.practice .tag { font-family: var(--font-display); font-weight: 700; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--icon-fill); }
.practice-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 18px; }
.practice-list li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); font-weight: 500; font-size: .98rem; min-width: 0; }
.practice-list .ico { width: 32px; height: 32px; flex: none; }
.practice-art { position: absolute; right: -30px; top: -30px; width: 200px; height: 200px; opacity: .9; pointer-events: none; }
@media (max-width: 900px) { .practices { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .practice-list { grid-template-columns: 1fr; } }

/* ---------- Icons ---------- */
/* Canopy arc over a solid glyph. Ink flips with the theme; the arc keeps its cobalt-to-sky gradient. */
:root { --ico-ink: #0B1F3B; --ico-ink-2: #1E3A8A; --ico-detail: #FFFFFF; --ico-accent: #3B82F6; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --ico-ink: #F3F7FC; --ico-ink-2: #BFDBFE; --ico-detail: #0B1F3B; --ico-accent: #60A5FA; } }
:root[data-theme="dark"], .on-night { --ico-ink: #F3F7FC; --ico-ink-2: #BFDBFE; --ico-detail: #0B1F3B; --ico-accent: #60A5FA; }
.ico { display: block; overflow: visible; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.ico .ar { stroke: url(#ngArc); stroke-width: 4; }
.ico .k { fill: var(--ico-ink); }
.ico .k2 { fill: var(--ico-ink-2); }
.ico .d { fill: var(--ico-detail); }
.ico .a { fill: var(--ico-accent); }
.ico .kl { stroke: var(--ico-ink); stroke-width: 2.6; }
.ico .kl4 { stroke: var(--ico-ink); stroke-width: 4.6; }
.ico .dl { stroke: var(--ico-detail); stroke-width: 2.4; }
.ico .dl2 { stroke: var(--ico-detail); stroke-width: 2; }
.ico .al { stroke: var(--ico-accent); stroke-width: 2.6; }
.ico .al3 { stroke: var(--ico-accent); stroke-width: 3.2; }

/* ---------- Growth loop ---------- */
.loop { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px 72px; align-items: center; }
.loop-copy h2 { font-size: var(--step-3); margin-block: 18px 20px; }
.loop-copy p { color: var(--muted); font-size: var(--step-1); line-height: 1.6; }
.loop-copy p + p { margin-top: 14px; }
.loop-diagram { width: 100%; max-width: 640px; justify-self: center; }
.loop-diagram svg { width: 100%; height: auto; display: block; overflow: visible; }
.loop-diagram .ring { fill: none; stroke: var(--line); stroke-width: 1.5; }
.loop-diagram .ring-flow { fill: none; stroke: url(#loopGrad); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 120 900; animation: flow 9s linear infinite; }
.loop-diagram .node circle { fill: var(--surface); stroke: var(--line); stroke-width: 1.5; }
.loop-diagram .node .ring-acc { fill: none; stroke: var(--icon-fill); stroke-width: 2; }
.loop-diagram text { fill: var(--ink); font-family: var(--font-display); font-weight: 700; font-size: 17px; }
.loop-diagram .sub { fill: var(--muted); font-family: var(--font-body); font-weight: 400; font-size: 13.5px; }
.loop-diagram .center-label { fill: var(--muted); font-size: 12px; letter-spacing: .18em; }
.loop-diagram .center-star { fill: var(--icon-fill); }
@keyframes flow { to { stroke-dashoffset: -1020; } }
@media (max-width: 900px) { .loop { grid-template-columns: 1fr; } }

/* ---------- Process ---------- */
.process { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; counter-reset: step; position: relative; }
.process::before { content: ""; position: absolute; left: 0; right: 0; top: 23px; height: 2px; background: var(--line); }
.process::after { content: ""; position: absolute; left: 0; top: 23px; height: 2px; width: var(--progress, 25%); background: linear-gradient(90deg, var(--cobalt), var(--mint)); transition: width .6s var(--ease); }
.step { position: relative; padding-right: 28px; display: grid; gap: 14px; align-content: start; z-index: 1; }
.step h3 { font-size: var(--step-2); }
.step button { all: unset; cursor: pointer; display: grid; gap: 14px; justify-items: start; }
.step button:focus-visible { outline: 2.5px solid var(--focus); outline-offset: 6px; border-radius: 10px; }
.step button:hover .name { color: var(--icon-fill); }
.step .name { transition: color .2s; }
.step .dot {
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; position: relative;
  background: var(--bg); border: 2px solid var(--line);
  font-family: var(--font-display); font-weight: 800; font-size: .95rem; color: var(--muted); letter-spacing: 0;
  transition: border-color .3s, background-color .3s, color .3s, transform .3s var(--ease);
}
.step button:hover .dot { transform: scale(1.06); }
.step.is-active .dot, .step.is-done .dot { border-color: var(--icon-fill); color: var(--ink); }
.step.is-active .dot { background: var(--icon-fill); color: #fff; }
:root[data-theme="dark"] .step.is-active .dot { color: #071A2C; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .step.is-active .dot { color: #071A2C; } }
.step .detail { display: grid; gap: 10px; transition: opacity .4s var(--ease); }
.step:not(.is-active) .detail { opacity: .62; }
.step p { color: var(--muted); font-size: 1rem; }
.step ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; font-size: .95rem; color: var(--muted); }
.step ul li { display: flex; gap: 10px; align-items: baseline; }
.step ul li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--mint); flex: none; transform: translateY(-2px); }
@media (max-width: 900px) {
  .process { grid-template-columns: 1fr; gap: 32px; }
  .process::before { left: 23px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; }
  .process::after { display: none; }
  .step { padding-right: 0; padding-left: 68px; }
  .step .dot { position: absolute; left: 0; top: 0; }
  .step button { min-height: 48px; align-content: center; }
  .step:not(.is-active) .detail { opacity: 1; }
}

/* ---------- Principles ---------- */
.principles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.principle { padding: 32px 28px 36px 0; border-bottom: 1px solid var(--line); display: grid; gap: 10px; align-content: start; }
.principle:not(:nth-child(3n + 1)) { padding-left: 28px; border-left: 1px solid var(--line); }
.principle .ico { width: 48px; height: 48px; margin-bottom: 6px; }
.principle h3 { font-size: var(--step-1); }
.principle p { color: var(--muted); font-size: 1rem; }
@media (max-width: 900px) {
  .principles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .principle, .principle:not(:nth-child(3n + 1)) { padding: 28px 20px 30px 0; border-left: 0; }
  .principle:nth-child(2n) { padding-left: 20px; border-left: 1px solid var(--line); }
}
@media (max-width: 520px) {
  .principles { grid-template-columns: 1fr; }
  .principle:nth-child(2n) { padding-left: 0; border-left: 0; }
}

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; isolation: isolate; }
.cta-band .wrap { padding-block: clamp(88px, 10vw, 150px); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px 48px; align-items: end; }
.cta-band h2 { font-size: var(--step-4); font-weight: 800; letter-spacing: -.04em; line-height: 1; max-width: 10em; }
.cta-band p { color: var(--night-muted); font-size: var(--step-1); margin-top: 22px; max-width: 30em; }
.cta-band .waves { position: absolute; inset: auto -10% -34% -10%; height: 62%; z-index: -1; opacity: .9; pointer-events: none; }
.cta-band .waves path { fill: none; stroke-width: 1.2; }
@media (max-width: 760px) { .cta-band .wrap { grid-template-columns: 1fr; } }

/* ---------- Services page ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.svc {
  display: grid; gap: 12px; align-content: start;
  padding: 28px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line);
  transition: transform .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease);
}
.svc:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--icon-fill) 50%, var(--line)); box-shadow: var(--shadow); }
.svc .ico-wrap { margin-bottom: 8px; }
.svc .ico { width: 56px; height: 56px; }
.svc h3 { font-size: 1.2rem; letter-spacing: -.015em; }
.svc p { color: var(--muted); font-size: .98rem; }
@media (max-width: 1000px) { .svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .svc-grid { grid-template-columns: 1fr; } }

.practice-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px 64px; align-items: end; margin-bottom: 48px; }
.practice-head h2 { font-size: var(--step-3); margin-top: 18px; }
.practice-head p { color: var(--muted); font-size: var(--step-1); line-height: 1.6; }
@media (max-width: 900px) { .practice-head { grid-template-columns: 1fr; } }

.models { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.model { padding: 32px; border-radius: var(--radius); border: 1px solid var(--line); display: grid; gap: 14px; align-content: start; background: var(--surface); }
.model h3 { font-size: var(--step-2); }
.model p { color: var(--muted); }
.model .best { font-size: .92rem; color: var(--muted); padding-top: 14px; border-top: 1px solid var(--line); }
.model .best b { color: var(--ink); font-weight: 600; }
@media (max-width: 900px) { .models { grid-template-columns: 1fr; } }

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px; border-radius: 999px;
  background: var(--chip-bg); color: var(--chip-fg);
  font-family: var(--font-display); font-weight: 700; font-size: .74rem; letter-spacing: .06em; text-transform: uppercase;
}

/* ---------- Work page ---------- */
.note {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 18px 22px; border-radius: 14px; margin-bottom: 40px;
  background: var(--surface-2); color: var(--muted); font-size: .98rem; max-width: 52rem;
}
.note svg { width: 18px; height: 18px; flex: none; margin-top: 4px; fill: var(--icon-fill); }
.work-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.case { display: grid; grid-template-rows: auto 1fr; border-radius: calc(var(--radius) + 4px); overflow: hidden; background: var(--surface); border: 1px solid var(--line); }
.case-art { aspect-ratio: 16 / 9; max-width: 100%; background: var(--night-bg); position: relative; overflow: hidden; }
.case-art svg { position: absolute; inset: 0; width: 100%; height: 100%; transition: transform 1.2s var(--ease); }
.case:hover .case-art svg { transform: scale(1.04); }
.case-art .chip { position: absolute; left: 18px; top: 18px; background: rgba(7, 26, 44, .72); color: #E0F2FE; backdrop-filter: blur(6px); }
.case-body { padding: clamp(24px, 3vw, 36px); display: grid; gap: 16px; align-content: start; }
.case-body h3 { font-size: var(--step-2); }
.case-client { font-family: var(--font-display); font-weight: 700; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.case-summary { color: var(--muted); }
.case-body dl > div { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.case-body dl dd { margin: 0; color: var(--ink); }
.case-featured { grid-column: 1 / -1; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); grid-template-rows: auto; }
.case-featured .case-art { aspect-ratio: auto; min-height: 380px; }
.case-featured .case-body { align-content: center; }
.case-featured h3 { font-size: clamp(1.6rem, 1.1rem + 1.4vw, 2.3rem); }
@media (max-width: 900px) { .case-featured { grid-template-columns: 1fr; } .case-featured .case-art { aspect-ratio: 16 / 9; min-height: 0; } }
/* work: Meta Connect deep dive */
.deep { margin-top: 24px; padding: clamp(28px, 4vw, 56px); border-radius: calc(var(--radius) + 6px); background: var(--night-bg); color: var(--night-ink); display: grid; gap: clamp(32px, 4vw, 56px); position: relative; overflow: hidden; isolation: isolate; }
.deep .eyebrow { color: var(--night-muted); }
.deep-head { display: grid; gap: 18px; max-width: 54rem; }
.deep-quote { font-size: var(--step-3); font-weight: 800; letter-spacing: -.035em; color: #93C5FD; }
.deep-head p { color: var(--night-muted); font-size: var(--step-1); line-height: 1.6; }
.system { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 0; position: relative; }
.system::before { content: ""; position: absolute; left: 0; right: 0; top: 15px; height: 2px; background: linear-gradient(90deg, #3B82F6, #7EE7DB); opacity: .55; }
.system li { position: relative; padding: 0 18px 0 0; display: grid; gap: 8px; align-content: start; }
.sys-num { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--night-bg); border: 2px solid #3B82F6; font-family: var(--font-display); font-weight: 800; font-size: .74rem; color: var(--night-ink); margin-bottom: 10px; transition: background-color .3s, border-color .3s, color .3s; }
.system li:hover .sys-num { background: #7EE7DB; border-color: #7EE7DB; color: #071A2C; }
.system h4 { font-size: 1.15rem; letter-spacing: .02em; text-transform: uppercase; }
.sys-sub { font-family: var(--font-display); font-weight: 600; color: #7EE7DB; font-size: .92rem; }
.system p:not(.sys-sub) { color: var(--night-muted); font-size: .92rem; line-height: 1.55; }
.deliver { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.deliver div { padding: 24px; border-radius: var(--radius); border: 1px solid var(--night-line); background: rgba(147, 197, 253, .05); display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 6px 14px; }
.deliver svg { width: 16px; height: 16px; fill: #7EE7DB; margin-top: 5px; grid-row: span 2; }
.deliver h4 { font-size: 1.1rem; }
.deliver p { color: var(--night-muted); font-size: .96rem; grid-column: 2; }
@media (max-width: 1100px) { .system { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 32px; } .system::before { display: none; } }
@media (max-width: 700px) {
  .system { grid-template-columns: 1fr; row-gap: 24px; }
  .system::before { display: block; left: 15px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; background: linear-gradient(180deg, #3B82F6, #7EE7DB); }
  .system li { padding: 0 0 0 52px; }
  .sys-num { position: absolute; left: 0; top: 0; }
  .deliver { grid-template-columns: 1fr; }
}
/* experience */
.stats { margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stats div { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 10px; padding: 32px 24px 34px 0; min-width: 0; }
.stats div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.stats dd { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: clamp(2.4rem, 1.6rem + 2.6vw, 4rem); letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; color: var(--icon-fill); }
.stats dt { color: var(--muted); font-size: .98rem; max-width: 18em; }
.exp { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.exp li { padding: 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); display: grid; gap: 10px; align-content: start; }
.exp-brand { font-family: var(--font-display); font-weight: 700; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--icon-fill); }
.exp h3 { font-size: var(--step-1); }
.exp p { color: var(--muted); font-size: .98rem; }
.exp-note { margin-top: 20px; color: var(--muted); font-size: .85rem; max-width: 60em; }
@media (max-width: 900px) { .exp { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .stats { grid-template-columns: 1fr; } .stats div, .stats div + div { padding-left: 0; border-left: 0; } .stats div + div { border-top: 1px solid var(--line); } }
/* home: selected work list */
.sel-work { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.sel-work a { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 4fr) minmax(0, 3fr) 24px; gap: 8px 24px; align-items: center; padding: 28px 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; transition: padding .35s var(--ease), color .2s; }
.sel-work a:hover { padding-left: 12px; color: var(--icon-fill); }
.sw-client { font-family: var(--font-display); font-weight: 700; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.sw-title { font-family: var(--font-display); font-weight: 700; font-size: var(--step-2); letter-spacing: -.02em; line-height: 1.15; }
.sw-role { color: var(--muted); }
@media (max-width: 760px) { .sel-work a { grid-template-columns: minmax(0, 1fr) 24px; } .sel-work a > :not(.arrow) { grid-column: 1; } .sel-work .arrow { grid-column: 2; grid-row: 1 / span 3; } }
.case-body dl { margin: 0; display: grid; gap: 14px; }
.case-body dt { font-family: var(--font-display); font-weight: 700; font-size: .76rem; letter-spacing: .16em; text-transform: uppercase; color: var(--icon-fill); }
.case-body dd { margin: 4px 0 0; color: var(--muted); font-size: .98rem; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 6px; }
@media (max-width: 900px) { .work-grid { grid-template-columns: 1fr; } }

/* ---------- About page ---------- */
.story { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 48px 80px; align-items: center; }
.story-mark { background: var(--night-bg); border-radius: calc(var(--radius) + 10px); padding: clamp(32px, 6vw, 72px); position: relative; overflow: hidden; isolation: isolate; }
.story-mark svg.mark { width: 100%; height: auto; display: block; }
.story-mark .lbl {
  position: absolute; font-family: var(--font-display); font-weight: 700; font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--night-muted);
  display: flex; align-items: center; gap: 8px;
}
.story-mark .lbl::before { content: ""; width: 22px; height: 1px; background: var(--mint); }
.story-mark .lbl.l1 { right: 20px; top: 26px; }
.story-mark .lbl.l2 { left: 20px; bottom: 22px; }
.story-copy h2 { font-size: var(--step-3); margin-block: 18px 24px; }
.story-copy p { color: var(--muted); font-size: var(--step-1); line-height: 1.65; }
.story-copy p + p { margin-top: 16px; }
@media (max-width: 900px) { .story { grid-template-columns: 1fr; } }

.commit { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 64px; counter-reset: c; }
.commit div { padding: 28px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 4px 16px; align-content: start; }
.commit svg { width: 18px; height: 18px; fill: var(--icon-fill); margin-top: 6px; grid-row: span 2; }
.commit h3 { font-size: var(--step-1); }
.commit p { color: var(--muted); grid-column: 2; }
@media (max-width: 760px) { .commit { grid-template-columns: 1fr; } }

.tagline-band { text-align: left; }
.tagline-band .wrap { padding-block: clamp(64px, 8vw, 110px); }
.tagline-band ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 0; }
.tagline-band li { font-family: var(--font-display); font-weight: 800; font-size: clamp(2rem, 1rem + 4.4vw, 5rem); letter-spacing: -.04em; line-height: 1.05; display: inline-flex; align-items: center; }
.tagline-band li:not(:last-child)::after { content: ""; width: .32em; height: .32em; margin-inline: .35em; background: var(--mint); clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%); }
.tagline-band li:last-child { color: transparent; background: linear-gradient(100deg, #60A5FA, #7EE7DB); -webkit-background-clip: text; background-clip: text; }

/* ---------- Contact page ---------- */
.contact { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 48px 72px; align-items: start; }
.form { display: grid; gap: 22px; padding: clamp(24px, 4vw, 44px); border-radius: calc(var(--radius) + 6px); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.form .row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.field { display: grid; gap: 8px; min-width: 0; }
.field label, .field legend { font-family: var(--font-display); font-weight: 700; font-size: .92rem; padding: 0; }
.field .opt { font-weight: 500; color: var(--muted); }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  padding: 13px 16px; min-height: 50px; border-radius: 12px;
  background: var(--bg); border: 1.5px solid var(--line);
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--icon-fill); box-shadow: 0 0 0 4px color-mix(in srgb, var(--icon-fill) 22%, transparent); }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #DC2626; }
.field .err { color: #DC2626; font-size: .88rem; min-height: 0; }
:root[data-theme="dark"] .field .err { color: #FCA5A5; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .field .err { color: #FCA5A5; } }
fieldset.field { border: 0; margin: 0; padding: 0; }
.pills { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.pills input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pills label {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 16px;
  border-radius: 999px; border: 1.5px solid var(--line); cursor: pointer;
  font-family: var(--font-body); font-weight: 500; font-size: .95rem; background: var(--bg);
  transition: border-color .2s, background-color .2s, color .2s;
}
.pills label:hover { border-color: var(--icon-fill); }
.pills input:checked + label { background: var(--chip-bg); border-color: var(--icon-fill); color: var(--chip-fg); }
.pills input:focus-visible + label { outline: 2.5px solid var(--focus); outline-offset: 2px; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.form-foot small { color: var(--muted); font-size: .88rem; max-width: 26em; }
.form-success { display: grid; gap: 14px; justify-items: start; }
.form-success svg { width: 44px; height: 44px; fill: var(--icon-fill); }
.form-success h2 { font-size: var(--step-2); }
.form-success p { color: var(--muted); }
.aside { display: grid; gap: 36px; }
.aside h2 { font-size: var(--step-2); margin-bottom: 18px; }
.next-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; counter-reset: n; }
.next-steps li { counter-increment: n; display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 2px 14px; padding: 18px 0; border-top: 1px solid var(--line); }
.next-steps li::before { content: counter(n, decimal-leading-zero); font-family: var(--font-display); font-weight: 800; color: var(--icon-fill); grid-row: span 2; }
.next-steps b { font-family: var(--font-display); }
.next-steps span { color: var(--muted); font-size: .97rem; grid-column: 2; }
.direct { padding: 24px; border-radius: var(--radius); background: var(--surface-2); display: grid; gap: 10px; }
.direct .addr { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; word-break: break-all; user-select: all; color: var(--ink); }
.direct .copy { justify-self: start; min-height: 40px; padding: .4em 1em; font-size: .88rem; }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .form .row { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { padding-top: 80px; }
.foot { display: grid; grid-template-columns: minmax(0, 4fr) repeat(3, minmax(0, 2fr)); gap: 40px; padding-bottom: 56px; }
.foot .brand svg { height: 46px; }
.foot p { color: var(--night-muted); margin-top: 18px; max-width: 22em; font-size: .98rem; }
.foot h2 { font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; color: var(--night-muted); margin-bottom: 16px; font-weight: 700; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.foot a { color: var(--night-ink); text-decoration: none; opacity: .88; }
.foot a:hover { opacity: 1; text-decoration: underline; }
.foot-base {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  padding-block: 24px calc(28px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--night-line); color: var(--night-muted); font-size: .88rem;
}
.foot-base .motto { font-family: var(--font-display); font-weight: 700; letter-spacing: .16em; text-transform: uppercase; font-size: .72rem; }
@media (max-width: 900px) { .foot { grid-template-columns: repeat(2, minmax(0, 1fr)); } .foot > :first-child { grid-column: 1 / -1; } }

/* ---------- Reveal on scroll ---------- */
.js .reveal { transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.is-pending { opacity: 0; transform: translateY(26px); }
.js .reveal-stagger > * { transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal-stagger.is-pending > * { opacity: 0; transform: translateY(22px); }
.reveal-stagger > *:nth-child(2) { transition-delay: .07s; }
.reveal-stagger > *:nth-child(3) { transition-delay: .14s; }
.reveal-stagger > *:nth-child(4) { transition-delay: .21s; }
.reveal-stagger > *:nth-child(5) { transition-delay: .28s; }
.reveal-stagger > *:nth-child(6) { transition-delay: .35s; }

/* Preview routing (single-file preview only) */
[data-route][hidden] { display: none !important; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .js .reveal.is-pending, .js .reveal-stagger.is-pending > * { opacity: 1; transform: none; }
}
.work-grid + .note { margin: 20px 0 0; }

/* services: YouTube spotlight */
.deep h2.deep-quote { margin-top: 4px; }
.system-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.system-4 h4 { text-transform: none; letter-spacing: 0; font-size: .82rem; color: var(--night-muted); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.system-4 .sys-sub { font-size: 1.1rem; color: var(--night-ink); font-weight: 700; }
.yt-sub { font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; color: var(--night-muted); margin-bottom: 16px; }
.yt-areas { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.yt-areas li { padding: 18px; border-radius: 14px; border: 1px solid var(--night-line); display: grid; gap: 6px; align-content: start; }
.yt-areas b { font-family: var(--font-display); color: #7EE7DB; }
.yt-areas span { color: var(--night-muted); font-size: .92rem; line-height: 1.5; }
@media (max-width: 1100px) { .system-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .yt-areas { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) { .system-4 { grid-template-columns: 1fr; } .yt-areas { grid-template-columns: 1fr; } }

/* home: banyan growth scene */
.loop-diagram.scene { background: var(--night-bg); border-radius: calc(var(--radius) + 10px); overflow: hidden; max-width: 680px; box-shadow: var(--shadow); }
.scene svg { display: block; width: 100%; height: auto; }
.lp-orbit { fill: none; stroke: rgba(147, 197, 253, .22); stroke-width: 1.2; stroke-dasharray: 2 6; }
.lp-trail { fill: none; stroke: #E0F2FE; stroke-linecap: round; }
@keyframes lp-flow { from { stroke-dashoffset: 140; } to { stroke-dashoffset: -1300; } }
.lp-halo { fill: #0B2540; stroke: rgba(126, 231, 219, .45); stroke-width: 1.5; }
.lp-node { animation: lp-pulse 4s ease-in-out infinite; }
@keyframes lp-pulse { 0%, 100% { opacity: .92; } 50% { opacity: 1; } }
.scene .lp-t { fill: #F3F7FC; font-family: var(--font-display); font-weight: 800; font-size: 19px; letter-spacing: -.01em; }
.scene .lp-s { fill: #A9BBD3; font-family: var(--font-body); font-size: 13px; }
.lp-twinkle { animation: lp-tw 4s ease-in-out infinite; }
@keyframes lp-tw { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }
.lp-star-glow { transform-box: fill-box; transform-origin: center; animation: lp-glow 5s ease-in-out infinite; }
@keyframes lp-glow { 0%, 100% { transform: scale(.85); opacity: .7; } 50% { transform: scale(1.15); opacity: 1; } }
.lp-newroots path { fill: #FFFFFF; animation: lp-root 6s var(--ease) infinite; }
.lp-newroots path:last-child { animation-delay: 3s; }
@keyframes lp-root { 0% { clip-path: inset(0 0 100% 0); opacity: 0; } 30%, 70% { clip-path: inset(0 0 0 0); opacity: 1; } 100% { clip-path: inset(0 0 0 0); opacity: 0; } }
.lp-wing { transform-box: fill-box; transform-origin: 70% 50%; animation: lp-flap .5s ease-in-out infinite alternate; }
@keyframes lp-flap { from { transform: scaleY(1); } to { transform: scaleY(.35); } }
.lp-mwing { transform-box: fill-box; transform-origin: 80% 100%; animation: lp-wingbeat .6s ease-in-out infinite alternate; }
.lp-far { animation-delay: -.08s; }
@keyframes lp-wingbeat { from { transform: scaleY(1); } to { transform: scaleY(-.4); } }

.aside .follow { margin: 16px 0 0; font-size: .95rem; color: var(--muted); }
.aside .follow a { color: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* Signature emphasis: a signal-line underline and the north star, in place of gradient text */
:root { --signal-ink: #1D4ED8; --signal-wave: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 10' preserveAspectRatio='none'%3E%3Cpath d='M0 6C7 1 13 1 20 6S33 11 40 6' fill='none' stroke='%2314A394' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E"); --signal-mark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%232563EB' d='M0 0h11v11H0z'/%3E%3Cpath fill='%2314A394' d='M13 11h11A11 11 0 0 0 13 0z'/%3E%3Cpath fill='%231E3A8A' d='M11 13H0a11 11 0 0 0 11 11z'/%3E%3C/svg%3E"); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --signal-ink: #93C5FD; --signal-wave: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 10' preserveAspectRatio='none'%3E%3Cpath d='M0 6C7 1 13 1 20 6S33 11 40 6' fill='none' stroke='%237EE7DB' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E"); --signal-mark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%2360A5FA' d='M0 0h11v11H0z'/%3E%3Cpath fill='%237EE7DB' d='M13 11h11A11 11 0 0 0 13 0z'/%3E%3Cpath fill='%2393C5FD' d='M11 13H0a11 11 0 0 0 11 11z'/%3E%3C/svg%3E"); } }
:root[data-theme="dark"] { --signal-ink: #93C5FD; --signal-wave: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 10' preserveAspectRatio='none'%3E%3Cpath d='M0 6C7 1 13 1 20 6S33 11 40 6' fill='none' stroke='%237EE7DB' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E"); --signal-mark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%2360A5FA' d='M0 0h11v11H0z'/%3E%3Cpath fill='%237EE7DB' d='M13 11h11A11 11 0 0 0 13 0z'/%3E%3Cpath fill='%2393C5FD' d='M11 13H0a11 11 0 0 0 11 11z'/%3E%3C/svg%3E"); }
.on-night { --signal-ink: #7EE7DB; --signal-wave: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 10' preserveAspectRatio='none'%3E%3Cpath d='M0 6C7 1 13 1 20 6S33 11 40 6' fill='none' stroke='%233B82F6' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E"); --signal-mark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%233B82F6' d='M0 0h11v11H0z'/%3E%3Cpath fill='%237EE7DB' d='M13 11h11A11 11 0 0 0 13 0z'/%3E%3Cpath fill='%2393C5FD' d='M11 13H0a11 11 0 0 0 11 11z'/%3E%3C/svg%3E"); }
.signal { color: var(--signal-ink); background: var(--signal-wave) 0 100% / .62em .2em repeat-x; padding-bottom: .12em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.signal::after { content: ""; display: inline-block; width: .4em; height: .4em; margin-left: .04em; vertical-align: .5em; background: var(--signal-mark) center / contain no-repeat; transform-origin: 50% 50%; animation: signal-turn 6s var(--ease) infinite; }
@keyframes signal-turn { 0%, 40% { transform: rotate(0); } 50%, 90% { transform: rotate(90deg); } 100% { transform: rotate(0); } }
@keyframes signal-star { 0%, 100% { transform: scale(.8); opacity: .75; } 50% { transform: scale(1.1); opacity: 1; } }
.hero .signal { background: none; padding-bottom: 0; }
.hero .signal::after { content: none; }
@media (prefers-reduced-motion: reduce) { .signal::after { animation: none; } }

/* ---------- Page transitions: the header holds still while the page dissolves into the next ---------- */
@view-transition { navigation: auto; }
.site-header { view-transition-name: site-header; }
::view-transition-group(site-header) { animation-duration: .45s; }
::view-transition-old(root) { animation: vt-out .26s cubic-bezier(.4, 0, 1, 1) both; }
::view-transition-new(root) { animation: vt-in .6s cubic-bezier(.16, 1, .3, 1) .06s both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-10px) scale(.992); filter: blur(5px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(16px) scale(1.006); filter: blur(6px); } }
.route-enter { animation: vt-in .6s cubic-bezier(.16, 1, .3, 1) both; }
/* A signal line sweeps under the header as each page arrives */
.route-line { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; pointer-events: none; transform: scaleX(0); transform-origin: 0 50%; opacity: 0;
  background: linear-gradient(90deg, transparent, #3B82F6 30%, #7EE7DB 70%, transparent); }
.route-line.is-on { animation: route-line .9s cubic-bezier(.16, 1, .3, 1) both; }
@keyframes route-line { 0% { transform: scaleX(0); opacity: 1; } 65% { transform: scaleX(1); opacity: 1; } 100% { transform: scaleX(1); opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}

/* ---------- Hero mark follows the pointer in 3D and drifts as you scroll ---------- */
.hero-mark { --rx: 0deg; --ry: 0deg; --py: 0px; transform: perspective(900px) translateY(var(--py)) rotateX(var(--rx)) rotateY(var(--ry)); transition: transform .8s cubic-bezier(.16, 1, .3, 1); will-change: transform; }

/* ---------- Animated icons: the arc draws in, the glyph lifts, the star turns ---------- */
.ico .gl { transform-box: view-box; transform-origin: 50% 90%; transition: transform .5s cubic-bezier(.34, 1.56, .64, 1); }
.ico .st { transform-box: fill-box; transform-origin: 50% 50%; }
.reveal-stagger:not(.is-pending) .ico .ar { animation: ico-draw 1.1s cubic-bezier(.16, 1, .3, 1) both; }
.svc:hover .ico .ar, .principle:hover .ico .ar, .practice-list li:hover .ico .ar { animation: ico-redraw .9s cubic-bezier(.16, 1, .3, 1) both; }
.svc:hover .ico .gl, .principle:hover .ico .gl, .practice-list li:hover .ico .gl { transform: translateY(-1.6px) scale(1.05); }
.svc:hover .ico .st, .principle:hover .ico .st, .practice-list li:hover .ico .st { animation: ico-star .8s cubic-bezier(.16, 1, .3, 1); }
@keyframes ico-draw { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }
@keyframes ico-redraw { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }
@keyframes ico-star { 0% { transform: scale(.4) rotate(-90deg); opacity: 0; } 100% { transform: none; opacity: 1; } }
.ico .ar { stroke-dasharray: 100; }

/* ---------- 404 ---------- */
.nf .wrap { min-height: 100svh; display: grid; align-content: center; justify-items: center; text-align: center; padding-block: calc(110px + env(safe-area-inset-top, 0px)) 72px; }
.nf h1 { font-size: clamp(2.2rem, 1.2rem + 3.6vw, 4rem); margin-block: 18px 16px; }
.nf .lede { margin-inline: auto; }
.nf .hero-ctas { justify-content: center; }
.nf-figure { position: relative; margin: 0 0 8px; width: min(100%, 640px); cursor: pointer; -webkit-tap-highlight-color: transparent; }
.nf-art { width: 100%; height: auto; display: block; overflow: visible; }
.nf-digit { font-family: var(--font-display); font-weight: 800; font-size: 236px; letter-spacing: -.04em; fill: #F3F7FC; animation: nf-float 6s ease-in-out infinite; }
.nf-d2 { animation-delay: -3s; }
.nf-zero { animation: nf-float 6s ease-in-out -1.5s infinite; }
.nf-star { transform-box: fill-box; transform-origin: center; animation: signal-star 3.2s ease-in-out infinite; }
@keyframes nf-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.nf-bubble { position: absolute; left: 50%; top: 2%; transform: translate(-50%, 8px) scale(.9); opacity: 0; pointer-events: none;
  background: #F3F7FC; color: #0B1F3B; font-family: var(--font-display); font-weight: 800; font-size: 1rem; padding: 8px 14px; border-radius: 14px;
  transition: opacity .3s ease, transform .45s cubic-bezier(.34, 1.56, .64, 1); white-space: nowrap; }
.nf-bubble::after { content: ""; position: absolute; left: 50%; bottom: -6px; width: 12px; height: 12px; background: inherit; transform: translateX(-50%) rotate(45deg); border-radius: 2px; }
.nf-figure.is-squawk .nf-bubble { opacity: 1; transform: translate(-50%, 0) scale(1); }

/* ---------- Human check (press and hold) ---------- */
.human { --hc: 0; }
.human-btn { display: flex; align-items: center; gap: 14px; width: 100%; max-width: 420px; padding: 12px 18px 12px 12px; border-radius: 16px; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink); text-align: left; font: inherit; cursor: pointer; user-select: none; -webkit-user-select: none; touch-action: none; -webkit-touch-callout: none;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease), transform .2s var(--ease); }
.human-btn:hover { border-color: color-mix(in srgb, var(--icon-fill) 55%, var(--line)); }
.human.is-holding .human-btn { transform: scale(.985); box-shadow: 0 0 0 4px color-mix(in srgb, var(--icon-fill) 18%, transparent); }
.human.is-verified .human-btn { cursor: default; border-color: color-mix(in srgb, #14A394 60%, var(--line)); }
.hc-ring { width: 44px; height: 44px; flex: none; }
.hc-ring svg { width: 100%; height: 100%; display: block; transform: rotate(-90deg); }
.hc-track { fill: none; stroke: var(--line); stroke-width: 3; }
.hc-fill { fill: none; stroke: var(--icon-fill); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: calc(100 - var(--hc)); }
.hc-star { fill: var(--icon-fill); transform-box: fill-box; transform-origin: center; transform: rotate(90deg); transition: transform .4s var(--ease), opacity .3s; }
.human.is-holding .hc-star { transform: rotate(90deg) scale(.86); }
.hc-check { fill: none; stroke: #14A394; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 22; stroke-dashoffset: 22; transform-box: view-box; transform-origin: center; transform: rotate(90deg); transition: stroke-dashoffset .45s var(--ease) .1s; }
.human.is-verified .hc-fill { stroke: #14A394; }
.human.is-verified .hc-star { opacity: 0; }
.human.is-verified .hc-check { stroke-dashoffset: 0; }
.hc-text { display: grid; gap: 2px; }
.hc-label { font-family: var(--font-display); font-weight: 700; font-size: .98rem; }
.hc-hint { color: var(--muted); font-size: .84rem; }
.human.is-verified .hc-hint::before { content: "Verified"; }
.human.is-verified .hc-hint { font-size: 0; }
.human.is-verified .hc-hint::before { font-size: .84rem; color: #14A394; font-weight: 600; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.reveal-email .email-out { display: grid; gap: 10px; }
.reveal-email .addr { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; color: var(--ink); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: color-mix(in srgb, var(--icon-fill) 60%, transparent); word-break: break-all; }
.reveal-email .copy { justify-self: start; min-height: 40px; padding: .4em 1em; font-size: .88rem; }
.reveal-email .email-out[hidden], .reveal-email [data-human][hidden] { display: none; }


/* Geometric building blocks (advisory) */
.blocks { --bk-deep: #1E3A8A; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .blocks { --bk-deep: #93C5FD; } }
:root[data-theme="dark"] .blocks, .on-night .blocks { --bk-deep: #93C5FD; }
.commit .blocks { width: 40px; height: 40px; margin-top: 0; }
.blocks.accent, .commit .blocks.accent { width: 22px; height: 22px; margin-top: 4px; }
.form-success .blocks.accent { width: 44px; height: 44px; }
.bk-ink { fill: var(--ico-ink); }
.bk-cobalt { fill: #3B82F6; }
.bk-deep { fill: var(--bk-deep); }
.bk-mint { fill: #7EE7DB; }
.inline-link { color: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, var(--icon-fill) 60%, transparent); }
.inline-link:hover { color: var(--link); text-decoration-color: currentColor; }

/* ---------- Blog ---------- */
.mosaic { display: block; width: 100%; height: 100%; }
.mo-tile { transform-box: fill-box; transform-origin: center; }
@media (prefers-reduced-motion: no-preference) {
  .post-art:not(.is-pending) .mo-tile { animation: mo-pop .7s var(--ease) both; animation-delay: var(--d); }
}
@keyframes mo-pop { 0% { transform: scale(.4); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
.post-card .case-art { display: block; position: relative; background: var(--surface); }
.post-card .mosaic { width: 100%; height: 100%; position: absolute; inset: 0; padding: 10px; box-sizing: border-box; }
.post-card h3 a { color: inherit; text-decoration: none; }
.post-card h3 a:hover { text-decoration: underline; text-underline-offset: 4px; }
.post-meta { color: var(--muted); font-size: .92rem; }
.back-link { display: flex; width: max-content; gap: 8px; align-items: center; margin-bottom: 26px; color: var(--night-muted); font-weight: 600; text-decoration: none; }
.back-link:hover { color: #7EE7DB; }
.post-byline { margin-top: 22px; color: var(--night-muted); font-size: .95rem; }
.post-art { margin: 0 auto clamp(40px, 5vw, 64px); max-width: 60rem; }
.post-art .mosaic { height: auto; overflow: visible; }
.prose { max-width: 42rem; margin: 0 auto; display: grid; gap: 20px; font-size: var(--step-1); line-height: 1.7; color: var(--muted); }
.prose h2 { font-size: var(--step-2); color: var(--ink); margin-top: 24px; }
.prose ul { margin: 0; padding-left: 1.2em; display: grid; gap: 10px; }
.prose li::marker { color: var(--icon-fill); }
.prose b { color: var(--ink); }
.prose .post-intro { color: var(--ink); font-size: var(--step-2); line-height: 1.5; letter-spacing: -.01em; }
.prose .post-sign { font-family: var(--font-display); font-weight: 700; color: var(--ink); padding-top: 12px; border-top: 1px solid var(--line); }
.exp-group { margin: 40px 0 16px; font-size: .82rem; font-family: var(--font-display); font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.section-head + .exp-group { margin-top: 0; }
.proof { margin-top: 40px; padding: clamp(28px, 4vw, 48px); border-radius: calc(var(--radius) + 4px); background: var(--surface); border: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 24px 56px; }
.proof-lede { margin-top: 18px; font-family: var(--font-display); font-weight: 700; font-size: clamp(1.2rem, 1rem + .6vw, 1.5rem); line-height: 1.3; letter-spacing: -.02em; color: var(--ink); }
.proof-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; align-content: center; }
.proof-list li { color: var(--muted); padding-top: 18px; border-top: 1px solid var(--line); }
.proof-list li:first-child { padding-top: 0; border-top: 0; }
.proof-list b { color: var(--ink); }
@media (max-width: 900px) { .proof { grid-template-columns: 1fr; } }
.mo-logo { transform-box: fill-box; transform-origin: 50% 100%; }
@media (prefers-reduced-motion: no-preference) { .post-art:not(.is-pending) .mo-logo { animation: mo-rise .9s var(--ease) .2s both; } }
@keyframes mo-rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.foot-base a { color: inherit; text-decoration: none; } .foot-base a:hover { color: #7EE7DB; text-decoration: underline; text-underline-offset: 3px; }
.embed-form { padding: 0; overflow: hidden; background: #fff; }
.embed-form iframe { display: block; width: 100%; height: 1240px; border: 0; }
@media (max-width: 560px) { .embed-form iframe { height: 1400px; } }
.embed-note { margin-top: 14px; color: var(--muted); font-size: .9rem; }
.form[hidden] { display: none; }
