@font-face {
  font-family: "Archivo";
  src: url("/assets/fonts/archivo-var.woff2") format("woff2-variations"), url("/assets/fonts/archivo-var.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("/assets/fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("/assets/fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

/* ------------------------------------------------------------------
   Themes. One colour system, seven hues: every token is derived from
   --h (brand hue) and --a (accent hue) at fixed lightness and chroma,
   so the look stays constant and only the hue moves day to day.
   theme-init.js picks today's theme; dark follows the visitor's OS.
   Illustrations are inlined by app.js and use the same tokens.
   ------------------------------------------------------------------ */

/* Fallback for browsers without oklch(): the Chilika palette in hex */
:root {
  --bg: #eef3f2;
  --surface: #ffffff;
  --surface-2: #dfeae9;
  --ink: #14262d;
  --muted: #50656c;
  --line: #b7c9cc;
  --primary: #0b6e6b;
  --on-primary: #ffffff;
  --accent: #e39b2d;
  --on-accent: #14262d;
  --code: #13232a;
  --code-ink: #cfe7e4;
  --glow-a: rgba(11, 110, 107, .20);
  --glow-b: rgba(227, 155, 45, .22);
  --dot: rgba(20, 38, 45, .10);
  --shadow-tint: rgba(20, 38, 45, .30);
  color-scheme: light;
}

@supports (color: oklch(50% 0.1 200)) {
  :root {
    --h: 192;
    --a: 68;
    --bg: oklch(96.4% 0.014 var(--h));
    --surface: oklch(99.4% 0.005 var(--h));
    --surface-2: oklch(92% 0.03 var(--h));
    --ink: oklch(24% 0.04 var(--h));
    --muted: oklch(46% 0.035 var(--h));
    --line: oklch(81% 0.035 var(--h));
    --primary: oklch(47% 0.115 var(--h));
    --on-primary: oklch(99% 0.01 var(--h));
    --accent: oklch(77% 0.145 var(--a));
    --on-accent: oklch(23% 0.05 var(--a));
    --code: oklch(23% 0.035 var(--h));
    --code-ink: oklch(90% 0.045 var(--h));
    --glow-a: oklch(47% 0.115 var(--h) / .20);
    --glow-b: oklch(77% 0.145 var(--a) / .24);
    --dot: oklch(24% 0.04 var(--h) / .11);
    --shadow-tint: oklch(24% 0.04 var(--h) / .30);
  }

  @media (prefers-color-scheme: dark) {
    :root {
      --bg: oklch(17% 0.022 var(--h));
      --surface: oklch(22% 0.028 var(--h));
      --surface-2: oklch(27% 0.035 var(--h));
      --ink: oklch(94.5% 0.015 var(--h));
      --muted: oklch(73% 0.03 var(--h));
      --line: oklch(37% 0.035 var(--h));
      --primary: oklch(76% 0.12 var(--h));
      --on-primary: oklch(19% 0.04 var(--h));
      --accent: oklch(81% 0.13 var(--a));
      --on-accent: oklch(20% 0.05 var(--a));
      --code: oklch(12.5% 0.02 var(--h));
      --code-ink: oklch(90% 0.05 var(--h));
      --glow-a: oklch(76% 0.12 var(--h) / .14);
      --glow-b: oklch(81% 0.13 var(--a) / .10);
      --dot: oklch(94.5% 0.015 var(--h) / .07);
      --shadow-tint: oklch(5% 0.01 var(--h) / .70);
      color-scheme: dark;
    }
  }
}

:root {
  --texture: radial-gradient(circle, var(--dot) 1px, transparent 1.4px) 0 0 / 22px 22px;
  --shadow: 0 1px 2px var(--dot), 0 18px 40px -18px var(--shadow-tint);
}

/* The seven day themes: brand hue, accent hue (after :root, so they win) */
[data-day-theme="pattachitra"] { --h: 35;  --a: 200; }
[data-day-theme="konark"]      { --h: 78;  --a: 255; }
[data-day-theme="similipal"]   { --h: 150; --a: 95;  }
[data-day-theme="chilika"]     { --h: 192; --a: 68;  }
[data-day-theme="mahanadi"]    { --h: 248; --a: 40;  }
[data-day-theme="sambalpuri"]  { --h: 295; --a: 165; }
[data-day-theme="padma"]       { --h: 345; --a: 115; }

:root {
  --sans: "Archivo", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --gutter: clamp(1.25rem, 5vw, 4rem);
  --max: 78rem;
  --radius-lg: 28px;
  --radius-md: 18px;
}

/* SVG token classes (used by inlined artwork; attributes are the fallback) */
.art .f-bg { fill: var(--bg); }
.art .f-surface { fill: var(--surface); }
.art .f-surface2 { fill: var(--surface-2); }
.art .f-ink { fill: var(--ink); }
.art .f-muted { fill: var(--muted); }
.art .f-line { fill: var(--line); }
.art .f-primary { fill: var(--primary); }
.art .f-onprimary { fill: var(--on-primary); }
.art .f-accent { fill: var(--accent); }
.art .f-onaccent { fill: var(--on-accent); }
.art .f-code { fill: var(--code); }
.art .f-codeink { fill: var(--code-ink); }
.art .s-line { stroke: var(--line); }
.art .s-ink { stroke: var(--ink); }
.art .s-primary { stroke: var(--primary); }
.art .s-accent { stroke: var(--accent); }
.art .s-surface { stroke: var(--surface); }
.art .s-onaccent { stroke: var(--on-accent); }
.art .stop-primary { stop-color: var(--primary); }
.art .stop-accent { stop-color: var(--accent); }
.art .stop-surface2 { stop-color: var(--surface-2); }
.art svg, .art img { display: block; width: 100%; height: auto; }

/* ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(60rem 40rem at 85% -10%, var(--glow-a), transparent 70%),
    radial-gradient(50rem 36rem at -10% 40%, var(--glow-b), transparent 70%),
    var(--texture),
    var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.55;
  transition: background-color .3s, color .3s;
}

a { color: inherit; }
h1, h2, h3 { margin: 0; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.sr {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip {
  position: absolute; left: var(--gutter); top: -4rem; z-index: 20;
  padding: .5rem .75rem; background: var(--ink); color: var(--bg); border-radius: 8px;
}
.skip:focus { top: 1rem; }

/* Masthead ---------------------------------------------------------- */
.masthead {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; gap: 1.5rem;
  padding: .9rem var(--gutter);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 50%, transparent);
}
.brand {
  display: inline-flex; align-items: center; gap: .6rem;
  text-decoration: none; font-weight: 750; font-stretch: 115%; font-size: 1.15rem;
}
.logo { display: inline-block; width: 30px; }
.sitenav { display: flex; gap: 1.75rem; margin-left: auto; font-size: .95rem; }
.sitenav a { text-decoration: none; color: var(--muted); }
.sitenav a:hover { color: var(--ink); }

.today {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .35rem .65rem .35rem .4rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
  font: inherit; font-size: .85rem; color: var(--muted); white-space: nowrap;
  cursor: pointer;
  transition: border-color .15s ease;
}
.today:hover, .today[aria-expanded="true"] { border-color: var(--primary); }
.today strong { color: var(--ink); font-weight: 650; }
.today .chev { width: .8rem; height: .8rem; transition: transform .15s ease; }
.today[aria-expanded="true"] .chev { transform: rotate(180deg); }
.today .swatch, .tp-swatch {
  width: 1.25rem; height: 1.25rem; border-radius: 50%; flex: none;
  background: conic-gradient(var(--primary) 0 50%, var(--accent) 50% 100%);
  box-shadow: inset 0 0 0 1px var(--dot);
}

/* Story panel ------------------------------------------------------------ */
.theme-panel {
  position: fixed;
  inset: 4.4rem var(--gutter) auto auto;
  width: min(25rem, calc(100vw - 2 * var(--gutter)));
  max-height: calc(100vh - 5.5rem);
  overflow: auto;
  margin: 0;
  padding: 1.25rem 1.35rem 1.35rem;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: 0 1px 2px var(--dot), 0 28px 60px -20px var(--shadow-tint);
}
.theme-panel::backdrop { background: transparent; }
.theme-panel.no-popover { display: none; z-index: 30; }
.theme-panel.no-popover.open { display: block; }
@media (prefers-reduced-motion: no-preference) {
  .theme-panel:popover-open { animation: panel-in .18s ease-out; }
}
@keyframes panel-in { from { opacity: 0; transform: translateY(-6px); } }

.tp-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: .8rem; align-items: start; }
.tp-swatch { width: 2.4rem; height: 2.4rem; }
.tp-head h2 { font-size: 1.1rem; font-weight: 750; font-stretch: 108%; line-height: 1.25; }
.tp-sub { margin: .15rem 0 0; font-size: .85rem; color: var(--muted); }
.tp-close {
  display: grid; place-items: center; width: 2rem; height: 2rem; margin: -.3rem -.4rem 0 0;
  border: 0; border-radius: 50%; background: transparent; color: var(--muted); cursor: pointer;
}
.tp-close:hover { background: var(--surface-2); color: var(--ink); }
.tp-close svg { width: .85rem; height: .85rem; }
.tp-preview {
  margin: 1rem 0 0; padding: .5rem .75rem; border-radius: 10px;
  background: color-mix(in srgb, var(--accent) 22%, transparent); font-size: .85rem;
}
.tp-story { margin: 1rem 0 0; line-height: 1.5; }
.tp-colours { margin: .5rem 0 0; color: var(--muted); font-size: .92rem; }
.tp-week-title { margin: 1.25rem 0 .5rem; font-size: .85rem; font-weight: 650; color: var(--muted); }
.tp-week { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.tp-week li {
  display: grid; grid-template-columns: 2.6rem 1rem minmax(0, 1fr) auto; gap: .65rem; align-items: center;
  padding: .42rem .2rem; border-bottom: 1px solid var(--line); font-size: .92rem;
}
.tp-week .wk-day { color: var(--muted); font-size: .85rem; }
.tp-week .past { opacity: .55; }
.tp-week .now { font-weight: 650; }
.tp-week .wk-tag {
  padding: .1rem .5rem; border-radius: 999px; font-size: .75rem; font-weight: 650;
  background: var(--primary); color: var(--on-primary);
}
.wk-dot { width: 1rem; height: 1rem; border-radius: 50%; background: var(--line); box-shadow: inset 0 0 0 1px var(--dot); }
@supports (color: oklch(50% 0.1 200)) {
  .wk-dot { background: conic-gradient(oklch(52% 0.12 var(--h)) 0 50%, oklch(77% 0.145 var(--a)) 50% 100%); }
}
.tp-next { margin: .9rem 0 0; font-size: .88rem; color: var(--muted); }
.tp-next strong { color: var(--ink); }

main { flex: 1; width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* Hero -------------------------------------------------------------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(1.5rem, 4vw, 4rem);
  padding: clamp(2.5rem, 7vh, 5rem) 0 clamp(3rem, 8vh, 6rem);
}
.kicker {
  display: inline-flex; align-items: center; gap: .55rem;
  margin: 0 0 1.25rem; padding: .35rem .85rem .35rem .45rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
  font-size: .9rem; color: var(--muted);
}
.pin {
  width: 1.2rem; height: 1.2rem; border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, var(--accent) 0 30%, color-mix(in srgb, var(--accent) 30%, transparent) 32% 100%);
}
.hero h1 {
  max-width: 16ch;
  font-size: clamp(2.3rem, 4.8vw, 4.1rem);
  text-wrap: balance;
  line-height: 1.02;
  font-weight: 800;
  font-stretch: 112%;
  letter-spacing: -0.03em;
}
.lede { margin: 1.25rem 0 0; max-width: 46ch; color: var(--muted); font-size: 1.15rem; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }

.btn {
  display: inline-flex; align-items: center;
  padding: .85rem 1.4rem; border-radius: 999px;
  font-weight: 650; text-decoration: none; font-size: 1rem;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.btn-primary { background: var(--primary); color: var(--on-primary); box-shadow: var(--shadow); }
.btn-primary:hover { transform: translateY(-2px); }
.btn-ghost { background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--ink); }

.hero-art { margin: 0 -2rem 0 0; }

/* Destinations: the domain tree --------------------------------------- */
.destinations { padding: clamp(2rem, 6vh, 4rem) 0; }
.root {
  font-weight: 800;
  font-stretch: 125%;
  font-size: clamp(2.2rem, 7.6vw, 6.4rem);
  line-height: .95;
  letter-spacing: -0.035em;
  overflow-wrap: anywhere;
}
.section-lede { margin: .75rem 0 0; color: var(--muted); font-size: 1.1rem; }

.branches {
  --pad-l: clamp(1.75rem, 4vw, 3.5rem);
  --gap: clamp(1.25rem, 3vw, 2.25rem);
  --trunk-x: clamp(.6rem, 1.5vw, 1.25rem);
  --rail-y: 1.4rem;
  --stub-x: 2rem;
  --row-gap: calc(var(--gap) + 1.4rem);
  position: relative;
  list-style: none;
  margin: 0;
  padding: 2.8rem 0 0 var(--pad-l);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: 1fr;               /* equal rows, so the trunk's length is known */
  gap: var(--row-gap) var(--gap);
}
/* Two rows of two. The trunk runs down from the root to the second row's rail;
   each row's rail runs from the trunk to its second card's stub. */
.branches::before {
  content: ""; position: absolute;
  left: var(--trunk-x); top: 0;
  height: calc((100% - 2.8rem - var(--row-gap)) / 2 + var(--row-gap) + var(--rail-y) + 3px);
  width: 3px; background: var(--ink); border-radius: 3px;
}
.branches::after,
.branch:nth-child(3)::after {
  content: ""; position: absolute; height: 3px;
  background: var(--ink); border-radius: 3px;
}
.branches::after {
  left: var(--trunk-x); top: var(--rail-y);
  width: calc((100% - var(--pad-l) - var(--gap)) / 2 + var(--pad-l) + var(--gap) + var(--stub-x) - var(--trunk-x) + 3px);
}
.branch:nth-child(3)::after {
  top: calc(var(--rail-y) - 2.8rem); left: calc(var(--trunk-x) - var(--pad-l));
  width: calc(var(--pad-l) - var(--trunk-x) + 100% + var(--gap) + var(--stub-x) + 3px);
  transition: transform .2s ease;
}
.branch:nth-child(3):hover::after { transform: translateY(4px); } /* the rail stays put while the card lifts */
.branch {
  position: relative;
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease;
}
.branch:hover { transform: translateY(-4px); }
/* drop from the rail into each card */
.branch::before {
  content: ""; position: absolute;
  top: calc(var(--rail-y) - 2.8rem - 1px); left: var(--stub-x);
  width: 3px; height: calc(2.8rem - var(--rail-y) + 1px);
  background: var(--ink);
}
.branch-art {
  overflow: hidden;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  background:
    radial-gradient(24rem 14rem at 80% 10%, var(--glow-a), transparent 70%),
    var(--surface-2);
  border-bottom: 1px solid var(--line);
}
.branch-body { padding: 1.4rem 1.6rem 1.6rem; }
.branch-body p { margin: .6rem 0 0; color: var(--muted); max-width: 46ch; }

.host {
  display: inline-block;
  font-size: clamp(1.35rem, 2.2vw, 1.9rem);
  line-height: 1.1; letter-spacing: -0.02em; text-decoration: none;
}
.host .sub {
  font-weight: 780; font-stretch: 118%;
  text-decoration: underline; text-decoration-thickness: .08em; text-underline-offset: .15em;
  text-decoration-color: var(--accent);
}
.host .apex { display: block; margin-top: .1em; font-size: .62em; font-weight: 400; font-stretch: 90%; color: var(--muted); }
.host::after { content: ""; position: absolute; inset: 0; z-index: 2; } /* whole card is the link */
.host:focus-visible { outline: none; }
.branch:has(.host:focus-visible) { outline: 3px solid var(--accent); outline-offset: 4px; }

.status {
  display: inline-flex !important; align-items: center; gap: .5rem;
  margin-top: 1rem !important; padding: .3rem .7rem;
  border-radius: 999px; background: var(--surface-2);
  font-family: var(--mono); font-size: .8rem; color: var(--muted);
}
.dot { width: .55rem; height: .55rem; border-radius: 50%; background: var(--accent); }
.branch[data-state="up"] .dot { background: #2fb36d; box-shadow: 0 0 0 4px color-mix(in srgb, #2fb36d 25%, transparent); }
.branch[data-state="down"] .dot { background: var(--accent); } /* not live yet: amber, not red */

/* Counted in the open ------------------------------------------------------ */
.open-counts {
  margin: clamp(1.75rem, 4vh, 2.5rem) 0 0 clamp(1.75rem, 4vw, 3.5rem);
  padding: clamp(1.2rem, 2.5vw, 1.6rem) clamp(1.2rem, 3vw, 2rem);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
}
.open-counts[hidden] { display: none; }
.open-title { margin: 0; font-weight: 700; }
.open-tally { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem 1.5rem; margin: .9rem 0 0; }
.open-tally > div { padding-left: .9rem; border-left: 3px solid var(--line); }
.open-tally > div:first-child { border-left-color: var(--primary); }
.open-tally > div:last-child { border-left-color: var(--accent); }
.open-tally dt { font-size: .85rem; color: var(--muted); }
.open-tally dd {
  margin: .2rem 0 0; font-size: clamp(1.6rem, 3vw, 2.3rem); line-height: 1;
  font-weight: 800; font-stretch: 115%; letter-spacing: -0.02em; font-variant-numeric: tabular-nums;
}
.open-note { margin: .9rem 0 0; font-size: .85rem; color: var(--muted); }

/* Kalinga ---------------------------------------------------------------- */
.kalinga {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  padding: clamp(3rem, 8vh, 5.5rem) 0 clamp(1rem, 3vh, 2rem);
}
.kalinga h2 {
  max-width: 16ch;
  font-size: clamp(2rem, 4.2vw, 3.4rem);
  line-height: 1.04;
  font-weight: 800;
  font-stretch: 115%;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.kalinga-copy p { margin: 1.15rem 0 0; max-width: 60ch; color: var(--muted); font-size: 1.08rem; }
.kalinga-copy p:first-of-type { color: var(--ink); }

.mediums { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.mediums li { display: grid; gap: .15rem; }
.medium {
  font-size: clamp(2.8rem, 6vw, 5rem);
  line-height: .92;
  font-weight: 850;
  font-stretch: 125%;
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 2px color-mix(in srgb, var(--muted) 60%, transparent);
}
.mediums li:nth-child(2) .medium { -webkit-text-stroke-color: var(--muted); }
.mediums li:last-child .medium { color: var(--primary); -webkit-text-stroke: 0; }
.medium-note { font-size: .9rem; color: var(--muted); }
.mediums li:last-child .medium-note { color: var(--ink); font-weight: 600; }

.pairing {
  grid-column: 1 / -1;
  padding: clamp(1.4rem, 3vw, 2.2rem);
  background:
    radial-gradient(30rem 16rem at 100% 0%, var(--glow-b), transparent 70%),
    var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.pairing-head { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1rem; }
.pairing-head h3 { font-size: clamp(1.25rem, 2.2vw, 1.6rem); font-weight: 760; font-stretch: 110%; letter-spacing: -0.01em; }
.pairing-more { margin-left: auto; font-size: .92rem; }
.pairing-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem clamp(1.5rem, 4vw, 3rem); margin-top: 1.4rem;
}
.pairing-grid > div { padding-left: 1.1rem; border-left: 3px solid var(--line); }
.pairing-grid > div:last-child { border-left-color: var(--primary); }
.pairing-grid p { margin: 0; font-size: 1.08rem; max-width: 46ch; }
.pairing-grid .pairing-when { margin-bottom: .3rem; font-size: .88rem; font-weight: 650; color: var(--muted); }
.pairing-grid > div:last-child .pairing-when { color: var(--primary); }
.pairing-foot { margin: 1.3rem 0 0; font-size: .85rem; color: var(--muted); }

.tp-then { margin: .9rem 0 0; font-size: .92rem; }
.tp-link { color: var(--primary); font-weight: 600; text-underline-offset: 3px; }

/* About ------------------------------------------------------------------ */
.about { padding: clamp(3rem, 8vh, 5rem) 0 clamp(1rem, 3vh, 2rem); }
.about-head { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 1.5rem clamp(2rem, 5vw, 4rem); align-items: end; }
.about h2 {
  max-width: 14ch; font-size: clamp(2rem, 4.2vw, 3.4rem); line-height: 1.04;
  font-weight: 800; font-stretch: 115%; letter-spacing: -0.03em; text-wrap: balance;
}
.about-lede { margin: 0; max-width: 58ch; font-size: 1.12rem; }
.about-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem clamp(1.5rem, 4vw, 3rem);
  margin-top: clamp(1.75rem, 4vh, 2.5rem); padding-top: 1.5rem; border-top: 3px solid var(--ink);
}
.about-item h3 { font-size: 1.15rem; font-weight: 750; font-stretch: 108%; }
.about-item p { margin: .5rem 0 0; color: var(--muted); max-width: 40ch; }

.hubs {
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 1.5rem clamp(2rem, 5vw, 4rem);
  align-items: end; margin-top: clamp(2.5rem, 6vh, 4rem);
}
.hub-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 .9em; }
.hub-list li {
  font-size: clamp(2rem, 5.2vw, 4.3rem); line-height: 1; font-weight: 850; font-stretch: 122%; letter-spacing: -0.04em;
  color: transparent; -webkit-text-stroke: 2px color-mix(in srgb, var(--muted) 55%, transparent);
}
.hub-list .hub-here { color: var(--primary); -webkit-text-stroke: 0; }
.hubs-note { margin: 0; max-width: 44ch; font-size: 1.05rem; }

/* Services ------------------------------------------------------------ */
.services {
  margin: clamp(2rem, 6vh, 4rem) 0;
  padding: clamp(2rem, 5vw, 3.5rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.services h2, .how h2 {
  font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 780; font-stretch: 112%; letter-spacing: -0.02em;
}
.service-list {
  list-style: none; margin: 2rem 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem;
}
.service-list .icon {
  display: grid; place-items: center;
  width: 4.5rem; height: 4.5rem; padding: .7rem;
  border-radius: var(--radius-md); background: var(--bg);
  border: 1px solid var(--line);
}
.service-list h3 { margin-top: 1.1rem; font-size: 1.15rem; font-weight: 700; }
.service-list p { margin: .45rem 0 0; color: var(--muted); max-width: 34ch; }

/* Founder ------------------------------------------------------------- */
.founder {
  display: grid; grid-template-columns: minmax(0, 21rem) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start; padding: clamp(2rem, 6vh, 4rem) 0;
}
.founder-card {
  position: sticky; top: 5.5rem;
  padding: clamp(1.4rem, 3vw, 2rem);
  background: radial-gradient(22rem 14rem at 100% 0%, var(--glow-b), transparent 70%), var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow);
}
.monogram {
  display: grid; place-items: center; width: 5.5rem; height: 5.5rem; border-radius: 22px;
  background: linear-gradient(135deg, var(--primary), color-mix(in srgb, var(--primary) 55%, var(--accent)));
  color: var(--on-primary); font-size: 1.9rem; font-weight: 850; font-stretch: 120%; letter-spacing: -0.04em;
}
.founder-card h2 {
  margin-top: 1.25rem; font-size: clamp(1.6rem, 2.6vw, 2rem); line-height: 1.1;
  font-weight: 800; font-stretch: 112%; letter-spacing: -0.02em;
}
.founder-kicker { display: block; margin-bottom: .35rem; font-size: .9rem; font-weight: 600; font-stretch: 100%; letter-spacing: 0; color: var(--muted); }
.founder-role { margin: .6rem 0 0; }
.founder-place { display: flex; align-items: center; gap: .5rem; margin: .5rem 0 0; color: var(--muted); font-size: .95rem; }
.founder-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.4rem; }
.founder-actions .btn { padding: .65rem 1.1rem; font-size: .95rem; }

.founder-bio { margin: 0; max-width: 62ch; font-size: 1.12rem; }
.founder-proof { margin: 1rem 0 0; max-width: 62ch; color: var(--muted); }
.founder-proof a { color: var(--primary); font-weight: 600; text-underline-offset: 3px; }
.founder-body h3 { margin-top: 2rem; font-size: 1.05rem; font-weight: 750; }
.skills { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; margin: .8rem 0 0; padding: 0; }
.skills li { padding: .35rem .8rem; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: .92rem; }
.founder-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(1.5rem, 4vw, 3rem); }
.certs, .career { list-style: none; margin: .8rem 0 0; padding: 0; border-top: 1px solid var(--line); }
.certs li, .career li {
  display: grid; gap: .8rem; align-items: baseline;
  padding: .55rem 0; border-bottom: 1px solid var(--line); font-size: .95rem;
}
.certs li { grid-template-columns: minmax(0, 1fr) auto; }
.career li { grid-template-columns: 4.6rem minmax(0, 1fr); }
.yr { font-family: var(--mono); font-size: .82rem; color: var(--muted); }

/* How it's built ------------------------------------------------------- */
.how { padding: clamp(2rem, 6vh, 4rem) 0 clamp(3rem, 8vh, 5rem); }
.how-head { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 2rem; align-items: end; }
.how-head p { margin: 0; color: var(--muted); max-width: 60ch; }
.arch {
  margin: 2rem 0 0; padding: clamp(1rem, 3vw, 2rem);
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); box-shadow: var(--shadow);
}
.arch-scroll { overflow-x: auto; overscroll-behavior-x: contain; }
.arch-scroll > * { min-width: 720px; }

