/* ==========================================================================
   charul-design.css — Charul Passey design system
   "Financial instrument readout": cool statement-paper + ink, one disciplined
   teal, and a monospaced ledger treatment for every metric.

   Source of truth: charulpassey.com (CODE/portfolio/index.html) and
   CODE/portfolio/CLAUDE.md §5. App/form pieces adapted from CODE/CLAUDE.md.

   Fonts — add to <head>:
   <link rel="preconnect" href="https://fonts.googleapis.com">
   <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
   <link href="https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Space+Mono:wght@400;700&display=swap" rel="stylesheet">
   ========================================================================== */

/* ==========================================================================
   1. TOKENS
   ========================================================================== */
:root {
  /* Surfaces */
  --paper:       #EBEEF2;  /* page canvas — cool statement paper */
  --surface:     #FFFFFF;  /* cards */

  /* Ink */
  --ink:         #131A24;  /* primary text, dark anchor, footer bg */
  --ink-soft:    #525C6B;  /* secondary text */
  --ink-faint:   #8A93A0;  /* captions, labels, meta */

  /* Lines */
  --line:        #DBE1E9;  /* hairlines */
  --line-strong: #C2CAD4;  /* ledger rule, ghost-button border */

  /* Accent — use sparingly: links, eyebrows, marks */
  --accent:      #0E6E78;
  --accent-ink:  #0A5158;  /* link text, primary-button hover */

  /* Semantic */
  --positive:    #1F7A5C;  /* metric deltas, live dots only */
  --negative:    #B3261E;  /* errors, downward deltas */
  --fill:        #B0731B;  /* amber placeholder marker — intentionally "wrong" */

  /* Category tints (project / AI cards) */
  --cat-credit:   #2563EB;
  --cat-finance:  #1F7A5C;
  --cat-pricing:  #B45309;
  --cat-analyze:  #7C3AED;
  --cat-research: #0369A1;
  --cat-chat:     #4338CA;
  --cat-create:   #C2410C;
  --cat-play:     #D97706;
  --cat-explore:  #059669;

  /* Type */
  --display: "Space Grotesk", system-ui, sans-serif;
  --body:    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono:    "Space Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* Layout */
  --maxw: 1080px;
  --pad:  clamp(1.25rem, 5vw, 3rem);
  --nav-h: 64px;

  /* Radius */
  --r-card-sm: 4px;   /* writing cards, inputs */
  --r-btn:     8px;
  --r-card-md: 10px;  /* AI cards */
  --r-card-lg: 12px;  /* project cards */
  --r-pill:    999px;

  /* Elevation (ink/teal tinted, never neutral black) */
  --shadow-hover: 0 2px 12px rgba(14,110,120,0.07);
  --shadow-tip:   0 6px 20px rgba(19,26,36,0.10);
  --shadow-stack: 0 -8px 30px rgba(0,0,0,0.18);

  /* Motion */
  --ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* Dark sections — swap the tokens, components follow automatically */
.section--dark {
  --paper:       #14181C;
  --surface:     #1B2127;
  --ink:         #E9EDF1;
  --ink-soft:    rgba(233,237,241,0.62);
  --ink-faint:   rgba(233,237,241,0.48);
  --line:        rgba(233,237,241,0.13);
  --line-strong: rgba(233,237,241,0.38);
  --accent:      #47BEB0;
  --accent-ink:  #47BEB0;
  --shadow-hover: 0 2px 16px rgba(71,190,176,0.10);
  --shadow-tip:   0 6px 20px rgba(0,0,0,0.35);
  background: var(--paper);
  color: var(--ink);
}

/* ==========================================================================
   2. BASE
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4 { font-family: var(--display); color: var(--ink); margin: 0; }
a { color: var(--accent-ink); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2.5px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
section[id] { scroll-margin-top: calc(var(--nav-h) + 16px); }

/* ==========================================================================
   3. LAYOUT
   ========================================================================== */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }

