/* ======================
   Styles Fixed — Ticker Fade + Fixed Banner
   Cleaned, compact, and tuned to:
   - keep the red banner fixed
   - allow the header/title to scroll away
   - make the timeline/ticker sticky and slide up until it hits the banner
   - restore left/right fade masks so items fade in from the right and out to the left
   - avoid horizontal scrollbar issues
   Notes: adjust --banner-h if your banner is taller than the default.
   ====================== */

:root{
  --color-primary: #3949ab;
  --color-accent: #e53935;
  --color-bg: #0d0d0d;
  --color-text: #fff;
  --link-color: #9fc4e8;
  --link-hover: var(--color-accent);
  --bg: #0f0f12;
  --bg-raised: #1a1a1e;
  --edge-light: rgba(255,255,255,0.08);
  --edge-dark: rgba(0,0,0,0.6);
  --accent: #d9443f;
  --text-bright: #f5f5f5;
  --text-soft: #c9c9c9;
  /* sensible defaults — change if your banner/ticker are different */
  --banner-h: 64px;   /* height reserved for the fixed red banner */
  --ticker-h: 44px;   /* height of the ticker bar */
  --page-max: 1440px;
  --section-max: 1280px;
  --narrative-max: 1160px;
}

/* Mobile adjustments */
@media (max-width:720px){
  :root {--banner-h:56px;--ticker-h:36px}
}

/* Light mode support */
@media (prefers-color-scheme: light){ 
  :root { --link-color: #0f3d63 } 
}

/* Accessibility: Respect user's motion preferences */
@media (prefers-reduced-motion: reduce){
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- RESET ---------- */
*{box-sizing:border-box;margin:0;padding:0}
html,body{height:100%;overflow-x:hidden}
html{
  scroll-behavior: smooth;
  /* Proximity snap: only snaps when the scroll comes to rest near a
     section header — fast scrolling flies straight through, slow
     scrolling gently lands and aligns the header below the fixed
     banner. Does not lock the page or fight deliberate over-scrolling. */
  scroll-snap-type: y proximity;
  scroll-padding-top: calc(var(--banner-h) + 8px);
}
body{
  font-family: 'Source Sans 3', 'Segoe UI', Helvetica, Arial, sans-serif;
  font-size:19px;line-height:1.65;
  background: linear-gradient(to bottom,#111,#0d0d0d);
  color:var(--color-text);
}

/* ---------- FIXED INJUSTICE BANNER (top "bun") ---------- */
.injustice-banner{
  position:fixed;top:0;left:0;right:0;
  height:var(--banner-h);
  min-height:48px; /* graceful fallback */
  display:flex;align-items:center;justify-content:center;
  z-index:9999;
  background:#b71c1c;color:#fff;font-weight:700;padding:0 1rem;
}
.injustice-banner .emphasized{display:block;font-weight:800}

/* ---------- TIMELINE BAR (fixed at bottom, semi-transparent, mouse-reactive) ---------- */
#timeline-bar{
  position:fixed;
  bottom:0;
  left:0;
  right:0;
  height:var(--ticker-h);
  line-height:var(--ticker-h);
  display:block;
  z-index:9998;
  background:#000;
  color:#fff;
  width:100%;
  overflow:hidden;
  /* fade edges so content softly appears from the right and fades out to the left */
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 12%, black 88%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 12%, black 88%, transparent 100%);
  /* semi-transparent by default */
  opacity:0.4;
  /* fast fade-in (0.2s), slow fade-out (1.5s) handled by JS */
  transition:opacity 1.5s ease;
  cursor:pointer;
}

#timeline-bar.ticker-active{
  opacity:1;
  transition:opacity 0.2s ease;
}

/* track that holds the event items; animation translates it left */
.timeline-bar-track{
  display:flex;align-items:center;gap:1.5rem;padding:0 1rem;white-space:nowrap;
  will-change:transform;animation:ticker-scroll 24s linear infinite;
}

@keyframes ticker-scroll{
  0%{transform:translateX(0)}
  100%{transform:translateX(-50%)} /* assumes duplicated content or long track */
}

/* small helpers for timeline content */
#timeline-bar .event{padding:0 .5rem;white-space:nowrap;font-size:.95rem}
#timeline-bar .dot{opacity:.6;padding:0 .4rem}

/* ---------- HAMBURGER NAVIGATION ---------- */
/* Hamburger button (top-left, hidden on homepage) */
.hamburger-toggle {
  position: fixed;
  top: calc(var(--banner-h) + 1rem);
  left: 1rem;
  z-index: 10000;
  background: rgba(26, 26, 30, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 0.75rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.hamburger-toggle:hover {
  background: rgba(26, 26, 30, 1);
  border-color: var(--accent);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.6);
}

.hamburger-toggle:focus {
  outline: 2px solid var(--link-color);
  outline-offset: 2px;
}

.hamburger-icon {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 24px;
}

.hamburger-icon .bar {
  width: 100%;
  height: 3px;
  background: var(--text-bright);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Animate to X when active */
.hamburger-toggle.hamburger-active .bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger-toggle.hamburger-active .bar:nth-child(2) {
  opacity: 0;
}

.hamburger-toggle.hamburger-active .bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Slide-in menu (desktop: vertical list) */
.hamburger-menu {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: min(320px, 85vw);
  background: linear-gradient(135deg, rgba(26, 26, 30, 0.98) 0%, rgba(15, 15, 18, 0.98) 100%);
  backdrop-filter: blur(12px);
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.6);
  transform: translateX(-100%);
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.3, 1);
  z-index: 9999;
  padding: calc(var(--banner-h) + 1rem) 0 2rem 0;
  overflow-y: auto;
}

.hamburger-menu.menu-open {
  transform: translateX(0);
}

.hamburger-menu-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.hamburger-menu-list li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.hamburger-menu-list a {
  display: block;
  padding: 1rem 1.5rem;
  color: var(--text-bright);
  text-decoration: none;
  font-size: 1.05rem;
  transition: all 0.2s ease;
}

.hamburger-menu-list a:hover {
  background: rgba(255, 255, 255, 0.05);
  padding-left: 2rem;
}

