/* 1842 Fund Annual Meeting.
   Palette and faces are the 1842 Fund Design System (the deck's). Light only.
   The one bold moment is the hero "screening room": title, player, programme.
   Everything else stays quiet: cream paper, forest ink, bronze for emphasis. */
:root {
  --forest: #062f18;
  --forest-2: #0b3a20;
  --forest-3: #124a2b;
  --cream: #fcf5f0;
  --paper: #fffcfa;
  --line: #ece2d6;
  --rule: #d9cfa8;
  --bronze: #a48443;
  --bronze-ink: #7d6430;   /* bronze dark enough for small text on cream (4.9:1) */
  --tan: #c6a27d;
  --butter: #f9edc4;
  --cream-2: #e7ddb8;
  --sage: #6f7757;         /* darkened sage for text on cream (4.6:1) */
  --sage-light: #bcc3a0;
  --ink: #062f18;
  --ink-2: #33433a;
  --ok: #2f7a3e;
  --warn: #d9a21b;
  --serif: 'Libre Baskerville', Georgia, serif;
  --sans: 'Signika', 'Segoe UI', Arial, sans-serif;
  --mono: 'Roboto Mono', 'SFMono-Regular', Menlo, monospace;
  --gutter: clamp(16px, 4.5vw, 64px);
  --maxw: 1240px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}
