/* ============================================================
   tommyplee.ai  ·  TPL AI Notebook
   Shared design system
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  --ink: #111318;
  --ivory: #F5F1E8;
  --cobalt: #315CFF;
  --cobalt-press: #234ae0;
  --gray: #A8ADB7;
  --white: #FFFFFF;

  --ink-70: #45494f;      /* secondary text, AA on ivory/white */
  --ink-45: #63676e;      /* tertiary / small labels, AA on ivory/white */
  --line: rgba(17, 19, 24, 0.12);
  --line-soft: rgba(17, 19, 24, 0.07);
  --surface: #ffffff;
  --surface-2: #FBFAF5;

  --serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;

  --wrap: 1120px;
  --read: 680px;
  --radius: 14px;
  --radius-sm: 10px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --shadow: 0 1px 2px rgba(17,19,24,0.04), 0 12px 32px -12px rgba(17,19,24,0.14);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; scroll-behavior: smooth; }
html:focus-within { scroll-padding-top: 96px; }

body {
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  letter-spacing: -0.006em;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

::selection { background: rgba(49, 92, 255, 0.18); }

/* ---------- Layout ---------- */
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }
.section { padding: 92px 0; }
.section-tight { padding: 64px 0; }

.eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-45);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: '';
  width: 7px; height: 7px;
  background: var(--cobalt);
  border-radius: 2px;
  transform: rotate(0deg);
}

.h-serif { font-family: var(--serif); font-weight: 600; letter-spacing: -0.02em; line-height: 1.04; color: var(--ink); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--sans); font-size: 15px; font-weight: 600;
  letter-spacing: -0.01em;
  padding: 13px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: transform .18s var(--ease), background .18s var(--ease), border-color .18s var(--ease), color .18s var(--ease);
  white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; }
.btn-primary { background: var(--cobalt); color: #fff; }
.btn-primary:hover { background: var(--cobalt-press); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); transform: translateY(-2px); }
.btn-dark { background: var(--ink); color: var(--ivory); }
.btn-dark:hover { transform: translateY(-2px); background: #000; }
.btn .arw { transition: transform .2s var(--ease); }
.btn:hover .arw { transform: translateX(3px); }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 60;
  background: rgba(245, 241, 232, 0.82);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s var(--ease), background .25s var(--ease);
}
.nav.scrolled { border-bottom-color: var(--line-soft); }
.nav-inner {
  max-width: var(--wrap); margin: 0 auto; padding: 14px 28px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.brand img { height: 30px; width: auto; }
.brand .wm {
  font-family: var(--sans); font-weight: 600; font-size: 18px;
  letter-spacing: -0.02em; color: var(--ink);
}
.brand .wm b { font-weight: 600; }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
  font-size: 15px; font-weight: 500; color: var(--ink-70);
  text-decoration: none; padding: 8px 14px; border-radius: 8px;
  transition: color .15s var(--ease), background .15s var(--ease);
}
.nav-links a:hover { color: var(--ink); background: rgba(17,19,24,0.05); }
.nav-links a.active { color: var(--ink); }
.nav-links a.active::after {
  content: ''; display: block; height: 2px; width: 18px;
  background: var(--cobalt); border-radius: 2px; margin: 3px auto 0;
}
.nav-cta { margin-left: 8px; }
.nav-links a.nav-cta, .nav-links a.nav-cta:hover { color: #fff; background: var(--cobalt); }
.nav-links a.nav-cta:hover { background: var(--cobalt-press); }
.nav-toggle {
  display: none; background: none; border: 1px solid var(--line);
  border-radius: 9px; width: 42px; height: 42px; cursor: pointer;
  align-items: center; justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ''; display: block; width: 18px; height: 2px; background: var(--ink);
  border-radius: 2px; transition: transform .2s var(--ease), opacity .2s var(--ease);
}
.nav-toggle span::before { position: absolute; transform: translateY(-6px); }
.nav-toggle span::after { position: absolute; transform: translateY(6px); }
.nav.open .nav-toggle span { background: transparent; }
.nav.open .nav-toggle span::before { transform: rotate(45deg); }
.nav.open .nav-toggle span::after { transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 84px 0 76px; overflow: hidden; }
.hero-grid {
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: center;
}
.hero-kicker { margin-bottom: 26px; }
.hero h1 {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(44px, 6.4vw, 82px); line-height: 0.98;
  letter-spacing: -0.033em; color: var(--ink);
  margin-bottom: 26px;
}
.hero h1 em { font-style: italic; font-weight: 500; color: var(--cobalt); }
.hero-sub {
  font-size: 20px; line-height: 1.55; color: var(--ink-70);
  max-width: 30em; margin-bottom: 34px;
}
.hero-sub b { color: var(--ink); font-weight: 600; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* node graphic */
.hero-visual { position: relative; aspect-ratio: 1 / 1; }
.hero-visual svg { width: 100%; height: 100%; overflow: visible; }
.node-line { stroke: var(--line); stroke-width: 1.4; }
.node-line.live { stroke: rgba(49,92,255,0.5); }
.node-dot { fill: var(--ink); }
.node-dot.accent { fill: var(--cobalt); }
.node-ring { fill: none; stroke: var(--cobalt); stroke-width: 1.4; opacity: 0.5; }
.node-label {
  font-family: var(--sans); font-size: 11px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase; fill: var(--ink-45);
}
.pulse { animation: pulse 3.4s var(--ease) infinite; transform-box: fill-box; transform-origin: center; }
.pulse.d2 { animation-delay: .9s; } .pulse.d3 { animation-delay: 1.8s; }
@keyframes pulse { 0%,100%{opacity:.35} 50%{opacity:1} }
.dash { stroke-dasharray: 5 6; animation: flow 5s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -44; } }

/* ---------- Mission band (fund the mission + RG promo) ---------- */
.mission-band { position: relative; background: var(--surface); border: 1px solid var(--line-soft); border-radius: 20px; padding: 44px 48px; display: grid; grid-template-columns: 1.35fr 1fr; gap: 44px; align-items: center; overflow: hidden; }
.mission-band::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--cobalt); }
.mb-left .eyebrow { margin-bottom: 16px; }
.mb-left h2 { font-family: var(--serif); font-size: clamp(26px, 3.4vw, 38px); font-weight: 600; letter-spacing: -0.025em; line-height: 1.08; margin-bottom: 16px; color: var(--ink); }
.mb-left h2 em { font-style: italic; color: var(--cobalt); font-weight: 500; }
.mb-left p { font-size: 17.5px; color: var(--ink-70); line-height: 1.6; margin-bottom: 24px; max-width: 40em; }
.mb-left p b { color: var(--ink); font-weight: 600; }
.mb-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.mb-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 20px; padding-left: 36px; border-left: 1px solid var(--line-soft); }
.mb-stats .num { display: block; font-family: var(--serif); font-size: 46px; font-weight: 600; color: var(--cobalt); line-height: 1; letter-spacing: -0.02em; }
.mb-stats .lbl { display: block; font-size: 13px; color: var(--ink-45); margin-top: 7px; letter-spacing: 0.02em; }
.mb-stats .src { grid-column: 1 / -1; font-size: 12px; color: var(--ink-45); }
@media (max-width: 820px) {
  .mission-band { grid-template-columns: 1fr; gap: 26px; padding: 32px 26px; }
  .mb-stats { padding-left: 0; border-left: none; border-top: 1px solid var(--line-soft); padding-top: 26px; }
}