/* Menu item states */
/* Current page: BOLD, larger, solid fill */
.menu-item-current a {
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--accent);
  background: rgba(217, 68, 63, 0.1);
  border-left: 4px solid var(--accent);
  padding-left: calc(1.5rem - 4px);
}

/* Visited pages: outlined text (hollow letters) */
.menu-item-visited a {
  color: transparent;
  -webkit-text-stroke: 1px var(--text-soft);
  text-stroke: 1px var(--text-soft);
  font-weight: 400;
}

.menu-item-visited a:hover {
  -webkit-text-stroke-color: var(--link-color);
  text-stroke-color: var(--link-color);
}

/* Unvisited pages: normal solid */
.menu-item-unvisited a {
  font-weight: 400;
  color: var(--text-bright);
}

/* Overlay */
.hamburger-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 9998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.hamburger-overlay.overlay-visible {
  opacity: 1;
  pointer-events: auto;
}

/* Footer mini nav (mobile: horizontal layout) */
.footer-mini-nav {
  display: none; /* hidden on desktop */
  margin: 1rem 0;
}

.footer-mini-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  justify-content: center;
}

.footer-mini-nav-list a {
  color: var(--text-soft);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.footer-mini-nav-list a:hover {
  color: var(--link-color);
}

/* Footer mini nav states (same typography logic) */
.footer-mini-nav .menu-item-current a {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--accent);
}

.footer-mini-nav .menu-item-visited a {
  color: transparent;
  -webkit-text-stroke: 1px var(--text-soft);
  text-stroke: 1px var(--text-soft);
}

.footer-mini-nav .menu-item-visited a:hover {
  -webkit-text-stroke-color: var(--link-color);
  text-stroke-color: var(--link-color);
}

.footer-mini-nav .menu-item-unvisited a {
  color: var(--text-bright);
}

/* Mobile: show footer mini nav, adjust hamburger position */
@media (max-width: 720px) {
  .footer-mini-nav {
    display: block;
  }
  
  .hamburger-toggle {
    top: auto;
    bottom: calc(var(--ticker-h) + 1rem);
    right: 1rem;
    left: auto;
  }
  
  .hamburger-menu {
    width: 100vw;
  }
}

/* ---------- TRUTH REMINDER (timeline page typewriter + persistent bar) ---------- */
/* On timeline page: full-screen overlay with typewriter effect */
.truth-reminder {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(0,0,0,0.95);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  backdrop-filter: blur(4px);
}
.truth-reminder.active { display: flex; }
.truth-reminder .truth-text {
  font-size: clamp(2rem, 6vw, 5rem);
  font-weight: 800;
  color: #e53935;
  text-align: center;
  line-height: 1.15;
  max-width: 90%;
  letter-spacing: 1px;
  text-shadow: 0 4px 12px rgba(229,57,53,0.4);
  font-family: 'Spectral', 'Source Sans 3', system-ui, serif;
}
.truth-reminder.complete {
  animation: fadeOutReminder 1.2s ease forwards;
}
@keyframes fadeOutReminder {
  to { opacity: 0; pointer-events: none; }
}

