/* Palette matched to jrow.org/membership and /who_we_are */
:root {
  --bg: #17121f;
  --surface: #221b2e;
  --surface-2: #2a2040;
  --line: #43385a;
  --text: #ffffff;
  --text-2: #d4cde3;
  --muted: #b3a9c9;
  --accent: #b9adf7;
  --accent-soft: rgba(185, 173, 247, .14);
  --btn: #ffffff;
  --btn-text: #2a2040;
  --sepia: #e8d9b5;
  --shadow: 0 24px 60px -24px rgba(0, 0, 0, .7);
  --sans: "Open Sans", Arial, sans-serif;
  --ease: cubic-bezier(.22, .8, .2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text-2);
  font: 18px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
button { font: inherit; color: inherit; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

/* ---------- Site header (same as /who_we_are) ---------- */
.site-header {
  position: relative; z-index: 1000; background: #000;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 16px clamp(16px, 4vw, 52px);
}
.site-logo img { display: block; width: 125px; height: auto; }
.site-nav { display: flex; gap: 28px; }
.site-nav a {
  color: #fff; text-decoration: none; font: 400 18px/1 var(--sans); padding: 8px 0;
  border-bottom: 2px solid transparent; transition: color .2s, border-color .2s;
}
.site-nav a:hover { color: var(--accent); }
.site-nav a[aria-current="page"] { color: #adadad; }
.nav-toggle { display: none; }

@media (max-width: 820px) {
  .site-logo img { width: 104px; }
  .nav-toggle {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 44px; height: 44px; padding: 10px; border: 0; background: none; cursor: pointer;
  }
  .nav-toggle span { display: block; height: 2px; background: #fff; border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .site-nav {
    position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0;
    background: #000; border-top: 1px solid var(--line); padding: 8px 16px 16px;
    opacity: 0; transform: translateY(-8px); pointer-events: none; transition: opacity .25s, transform .25s var(--ease);
  }
  .site-nav.is-open { opacity: 1; transform: none; pointer-events: auto; }
  .site-nav a { padding: 14px 4px; border-bottom: 1px solid #1f1a28; font-size: 18px; }
}

/* ---------- Shared ---------- */
main > section { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
  background: var(--btn); color: var(--btn-text); border: 2px solid var(--btn);
  border-radius: 999px; padding: 14px 28px; font-size: 18px; font-weight: 700;
  transition: background .2s, border-color .2s, transform .2s var(--ease);
}
.btn:hover { background: var(--accent); border-color: var(--accent); transform: translateY(-2px); }
.btn.ghost { background: transparent; color: #fff; border-color: #fff; }
.btn.ghost:hover { background: #fff; color: var(--btn-text); }
.sec-head { text-align: center; margin: 0 auto 36px; max-width: 640px; }
.sec-head h2 { margin: 0; font: 300 clamp(30px, 4vw, 44px)/1.15 var(--sans); color: var(--text); }
.sec-head p { margin: 10px 0 0; color: var(--muted); }

/* Sections ease in as you scroll */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Hero ---------- */
main > .hero {
  max-width: none; position: relative; overflow: hidden; text-align: center;
  padding: clamp(80px, 13vw, 150px) 24px clamp(70px, 10vw, 120px);
  background:
    linear-gradient(rgba(58, 44, 92, .78), rgba(23, 18, 31, 1)),
    url("https://jrow.org/wp-content/uploads/2018/05/p021.jpg") center 30% / cover;
}
.hero::after { /* soft vintage vignette */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 45%, rgba(10, 7, 15, .55));
}
.hero > * { position: relative; z-index: 1; }
.eyebrow {
  display: inline-block; margin: 0 0 18px; padding: 6px 16px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .35); color: var(--sepia);
  font-size: 14px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
}
.hero h1 { margin: 0 auto; max-width: 1060px; font: 300 clamp(32px, 4.8vw, 58px)/1.15 var(--sans); color: #fff; }
.hero h1 + .btn { margin-top: 34px; }

/* ---------- Timeline ---------- */
.timeline { margin-top: 90px; }
.tl-track {
  position: relative; display: flex; justify-content: space-between; gap: 6px;
  max-width: 980px; margin: 0 auto 34px; padding: 0 4px;
}
.tl-line { position: absolute; left: 26px; right: 26px; top: 21px; height: 3px; background: var(--line); border-radius: 3px; }
.tl-line i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--accent), #fff); border-radius: 3px; transition: width .6s var(--ease); }
.tl-dot {
  position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 10px;
  border: 0; background: none; cursor: pointer; padding: 0; min-width: 52px;
}
.tl-dot i {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: var(--bg); border: 3px solid var(--line); transition: border-color .3s, background .3s, transform .3s var(--ease);
}
.tl-dot i::before { content: ""; width: 12px; height: 12px; transform: rotate(45deg); background: var(--line); transition: background .3s; }
.tl-dot span { font-size: 15px; font-weight: 700; color: var(--muted); transition: color .3s; white-space: nowrap; }
.tl-dot.done i { border-color: var(--accent); }
.tl-dot.done i::before { background: var(--accent); }
.tl-dot[aria-selected="true"] i { background: var(--accent); border-color: #fff; transform: scale(1.15); box-shadow: 0 0 0 6px var(--accent-soft); }
.tl-dot[aria-selected="true"] i::before { background: #fff; }
.tl-dot[aria-selected="true"] span, .tl-dot:hover span { color: #fff; }

.tl-stage { position: relative; display: flex; align-items: center; gap: 18px; }
.tl-card {
  flex: 1; min-height: 420px; display: grid; grid-template-columns: 1.05fr 1fr; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); border-radius: 6px; box-shadow: var(--shadow);
  touch-action: pan-y;
}
.tl-media { position: relative; margin: 0; background: #0f0b15; min-height: 300px; overflow: hidden; }
.tl-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: sepia(.35) contrast(1.05); }
.tl-media figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 18px 12px;
  background: linear-gradient(transparent, rgba(10, 7, 15, .85)); color: var(--text-2); font-size: 14px; font-style: italic;
}
.tl-media.no-photo { display: grid; place-items: center; background: radial-gradient(circle at 50% 40%, #33275095, #0f0b15 70%); }
.tl-media.no-photo svg { width: 46%; max-width: 200px; stroke: var(--accent); fill: none; stroke-width: 1.2; stroke-linejoin: round; opacity: .9; }
.tl-body { padding: clamp(26px, 4vw, 46px); display: flex; flex-direction: column; justify-content: center; }
.tl-year { font: 300 clamp(56px, 7vw, 92px)/.9 var(--sans); color: var(--accent); letter-spacing: -.02em; }
.tl-body h3 { margin: 14px 0 12px; font: 600 clamp(24px, 2.6vw, 30px)/1.2 var(--sans); color: #fff; }
.tl-body p { margin: 0; }
.tl-card.swap .tl-media img, .tl-card.swap .tl-media svg { animation: tlImg .7s var(--ease); }
.tl-card.swap .tl-body > * { animation: tlTxt .6s var(--ease) both; }
.tl-card.swap .tl-body > :nth-child(2) { animation-delay: .06s; }
.tl-card.swap .tl-body > :nth-child(3) { animation-delay: .12s; }
@keyframes tlImg { from { opacity: 0; transform: scale(1.06); } }
@keyframes tlTxt { from { opacity: 0; transform: translateX(18px); } }

.tl-arrow {
  flex: none; width: 54px; height: 54px; border-radius: 50%; border: 2px solid var(--line);
  background: var(--surface); display: grid; place-items: center; cursor: pointer;
  transition: background .2s, border-color .2s, opacity .2s;
}
.tl-arrow svg { width: 24px; height: 24px; fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.tl-arrow:hover:not(:disabled) { background: var(--btn); border-color: var(--btn); }
.tl-arrow:hover:not(:disabled) svg { stroke: var(--btn-text); }
.tl-arrow:disabled { opacity: .3; cursor: default; }
.tl-count { text-align: center; color: var(--muted); font-size: 15px; margin: 16px 0 0; }

/* ---------- Sartain & Poe ---------- */
.poe { margin-top: 120px; }
.poe .sec-head .eyebrow { margin-bottom: 14px; }
.poe-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(30px, 5vw, 64px); align-items: center; }
.poe-portraits { position: relative; height: 440px; }
.portrait {
  position: absolute; margin: 0; width: 58%; padding: 12px 12px 0; background: #f4efe4;
  border-radius: 4px; box-shadow: var(--shadow); transition: transform .5s var(--ease);
}
.portrait img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; filter: sepia(.25); }
.portrait figcaption { color: #3a2f22; font-size: 15px; font-style: italic; text-align: center; padding: 8px 0 10px; }
.portrait.tilt-l { left: 0; top: 0; transform: rotate(-5deg); }
.portrait.tilt-r { right: 0; bottom: 0; transform: rotate(4deg); z-index: 1; }
.poe-portraits:hover .tilt-l { transform: rotate(-8deg) translateX(-10px); }
.poe-portraits:hover .tilt-r { transform: rotate(7deg) translateX(10px); }
.poe-lead { font-size: clamp(21px, 2.3vw, 25px); line-height: 1.45; color: #fff; font-weight: 300; margin: 0 0 18px; }
.poe-text p + p { margin-top: 14px; }
.poe-text strong { color: #fff; }

.emily {
  margin-top: 56px; display: grid; grid-template-columns: 170px 1fr; gap: 28px; align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 26px;
}
.emily img { width: 170px; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 4px; filter: sepia(.2); }
.emily .eyebrow { margin-bottom: 10px; font-size: 12px; }
.emily h3 { margin: 0 0 8px; font: 600 24px/1.2 var(--sans); color: #fff; }
.emily p { margin: 0; }

/* ---------- Quiz flip cards ---------- */
.quiz { margin-top: 120px; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.flip {
  position: relative; min-height: 270px; border: 0; padding: 0; background: none; cursor: pointer;
  perspective: 1000px; text-align: left;
}
.face {
  position: absolute; inset: 0; display: flex; flex-direction: column; gap: 12px; padding: 26px 24px;
  border-radius: 16px; backface-visibility: hidden; -webkit-backface-visibility: hidden;
  transition: transform .7s var(--ease); font-size: 18px; line-height: 1.45;
}
.face em { font-style: normal; font-size: 13px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.front { background: var(--surface); border: 2px solid var(--line); color: #fff; }
.front::after { content: "Tap to reveal"; margin-top: auto; font-size: 14px; font-weight: 600; color: var(--muted); }
.flip:hover .front { border-color: var(--accent); }
.back { background: linear-gradient(150deg, #fff, #e9e4ff); color: var(--btn-text); transform: rotateY(180deg); }
.back em { color: #6a58c9; }
.back strong { font-size: 24px; line-height: 1.2; }
.flip[aria-pressed="true"] .front { transform: rotateY(-180deg); }
.flip[aria-pressed="true"] .back { transform: rotateY(0); }

/* ---------- Film strip photo reel ---------- */
main > .reel { margin-top: 120px; max-width: none; padding: 0; }
.reel .sec-head { padding: 0 24px; }
.reel .sec-head .eyebrow { margin-bottom: 14px; }
.reel-eras { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0 16px 26px; }
.reel-eras button {
  border: 1px solid var(--line); background: var(--surface); color: var(--text-2); border-radius: 999px;
  padding: 10px 18px; font-size: 16px; font-weight: 600; cursor: pointer; transition: background .2s, color .2s, border-color .2s;
}
.reel-eras button:hover { border-color: var(--accent); color: #fff; }
.reel-eras button[aria-pressed="true"] { background: var(--btn); color: var(--btn-text); border-color: var(--btn); }
.reel-wrap { position: relative; }
.filmstrip {
  --hole: rgba(255, 255, 255, .85);
  display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding: 34px max(24px, calc((100vw - 1180px) / 2)); scroll-padding-inline: max(24px, calc((100vw - 1180px) / 2));
  background-color: #0b0910;
  /* sprocket holes along the top and bottom like real film */
  background-image:
    repeating-linear-gradient(90deg, var(--hole) 0 14px, transparent 14px 34px),
    repeating-linear-gradient(90deg, var(--hole) 0 14px, transparent 14px 34px);
  background-size: 100% 10px, 100% 10px; background-position: 0 11px, 0 calc(100% - 11px); background-repeat: no-repeat;
  border-top: 1px solid #000; border-bottom: 1px solid #000; scrollbar-width: none; cursor: grab;
}
.filmstrip::-webkit-scrollbar { display: none; }
.filmstrip.dragging { cursor: grabbing; scroll-snap-type: none; scroll-behavior: auto; }
.frame {
  position: relative; flex: none; width: 320px; height: 240px; margin: 0; padding: 0; border: 0; border-radius: 4px;
  overflow: hidden; background: #1d1828; scroll-snap-align: start; cursor: zoom-in;
  box-shadow: 0 0 0 3px #000, 0 10px 24px rgba(0, 0, 0, .6);
}
.frame img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s var(--ease), filter .4s; filter: sepia(.15); pointer-events: none; }
.frame:hover img, .frame:focus-visible img { transform: scale(1.05); filter: none; }
.frame .cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 10px 12px 9px; text-align: left;
  background: rgba(14, 10, 20, .72); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  color: #fff; font-size: 14px; line-height: 1.35;
}
.frame .cap b { display: block; color: var(--accent); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 2px; }
.frame .cap small { display: block; color: var(--muted); font-size: 11px; margin-top: 3px; }
.reel-prev, .reel-next { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; background: rgba(23, 18, 31, .9); }
.reel-prev { left: 12px; }
.reel-next { right: 12px; }
.reel-note { text-align: center; color: var(--muted); font-size: 14px; margin: 18px 24px 0; }

.lightbox {
  width: min(1100px, 94vw); max-height: 94vh; padding: 0; border: 0; border-radius: 6px; background: #0b0910; color: var(--text-2);
  overflow: visible;
}
.lightbox::backdrop { background: rgba(5, 3, 8, .88); }
.lightbox figure { margin: 0; }
.lightbox img { display: block; width: 100%; max-height: 76vh; object-fit: contain; background: #000; border-radius: 6px 6px 0 0; }
.lightbox figcaption { padding: 16px 22px 20px; font-size: 18px; }
.lightbox figcaption b { display: block; color: var(--accent); font-size: 14px; letter-spacing: .12em; text-transform: uppercase; }
.lightbox figcaption small { display: block; color: var(--muted); font-size: 14px; margin-top: 4px; }
.lb-close {
  position: absolute; top: -18px; right: -18px; z-index: 3; width: 44px; height: 44px; border-radius: 50%;
  border: 0; background: #fff; color: var(--btn-text); font-size: 28px; line-height: 1; cursor: pointer;
}
.lb-prev, .lb-next { position: absolute; top: 40%; z-index: 2; background: rgba(23, 18, 31, .9); }
.lb-prev { left: -27px; }
.lb-next { right: -27px; }

/* ---------- Closing ---------- */
main > .cta {
  margin-top: 120px; text-align: center; max-width: 1132px; padding: 56px 24px;
  background: linear-gradient(135deg, #3a2c5c, #2c2340); border: 2px solid var(--accent); border-radius: 6px;
}
.cta h2 { margin: 0 0 10px; font: 300 clamp(28px, 3.6vw, 40px)/1.2 var(--sans); color: #fff; }
.cta p { margin: 0 auto; max-width: 620px; }
.cta-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 28px; }
@media (max-width: 1180px) { main > .cta { margin-left: 24px; margin-right: 24px; } }

.sources { text-align: center; color: var(--muted); font-size: 14px; margin: 34px 24px 0; }

/* ---------- Footer (same as /who_we_are) ---------- */
.site-footer {
  margin-top: 56px; padding: 36px 24px 28px; text-align: center; border-top: 1px solid var(--line);
  color: var(--text-2); font-size: 14px;
}
.site-footer p { margin: 0 0 10px; }
.foot-social { display: flex; align-items: center; justify-content: center; gap: 12px; text-transform: uppercase; font-size: 12px; font-weight: 700; letter-spacing: .14em; }
.foot-social a {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--line); transition: background .2s, border-color .2s;
}
.foot-social a:hover { background: var(--btn); border-color: var(--btn); }
.foot-social a:hover svg { fill: var(--btn-text); }
.foot-social svg { width: 17px; height: 17px; fill: #fff; }

/* ---------- Tablet ---------- */
@media (max-width: 980px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .poe-grid { grid-template-columns: 1fr; }
  .poe-portraits { height: 400px; max-width: 520px; width: 100%; margin: 0 auto; }
  .tl-card { grid-template-columns: 1fr; }
  .tl-media { min-height: 260px; }
}

/* ---------- Phones ---------- */
@media (max-width: 640px) {
  body { font-size: 17px; }
  main > section { padding: 0 16px; }
  .tl-track { overflow-x: auto; justify-content: flex-start; gap: 18px; padding: 4px 4px 8px; scrollbar-width: none; }
  .tl-track::-webkit-scrollbar { display: none; }
  .tl-line { display: none; }
  .tl-arrow { position: absolute; top: 130px; z-index: 2; width: 46px; height: 46px; background: rgba(23, 18, 31, .85); }
  .tl-arrow.prev { left: 8px; }
  .tl-arrow.next { right: 8px; }
  .tl-stage { display: block; }
  .tl-card { min-height: 0; }
  .cards { grid-template-columns: 1fr; }
  .poe-portraits { height: 330px; }
  .frame { width: 260px; height: 200px; }
  .reel-prev, .reel-next { display: none; }
  .reel-eras button { padding: 8px 14px; font-size: 15px; }
  .lb-prev { left: 6px; } .lb-next { right: 6px; }
  .lb-close { top: 8px; right: 8px; }
  .emily { grid-template-columns: 1fr; text-align: center; }
  .emily img { margin: 0 auto; width: 150px; }
  .flip { min-height: 220px; }
  main > .cta { margin-left: 16px; margin-right: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .face, .tl-line i { transition: none; }
  .tl-card.swap * { animation: none !important; }
}
