:root {
  --ink: #1d2340;
  --ink-2: #2c3566;
  --gold: #c9962e;
  --gold-soft: #f1dfb4;
  --terra: #b85c38;
  --cream: #f7f1e6;
  --paper: #fffaf1;
  --muted: #6a6676;
  --line: #e4d9c4;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --r: 18px;
  --gut: clamp(16px, 4vw, 56px);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 16px/1.6 var(--sans); }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.1; margin: 0 0 .4em; letter-spacing: -.01em; }
h2 { font-size: clamp(30px, 4vw, 48px); }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: 12px; font-weight: 600; color: var(--terra); margin: 0 0 10px; }
.btn { display: inline-block; background: var(--ink); color: var(--paper); border: 2px solid var(--ink); padding: 12px 22px;
  border-radius: 999px; font: 600 15px var(--sans); text-decoration: none; cursor: pointer; transition: transform .15s, background .15s; }
.btn:hover { transform: translateY(-1px); background: var(--ink-2); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--paper); }
section { padding: clamp(56px, 8vw, 110px) var(--gut); }
.head { display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; margin-bottom: 28px; }
.head p { margin: 0; color: var(--muted); max-width: 46ch; }

/* header */
.top { position: sticky; top: 0; z-index: 20; display: flex; justify-content: space-between; align-items: center;
  padding: 14px var(--gut); background: rgba(247, 241, 230, .9); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.brand { font: 600 20px var(--serif); text-decoration: none; display: flex; gap: 8px; align-items: center; }
.mark { color: var(--gold); }
.top nav { display: flex; gap: clamp(10px, 2.4vw, 26px); align-items: center; font-weight: 500; font-size: 15px; }
.top nav a { text-decoration: none; }
.top nav a:hover { color: var(--terra); }
.top .pill { background: var(--ink); color: var(--paper); padding: 7px 16px; border-radius: 999px; }
.top .pill:hover { color: var(--gold-soft); }

/* hero: text half, art half, never overlapping */
.hero { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 60px); align-items: center;
  padding-top: clamp(32px, 5vw, 64px); }
.hero h1 { font-size: clamp(40px, 5.6vw, 78px); }
.hero h1 em { font-style: italic; color: var(--terra); font-weight: 400; display: block; }
.lede { font-size: clamp(17px, 1.4vw, 20px); color: #3c3d55; max-width: 40ch; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.hero-art { margin: 0; border-radius: 28px; overflow: hidden; aspect-ratio: 3 / 2; box-shadow: 0 30px 60px -30px rgba(29, 35, 64, .5); }
.hero-art img { width: 100%; height: 100%; object-fit: cover; object-position: 70% top; }
.hero-art video { width: 100%; height: 100%; object-fit: cover; object-position: center top; }

/* stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding-top: 10px; padding-bottom: 10px; text-align: center; }
.stats div { padding: 28px 10px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stats b { display: block; font: 400 clamp(38px, 5vw, 64px) / 1 var(--serif); }
.stats span { color: var(--muted); font-size: 14px; }

/* field cards: picture on top, words below */
.field-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
.field { background: var(--paper); border-radius: var(--r); overflow: hidden; text-decoration: none; border: 1px solid var(--line);
  display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; cursor: pointer; text-align: left; padding: 0; font: inherit; color: inherit; }
.field:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -24px rgba(29, 35, 64, .45); }
.field img { aspect-ratio: 3 / 2; object-fit: cover; object-position: top; width: 100%; }
.field div { padding: 16px 18px 20px; }
.field h3 { font-size: 22px; margin: 0 0 4px; }
.field p { margin: 0; color: var(--muted); font-size: 14px; }
.field .n { color: var(--terra); font-weight: 600; }

/* explorer */
.explore { background: var(--paper); }
.toolbar { display: flex; gap: 12px; flex-wrap: wrap; }
.search { flex: 1; min-width: 240px; display: flex; align-items: center; gap: 10px; background: var(--cream); border: 1px solid var(--line);
  border-radius: 999px; padding: 0 18px; }