/* Persistent bar (appears on all pages after timeline viewed) */
.truth-reminder-bar {
  position: sticky;
  top: var(--banner-h);
  z-index: 9997;
  background: linear-gradient(135deg, #1a1a1e 0%, #0d0d0d 100%);
  border-bottom: 2px solid rgba(229,57,53,0.4);
  padding: 0.8rem 1.5rem;
  text-align: center;
  opacity: 0;
  transform: translateY(-100%);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.truth-reminder-bar.visible {
  opacity: 1;
  transform: translateY(0);
}
.truth-reminder-bar .truth-text-persistent {
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  font-weight: 700;
  font-family: 'Source Sans 3', 'Segoe UI', Helvetica, Arial, sans-serif;
  color: var(--text-bright);
  margin: 0;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 6px rgba(0,0,0,0.6);
}

/* ---------- HEADER that scrolls away (center title area) ---------- */
/* top padding = banner only; ticker is now fixed at bottom so no top clearance needed for it */
header{display:block;text-align:center;padding:calc(var(--banner-h) + 1rem) 1rem 1.5rem}
.hero-content{padding:0 1rem}
.hero-title{
  font-size:clamp(2.8rem,7vw,5.2rem);
  margin:0 auto 14px;max-width:92%;
  color: var(--text-bright);
  text-shadow: 0 3px 12px rgba(0,0,0,0.55);
  letter-spacing: 0.6px;
}
.tagline-container{margin-top:.35rem}
.tagline-old{font-size:clamp(1.05rem,3vw,1.45rem);display:inline-block;position:relative;color:var(--text-soft)}
.tagline-old span::after{content:"";position:absolute;left:0;top:52%;height:1.5px;width:0;background:#e53935;animation:stripe 1s ease .45s forwards}
@keyframes stripe{to{width:100%}}
.tagline-new{font-size:clamp(1.1rem,3.2vw,1.9rem);display:inline-block;margin-left:.5rem;border-right:1px solid rgba(255,255,255,.12);padding-right:.4rem;white-space:nowrap;overflow:hidden;font-weight:700;letter-spacing:0.8px;color:var(--text-bright)}

/* ensure the header area does not get hidden behind the fixed elements initially.
   Instead of body padding (which caused horizontal shrink), we push the content below
   the fixed banner/ticker by adding top margin to the first big container(s).
*/
/* apply safe spacing to the main page content so it starts below the fixed banner only */
main, .site-body, #content { margin-top: var(--banner-h); }

/* Keep page content aligned to a responsive, wider site container. */
.narrative-page {
  width: min(100%, var(--page-max));
  margin: 0 auto;
  padding-inline: clamp(0.75rem, 2vw, 1.25rem);
}

/* ---------- CONTENT / SECTIONS ---------- */
section{width:min(100%,var(--section-max));margin:3rem auto;padding:1.8rem;background:rgba(255,255,255,0.03);border-radius:10px}
.article-image{width:280px;max-width:35%;float:left;margin:0 20px 20px 0;border-radius:12px;object-fit:cover}
.content-block{background:rgba(255,255,255,0.04);padding:18px;border-radius:12px;margin-bottom:20px}

/* ---------- BACK TO TOP / FOOTER ---------- */
#backToTop{position:fixed;right:24px;bottom:24px;border:none;padding:.6rem 1rem;border-radius:8px;background:#333;color:#fff;cursor:pointer;display:none;z-index:9999}
footer{background:#111;color:#eee;padding:1.25rem;text-align:center}

/* ---------- SMALL SCREEN TWEAKS ---------- */
.hero-title {font-size:clamp(2.3rem, 8vw, 3.2rem); line-height:1.05}
.article-image {width:160px;max-width:45%}
.timeline-bar-track {gap:1rem;padding:0 .6rem}

/* ---------- UTILITY ANIMATIONS ---------- */
@keyframes fadeInUp{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}

/* ---------- HOW TO TUNE ----------
 - If the red banner height differs, change --banner-h in :root to match.
 - If you need a different ticker speed, edit ticker-scroll duration.
 - If the ticker content is short/jumpy, duplicate the content inside .timeline-bar-track in HTML
   so the animation can loop smoothly (common pattern for CSS tickers).
*//* Family-loss photo layout */

/* ---------- TIMELINE PAGE (three-track) ---------- */
.timeline-container { padding: 1rem; }
.timeline-toolbar { display:flex; justify-content:space-between; gap:12px; align-items:center; margin-bottom:12px; padding:0.8rem 1rem; background:rgba(255,255,255,0.02); border-radius:8px }
.toolbar-label { font-weight:700; opacity:0.85; margin-right:0.4rem; font-size:0.95rem }
.timeline-toolbar [role="group"] { display:flex; gap:6px; align-items:center }
.timeline-toolbar .toolbar-left, .timeline-toolbar .toolbar-right { display:flex; gap:12px; align-items:center }
.timeline-toolbar .view-btn, .timeline-toolbar .filter-btn { 
  padding:.5rem .9rem; 
  border-radius:6px; 
  border:1px solid rgba(255,255,255,0.08); 
  background:rgba(255,255,255,0.02); 
  color:var(--text-bright); 
  cursor:pointer;
  font-family:'Source Sans 3', system-ui, sans-serif;
  font-size:0.9rem;
  font-weight:600;
  transition:all 0.2s ease;
}
.timeline-toolbar .view-btn:hover, .timeline-toolbar .filter-btn:hover { 
  background:rgba(255,255,255,0.06); 
  border-color:rgba(255,255,255,0.15);
  transform:translateY(-1px);
}
.timeline-toolbar .view-btn.active { 
  background:var(--accent); 
  color:#fff;
  border-color:var(--accent);
  box-shadow:0 2px 8px rgba(217,68,63,0.3);
}
.timeline-layout { display:grid; grid-template-columns: 1fr; gap:18px; position:relative }
.timeline-main { min-width:0 }
.timeline-visual { height:60px; margin-bottom:10px; display:flex; align-items:center; gap:6px; overflow:auto }
.timeline-visual .vseg { height:18px; background:rgba(255,255,255,0.06); border-radius:6px; display:inline-block }
.timeline-grid { display:block }
.timeline-header { display:grid; grid-template-columns: 140px 1fr 1fr 1fr; gap:12px; align-items:center; margin-bottom:8px }
.track-label { font-weight:700; opacity:.95 }
.time-row { display:grid; grid-template-columns: 140px 1fr 1fr 1fr; gap:12px; align-items:start; margin-bottom:12px }
.time-label { font-weight:700; padding-top:8px }
.time-label[data-time-unknown="true"] { 
  font-size:1.05rem; 
  color:var(--text-bright);
  background:linear-gradient(to right, rgba(217,68,63,0.12), transparent);
  padding:10px 12px;
  margin:0 -12px 8px -12px;
  border-left:3px solid var(--accent);
  display:block;
}
.timeline-block { padding:12px; background:rgba(255,255,255,0.03); border-radius:8px; min-height:56px; transition:transform .12s ease, box-shadow .12s ease }
.timeline-block:hover { transform:translateY(-3px); box-shadow: 0 6px 18px rgba(0,0,0,0.45); cursor:pointer }
.timeline-block.empty { opacity:.35 }
.timeline-block.hidden { display:none }
.timeline-block:focus { outline:3px solid rgba(57,73,171,0.25) }
.timeline-aside { 
  padding:18px; 
  background:linear-gradient(to bottom, rgba(51,51,51,0.95), rgba(30,30,30,0.98)); 
  border-radius:12px; 
  border:1px solid rgba(255,255,255,0.1);
  position:fixed; 
  pointer-events:none; 
  opacity:0; 
  transform:scale(0.95) translateY(-8px);
  transition: opacity .24s ease, transform .24s ease, pointer-events .24s ease;
  z-index:1000;
  max-width:380px;
  max-height:60vh;
  overflow:auto;
  box-shadow: 0 12px 48px rgba(0,0,0,0.6);
}
.timeline-aside.visible { 
  opacity:1; 
  pointer-events:auto;
  transform:scale(1) translateY(0);
}
.timeline-close-btn {
  position:absolute;
  top:10px;
  right:10px;
  background:transparent;
  border:none;
  color:var(--text-bright);
  font-size:1.4rem;
  cursor:pointer;
  padding:4px 8px;
  opacity:0.6;
  transition:opacity 0.2s ease;
}
.timeline-close-btn:hover {
  opacity:1;
}
.timeline-aside h3 { margin-top:20px; margin-bottom:12px; font-size:1.2rem }
@media (max-width:980px){
  .timeline-layout { grid-template-columns: 1fr; }
  .timeline-aside { position:fixed; max-width:calc(100vw - 32px); }
  .timeline-visual { height:48px }
}

/* ---------- LINK COLOR (better contrast, not neon) ---------- */

/* Content links (consistent, readable, non-neon) */
.chrome-card a, .sub-content a, main a { color: var(--link-color); text-decoration: none; transition: color .12s ease; }
.chrome-card a:hover, .sub-content a:hover, main a:hover { color: var(--link-hover); text-decoration: underline; }
.chrome-card a:focus, .sub-content a:focus, main a:focus { outline: 2px dashed rgba(255,255,255,0.06); outline-offset: 3px; }
.chrome-card a:visited, .sub-content a:visited, main a:visited { color: rgba(159,196,232,0.9); }

#site-footer a { color: var(--link-color); }
#site-footer a:hover { color: var(--link-hover); text-decoration:underline; }

.family-photo {
  width: 260px;
  max-width: 40%;
  border-radius: 14px;
  margin: 0 20px 20px 0;
  object-fit: cover;
}

/* Left-floating photo (Dave) */
.family-photo.left {
  float: left;
  margin-right: 22px;
}

/* Right-floating photo (Tiffany) */
.family-photo.right {
  float: right;
  margin-left: 22px;
}

/* Prevent wrapping around the bottom section */
.full-width {
  clear: both;
  padding-top: 1rem;
}
#site-footer {
  background: #111;
  color: #eee;
  padding: 2rem 1rem;
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.15);
  margin-top: 3rem;
}

/* Footer copyright year styling */
.copyright { margin-bottom: 0.5rem; font-size:0.95rem }
.copyright .year-bold { font-weight: 800 }
.copyright .year-light { opacity: 0.78; color: var(--text-soft); margin-left: 0.35rem }

/* Footer layout & nav consolidated */
#site-footer .site-quote { margin-bottom: 1.5rem; font-size: 1.1rem; }
.footer-content { display:flex; flex-direction:column; gap:12px; align-items:center; justify-content:center; max-width:1000px; margin:0 auto; }
.footer-content p { margin: 0.25rem 0 }
.footer-nav ul { list-style:none; display:flex; gap:12px; flex-wrap:wrap; justify-content:center; padding:0; margin:0 }
.footer-nav a { color:var(--link-color); text-decoration:none }
.footer-nav a:hover { text-decoration:underline }

/* Footer map (primary navigation) */
.footer-map {
  width: 100%;
  margin-top: 1rem;
}

.footer-map-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 1rem 1.5rem;
  align-items: start;
  width: 100%;
}

.footer-map-group h3 {
  margin: 0 0 0.5rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-soft);
}

