/* ============================================================
   kenmendoza.com — refined hub
   Dark-navy system, elevated. Newsreader (serif) + Inter (UI).
   Cool accent = rigor (the map). Warm accent = reflection (the library).
   ============================================================ */

:root {
  /* Ink surfaces — Oregon Coast AI family values */
  --ink-900: #0a0e16;
  --ink-850: #0c1320;
  --ink-800: #0f1622;
  --ink-750: #121b2b;
  --card:    #121b2b;
  --card-2:  #15243b;
  --card-hi: #1b2c44;

  /* Hairlines */
  --line:      #1e2c42;
  --line-soft: rgba(146, 178, 214, 0.07);

  /* Text */
  --tx:   #e8eef7;
  --tx-2: #c4d0e0;
  --tx-3: #8aa0bd;
  --tx-4: #5d6e87;

  /* Cool accent — cyan is the single load-bearing accent (DS) */
  --cool:    #34e0d8;
  --cool-2:  #5aa9ff;
  --cool-dim: rgba(52, 224, 216, 0.14);

  /* Warm accents — reflection / the writing (personal-site extension) */
  --gold:  #ffb454;
  --plum:  #c4a6e0;
  --plum-deep: #7c4f78;

  /* Status hues (DS) */
  --st-done:  #5ad19b;
  --st-prep:  #ffb454;
  --st-scout: #8aa0bd;

  /* Type */
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono:  "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --maxw: 1180px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--sans);
  background: var(--ink-900);
  color: var(--tx);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
::selection { background: rgba(52, 224, 216, 0.28); color: #fff; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

/* eyebrow / labels */
.eyebrow {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cool);
}
.eyebrow.warm { color: var(--gold); }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 28px;
  background: rgba(5, 9, 15, 0.55);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease), padding 0.3s var(--ease);
}
.nav.scrolled {
  border-bottom-color: var(--line);
  background: rgba(5, 9, 15, 0.82);
  padding: 11px 28px;
}
.nav-logo {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  display: flex; align-items: center; gap: 10px;
  white-space: nowrap;
}
.nav-logo .mark {
  width: 30px; height: 30px; border-radius: 8px;
  display: grid; place-items: center;
  background: linear-gradient(150deg, var(--cool), var(--cool-2));
  font-family: var(--sans); font-weight: 700; font-size: 0.78rem;
  color: #06101f; letter-spacing: 0;
  box-shadow: 0 4px 14px rgba(52,224,216,0.3);
}
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  font-size: 0.86rem; font-weight: 500; color: var(--tx-2);
  padding: 7px 13px; border-radius: 8px;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}
.nav-links a:hover { color: var(--tx); background: rgba(255,255,255,0.04); }
.nav-cta {
  font-size: 0.84rem; font-weight: 600; color: var(--cool) !important;
  border: 1px solid var(--line); border-radius: 999px; padding: 7px 16px !important;
}
.nav-cta:hover { border-color: var(--cool); background: var(--cool-dim) !important; }
.nav-toggle { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: center;
  padding: 120px 0 80px;
  overflow: hidden;
}
#hero-field { position: absolute; inset: 0; z-index: 0; }
.hero::after {
  /* vignette + warm/cool glow */
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(120% 80% at 78% 18%, rgba(52,224,216,0.10), transparent 55%),
    radial-gradient(90% 70% at 12% 92%, rgba(244,162,97,0.07), transparent 50%),
    radial-gradient(140% 120% at 50% 0%, transparent 55%, rgba(5,9,15,0.85) 100%);
}
.hero .wrap { position: relative; z-index: 2; width: 100%; }
.hero-grid {
  display: grid; grid-template-columns: 1.55fr 1fr; gap: 56px; align-items: center;
}
.hero-eyebrow { display: flex; align-items: center; gap: 12px; margin-bottom: 26px; }
.hero-eyebrow .dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--st-done);
  box-shadow: 0 0 0 4px rgba(95,208,166,0.16);
}
.hero-eyebrow span { font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--tx-3); font-weight: 600; }

.hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.9rem, 6.4vw, 5.1rem);
  line-height: 1.02;
  letter-spacing: -0.018em;
  color: #fff;
  margin-bottom: 22px;
}
.hero h1 em {
  font-style: italic;
  color: var(--cool);
}
.hero-lede {
  font-family: var(--serif);
  font-size: clamp(1.15rem, 1.8vw, 1.5rem);
  line-height: 1.5;
  color: var(--tx-2);
  max-width: 40ch;
  margin-bottom: 18px;
}
.hero-lede strong { color: var(--tx); font-weight: 600; }
.hero-sub {
  font-size: 0.98rem; color: var(--tx-3); max-width: 46ch; margin-bottom: 36px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  font-family: var(--sans); font-size: 0.92rem; font-weight: 600;
  padding: 13px 24px; border-radius: 999px; cursor: pointer;
  display: inline-flex; align-items: center; gap: 9px; border: 1px solid transparent;
  transition: transform 0.18s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease), border-color 0.2s var(--ease);
}
.btn-primary {
  background: linear-gradient(150deg, var(--cool), var(--cool-2));
  color: #04121b;
  box-shadow: 0 10px 30px rgba(52,224,216,0.28);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(52,224,216,0.4); }
.btn-ghost { color: var(--tx); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--tx-3); background: rgba(255,255,255,0.04); transform: translateY(-2px); }
.btn .arrow { transition: transform 0.2s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

/* Hero portrait card */
.hero-portrait {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 30px 70px rgba(0,0,0,0.55);
  aspect-ratio: 4 / 4.6;
  background: var(--card);
}
.hero-portrait img {
  width: 100%; height: 100%; object-fit: cover;
  object-position: center var(--portrait-y, 14%);
  transform: translateX(var(--portrait-x, -4%)) scale(var(--portrait-scale, 1.1));
  transform-origin: center var(--portrait-y, 14%);
  filter: saturate(0.92) contrast(1.02);
}
.hero-portrait::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(5,9,15,0.82) 100%);
}
.hero-portrait .cap {
  position: absolute; left: 18px; right: 18px; bottom: 16px; z-index: 2;
}
.hero-portrait .cap .name { font-family: var(--serif); font-size: 1.18rem; color: #fff; }
.hero-portrait .cap .role { font-size: 0.78rem; color: var(--tx-2); margin-top: 2px; }

.hero-meta {
  display: flex; gap: 26px; margin-top: 38px; flex-wrap: wrap;
}
.hero-meta .m .v { font-family: var(--serif); font-size: 1.6rem; color: #fff; line-height: 1; }
.hero-meta .m .k { font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--tx-4); margin-top: 7px; }

.scroll-cue {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 3;
  font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--tx-4);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.scroll-cue .line { width: 1px; height: 34px; background: linear-gradient(var(--tx-4), transparent); animation: cue 2.2s var(--ease) infinite; }
@keyframes cue { 0%,100% { opacity: 0.3; transform: scaleY(0.7); } 50% { opacity: 1; transform: scaleY(1); } }

/* ---------- Section scaffolding ---------- */
.section { padding: 110px 0; position: relative; }
.section-alt { background: linear-gradient(180deg, var(--ink-850), var(--ink-800)); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.sec-head { max-width: 64ch; margin-bottom: 52px; }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.sec-head h2 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(2rem, 3.8vw, 3rem); line-height: 1.08; letter-spacing: -0.015em;
  color: #fff; margin: 14px 0 16px;
}
.sec-head h2 em { font-style: italic; color: var(--gold); }
.sec-head p { color: var(--tx-2); font-size: 1.05rem; }

/* ---------- Research map ---------- */
.map-wrap {
  position: relative;
  display: grid; grid-template-columns: 1fr 360px; gap: 28px;
  align-items: stretch;
}
.map-stage {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 20px;
  background:
    radial-gradient(80% 80% at 50% 42%, rgba(52,224,216,0.06), transparent 70%),
    linear-gradient(180deg, var(--ink-800), var(--ink-850));
  overflow: hidden;
  min-height: 560px;
}
.map-stage svg { display: block; width: 100%; height: 100%; }
.map-hint {
  position: absolute; left: 18px; bottom: 14px; z-index: 5;
  font-size: 0.74rem; color: var(--tx-4); pointer-events: none;
  display: flex; align-items: center; gap: 8px;
}
.map-hint .k { font-family: var(--mono); color: var(--tx-3); border: 1px solid var(--line); border-radius: 5px; padding: 1px 6px; }

/* edges */
.edge { stroke: rgba(146,178,214,0.16); stroke-width: 1.4; fill: none; transition: stroke 0.3s var(--ease), stroke-width 0.3s var(--ease), opacity 0.3s var(--ease); }
.edge.hot { stroke: var(--cool); stroke-width: 2.1; }
.edge.dim { opacity: 0.18; }

/* nodes */
.node { cursor: pointer; }
.node .halo { fill: transparent; transition: fill 0.3s var(--ease); }
.node .disc {
  fill: var(--card-2);
  stroke: var(--line); stroke-width: 1.4;
  transition: fill 0.25s var(--ease), stroke 0.25s var(--ease), transform 0.25s var(--ease);
}
.node:hover .disc, .node.active .disc { stroke: var(--cool); fill: var(--card-hi); }
.node.core .disc { fill: #10283a; stroke: rgba(52,224,216,0.5); }
.node.active .halo { fill: rgba(52,224,216,0.10); }
.node .glyph { font-family: var(--mono); fill: #fff; text-anchor: middle; dominant-baseline: central; pointer-events: none; }
.node .label { font-family: var(--sans); font-size: 13px; font-weight: 600; fill: var(--tx-2); text-anchor: middle; pointer-events: none; transition: fill 0.25s var(--ease); }
.node:hover .label, .node.active .label { fill: #fff; }
.node .sub { font-family: var(--sans); font-size: 10.5px; fill: var(--tx-4); text-anchor: middle; pointer-events: none; }
.node.dim { opacity: 0.32; }
.node.core .glyph { fill: var(--cool); }

/* detail panel */
.map-panel {
  border: 1px solid var(--line); border-radius: 20px;
  background: linear-gradient(180deg, var(--card), var(--ink-800));
  padding: 30px 28px; position: relative; overflow: hidden;
  display: flex; flex-direction: column;
}
.map-panel .ribbon { position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--cool), var(--gold)); opacity: 0.8; }
.mp-tag {
  display: inline-flex; align-items: center; gap: 7px; align-self: flex-start;
  font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.04em;
  color: var(--tx-3); border: 1px solid var(--line); border-radius: 999px; padding: 4px 11px; margin-bottom: 18px;
}
.mp-tag .d { width: 6px; height: 6px; border-radius: 50%; background: var(--cool); }
.map-panel h3 { font-family: var(--serif); font-weight: 500; font-size: 1.6rem; color: #fff; line-height: 1.12; margin-bottom: 6px; }
.map-panel .mp-kicker { font-size: 0.82rem; color: var(--gold); font-weight: 600; margin-bottom: 16px; letter-spacing: 0.01em; }
.map-panel .mp-body { color: var(--tx-2); font-size: 0.96rem; line-height: 1.62; }
.map-panel .mp-body p + p { margin-top: 12px; }
.mp-foot { margin-top: auto; padding-top: 22px; }
.mp-status { display: flex; align-items: center; gap: 9px; font-size: 0.82rem; color: var(--tx-2); margin-bottom: 16px; }
.mp-status .pill { width: 9px; height: 9px; border-radius: 50%; }
.mp-lives {
  display: flex; align-items: center; gap: 10px; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,0.02);
  font-size: 0.84rem; color: var(--tx-2);
}
.mp-lives .home { font-weight: 700; color: var(--tx); }
.mp-lives a { color: var(--cool); font-weight: 600; }
.mp-lives .ico { font-size: 1rem; }
.map-panel .mp-empty { color: var(--tx-3); font-size: 0.96rem; }
.map-panel.swap .mp-swap { animation: panelIn 0.4s var(--ease); }
@keyframes panelIn { from { transform: translateY(10px); } to { transform: none; } }

/* ---------- Library / leafing ---------- */
.library { background: linear-gradient(180deg, var(--ink-850), #080f1c); }
.lib-feature {
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 0;
  border: 1px solid var(--line); border-radius: 20px; overflow: hidden;
  background: linear-gradient(180deg, var(--card), var(--ink-800));
  margin-bottom: 44px; min-height: 320px; position: relative;
}
.lf-side {
  background:
    radial-gradient(120% 100% at 0% 0%, rgba(124,79,120,0.22), transparent 60%),
    linear-gradient(160deg, #1a1322, #14101c);
  border-right: 1px solid var(--line);
  padding: 38px 36px; display: flex; flex-direction: column; justify-content: space-between;
  position: relative;
}
.lf-kind { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--plum); }
.lf-side h3 { font-family: var(--serif); font-weight: 500; font-size: clamp(1.6rem, 2.6vw, 2.3rem); line-height: 1.12; color: #fff; margin: 16px 0; }
.lf-side h3 em { font-style: italic; color: var(--plum); }
.lf-teaser { color: var(--tx-2); font-size: 1rem; line-height: 1.6; }
.lf-meta { display: flex; align-items: center; gap: 14px; font-size: 0.8rem; color: var(--tx-4); margin-top: 22px; flex-wrap: wrap; }
.lf-meta .read { color: var(--gold); font-weight: 600; white-space: nowrap; }
.lf-nav {
  padding: 24px 32px; display: flex; align-items: center; justify-content: space-between;
}
.lf-pages { font-family: var(--mono); font-size: 0.8rem; color: var(--tx-3); }
.lf-pages b { color: var(--gold); }
.lf-arrows { display: flex; gap: 10px; }
.lf-btn {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line);
  background: rgba(255,255,255,0.02); color: var(--tx-2); cursor: pointer;
  display: grid; place-items: center; font-size: 1.1rem;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease), background 0.2s var(--ease), transform 0.2s var(--ease);
}
.lf-btn:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-2px); }
.lf-right { display: flex; flex-direction: column; }
.lf-spread { padding: 38px 36px; flex: 1; display: flex; flex-direction: column; }
.lf-spread .quote { font-family: var(--serif); font-style: italic; font-size: 1.18rem; line-height: 1.5; color: var(--tx); }
.lf-spread .quote::before { content: "\201C"; color: var(--plum); }
.lf-spread .quote::after { content: "\201D"; color: var(--plum); }
.lf-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: auto; padding-top: 24px; }
.lf-tags span { font-size: 0.72rem; color: var(--tx-3); border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; }
.leaf-anim { animation: leaf 0.45s var(--ease); transform-origin: left center; }
@keyframes leaf { from { transform: translateX(16px) rotateY(-6deg); } to { transform: none; } }