/* Footer ----------------------------------------------------------------- */
.foot {
  display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem;
  padding: 1.75rem var(--gutter) 2.25rem;
  border-top: 1px solid var(--line);
  color: var(--muted); font-size: .9rem;
}
.foot p { margin: 0; }
.foot-brand { display: inline-flex; align-items: center; gap: .5rem; color: var(--ink); font-weight: 700; font-stretch: 112%; }
.foot-brand .logo { width: 22px; }
.foot-links { display: flex; gap: 1.25rem; margin-left: auto !important; }
.foot-theme { flex-basis: 100%; order: 3; }
.linkish {
  padding: 0; border: 0; background: none; font: inherit; color: var(--ink); font-weight: 650; cursor: pointer;
  text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 3px;
}
.foot-links a { text-decoration: none; }
.foot-links a:hover { color: var(--ink); }

/* One orchestrated entrance: the hero art lifts in, its packets keep moving */
@media (prefers-reduced-motion: no-preference) {
  .js .hero-art { animation: rise .8s cubic-bezier(.2,.7,.2,1) .1s both; }
  .art .cursor { animation: blink 1.1s steps(1) infinite; }
}
@media (prefers-reduced-motion: reduce) {
  .art .packet { display: none; }
  .branch, .btn { transition: none; }
}
@keyframes rise { from { opacity: 0; transform: translateY(18px) scale(.98); } }
@keyframes blink { 50% { opacity: 0; } }