.footer-map-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.footer-map-list a {
  color: var(--text-bright);
  text-decoration: none;
  font-size: 0.95rem;
}

.footer-map-list a:hover {
  color: var(--link-hover);
  text-decoration: underline;
}

.footer-map-item-current a {
  font-weight: 700;
  color: var(--accent);
}

.footer-map-item-visited a {
  color: transparent;
  -webkit-text-stroke: 1px var(--text-soft);
  text-stroke: 1px var(--text-soft);
}

.footer-map-item-visited a:hover {
  -webkit-text-stroke-color: var(--link-color);
  text-stroke-color: var(--link-color);
}

.footer-map-item-unvisited a {
  color: var(--text-bright);
}

.footer-map-item-locked a {
  opacity: 0.5;
  cursor: not-allowed;
  text-decoration: none;
}

.footer-map-note {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: var(--text-soft);
}

/* Welcome side card — slides in from right, non-blocking */
.welcome-card {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateX(110%) translateY(-50%);
  z-index: 99000;
  width: min(340px, calc(100vw - 2rem));
  background: var(--bg-raised, #18181c);
  border: 1px solid rgba(229,57,53,0.28);
  border-right: none;
  border-radius: 12px 0 0 12px;
  box-shadow: -6px 8px 40px rgba(0,0,0,0.55);
  padding: 1.25rem 1.1rem 1rem;
  color: var(--text-bright, #f0ede8);
  transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  pointer-events: none;
  opacity: 0;
}
.welcome-card.visible {
  transform: translateX(0) translateY(-50%);
  pointer-events: auto;
  opacity: 1;
}
.welcome-card[aria-hidden="true"] {
  transform: translateX(110%) translateY(-50%);
  pointer-events: none;
  opacity: 0;
}
.welcome-card-close {
  position: absolute;
  top: 0.6rem;
  right: 0.75rem;
  border: 0;
  background: transparent;
  color: var(--text-soft, #a09888);
  font-size: 1rem;
  cursor: pointer;
  line-height: 1;
  padding: 0.25rem;
}
.welcome-card-close:hover { color: var(--text-bright, #f0ede8); }
.welcome-card-title {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 1.5rem 0.65rem 0;
  line-height: 1.35;
  color: var(--text-bright, #f0ede8);
}
.welcome-card-body p {
  font-size: 0.875rem;
  color: var(--text-soft, #a09888);
  margin: 0 0 0.5rem;
  line-height: 1.5;
}
.welcome-card-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.75rem;
}
.welcome-card-actions button {
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.05);
  color: var(--text-bright, #f0ede8);
  cursor: pointer;
  font-size: 0.85rem;
  text-align: left;
  transition: background 0.15s;
}
.welcome-card-actions button:hover { background: rgba(255,255,255,0.1); }
.welcome-card-actions button.welcome-card-primary {
  background: rgba(229,57,53,0.18);
  border-color: rgba(229,57,53,0.45);
  font-weight: 600;
}
.welcome-card-actions button.welcome-card-primary:hover { background: rgba(229,57,53,0.28); }
@media (max-width: 480px) {
  .welcome-card {
    top: auto;
    bottom: calc(var(--ticker-h, 44px) + 0.5rem);
    right: 0;
    transform: translateX(110%) translateY(0);
    border-radius: 12px 0 0 12px;
  }
  .welcome-card.visible { transform: translateX(0) translateY(0); }
  .welcome-card[aria-hidden="true"] { transform: translateX(110%) translateY(0); }
}


/* inline notices for mailer feedback */
#mailer-notice { margin-top: .6rem; min-height: 1.4rem; font-size: .95rem }
#mailer-notice.notice-success { color: #c8f7c8; background: rgba(20,90,20,0.06); padding: .45rem .6rem; border-radius:6px }
#mailer-notice.notice-error { color: #ffd6d6; background: rgba(90,20,20,0.05); padding: .45rem .6rem; border-radius:6px }

/* readonly template field styling */
.readonly-template { background: rgba(0,0,0,0.02); font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, 'Courier New', monospace; color: var(--text-bright); padding: .6rem; border-radius:6px; min-height:6rem }

#mailer-repeat { color: #ffd580; margin-top: .4rem }

/* Quote block at top of footer */
.site-quote {
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  font-size: 1.1rem;
  line-height: 1.5;
  font-weight: 700;
  border-bottom: 1px solid rgba(255,255,255,0.3);
}

.site-quote strong {
  font-weight: 700;
}

/* Footer text & links */
.footer-content p {
  margin: 0.5rem 0;
}

#site-footer a {
  color: #eee;
  text-decoration: none;
  font-weight: 500;
}

#site-footer a:hover {
  color: #ffcc00;
  text-decoration: underline;
}

@keyframes strike {
  to {
    width: 100%;
  }
}

.read-more-container {
  text-align: center;
  margin: 2rem 0 1rem;
}

/* Continue button - 3D style with hover destination text */
.continue-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin: 2rem auto;
}

.directory-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 2rem;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--text-bright);
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.02);
  transition: all 0.25s ease;
}