/* ---------- Where Resource Global works ---------- */
.reach { display: block; }
.reach-map { position: relative; width: 100%; max-width: 1000px; margin: 0 auto 44px; }
.reach-map img { width: 100%; display: block; }
.mappin { position: absolute; width: 11px; height: 11px; transform: translate(-50%, -50%); z-index: 2; }
.mappin::before { content: ''; position: absolute; left: 50%; top: 50%; width: 10px; height: 10px; transform: translate(-50%, -50%); border-radius: 50%; background: var(--cobalt); box-shadow: 0 0 0 0 rgba(49,92,255,0.4); animation: pinpulse 2.8s ease-out infinite; }
.mappin::after { content: ''; position: absolute; left: 50%; top: 50%; width: 9px; height: 9px; transform: translate(-50%, -50%); border-radius: 50%; background: var(--cobalt); border: 1.5px solid #fff; box-shadow: 0 1px 3px rgba(0,0,0,0.25); }
.mappin .pl { position: absolute; bottom: 155%; left: 50%; transform: translateX(-50%); white-space: nowrap; font-family: var(--sans); font-size: 11px; font-weight: 600; color: var(--ink); background: var(--surface); border: 1px solid var(--line-soft); padding: 2px 8px; border-radius: 7px; opacity: 0; transition: opacity .15s var(--ease); pointer-events: none; box-shadow: var(--shadow); z-index: 3; }
.mappin:hover { z-index: 5; }
.mappin:hover .pl { opacity: 1; }
@keyframes pinpulse { 0% { box-shadow: 0 0 0 0 rgba(49,92,255,0.4); } 70% { box-shadow: 0 0 0 11px rgba(49,92,255,0); } 100% { box-shadow: 0 0 0 0 rgba(49,92,255,0); } }
.reach-globe svg { width: 100%; max-width: 320px; margin: 0 auto; display: block; }
.globe-outline { fill: none; stroke: var(--ink); stroke-width: 1.4; opacity: 0.22; }
.globe-line { fill: none; stroke: var(--line); stroke-width: 1; }
.globe-dot { fill: var(--cobalt); }
.globe-dot.pulse2 { animation: gpulse 3s var(--ease) infinite; transform-box: fill-box; transform-origin: center; }
@keyframes gpulse { 0%,100%{opacity:.5} 50%{opacity:1} }
.reach-lists { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px 30px; max-width: 1000px; margin: 0 auto; }
.reach-region h4 { font-family: var(--sans); font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-45); margin-bottom: 12px; padding-bottom: 9px; border-bottom: 1px solid var(--line-soft); }
.reach-region ul { list-style: none; margin: 0; padding: 0; }
.reach-region li { font-size: 15.5px; color: var(--ink); padding: 5px 0; display: flex; align-items: center; gap: 9px; }
.reach-region li .pin { width: 6px; height: 6px; border-radius: 50%; background: var(--cobalt); flex-shrink: 0; }
.reach-region li .soon { font-size: 10px; font-weight: 700; letter-spacing: 0.04em; color: var(--cobalt); background: rgba(49,92,255,0.1); padding: 2px 7px; border-radius: 999px; }
@media (max-width: 820px) { .reach-lists { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .reach-lists { grid-template-columns: 1fr; } }

/* ---------- Compact intro band (content-first hero) ---------- */
.intro { padding: 56px 0 20px; }
.intro .eyebrow { margin-bottom: 18px; }
.intro h1 { font-family: var(--serif); font-weight: 600; font-size: clamp(38px, 5.2vw, 62px); line-height: 1.0; letter-spacing: -0.03em; color: var(--ink); margin-bottom: 18px; }
.intro h1 em { font-style: italic; font-weight: 500; color: var(--cobalt); }
.intro-sub { font-size: 19px; line-height: 1.5; color: var(--ink-70); max-width: 34em; margin-bottom: 26px; }
.intro-sub b { color: var(--ink); font-weight: 600; }
.intro-actions { display: flex; flex-wrap: wrap; gap: 13px; align-items: center; }
.intro-actions .textlink { font-size: 15px; font-weight: 600; color: var(--cobalt); text-decoration: none; display: inline-flex; align-items: center; gap: 7px; }
.intro-actions .textlink .arw { transition: transform .2s var(--ease); }
.intro-actions .textlink:hover .arw { transform: translateX(4px); }

/* section rule label, ESPN-style clear divider */
.rule-label { display: flex; align-items: center; gap: 16px; margin-bottom: 26px; }
.rule-label h2 { font-family: var(--sans); font-size: 14px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink); white-space: nowrap; }
.rule-label .line { flex: 1; height: 1px; background: var(--line); }
.rule-label .more-link { font-size: 13px; font-weight: 600; color: var(--cobalt); text-decoration: none; white-space: nowrap; }

