@font-face { font-family: "Archivo"; font-style: normal; font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; src: url("../fonts/archivo-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 600; font-display: swap; src: url("../fonts/inter-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/ibm-plex-mono-400-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/ibm-plex-mono-500-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
/* North Grove Tech — site styles
   Layout concept: a printed broadsheet. Warm paper, heavy grotesk headlines, mono labels,
   thin ink rules between rows, and cut-paper collage (halftone, grid paper, canopy arches) beside the words.
   Dark mode is the same sheet printed on midnight. */
:root {
  /* Brand palette (from Brand Foundations + Website Guidelines) */
  --navy: #071C30;
  --midnight: #071C30;
  --cobalt: #3282F6;
  --deep-blue: #1E3A8A;
  --blue: #60A5FA;
  --sky: #93C5FD;
  --mint: #67E1DE;
  --forest: #0F5132;
  --charcoal: #1F2937;
  /* Print colours for the collage look */
  --paper: #F7F3EB;
  --paper-2: #ECE6DA;
  --ink-black: #071C30;
  --vermilion: #FF5934;
  --signal: #FF5934;
  --cyan: #2FC8DD;
  --lime: #D7F518;

  /* Theme tokens — light (paper) */
  --bg: #F7F3EB;
  --surface: #FCFAF5;
  --surface-2: #ECE6DA;
  --ink: #071C30;
  --muted: #485164;
  --line: rgba(7, 28, 48, .16);
  --rule: #071C30;
  --link: #1C5ACB;
  --btn-bg: #071C30;
  --btn-fg: #FCFAF5;
  --btn-bg-hover: #1C5ACB;
  --icon-fill: #3282F6;
  --icon-stroke-accent: #1A9FB3;
  --chip-bg: #E8E1D3;
  --chip-fg: #071C30;
  --focus: #1C5ACB;
  --shadow: 0 1px 0 rgba(7, 28, 48, .08), 0 18px 40px -24px rgba(7, 28, 48, .35);
  --grain-op: .4;
  --dots: rgba(7, 28, 48, .22);
  --c-ink: #071C30;

  /* Night (ink) surfaces stay dark in both themes */
  --night-bg: #071C30;
  --night-2: #0E2742;
  --night-ink: #F7F3EB;
  --night-muted: #A9B6C8;
  --night-line: rgba(247, 243, 235, .16);

  /* Type */
  --font-display: "Archivo", "Arial Narrow", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --step--1: .875rem;
  --step-0: 1.0625rem;
  --step-1: 1.2rem;
  --step-2: clamp(1.4rem, 1.1rem + 1vw, 1.8rem);
  --step-3: clamp(2rem, 1.3rem + 2.8vw, 3.5rem);
  --step-4: clamp(2.8rem, 1.2rem + 5.6vw, 6.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: #071C30;
    --surface: #0C2640;
    --surface-2: #11304F;
    --ink: #F7F3EB;
    --muted: #A9B6C8;
    --line: rgba(247, 243, 235, .15);
    --rule: rgba(247, 243, 235, .55);
    --link: #93C5FD;
    --btn-bg: #F7F3EB;
    --btn-fg: #071C30;
    --btn-bg-hover: #67E1DE;
    --icon-fill: #60A5FA;
    --icon-stroke-accent: #67E1DE;
    --chip-bg: rgba(247, 243, 235, .1);
    --chip-fg: #F7F3EB;
    --focus: #93C5FD;
    --shadow: 0 1px 0 rgba(0, 0, 0, .3), 0 18px 40px -20px rgba(0, 0, 0, .7);
    --grain-op: .3;
    --dots: rgba(147, 197, 253, .22);
  --c-ink: #031120;
    --night-bg: #04121F;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #071C30;
  --surface: #0C2640;
  --surface-2: #11304F;
  --ink: #F7F3EB;
  --muted: #A9B6C8;
  --line: rgba(247, 243, 235, .15);
  --rule: rgba(247, 243, 235, .55);
  --link: #93C5FD;
  --btn-bg: #F7F3EB;
  --btn-fg: #071C30;
  --btn-bg-hover: #67E1DE;
  --icon-fill: #60A5FA;
  --icon-stroke-accent: #67E1DE;
  --chip-bg: rgba(247, 243, 235, .1);
  --chip-fg: #F7F3EB;
  --focus: #93C5FD;
  --shadow: 0 1px 0 rgba(0, 0, 0, .3), 0 18px 40px -20px rgba(0, 0, 0, .7);
  --grain-op: .3;
  --dots: rgba(147, 197, 253, .22);
  --c-ink: #031120;
  --night-bg: #04121F;
  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;
}
/* Paper grain over everything (below the header and Mack), so flat colour reads as print */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 44; pointer-events: none; opacity: var(--grain-op);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .04  0 0 0 0 .07  0 0 0 0 .13  0 0 0 1.1 -.42'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img, svg { max-width: 100%; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-stretch: 100%;
  line-height: 1.04;
  letter-spacing: -.02em;
  margin: 0;
  text-wrap: balance;
  font-weight: 800;
}
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: 2px; }
.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: typewriter mono with a trailing rule ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 1em;
  font-family: var(--font-mono);
  font-size: .76rem; font-weight: 500;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--ink);
}
.eyebrow::after { content: ""; width: 56px; height: 1px; background: currentColor; opacity: .7; }
.eyebrow .num { color: var(--icon-fill); }
.star-bullet { width: .8em; height: .8em; flex: none; }

/* ---------- Buttons: ink pills with an arrow ---------- */
.btn {
  --b-bg: var(--btn-bg); --b-fg: var(--btn-fg);
  display: inline-flex; align-items: center; gap: .7em;
  min-height: 50px; padding: .75em 1.5em;
  border-radius: 999px; border: 1.5px solid transparent;
  background: var(--b-bg); color: var(--b-fg);
  font-family: var(--font-body); font-weight: 600; 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(--rule); }