.directory-btn:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.4);
}

.directory-btn.is-locked,
.directory-btn[aria-disabled="true"] {
  opacity: 0.5;
  cursor: not-allowed;
}

.continue-btn {
  position: relative;
  display: inline-block;
  padding: 1rem 2.5rem;
  background: linear-gradient(135deg, var(--accent) 0%, #b71c1c 100%);
  color: #fff;
  border-radius: 12px;
  font-size: 1.15rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 
    0 6px 20px rgba(217,68,63,0.35),
    inset 0 1px 0 rgba(255,255,255,0.15),
    inset 0 -1px 0 rgba(0,0,0,0.25);
  border: 1px solid rgba(255,255,255,0.1);
  transition: all 0.3s ease;
  overflow: hidden;
  letter-spacing: 0.5px;
}

.continue-btn .btn-text,
.continue-btn .btn-hover-text {
  display: block;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.continue-btn .btn-hover-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 0.95rem;
  line-height: 1.3;
  opacity: 0;
  transform: translateY(8px);
}

.continue-btn:hover {
  background: linear-gradient(135deg, #b71c1c 0%, #8b1414 100%);
  transform: translateY(-2px);
  box-shadow: 
    0 10px 28px rgba(217,68,63,0.45),
    inset 0 1px 0 rgba(255,255,255,0.1),
    inset 0 -1px 0 rgba(0,0,0,0.35);
}

.continue-btn:hover .btn-text {
  opacity: 0;
  transform: translateY(-8px);
}

.continue-btn:hover .btn-hover-text {
  opacity: 1;
  transform: translateY(0);
}

.continue-btn:active {
  transform: translateY(0);
  box-shadow: 
    0 3px 12px rgba(217,68,63,0.3),
    inset 0 1px 0 rgba(0,0,0,0.2);
}

/* Legacy read-more (keep for compatibility) */
.read-more-btn {
  display: inline-block;
  padding: 0.6rem 1.4rem;
  background: var(--color-accent, #c62828);
  color: #fff;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
  transition: background 0.25s ease, transform 0.2s ease;
}

.read-more-btn:hover {
  background: var(--color-primary, #e53935);
  transform: translateY(-2px);
}

.read-more-btn:active {
  transform: translateY(0);
}

/* ===== MODERN NARRATIVE DESIGN SYSTEM ===== */

h1, h2, h3 {
  font-family: 'Spectral', 'Source Sans 3', 'Segoe UI', serif;
  color: var(--text-bright);
  letter-spacing: 0.2px;
  margin-top: 0.3rem;
}

/* Hierarchy tuning */
h1 { font-weight: 800; font-size: clamp(2.25rem, 6vw, 4rem); line-height: 1.05 }
h2 { font-weight: 700; font-size: clamp(1.4rem, 3vw, 2.2rem); }
h3 { font-weight: 600; font-size: clamp(1.25rem, 2.4vw, 1.6rem); line-height: 1.18 }

/* ===== SECTION HEADERS (Chapter breaks, full-width, no card box) ===== */
.section-header {
  max-width: var(--section-max);
  margin: 2.6rem auto 1.2rem;
  padding: 0 1rem;
  text-align: left;
  background: transparent;
  border: none;
  box-shadow: none;
  /* Snap target: tells the browser this is a valid landing point.
     scroll-margin-top offsets by the fixed banner so the header
     lands cleanly in view rather than under it. */
  scroll-snap-align: start;
  scroll-margin-top: calc(var(--banner-h) + 8px);
}

.section-header h2,
.section-header h3 {
  margin: 0;
  color: var(--text-bright);
  letter-spacing: 0.5px;
  position: relative;
  display: inline-block;
  padding-bottom: 0.7rem;
  text-shadow: 0 1px 0 rgba(255,255,255,0.06), 0 4px 10px rgba(0,0,0,0.45);
}

.section-header h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
}

.section-header h3 {
  font-size: clamp(1.55rem, 3.2vw, 2.2rem);
  font-weight: 750;
}

/* Subtle underline effect for section headers */
.section-header h2::after,
.section-header h3::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 64px;
  height: 2px;
  background: linear-gradient(to right, var(--accent), transparent);
  border-radius: 1px;
  opacity: 0.75;
}

.section-header p {
  font-family: 'Source Sans 3', 'Segoe UI', Helvetica, Arial, sans-serif;
  font-size: 0.95rem;
  color: var(--text-soft);
  margin-top: 0.8rem;
  letter-spacing: 0.4px;
}

@media (max-width: 720px) {
  .section-header {
    padding: 2.4rem 1rem 1.2rem;
    margin: 2.5rem auto 1.5rem;
  }
  .section-header h2 {
    font-size: clamp(1.4rem, 3.5vw, 1.8rem);
  }
  .section-header h3 {
    font-size: clamp(1.35rem, 3vw, 1.75rem);
  }
}

/* ===== SECTION CARD LAYOUT (Alternating 2/3 width) ===== */
.section-cards {
  max-width: var(--section-max);
  margin: 0 auto 2.2rem;
  padding: 0 1rem;
}

.section-cards .narrative-card {
  margin: 1.8rem 0;
  width: min(92%, var(--narrative-max));
}

.section-cards .narrative-card:nth-child(odd) {
  margin-right: auto;
}

.section-cards .narrative-card:nth-child(even) {
  margin-left: auto;
}

/* Remembering page: lighter memorial layout */
.page-remembering .section-cards .narrative-card {
  width: 100%;
  margin: 1.4rem 0;
}

.page-remembering .narrative-card {
  background: transparent;
  border: none;
  border-left: none;
  box-shadow: none;
  padding: 1.2rem 0;
}

.page-remembering .narrative-card::before {
  display: none;
}

.page-remembering .narrative-card:not(:last-child) {
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

@media (max-width: 720px) {
  .section-cards .narrative-card {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
  }

  .page-remembering .narrative-card {
    padding: 1rem 0;
  }
}

/* ===== NARRATIVE CARDS (Content sections with left accent bar) ===== */
.narrative-card {
  background: linear-gradient(135deg, rgba(26,26,30,0.6) 0%, rgba(15,15,18,0.4) 100%);
  padding: 0 2rem;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.05);
  border-left: 3px solid var(--accent);
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
  margin: 0 auto;
  max-width: var(--narrative-max);
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(24px);
  max-height: 0;
  transition: opacity 0.6s cubic-bezier(0.2, 0.8, 0.3, 1),
              transform 0.6s cubic-bezier(0.2, 0.8, 0.3, 1),
              max-height 0.7s cubic-bezier(0.2, 0.8, 0.3, 1),
              margin 0.6s cubic-bezier(0.2, 0.8, 0.3, 1),
              padding 0.6s cubic-bezier(0.2, 0.8, 0.3, 1);
}

.narrative-card.card-visible {
  opacity: 1;
  transform: translateY(0);
  max-height: var(--card-max, 1600px);
  margin: 1.8rem auto;
  padding: 2rem 2rem 2rem 2.2rem;
}

.narrative-card:hover {
  border-left-color: var(--link-color);
  box-shadow: 0 12px 32px rgba(0,0,0,0.45);
}

.narrative-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 12px;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(255,255,255,0.02) 0%, transparent 60%);
  mix-blend-mode: overlay;
}