/* NEW badge + highlighted card state */
.new-badge { display: inline-flex; align-items: center; gap: 6px; font-family: var(--sans); font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #fff; background: var(--cobalt); padding: 3px 9px; border-radius: 999px; }
.new-badge.on-dark { background: var(--cobalt); }
.issue-card.is-new { border-color: rgba(49,92,255,0.5); box-shadow: 0 0 0 1px rgba(49,92,255,0.12); }
.issue-card .top .newtag { font-family: var(--sans); font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #fff; background: var(--cobalt); padding: 3px 8px; border-radius: 999px; margin-left: auto; }

/* readable tags on the dark featured lead */
.featured .tag { background: rgba(255,255,255,0.12); color: rgba(245,241,232,0.92); }

/* About strip (compact, with caricature) */
.about-strip { display: grid; grid-template-columns: 260px 1fr; gap: 40px; align-items: center; background: var(--surface); border: 1px solid var(--line-soft); border-radius: 20px; padding: 34px 38px; }
.about-strip .mug { position: relative; aspect-ratio: 1/1; border-radius: 16px; overflow: hidden; background: linear-gradient(160deg, #ece6d7, #f5f1e8); border: 1px solid var(--line-soft); display: flex; align-items: center; justify-content: center; }
.about-strip .mug img.photo { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.about-strip .mug .ph-fallback { text-align: center; color: var(--ink-45); font-size: 12px; padding: 20px; }
.about-strip .mug .ph-fallback img { width: 64px; margin: 0 auto 10px; }
.about-strip h3 { font-family: var(--serif); font-size: clamp(24px, 3vw, 32px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; margin-bottom: 12px; }
.about-strip h3 em { font-style: italic; color: var(--cobalt); font-weight: 500; }
.about-strip p { font-size: 16.5px; color: var(--ink-70); line-height: 1.55; margin-bottom: 18px; max-width: 42em; }
.about-strip p b { color: var(--ink); font-weight: 600; }
@media (max-width: 760px){ .about-strip { grid-template-columns: 1fr; gap: 24px; padding: 28px 24px; } .about-strip .mug { max-width: 200px; } }

/* ---------- What I Do (Seven efforts radial, from the deck) ---------- */
.work-tagline { text-align: center; font-family: var(--serif); font-style: italic; font-size: clamp(20px, 2.6vw, 26px); color: var(--ink); margin: 2px 0 44px; }
.efforts-stage { position: relative; width: 100%; max-width: 1000px; margin: 0 auto; height: 760px; }
.efforts-lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.efforts-lines line { stroke: var(--line); stroke-width: 1.3; }
.efforts-lines circle { fill: var(--cobalt); }
.efforts-center { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 224px; z-index: 3; }
.efforts-center .frame { border-radius: 18px; overflow: hidden; border: 1px solid var(--line-soft); box-shadow: var(--shadow); background: #b7aeb0; aspect-ratio: 377/533; display: flex; align-items: center; justify-content: center; }
.efforts-center .frame img { width: 100%; height: 100%; object-fit: cover; }
.efforts-center .ph-fallback { text-align: center; color: var(--ink-45); font-size: 11px; padding: 16px; }
.efforts-center .ph-fallback img { width: 56px; margin: 0 auto 8px; }
.effort { position: absolute; width: 250px; z-index: 4; text-decoration: none; color: inherit; }
.effort .n { font-family: var(--serif); font-style: italic; font-weight: 700; font-size: 17px; color: var(--cobalt); letter-spacing: 0.06em; }
.effort h3 { font-family: var(--serif); font-size: 20px; font-weight: 600; line-height: 1.14; letter-spacing: -0.015em; margin: 3px 0 7px; color: var(--ink); transition: color .15s var(--ease); }
.effort .cat { font-family: var(--sans); font-size: 10px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-45); margin-bottom: 9px; }
.effort p { font-family: var(--sans); font-size: 14px; line-height: 1.45; color: var(--ink-70); margin: 0; }
.effort .ext { display: inline-flex; align-items: center; gap: 5px; margin-top: 9px; font-family: var(--sans); font-size: 12px; font-weight: 600; color: var(--cobalt); }
.effort .ext svg { width: 12px; height: 12px; }
a.effort:hover h3 { color: var(--cobalt); }
a.effort:hover .ext svg { transform: translate(2px,-2px); transition: transform .15s var(--ease); }
/* radial positions matching the deck */
.ef1 { left: 50%; top: 0;    transform: translateX(-50%); text-align: center; }
.ef2 { left: 70%; top: 15%;  text-align: left; }
.ef3 { left: 73%; top: 45%;  text-align: left; }
.ef4 { left: 56%; top: 80%;  text-align: left; }
.ef5 { left: 6%;  top: 80%;  text-align: right; }
.ef6 { left: 0;   top: 45%;  text-align: right; }
.ef7 { left: 3%;  top: 15%;  text-align: right; }
@media (max-width: 940px) {
  .efforts-stage { height: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 640px; }
  .efforts-lines { display: none; }
  .efforts-center { position: static; transform: none; grid-column: 1 / -1; width: 168px; margin: 0 auto 8px; }
  .effort { position: static; transform: none; width: auto; text-align: left !important; background: var(--surface); border: 1px solid var(--line-soft); border-radius: 12px; padding: 18px 20px; }
}
@media (max-width: 520px) { .efforts-stage { grid-template-columns: 1fr; } }

/* ESPN-style notebook: lead story + Top Headlines rail */
.notebook-layout { display: grid; grid-template-columns: 1.55fr 1fr; gap: 26px; align-items: start; }
.notebook-layout > * { min-width: 0; }
.notebook-layout .featured { margin: 0; }
/* featured carousel: scroll through the 3 latest */
.fc-wrap { min-width: 0; }
.featured-carousel { position: relative; overflow: hidden; border-radius: 22px; min-width: 0; }
.fc-track { display: flex; align-items: stretch; transition: transform .5s var(--ease); min-width: 0; }
.fc-track > .featured { flex: 0 0 100%; width: 100%; min-width: 0; border-radius: 0; }
.fc-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,0.14); border: 1px solid rgba(255,255,255,0.28); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 4; -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); transition: background .15s var(--ease); }
.fc-btn:hover { background: rgba(255,255,255,0.3); }
.fc-btn svg { width: 20px; height: 20px; }
.fc-prev { left: 14px; } .fc-next { right: 14px; }
.fc-dots { display: flex; gap: 8px; margin-top: 14px; padding-left: 4px; }
.fc-dot { width: 8px; height: 8px; border-radius: 999px; background: rgba(17,19,24,0.2); border: none; padding: 0; cursor: pointer; transition: background .2s var(--ease), width .2s var(--ease); }
.fc-dot.active { background: var(--cobalt); width: 22px; }
@media (max-width: 940px) { .fc-btn { width: 38px; height: 38px; } }
@media (prefers-reduced-motion: reduce) { .fc-track { transition: none; } }
.headlines { background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 2px 24px 10px; }
.headlines-head { display: flex; align-items: center; gap: 10px; padding: 18px 0 14px; border-bottom: 2px solid var(--ink); }
.headlines-head::before { content: ''; width: 7px; height: 7px; background: var(--cobalt); border-radius: 2px; }
.headlines-head h3 { font-family: var(--sans); font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink); }
.headline { display: block; padding: 15px 0; border-bottom: 1px solid var(--line-soft); text-decoration: none; color: inherit; transition: padding-left .18s var(--ease); }
.headline:last-child { border-bottom: none; }
.headline:hover { padding-left: 5px; }
.headline .hmeta { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 9px; font-family: var(--sans); font-size: 11px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink-45); margin-bottom: 6px; }
.headline .hmeta > span { white-space: nowrap; }
.headline .hmeta .num { color: var(--cobalt); font-family: var(--serif); font-style: italic; font-size: 16px; letter-spacing: -0.02em; text-transform: none; }
.headline .hmeta .newtag { color: #fff; background: var(--cobalt); font-size: 9px; font-weight: 700; letter-spacing: 0.08em; padding: 2px 6px; border-radius: 999px; }
.headline .htitle { font-family: var(--serif); font-size: 17px; font-weight: 600; line-height: 1.24; letter-spacing: -0.01em; color: var(--ink); }
.headline:hover .htitle { color: var(--cobalt); }
@media (max-width: 940px) { .notebook-layout { grid-template-columns: 1fr; } }

/* even 4-up notebook grid (no orphan card) */
.issue-grid.four { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) { .issue-grid.four { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .issue-grid.four { grid-template-columns: 1fr; } }

/* Get in touch */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-card { display: flex; align-items: center; gap: 18px; background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 24px 26px; text-decoration: none; color: inherit; transition: transform .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease); }
.contact-card:hover { transform: translateY(-3px); border-color: var(--cobalt); box-shadow: var(--shadow); }
.contact-card .ci { width: 48px; height: 48px; border-radius: 12px; background: rgba(49,92,255,0.1); color: var(--cobalt); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-card .ci svg { width: 22px; height: 22px; }
.contact-card h3 { font-family: var(--serif); font-size: 20px; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 2px; color: var(--ink); }
.contact-card p { font-family: var(--sans); font-size: 14.5px; color: var(--ink-70); }
.contact-card .go { margin-left: auto; color: var(--cobalt); flex-shrink: 0; transition: transform .2s var(--ease); }
.contact-card:hover .go { transform: translateX(4px); }
@media (max-width: 640px) { .contact-grid { grid-template-columns: 1fr; } }

/* footer ventures column links (external) */
.footer .fcol a[target="_blank"]::after { content: '↗'; font-size: 11px; margin-left: 5px; color: var(--ink-45); }

/* ---------- Section heading block ---------- */
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 40px; flex-wrap: wrap; }
.sec-head h2 { font-family: var(--serif); font-weight: 600; font-size: clamp(28px, 3.6vw, 42px); letter-spacing: -0.025em; line-height: 1.05; }
.sec-head p { color: var(--ink-70); max-width: 30em; margin-top: 10px; }
.sec-head .eyebrow { margin-bottom: 14px; }

/* ---------- Exploring cards ---------- */
.explore-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.explore-card {
  background: var(--surface); border: 1px solid var(--line-soft);
  border-radius: var(--radius); padding: 30px 26px 28px;
  text-decoration: none; color: inherit; display: flex; flex-direction: column;
  transition: transform .22s var(--ease), border-color .22s var(--ease), box-shadow .22s var(--ease);
  position: relative;
}
.explore-card:hover { transform: translateY(-4px); border-color: var(--line); box-shadow: var(--shadow); }
.explore-glyph { width: 40px; height: 40px; margin-bottom: 22px; color: var(--cobalt); }
.explore-card h3 { font-family: var(--serif); font-size: 22px; font-weight: 600; letter-spacing: -0.015em; margin-bottom: 10px; }
.explore-card p { font-size: 15.5px; color: var(--ink-70); line-height: 1.55; }
.explore-card .go { margin-top: 18px; font-size: 13px; font-weight: 600; letter-spacing: 0.02em; color: var(--cobalt); display: inline-flex; align-items: center; gap: 6px; }
.explore-card .go .arw { transition: transform .2s var(--ease); }
.explore-card:hover .go .arw { transform: translateX(4px); }

/* ---------- Featured issue ---------- */
.featured {
  position: relative; overflow: hidden;
  background: var(--ink); color: var(--ivory);
  border-radius: 22px; padding: 56px 52px;
}
.featured .bignum {
  position: absolute; right: -18px; top: -46px;
  font-family: var(--serif); font-weight: 700; font-style: italic;
  font-size: 320px; line-height: 1; color: rgba(255,255,255,0.05);
  letter-spacing: -0.04em; pointer-events: none; user-select: none;
}
.featured .inner { position: relative; max-width: 640px; }
.featured .meta { display: flex; gap: 16px; align-items: center; font-size: 13px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--gray); margin-bottom: 22px; }
.featured .meta .num { color: var(--cobalt); }
.featured .meta .dot { width: 4px; height: 4px; border-radius: 50%; background: rgba(255,255,255,0.3); }
.featured h3 { font-family: var(--serif); font-weight: 600; font-size: clamp(30px, 4vw, 46px); line-height: 1.04; letter-spacing: -0.025em; color: #fff; margin-bottom: 18px; }
.featured p { font-size: 17.5px; line-height: 1.6; color: rgba(245,241,232,0.82); margin-bottom: 30px; max-width: 34em; }
.featured .row { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.featured .rt { font-size: 13px; color: var(--gray); }
.on-dark.btn-primary:hover { background: #fff; color: var(--ink); }

/* ---------- Issue grid ---------- */
.issue-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.issue-card {
  display: flex; flex-direction: column; text-decoration: none; color: inherit;
  background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius);
  padding: 26px 24px; transition: transform .22s var(--ease), border-color .22s var(--ease), box-shadow .22s var(--ease);
}
.issue-card:hover { transform: translateY(-4px); border-color: var(--cobalt); box-shadow: var(--shadow); }
.issue-card .top { display: flex; align-items: baseline; gap: 12px; font-size: 12px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink-45); margin-bottom: 16px; }
.issue-card .top .num { color: var(--cobalt); font-family: var(--serif); font-style: italic; font-size: 20px; letter-spacing: -0.02em; text-transform: none; }
.issue-card h3 { font-family: var(--serif); font-size: 21px; font-weight: 600; letter-spacing: -0.015em; line-height: 1.2; margin-bottom: 10px; }
.issue-card .sum { font-size: 15px; color: var(--ink-70); line-height: 1.5; margin-bottom: 18px; flex: 1; }
.tags { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 16px; }
.tag { font-size: 11px; font-weight: 600; letter-spacing: 0.04em; color: var(--ink-70); background: rgba(17,19,24,0.05); padding: 4px 10px; border-radius: 999px; }
.issue-card .foot { display: flex; align-items: center; justify-content: space-between; padding-top: 14px; border-top: 1px solid var(--line-soft); font-size: 13px; color: var(--ink-45); }
.issue-card .foot .more { color: var(--cobalt); font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.issue-card:hover .foot .more .arw { transform: translateX(4px); }
.foot .more .arw { transition: transform .2s var(--ease); }

/* start-here callout */
.starthere { display: flex; align-items: center; gap: 18px; margin-top: 22px; padding: 20px 26px; background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius); text-decoration: none; color: var(--ink); transition: border-color .2s var(--ease), transform .2s var(--ease); }
.starthere:hover { border-color: var(--cobalt); transform: translateY(-2px); }
.starthere .sh-num { font-family: var(--serif); font-style: italic; font-weight: 700; font-size: 34px; color: var(--cobalt); line-height: 1; }
.starthere .sh-body { font-size: 16px; color: var(--ink-70); }
.starthere .sh-body b { color: var(--ink); font-weight: 600; }
.starthere .arw { margin-left: auto; color: var(--cobalt); flex-shrink: 0; transition: transform .2s var(--ease); }
.starthere:hover .arw { transform: translateX(4px); }
@media (max-width: 520px){ .starthere { flex-wrap: wrap; gap: 12px; } .starthere .arw { margin-left: 0; } }

/* ---------- Projects ---------- */
.proj-band { background: var(--surface-2); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.proj-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.proj-card {
  background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius);
  padding: 28px 26px; text-decoration: none; color: inherit;
  display: flex; flex-direction: column;
  transition: transform .22s var(--ease), border-color .22s var(--ease), box-shadow .22s var(--ease);
}
.proj-card:hover { transform: translateY(-4px); border-color: var(--line); box-shadow: var(--shadow); }
/* visual cover header for project cards */
.proj-card.has-cover { padding: 0; overflow: hidden; }
.proj-cover { position: relative; height: 132px; padding: 18px 22px; display: flex; align-items: flex-end; overflow: hidden; }
.proj-cover.c1 { background: linear-gradient(135deg, #315CFF 0%, #1f3bb0 100%); }
.proj-cover.c2 { background: linear-gradient(135deg, #1b2233 0%, #111318 100%); }
.proj-cover.c3 { background: linear-gradient(135deg, #4a5468 0%, #2c3346 100%); }
.proj-cover.c4 { background: linear-gradient(135deg, #315CFF 0%, #111318 100%); }
.proj-cover .glyph { position: absolute; right: -16px; top: -20px; width: 132px; height: 132px; color: rgba(255,255,255,0.16); }
.proj-cover .pcat { position: relative; z-index: 2; font-family: var(--sans); font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.92); }
.proj-cover .status { position: absolute; top: 16px; right: 16px; z-index: 2; background: rgba(255,255,255,0.18); color: #fff; -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.proj-cover .status::before { background: #fff; }
.proj-cover .status.live::before { background: #74f0a6; }
.proj-cover .status.explore::before { background: #ffd86b; }
.proj-body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.proj-body h3 { font-family: var(--serif); font-size: 23px; font-weight: 600; letter-spacing: -0.015em; margin-bottom: 9px; }
.proj-body p { font-size: 15.5px; color: var(--ink-70); line-height: 1.55; flex: 1; }
.proj-body .plink { margin-top: 18px; font-size: 13px; font-weight: 600; color: var(--cobalt); display: inline-flex; align-items: center; gap: 6px; }
.proj-card.has-cover:hover .plink .arw { transform: translateX(4px); }
.proj-card .phead { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 14px; }
.proj-cat { font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-45); }
.status { font-size: 11px; font-weight: 600; letter-spacing: 0.04em; padding: 4px 10px; border-radius: 999px; display: inline-flex; align-items: center; gap: 6px; }
.status::before { content: ''; width: 6px; height: 6px; border-radius: 50%; }
.status.live { color: #1c7a4a; background: rgba(28,122,74,0.1); } .status.live::before { background: #1c9a58; }
.status.build { color: var(--cobalt); background: rgba(49,92,255,0.1); } .status.build::before { background: var(--cobalt); }
.status.explore { color: #8a6d1f; background: rgba(184,146,42,0.12); } .status.explore::before { background: #caa63a; }
.proj-card h3 { font-family: var(--serif); font-size: 23px; font-weight: 600; letter-spacing: -0.015em; margin-bottom: 9px; }
.proj-card p { font-size: 15.5px; color: var(--ink-70); line-height: 1.55; flex: 1; }
.proj-card .plink { margin-top: 18px; font-size: 13px; font-weight: 600; color: var(--cobalt); display: inline-flex; align-items: center; gap: 6px; }
.proj-card:hover .plink .arw { transform: translateX(4px); }
.plink .arw { transition: transform .2s var(--ease); }

/* ---------- About block ---------- */
.about-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 52px; align-items: center; }
.about-portrait { position: relative; }
.about-portrait .frame {
  position: relative; border-radius: 20px; overflow: hidden;
  background: linear-gradient(160deg, #ece6d7, #f5f1e8);
  border: 1px solid var(--line-soft); aspect-ratio: 4 / 5;
  display: flex; align-items: flex-end; justify-content: center;
}
.about-portrait .frame img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.about-portrait .badge {
  position: absolute; left: -14px; bottom: -14px; background: var(--cobalt); color: #fff;
  font-size: 12px; font-weight: 600; letter-spacing: 0.04em; padding: 10px 16px; border-radius: 12px;
  box-shadow: var(--shadow);
}
.about-portrait .ph-fallback { padding: 40px; text-align: center; color: var(--ink-45); font-size: 14px; }
.about-portrait .ph-fallback img { width: 88px; margin: 0 auto 16px; }
.about-copy h2, .about-copy h1 { font-family: var(--serif); font-weight: 600; font-size: clamp(28px, 3.8vw, 44px); letter-spacing: -0.025em; line-height: 1.05; margin-bottom: 22px; }
.about-copy h2 em, .about-copy h1 em { font-style: italic; color: var(--cobalt); font-weight: 500; }
.about-copy p { font-size: 18px; color: var(--ink-70); line-height: 1.62; margin-bottom: 20px; }
.about-copy p b { color: var(--ink); font-weight: 600; }

/* ---------- About page narrative ---------- */
.about-page { max-width: var(--read); margin: 0 auto; padding: 12px 28px 40px; }
.about-page .content h2:first-child { margin-top: 8px; }
.connect-card { margin-top: 52px; padding: 34px 32px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.connect-card h3 { font-family: var(--serif); font-size: 25px; font-weight: 600; letter-spacing: -0.015em; line-height: 1.2; margin-bottom: 12px; }
.connect-card p { font-family: var(--sans); font-size: 16px; color: var(--ink-70); line-height: 1.6; }
.connect-card p a { color: var(--cobalt); text-decoration: underline; text-underline-offset: 2px; }
.connect-actions { display: flex; gap: 12px; margin-top: 22px; flex-wrap: wrap; }

/* ---------- Subscribe ---------- */
.subscribe { background: var(--ink); color: var(--ivory); border-radius: 24px; padding: 64px 52px; text-align: center; position: relative; overflow: hidden; }
.subscribe .dotgrid { position: absolute; inset: 0; opacity: 0.5; pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,0.08) 1px, transparent 1px); background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 20%, transparent 72%);
  mask-image: radial-gradient(ellipse at center, #000 20%, transparent 72%); }
.subscribe .inner { position: relative; max-width: 560px; margin: 0 auto; }
.subscribe .eyebrow { color: var(--gray); justify-content: center; margin-bottom: 18px; }
.subscribe h2 { font-family: var(--serif); font-weight: 600; font-size: clamp(30px, 4.2vw, 48px); letter-spacing: -0.025em; color: #fff; margin-bottom: 16px; }
.subscribe p.lede { font-size: 18px; color: rgba(245,241,232,0.82); line-height: 1.55; margin-bottom: 30px; }
.subscribe-form { display: flex; gap: 10px; max-width: 460px; margin: 0 auto; }
.subscribe-form input[type=email] {
  flex: 1; font-family: var(--sans); font-size: 16px; color: #fff;
  background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.18);
  border-radius: 999px; padding: 14px 20px; outline: none; transition: border-color .18s var(--ease), background .18s var(--ease);
}
.subscribe-form input[type=email]::placeholder { color: rgba(245,241,232,0.5); }
.subscribe-form input[type=email]:focus { border-color: var(--cobalt); background: rgba(255,255,255,0.11); }
.subscribe-form .btn-primary[disabled] { opacity: 0.7; cursor: default; }
.subscribe .privacy { margin-top: 16px; font-size: 13px; color: var(--gray); }
.form-msg { margin-top: 18px; font-size: 15px; font-weight: 500; min-height: 1.2em; }
.form-msg.err { color: #ff9d9d; }
.form-msg.ok { color: #9fe6bd; }
.subscribe.light .form-msg.err { color: #c02626; }
.subscribe.light .form-msg.ok { color: #1c7a4a; }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

/* subscribe variant on light (issue endcap) */
.subscribe.light { background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
.subscribe.light h2 { color: var(--ink); }
.subscribe.light p.lede { color: var(--ink-70); }
.subscribe.light .eyebrow { color: var(--ink-45); }
.subscribe.light .dotgrid { background-image: radial-gradient(rgba(17,19,24,0.07) 1px, transparent 1px); }
.subscribe.light .subscribe-form input[type=email] { background: var(--surface-2); border-color: var(--line); color: var(--ink); }
.subscribe.light .subscribe-form input[type=email]::placeholder { color: var(--ink-45); }
.subscribe.light .privacy { color: var(--ink-45); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line-soft); padding: 64px 0 40px; }
.footer-top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.footer .brand img { height: 30px; margin-bottom: 16px; }
.footer .fstate { color: var(--ink-70); font-size: 15px; line-height: 1.55; max-width: 30em; }
.footer .fcol h4 { font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-45); margin-bottom: 16px; }
.footer .fcol a { display: block; color: var(--ink-70); text-decoration: none; font-size: 15px; margin-bottom: 11px; transition: color .15s var(--ease); }
.footer .fcol a:hover { color: var(--cobalt); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 26px; border-top: 1px solid var(--line-soft); flex-wrap: wrap; }
.footer-bottom .tag-line { font-family: var(--serif); font-style: italic; font-size: 16px; color: var(--ink); }
.footer-bottom .copy { font-size: 13px; color: var(--ink-45); }

/* ============================================================
   NOTEBOOK / ARTICLE pages
   ============================================================ */
.reading-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: var(--cobalt); z-index: 80; transition: width .1s linear; }

.pub-label { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-45); }
.pub-label img { height: 18px; }

.article { max-width: var(--read); margin: 0 auto; padding: 56px 28px 40px; }
.article-head { margin-bottom: 40px; }
.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; font-size: 13px; font-weight: 600; letter-spacing: 0.03em; text-transform: uppercase; color: var(--ink-45); margin-bottom: 20px; }
.article-meta .num { color: var(--cobalt); font-family: var(--serif); font-style: italic; font-size: 20px; letter-spacing: -0.02em; text-transform: none; }
.article-meta .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--gray); }
.article h1 { font-family: var(--serif); font-weight: 600; font-size: clamp(34px, 5vw, 52px); line-height: 1.04; letter-spacing: -0.03em; color: var(--ink); margin-bottom: 22px; }
.article-tools { display: flex; align-items: center; gap: 10px; padding: 16px 0; border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.article-tools .lbl { font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-45); margin-right: auto; }
.share-btn { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; color: var(--ink-70); transition: border-color .15s var(--ease), color .15s var(--ease), transform .15s var(--ease); }
.share-btn:hover { border-color: var(--cobalt); color: var(--cobalt); transform: translateY(-2px); }
.share-btn svg { width: 16px; height: 16px; }
.copied { position: relative; }
.copied::after { content: 'Link copied'; position: absolute; bottom: 120%; left: 50%; transform: translateX(-50%); background: var(--ink); color: #fff; font-size: 11px; padding: 4px 8px; border-radius: 6px; white-space: nowrap; }

.content { font-family: var(--serif); font-size: 19.5px; line-height: 1.68; color: var(--ink); }
.content p { margin: 0 0 22px; letter-spacing: -0.004em; }
.content h2 { font-family: var(--serif); font-size: 27px; font-weight: 600; color: var(--ink); letter-spacing: -0.018em; margin: 46px 0 16px; }
.content ul, .content ol { margin: 0 0 22px; padding-left: 22px; }
.content li { margin-bottom: 15px; letter-spacing: -0.004em; }
.content li::marker { color: var(--cobalt); }
.content li strong, .content p strong { font-weight: 600; color: var(--ink); }
.content a { color: var(--cobalt); text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; }
.content a:hover { color: var(--cobalt-press); }
.pullquote { margin: 40px 0; padding: 8px 0 8px 28px; border-left: 3px solid var(--cobalt); font-style: italic; font-size: 23px; line-height: 1.35; letter-spacing: -0.015em; color: var(--ink); }
.content figure { margin: 32px 0; }
.content figure img { width: 100%; border-radius: 12px; border: 1px solid var(--line-soft); }
.content figcaption { font-family: var(--sans); font-size: 13px; color: var(--ink-45); margin-top: 10px; text-align: center; }
.table-scroll { overflow-x: auto; margin: 28px 0; border: 1px solid var(--line-soft); border-radius: 12px; }
.content table { border-collapse: collapse; width: 100%; font-family: var(--sans); font-size: 15px; min-width: 480px; }
.content th, .content td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line-soft); }
.content th { font-weight: 600; background: var(--surface-2); }

/* ---------- Rich issue components (Issue 002 month-in-review) ---------- */
.mission { margin: 0 0 48px; padding: 26px 30px; background: var(--surface); border: 1px solid var(--line-soft); border-left: 3px solid var(--cobalt); border-radius: var(--radius); }
.mission-label { font-family: var(--sans); font-size: 11px; font-weight: 600; color: var(--ink-45); text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 12px; }
.mission-text { font-family: var(--serif); font-size: 19px; font-style: italic; line-height: 1.55; color: var(--ink); }
.mission-sig { font-family: var(--sans); font-size: 12px; color: var(--ink-45); margin-top: 14px; }
.opener { margin-bottom: 56px; font-family: var(--serif); font-size: 19.5px; line-height: 1.62; color: var(--ink); }
.opener p + p { margin-top: 16px; }
.opener-sig { font-family: var(--sans); font-size: 13px; color: var(--ink-45); margin-top: 22px; }
.isec { margin-bottom: 64px; }
.isec-title { font-family: var(--sans); font-size: 12px; font-weight: 600; color: var(--ink); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 8px; padding-bottom: 14px; border-bottom: 2px solid var(--ink); display: flex; align-items: center; gap: 12px; }
.isec-title::before { content: ''; width: 7px; height: 7px; background: var(--cobalt); border-radius: 2px; }
.isec-lens { font-family: var(--serif); font-style: italic; font-size: 15px; color: var(--ink-70); margin-bottom: 26px; }
.story { margin-bottom: 44px; }
.story:last-child { margin-bottom: 0; }
.story-kicker { display: inline-block; font-family: var(--sans); font-size: 10px; font-weight: 600; color: var(--cobalt); background: rgba(49,92,255,0.08); padding: 4px 10px; border-radius: 999px; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 14px; }
.story-headline { font-family: var(--serif); font-size: 24px; font-weight: 600; line-height: 1.24; letter-spacing: -0.018em; margin-bottom: 14px; color: var(--ink); }
.story-body { font-family: var(--serif); font-size: 17px; line-height: 1.62; color: var(--ink); }
.story-body p + p { margin-top: 12px; }
.sources { margin-top: 14px; font-family: var(--sans); font-size: 13px; color: var(--ink-45); line-height: 1.5; }
.sources-label { font-weight: 600; color: var(--ink); text-transform: uppercase; letter-spacing: 0.08em; font-size: 10px; margin-right: 6px; }
.sources a { color: var(--cobalt); text-decoration: none; border-bottom: 1px solid rgba(49,92,255,0.3); }
.sources a:hover { border-color: var(--cobalt); }
.builder-angle { margin-top: 18px; padding: 18px 22px; background: var(--surface-2); border-radius: 12px; border: 1px solid var(--line-soft); border-left: 3px solid var(--cobalt); }
.builder-label { font-family: var(--sans); font-size: 10px; font-weight: 600; color: var(--ink-45); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 8px; }
.builder-angle p { font-family: var(--sans); font-size: 15px; line-height: 1.55; color: var(--ink); }
.product-idea { background: var(--ink); color: var(--ivory); padding: 40px 36px; border-radius: 18px; margin: 56px 0; position: relative; overflow: hidden; }
.product-idea::before { content: ''; position: absolute; top: 0; left: 0; width: 4px; height: 100%; background: var(--cobalt); }
.product-idea-label { font-family: var(--sans); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.14em; color: var(--cobalt); margin-bottom: 14px; }
.product-idea h3 { font-family: var(--serif); font-size: 26px; font-weight: 500; line-height: 1.25; letter-spacing: -0.015em; margin-bottom: 16px; color: #fff; }
.product-idea p { font-family: var(--sans); font-size: 16px; line-height: 1.6; color: rgba(245,241,232,0.85); }
.product-idea p + p { margin-top: 14px; }
.product-idea .hypothesis { margin-top: 24px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.15); font-family: var(--serif); font-style: italic; font-size: 17px; color: var(--cobalt); }
.quick-hits { display: flex; flex-direction: column; }
.quick-hit { padding: 18px 0; border-bottom: 1px solid var(--line-soft); }
.quick-hit:first-child { padding-top: 0; }
.quick-hit:last-child { border-bottom: none; padding-bottom: 0; }
.quick-hit-tag { display: inline-block; font-family: var(--sans); font-size: 10px; font-weight: 600; color: var(--cobalt); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 6px; }
.quick-hit-text { font-family: var(--sans); font-size: 15px; line-height: 1.55; color: var(--ink); }
.quick-hit-text strong { font-weight: 600; color: var(--ink); }
.quick-hit-text a { color: var(--cobalt); text-decoration: none; border-bottom: 1px dotted var(--cobalt); }

/* article footer nav */
.article-nav { max-width: var(--read); margin: 0 auto; padding: 0 28px; }
.prevnext { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 48px 0; }
.pn { border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 20px 22px; text-decoration: none; color: inherit; transition: transform .2s var(--ease), border-color .2s var(--ease); background: var(--surface); }
.pn:hover { transform: translateY(-3px); border-color: var(--cobalt); }
.pn .dir { font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-45); margin-bottom: 8px; }
.pn.next { text-align: right; }
.pn h4 { font-family: var(--serif); font-size: 18px; font-weight: 600; letter-spacing: -0.015em; line-height: 1.2; }
.pn.empty { opacity: 0.45; pointer-events: none; }

.article-sig { max-width: var(--read); margin: 0 auto; padding: 40px 28px 0; }
.article-sig .sig { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 26px; color: var(--ink); }
.article-sig .sig-meta { font-size: 13px; color: var(--ink-45); margin-top: 8px; letter-spacing: 0.02em; }

.article-endcap { max-width: 860px; margin: 56px auto 0; padding: 0 28px; }

/* ---------- Focus / a11y ---------- */
a:focus-visible, button:focus-visible, input:focus-visible, .btn:focus-visible {
  outline: 3px solid var(--cobalt); outline-offset: 2px; border-radius: 6px;
}
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 100; }
.skip-link:focus { left: 12px; }

/* reveal (only when JS is active, so no-JS still shows everything) */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { max-width: 420px; order: 2; }
  .explore-grid { grid-template-columns: 1fr; }
  .issue-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; gap: 36px; }
  .about-portrait { max-width: 360px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .nav-links { position: fixed; inset: 62px 0 auto 0; flex-direction: column; align-items: stretch; gap: 4px; background: var(--ivory); border-bottom: 1px solid var(--line); padding: 14px 20px 22px; transform: translateY(-140%); transition: transform .28s var(--ease); box-shadow: var(--shadow); max-height: calc(100vh - 62px); overflow-y: auto; }
  .nav.open .nav-links { transform: translateY(0); }
  .nav-links a { padding: 12px 10px; font-size: 16px; }
  .nav-links a.active::after { display: none; }
  .nav-cta { margin: 6px 10px 0; text-align: center; justify-content: center; }
  .nav-toggle { display: inline-flex; }
  .section { padding: 64px 0; }
  .featured { padding: 40px 26px; }
  .featured .bignum { font-size: 210px; top: -20px; right: -10px; }
  .proj-grid { grid-template-columns: 1fr; }
  .prevnext { grid-template-columns: 1fr; }
  .subscribe { padding: 46px 26px; }
  .subscribe-form { flex-direction: column; }
  .subscribe-form .btn-primary { justify-content: center; }
  .footer-top { grid-template-columns: 1fr; gap: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ============================================================
   MOLESKINE LAYER  ·  subtle notebook craft
   Warm paper grain, ruled article pages, a satin ribbon
   bookmark, and stitched cover edges. Purely additive.
   ============================================================ */

/* Warm paper grain across the whole page (sits over ivory, under content) */
body::before{
  content:""; position:fixed; inset:0; z-index:-1; pointer-events:none;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  opacity:.05; mix-blend-mode:multiply;
}

/* Each issue reads as a faintly ruled notebook page */
.article{ position:relative; }
.article .content{
  background-image:repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 31.76px,
    rgba(17,19,24,0.05) 31.76px,
    rgba(17,19,24,0.05) 32.76px);
}

/* Satin ribbon bookmark hanging from the top of every issue */
.article::before{
  content:""; position:absolute; top:0; right:36px; width:15px; height:118px;
  background:linear-gradient(90deg,#2646cf 0%,#315CFF 48%,#6182ff 100%);
  z-index:0; border-radius:1px;
  clip-path:polygon(0 0,100% 0,100% 100%,50% 84%,0 100%);
  box-shadow:0 7px 16px -6px rgba(17,19,24,0.45);
}
@media (max-width:760px){ .article::before{ right:18px; height:98px; } }

/* Stitched cover edge on the subscribe cards */
.subscribe:not(.light)::after,
.subscribe.light::after{
  content:""; position:absolute; inset:12px; border-radius:16px;
  pointer-events:none; z-index:0;
}
.subscribe:not(.light)::after{ border:1px dashed rgba(255,255,255,0.20); }
.subscribe.light::after{ border:1px dashed rgba(17,19,24,0.13); }

/* ============================================================
   SERMONS PAGE
   ============================================================ */
.sermon-feature{ display:grid; grid-template-columns:1.15fr 1fr; background:var(--ink); color:var(--ivory); border-radius:20px; overflow:hidden; text-decoration:none; margin-bottom:30px; box-shadow:var(--shadow); position:relative; }
.sermon-feature .sf-thumb{ position:relative; min-height:250px; background:#0d1220; overflow:hidden; }
.sermon-feature .sf-thumb img{ width:100%; height:100%; object-fit:cover; opacity:.9; transition:opacity .25s var(--ease), transform .4s var(--ease); }
.sermon-feature:hover .sf-thumb img{ opacity:1; transform:scale(1.03); }
.sermon-feature .sf-body{ padding:38px 42px; display:flex; flex-direction:column; justify-content:center; gap:13px; }
.sermon-feature .eyebrow{ color:var(--cobalt); }
.sermon-feature h2{ font-family:var(--serif); font-size:clamp(26px,3.2vw,35px); font-weight:600; line-height:1.12; letter-spacing:-0.02em; color:#fff; }
.sermon-feature .sf-meta{ font-family:var(--sans); font-size:14px; color:rgba(245,241,232,0.78); line-height:1.5; }
.sermon-feature .sf-cta{ margin-top:6px; font-family:var(--sans); font-size:14px; font-weight:600; color:#fff; display:inline-flex; align-items:center; gap:8px; }
.sermon-feature .sf-cta .arw{ transition:transform .2s var(--ease); }
.sermon-feature:hover .sf-cta .arw{ transform:translateX(4px); }
.playbtn{ position:absolute; left:50%; top:50%; transform:translate(-50%,-50%); width:58px; height:58px; border-radius:50%; background:rgba(17,19,24,0.5); display:flex; align-items:center; justify-content:center; color:#fff; box-shadow:0 6px 18px -6px rgba(0,0,0,0.5); }
.playbtn svg{ width:22px; height:22px; margin-left:3px; }
@media(max-width:760px){ .sermon-feature{ grid-template-columns:1fr; } .sermon-feature .sf-thumb{ aspect-ratio:16/9; min-height:0; } .sermon-feature .sf-body{ padding:28px 26px; } }

.sermon-grid{ display:grid; grid-template-columns:repeat(auto-fill,minmax(288px,1fr)); gap:22px; }
.sermon-card{ display:flex; flex-direction:column; background:var(--surface); border:1px solid var(--line-soft); border-radius:16px; overflow:hidden; text-decoration:none; color:inherit; box-shadow:var(--shadow); transition:transform .2s var(--ease), box-shadow .2s var(--ease); }
.sermon-card:hover{ transform:translateY(-4px); box-shadow:0 1px 2px rgba(17,19,24,0.05), 0 22px 44px -20px rgba(17,19,24,0.3); }
.sermon-thumb{ position:relative; aspect-ratio:16/9; background:#0d1220; overflow:hidden; }
.sermon-thumb img{ width:100%; height:100%; object-fit:cover; }
.sermon-thumb.alt{ background:linear-gradient(150deg,#1c2b6e 0%,#315CFF 100%); }
.sermon-thumb .playbtn{ width:50px; height:50px; }
.sermon-thumb .playbtn svg{ width:18px; height:18px; }
.sermon-thumb.alt .playbtn{ background:rgba(255,255,255,0.18); }
.sermon-body{ padding:17px 19px 19px; display:flex; flex-direction:column; gap:8px; flex:1; }
.sermon-body .skicker{ font-family:var(--sans); font-size:11px; font-weight:600; letter-spacing:0.06em; text-transform:uppercase; color:var(--cobalt); }
.sermon-body h3{ font-family:var(--serif); font-size:21px; font-weight:600; line-height:1.2; letter-spacing:-0.015em; color:var(--ink); transition:color .15s var(--ease); }
.sermon-card:hover .sermon-body h3{ color:var(--cobalt); }
.sermon-body .smeta{ font-family:var(--sans); font-size:13.5px; color:var(--ink-70); line-height:1.45; }
.sermon-body .slink{ margin-top:auto; padding-top:8px; font-family:var(--sans); font-size:13px; font-weight:600; color:var(--cobalt); display:inline-flex; align-items:center; gap:6px; }
.sermon-body .slink .arw{ transition:transform .2s var(--ease); }
.sermon-card:hover .slink .arw{ transform:translateX(3px); }
.sermon-note{ margin-top:26px; padding:20px 24px; background:var(--surface-2); border:1px solid var(--line-soft); border-left:3px solid var(--cobalt); border-radius:12px; font-family:var(--sans); font-size:14.5px; line-height:1.55; color:var(--ink-70); }
.sermon-note a{ color:var(--cobalt); font-weight:600; text-decoration:none; }
.sermon-note a:hover{ text-decoration:underline; }

/* ============================================================
   ESPN-STYLE NAV  ·  grouped dropdown menus
   ============================================================ */
.nav-item.has-menu { position: relative; }
.nav-trigger {
  display: inline-flex; align-items: center; gap: 5px;
  font-family: var(--sans); font-size: 15px; font-weight: 500; color: var(--ink-70);
  background: none; border: none; cursor: pointer;
  padding: 8px 12px; border-radius: 8px; letter-spacing: -0.006em;
  transition: color .15s var(--ease), background .15s var(--ease);
}
.nav-trigger:hover, .nav-item.has-menu:hover .nav-trigger { color: var(--ink); background: rgba(17,19,24,0.05); }
.nav-trigger.active { color: var(--ink); font-weight: 600; }
.nav-trigger .chev { transition: transform .2s var(--ease); }
.nav-item.has-menu:hover .nav-trigger .chev,
.nav-trigger[aria-expanded="true"] .chev { transform: rotate(180deg); }

.nav-menu {
  position: absolute; top: calc(100% + 9px); left: 0; min-width: 290px;
  background: var(--surface); border: 1px solid var(--line-soft); border-radius: 14px;
  box-shadow: var(--shadow); padding: 8px; z-index: 60;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .18s var(--ease), transform .18s var(--ease), visibility .18s;
}
.nav-item.has-menu:hover .nav-menu,
.nav-trigger[aria-expanded="true"] + .nav-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-menu a { display: block; padding: 10px 12px; border-radius: 9px; text-decoration: none; }
.nav-menu a:hover { background: rgba(49,92,255,0.06); }
.nav-menu .nm-title { display: block; font-size: 15px; font-weight: 600; color: var(--ink); }
.nav-menu .nm-sub { display: block; font-size: 12.5px; color: var(--ink-45); margin-top: 2px; }
.nav-menu a[target="_blank"] .nm-title::after { content: ' \2197'; color: var(--ink-45); font-size: 12px; }

@media (max-width: 760px) {
  .nav-item.has-menu { display: block; }
  .nav-trigger { display: none; }
  .nav-menu {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: none; background: none; padding: 0; min-width: 0;
  }
  .nav-item.has-menu::before {
    content: attr(data-label); display: block;
    font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--ink-45); margin: 16px 0 2px; padding: 0 10px;
  }
  .nav-menu .nm-sub { display: none; }
  .nav-menu a { padding: 10px 10px; }
}

/* Home page: larger brand logo (25% bump) */
body.home .nav .brand img { height: 72px; }
@media (max-width: 760px) { body.home .nav .brand img { height: 30px; } }

/* ============================================================
   HOME: notebook left column + tool spotlight (fills the gap)
   ============================================================ */
.nb-main { min-width: 0; display: flex; flex-direction: column; }
.tool-spotlight {
  margin-top: 22px; background: #262b36; color: var(--ivory);
  border-radius: 20px; padding: 30px 32px; position: relative; overflow: hidden;
  box-shadow: var(--shadow);
}
.tool-spotlight::before { content:''; position:absolute; left:0; top:0; bottom:0; width:5px; background: var(--cobalt); }
.tool-spotlight .eyebrow { color: #7d97ff; margin-bottom: 12px; }
.tool-spotlight h3 { font-family: var(--serif); font-size: 26px; font-weight:600; color:#fff; letter-spacing:-0.02em; margin-bottom:10px; }
.tool-spotlight p { font-family: var(--sans); font-size: 15px; line-height:1.55; color: rgba(245,241,232,0.82); margin-bottom: 18px; }
.tool-spotlight .passcode { display:inline-flex; align-items:center; gap:8px; font-family:var(--sans); font-size:13px; color:rgba(245,241,232,0.92); background: rgba(255,255,255,0.08); border:1px solid rgba(255,255,255,0.16); padding:8px 14px; border-radius:999px; margin-bottom:18px; }
.tool-spotlight .passcode b { color:#fff; font-weight:700; letter-spacing:0.06em; }
.tool-spotlight .ts-row { display:flex; align-items:center; gap:16px; flex-wrap:wrap; }
.tool-spotlight .ts-note { font-size:12.5px; color: var(--gray); }

/* All Issues rail: collapse long list behind a Show more toggle */
.headline.is-hidden { display: none; }
.headlines .show-more {
  display: block; width: 100%; margin-top: 4px; padding: 13px;
  background: none; border: none; border-top: 1px solid var(--line-soft);
  font-family: var(--sans); font-size: 13px; font-weight: 600; letter-spacing: 0.02em;
  color: var(--cobalt); cursor: pointer; text-align: center;
  transition: color .15s var(--ease);
}
.headlines .show-more:hover { color: var(--cobalt-press); }