.block { padding-block: clamp(3.2rem, 7vw, 5.5rem); }
.block + .block { border-top: 1px solid var(--line); }
.block__head { margin-bottom: clamp(2rem, 4vw, 3rem); max-width: 60ch; }
.block__head h2 {
  font-weight: 600;
  font-size: clamp(1.55rem, 3vw, 2.1rem);
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.prose { max-width: 62ch; }
.prose p { margin: 0 0 1.15rem; color: var(--ink-soft); }
.prose strong { color: var(--ink); font-weight: 600; }

/* ==========================================================================
   4. TYPE HELPERS
   ========================================================================== */
.eyebrow {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.9rem;
}
.mono-label {
  font-family: var(--mono);
  font-size: 0.67rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.accent { color: var(--accent); }

/* Placeholder marker — makes unfinished copy easy to find */
.fill { color: var(--fill); border-bottom: 1.5px dashed var(--fill); font-style: normal; cursor: help; }

/* ==========================================================================
   5. NAV — sticky, translucent, mono lowercase links
   ========================================================================== */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: var(--nav-h); }
.brand {
  display: flex; align-items: center; gap: 0.55rem;
  font-family: var(--display); font-weight: 600; font-size: 1.15rem;
  letter-spacing: -0.01em; color: var(--ink);
}
.brand:hover { text-decoration: none; }
.status-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--positive);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--positive) 22%, transparent);
}
.nav__links { display: flex; align-items: center; gap: 1.6rem; }
.nav__links a {
  font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.04em;
  text-transform: lowercase; color: var(--ink-soft);
}
.nav__links a:hover { color: var(--ink); text-decoration: none; }
.nav__toggle { display: none; background: none; border: 0; cursor: pointer; padding: 0.4rem; }
.nav__toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 4px 0; transition: .25s; }

/* ==========================================================================
   6. HERO
   ========================================================================== */
.hero { padding-top: clamp(3.5rem, 9vw, 6rem); padding-bottom: clamp(2.5rem, 6vw, 4rem); }
.hero h1 {
  font-weight: 500;
  font-size: clamp(2.1rem, 5.6vw, 3.9rem);
  line-height: 1.04;
  letter-spacing: -0.025em;
  max-width: 18ch;
  margin-bottom: 1.4rem;
}
.hero h1 em { font-style: normal; color: var(--accent); }
.hero__lead { font-size: clamp(1.05rem, 1.7vw, 1.2rem); color: var(--ink-soft); max-width: 54ch; margin: 0 0 2.2rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-bottom: clamp(2.6rem, 5vw, 3.6rem); }

/* ==========================================================================
   7. BUTTONS — mono label, 8px radius; ink primary, ghost secondary
   ========================================================================== */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--mono); font-size: 0.82rem; letter-spacing: 0.03em;
  padding: 0.78rem 1.3rem; border-radius: var(--r-btn);
  cursor: pointer; transition: .18s;
}
.btn:hover { text-decoration: none; }
.btn--primary { background: var(--ink); color: var(--paper); border: 1px solid var(--ink); }
.btn--primary:hover { background: var(--accent-ink); border-color: var(--accent-ink); color: #fff; }
.btn--ghost { background: transparent; color: var(--ink); border: 1px solid var(--line-strong); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--pill {
  display: block; margin: 1.2rem auto 0;
  background: none; border: 1px solid var(--line); border-radius: var(--r-pill);
  font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.04em;
  color: var(--ink-soft); padding: 0.55rem 1.4rem; cursor: pointer; transition: .15s;
}
.btn--pill:hover { border-color: var(--ink); color: var(--ink); }
.btn[disabled] { opacity: 0.5; pointer-events: none; }

/* ==========================================================================
   8. LEDGER — signature element: mono figures on a ruled baseline
   <div class="ledger">
     <div class="metric">
       <span class="metric__label">Label</span>
       <span class="metric__value">42<span class="delta delta--up">▲</span></span>
       <span class="metric__note">Context</span>
     </div>
   </div>
   ========================================================================== */
.ledger {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: clamp(1rem, 3vw, 2.2rem);
  border-top: 1px solid var(--line-strong); padding-top: 1.6rem;
}
.metric { display: flex; flex-direction: column; gap: 0.35rem; }
.metric__label {
  font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--ink-faint);
}
.metric__value {
  display: flex; align-items: baseline; gap: 0.4rem;
  font-family: var(--mono); font-weight: 700; font-variant-numeric: tabular-nums;
  font-size: clamp(1.5rem, 3.4vw, 2.1rem); line-height: 1; color: var(--ink);
  padding-bottom: 0.55rem; border-bottom: 2px solid var(--ink);
}
.metric__note { font-size: 0.78rem; color: var(--ink-faint); }
.delta { font-size: 0.78em; }
.delta--up { color: var(--positive); }
.delta--down { color: var(--negative); }

/* ==========================================================================
   9. CARDS
   ========================================================================== */
/* Project card (large, 12px) */
.proj-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }
.proj-card {
  position: relative; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r-card-lg); padding: 1.6rem 1.7rem;
}
.proj-card--live { border-color: var(--line-strong); }
.proj-card--wip { border-style: dashed; background: transparent; }
.proj-card--wip h3 { color: var(--ink-soft); }
.proj-card h3 { font-weight: 600; font-size: 1.05rem; line-height: 1.25; margin: 0 0 0.45rem; }
.proj-card p { margin: 0 0 1rem; font-size: 0.92rem; color: var(--ink-soft); line-height: 1.6; }
.proj-tag, .proj-card .proj-tag {
  display: flex; align-items: center; gap: 0.5rem; margin: 0 0 0.65rem;
  font-family: var(--mono); font-size: 0.67rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--accent);
}
.live-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--positive); display: inline-block; }
.proj-link {
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.07em;
  text-transform: uppercase; color: var(--accent);
}
.proj-link:hover { color: var(--accent-ink); text-decoration: none; }