.btn-ghost:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.on-night .btn { background: #F7F3EB; color: #071C30; }
.on-night .btn:hover { background: #67E1DE; }
.on-night .btn-ghost { background: transparent; color: var(--night-ink); border-color: rgba(247, 243, 235, .5); }
.on-night .btn-ghost:hover { background: #F7F3EB; color: #071C30; border-color: #F7F3EB; }
/* Text links end in a circled arrow */
.text-link { font-family: var(--font-body); font-weight: 600; color: var(--ink); text-decoration: none; display: inline-flex; gap: .6em; align-items: center; }
.text-link:hover { color: var(--link); }
.text-link .arrow { box-sizing: content-box; width: 16px; height: 16px; padding: 6px; border: 1.5px solid currentColor; border-radius: 50%; transition: transform .3s var(--ease), background-color .2s, color .2s; }
.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(--ink); background: var(--bg);
}
/* The bar turns solid the instant the page scrolls (no fade), so text below never shows through behind the logo */
.site-header.is-scrolled {
  background: var(--bg);
  color: var(--ink);
  box-shadow: 0 1px 0 var(--rule);
}
.nav { display: flex; align-items: center; gap: 24px; height: 80px; }
.brand { display: inline-flex; color: inherit; flex: none; border-radius: 4px; }
.brand svg { height: 42px; width: auto; display: block; }
.nav > nav { margin-left: auto; }
.nav-links { display: flex; gap: 2px; margin: 0; padding: 0; list-style: none; }
.nav-links a {
  position: relative; display: block; padding: 10px 14px;
  font-family: var(--font-body); font-weight: 500; font-size: .92rem;
  color: inherit; text-decoration: none; opacity: .85;
  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: 50%; bottom: 2px; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: currentColor;
}
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav .btn { min-height: 44px; padding: .55em 1.25em; font-size: .92rem; }
.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 35%, 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; }
  .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: 900; font-size: 2.3rem; letter-spacing: -.02em; text-transform: uppercase;
    color: inherit; text-decoration: none; padding: 8px 0; border-bottom: 1px solid var(--night-line);
  }
  .mobile-menu a[aria-current="page"] { color: var(--mint); }
  .mobile-menu .btn { margin-top: 28px; background: #F7F3EB; color: #071C30; }
}

/* ---------- Night (ink) surfaces ---------- */
.on-night { background: var(--night-bg); color: var(--night-ink); --c-ink: #031120; --ink: var(--night-ink); --muted: var(--night-muted); --line: var(--night-line); --rule: rgba(247, 243, 235, .5); --link: #93C5FD; --icon-fill: #60A5FA; --icon-stroke-accent: #67E1DE; --chip-bg: rgba(247, 243, 235, .1); --chip-fg: #F7F3EB; --focus: #93C5FD; --dots: rgba(147, 197, 253, .2); }
.on-night .eyebrow { color: var(--night-ink); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--rule); }
.hero-canvas { display: none; }
.hero-home { min-height: min(100svh, 940px); display: flex; align-items: center; }
.hero-home .wrap { position: relative; padding-block: calc(150px + env(safe-area-inset-top, 0px)) 110px; }
.hero-copy { max-width: min(44%, 36rem); }
.hero-art { position: absolute; top: calc(80px + env(safe-area-inset-top, 0px)); right: 0; bottom: 0; width: 56%; z-index: 0; }
.hero-art .collage { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero h1 { font-size: var(--step-4); font-weight: 900; font-stretch: 100%; letter-spacing: -.035em; line-height: .9; margin-block: 26px 30px; }
.hero-home h1 { text-transform: uppercase; font-size: clamp(2.8rem, 1rem + 4.4vw, 5.8rem); }
.hero .lede { font-size: var(--step-1); color: var(--ink); max-width: 32em; line-height: 1.55; }
.hero .lede strong { 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(--line); list-style: none; padding-left: 0;
  font-family: var(--font-mono); font-weight: 500; font-size: .76rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted);
}
.hero-meta li { display: inline-flex; align-items: center; gap: 10px; }
.hero-meta svg { width: 10px; height: 10px; fill: var(--icon-fill); }

/* The logo mark sits on the torn ink field of the collage, exactly as designed */
.hero-mark { position: absolute; left: 27%; top: 50%; width: 48%; aspect-ratio: 272 / 215; margin-top: -20%; }
.hero-mark svg { width: 100%; height: auto; overflow: visible; display: block; }

/* 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)); } }

/* Inner pages: words on the left, a collage strip on the right */
.page-hero { --art-w: 38vw; }
.page-hero.art-tall { --art-w: 44vw; }
/* The words always stop short of the art, at every width, so nothing sits on top of the collage */
.page-hero .wrap { position: relative; padding-block: calc(160px + env(safe-area-inset-top, 0px)) 96px; max-width: calc(var(--wrap) + 64px);
  padding-right: max(32px, calc(var(--art-w) + 48px - (100vw - min(100vw, var(--wrap) + 64px)) / 2)); }