/* Card title (H3) - integrated, not cramped */
.card-title {
  font-family: 'Spectral', 'Source Sans 3', 'Segoe UI', serif;
  font-size: clamp(1.2rem, 2.2vw, 1.5rem);
  font-weight: 700;
  color: var(--text-bright);
  margin: 0 0 1.2rem 0;
  line-height: 1.2;
  letter-spacing: 0.3px;
  cursor: default;
  user-select: text;
  position: relative;
  padding-left: 0;
  transition: color 0.2s ease;
}

.card-title:hover {
  color: var(--text-bright);
}

.card-title::before {
  content: "";
  position: absolute;
  left: -1.2rem;
  top: 50%;
  transform: translateY(-50%);
  width: 0.4rem;
  height: 1.2em;
  background: var(--accent);
  border-radius: 2px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.card-title:hover::before {
  opacity: 0;
}

/* Card content (auto-expanded, nested within revealed card) */
.card-content {
  overflow: hidden;
  max-height: none;
  opacity: 1;
  transition: opacity 0.3s ease;
}

/* Paragraphs in narrative cards - modern rhythm */
.card-content p {
  font-family: 'Source Sans 3', 'Segoe UI', Helvetica, Arial, sans-serif;
  margin: 0 0 1.2rem 0;
  line-height: 1.8;
  color: var(--text-bright);
  font-size: 1rem;
  letter-spacing: 0.3px;
}

.card-content p:last-child {
  margin-bottom: 0;
}

/* Images in cards - float so text flows around without overpowering the frame */
.card-content img {
  float: right;
  width: min(42%, 320px);
  min-width: 180px;
  height: auto;
  object-fit: cover;
  border-radius: 10px;
  margin: 0.3rem 0 1.2rem 1.2rem;
  box-shadow: 0 8px 20px rgba(0,0,0,0.4);
  display: block;
}

.card-content::after {
  content: "";
  display: block;
  clear: both;
}

.image-anchor {
  display: block;
  height: 0;
  width: 0;
  overflow: hidden;
}

.narrative-card.has-float-image .card-content {
  padding-right: clamp(160px, 36%, 360px);
  position: relative;
}

.card-content img.card-float {
  float: none;
  position: absolute;
  right: -6%;
  top: var(--float-top, 12%);
  width: auto;
  height: 80%;
  max-width: 45%;
  min-width: 160px;
  z-index: 2;
  box-shadow: 0 12px 28px rgba(0,0,0,0.5);
}

.card-content img.card-float.float-horizontal {
  height: 33%;
  max-width: 60%;
  top: var(--float-top, 10%);
}

.card-content img.card-float.float-square {
  height: 50%;
  max-width: 50%;
}

@media (max-width: 720px) {
  .narrative-card.has-float-image .card-content {
    padding-right: 0;
  }

  .card-content img.card-float {
    position: static;
    width: min(80%, 360px);
    height: auto;
    max-width: 100%;
    margin: 0.6rem auto 1.2rem;
  }
}

@media (max-width: 720px) {
  .card-content img {
    float: none;
    width: 100%;
    max-width: 100%;
    margin: 1rem 0;
  }
}

/* Backward compatibility - old chrome-card still works but uses new style */
.chrome-card {
  background: linear-gradient(135deg, rgba(26,26,30,0.6) 0%, rgba(15,15,18,0.4) 100%);
  padding: 2rem 2rem 2rem 2.2rem;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.05);
  border-left: 3px solid var(--accent);
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
  margin: 1.8rem auto;
  max-width: var(--narrative-max);
  position: relative;
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.3, 1);
}

.chrome-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 12px;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(255,255,255,0.02) 0%, transparent 60%);
  mix-blend-mode: overlay;
}
.hero-title {
  text-shadow: 0 3px 12px rgba(0,0,0,0.55);
}
p {
  text-shadow: 0 1px 3px rgba(0,0,0,0.55);
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: url('/images/noise.svg');
  opacity: 0.07;
  pointer-events: none;
}
.float-photo {
  width: 260px;
  max-width: 40%;
  border-radius: 10px;
  margin: 0 20px 20px 0;
  object-fit: cover;
  box-shadow:
      0 12px 24px rgba(0,0,0,0.55),
      0 3px 6px rgba(255,255,255,0.06) inset;
}