/* AI / mini card (10px) with category tint */
.ai-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.85rem; }
.ai-grid--sm { grid-template-columns: repeat(4, 1fr); gap: 0.65rem; }
.ai-card {
  position: relative; display: block; color: inherit;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card-md);
  padding: 1.1rem 1.2rem; transition: border-color .15s, box-shadow .15s;
  --cat: var(--accent);
}
.ai-grid--sm .ai-card { padding: 0.8rem 0.95rem; }
.ai-card:hover { border-color: var(--accent); box-shadow: var(--shadow-hover); text-decoration: none; }
.ai-card__label {
  font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--cat); margin: 0 0 0.35rem;
}
.ai-card__name { font-family: var(--display); font-weight: 600; font-size: 0.92rem; color: var(--ink); margin: 0 0 0.3rem; line-height: 1.3; }
.ai-card__desc { font-size: 0.83rem; color: var(--ink-soft); line-height: 1.5; margin: 0; }
.ai-card__icon {
  position: absolute; top: 1rem; right: 1rem; width: 20px; height: 20px;
  color: var(--cat); opacity: 0.35; pointer-events: none; transition: opacity .15s;
}
.section--dark .ai-card__icon { opacity: 0.55; }
.ai-card:hover .ai-card__icon { opacity: 0.8; }
.ai-card__icon svg { width: 100%; height: 100%; display: block; }
.ai-card--credit   { --cat: var(--cat-credit); }
.ai-card--finance  { --cat: var(--cat-finance); }
.ai-card--pricing  { --cat: var(--cat-pricing); }
.ai-card--analyze  { --cat: var(--cat-analyze); }
.ai-card--research { --cat: var(--cat-research); }
.ai-card--chat     { --cat: var(--cat-chat); }
.ai-card--create   { --cat: var(--cat-create); }
.ai-card--play     { --cat: var(--cat-play); }
.ai-card--explore  { --cat: var(--cat-explore); }

/* Sub-section header with hairline */
.sub-head {
  display: flex; align-items: baseline; gap: 1rem;
  margin: 2.8rem 0 1.4rem; padding-top: 2rem; border-top: 1px solid var(--line);
}
.sub-head h3 { font-weight: 600; font-size: 1rem; }
.sub-head span { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-faint); }