.page-hero .wrap > * { max-width: 44rem; }
.page-hero h1 { font-size: clamp(2.3rem, 1.2rem + 3.3vw, 4.4rem); font-weight: 900; letter-spacing: -.03em; line-height: .98; }
.page-hero .lede { max-width: 36em; }
.page-art { position: absolute; top: calc(80px + env(safe-area-inset-top, 0px)); right: 0; bottom: 0; width: var(--art-w); z-index: 0; }
.page-art .collage { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.post-hero .wrap > * { max-width: 52rem; }

@media (max-width: 900px) {
  .hero-home { flex-direction: column; align-items: stretch; min-height: 0; }
  .hero-home .wrap { padding-block: calc(110px + env(safe-area-inset-top, 0px)) 40px; }
  .hero-copy { max-width: none; }
  .hero-art { position: relative; order: 2; width: 100%; height: clamp(320px, 88vw, 520px); z-index: 0; }
  .hero-mark { left: 24%; width: 56%; margin-top: -22%; }
  .page-hero { display: flex; flex-direction: column; }
  .page-hero .wrap { padding-block: calc(112px + env(safe-area-inset-top, 0px)) 40px; padding-right: max(16px, env(safe-area-inset-right, 0px), 4vw); }
  .page-hero .wrap > * { max-width: none; }
  .page-art { position: relative; order: 2; width: 100%; height: 200px; z-index: 0; }
  .post-hero .page-art { display: none; }
  .page-art.tall { height: auto; aspect-ratio: 560 / 500; max-width: 100%; }
  .post-hero .wrap { padding-bottom: 64px; }
}

/* ---------- Sections ---------- */
.section { padding-block: clamp(80px, 9vw, 140px); position: relative; }
.section + .section { border-top: 1px solid var(--rule); }
.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: 20px; font-weight: 900; letter-spacing: -.03em; line-height: .98; }
.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; } }

/* Section marker: a small dot grid from the brand motifs */
.xh { position: absolute; width: 33px; height: 15px; pointer-events: none; color: var(--ink); opacity: .7;
  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: 900; letter-spacing: -.03em; line-height: 1.02; }
.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: numbered columns with a collage panel ---------- */
.practices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.practice {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .78fr); gap: 18px 28px; align-content: start;
  padding: clamp(28px, 3vw, 44px) clamp(20px, 2.6vw, 40px) clamp(28px, 3vw, 44px) 0;
}
.practice + .practice { border-left: 1px solid var(--rule); padding-left: clamp(20px, 2.6vw, 40px); }
.practice > :not(.practice-collage) { grid-column: 1; }
.practice-num { font-family: var(--font-display); font-weight: 900; font-stretch: 62%; font-size: clamp(5rem, 3rem + 5vw, 8.5rem); line-height: .78; letter-spacing: -.02em; color: var(--ink); }
.practice-collage { grid-column: 2; grid-row: 1 / span 4; align-self: start; position: relative; aspect-ratio: 360 / 420; max-width: 100%; }
.practice-collage .collage { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.practice h3 { font-size: var(--step-1); font-weight: 700; }
.practice > p { color: var(--muted); max-width: 30em; }
.practice .tag { font-family: var(--font-display); font-weight: 900; font-size: clamp(1.6rem, 1rem + 1.5vw, 2.4rem); letter-spacing: -.03em; line-height: .95; text-transform: uppercase; color: var(--ink); text-wrap: balance; }
.practice-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 0; }
.practice-list li { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); font-weight: 500; font-size: .98rem; min-width: 0; }
.practice-list .ico { width: 28px; height: 28px; flex: none; }
.practice-art { position: absolute; right: -30px; top: -30px; width: 200px; height: 200px; opacity: .9; pointer-events: none; }
@media (max-width: 1100px) {
  .practice { grid-template-columns: 1fr; }
  .practice-collage { grid-column: 1; grid-row: auto; width: min(100%, 360px); margin: 0; }
}
@media (max-width: 900px) {
  .practices { grid-template-columns: 1fr; }
  .practice, .practice + .practice { padding-inline: 0; border-left: 0; }
  .practice + .practice { border-top: 1px solid var(--rule); }
}