.search span { font-size: 20px; color: var(--muted); }
.search input { border: 0; background: none; font: 16px var(--sans); padding: 14px 0; width: 100%; outline: none; color: var(--ink); }
select { font: 500 15px var(--sans); border: 1px solid var(--line); background: var(--cream); border-radius: 999px; padding: 0 16px; color: var(--ink); min-height: 50px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 18px 0 6px; }
.chip { border: 1px solid var(--line); background: var(--cream); border-radius: 999px; padding: 7px 14px; font: 500 14px var(--sans); cursor: pointer; color: var(--ink); }
.chip small { color: var(--muted); margin-left: 4px; }
.chip[aria-selected="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.chip[aria-selected="true"] small { color: var(--gold-soft); }
.count { color: var(--muted); font-size: 14px; margin: 10px 0 18px; }
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 22px 18px; }
/* buttons centre their content by default; force every card to start at the top so rows line up */
.card, .stop, .faces button { display: flex; flex-direction: column; justify-content: flex-start; align-items: stretch; align-self: start; }
.card { cursor: pointer; background: none; border: 0; padding: 0; text-align: left; font: inherit; color: inherit; }
.card .ph { aspect-ratio: 4 / 5; border-radius: 12px; overflow: hidden; background: linear-gradient(160deg, var(--gold-soft), #e7d6b3);
  display: grid; place-items: center; font: 600 40px var(--serif); color: var(--ink-2); }
/* one archival tone for every portrait, colour on hover */
.card .ph img, .stop img, .faces img { width: 100%; height: 100%; object-fit: cover; object-position: center top;
  filter: grayscale(1) sepia(.22) contrast(1.06) brightness(1.02); transition: transform .35s, filter .35s; }
.card:hover .ph img, .stop:hover img, .faces button:hover img { transform: scale(1.04); filter: none; }
/* people without a free photo: a designed tile, never a blank */
.ph.none { position: relative; color: var(--paper); font: 500 44px/1 var(--serif); letter-spacing: .02em;
  background: radial-gradient(120% 90% at 30% 15%, rgba(255,255,255,.18), transparent 60%), var(--tone, var(--ink)); }
.ph.none::after { content: attr(data-field); position: absolute; left: 0; right: 0; bottom: 12px; text-align: center;
  font: 600 10px var(--sans); letter-spacing: .16em; text-transform: uppercase; opacity: .75; }
.ph.none.f-science { --tone: #2c4a6e; } .ph.none.f-inventions { --tone: #8a5a1f; } .ph.none.f-technology { --tone: #2f5d62; }
.ph.none.f-social-movements { --tone: #8c3b2a; } .ph.none.f-business { --tone: #5b4a2e; } .ph.none.f-entertainment { --tone: #6a2c4a; }
.ph.none.f-literature { --tone: #3e3a63; } .ph.none.f-arts { --tone: #7a4b2a; } .ph.none.f-thought { --tone: #3b4a3a; }
.ph.none.f-politics-law { --tone: #1d2340; } .ph.none.f-sports { --tone: #275a3c; } .ph.none.f-other { --tone: #4a4a55; }
.card h4 { font: 600 16px/1.25 var(--sans); margin: 10px 0 2px; }
.card p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card .tag { display: inline-block; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--terra); margin-top: 4px; }
.more { text-align: center; margin-top: 34px; }

/* timeline */
.eras { display: flex; gap: 10px; flex-wrap: wrap; }
.era { border: 1px solid var(--ink); background: none; border-radius: 6px; padding: 10px 16px; font: 600 14px var(--sans); cursor: pointer; color: var(--ink); }
.era[aria-selected="true"] { background: var(--ink); color: var(--paper); }
.era-title { font: 400 clamp(56px, 10vw, 140px) / 1 var(--serif); margin: 26px 0 8px; color: var(--ink); }
.era-title small { display: block; font: 400 17px var(--sans); color: var(--muted); margin-top: 10px; }
.rail-wrap { position: relative; }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 260px); gap: 22px; overflow-x: auto;
  scroll-snap-type: x mandatory; padding: 34px 2px 16px; scrollbar-width: thin; }
.rail::before { content: ""; position: absolute; left: 0; right: 0; top: 44px; height: 1px; background: var(--ink); opacity: .35; }
.stop { scroll-snap-align: start; position: relative; cursor: pointer; background: none; border: 0; padding: 0; text-align: left; font: inherit; color: inherit; }
.stop .yr { display: inline-block; background: var(--ink); color: var(--paper); border-radius: 999px; padding: 3px 12px; font: 600 13px var(--sans);
  position: relative; top: -16px; }
.stop .ph { aspect-ratio: 4 / 5; border-radius: 14px; overflow: hidden; background: var(--gold-soft); display: grid; place-items: center; font: 600 40px var(--serif); }
.stop h4 { font: 600 16px var(--sans); margin: 10px 0 2px; }
.stop p { margin: 0; font-size: 13px; color: var(--muted); }
.arrow { position: absolute; top: 50%; z-index: 2; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--paper); cursor: pointer; font-size: 18px; box-shadow: 0 6px 16px -8px rgba(0, 0, 0, .3); }
#prev { left: -10px; } #next { right: -10px; }

/* everyday */
.everyday { background: var(--ink); color: var(--paper); }
.everyday .head p { color: #c9c6d8; }
.house { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 26px; align-items: start; }
.house-art { position: relative; border-radius: 22px; overflow: hidden; }
.spot { position: absolute; transform: translate(-50%, -50%); width: 30px; height: 30px; border-radius: 50%; border: 3px solid #fff;
  background: var(--gold); cursor: pointer; box-shadow: 0 0 0 0 rgba(201, 150, 46, .7); animation: pulse 2.2s infinite; padding: 0;
  font: 700 13px var(--sans); color: var(--ink); }
.spot[aria-pressed="true"] { background: var(--terra); color: #fff; animation: none; }
@keyframes pulse { 70% { box-shadow: 0 0 0 16px rgba(201, 150, 46, 0); } 100% { box-shadow: 0 0 0 0 rgba(201, 150, 46, 0); } }
.spot-card { background: var(--paper); color: var(--ink); border-radius: 22px; padding: 28px; position: sticky; top: 96px; }
.spot-card h3 { font-size: 28px; }
.spot-card .who { font-weight: 600; color: var(--terra); margin: 0 0 8px; }
.spot-card .go { margin-top: 10px; }

/* nobel */
.nobel-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; }
.nobel-grid button { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 22px 16px; cursor: pointer;
  text-align: left; font: inherit; color: inherit; transition: border-color .2s; }
.nobel-grid button:hover, .nobel-grid button[aria-pressed="true"] { border-color: var(--gold); box-shadow: inset 0 0 0 1px var(--gold); }
.nobel-grid b { display: block; font: 400 46px / 1 var(--serif); }
.nobel-grid span { color: var(--muted); font-size: 14px; }
.faces { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 14px; margin-top: 26px; }
.faces button { background: none; border: 0; padding: 0; cursor: pointer; text-align: center; font: inherit; color: inherit; }
.faces .ph { aspect-ratio: 1; border-radius: 50%; overflow: hidden; background: var(--gold-soft); display: grid; place-items: center; font: 600 28px var(--serif); }
.faces img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.faces span { display: block; font-size: 12px; margin-top: 6px; line-height: 1.3; }

/* quiz: question left, picture right */
.quiz { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 56px); align-items: center; background: var(--paper); }
.quiz h2 { font-size: clamp(32px, 4vw, 52px); }
.quiz-clue { color: var(--muted); min-height: 3.2em; }
.answers { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 18px 0; }
.answers button { border: 1px solid var(--line); background: var(--cream); border-radius: 14px; padding: 16px; font: 500 16px var(--sans);
  text-align: left; cursor: pointer; color: var(--ink); min-height: 64px; }
.answers button:hover:not(:disabled) { border-color: var(--ink); }
.answers .right { background: #dcebd5; border-color: #5f8f4e; }
.answers .wrong { background: #f3d9cf; border-color: var(--terra); }
.quiz-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
#score { font-weight: 600; }
.quiz-art { margin: 0; border-radius: 24px; overflow: hidden; aspect-ratio: 4 / 5; background: var(--gold-soft); }
.quiz-art img { width: 100%; height: 100%; object-fit: cover; object-position: top; }

/* modal */
.modal { position: fixed; inset: 0; z-index: 50; background: rgba(20, 22, 40, .6); display: grid; place-items: center; padding: 16px; }
.modal[hidden] { display: none; }
.sheet { background: var(--paper); border-radius: 22px; max-width: 860px; width: 100%; max-height: 92vh; overflow: auto;
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); position: relative; }
.m-photo { background: var(--gold-soft); min-height: 320px; display: grid; place-items: center; font: 600 80px var(--serif); }
.m-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.m-body { padding: 30px; }
.m-body h3 { font-size: 34px; }
.m-years { color: var(--muted); margin-top: -6px; }
.m-nobel { color: var(--terra); font-weight: 600; }
.m-credit { font-size: 12px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 12px; }
.close { position: absolute; top: 10px; right: 12px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--paper);
  font-size: 26px; cursor: pointer; z-index: 2; }

/* footer */
.foot { padding: 50px var(--gut); background: var(--ink); color: #d9d6e6; display: grid; gap: 20px; }
.foot p { max-width: 80ch; margin: 0 0 8px; font-size: 14px; }
.foot .brand { color: var(--paper); font-size: 22px; }
.foot .small { font-size: 12px; opacity: .7; }

@media (max-width: 900px) {
  .hero, .house, .quiz { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .spot-card { position: static; }
  .sheet { grid-template-columns: 1fr; }
  .m-photo { max-height: 420px; }
  .quiz-art { max-height: 420px; }
  #prev, #next { display: none; }
}
@media (max-width: 560px) {
  .top nav a:not(.pill) { display: none; }
  .answers { grid-template-columns: 1fr; }
  .people { grid-template-columns: repeat(2, 1fr); gap: 18px 12px; }
  .spot { width: 24px; height: 24px; font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* emblem tiles for people without a free photo: objects only, never a face */
.ph.none.emb { background: var(--ink); padding: 0; }
.ph.none.emb img { filter: none; transform: scale(1.18); }
.ph.none.emb img.flip { transform: scale(1.18) scaleX(-1); }
.card:hover .ph.none.emb img { transform: scale(1.24); }
.card:hover .ph.none.emb img.flip { transform: scale(1.24) scaleX(-1); }
.ph.none.emb::after { background: linear-gradient(transparent, rgba(0,0,0,.55)); padding: 18px 0 0; bottom: 0; height: 44px; line-height: 26px; }
/* era banner beside the big era title */
.era-title { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 28px; align-items: center; }
.era-title img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; object-position: top; border-radius: 20px; }
.nobel-art { margin: 0 0 22px; }
.nobel-art img { width: 100%; max-height: 420px; object-fit: cover; object-position: center 30%; border-radius: 22px; }
@media (max-width: 900px) { .era-title { grid-template-columns: 1fr; } }

/* person sheet: related people row */
.m-body h3 { font-size: clamp(30px, 3.4vw, 42px); }
.m-photo { background: linear-gradient(160deg, var(--gold-soft), #e2cfa8); }
.m-related { margin: 18px 0 6px; }
.m-related > div { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.m-related button { background: none; border: 0; padding: 0; cursor: pointer; text-align: left; font: inherit; color: inherit;
  display: flex; flex-direction: column; justify-content: flex-start; }
.m-related .ph { aspect-ratio: 4 / 5; border-radius: 8px; overflow: hidden; }
.m-related .ph img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) sepia(.22); }
.m-related button:hover .ph img { filter: none; }
.m-related span { font-size: 11px; line-height: 1.25; margin-top: 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 560px) { .m-related > div { grid-template-columns: repeat(3, 1fr); } }

/* ALWAYS EVEN: fixed column counts; item counts (18 fields, 48 people per page, 36 faces, 6 prizes) divide evenly */
.field-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.people { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.faces { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.nobel-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
@media (max-width: 1180px) {
  .field-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .people, .faces { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .nobel-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .people, .faces { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .field-grid, .people, .nobel-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .faces { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* page width cap: wide screens keep text and art together (no huge empty bands) */
:root { --gut: max(clamp(16px, 4vw, 56px), calc((100vw - 1480px) / 2)); }
.hero { padding-top: clamp(24px, 4vw, 48px); padding-bottom: clamp(32px, 5vw, 64px); min-height: 0; }
.hero-art { max-height: 600px; }
/* logo: seal + two-line wordmark */
.brand { gap: 10px; }
.brand .logo { width: 44px; height: 44px; flex: none; }
.brand .wm { display: flex; flex-direction: column; line-height: 1; font: 600 22px/1 var(--serif); letter-spacing: -.01em; }
.brand .wm small { font: 600 10px/1 var(--sans); letter-spacing: .32em; text-transform: uppercase; color: var(--terra); margin: 0 0 4px 1px; }
.foot .brand .wm small { color: var(--gold); }
.foot .brand .logo { width: 52px; height: 52px; }
.mark { display: none; }

/* =====================================================================
   v4 — visual layer (Oct 27 2026)
   ===================================================================== */
/* paper: faint grain over the cream */
body { background-color: var(--cream);
  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='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35  0 0 0 0 .27  0 0 0 0 .15  0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.explore, .quiz, .today { background-color: var(--paper); background-image: inherit; }

/* editorial type */
h2 { font-size: clamp(34px, 4.4vw, 60px); letter-spacing: -.02em; }
.head { border-top: 1px solid var(--line); padding-top: 22px; }
.head h2 { display: flex; align-items: baseline; gap: 14px; margin: 0; }
.head .num { font: 500 14px var(--sans); letter-spacing: .18em; color: var(--gold); border: 1px solid var(--gold); border-radius: 999px;
  padding: 4px 10px; position: relative; top: -10px; }
.everyday .head, .map .head { border-top-color: rgba(255,255,255,.14); }
.hero h1 { font-size: clamp(44px, 6vw, 92px); line-height: .98; }
.hero .lede { font-size: clamp(17px, 1.3vw, 20px); }
.hero-art { position: relative; }
.hero-art::after { content: ""; position: absolute; inset: 10px; border: 1px solid rgba(255,236,190,.55); border-radius: 20px; pointer-events: none; }

/* one duotone for every portrait (indigo shadows, cream lights); full colour on hover */
.card .ph img, .stop img, .faces img, .m-related .ph img, .rb img, .s-people .ph img, .who img { filter: url(#duo) contrast(1.04); }
.card:hover .ph img, .stop:hover img, .faces button:hover img, .m-related button:hover .ph img, .rb:hover img,
.s-people button:hover .ph img, .who button:hover img { filter: none; }
.ph.none.emb img { filter: none; }

/* ribbon of faces */
.ribbon { padding: 18px 0; overflow: hidden; background: var(--ink); position: relative; }
.ribbon::before, .ribbon::after { content: ""; position: absolute; top: 0; bottom: 0; width: 120px; z-index: 2; pointer-events: none; }
.ribbon::before { left: 0; background: linear-gradient(90deg, var(--ink), transparent); }
.ribbon::after { right: 0; background: linear-gradient(-90deg, var(--ink), transparent); }
.ribbon-track { display: flex; gap: 14px; width: max-content; animation: ribbon 140s linear infinite; }
.ribbon:hover .ribbon-track { animation-play-state: paused; }
@keyframes ribbon { to { transform: translateX(-50%); } }
.rb { position: relative; width: 92px; height: 116px; border: 0; padding: 0; border-radius: 12px; overflow: hidden; cursor: pointer; background: #2a3260; flex: none; }
.rb img { width: 100%; height: 100%; object-fit: cover; object-position: center top; transition: filter .3s, transform .3s; }
.rb span { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 6px 6px; font: 600 10px/1.2 var(--sans); color: #fff; text-align: left;
  background: linear-gradient(transparent, rgba(10,12,30,.85)); opacity: 0; transition: opacity .25s; }
.rb:hover span { opacity: 1; }
.rb:hover img { transform: scale(1.06); }

/* featured stories: one large + two, then three, always full rows */
.story-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.story { display: flex; flex-direction: column; text-align: left; border: 1px solid var(--line); background: var(--paper); border-radius: 22px;
  overflow: hidden; padding: 0; cursor: pointer; font: inherit; color: inherit; transition: transform .25s, box-shadow .25s; }
.story:hover { transform: translateY(-4px); box-shadow: 0 26px 50px -30px rgba(29,35,64,.55); }
.story figure { margin: 0; aspect-ratio: 3 / 2; overflow: hidden; }
.story img { width: 100%; height: 100%; object-fit: cover; object-position: center top; transition: transform .6s; }
.story:hover img { transform: scale(1.04); }
.story > div { padding: 18px 22px 24px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.story h3 { font-size: clamp(22px, 1.8vw, 28px); margin: 0; }
.story p { margin: 0; color: var(--muted); }
.story .go { margin-top: auto; padding-top: 10px; color: var(--terra); font-weight: 600; font-size: 14px; }
.story.s0 { grid-column: span 2; grid-row: span 2; }
.story.s0 figure { aspect-ratio: auto; flex: 1; min-height: 360px; }
.story.s0 h3 { font-size: clamp(30px, 3vw, 44px); }
.story.s1 figure, .story.s2 figure { aspect-ratio: 16 / 9; }

/* story reader */
.story-modal .reader { background: var(--paper); border-radius: 24px; max-width: 860px; width: 100%; max-height: 92vh; overflow: auto; position: relative; }
.s-art { margin: 0; }
.s-art img { width: 100%; aspect-ratio: 16 / 7; object-fit: cover; object-position: center 25%; display: block; }
.s-body { padding: clamp(22px, 4vw, 48px); }
.s-body h3 { font-size: clamp(32px, 4vw, 52px); }
.s-dek { font: italic 400 clamp(18px, 1.6vw, 22px)/1.45 var(--serif); color: #3c3d55; }
.s-people { display: flex; flex-wrap: wrap; gap: 14px; margin: 18px 0; }
.s-people button { display: flex; gap: 10px; align-items: center; border: 1px solid var(--line); background: var(--cream); border-radius: 999px;
  padding: 5px 16px 5px 5px; cursor: pointer; font: inherit; color: inherit; }
.s-people .ph { width: 44px; height: 44px; border-radius: 50%; overflow: hidden; font-size: 16px; aspect-ratio: 1; }
.s-people .ph img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.s-people span { display: flex; flex-direction: column; font-weight: 600; font-size: 14px; line-height: 1.2; }
.s-people small { color: var(--muted); font-weight: 400; }
.s-text p { font-size: 18px; line-height: 1.75; max-width: 64ch; }
.s-text p:first-child::first-letter { font: 600 3.4em/.8 var(--serif); float: left; margin: .08em .1em 0 0; color: var(--terra); }
.s-sources ul, .m-sources ul { list-style: none; padding: 0; margin: 8px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.s-sources a, .m-sources a { display: inline-block; border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; font-size: 13px;
  text-decoration: none; background: var(--cream); }
.s-sources a:hover, .m-sources a:hover { border-color: var(--terra); color: var(--terra); }
.m-born { color: var(--muted); margin-top: -4px; }

/* born on this day */
.today-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 22px 18px; }

/* birthplace map */
.map { background: #0f1430; color: #e9e6f5; }
.map .head p { color: #b9b6cf; }
.map-eras { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.map-eras .era { border-color: rgba(255,255,255,.35); color: #e9e6f5; }
.map-eras .era[aria-selected="true"] { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.map-wrap { display: grid; grid-template-columns: minmax(0, 3fr) minmax(260px, 1fr); gap: 22px; align-items: start; }
.map-stage { position: relative; background: #161c3a; border-radius: 22px; overflow: hidden; border: 1px solid rgba(255,255,255,.08); }
#map-canvas { width: 100%; display: block; }
.map-tip { position: absolute; pointer-events: none; background: var(--paper); color: var(--ink); font: 600 13px var(--sans); padding: 6px 10px;
  border-radius: 8px; white-space: nowrap; box-shadow: 0 8px 20px -8px rgba(0,0,0,.6); }
.map-side { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); border-radius: 22px; padding: 22px; min-height: 300px; }
.map-side .big { font: 400 clamp(40px, 4vw, 56px)/1 var(--serif); margin: 4px 0; color: #fff; }
.map-side h3 { color: #fff; font-size: 30px; margin: 0 0 4px; }
.map-side ol, .map-side ul { list-style: none; padding: 0; margin: 14px 0 0; }
.map-side .toplist button, .map-side .who button { width: 100%; display: flex; align-items: center; gap: 10px; justify-content: space-between; background: none;
  border: 0; border-top: 1px solid rgba(255,255,255,.08); color: #e9e6f5; padding: 9px 0; cursor: pointer; font: inherit; text-align: left; }
.map-side .toplist b { color: var(--gold); font-weight: 600; }
.map-side .who button { justify-content: flex-start; }
.map-side .who img, .map-side .who i { width: 34px; height: 42px; border-radius: 6px; object-fit: cover; object-position: top; flex: none;
  display: grid; place-items: center; font: normal 600 13px var(--serif); background: #2a3260; }
.map-side .who span { display: flex; flex-direction: column; font-size: 14px; line-height: 1.25; }
.map-side .who small { color: #9d9ab5; }
.map-side .back { background: none; border: 0; color: var(--gold); cursor: pointer; padding: 0 0 10px; font: 600 13px var(--sans); }

.chip.women { border-color: var(--terra); }

/* reveal */
.js-reveal .reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s ease, transform .9s ease; }
.js-reveal .reveal.in { opacity: 1; transform: none; }

@media (max-width: 1180px) {
  .today-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .map-wrap { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .story-grid { grid-template-columns: 1fr 1fr; }
  .story.s0 { grid-column: span 2; grid-row: auto; }
  .story.s0 figure { min-height: 0; aspect-ratio: 16 / 9; }
  .today-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .story-grid { grid-template-columns: 1fr; }
  .story.s0 { grid-column: auto; }
  .today-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rb { width: 72px; height: 92px; }
  .head h2 { flex-direction: column; gap: 8px; }
  .head .num { top: 0; }
}

/* small chips never show the emblem's field label */
.s-people .ph.none::after, .m-related .ph.none::after { display: none; }

/* lead story: the painting takes all the extra height, the text keeps its natural size (no empty box) */
.story.s0 > div { flex: none; }
.story.s0 figure { position: relative; flex: 1 1 auto; }
.story.s0 figure img { position: absolute; inset: 0; }

/* person sheet: best known for + Wikipedia summary */
.m-known ul { list-style: none; padding: 0; margin: 6px 0 14px; display: grid; gap: 6px; }
.m-known li { display: flex; flex-direction: column; border-left: 3px solid var(--gold); padding: 4px 0 4px 12px; font-weight: 600; line-height: 1.3; }
.m-known li span { font: 600 10px var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.m-summary p { margin: 0 0 4px; line-height: 1.6; color: #34354c; }
.m-summary small { color: var(--muted); font-size: 12px; }
.rising { background-color: var(--paper); }

/* phone menu: hamburger opens a full-width list of every section */
.menu-btn { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper);
  flex-direction: column; justify-content: center; align-items: center; gap: 5px; cursor: pointer; padding: 0; }
.menu-btn span { width: 20px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s, opacity .2s; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 900px) {
  .menu-btn { display: flex; }
  .top nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; gap: 0; padding: 6px var(--gut) 14px; display: none; box-shadow: 0 18px 30px -20px rgba(0,0,0,.35); }
  .top nav.open { display: flex; }
  .top nav a, .top nav a:not(.pill) { display: block; padding: 12px 2px; border-bottom: 1px solid var(--line); font-size: 17px; }
  .top nav .pill { margin-top: 10px; text-align: center; border-bottom: 0; }
}

/* person sheet on phones: the photo keeps its own box, the text starts below it */
.m-photo { overflow: hidden; }
@media (max-width: 900px) { .m-photo { max-height: none; aspect-ratio: 1 / 1; min-height: 0; } .m-photo img { object-position: center 20%; } }

/* section intros: italic serif line beside a thin gold rule */
.head p { font: italic 400 clamp(18px, 1.5vw, 22px)/1.45 var(--serif); color: var(--ink-2); max-width: 40ch;
  border-left: 2px solid var(--gold); padding: 2px 0 2px 16px; }
.map .head p, .everyday .head p { color: #d8d4ea; }
/* born on this day: calendar badge */
.today-intro { display: flex; align-items: center; gap: 16px; }
.cal { flex: none; width: 64px; border-radius: 12px; overflow: hidden; background: var(--paper); text-align: center;
  box-shadow: 0 10px 22px -14px rgba(29,35,64,.6); border: 1px solid var(--line); }
.cal span { display: block; background: var(--terra); color: #fff; font: 700 11px/1 var(--sans); letter-spacing: .16em; padding: 6px 0 5px; }
.cal b { display: block; font: 600 30px/1 var(--serif); color: var(--ink); padding: 8px 0 9px; }
@media (max-width: 560px) { .today-intro { gap: 12px; } .cal { width: 56px; } .cal b { font-size: 26px; } }

/* areas of achievement: mega menu (3 x 6 = 18, full rows) */
.areas { position: relative; }
.areas-btn { background: none; border: 0; font: inherit; font-weight: 500; color: inherit; cursor: pointer; padding: 0; display: flex; gap: 4px; align-items: center; }
.areas-btn span { font-size: 11px; transition: transform .2s; }
.areas-btn[aria-expanded="true"] span { transform: rotate(180deg); }
.areas-btn:hover { color: var(--terra); }
.areas-menu { position: absolute; top: calc(100% + 18px); left: 50%; transform: translateX(-50%); width: min(860px, 92vw);
  background: var(--paper); border: 1px solid var(--line); border-radius: 20px; padding: 18px 20px 20px; z-index: 30;
  box-shadow: 0 30px 60px -30px rgba(29,35,64,.55); }
.areas-menu[hidden] { display: none; }
.areas-menu > div { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px 14px; }
.areas-menu button { display: flex; align-items: center; gap: 12px; background: none; border: 0; border-radius: 12px; padding: 7px; cursor: pointer;
  text-align: left; font: inherit; color: var(--ink); }
.areas-menu button:hover { background: var(--cream); }
.areas-menu img { width: 54px; height: 40px; object-fit: cover; border-radius: 8px; flex: none; }
.areas-menu span { display: flex; flex-direction: column; font-weight: 600; font-size: 15px; line-height: 1.2; }
.areas-menu small { color: var(--terra); font-weight: 500; font-size: 12px; margin-top: 2px; }
@media (max-width: 900px) {
  .areas { border-bottom: 1px solid var(--line); }
  .areas-btn { width: 100%; justify-content: space-between; padding: 12px 2px; font-size: 17px; }
  .areas-menu { position: static; transform: none; width: auto; border: 0; box-shadow: none; padding: 0 0 12px; background: none; }
  .areas-menu .eyebrow { display: none; }
  .areas-menu > div { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .areas-menu img { width: 44px; height: 34px; }
  .areas-menu span { font-size: 14px; }
}

/* areas panel anchors to the whole header (never cut off); header links never wrap */
.top nav a, .areas-btn { white-space: nowrap; }
.areas { position: static; }
.areas-menu { top: 100%; left: var(--gut); right: var(--gut); transform: none; width: auto; max-width: 900px; margin: 10px auto 0; }
@media (max-width: 1180px) {
  .menu-btn { display: flex; }
  .top nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; gap: 0; padding: 6px var(--gut) 14px; display: none; box-shadow: 0 18px 30px -20px rgba(0,0,0,.35);
    max-height: calc(100vh - 80px); overflow-y: auto; }
  .top nav.open { display: flex; }
  .top nav a, .top nav a:not(.pill) { display: block; padding: 12px 2px; border-bottom: 1px solid var(--line); font-size: 17px; }
  .top nav .pill { margin-top: 10px; text-align: center; border-bottom: 0; }
  .areas { border-bottom: 1px solid var(--line); }
  .areas-btn { width: 100%; justify-content: space-between; padding: 12px 2px; font-size: 17px; }
  .areas-menu { position: static; width: auto; max-width: none; margin: 0; border: 0; box-shadow: none; padding: 0 0 12px; background: none; }
  .areas-menu .eyebrow { display: none; }
  .areas-menu > div { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 700px) { .areas-menu > div { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* achievements: same cards as the people, names link to each person */
.achievements { background-color: var(--paper); }
.card.ach .by { color: var(--ink); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 3px; cursor: pointer; }
.card.ach .by:hover { color: var(--gold); }
.brand .wm .tld { font: 500 .62em/1 var(--sans); font-style: normal; color: var(--terra); margin-left: 1px; }
.foot .brand .wm .tld { color: var(--gold); }
.brand .wm.one { flex-direction: row; align-items: baseline; }
/* a long profile no longer stretches the portrait column (and zooms the face): photo keeps 4:5 and stays in view */
@media (min-width: 901px) { .m-photo { align-self: start; aspect-ratio: 4 / 5; min-height: 0; position: sticky; top: 0; } }