[hidden] { display: none !important; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 400 17px/1.6 var(--sans); overflow-x: hidden; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; margin: 0; }
p { margin: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
:focus-visible { outline: 2px solid var(--bronze); outline-offset: 3px; border-radius: 4px; }
.num, .time { font-family: var(--mono); font-variant-numeric: tabular-nums; letter-spacing: .02em; }

/* ============ gate ============ */
.gate { position: relative; min-height: 100svh; display: grid; place-items: center; padding: 32px 16px; background: var(--forest); overflow: hidden; }
.gate::before { content: ""; position: absolute; inset: -20px; background: url(img/dome-lake.webp) center 35% / cover no-repeat; opacity: .42; filter: saturate(.8); }
.gate::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 45%, rgba(6,47,24,.55) 0%, rgba(6,47,24,.94) 70%); }
.gate-card { position: relative; z-index: 1; width: min(440px, 100%); text-align: center; color: var(--butter); display: flex; flex-direction: column; align-items: center; }
.gate-logo { width: 44px; height: auto; margin-bottom: 28px; filter: drop-shadow(0 6px 18px rgba(0,0,0,.35)); }
.gate-kicker { font-size: 15px; color: var(--tan); letter-spacing: .04em; }
.gate-card h1 { font-size: clamp(36px, 8vw, 52px); line-height: 1.08; margin: 10px 0 14px; color: var(--butter); }
.gate-sub { color: var(--cream-2); font-size: 15.5px; max-width: 340px; opacity: .9; }
#gate-form { display: flex; width: 100%; margin-top: 30px; background: rgba(252,245,240,.08); border: 1px solid rgba(249,237,196,.28); border-radius: 12px; padding: 5px; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
#gate-form:focus-within { border-color: var(--tan); }
#gate-form input { flex: 1; min-width: 0; font: inherit; font-size: 16px; padding: 12px 14px; border: 0; background: transparent; color: var(--butter); outline: none; }
#gate-form input::placeholder { color: rgba(231,221,184,.6); }
#gate-form button { padding: 11px 22px; border: 0; border-radius: 8px; background: var(--butter); color: var(--forest); font-weight: 600; transition: background .15s; }
#gate-form button:hover { background: #fff6d8; }
#gate-form button:disabled { opacity: .6; cursor: progress; }
.gate-error { margin-top: 14px; color: #ffd9a8; font-size: 14px; }
.gate-legal { position: absolute; z-index: 1; bottom: 20px; left: 16px; right: 16px; text-align: center; font-size: 12px; color: rgba(188,195,160,.75); }

/* ============ top bar ============ */
.topbar { position: sticky; top: 0; z-index: 30; background: rgba(6,47,24,.93); color: var(--butter); backdrop-filter: saturate(1.2) blur(10px); -webkit-backdrop-filter: saturate(1.2) blur(10px); border-bottom: 1px solid rgba(249,237,196,.08); }
.topbar .wrap { display: flex; align-items: center; gap: 20px; height: 60px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; white-space: nowrap; }
.brand img { width: 15px; height: auto; }
.brand b { font: 400 17px var(--serif); }
.brand span { font-size: 14px; color: var(--sage-light); padding-left: 12px; border-left: 1px solid rgba(249,237,196,.2); }
@media (max-width: 560px) { .brand span { display: none; } }
.topnav { margin-left: auto; display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; mask-image: linear-gradient(90deg, #000 85%, transparent); -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); padding-right: 12px; }
@media (min-width: 900px) { .topnav { mask-image: none; -webkit-mask-image: none; padding-right: 0; } }
.topnav::-webkit-scrollbar { display: none; }
.topnav a { position: relative; text-decoration: none; font-size: 14px; color: var(--sage-light); padding: 8px 11px; border-radius: 6px; white-space: nowrap; transition: color .15s; }
.topnav a:hover { color: var(--butter); }
.topnav a.on { color: var(--butter); }
.topnav a.on::after { content: ""; position: absolute; left: 11px; right: 11px; bottom: 2px; height: 2px; background: var(--bronze); border-radius: 2px; }

/* ============ hero: the screening room ============ */
.hero { position: relative; background: var(--forest); color: var(--butter); overflow: hidden; isolation: isolate; }
.hero-photo { position: absolute; inset: 0; z-index: -2; background: url(img/dome-lake.webp) center 28% / cover no-repeat; opacity: .38; transform: scale(1.04); }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background:
  linear-gradient(180deg, rgba(6,47,24,.35) 0%, rgba(6,47,24,.82) 38%, var(--forest) 64%),
  radial-gradient(ellipse at 15% 10%, rgba(164,132,67,.18), transparent 55%); }
.hero-top { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(28px, 5vw, 80px); align-items: end; padding-top: clamp(36px, 6vw, 80px); }
/* Phones: title, then the player, then the letter. */
@media (max-width: 900px) {
  .hero > .wrap { display: flex; flex-direction: column; }
  .hero-top { display: contents; }
  .hero-title { order: 1; padding-top: 36px; }
  .screen { order: 2; margin-top: 28px !important; }
  .letter { order: 3; margin-bottom: 48px; }
}
.hero-kicker { font-size: 15px; color: var(--tan); letter-spacing: .03em; margin-bottom: 18px; }
.hero h1 { font-size: clamp(46px, 7.4vw, 100px); line-height: .98; letter-spacing: -0.025em; color: var(--butter); }
.hero h1 .l2 { display: block; padding-left: clamp(0px, 6vw, 96px); }
.letter { position: relative; padding-left: 22px; border-left: 2px solid var(--bronze); }
.letter p { font: 400 clamp(15.5px, 1.35vw, 17px)/1.7 var(--sans); color: var(--cream-2); max-width: 520px; }
.letter .sig { margin-top: 14px; font: italic 400 17px var(--serif); color: var(--tan); }

.screen { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; margin-top: clamp(36px, 4.5vw, 56px); padding-bottom: clamp(48px, 7vw, 96px); align-items: start; }
@media (max-width: 1020px) { .screen { grid-template-columns: minmax(0, 1fr); } }
.screen-cap { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 14px; }
.screen-cap h2 { font-size: clamp(21px, 2.3vw, 27px); color: var(--butter); }
.screen-cap .time { font-size: 13px; color: var(--sage-light); }

/* programme: a printed running order with dotted leaders */
.programme { position: relative; background: var(--paper); color: var(--ink); border-radius: 4px; padding: 26px 24px 22px; box-shadow: 0 1px 0 rgba(255,255,255,.4) inset, 0 30px 60px -20px rgba(0,0,0,.55); }
.programme::before { content: ""; position: absolute; inset: 7px; border: 1px solid var(--rule); border-radius: 2px; pointer-events: none; }
.programme-head { text-align: center; padding: 0 0 14px; margin-bottom: 8px; border-bottom: 1px solid var(--rule); }
.programme-head img { width: 14px; margin: 0 auto 8px; opacity: .9; }
.programme-head h3 { font: italic 400 19px var(--serif); }
.programme-head p { font-size: 13px; color: var(--sage); margin-top: 2px; }
.prog { list-style: none; margin: 0; padding: 0; }
.prog-row { display: grid; grid-template-columns: 28px minmax(0, auto) 1fr auto; align-items: baseline; gap: 6px; width: 100%; padding: 7px 4px; border: 0; background: none; text-align: left; border-radius: 4px; text-decoration: none; }
.prog-row:hover { background: rgba(164,132,67,.09); }
.prog-row.on { background: rgba(164,132,67,.16); }
.prog-row .n { font: 400 14px var(--serif); color: var(--bronze-ink); }
.prog-row .label { font: 400 15px/1.3 var(--serif); }
.prog-row .dots { border-bottom: 1.5px dotted rgba(6,47,24,.28); transform: translateY(-4px); min-width: 12px; }
.prog-row .time { font-size: 12.5px; color: var(--ink-2); }
.prog-row.ceo { grid-template-columns: 28px minmax(0, auto) 1fr auto; padding-top: 4px; padding-bottom: 4px; }
.prog-row.ceo .label { font: 400 14px/1.3 var(--sans); color: var(--ink-2); }
.prog-row .label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prog-row.ceo .label small { color: var(--sage); font-size: 12.5px; }
.prog-row .soon { font: italic 12.5px var(--serif); color: var(--sage); }

/* hero load sequence: the page's one orchestrated motion */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(14px); animation: rise .9s var(--ease) forwards; }
  .reveal.d1 { animation-delay: .08s; } .reveal.d2 { animation-delay: .2s; } .reveal.d3 { animation-delay: .36s; } .reveal.d4 { animation-delay: .52s; }
  .hero-photo { animation: settle 2.4s var(--ease) forwards; }
  @keyframes rise { to { opacity: 1; transform: none; } }
  @keyframes settle { from { transform: scale(1.1); opacity: 0; } to { transform: scale(1.04); opacity: .38; } }
}