/* ---------- Icons ---------- */
/* Canopy arc over a solid glyph. Ink flips with the theme; the arc keeps its cobalt-to-sky gradient. */
:root { --ico-ink: #071C30; --ico-ink-2: #1E3A8A; --ico-detail: #FCFAF5; --ico-accent: #3282F6; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --ico-ink: #F7F3EB; --ico-ink-2: #BFDBFE; --ico-detail: #071C30; --ico-accent: #60A5FA; } }
:root[data-theme="dark"], .on-night { --ico-ink: #F7F3EB; --ico-ink-2: #BFDBFE; --ico-detail: #071C30; --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: 20px 22px; font-weight: 900; letter-spacing: -.03em; line-height: .98; }
.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: 1px; background: var(--rule); opacity: .5; }
.process::after { content: ""; position: absolute; left: 0; top: 22px; height: 3px; width: var(--progress, 25%); background: var(--ink); 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: 16px; justify-items: start; }
.step button:focus-visible { outline: 2.5px solid var(--focus); outline-offset: 6px; border-radius: 4px; }
.step button:hover .name { color: var(--link); }
.step .name { transition: color .2s; }
.step .dot {
  width: 48px; height: 48px; border-radius: 0; display: grid; place-items: center; position: relative;
  background: var(--bg); border: 1.5px solid var(--rule);
  font-family: var(--font-mono); font-weight: 500; font-size: .9rem; color: var(--ink); 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(--ink); color: var(--ink); }
.step.is-active .dot { background: var(--ink); color: var(--bg); }
.step .detail { display: grid; gap: 10px; transition: opacity .4s var(--ease); }
.step:not(.is-active) .detail { opacity: .88; }
.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: 7px; height: 7px; border-radius: 7px 7px 0 0; background: var(--icon-fill); 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: 1px; 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(--rule); }
.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; }
.cta-band .wrap { position: relative; padding-block: clamp(88px, 10vw, 150px); display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; align-items: end; }
.cta-band .wrap > * { max-width: 52%; }
.cta-band h2 { font-size: var(--step-4); font-weight: 900; letter-spacing: -.035em; line-height: .92; max-width: 10em; text-transform: uppercase; font-size: clamp(2.6rem, 1rem + 4.6vw, 5.6rem); }
.cta-band p { color: var(--night-muted); font-size: var(--step-1); margin-top: 22px; max-width: 30em; }
.cta-art { position: absolute; top: 50%; right: 0; width: 46%; aspect-ratio: 600 / 360; transform: translateY(-50%); z-index: 0; }
.cta-art .reveal { position: absolute; inset: 0; }
.cta-art .collage { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
/* Growth chart: each stage appears in turn, then the growth curve traces their heights */
.gr-tree { transform-box: fill-box; transform-origin: 50% 70%; }

@media (prefers-reduced-motion: no-preference) {
  .cta-art .reveal:not(.is-pending) .gr-tree { animation: gr-rise .9s var(--ease) calc(var(--i) * .14s) both; }
  .cta-art .reveal:not(.is-pending) .gr-arrow { animation: gr-draw 1.4s var(--ease) .9s both; }
  .cta-art .reveal:not(.is-pending) .gr-head { animation: gr-pop .5s var(--ease) 2.1s both; }
}
@keyframes gr-rise { from { opacity: 0; transform: translateY(10px) scale(.7); } to { opacity: 1; transform: none; } }
@keyframes gr-draw { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes gr-pop { from { opacity: 0; } to { opacity: 1; } }
.cta-band .hero-ctas { position: relative; }
.cta-band .waves { display: none; }
@media (max-width: 900px) {
  .cta-band { display: flex; flex-direction: column; }
  .cta-band .wrap { grid-template-columns: 1fr; }
  .cta-band .wrap > * { max-width: none; }
  .cta-art { position: relative; order: 2; top: auto; width: 100%; transform: none; z-index: 0; }
}

/* ---------- Services page ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--rule); border-left: 1px solid var(--line); }
.svc {
  display: grid; gap: 12px; align-content: start;
  padding: 28px; border-radius: 0;
  background: transparent; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  transition: background-color .35s var(--ease);
}
.svc:hover { background: var(--surface); }
.svc .ico-wrap { margin-bottom: 8px; }
.svc .ico { width: 52px; height: 52px; }
.svc h3 { font-size: 1.25rem; letter-spacing: -.01em; }
.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: 20px; font-weight: 900; letter-spacing: -.03em; line-height: .98; }
.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: 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.model { padding: 32px 32px 36px; border-left: 1px solid var(--line); display: grid; gap: 14px; align-content: start; }
.model:first-child { border-left: 0; padding-left: 0; }
.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; } .model { border-left: 0; padding-inline: 0; } .model + .model { border-top: 1px solid var(--line); } }

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px; border-radius: 2px;
  background: var(--chip-bg); color: var(--chip-fg);
  font-family: var(--font-mono); font-weight: 500; font-size: .72rem; letter-spacing: .1em; 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; }
/* Hero, CTA band and footer art sits at z-index 0 under their content (no isolation), so buttons inside can rise above the grain too */
.hero > .wrap, .cta-band > .wrap, .site-footer > .wrap { position: relative; }
/* Rounded content boxes sit above the paper grain (body::after); the texture stays in page backgrounds and artwork */
.case, .sel-work a, .form, .direct, .note, .deep, .sub-card, .proof, .share-bar, .btn, .sub-row input, .sub-row button { position: relative; z-index: 45; }
.case { display: grid; grid-template-rows: auto 1fr; border-radius: calc(var(--radius) + 4px); overflow: hidden; background: var(--surface); border: 1px solid var(--rule); }
.case-art { aspect-ratio: 16 / 9; max-width: 100%; background: var(--night-bg); position: relative; overflow: hidden; border-bottom: 1px solid var(--rule); }
/* Print the cover art: a halftone screen over it, so it sits with the collage */
.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; z-index: 1; background: #F7F3EB; color: #071C30; }
.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-mono); font-weight: 500; font-size: .76rem; 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; border-bottom: 0; border-right: 1px solid var(--rule); }
.case-featured .case-body { align-content: center; }
.case-featured h3 { font-size: clamp(1.7rem, 1.1rem + 1.6vw, 2.6rem); font-weight: 900; letter-spacing: -.03em; }
@media (max-width: 900px) { .case-featured { grid-template-columns: 1fr; } .case-featured .case-art { aspect-ratio: 16 / 9; min-height: 0; border-right: 0; border-bottom: 1px solid var(--rule); } }
/* 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;
  --ink: var(--night-ink); --muted: var(--night-muted); --line: var(--night-line); }
.deep::before { content: ""; position: absolute; right: 0; top: 0; width: 42%; height: 60%; z-index: -1; pointer-events: none; background: radial-gradient(circle, rgba(126, 231, 219, .22) 1.3px, transparent 1.7px) 0 0 / 9px 9px; -webkit-mask: linear-gradient(225deg, #000, transparent 70%); mask: linear-gradient(225deg, #000, transparent 70%); }
.deep .eyebrow { color: var(--night-ink); }
.deep-head { display: grid; gap: 18px; max-width: 54rem; }
.deep-quote { font-size: var(--step-3); font-weight: 900; letter-spacing: -.035em; color: #F7F3EB; text-transform: uppercase; line-height: .95; }
.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: 1px; background: rgba(247, 243, 235, .4); }
.system li { position: relative; padding: 0 18px 0 0; display: grid; gap: 8px; align-content: start; }
.sys-num { width: 32px; height: 32px; border-radius: 0; display: grid; place-items: center; background: var(--night-bg); border: 1.5px solid #F7F3EB; font-family: var(--font-mono); font-weight: 500; font-size: .76rem; color: var(--night-ink); margin-bottom: 10px; transition: background-color .3s, border-color .3s, color .3s; }
.system li:hover .sys-num { background: #67E1DE; border-color: #67E1DE; color: #071C30; }
.system h4, .system .sys-week { font-size: 1.15rem; letter-spacing: .02em; text-transform: uppercase; }
.sys-sub { font-family: var(--font-display); font-weight: 700; color: #67E1DE; font-size: .95rem; }
.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: 0; border-top: 1px solid var(--night-line); }
.deliver div { padding: 24px 24px 24px 0; border-bottom: 1px solid var(--night-line); display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 6px 14px; }
.deliver div:nth-child(2n) { padding-left: 24px; border-left: 1px solid var(--night-line); }
.deliver svg { width: 16px; height: 16px; fill: #67E1DE; 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: 1px; height: auto; }
  .system li { padding: 0 0 0 52px; }
  .sys-num { position: absolute; left: 0; top: 0; }
  .deliver { grid-template-columns: 1fr; }
  .deliver div:nth-child(2n) { padding-left: 0; border-left: 0; }
}
/* experience: condensed numerals */
.stats { margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.stats div { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 12px; padding: 30px 24px 32px 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: 900; font-stretch: 62%; font-size: clamp(3.4rem, 2rem + 4vw, 6rem); letter-spacing: -.01em; line-height: .85; font-variant-numeric: tabular-nums; color: var(--ink); }
.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: 0; border-top: 1px solid var(--line); }
.exp li { padding: 28px 28px 28px 0; border-bottom: 1px solid var(--line); display: grid; gap: 10px; align-content: start; }
.exp li:nth-child(2n) { padding-left: 28px; border-left: 1px solid var(--line); }
.exp-brand { font-family: var(--font-mono); font-weight: 500; font-size: .76rem; letter-spacing: .16em; text-transform: uppercase; color: var(--link); }
.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; } .exp li:nth-child(2n) { padding-left: 0; border-left: 0; } }
@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 as printed tiles on the ink band */
.work-band { border-top: 0 !important; }
.work-band .section-head p { color: var(--night-muted); }
.work-band .text-link { color: var(--night-ink); }
.sel-work { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.sel-work a { position: relative; overflow: hidden; border-radius: var(--radius); display: grid; grid-template-rows: auto auto 1fr auto; gap: 8px; height: 100%; padding: 0 0 22px; color: var(--ink); text-decoration: none; background: var(--night-2); transition: transform .35s var(--ease), background-color .3s; }
.sel-work a:hover { transform: translateY(-4px); background: #17294A; }
.sel-work .sw-art { display: block; aspect-ratio: 4 / 3; overflow: hidden; margin-bottom: 14px; }
.sel-work .sw-art { position: relative; }
.sel-work .sw-art > svg { width: 100%; height: 100%; display: block; transition: transform 1s var(--ease); }
.sel-work a:hover .sw-art > svg { transform: scale(1.04); }
.sel-work a > :not(.sw-art) { margin-inline: 22px; }
.sw-client { font-family: var(--font-mono); font-weight: 500; font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--night-muted); }
.sw-title { font-family: var(--font-display); font-weight: 800; font-size: var(--step-2); letter-spacing: -.02em; line-height: 1.1; }
.sw-role { color: var(--night-muted); padding-right: 52px; }
.sel-work .arrow { position: absolute; right: 0; bottom: 20px; box-sizing: content-box; width: 16px; height: 16px; padding: 7px; border: 1.5px solid currentColor; border-radius: 50%; }
@media (max-width: 900px) { .sel-work { grid-template-columns: 1fr; } }
.case-body dl { margin: 0; display: grid; gap: 14px; }
.case-body dt { font-family: var(--font-mono); font-weight: 500; font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--link); }
.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-mono); font-weight: 500; 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(--rule); 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: 900; font-size: clamp(2rem, 1rem + 4.4vw, 5rem); letter-spacing: -.035em; line-height: 1; text-transform: uppercase; display: inline-flex; align-items: center; }
.tagline-band li:not(:last-child)::after { content: ""; width: .32em; height: .32em; margin-inline: .35em; background: var(--icon-fill); 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: var(--icon-fill); }