/* Responsive ------------------------------------------------------------- */
@media (max-width: 60rem) {
  .hero { grid-template-columns: minmax(0, 1fr); }
  .hero-art { max-width: 34rem; margin: 0; }
  .how-head { grid-template-columns: minmax(0, 1fr); }
  .kalinga { grid-template-columns: minmax(0, 1fr); }
  .branches { grid-template-columns: minmax(0, 1fr); grid-auto-rows: auto; row-gap: var(--gap); padding-top: 1.5rem; }
  .branches::after, .branch::before, .branch:nth-child(3)::after { display: none; }
  .branches::before { height: calc(100% - 2rem); }
  .about-head, .hubs, .founder, .founder-cols { grid-template-columns: minmax(0, 1fr); }
  .about-grid { grid-template-columns: minmax(0, 1fr); }
  .open-tally { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .founder-card { position: static; }
  .service-list { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
  .service-list li { display: grid; grid-template-columns: 4.5rem minmax(0, 1fr); column-gap: 1.1rem; }
  .service-list .icon { grid-row: span 2; }
  .service-list h3 { margin-top: .3rem; }
}
@media (max-width: 44rem) {
  .sitenav { display: none; }
  .today { margin-left: auto; }
  .theme-panel { inset: 4.2rem var(--gutter) auto var(--gutter); width: auto; }
  .pairing-grid { grid-template-columns: minmax(0, 1fr); }
  .pairing-more { margin-left: 0; }
  .open-tally { grid-template-columns: minmax(0, 1fr); }
}