/* ============ video ============ */
.player { position: relative; aspect-ratio: 16 / 9; background: #021a0d; border-radius: 8px; overflow: hidden; box-shadow: 0 24px 60px -24px rgba(0,0,0,.6); }
.player video { width: 100%; height: 100%; display: block; background: #021a0d; }
.poster { position: absolute; inset: 0; border: 0; padding: 0; background: #021a0d center / cover no-repeat; display: grid; place-items: center; }
.poster::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(2,20,10,.6)); transition: background .2s; }
.poster:hover::after { background: linear-gradient(180deg, rgba(2,20,10,.1) 30%, rgba(2,20,10,.68)); }
.play { position: relative; z-index: 1; width: clamp(56px, 8vw, 78px); aspect-ratio: 1; border-radius: 50%; background: var(--butter); display: grid; place-items: center; box-shadow: 0 10px 30px rgba(0,0,0,.35); transition: transform .2s var(--ease); }
.play::before { content: ""; margin-left: 12%; border-style: solid; border-width: 11px 0 11px 18px; border-color: transparent transparent transparent var(--forest); }
.poster:hover .play { transform: scale(1.06); }
.poster .run { position: absolute; z-index: 1; right: 14px; bottom: 12px; font: 500 12.5px var(--mono); color: var(--butter); background: rgba(2,20,10,.7); padding: 3px 8px; border-radius: 4px; }
.placeholder { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; padding: 24px; color: var(--sage-light); background:
  radial-gradient(ellipse at 50% 38%, var(--forest-3) 0%, var(--forest) 72%); }
.placeholder::before { content: ""; position: absolute; inset: 12px; border: 1px solid rgba(249,237,196,.12); border-radius: 4px; }
.placeholder img { width: 22px; opacity: .7; margin-bottom: 6px; }
.placeholder strong { font: 400 clamp(17px, 2.2vw, 23px) var(--serif); color: var(--butter); }
.placeholder span { font-size: 14px; max-width: 340px; }

/* ============ sections ============ */
.section { padding: clamp(56px, 8vw, 112px) 0; }
.section.alt { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sec-grid { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); }
@media (max-width: 900px) { .sec-grid { grid-template-columns: minmax(0, 1fr); } }
.sec-side { position: relative; }
@media (min-width: 901px) { .sec-side-in { position: sticky; top: 96px; } }
.sec-num { font: 400 clamp(56px, 7vw, 96px)/.9 var(--serif); color: var(--bronze); letter-spacing: -0.03em; }
.sec-side h2 { font-size: clamp(26px, 2.6vw, 34px); line-height: 1.15; margin-top: 16px; }
.sec-side p { color: var(--ink-2); margin-top: 12px; font-size: 16px; }
.sec-facts { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--rule); display: grid; gap: 4px; font-size: 14px; color: var(--sage); }
.sec-facts .time { color: var(--ink-2); }
.sec-main { display: flex; flex-direction: column; gap: 22px; min-width: 0; }