/* ---------- 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(--rule); }
.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-mono); font-weight: 500; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; padding: 0; }
.field .opt { font-weight: 400; color: var(--muted); text-transform: none; letter-spacing: 0; font-family: var(--font-body); font-size: .9rem; }
.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(--ink); 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; letter-spacing: 0; text-transform: none; background: var(--bg);
  transition: border-color .2s, background-color .2s, color .2s;
}
.pills label:hover { border-color: var(--ink); }
.pills input:checked + label { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.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(--rule); }
.next-steps li::before { content: counter(n, decimal-leading-zero); font-family: var(--font-mono); font-weight: 500; color: var(--icon-fill); grid-row: span 2; }
.next-steps b { font-family: var(--font-display); font-weight: 700; }
.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; position: relative; }
.site-footer::before { content: ""; position: absolute; right: 4vw; top: 0; width: min(320px, 40vw); height: 120px; z-index: 0; pointer-events: none; background: radial-gradient(circle, rgba(147, 197, 253, .3) 1.2px, transparent 1.6px) 0 0 / 9px 9px; -webkit-mask: linear-gradient(to bottom, #000, transparent); mask: linear-gradient(to bottom, #000, transparent); }
.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-family: var(--font-mono); font-size: .74rem; letter-spacing: .2em; text-transform: uppercase; color: var(--night-muted); margin-bottom: 16px; font-weight: 500; }
.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-mono); font-weight: 500; 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; } }

/* ---------- Blog subscribe (footer row, blog card) ---------- */
.subscribe { display: grid; gap: 8px; min-width: 0; }
.sub-row { display: flex; gap: 10px; }
.sub-row input {
  flex: 1; min-width: 0; font: inherit; font-size: 1rem; color: var(--ink);
  padding: 12px 18px; min-height: 50px; border-radius: 999px;
  background: var(--bg); border: 1.5px solid var(--line); transition: border-color .2s, box-shadow .2s;
}
.sub-row input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px color-mix(in srgb, var(--icon-fill) 22%, transparent); }
.sub-row input[aria-invalid="true"] { border-color: #DC2626; }
.sub-row .btn { flex: none; min-height: 50px; }
.sub-row .btn:disabled { opacity: .7; cursor: progress; }
.sub-msg { margin: 0; min-height: 1.4em; font-size: .92rem; font-weight: 600; color: var(--icon-fill); }
.sub-msg:empty { min-height: 0; }
.sub-msg.is-bad { color: #DC2626; }
.sub-note { color: var(--muted); font-size: .84rem; }
.sub-note a { color: inherit; }
.on-night .sub-row input { background: rgba(255,255,255,.06); border-color: var(--night-line); color: var(--night-ink); }
.on-night .sub-row input::placeholder { color: var(--night-muted); }
.on-night .sub-msg { color: #67E1DE; }
.on-night .sub-msg.is-bad, :root[data-theme="dark"] .sub-msg.is-bad { color: #FCA5A5; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .sub-msg.is-bad { color: #FCA5A5; } }
.on-night .sub-note { color: var(--night-muted); }
.foot-sub { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 20px 48px; align-items: center; padding-block: 32px; border-top: 1px solid var(--night-line); }
.foot-sub p { margin-top: 8px; color: var(--night-muted); max-width: 30em; }
.foot-sub h2 { margin-bottom: 0; font-family: var(--font-display); font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; text-transform: none; color: var(--night-ink); }
.foot .foot-sub a, .foot-sub .sub-note a { opacity: 1; }
.sub-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 24px 56px; align-items: center; margin-top: 56px; padding: clamp(24px, 4vw, 44px); border-radius: calc(var(--radius) + 6px); background: var(--surface); border: 1px solid var(--rule); }
.sub-card .sub-title { margin: 14px 0 10px; font-size: clamp(1.6rem, 2.8vw, 2.2rem); font-weight: 900; letter-spacing: -.03em; }
.sub-card .sub-title em { font-style: normal; color: var(--icon-fill); }
.sub-card p { color: var(--muted); margin: 0; }
@media (max-width: 800px) { .foot-sub, .sub-card { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .sub-row { flex-direction: column; } .sub-row .btn { width: 100%; justify-content: center; } }

/* ---------- 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; animation-delay: 0s !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, .system-4 .sys-week { 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-family: var(--font-mono); font-weight: 500; font-size: .76rem; letter-spacing: .2em; 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: #67E1DE; }
.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(--surface); border-radius: var(--radius); overflow: hidden; max-width: 680px; border: 1px solid var(--rule); }
.scene .lp-orbit { stroke: var(--ink); stroke-opacity: .5; stroke-width: 1.4; stroke-dasharray: 3 6; }
.scene .lp-trail { stroke: var(--icon-fill); }
.scene .lp-fade { color: var(--ink); opacity: .3; }
.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: var(--ink); font-family: var(--font-display); font-weight: 900; font-size: 21px; letter-spacing: -.02em; text-transform: uppercase; }
.scene .lp-s { fill: var(--muted); font-family: var(--font-mono); font-weight: 500; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }
.lp-twinkle { animation: lp-tw 4s ease-in-out infinite; }
@keyframes lp-tw { 0%, 100% { opacity: .25; } 50% { 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: #1C5ACB; --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: #67E1DE; --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); }
.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, #3282F6 30%, #67E1DE 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; transform: perspective(900px) 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 { border-bottom: 0; }
.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.4rem, 1.2rem + 4vw, 4.6rem); margin-block: 18px 16px; }
.nf .lede { color: var(--night-muted); }
.nf .lede { margin-inline: auto; }
.nf .hero-ctas { justify-content: center; }
.sub-figure { margin: 0 0 18px; width: min(52vw, 240px); }
.sub-bird { width: 100%; height: auto; display: block; overflow: visible; animation: nf-float 6s ease-in-out infinite; }
.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: 900; font-size: 236px; letter-spacing: -.03em; 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; }
/* Dizzy ring: the whole orbit wobbles like a cartoon head spin, and each little star spins as it goes */
.nf-dizzy { transform-box: view-box; transform-origin: 320px 74px; animation: nf-wobble 2.1s ease-in-out infinite alternate; }
@keyframes nf-wobble { from { transform: rotate(-4deg); } to { transform: rotate(4deg); } }
.nf-spin { animation: nf-spin 1.4s linear infinite; }
@keyframes nf-spin { to { transform: rotate(360deg); } }
.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: #071C30; 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: 1.5px 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, #1A9FB3 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: #1A9FB3; 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: #1A9FB3; }
.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: #1A9FB3; 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: #3282F6; }
.bk-deep { fill: var(--bk-deep); }
.bk-mint { fill: #67E1DE; }
.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-2); }
.post-card .post-card .mosaic { width: 100%; height: 100%; position: absolute; inset: 0; padding: 24px; box-sizing: border-box; }
@media (min-width: 901px) { .post-card { min-height: 440px; } }
.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(--muted); font-family: var(--font-mono); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; text-decoration: none; }
.back-link:hover { color: var(--link); }
.post-byline { margin-top: 22px; color: var(--muted); font-family: var(--font-mono); font-size: .8rem; letter-spacing: .06em; }
.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; font-weight: 900; letter-spacing: -.025em; }
.prose ul, .prose ol { margin: 0; padding-left: 1.2em; display: grid; gap: 10px; }
.post-sources-box { margin-top: 8px; border-top: 1px solid var(--rule); padding-top: 16px; }
.post-sources-box summary { cursor: pointer; font-family: var(--font-display); font-weight: 700; font-size: var(--step-1); color: var(--ink); list-style: none; display: flex; align-items: center; gap: 10px; width: fit-content; }
.post-sources-box summary::-webkit-details-marker { display: none; }
.post-sources-box summary::after { content: ""; width: 9px; height: 9px; border-right: 2.5px solid var(--icon-fill); border-bottom: 2.5px solid var(--icon-fill); transform: translateY(-3px) rotate(45deg); transition: transform .2s var(--ease); }
.post-sources-box[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.post-sources-box summary:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; border-radius: 4px; }
.post-sources-box .post-sources { margin-top: 14px; }
@media print { .post-sources-box > :not(summary) { display: block; } }
.prose .post-sources { font-size: .92rem; line-height: 1.55; gap: 8px; }
.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: 48px 0 16px; font-size: .78rem; font-family: var(--font-mono); font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--ink); }
.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(--rule); 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: 800; 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: #67E1DE; text-decoration: underline; text-underline-offset: 3px; }
.foot-legal { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.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; }

