/* Dr Isaac Bampoe Addo tribute design system */
:root {
  --silver: #d0d0d0;
  --ink: #f4f4f4;
  --ink-soft: #b8b8b8;
  --night: #000000;
  --night-raised: #111111;
  --night-soft: #1c1c1c;
  --paper: #080808;
  --paper-soft: #141414;
  --paper-line: #343434;
  --on-dark: #ffffff;
  --on-dark-muted: rgba(255, 255, 255, 0.7);
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --container: 74rem;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --header-height: 6.75rem;
  --radius: 0.75rem;
  --z-header: 100;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-height); }
body { overflow-x: hidden; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 1rem; line-height: 1.65; }
body.menu-open, body.event-modal-open, body.tribute-reader-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
section { position: relative; }
.container { width: min(100%, var(--container)); margin-inline: auto; padding-inline: 1.25rem; }
:focus-visible { outline: 3px solid var(--silver); outline-offset: 4px; }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 700; line-height: 1.12; text-wrap: balance; }
.eyebrow { display: inline-block; margin-bottom: 0.875rem; color: var(--silver); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.section-head { max-width: 44rem; margin: 0 auto 2.75rem; text-align: center; }
.section-head h2 { color: var(--ink); font-size: clamp(2rem, 8vw, 3.5rem); letter-spacing: 0.006em; }
.section-head p { max-width: 62ch; margin: 1rem auto 0; color: var(--ink-soft); font-size: 1rem; text-wrap: pretty; }

/* Reference action system: sharp outline, transparent field, centred label. */
.btn { display: inline-flex; min-height: 3.5rem; align-items: center; justify-content: center; padding: 0.9rem 2.35rem; border: 2px solid currentColor; border-radius: 0; background: transparent; cursor: pointer; font-family: var(--sans); font-size: 0.9rem; font-weight: 700; letter-spacing: 0.025em; line-height: 1.2; text-align: center; text-transform: uppercase; transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease; }
.btn::after { content: none; }
.btn-primary { border-color: var(--silver); background: transparent; color: #fff; }
.btn-primary:hover { border-color: #fff; background: #fff; color: var(--paper); }
.btn-outline, .btn-ghost { border-color: rgba(255, 255, 255, 0.88); background: transparent; color: #fff; }
.btn-outline:hover, .btn-ghost:hover { border-color: #fff; background: #fff; color: var(--ink); }

/* Remembrance service booklet */
.event-modal { position: fixed; z-index: 1000; inset: 0; display: grid; place-items: center; }
.event-modal[hidden] { display: none; }
.event-modal-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.88); backdrop-filter: blur(0.45rem); }
.event-modal-panel { position: relative; display: grid; width: calc(100vw - 1.5rem); min-width: 0; max-width: 68rem; max-height: calc(100dvh - 1.5rem); overflow-y: auto; overscroll-behavior: contain; border: 1px solid rgba(255, 255, 255, 0.3); border-radius: var(--radius); background: var(--night-raised); color: #fff; }
.event-modal-close { position: absolute; z-index: 5; top: 0.75rem; right: 0.75rem; display: grid; width: 3rem; height: 3rem; place-items: center; border: 1px solid rgba(255, 255, 255, 0.72); border-radius: 50%; background: radial-gradient(circle at 34% 26%, rgba(255, 255, 255, 0.2), rgba(0, 0, 0, 0.8) 56%); color: #fff; cursor: pointer; font-size: 1.85rem; line-height: 1; animation: event-close-cue 3.8s ease-in-out infinite; }
.event-modal-close:hover { animation: none; border-color: #fff; background: #fff; color: var(--paper); box-shadow: 0 0 1.25rem rgba(255, 255, 255, 0.36); }
.event-modal-close:focus-visible { border-color: #fff; }
@keyframes event-close-cue {
  0%, 70%, 100% { transform: rotate(0); box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
  77% { transform: rotate(8deg); box-shadow: 0 0 0 0.22rem rgba(255, 255, 255, 0.14), 0 0 1rem rgba(255, 255, 255, 0.28); }
  84% { transform: rotate(2deg); box-shadow: 0 0 0 0.12rem rgba(255, 255, 255, 0.08), 0 0 0.6rem rgba(255, 255, 255, 0.2); }
  91% { transform: rotate(6deg); box-shadow: 0 0 0 0.18rem rgba(255, 255, 255, 0.11), 0 0 0.85rem rgba(255, 255, 255, 0.24); }
  97% { transform: rotate(0); box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}
.event-booklet-viewer { position: relative; width: 100%; min-width: 0; overflow: hidden; background: #050505; touch-action: pan-y; }
.event-booklet-track { display: flex; width: 100%; min-width: 0; height: min(42dvh, 24rem); transition: transform 560ms var(--ease); }
.event-booklet-page { display: grid; flex: 0 0 100%; min-width: 0; place-items: center; overflow: hidden; padding: 0.75rem 0.75rem 3.8rem; }
.event-booklet-page img { width: 100%; min-width: 0; height: 100%; object-fit: contain; filter: drop-shadow(0 0.5rem 1.1rem rgba(0, 0, 0, 0.38)); }
.event-booklet-control { position: absolute; z-index: 3; top: 50%; display: grid; width: 2.75rem; height: 2.75rem; place-items: center; border: 1px solid rgba(255, 255, 255, 0.7); border-radius: 50%; background: rgba(0, 0, 0, 0.78); color: #fff; cursor: pointer; font-family: var(--serif); font-size: 1.5rem; transform: translateY(-50%); }
.event-booklet-prev { left: 0.75rem; }
.event-booklet-next { right: 0.75rem; }
.event-booklet-navigation { position: absolute; z-index: 3; right: 0; bottom: 0.65rem; left: 0; display: grid; justify-items: center; color: rgba(255, 255, 255, 0.82); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.event-booklet-dots { display: flex; justify-content: center; gap: 0.25rem; }
.event-booklet-dots button { width: 2.75rem; height: 2.25rem; border: 0; background: transparent; cursor: pointer; font-size: 0; }
.event-booklet-dots button::before { content: ""; display: block; width: 0.55rem; height: 0.55rem; margin: auto; border: 1px solid #fff; border-radius: 50%; background: transparent; }
.event-booklet-dots button.active::before { background: #fff; }
.event-modal-content { min-width: 0; padding: 2rem 1.25rem 1.5rem; overflow-wrap: break-word; }
.event-modal-content h2 { max-width: 14ch; font-size: clamp(2rem, 9vw, 3.2rem); }
.event-intro { max-width: 50ch; margin-top: 0.9rem; color: var(--on-dark-muted); }
.event-live { margin-top: 1.75rem; padding-block: 1.2rem; border-block: 1px solid var(--paper-line); }
.event-live span { display: block; margin-bottom: 0.35rem; color: var(--silver); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.11em; text-transform: uppercase; }
.event-live strong { display: block; max-width: 32ch; font-family: var(--serif); font-size: 1.25rem; line-height: 1.25; }
.event-live p { max-width: 48ch; margin-top: 0.65rem; color: var(--on-dark-muted); font-size: 0.95rem; }
.event-actions { display: grid; gap: 0.75rem; margin-top: 1.5rem; }
.event-actions .btn { width: 100%; }

/* Header */
.site-header { position: fixed; z-index: var(--z-header); top: 0; right: 0; left: 0; border-top: 3px solid var(--silver); border-bottom: 1px solid var(--paper-line); background: rgba(0, 0, 0, 0.97); transition: background 240ms ease, box-shadow 240ms ease; }
.site-header.scrolled { box-shadow: 0 4px 8px rgba(0, 0, 0, 0.55); }
.header-inner { display: flex; min-height: calc(var(--header-height) - 3px); align-items: center; justify-content: space-between; width: min(100%, 80rem); margin-inline: auto; padding: 0.5rem 1.25rem; }
.brand { display: flex; flex: 0 1 auto; align-items: center; min-width: 0; }
.brand img { width: min(54vw, 15rem); height: auto; object-fit: contain; }
.nav-links { position: fixed; z-index: 2; top: var(--header-height); right: 0; bottom: 0; display: flex; width: 100%; flex-direction: column; align-items: stretch; gap: 0; padding: 1.5rem 1.25rem 2rem; background: var(--night); color: #fff; transform: translateX(100%); transition: transform 360ms var(--ease); }
.nav-links.open { transform: none; }
.nav-links > a:not(.nav-cta) { display: flex; min-height: 3.75rem; align-items: center; border-bottom: 1px solid rgba(255, 255, 255, 0.13); font-family: var(--serif); font-size: 1.35rem; }
.nav-links .nav-cta { margin-top: auto; border-color: #fff; color: #fff; }
.menu-toggle { position: relative; display: grid; width: 3rem; height: 3rem; flex: 0 0 3rem; place-content: center; border: 1px solid var(--paper-line); border-radius: 50%; background: var(--night-raised); cursor: pointer; }
.menu-toggle span { display: block; width: 1.25rem; height: 1px; margin: 0.17rem 0; background: #fff; transition: 220ms var(--ease); }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(0.34rem) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-0.34rem) rotate(-45deg); }

/* Hero: on phones the portrait and text occupy separate visual zones. */
.hero { display: flex; min-height: 100svh; align-items: flex-start; overflow: hidden; padding: calc(var(--header-height) + min(63vh, 36rem) + 1.5rem) 0 4.75rem; background: var(--night); isolation: isolate; }
.hero::after { content: ""; position: absolute; z-index: 1; inset: auto 0 0; height: 40%; pointer-events: none; background: linear-gradient(180deg, transparent, var(--night) 48%); }
.hero-bg-slider { position: absolute; z-index: 0; top: var(--header-height); right: 0; left: 0; height: min(63vh, 36rem); background: var(--night); }
.hero-bg-slide { position: absolute; inset: 0; opacity: 0; background-position: center 22%; background-repeat: no-repeat; background-size: cover; filter: saturate(0.72) contrast(1.04); transform: scale(1.025); transition: opacity 1.2s ease, transform 8s linear; }
.hero-bg-slide.is-portrait { background-position: center 18%; background-size: cover; }
.hero-bg-slide.is-landscape { background-position: center; background-size: contain; }
.hero-bg-slide.active { opacity: 1; transform: scale(1.08); }
.hero-overlay { position: absolute; z-index: 1; top: var(--header-height); right: 0; left: 0; height: calc(min(63vh, 36rem) + 4rem); background: linear-gradient(180deg, rgba(0, 0, 0, 0.05) 18%, rgba(0, 0, 0, 0.42) 52%, var(--night) 84%); }
.hero-inner { position: relative; z-index: 3; max-width: 48rem; }
.hero .eyebrow { color: var(--silver); }
.hero h1 { max-width: 13ch; color: #fff; font-size: clamp(2.55rem, 12vw, 5.25rem); font-weight: 600; letter-spacing: 0.006em; text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4); }
.hero .dates { margin-top: 1rem; color: #fff; font-family: var(--serif); font-size: 1.12rem; font-style: italic; }
.hero .role { max-width: 61ch; margin-top: 1.15rem; color: rgba(255, 255, 255, 0.82); font-size: 0.98rem; text-wrap: pretty; }
.hero-actions { display: flex; flex-direction: column; gap: 0.75rem; margin-top: 2rem; }
.hero-actions .btn { width: 100%; }
.hero .btn-primary { border-color: var(--silver); color: #fff; }
.hero .btn-primary:hover { border-color: #fff; background: #fff; color: var(--paper); }
.hero-slider-controls { position: absolute; z-index: 4; top: calc(var(--header-height) + min(63vh, 36rem) - 4rem); right: 1.25rem; display: flex; gap: 0.45rem; }
.hero-slider-controls button { width: 2.75rem; height: 2.75rem; border: 1px solid rgba(255, 255, 255, 0.55); border-radius: 50%; background: rgba(0, 0, 0, 0.58); color: #fff; cursor: pointer; }
.hero-slider-controls button { font-family: var(--serif); font-size: 1.5rem; line-height: 1; }
.hero-slider-controls button:hover { border-color: #fff; background: #fff; color: var(--paper); }
.scroll-cue { display: none; }

/* Tributes */
.tributes { overflow: hidden; padding: 5.5rem 0; background: radial-gradient(circle at 12% 0%, rgba(255, 255, 255, 0.08), transparent 30rem), var(--night); }
.tributes::before { content: "“"; position: absolute; top: -5rem; right: -1rem; color: rgba(255, 255, 255, 0.05); font-family: var(--serif); font-size: 23rem; line-height: 1; }
.tributes .section-head h2, .tributes .section-head p { color: #fff; }
.tributes .section-head p { color: var(--on-dark-muted); }
.tributes .eyebrow { color: var(--silver); }
.tribute-slider { position: relative; max-width: 72rem; margin: 0 auto; padding-bottom: 4.25rem; }
.tribute-track { overflow: hidden; }
.tribute-slides { display: flex; transition: transform 560ms var(--ease); }
.tribute-slide { flex: 0 0 100%; padding: 0.25rem; }
.tribute-card { display: grid; grid-template-columns: minmax(0, 1fr); min-height: 0; align-items: start; overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.19); border-radius: var(--radius); background: var(--night-raised); color: #fff; text-align: left; }
.tribute-photo { position: relative; width: 100%; aspect-ratio: 4 / 3; min-height: 0; overflow: hidden; background: var(--night-soft); }
.tribute-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 22%; filter: saturate(0.78); }
.tribute-copy { min-width: 0; padding: 1.75rem 1.4rem 2rem; }
.quote-mark { display: block; color: var(--silver); font-family: var(--serif); font-size: 2.75rem; line-height: 0.65; }
p.quote { max-width: 42ch; margin-top: 0.85rem; color: #fff; font-family: var(--serif); font-size: clamp(1.05rem, 4.6vw, 1.25rem); font-style: italic; line-height: 1.58; text-wrap: pretty; overflow-wrap: normal; }
p.quote + p.quote { margin-top: 0.72rem; }
.tribute-name { margin-top: 1.5rem; font-size: 0.9rem; font-weight: 700; }
.tribute-rel { margin-top: 0.3rem; color: var(--on-dark-muted); font-size: 0.78rem; }
.slider-nav { position: absolute; z-index: 5; display: grid; width: 3rem; height: 3rem; place-items: center; border: 1px solid rgba(255, 255, 255, 0.42); border-radius: 50%; background: rgba(255, 255, 255, 0.08); color: #fff; cursor: pointer; font-size: 1.45rem; transition: 220ms var(--ease); }
.slider-nav:hover { border-color: #fff; background: #fff; color: var(--paper); }
.slider-prev { bottom: 0; left: calc(50% - 3.5rem); }
.slider-next { right: calc(50% - 3.5rem); bottom: 0; }
.slider-dots { display: none; }
.tributes-cta { margin-top: 2.5rem; text-align: center; }
.tributes-cta p { margin-bottom: 1rem; color: var(--on-dark-muted); }
.tributes-cta-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: min(100%, 38rem); margin-inline: auto; gap: 0.75rem; }
.tributes-cta-actions .btn { width: 100%; padding-inline: 0.75rem; font-size: clamp(0.68rem, 2.5vw, 0.85rem); }
.tribute-archive { max-width: 72rem; margin: 3.5rem auto 0; padding-top: 2.5rem; border-top: 1px solid var(--paper-line); scroll-margin-top: calc(var(--header-height) + 1rem); }
.tribute-archive[hidden] { display: none; }
.tribute-archive h3 { margin-bottom: 1.5rem; color: #fff; font-size: clamp(1.7rem, 6vw, 2.5rem); }
.tribute-archive-list { display: grid; gap: 0; border-top: 1px solid var(--paper-line); }
.tribute-archive-item { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.15rem; padding: 1.5rem 0 2rem; border-bottom: 1px solid var(--paper-line); }
.tribute-archive-item .tribute-photo { min-height: 0; }
.tribute-archive-copy { align-self: center; }
.tribute-archive-copy .quote-mark { font-size: 2.6rem; }
.tribute-archive-copy p.quote { margin-top: 0.7rem; font-size: 1rem; }
.tribute-archive-copy .tribute-name { margin-top: 1.25rem; }

/* Dedicated tributes page */
.tributes-page-body { background: var(--night); color: #fff; }
.tribute-page-header .brand img { width: min(45vw, 12rem); }
.tribute-page-nav { display: flex; align-items: center; gap: 0.5rem; }
.tribute-page-nav .btn { min-height: 3rem; padding: 0.7rem 1rem; font-size: 0.72rem; }
.tribute-page-submit { display: none; }
.tributes-page-main { min-height: 100svh; padding: calc(var(--header-height) + 3rem) 0 6rem; background: radial-gradient(circle at 10% 0%, rgba(255, 255, 255, 0.08), transparent 30rem), var(--night); }
.tributes-page-intro { max-width: 48rem; margin-bottom: 3rem; }
.tributes-page-intro h1 { font-size: clamp(3rem, 13vw, 6rem); }
.tributes-page-intro p { max-width: 62ch; margin-top: 1rem; color: var(--on-dark-muted); }
.tribute-page-mobile-submit { width: 100%; margin-top: 1.5rem; }
.tribute-library-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; }
.tribute-library-card { display: grid; grid-template-columns: minmax(0, 1fr); overflow: hidden; border: 1px solid var(--paper-line); border-radius: var(--radius); background: var(--night-raised); transition: border-color 180ms ease, background-color 180ms ease; }
.tribute-library-card:hover { border-color: rgba(255, 255, 255, 0.7); background: var(--night-soft); }
.tribute-library-photo { aspect-ratio: 4 / 3; overflow: hidden; background: var(--night-soft); }
.tribute-library-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 22%; filter: saturate(0.78); }
.tribute-library-copy { min-width: 0; padding: 1.5rem; }
.tribute-library-copy .quote-mark { font-size: 2.6rem; }
.tribute-library-copy > p { display: -webkit-box; margin-top: 0.75rem; overflow: hidden; color: #fff; font-family: var(--serif); font-size: 1.05rem; font-style: italic; line-height: 1.55; -webkit-box-orient: vertical; -webkit-line-clamp: 5; }
.tribute-library-copy h2 { margin-top: 1.35rem; font-family: var(--sans); font-size: 1rem; }
.tribute-library-read { display: inline-block; margin-top: 1rem; border-bottom: 1px solid var(--silver); color: var(--silver); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; }
.tribute-reader { position: fixed; z-index: 1100; inset: 0; display: grid; place-items: center; padding: 0.75rem; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.tribute-reader[hidden] { display: none; }
.tribute-reader-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.9); backdrop-filter: blur(0.45rem); }
.tribute-reader-panel { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); width: min(100%, 68rem); max-height: calc(100dvh - 1.5rem); overflow-y: auto; -webkit-overflow-scrolling: touch; margin: auto; border: 1px solid rgba(255, 255, 255, 0.3); border-radius: var(--radius); background: var(--night-raised); }
.tribute-reader-close { position: absolute; z-index: 3; top: 0.75rem; right: 0.75rem; display: grid; width: 3rem; height: 3rem; place-items: center; border: 1px solid rgba(255, 255, 255, 0.78); border-radius: 50%; background: rgba(0, 0, 0, 0.78); color: #fff; cursor: pointer; font-size: 1.85rem; line-height: 1; }
.tribute-reader-nav { position: fixed; z-index: 1120; top: 50%; transform: translateY(-50%); display: grid; width: 3rem; height: 3rem; place-items: center; border: 1px solid rgba(255, 255, 255, 0.42); border-radius: 50%; background: rgba(0, 0, 0, 0.72); color: #fff; cursor: pointer; font-size: 1.85rem; line-height: 1; transition: 220ms var(--ease); backdrop-filter: blur(4px); }
.tribute-reader-nav:hover { border-color: #fff; background: #fff; color: var(--paper); }
.tribute-reader-prev { left: 0.5rem; }
.tribute-reader-next { right: 0.5rem; }
.tribute-reader-photo { aspect-ratio: 4 / 3; overflow: hidden; background: var(--night-soft); }
.tribute-reader-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 22%; filter: saturate(0.78); }
.tribute-reader-copy { padding: 2rem 1.4rem 2.5rem; }
.tribute-reader-copy .quote-mark { font-size: 3.5rem; }
.tribute-reader-copy #tributeReaderQuote { max-width: 48ch; }
.tribute-reader-copy #tributeReaderQuote p { margin-top: 0.85rem; font-family: var(--serif); font-size: clamp(1.08rem, 4.8vw, 1.35rem); font-style: italic; line-height: 1.62; }
.tribute-reader-copy h2 { margin-top: 1.75rem; font-family: var(--sans); font-size: 1rem; }
.tribute-reader-rel { margin-top: 0.35rem; color: var(--on-dark-muted); font-size: 0.88rem; }

/* Legacy */
.legacy { padding: 5.5rem 0; background: var(--paper); }
.legacy-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 3.5rem; align-items: center; }
.legacy-media { position: relative; }
.legacy-media .frame { position: relative; overflow: hidden; aspect-ratio: 4 / 5; border-radius: var(--radius); background: var(--night); }
.legacy-media .frame::after { content: ""; position: absolute; inset: 0; border: 1px solid rgba(255, 255, 255, 0.24); pointer-events: none; }
.legacy-media img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.85); transition: opacity 600ms ease; }
.legacy-media img.is-switching { opacity: 0; }
.legacy-media .tag { position: relative; width: calc(100% - 1.5rem); margin: -2.25rem auto 0; padding: 1.2rem 1.35rem; border: 1px solid var(--paper-line); border-radius: var(--radius); background: var(--night-soft); color: #fff; font-family: var(--serif); font-size: 1rem; font-style: italic; }
.legacy-copy h2 { max-width: 17ch; margin-bottom: 1.5rem; font-size: clamp(2.15rem, 8vw, 3.8rem); letter-spacing: 0.006em; }
.legacy-copy p { max-width: 68ch; margin-bottom: 1rem; color: var(--ink-soft); }
.legacy-stats { display: grid; gap: 0; margin: 2rem 0; border-top: 1px solid var(--paper-line); }
.legacy-stats div { display: grid; grid-template-columns: 8rem 1fr; align-items: center; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--paper-line); }
.legacy-stats strong { color: #fff; font-family: var(--serif); font-size: 1.45rem; }
.legacy-stats span { color: var(--ink-soft); font-size: 0.82rem; }
.achievements { padding: 0 0 5.5rem; background: var(--paper); }
.ach-grid { display: grid; grid-template-columns: minmax(0, 1fr); border-top: 1px solid var(--paper-line); }
.ach-card { position: relative; min-height: 13rem; padding: 1.6rem 0; border-bottom: 1px solid var(--paper-line); transition: background 220ms ease; }
.ach-card .num { margin-bottom: 1.25rem; color: var(--silver); font-family: var(--serif); font-size: 0.9rem; font-weight: 700; }
.ach-card h3 { margin-bottom: 0.6rem; font-size: 1.3rem; }
.ach-card p { max-width: 42ch; color: var(--ink-soft); font-size: 0.92rem; }

/* Timeline */
.timeline-section { padding: 5.5rem 0; background: var(--night); }
.timeline-section .section-head h2 { color: #fff; }
.timeline-section .section-head p { color: var(--on-dark-muted); }
.timeline-section .eyebrow { color: var(--silver); }
.timeline { position: relative; max-width: 56rem; margin: 0 auto; }
.timeline::before { content: ""; position: absolute; top: 0; bottom: 0; left: 0.45rem; width: 1px; background: rgba(255, 255, 255, 0.2); }
.tl-item { position: relative; padding: 0 0 3rem 2.6rem; }
.tl-dot { position: absolute; top: 0.35rem; left: 0; width: 0.95rem; height: 0.95rem; border: 3px solid var(--night); border-radius: 50%; background: var(--silver); outline: 1px solid rgba(255, 255, 255, 0.48); }
.tl-year { color: var(--silver); font-family: var(--serif); font-size: 1.15rem; font-weight: 700; }
.tl-card { margin-top: 0.45rem; }
.tl-card h4 { margin-bottom: 0.5rem; color: #fff; font-size: 1.1rem; }
.tl-card p { max-width: 60ch; color: var(--on-dark-muted); font-size: 0.92rem; }

/* Gallery */
.gallery { padding: 5.5rem 0 4rem; background: var(--paper-soft); }
.gallery-slider { position: relative; max-width: 82rem; margin: 0 auto; }
.gallery-track { overflow-x: auto; overflow-y: hidden; scroll-behavior: smooth; scroll-snap-type: x mandatory; scrollbar-width: none; }
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-slides { display: flex; align-items: flex-start; gap: 0.875rem; }
.gallery-slide { flex: 0 0 86%; overflow: hidden; aspect-ratio: var(--photo-ratio, 4 / 5); border-radius: var(--radius); background: var(--night-raised); scroll-snap-align: center; }
.gallery-slide img { width: 100%; height: 100%; opacity: 0; object-fit: contain; transition: opacity 260ms ease, transform 700ms var(--ease), filter 400ms ease; }
.gallery-slide.is-loaded img { opacity: 1; }
.gallery-slide:hover img { filter: saturate(0.85); transform: scale(1.04); }
.gallery-controls { display: flex; justify-content: center; gap: 0.75rem; margin-top: 1.5rem; }
.gallery-controls .slider-nav { position: static; border-color: var(--ink); background: var(--ink); color: #fff; }
.gallery-controls .slider-nav:hover { border-color: #fff; background: #fff; color: var(--paper); }
.gallery-cta { margin-top: 2.5rem; text-align: center; }
.gallery-cta p { margin-bottom: 1rem; color: var(--ink-soft); }

/* Footer */
footer { padding: 4rem 0 1.75rem; border-top: 3px solid var(--silver); background: var(--night); color: #fff; }
.footer-inner { display: flex; flex-direction: column; gap: 3rem; padding-bottom: 2.5rem; border-bottom: 1px solid rgba(255, 255, 255, 0.16); }
.footer-brand { max-width: 30rem; }
.footer-brand img { width: min(100%, 21rem); height: auto; }
.footer-brand p { margin-top: 1.2rem; color: var(--on-dark-muted); font-size: 0.9rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 3.5rem; }
.footer-col h5 { margin-bottom: 0.85rem; color: var(--silver); font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; }
.footer-col a { display: block; min-height: 2.25rem; color: rgba(255, 255, 255, 0.82); font-size: 0.9rem; }
.footer-col a:hover { color: #fff; text-decoration: underline; }
.footer-bottom { display: flex; flex-direction: column; gap: 0.3rem; padding-top: 1.5rem; color: rgba(255, 255, 255, 0.58); font-size: 0.78rem; }

.reveal { opacity: 1; transform: none; }

@media (min-width: 40rem) {
  .container { padding-inline: 2rem; }
  .hero-actions { flex-direction: row; }
  .hero-actions .btn { width: auto; }
  .tribute-card { grid-template-columns: minmax(15rem, 0.44fr) minmax(0, 0.56fr); min-height: 34rem; }
  .tribute-photo { height: 100%; min-height: 100%; aspect-ratio: auto; align-self: stretch; }
  .tribute-copy { align-self: center; padding: 3rem clamp(2rem, 5vw, 3.5rem); }
  .quote-mark { font-size: 3.5rem; }
  .tribute-library-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
  .tribute-archive-item { grid-template-columns: minmax(8rem, 10rem) minmax(0, 1fr); gap: 2rem; padding: 2rem 0; }
  .tribute-archive-item .tribute-photo { min-height: 12rem; }
  .gallery-slide { flex-basis: 60%; }
  .footer-inner, .footer-bottom { flex-direction: row; justify-content: space-between; }
}

@media (min-width: 48rem) {
  .event-modal-panel { grid-template-columns: minmax(0, 1fr) minmax(22rem, 0.82fr); max-height: min(52rem, calc(100dvh - 3rem)); overflow: hidden; }
  .event-booklet-track { height: min(52rem, calc(100dvh - 3rem)); }
  .event-booklet-page { padding: 1.25rem 1.5rem 4.25rem; }
  .event-modal-content { align-self: center; max-height: min(52rem, calc(100dvh - 3rem)); overflow-y: auto; padding: 3rem clamp(2rem, 4vw, 4rem); }
  .event-modal-content h2 { font-size: clamp(2.5rem, 5vw, 3.8rem); }
  .tribute-reader { padding: 1.5rem; }
  .tribute-reader-prev { left: 1.5rem; }
  .tribute-reader-next { right: 1.5rem; }
  .tribute-reader-panel { grid-template-columns: minmax(18rem, 0.42fr) minmax(0, 0.58fr); max-height: min(48rem, calc(100dvh - 3rem)); overflow: hidden; margin: auto; }
  .tribute-reader-photo { height: min(48rem, calc(100dvh - 3rem)); aspect-ratio: auto; }
  .tribute-reader-copy { align-self: stretch; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 3.5rem clamp(2.5rem, 5vw, 4.5rem); }
  .ach-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ach-card { padding: 2rem; border-right: 1px solid var(--paper-line); }
  .ach-card:nth-child(even) { border-right: 0; }
  .timeline::before { left: 50%; }
  .tl-item { width: 50%; padding-bottom: 3.5rem; }
  .tl-item.left { padding-right: 3rem; padding-left: 0; text-align: right; }
  .tl-item.right { margin-left: 50%; padding-right: 0; padding-left: 3rem; }
  .tl-item.left .tl-dot { right: -0.48rem; left: auto; }
  .tl-item.right .tl-dot { left: -0.48rem; }
}

@media (min-width: 56.25rem) {
  :root { --header-height: 7.15rem; }
  .header-inner { padding-inline: 2rem; }
  .brand img { width: 16rem; height: auto; max-width: none; }
  .tribute-page-header .brand img { width: 14rem; }
  .tribute-page-submit { display: inline-flex; }
  .tribute-page-mobile-submit { display: none; }
  .menu-toggle { display: none; }
  .nav-links { position: static; display: flex; width: auto; flex-direction: row; align-items: center; gap: clamp(1.1rem, 2.2vw, 2.2rem); padding: 0; background: transparent; color: #fff; transform: none; }
  .nav-links > a:not(.nav-cta) { position: relative; display: inline-flex; min-height: 2.75rem; border: 0; font-family: var(--sans); font-size: 0.8rem; font-weight: 600; }
  .nav-links > a:not(.nav-cta)::after { content: ""; position: absolute; right: 0; bottom: 0.3rem; left: 0; height: 2px; background: var(--silver); transform: scaleX(0); transform-origin: right; transition: transform 240ms var(--ease); }
  .nav-links > a:not(.nav-cta):hover::after { transform: scaleX(1); transform-origin: left; }
  .nav-links .nav-cta { min-height: 3rem; margin: 0; border-color: var(--silver); color: #fff; }
  .nav-links .nav-cta:hover { border-color: #fff; background: #fff; color: var(--paper); }
  .hero { min-height: 100svh; align-items: center; padding: calc(var(--header-height) + 3rem) 0 5.5rem; }
  .hero::after { display: none; }
  .hero-bg-slider { top: var(--header-height); bottom: 0; left: 34%; height: auto; }
  .hero-bg-slide { background-position: center 24%; }
  .hero-bg-slide.is-portrait { background-position: center; background-size: auto 86%; }
  .hero-overlay { top: var(--header-height); bottom: 0; height: auto; background: linear-gradient(90deg, var(--night) 0%, var(--night) 35%, rgba(0, 0, 0, 0.86) 48%, rgba(0, 0, 0, 0.12) 76%, var(--night) 100%), linear-gradient(180deg, rgba(0, 0, 0, 0.05) 55%, var(--night) 100%); }
  .hero-inner { width: min(100%, var(--container)); max-width: none; }
  .hero h1 { font-size: clamp(3.7rem, 5.85vw, 5.25rem); }
  .hero .role { font-size: 1.02rem; }
  .hero-slider-controls { top: auto; right: max(2rem, calc((100vw - var(--container)) / 2 + 2rem)); bottom: 3rem; }
  .scroll-cue { position: absolute; z-index: 4; bottom: 2.5rem; left: 50%; display: flex; align-items: center; gap: 0.7rem; color: rgba(255, 255, 255, 0.66); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; transform: translateX(-50%); }
  .scroll-cue .dot { position: relative; width: 2.5rem; height: 1px; overflow: hidden; background: rgba(255, 255, 255, 0.35); }
  .scroll-cue .dot::after { content: ""; position: absolute; inset: 0; background: #fff; animation: scrollAcross 1.8s ease-in-out infinite; transform: translateX(-100%); }
  @keyframes scrollAcross { to { transform: translateX(100%); } }
  .legacy-grid { grid-template-columns: minmax(19rem, 0.82fr) minmax(0, 1.18fr); gap: clamp(4rem, 8vw, 7rem); }
  .legacy-media .tag { position: absolute; right: -2rem; bottom: 2rem; width: min(20rem, 74%); margin: 0; }
  .ach-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .ach-card:nth-child(even) { border-right: 1px solid var(--paper-line); }
  .ach-card:nth-child(4n) { border-right: 0; }
  .ach-card:hover { background: var(--paper-soft); }
  .gallery-slide { flex-basis: calc(50% - 0.4375rem); }
  .gallery-slide { aspect-ratio: 4 / 3; }
  .gallery-slide img { object-fit: cover; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: 0.01ms !important; }
  .hero-bg-slide { transform: none !important; }
  .event-modal-close { animation: none; }
}