/* filmstrip */
.strip-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.strip-bar h3 { font: 600 14.5px var(--sans); color: var(--ink-2); }
.strip-bar .hint { font-size: 13.5px; color: var(--sage); }
.link-btn { background: none; border: 0; padding: 4px 0; font-size: 14.5px; font-weight: 600; color: var(--bronze-ink); text-decoration: underline; text-decoration-color: rgba(164,132,67,.4); text-underline-offset: 4px; }
.link-btn:hover { text-decoration-color: var(--bronze); }
.strip { display: grid; grid-auto-flow: column; grid-auto-columns: clamp(168px, 21vw, 232px); gap: 12px; overflow-x: auto; padding: 4px 2px 16px; margin: 0 -2px; scroll-snap-type: x proximity; scrollbar-width: thin; scrollbar-color: var(--rule) transparent; overscroll-behavior-x: contain; }
.thumb { position: relative; display: block; padding: 0; border: 0; border-radius: 5px; background: #fff; overflow: hidden; aspect-ratio: 16 / 9; scroll-snap-align: start; box-shadow: 0 0 0 1px var(--line), 0 1px 2px rgba(6,47,24,.05); transition: box-shadow .2s, transform .2s var(--ease); }
.thumb:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px var(--rule), 0 10px 24px -8px rgba(6,47,24,.25); }
.thumb img { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .3s; }
.thumb img.ready { opacity: 1; }
.thumb .num { position: absolute; left: 6px; bottom: 6px; font-size: 10.5px; background: rgba(6,47,24,.85); color: var(--butter); padding: 1px 6px; border-radius: 3px; }
.thumb.now { box-shadow: 0 0 0 3px var(--bronze), 0 10px 24px -8px rgba(6,47,24,.3); }
.thumb.now .num { background: var(--bronze); color: var(--forest); }