/* filter + grid */
.lib-controls { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 26px; flex-wrap: wrap; }
.lib-filters { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  font-family: var(--sans); font-size: 0.84rem; font-weight: 500;
  padding: 7px 15px; border-radius: 999px; cursor: pointer;
  background: rgba(255,255,255,0.03); color: var(--tx-2); border: 1px solid var(--line);
  transition: all 0.18s var(--ease); user-select: none;
}
.chip:hover { color: var(--tx); border-color: var(--tx-3); }
.chip.active { background: var(--gold); color: #1a1208; border-color: var(--gold); font-weight: 600; }
.lib-count { font-size: 0.84rem; color: var(--tx-4); font-family: var(--mono); }

.lib-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.lib-card {
  border: 1px solid var(--line); border-radius: 16px; padding: 24px 22px;
  background: linear-gradient(180deg, var(--card), var(--ink-800));
  cursor: pointer; position: relative; overflow: hidden;
  transition: transform 0.22s var(--ease), border-color 0.22s var(--ease), box-shadow 0.25s var(--ease);
  display: flex; flex-direction: column; min-height: 210px;
}
.lib-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--accentc, var(--gold)); opacity: 0; transition: opacity 0.22s var(--ease); }
.lib-card:hover { transform: translateY(-4px); border-color: var(--tx-3); box-shadow: 0 22px 50px rgba(0,0,0,0.5); }
.lib-card:hover::before { opacity: 1; }
.lc-kind { display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accentc, var(--gold)); margin-bottom: 14px; }
.lc-kind .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accentc, var(--gold)); }
.lib-card h4 { font-family: var(--serif); font-weight: 500; font-size: 1.18rem; line-height: 1.22; color: #fff; margin-bottom: 10px; }
.lib-card p { font-size: 0.88rem; color: var(--tx-3); line-height: 1.55; }
.lc-foot { margin-top: auto; padding-top: 18px; display: flex; align-items: center; justify-content: space-between; font-size: 0.76rem; color: var(--tx-4); }
.lc-foot .go { color: var(--accentc, var(--gold)); font-weight: 600; opacity: 0; transform: translateX(-4px); transition: all 0.22s var(--ease); }
.lib-card:hover .lc-foot .go { opacity: 1; transform: none; }
.lib-card.hide { display: none; }

/* ---------- Partition / where things live ---------- */
.partition-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.part-card {
  border: 1px solid var(--line); border-radius: 18px; padding: 32px 28px;
  background: linear-gradient(180deg, var(--card), var(--ink-800));
  position: relative; overflow: hidden;
  transition: transform 0.22s var(--ease), border-color 0.22s var(--ease);
}
.part-card:hover { transform: translateY(-4px); }
.part-card .top { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.part-card .dot { width: 11px; height: 11px; border-radius: 50%; }
.part-card .url { font-family: var(--mono); font-size: 0.84rem; font-weight: 600; }
.part-card .role { font-family: var(--sans); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--tx-4); margin-bottom: 10px; }
.part-card h3 { font-family: var(--serif); font-weight: 500; font-size: 1.45rem; color: #fff; margin-bottom: 12px; line-height: 1.15; }
.part-card p { font-size: 0.92rem; color: var(--tx-2); line-height: 1.6; }
.part-card ul { list-style: none; margin-top: 16px; display: flex; flex-direction: column; gap: 8px; }
.part-card li { font-size: 0.86rem; color: var(--tx-3); padding-left: 18px; position: relative; }
.part-card li::before { content: "→"; position: absolute; left: 0; color: var(--cool); }
.part-card.you { border-color: rgba(52,224,216,0.4); box-shadow: 0 0 0 1px rgba(52,224,216,0.12), 0 24px 60px rgba(0,0,0,0.4); }
.part-card .here { position: absolute; top: 18px; right: 18px; font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--cool); border: 1px solid rgba(52,224,216,0.4); border-radius: 999px; padding: 3px 9px; }

/* ---------- Contact / footer ---------- */
.coda { padding: 100px 0 0; }
.coda-inner {
  border: 1px solid var(--line); border-radius: 24px; padding: 64px 48px; text-align: center;
  background:
    radial-gradient(90% 140% at 50% 0%, rgba(52,224,216,0.10), transparent 60%),
    linear-gradient(180deg, var(--card), var(--ink-850));
}
.coda h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(2rem, 4vw, 3.1rem); color: #fff; line-height: 1.08; margin-bottom: 18px; }
.coda h2 em { font-style: italic; color: var(--cool); }
.coda p { color: var(--tx-2); max-width: 52ch; margin: 0 auto 30px; font-size: 1.05rem; }
.coda-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.footer { padding: 60px 0 50px; border-top: 1px solid var(--line-soft); margin-top: 90px; }
.footer-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-brand { font-family: var(--serif); font-size: 1.05rem; color: var(--tx-2); }
.footer-brand b { color: var(--tx); font-weight: 600; }
.footer-links { display: flex; gap: 22px; font-size: 0.86rem; color: var(--tx-3); }
.footer-links a:hover { color: var(--cool); }
.footer-fine { margin-top: 24px; font-size: 0.78rem; color: var(--tx-4); }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .scroll-cue .line { animation: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-portrait { max-width: 360px; }
  .map-wrap { grid-template-columns: 1fr; }
  .map-stage { min-height: 460px; }
  .lib-feature { grid-template-columns: 1fr; }
  .lf-side { border-right: none; border-bottom: 1px solid var(--line); }
  .lib-grid { grid-template-columns: repeat(2, 1fr); }
  .partition-grid { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .wrap { padding: 0 20px; }
  .nav-links { display: none; }
  .nav-toggle { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 9px; cursor: pointer; gap: 4px; }
  .nav-toggle .bar { width: 18px; height: 2px; background: var(--tx-2); display: block; }
  .lib-grid { grid-template-columns: 1fr; }
  .section { padding: 76px 0; }
  .coda-inner { padding: 44px 24px; }
}