/* Writing card (4px, tight stack) */
.shelves-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: start; }
.shelf-header {
  display: flex; align-items: baseline; gap: 1rem;
  border-bottom: 2px solid var(--ink); padding-bottom: 0.55rem; margin: 0 0 1.5rem;
}
.shelf-title { font-family: var(--display); font-size: 0.97rem; font-weight: 700; letter-spacing: 0.01em; margin: 0; }
.shelf-count { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-faint); }
.card-list { display: flex; flex-direction: column; gap: 1px; }
.card {
  display: block; color: inherit;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card-sm);
  padding: 1.3rem 1.5rem; transition: border-color .15s, box-shadow .15s;
}
.card:hover { border-color: var(--accent); box-shadow: var(--shadow-hover); text-decoration: none; }
.card-meta {
  display: flex; align-items: center; flex-wrap: wrap; gap: 0.65rem; margin: 0 0 0.4rem;
  font-family: var(--mono); font-size: 0.67rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--ink-faint);
}
.card-meta .tag { color: var(--accent); }
.card-meta .sep { color: var(--line-strong); }
.card-title { font-family: var(--display); font-size: 1.02rem; font-weight: 600; line-height: 1.3; color: var(--ink); margin: 0 0 0.25rem; }
.card-hook { font-size: 0.94rem; line-height: 1.6; color: var(--ink-soft); margin: 0 0 0.75rem; }
.card-read {
  display: inline-flex; align-items: center; gap: 0.35rem;
  font-family: var(--mono); font-size: 0.69rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--accent);
}
.card-read::after { content: "→"; transition: transform .15s; }
.card:hover .card-read::after { transform: translateX(3px); }

/* ==========================================================================
   10. TIMELINE — horizontal on desktop, vertical rail on mobile
   <ol class="tl">
     <li class="tl__item current"><span class="tl__dot"></span>
       <span class="tl__name">Company</span><span class="tl__year">2024–</span></li>
     <li class="tl__item edu">…</li>
   </ol>
   ========================================================================== */
.tl {
  position: relative; list-style: none; margin: 0; padding: 0;
  display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
}
.tl::before { content: ""; position: absolute; top: 5px; left: 0; right: 0; height: 1px; background: var(--line-strong); }
.tl__item { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; }
.tl__dot {
  position: relative; width: 11px; height: 11px; border-radius: 50%;
  background: var(--accent); flex: none; transition: box-shadow .18s, transform .18s;
}
.tl__item.edu .tl__dot { background: var(--paper); box-shadow: inset 0 0 0 2px var(--accent); }
.tl__item:hover .tl__dot { transform: scale(1.15); box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 18%, transparent); }
.tl__item.edu:hover .tl__dot { box-shadow: inset 0 0 0 2px var(--accent), 0 0 0 5px color-mix(in srgb, var(--accent) 18%, transparent); }
.tl__item.current .tl__dot::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: var(--accent); pointer-events: none;
  animation: tl-pulse 2.6s var(--ease-out) infinite;
}
@keyframes tl-pulse {
  0%   { transform: scale(1);   opacity: 0.5; }
  75%, 100% { transform: scale(2.8); opacity: 0; }
}
.tl__name {
  margin-top: 0.85rem; padding: 0 0.3rem;
  font-family: var(--display); font-weight: 500; font-size: 0.8rem; line-height: 1.3; color: var(--ink-soft);
}
.tl__item:hover .tl__name { color: var(--ink); }
.tl__year { margin-top: 0.25rem; font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.06em; color: var(--ink-faint); }

/* ==========================================================================
   11. FORMS & APP STATES (CODE/CLAUDE.md patterns, in this palette)
   ========================================================================== */
.label { display: block; margin-bottom: 0.4rem; font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-faint); }
.input, .textarea {
  width: 100%; padding: 0.6rem 0.8rem;
  font: inherit; font-size: 0.95rem; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card-sm);
  transition: border-color .15s, box-shadow .15s;
}
.textarea { resize: vertical; min-height: 6rem; }
.input::placeholder, .textarea::placeholder { color: var(--ink-faint); }
.input:focus, .textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent);
}

/* Example chips (quick-fill) */
.chip {
  display: inline-block; padding: 0.35rem 0.8rem;
  font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.03em; color: var(--ink-soft);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-pill);
  cursor: pointer; transition: border-color .15s, color .15s;
}
.chip:hover { border-color: var(--accent); color: var(--ink); }

/* Loading — plain text, no spinners */
.loading {
  display: flex; align-items: center; justify-content: center; padding-block: 3rem;
  font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.06em; color: var(--ink-faint);
}