.direct.book p { margin: 0; color: var(--muted); }
.direct.book .btn { justify-self: start; }

@media (max-width: 480px) {
  .eyebrow { letter-spacing: .12em; font-size: .72rem; }
  .eyebrow::after { display: none; }
}

/* ---------- Mack the macaw ---------- */
.mack { position: fixed; right: max(16px, env(safe-area-inset-right, 0px)); bottom: max(16px, env(safe-area-inset-bottom, 0px)); z-index: 45;
  display: flex; flex-direction: column; align-items: flex-end; gap: 10px; pointer-events: none; }
.mack-perch { pointer-events: auto; width: 60px; height: 60px; padding: 0; border-radius: 50%; border: 2px solid #67E1DE; background: #071C30;
  display: grid; place-items: center; cursor: pointer; box-shadow: 0 10px 28px rgba(7, 26, 44, .35);
  transform: translateY(150%) scale(.6); opacity: 0; transition: transform .55s var(--ease), opacity .3s; }
.mack.is-perched .mack-perch { transform: none; opacity: 1; }
.mack-perch .mack-bird { width: 52px; height: auto; overflow: visible; animation: mack-bob 3.2s ease-in-out infinite; }
.mack-perch .lp-mwing { animation-duration: 1.4s; }
.mack-perch:hover .lp-mwing { animation-duration: .45s; }
.mack-perch:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.mack-bubble { position: relative; max-width: min(300px, calc(100vw - 32px)); padding: 14px 44px 14px 16px; border-radius: 18px 18px 6px 18px;
  background: var(--bg); color: var(--ink); border: 1px solid var(--line); box-shadow: 0 14px 34px rgba(7, 26, 44, .2);
  font-size: 1rem; line-height: 1.45; visibility: hidden; opacity: 0; transform: translateY(8px) scale(.96); transform-origin: 100% 100%;
  transition: opacity .25s, transform .35s var(--ease), visibility 0s linear .35s; }