.float-photo.left { 
  float: left; 
  margin: 0 18px 14px 0; 
}

.float-photo.right { 
  float: right; 
  margin: 0 0 14px 18px; 
}

/* Remembering grid: split the page into two person cards with floating-image offsets */
.remembering-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  max-width: 1000px;
  margin: 1rem auto;
  align-items: start;
}
.remember-person { position: relative; padding-top: 0.8rem; }
.remember-person .float-photo { position: relative; z-index: 2; box-shadow: 0 18px 36px rgba(0,0,0,0.6); transform: translateY(-8px); }
.remember-person .float-photo.left { transform: translate(-12px,-8px) rotate(-1.5deg); }
.remember-person .float-photo.right { transform: translate(12px,-8px) rotate(1.5deg); }
@media (max-width:720px){
  .remembering-grid { grid-template-columns: 1fr; }
  .remember-person .float-photo { width: 160px; max-width: 45%; display:block; margin: 0 auto 12px; float:none }
}

/* ===== BACKWARD COMPATIBILITY: Old chrome-card variants still work ===== */

/* Old title-only style */
.chrome-card.title-only { 
  background: transparent; 
  border: none; 
  box-shadow: none; 
  padding: 3.2rem 1.5rem 1.8rem;
  margin: 3.5rem auto 2rem;
  text-align: center;
}

.chrome-card.title-only h2 { 
  font-size: clamp(1.8rem, 4vw, 2.6rem); 
  font-weight: 800; 
  margin: 0;
  position: relative;
  display: inline-block;
  padding-bottom: 1rem;
}

.chrome-card.title-only h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 2px;
  background: linear-gradient(to right, transparent, var(--accent), transparent);
  border-radius: 1px;
}

/* Old sub-section style */
.chrome-card.sub-section { 
  padding: 2rem 2rem 2rem 2.2rem; 
  margin: 1.8rem auto;
  border-left: 3px solid var(--accent);
}

.chrome-card.sub-section .sub-head { 
  display: flex; 
  align-items: center; 
  justify-content: space-between;
  margin-bottom: 0;
}

.chrome-card.sub-section .sub-title { 
  margin: 0 0 1.2rem 0; 
  font-size: clamp(1.2rem, 2.2vw, 1.5rem); 
  font-weight: 700;
  cursor: pointer;
  user-select: none;
  transition: color 0.2s ease;
}

.chrome-card.sub-section .sub-title:hover {
  color: var(--link-color);
}

.chrome-card.sub-section .sub-title:focus { 
  outline: 3px solid rgba(57,73,171,0.18); 
  border-radius: 6px;
}

/* Old sub-content style */
.sub-content { 
  overflow: hidden; 
  max-height: 0; 
  opacity: 0; 
  transition: max-height 0.4s cubic-bezier(0.2, 0.8, 0.3, 1), opacity 0.3s ease;
}

.chrome-card.sub-section.expanded .sub-content { 
  max-height: 3000px; 
  opacity: 1;
}

.sub-content p { 
  margin: 0 0 1.2rem 0; 
  line-height: 1.8;
  font-size: 1rem;
  letter-spacing: 0.3px;
}

.sub-content p:last-child {
  margin-bottom: 0;
}

.turnstile-wrap {
  margin: 1rem 0 0.8rem;
  display: flex;
  justify-content: flex-start;
}

/* Lead-in span styling */
.lead-in {
  display: inline;
  font-weight: 700;
  color: var(--link-color);
  font-size: 1.04em;
  letter-spacing: 0.4px;
}

/* Helper classes */
.subtitle-note { 
  margin-top: 0.6rem; 
  font-size: 0.95rem; 
  font-weight: 600; 
  color: var(--text-soft); 
  letter-spacing: 0.5px; 
  opacity: 0.85;
}

.page-title { 
  padding: 0.9rem 1rem; 
  margin: 0.9rem auto; 
  text-align: center;
  scroll-snap-align: start;
  scroll-margin-top: calc(var(--banner-h) + 8px);
}

.page-title h2 { 
  margin: 0; 
  font-weight: 800;
}

/* Prominent inline callouts */
blockquote.callout { 
  display: block; 
  padding: 1rem 1.2rem; 
  background: rgba(255,255,255,0.02); 
  border-left: 4px solid var(--accent); 
  border-radius: 8px; 
  text-align: center; 
  font-size: 1.2rem; 
  font-weight: 700; 
  margin: 0;
}

/* Small 'down' control (deprecated) */
.sub-next { display: none; }

/* Old highlight for scroll stepper */
.chrome-card.sub-section.highlight {
  box-shadow: 0 18px 40px rgba(255,183,77,0.14);
  transform: translateY(-3px);
  transition: box-shadow 0.4s ease, transform 0.28s ease;
}

/* Slide-in animation */
.chrome-card.slide-in { 
  transform: translateY(14px); 
  opacity: 0; 
  transition: transform 0.48s cubic-bezier(0.2, 0.9, 0.3, 1), opacity 0.36s ease;
}

.chrome-card.slide-in.visible { 
  transform: none; 
  opacity: 1;
}


/* Floating scroll stepper on the right side */
/* Floating scroll stepper on the right side */
.scroll-stepper {
  position: fixed;
  right: 18px;
  bottom: 18vh;
  z-index: 99999;
  background: rgba(57,73,171,0.95);
  color: #fff;
  border: 0;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 0.95rem;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(0,0,0,0.5);
  transition: background .22s ease, box-shadow .22s ease, color .18s ease, transform .12s ease, opacity .28s ease;
}
.scroll-stepper:focus { outline: 3px solid rgba(255,255,255,0.08); }