/* Messages */
.alert { padding: 0.9rem 1rem; border-radius: var(--r-card-sm); font-size: 0.9rem; border: 1px solid; }
.alert--error   { color: var(--negative); background: color-mix(in srgb, var(--negative) 6%, var(--surface)); border-color: color-mix(in srgb, var(--negative) 25%, transparent); }
.alert--success { color: var(--positive); background: color-mix(in srgb, var(--positive) 6%, var(--surface)); border-color: color-mix(in srgb, var(--positive) 25%, transparent); }

/* ==========================================================================
   12. FOOTER — the dark moment: ink background, mono links
   ========================================================================== */
.footer { background: #131A24; color: rgba(255,255,255,0.45); padding: clamp(2.5rem, 5vw, 3.5rem) 0; }
.footer .wrap { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1.2rem; }
.footer__brand { font-family: var(--display); font-weight: 600; font-size: 0.95rem; letter-spacing: -0.01em; color: rgba(255,255,255,0.85); }
.footer__links { display: flex; flex-wrap: wrap; gap: 0.6rem 2rem; font-family: var(--mono); font-size: 0.76rem; letter-spacing: 0.05em; }
.footer__links a { color: rgba(255,255,255,0.6); }
.footer__links a:hover { color: #fff; text-decoration: none; }
.footer__copy {
  width: 100%; margin-top: 0.4rem; padding-top: 1.2rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.05em; color: rgba(255,255,255,0.25);
}

/* ==========================================================================
   13. OPT-IN EFFECTS
   ========================================================================== */
/* Scroll reveal — JS adds .in when the element enters the viewport */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* Crop marks — 14px trim marks in the viewport corners. Add class="crop-marks" to <html>. */
.crop-marks::before, .crop-marks::after,
.crop-marks body::before, .crop-marks body::after {
  content: ""; position: fixed; width: 14px; height: 14px; pointer-events: none; z-index: 9998;
  --mark: 1px solid rgba(26,32,38,0.11);
}
.crop-marks::before      { top: 24px; left: 24px;     border-top: var(--mark);    border-left: var(--mark); }
.crop-marks::after       { top: 24px; right: 24px;    border-top: var(--mark);    border-right: var(--mark); }
.crop-marks body::before { bottom: 24px; left: 24px;  border-bottom: var(--mark); border-left: var(--mark); }
.crop-marks body::after  { bottom: 24px; right: 24px; border-bottom: var(--mark); border-right: var(--mark); }

/* Card-stack scroll — each .stack section sticks under the nav and slides over the last.
   Give each a rising z-index. Tall sections need JS: top = min(nav-h, innerHeight - height). */
.stack { position: sticky; top: var(--nav-h); background: var(--paper); }
.stack + .stack { box-shadow: var(--shadow-stack); }

/* ==========================================================================
   14. RESPONSIVE
   ========================================================================== */
@media (max-width: 940px) {
  .tl { grid-auto-flow: row; border-left: 1px solid var(--line-strong); padding-left: 1.4rem; }
  .tl::before { display: none; }
  .tl__item { display: block; text-align: left; padding: 0.7rem 0; }
  .tl__dot { position: absolute; left: -1.95rem; top: 0.95rem; }
  .tl__name { display: block; margin-top: 0; padding: 0; font-size: 0.95rem; color: var(--ink); }
}
@media (max-width: 780px) {
  .nav__links {
    position: fixed; inset: var(--nav-h) 0 auto 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 0.5rem var(--pad) 1.2rem; transform: translateY(-130%);
    transition: transform .3s ease; box-shadow: 0 12px 24px rgba(0,0,0,.06);
  }
  .nav__links.open { transform: none; }
  .nav__links a { width: 100%; padding: 0.7rem 0; font-size: 0.95rem; border-bottom: 1px solid var(--line); }
  .nav__toggle { display: block; }
  .ledger { grid-template-columns: repeat(2, 1fr); row-gap: 1.6rem; }
  .proj-grid, .shelves-grid { grid-template-columns: 1fr; }
  .shelves-grid { gap: 2.5rem; }
  .ai-grid { grid-template-columns: repeat(2, 1fr); }
  .sub-head { flex-direction: column; gap: 0.3rem; }
  .footer .wrap { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 700px) {
  .ai-grid--sm { grid-template-columns: repeat(2, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { transition: none !important; }
  /* keep the "current" signal, just hold it still */
  .tl__item.current .tl__dot::after { animation: none; transform: scale(2.1); opacity: 0.22; }
}