.mack.is-talking .mack-bubble { pointer-events: auto; visibility: visible; opacity: 1; transform: none; transition: opacity .25s, transform .35s var(--ease); }
.mack-bubble p { margin: 0; }
.mack-x { position: absolute; top: 6px; right: 6px; width: 34px; height: 34px; border: 0; border-radius: 50%; background: transparent;
  color: var(--muted); font-size: 1.35rem; line-height: 1; cursor: pointer; }
.mack-x:hover { color: var(--ink); background: color-mix(in srgb, var(--ink) 8%, transparent); }
.mack-fly { position: fixed; left: 0; top: 16vh; z-index: 60; pointer-events: none; opacity: 0; }
.mack-fly .mack-bird { width: 130px; height: auto; overflow: visible; }
.mack-fly .lp-mwing { animation-duration: .28s; }
.mack-fly.is-flying { animation: mack-fly 3.2s cubic-bezier(.4, .05, .5, .95) forwards; }
.mack-mail { top: 34vh; }
@keyframes mack-fly {
  0% { opacity: 1; transform: translate(-140px, 40px) rotate(-6deg); }
  30% { transform: translate(28vw, -12px) rotate(4deg); }
  60% { transform: translate(58vw, 26px) rotate(-5deg); }
  100% { opacity: 1; transform: translate(calc(100vw + 140px), -30px) rotate(-10deg); }
}
@keyframes mack-bob { 0%, 100% { transform: translateY(1px); } 50% { transform: translateY(-3px); } }
.mack-go::after { content: "→"; transition: transform .2s; }
.mack-go { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; padding: 9px 16px; border-radius: 999px; background: #3282F6;
  color: #fff; font-size: .95rem; font-weight: 700; text-decoration: none; box-shadow: 0 6px 16px rgba(59, 130, 246, .35); }
.mack-go:hover { background: #3282F6; } .mack-go:hover::after { transform: translateX(3px); }
.mack-go:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
@keyframes mack-rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.menu-open .mack { display: none; }
@media print { .mack, .mack-fly { display: none; } .site-header { position: static; } .site-header, .on-night { -webkit-print-color-adjust: exact; print-color-adjust: exact; } .site-header:not(.is-scrolled) { background: var(--night-bg); } .reveal, .reveal-stagger > *, .post-art { opacity: 1 !important; transform: none !important; } }
@media (prefers-reduced-motion: reduce) {
  .mack-perch .mack-bird, .mack .lp-mwing { animation: none; }
  .mack-fly { display: none; }
  .nf-dizzy, .nf-spin { animation: none; }
}

/* ---------- Blog share ---------- */
.share-bar { margin-top: 12px; padding: 24px; border-radius: var(--radius); background: var(--surface-2); display: grid; gap: 14px; }
.share-q { margin: 0; font-family: var(--font-display); font-weight: 800; color: var(--ink); font-size: var(--step-1); }
.share-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.sh-btn {
  display: inline-flex; align-items: center; gap: .5em; min-height: 44px; padding: .5em 1em; border-radius: 999px;
  font: inherit; font-weight: 600; font-size: .92rem; color: var(--ink); background: var(--bg); border: 1.5px solid var(--line); cursor: pointer;
  transition: border-color .2s, background .2s, color .2s;
}
.sh-btn:hover { border-color: var(--icon-fill); }
.sh-btn:focus-visible { outline: 3px solid var(--icon-fill); outline-offset: 2px; }
.sh-glyph { width: 18px; height: 18px; fill: currentColor; flex: none; }
.sh-linkedin:hover { background: #0A66C2; border-color: #0A66C2; color: #fff; }
.sh-facebook:hover { background: #1877F2; border-color: #1877F2; color: #fff; }
.sh-x:hover { background: #000; border-color: #000; color: #fff; }
.sh-instagram:hover { background: #D62976; border-color: #D62976; color: #fff; }
.sh-btn[hidden] { display: none; }

/* Blog cover: Mack flies in, presses the feed printer's button, and high-fives the perched Mack */
.cover .cv-btn, .cover .cv-mack, .cover .cv-spark { transform-box: fill-box; transform-origin: center; }
.cover .cv-mack { transform-origin: 50% 100%; }
.cover .cv-extra { transition: opacity .3s; }
.cover.is-pressed .cv-btn { animation: cv-press .35s ease-out; }
.cover.is-printing .cv-feed { animation: cv-feed .45s linear infinite; }
.cover.is-printing .cv-buzz { animation: cv-buzz .9s ease-in-out infinite alternate; }  /* a slow fade, never a flash */
.cover.is-printed .cv-extra { opacity: 1; }
.cover.is-printing .cv-extra { opacity: 1; transition-delay: calc(.4s + var(--i) * .45s); }
.cover.is-fived .cv-mack { animation: cv-hop .6s var(--ease); }
.cover.is-fived .cv-spark { animation: cv-spark .7s ease-out; }
@keyframes cv-press { 40% { transform: scale(.6); } }
@keyframes cv-feed { to { stroke-dashoffset: -18; } }
@keyframes cv-buzz { to { opacity: .45; } }
@keyframes cv-hop { 30% { transform: translateY(-14px) rotate(-6deg); } 60% { transform: translateY(0) rotate(2deg); } }
@keyframes cv-spark { 0% { opacity: 0; transform: scale(.2); } 30% { opacity: 1; transform: scale(1.6) rotate(20deg); } 100% { opacity: 0; transform: scale(2.2) rotate(45deg); } }
.cv-flyer { position: absolute; left: 0; top: 0; z-index: 60; pointer-events: none; will-change: transform; }
.cv-flyer .mack-bird { width: var(--w, 110px); height: auto; overflow: visible; display: block; }
.cv-flyer .lp-mwing { animation-duration: .28s; }
@media print { .cv-flyer { display: none; } }

/* Scroll drift: collage pieces slide and turn at their own speeds, like cut paper being moved on a table */
.collage { --p: 0; }
.pz { transform-box: fill-box; transform-origin: center;
  translate: calc(var(--dx) * var(--p) * 1px) calc(var(--dy) * var(--p) * 1px); rotate: calc(var(--r) * var(--p) * 1deg);
  transition: translate .5s cubic-bezier(.16, 1, .3, 1), rotate .5s cubic-bezier(.16, 1, .3, 1); }
.collage-hero .pz { animation: pz-in 1s cubic-bezier(.16, 1, .3, 1) both; }
.collage-hero .pz:nth-of-type(2n) { animation-delay: .08s; } .collage-hero .pz:nth-of-type(3n) { animation-delay: .16s; } .collage-hero .pz:nth-of-type(5n) { animation-delay: .24s; }
@keyframes pz-in { from { opacity: 0; transform: translate(calc(var(--dx) * .6px), calc(var(--dy) * .6px)) scale(.85); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .pz { translate: none; rotate: none; transition: none; animation: none !important; } }

/* Dark mode: the banyan sits on plain ink, with no dot texture behind it */
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .behind-mark { display: none; } }
:root[data-theme="dark"] .behind-mark { display: none; }

/* Footnote markers in a post body, linking to its numbered sources */
.prose sup.fn { font-size: .7em; line-height: 0; vertical-align: super; margin-left: 1px; }
.prose sup.fn a { color: var(--link); font-weight: 600; text-decoration: none; padding: 0 2px; }
.prose sup.fn a:hover { text-decoration: underline; }
.prose .post-sources li:target { background: color-mix(in srgb, var(--icon-fill) 14%, transparent); border-radius: 6px; }

/* YouTube cover: once Mack hits record, the anchor talks, the ticker rolls in and chat messages slide up */
.cover .cy-anchor { transform-box: fill-box; transform-origin: 50% 100%; }
.cover.is-printing .cy-anchor { animation: cy-talk .4s ease-in-out 6 alternate; }
.cover.is-armed.is-printing .cy-roll, .cover.is-armed.is-printed .cy-roll { animation: cy-roll 16s linear both; }  /* one pass through the headlines, resting on the first */
.cover.is-armed .cy-chat { opacity: 0; transform: translateY(14px); transition: opacity .3s, transform .35s var(--ease); }
.cover.is-armed.is-printing .cy-chat, .cover.is-armed.is-printed .cy-chat { opacity: 1; transform: none; transition-delay: calc(.5s + var(--i) * .55s); }
@keyframes cy-talk { to { transform: translateY(-4px) rotate(-2deg); } }
@keyframes cy-roll { from { transform: translateX(300px); } to { transform: translateX(-2100px); } }