/* portfolio */
.featured { display: block; width: 100%; padding: 0; border: 0; background: #fff; border-radius: 6px; overflow: hidden; cursor: zoom-in; box-shadow: 0 0 0 1px var(--line), 0 20px 40px -24px rgba(6,47,24,.25); }
.featured img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; opacity: 0; transition: opacity .3s; }
.featured img.ready { opacity: 1; }
.cos-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-top: 18px; padding-top: 22px; border-top: 1px solid var(--rule); }
.cos-head h3 { font-size: clamp(22px, 2.2vw, 28px); }
.cos-head p { font-size: 14.5px; color: var(--sage); }
.co-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.co-card { display: flex; flex-direction: column; background: #fff; border-radius: 8px; overflow: hidden; text-decoration: none; box-shadow: 0 0 0 1px var(--line); transition: box-shadow .25s, transform .25s var(--ease); }
.co-card:hover { transform: translateY(-3px); box-shadow: 0 0 0 1px var(--rule), 0 18px 36px -18px rgba(6,47,24,.35); }
.co-still { position: relative; aspect-ratio: 16 / 9; background: var(--forest) center / cover no-repeat; display: grid; place-items: center; }
.co-still::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(2,20,10,.55)); }
.co-still .play { width: 44px; }
.co-still .play::before { border-width: 7px 0 7px 11px; }
.co-still .run { position: absolute; z-index: 1; right: 10px; bottom: 8px; font: 500 11.5px var(--mono); color: var(--butter); }
.co-still.none { background: radial-gradient(ellipse at 50% 40%, var(--forest-3), var(--forest) 75%); }
.co-still.none span { position: relative; z-index: 1; font: italic 14px var(--serif); color: var(--sage-light); }
.co-body { display: flex; flex-direction: column; gap: 12px; padding: 18px 18px 16px; flex: 1; }
.co-body .logo { height: 34px; width: auto; max-width: 180px; object-fit: contain; object-position: left center; opacity: 0; transition: opacity .3s; }
.co-body .logo.ready { opacity: 1; }
.co-body .tag { font-size: 14.5px; line-height: 1.5; color: var(--ink-2); flex: 1; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.co-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--sage); }
.status { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; font-weight: 600; color: var(--ok); white-space: nowrap; }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 18%, transparent); }
.status.warn { color: #9a6c00; }
.panel .status { color: #8fd19e; }
.panel .status.warn { color: var(--warn); }

/* ============ company page ============ */
.co-hero { background: var(--paper); border-bottom: 1px solid var(--line); }
.crumbs { padding-top: 22px; font-size: 14px; color: var(--sage); }
.crumbs a { color: var(--bronze-ink); font-weight: 600; text-decoration: none; }
.crumbs a:hover { text-decoration: underline; text-underline-offset: 3px; }
.co-head { padding: 28px 0 36px; display: grid; gap: 18px; }
.co-head .logo { height: clamp(42px, 6vw, 68px); width: auto; max-width: min(440px, 80vw); object-fit: contain; object-position: left center; }
.co-head .tagline { font: italic 400 clamp(19px, 2.3vw, 26px)/1.5 var(--serif); color: var(--ink); max-width: 880px; }
.co-head .meta { display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center; font-size: 14.5px; color: var(--sage); }
.co-head .meta a { color: var(--bronze-ink); font-weight: 600; text-underline-offset: 3px; }
.co-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: clamp(28px, 4vw, 48px); align-items: start; padding-top: clamp(32px, 4vw, 48px); padding-bottom: 56px; }
@media (max-width: 1020px) { .co-layout { grid-template-columns: minmax(0, 1fr); } }
.co-main { display: flex; flex-direction: column; gap: 36px; min-width: 0; }
.vid-cap { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 14px; }
.vid-cap h2 { font-size: clamp(21px, 2.2vw, 26px); }
.vid-cap .time { font-size: 13px; color: var(--sage); }
.summary { font: 400 clamp(17px, 1.6vw, 19.5px)/1.65 var(--sans); max-width: 68ch; }
.hr-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 720px) { .hr-cards { grid-template-columns: minmax(0, 1fr); } }
.hr-card { background: #fff; border-radius: 8px; padding: 22px 24px 24px; box-shadow: 0 0 0 1px var(--line); position: relative; overflow: hidden; }
.hr-card::before { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 4px; background: var(--ok); }
.hr-card.risk::before { background: var(--warn); }
.hr-card h3 { font-size: 19px; margin-bottom: 14px; }
.hr-card ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 14px; }
.hr-card li { font-size: 15.5px; line-height: 1.55; color: var(--ink-2); padding-left: 16px; position: relative; }
.hr-card li::before { content: ""; position: absolute; left: 0; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--ok); }
.hr-card.risk li::before { background: var(--warn); }
.hr-card li b { color: var(--ink); font-weight: 600; }
.people h3 { font-size: 19px; margin-bottom: 14px; }
.people-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.person { display: grid; grid-template-columns: 64px 1fr; gap: 16px; align-items: start; }
.person img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; background: var(--line); box-shadow: 0 0 0 3px var(--paper), 0 0 0 4px var(--rule); }
.person .nm { font: 400 17px var(--serif); }
.person .rl { color: var(--bronze-ink); font-size: 14px; font-weight: 600; }
.person .bio { font-size: 14.5px; color: var(--ink-2); margin-top: 6px; line-height: 1.5; }
.panel { background: var(--forest); color: var(--butter); border-radius: 10px; padding: 26px 24px 22px; display: flex; flex-direction: column; gap: 24px; box-shadow: 0 30px 60px -30px rgba(6,47,24,.55); }
@media (min-width: 1021px) { .panel { position: sticky; top: 84px; } }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding-bottom: 14px; border-bottom: 1px solid rgba(249,237,196,.14); }
.panel-head span:first-child { font: italic 400 17px var(--serif); color: var(--tan); }
.metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; margin: 0; }
.metrics dt { font-size: 13px; color: var(--sage-light); }
.metrics dd { margin: 2px 0 0; font: 400 20px/1.25 var(--serif); }
.panel h3 { font: 600 14px var(--sans); color: var(--tan); margin-bottom: 14px; }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.timeline li { position: relative; padding-left: 24px; }
.timeline li::before { content: ""; position: absolute; left: 0; top: 5px; width: 11px; height: 11px; border-radius: 50%; background: var(--butter); }
.timeline li.plan::before { background: var(--forest); border: 1.5px dashed var(--sage-light); }
.timeline li:not(:last-child)::after { content: ""; position: absolute; left: 5px; top: 20px; bottom: -14px; width: 1px; background: rgba(249,237,196,.3); }
.timeline .w { font-size: 13px; color: var(--sage-light); }
.timeline .w .time { color: var(--cream-2); }
.timeline .x { font-size: 15px; line-height: 1.45; }
.support { border-left: 2px solid var(--bronze); padding: 2px 0 2px 16px; font-size: 15px; line-height: 1.55; color: var(--cream-2); }
.slide-link { background: rgba(249,237,196,.06); border: 1px solid rgba(249,237,196,.22); color: var(--butter); border-radius: 8px; padding: 11px; font-size: 14.5px; font-weight: 600; transition: background .15s; }
.slide-link:hover { background: rgba(249,237,196,.12); }
.footnote { font-size: 13px; color: var(--sage); line-height: 1.55; max-width: 80ch; }
.co-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 28px 0 64px; border-top: 1px solid var(--line); }
.co-nav a { display: flex; flex-direction: column; gap: 4px; padding: 18px 20px; background: #fff; border-radius: 8px; text-decoration: none; box-shadow: 0 0 0 1px var(--line); transition: box-shadow .2s; }
.co-nav a:hover { box-shadow: 0 0 0 1px var(--rule), 0 12px 24px -16px rgba(6,47,24,.3); }
.co-nav a.next { text-align: right; }
.co-nav small { font-size: 13.5px; color: var(--sage); }
.co-nav strong { font: 400 19px var(--serif); }

/* ============ footer ============ */
.foot { background: var(--forest); color: var(--sage-light); font-size: 14px; }
.foot .wrap { padding-top: 48px; padding-bottom: 52px; display: grid; grid-template-columns: auto 1fr; gap: 22px 28px; align-items: start; }
.foot img { width: 26px; opacity: .85; grid-row: span 2; }
.foot p { max-width: 70ch; line-height: 1.6; }
.foot .links { display: flex; flex-wrap: wrap; gap: 8px 26px; }
.foot button, .foot a { background: none; border: 0; padding: 0; color: var(--butter); font-size: 14px; font-weight: 600; text-decoration: none; }
.foot button:hover, .foot a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ============ lightbox ============ */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(2, 18, 9, .97); display: grid; grid-template-rows: auto 1fr auto; animation: lbIn .2s ease-out; }
@keyframes lbIn { from { opacity: 0; } }
.lb-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 12px 16px 10px 20px; color: var(--cream-2); }
.lb-title { min-width: 0; display: flex; gap: 14px; align-items: baseline; }
.lb-count { font-size: 13px; color: var(--sage-light); white-space: nowrap; }
.lb-name { font: 400 15px var(--serif); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb-btn { background: none; border: 0; color: var(--butter); font-size: 22px; width: 44px; height: 44px; border-radius: 8px; }
.lb-btn:hover { background: rgba(249,237,196,.1); }
.lb-stage { position: relative; display: grid; place-items: center; padding: 0 clamp(8px, 7vw, 88px); min-height: 0; touch-action: pan-y; }
.lb-stage img { max-width: 100%; max-height: 100%; width: auto; height: auto; aspect-ratio: 16 / 9; object-fit: contain; border-radius: 3px; background: #fff; user-select: none; -webkit-user-drag: none; -webkit-touch-callout: none; box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(249,237,196,.08); border: 0; color: var(--butter); width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; transition: background .15s; }
.lb-nav::before { content: ""; width: 10px; height: 10px; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(135deg); margin-left: 4px; }
.lb-next::before { transform: rotate(-45deg); margin-left: -4px; }
.lb-nav:hover { background: rgba(249,237,196,.18); }
.lb-nav:disabled { opacity: .25; cursor: default; }
.lb-prev { left: 12px; } .lb-next { right: 12px; }
@media (max-width: 700px) { .lb-nav { top: auto; bottom: -64px; transform: none; } .lb-prev { left: calc(50% - 60px); } .lb-next { right: calc(50% - 60px); } .lb-stage { margin-bottom: 72px; } }
.lb-bottom { display: flex; justify-content: center; padding: 12px 16px 20px; min-height: 64px; }
.lb-seek { background: var(--butter); color: var(--forest); border: 0; border-radius: 999px; padding: 10px 20px; font-weight: 600; display: inline-flex; gap: 10px; align-items: center; }
.lb-seek::before { content: ""; border-style: solid; border-width: 6px 0 6px 10px; border-color: transparent transparent transparent var(--forest); }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