/* Attention animation (soft, warm) */
.scroll-stepper.attention {
  animation: scroll-stepper-glow 2.2s infinite;
  background: linear-gradient(90deg, #ffca80, #ff9800);
  color: #111;
  box-shadow: 0 10px 36px rgba(255,152,0,0.18);
}
@keyframes scroll-stepper-glow {
  0% { box-shadow: 0 6px 18px rgba(255,152,0,0.06); transform: translateY(0); }
  50% { box-shadow: 0 18px 48px rgba(255,183,77,0.22); transform: translateY(-2px); }
  100% { box-shadow: 0 6px 18px rgba(255,152,0,0.06); transform: translateY(0); }
}

/* Completed state: solid dark green, no animation */
.scroll-stepper.complete {
  animation: none;
  background: #2e7d32;
  color: #fff;
  box-shadow: 0 10px 28px rgba(46,125,50,0.28);
}

@media (prefers-reduced-motion: reduce) {
  .scroll-stepper.attention { animation: none; transform: none; }
}

/* fade-out when hidden (keeps layout stable, gentle animation) */
.scroll-stepper[aria-hidden="true"] {
  opacity: 0;
  transform: translateX(10px);
  pointer-events: none;
}
@media (max-width:720px){ .scroll-stepper { right: 12px; bottom: 14vh; padding: 8px 12px } }

/* small highlight for the next section when using the stepper */
.chrome-card.sub-section.highlight {
  box-shadow: 0 18px 40px rgba(255,183,77,0.14);
  transform: translateY(-3px);
  transition: box-shadow .4s ease, transform .28s ease;
}
.chrome-card.sub-section p { margin:0 0 .9rem 0; padding-left:1rem; text-indent:0 }

/* Collapsible content */
.sub-content { overflow:hidden; max-height:0; opacity:0; transition: max-height .36s ease, opacity .28s ease; }
.chrome-card.sub-section.expanded .sub-content { max-height: 2000px; opacity:1 }

/* Slide-in card animation (initial load) */
.chrome-card.slide-in { transform: translateY(14px); opacity:0; transition: transform .48s cubic-bezier(.2,.9,.3,1), opacity .36s ease }
.chrome-card.slide-in.visible { transform: none; opacity:1 }

/* Timeline: organic reveal and progressive detail */
.timeline-grid .time-row { opacity:0; transform: translateY(10px); transition: opacity .36s ease, transform .36s ease }
.timeline-grid .time-row.visible { opacity:1; transform:none }
.timeline-block .summary { font-weight:700; margin-bottom:6px }
.timeline-block .more { overflow:hidden; max-height:0; opacity:0; transition: max-height .36s ease, opacity .32s ease; font-size:0.95rem; color:var(--text-soft) }
.timeline-block.expanded .more { max-height:1000px; opacity:1 }
.timeline-block.collapsed { cursor:pointer }
.timeline-block.collapsed .summary { color:var(--text-soft); font-style:italic }

/* Auto-scroll animation highlighting */
.time-row[data-type="anniversary-auto"],
.time-row[data-type="anniversary-today"] {
  border-left: 3px solid var(--accent);
  padding-left: 12px;
  margin-left: -12px;
  background: linear-gradient(to right, rgba(217,68,63,0.08), transparent);
}

.time-row.auto-scroll-active {
  animation: pulseHighlight 1.5s ease-in-out;
  border-left-color: #ffc107;
  background: linear-gradient(to right, rgba(255,193,7,0.18), transparent);
  transform: scale(1.02);
}

@keyframes pulseHighlight {
  0%, 100% { box-shadow: 0 0 0 rgba(255,193,7,0); }
  50% { box-shadow: 0 0 24px rgba(255,193,7,0.4); }
}

/* Flow footer refined to match header/nav visual tone */
.flow-footer { max-width:1000px;margin:0 auto 2.25rem;padding:10px 1.6rem;background:linear-gradient(to right, rgba(255,255,255,0.01), transparent);border-top:1px solid rgba(255,255,255,0.04);border-radius:8px;text-align:center;display:flex;flex-direction:column;align-items:center;gap:6px }
.flow-footer p { margin:0;font-size:0.95rem }
.flow-footer a { color:var(--link-color);text-decoration:underline }

@media (max-width:720px){ .flow-steps { flex-wrap:wrap; gap:6px } }

/* ---------- TAGLINE ANIMATIONS ---------- */
.tagline-container {
  margin-top: 0.35rem;
  font-size: clamp(1rem, 2.6vw, 1.5rem);
  font-weight: 700;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
}

/* Old tagline (struck through, stays in place) */
.tagline-old {
  position: relative;
  display: inline-block;
  margin: 0;
  padding: 0;
  font-size: clamp(1.05rem, 3vw, 1.45rem);
  color: var(--text-soft);
}

.tagline-old span {
  position: relative;
  display: inline-block;
  color: var(--text-soft);
}

/* Strike-through animation (red line) */
.tagline-old span::after {
  content: "";
  position: absolute;
  left: 0;
  top: 52%;
  width: 0;
  height: 1.5px;
  background: #e53935;
  animation: strikethrough 1.2s ease forwards;
  animation-delay: 0.5s;
}

@keyframes strikethrough {
  to {
    width: 100%;
  }
}
/* Ensure typed tagline is large, uppercase, and has no caret */
.tagline-new {
  font-size: clamp(1.1rem, 3.2vw, 1.9rem) !important;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--text-bright);
  display: inline-block;
  margin: 0;
  padding: 0;
  white-space: nowrap;
  position: relative;
  opacity: 0;
  transition: opacity .35s ease-in;
  /* remove any leftover caret from earlier rules */
  border-right: none !important;
  padding-right: 0 !important;
}
.tagline-new::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: var(--color-accent, #e53935);
  animation: underline-grow 0.8s ease forwards;
  /* delay should be >= typing duration */
  animation-delay: 2.8s;
}
@keyframes underline-grow {
  to {
    width: 100%;
  }
}

/* Make the nav horizontal */
.footer-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  
  display: flex;
  gap: 1.5rem;          /* spacing between items */
  flex-wrap: wrap;      /* allows wrapping on small screens */
  justify-content: center;
}

.footer-nav a {
  color: #eee;
  text-decoration: none;
  font-size: 0.95rem;
}

.footer-nav a:hover {
  text-decoration: underline;
}
