/* =========================================================================
   Nel Coloma-Moya — Portfolio
   Shared design system
   Type:   Playfair Display (display/serif) + Source Sans 3 (body/sans)
   Palette: warm ivory / charcoal / soft beige + tweakable accent
   ========================================================================= */

/* ---------- Tokens ---------- */
:root {
  --ivory:      #FAF8F5;
  --ivory-2:    #F4F0EA;
  --paper:      #FFFFFF;
  --beige:      #E8E0D6;
  --beige-2:    #EFE8DD;
  --ink:        #211F1B;
  --ink-soft:   #6E675C;
  --ink-faint:  #6E675C;
  --line:       rgba(33, 31, 27, 0.13);
  --line-soft:  rgba(33, 31, 27, 0.07);

  /* accent (gold) */
  --accent:      #AE8A53;
  --accent-deep: #7E6136;
  --accent-tint: rgba(174, 138, 83, 0.12);

  --maxw: 1180px;
  --gutter: clamp(20px, 5vw, 64px);

  --shadow-sm: 0 1px 2px rgba(33,31,27,0.05);
  --shadow-md: 0 18px 50px -28px rgba(33,31,27,0.45);
  --shadow-lg: 0 40px 90px -50px rgba(33,31,27,0.55);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --reveal-dur: 0.85s;

  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans:  "Source Sans 3", -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono:  ui-monospace, "SFMono-Regular", "Menlo", "Consolas", monospace;
}

@media (prefers-reduced-motion: reduce) {
  :root { --reveal-dur: 0.001s; }
  * { scroll-behavior: auto !important; }
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--ivory);
  line-height: 1.75;
  font-size: 20px;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

/* ---------- Grain texture overlay ---------- */
body::after {
  content: "";
  position: fixed; inset: 0; z-index: 2; pointer-events: none;
  opacity: 0.05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
@media (prefers-reduced-motion: reduce) { body::after { display: none; } }

/* ---------- Accessibility ---------- */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 1000;
  background: var(--ink); color: var(--ivory);
  padding: 0.8em 1.2em; font-size: 0.9rem; font-weight: 600;
  border-radius: 0 0 4px 0;
}
.skip-link:focus { left: 0; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--accent-deep); outline-offset: 2px;
}
::selection { background: var(--accent-tint); color: var(--ink); }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); position: relative; z-index: 1; }
.container--wide { max-width: 1360px; }
.container--narrow { max-width: 820px; }

section { position: relative; }
.section { padding-block: clamp(72px, 12vw, 150px); }
.section--tight { padding-block: clamp(54px, 8vw, 100px); }
.section--no-pad-bottom { padding-bottom: 0; }
.section--no-pad-top { padding-top: 0; }
.section-divider { border: 0; height: 1px; background: var(--line); margin: clamp(40px, 6vw, 64px) 0; }
.bg-beige { background: var(--beige-2); }
.bg-paper { background: var(--paper); }

/* ---------- Decorative chapter numerals ---------- */
.section[data-chapter]::before {
  content: attr(data-chapter);
  position: absolute; top: clamp(-0.3em, -2vw, -1.2em); right: clamp(-0.04em, -1vw, 0.5em);
  font-family: var(--serif); font-weight: 500; font-size: clamp(7rem, 22vw, 17rem);
  line-height: 1; letter-spacing: -0.04em;
  color: var(--ink); opacity: 0.04;
  pointer-events: none; z-index: 0;
}
.bg-beige[data-chapter]::before { color: var(--accent-deep); opacity: 0.05; }
@media (max-width: 640px) { .section[data-chapter]::before { font-size: clamp(5.5rem, 28vw, 9rem); } }

.divider { height: 1px; background: var(--line); border: 0; margin: 0; }

/* ---------- Typography ---------- */
.eyebrow {
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent-deep);
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
  margin: 0 0 1.4rem;
}
.eyebrow::before {
  content: "";
  width: 28px; height: 1px;
  background: var(--accent);
  display: inline-block;
}
.eyebrow--center { justify-content: center; }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.08; margin: 0; color: var(--ink); }
.display {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.7rem, 8vw, 6.4rem);
  line-height: 0.98;
  letter-spacing: -0.012em;
}
.h-xl { font-size: clamp(2.3rem, 5.4vw, 4.1rem); line-height: 1.08; letter-spacing: -0.01em; }
.h-lg { font-size: clamp(1.9rem, 3.9vw, 2.9rem); line-height: 1.15; }
.h-md { font-size: clamp(1.45rem, 2.6vw, 1.95rem); line-height: 1.2; }
.serif-italic { font-style: italic; }
.accent-word { color: var(--accent-deep); font-style: italic; }

.lede {
  font-size: clamp(1.2rem, 1.8vw, 1.46rem);
  line-height: 1.75;
  color: var(--ink-soft);
  font-weight: 400;
  max-width: 46ch;
  text-wrap: pretty;
}
.prose p { margin: 0 0 1.5em; line-height: 1.8; text-wrap: pretty; color: var(--ink-soft); }
.prose p.first { color: var(--ink); }
.prose p:last-child { margin-bottom: 0; }
.muted { color: var(--ink-soft); }
.faint { color: var(--ink-faint); }
.quote {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.55rem, 3.1vw, 2.4rem);
  line-height: 1.42;
  letter-spacing: -0.005em;
  color: var(--ink);
  text-wrap: balance;
}

/* ---------- Buttons / links ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.6em;
  font-family: var(--sans); font-weight: 600; font-size: 1rem;
  letter-spacing: 0.02em;
  padding: 0.95em 1.6em;
  border-radius: 2px;
  border: 1px solid var(--ink);
  background: var(--ink); color: var(--ivory);
  transition: transform .4s var(--ease), background .4s var(--ease), color .4s var(--ease), border-color .4s var(--ease);
}
.btn:hover { background: var(--accent-deep); border-color: var(--accent-deep); transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--ivory); border-color: var(--ink); transform: translateY(-2px); }
.btn .arrow { transition: transform .4s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn--linkedin svg { transition: transform .4s var(--ease); }
.btn--linkedin:hover svg { transform: scale(1.12); }

.link-line {
  display: inline-flex; align-items: center; gap: 0.55em;
  font-weight: 600; font-size: 1rem; letter-spacing: 0.03em;
  color: var(--ink);
  padding-bottom: 3px;
  background-image: linear-gradient(var(--accent), var(--accent));
  background-size: 0% 1.5px; background-repeat: no-repeat; background-position: left bottom;
  transition: background-size .45s var(--ease), color .3s var(--ease);
}
.link-line:hover { background-size: 100% 1.5px; color: var(--accent-deep); }
.link-line .arrow { transition: transform .4s var(--ease); }
.link-line:hover .arrow { transform: translateX(4px); }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: color-mix(in srgb, var(--ivory) 82%, transparent);
  backdrop-filter: blur(12px) saturate(1.1);
  -webkit-backdrop-filter: blur(12px) saturate(1.1);
  border-bottom: 1px solid transparent;
  transition: border-color .4s var(--ease), background .4s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.scroll-progress { position: absolute; left: 0; bottom: -1px; height: 2px; width: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; }
@media (prefers-reduced-motion: no-preference) { .scroll-progress { transition: transform .15s linear; } }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 76px; }
.wordmark { display: inline-flex; align-items: baseline; gap: 0.7em; white-space: nowrap; }
.wordmark__sub { padding-left: 0.7em; border-left: 1px solid var(--line); }
@media (max-width: 480px) { .wordmark__sub { display: none; } }
.wordmark__mark {
  font-family: var(--serif); font-weight: 600; font-size: 1.18rem; letter-spacing: 0.01em;
  color: var(--ink);
}
.wordmark__sub { font-size: 0.64rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--ink-faint); font-weight: 600; }

.nav-links { display: flex; align-items: center; gap: clamp(14px, 2vw, 30px); list-style: none; margin: 0; padding: 0; }
.nav-link {
  position: relative; font-size: 0.98rem; font-weight: 500; letter-spacing: 0.03em;
  color: var(--ink-soft); padding: 6px 0;
  transition: color .3s var(--ease);
}
.nav-link::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1.5px; width: 100%;
  background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease);
}
.nav-link:hover { color: var(--ink); }
.nav-link:hover::after { transform: scaleX(1); }
.nav-link.active { color: var(--ink); }
.nav-link.active::after { transform: scaleX(1); }

.nav-cta { margin-left: 4px; }
.nav-cta .btn { padding: 0.62em 1.15em; font-size: 0.82rem; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; padding: 8px; }
.nav-toggle span { width: 24px; height: 1.6px; background: var(--ink); transition: transform .35s var(--ease), opacity .35s var(--ease); }

@media (max-width: 900px) {
  .nav-links {
    position: fixed; inset: 76px 0 auto 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--ivory); border-bottom: 1px solid var(--line);
    padding: 12px var(--gutter) 28px;
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: transform .4s var(--ease), opacity .4s var(--ease);
    box-shadow: var(--shadow-md);
  }
  .nav-links.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-link { width: 100%; padding: 14px 0; border-bottom: 1px solid var(--line-soft); font-size: 1rem; }
  .nav-link::after { display: none; }
  .nav-cta { width: 100%; margin: 16px 0 0; }
  .nav-cta .btn { width: 100%; justify-content: center; padding: 0.9em; }
  .nav-toggle { display: flex; }
  body.menu-open { overflow: hidden; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(6.6px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-6.6px) rotate(-45deg); }
}

/* ---------- Reveal animation ----------
   Visible is the BASE state. The pre-animation hidden state is opt-in,
   applied only once JS confirms the environment is live (html.anim-ready).
   So if JS/transitions misbehave, content always shows. */
.reveal { opacity: 1; transform: none; }
html.anim-ready .reveal {
  opacity: 0; transform: translateY(26px);
  transition: opacity var(--reveal-dur) var(--ease), transform var(--reveal-dur) var(--ease);
  will-change: opacity, transform;
}
html.anim-ready .reveal.is-visible { opacity: 1; transform: none; }
html.anim-ready .reveal[data-delay="1"] { transition-delay: .09s; }
html.anim-ready .reveal[data-delay="2"] { transition-delay: .18s; }
html.anim-ready .reveal[data-delay="3"] { transition-delay: .27s; }
html.anim-ready .reveal[data-delay="4"] { transition-delay: .36s; }
html.anim-ready .reveal[data-delay="5"] { transition-delay: .45s; }
@media (prefers-reduced-motion: reduce) {
  html.anim-ready .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Image placeholder ---------- */
.img-ph {
  position: relative; overflow: hidden;
  background-color: var(--beige);
  background-image: repeating-linear-gradient(
    -45deg, transparent, transparent 9px,
    rgba(33,31,27,0.045) 9px, rgba(33,31,27,0.045) 10px
  );
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-faint);
}
.img-ph__label {
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ink-faint); padding: 10px 14px; text-align: center;
  border: 1px dashed var(--line); border-radius: 2px; background: color-mix(in srgb, var(--ivory) 60%, transparent);
}
.img-ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--ivory); padding-block: clamp(56px, 8vw, 92px); }
.site-footer a { color: var(--ivory); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; align-items: start; }
.footer-name { font-family: var(--serif); font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 500; line-height: 1.05; margin-bottom: 14px; }
.footer-tag { color: rgba(250,248,245,0.6); max-width: 34ch; font-size: 0.98rem; }
.footer-col h4 { font-family: var(--sans); font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase; color: rgba(250,248,245,0.5); margin-bottom: 16px; font-weight: 600; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.footer-col a { color: rgba(250,248,245,0.82); font-size: 0.96rem; transition: color .3s var(--ease); }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: clamp(40px, 6vw, 64px); padding-top: 26px; border-top: 1px solid rgba(250,248,245,0.14); color: rgba(250,248,245,0.5); font-size: 0.84rem; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-name-col { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Page hero (interior pages) ---------- */
.page-head { padding-top: clamp(56px, 10vw, 110px); padding-bottom: clamp(30px, 5vw, 56px); }
.page-head .display { max-width: 16ch; }
.page-head .lede { margin-top: 1.6rem; }
.page-index { font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.18em; color: var(--ink-faint); }

/* ---------- Stat counters ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(20px, 4vw, 48px); }
.stat { text-align: left; border-top: 1px solid var(--line); padding-top: 22px; }
.stat__num { font-family: var(--serif); font-weight: 500; font-size: clamp(2.6rem, 6vw, 4.4rem); line-height: 1; color: var(--ink); letter-spacing: -0.02em; }
.stat__num .suffix { color: var(--accent-deep); }
.stat__label { margin-top: 12px; font-size: 0.82rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-soft); font-weight: 600; }
@media (max-width: 760px) { .stat-grid { grid-template-columns: 1fr 1fr; gap: 30px 24px; } }
.stat-grid--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 640px) { .stat-grid--3 { grid-template-columns: 1fr; gap: 24px; } }
.stat__desc { margin-top: 10px; font-size: 0.92rem; color: var(--ink-soft); line-height: 1.6; }

/* ---------- Cards / grids ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: clamp(20px, 3vw, 36px); }
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: 3px;
  padding: clamp(24px, 3vw, 36px);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .5s var(--ease);
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
.card { position: relative; }
.card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--accent); transform: scaleX(0); transform-origin: left;
  transition: transform .5s var(--ease);
}
.card:hover::before { transform: scaleX(1); }
.card__num { font-family: var(--mono); font-size: 0.76rem; color: var(--accent-deep); letter-spacing: 0.12em; }
.card h3 { margin: 14px 0 10px; }

/* expertise list */
.tag-list { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0; }
.tag {
  font-size: 0.85rem; font-weight: 500; color: var(--ink);
  padding: 0.5em 1em; border: 1px solid var(--line); border-radius: 100px; background: var(--paper);
  transition: border-color .35s var(--ease), color .35s var(--ease), background .35s var(--ease);
}
.tag:hover { border-color: var(--accent); color: var(--accent-deep); }

/* ---------- Artist / contributor highlights ---------- */
.artist-name {
  font-weight: 600; color: var(--accent-deep);
  background: var(--accent-tint); border-radius: 3px;
  padding: 0.05em 0.35em; margin: 0 -0.05em;
}
a.artist-name {
  text-decoration: none;
  transition: background .3s var(--ease), color .3s var(--ease);
}
a.artist-name:hover, a.artist-name:focus-visible { background: var(--accent); color: var(--ivory); }

/* Interactive artist-discovery buttons */
button.artist-name {
  appearance: none; -webkit-appearance: none; border: 0; cursor: pointer;
  font: inherit; line-height: inherit; -webkit-tap-highlight-color: transparent;
  text-decoration: none; transition: background .3s var(--ease), color .3s var(--ease);
}
button.artist-name:hover, button.artist-name:focus-visible { background: var(--accent); color: var(--ivory); }
button.artist-name:focus-visible { outline: 2px solid var(--accent-deep); outline-offset: 2px; }

/* Discovery tooltip */
.artist-name[data-tooltip] { position: relative; }
.artist-name[data-tooltip]::after,
.artist-name[data-tooltip]::before {
  opacity: 0; pointer-events: none; position: absolute; left: 50%;
  transition: opacity .2s var(--ease), transform .2s var(--ease); z-index: 30;
}
.artist-name[data-tooltip]::after {
  content: attr(data-tooltip); bottom: calc(100% + 9px); transform: translate(-50%, 4px);
  background: var(--ink); color: var(--ivory); font-family: var(--sans);
  font-size: 0.76rem; font-weight: 500; letter-spacing: 0.01em; white-space: nowrap;
  padding: 5px 11px; border-radius: 4px; box-shadow: var(--shadow-sm);
}
.artist-name[data-tooltip]::before {
  content: ""; bottom: calc(100% + 5px); transform: translate(-50%, 4px);
  border: 4px solid transparent; border-top-color: var(--ink);
}
.artist-name[data-tooltip]:hover::after, .artist-name[data-tooltip]:hover::before,
.artist-name[data-tooltip]:focus-visible::after, .artist-name[data-tooltip]:focus-visible::before {
  opacity: 1; transform: translate(-50%, 0);
}
@media (hover: none) {
  .artist-name[data-tooltip]::after, .artist-name[data-tooltip]::before { display: none; }
}

/* ---------- Artist discovery modal ---------- */
.artist-modal-overlay {
  position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center;
  padding: 24px; background: rgba(33, 31, 27, 0.55); backdrop-filter: blur(3px);
  opacity: 0; visibility: hidden; transition: opacity .3s var(--ease), visibility .3s var(--ease);
}
.artist-modal-overlay.is-open { opacity: 1; visibility: visible; }
.artist-modal {
  background: var(--paper); border-radius: 4px; border-top: 3px solid var(--accent);
  max-width: 560px; width: 100%; max-height: 86vh; overflow-y: auto;
  padding: clamp(28px,5vw,48px); position: relative; box-shadow: var(--shadow-lg);
  transform: translateY(16px) scale(0.98); opacity: 0;
  transition: transform .35s var(--ease), opacity .35s var(--ease);
}
.artist-modal-overlay.is-open .artist-modal { transform: translateY(0) scale(1); opacity: 1; }
.artist-modal__close {
  position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--paper); color: var(--ink);
  font-size: 1.3rem; line-height: 1; cursor: pointer; display: flex;
  align-items: center; justify-content: center;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.artist-modal__close:hover, .artist-modal__close:focus-visible {
  background: var(--accent); color: var(--ivory); border-color: var(--accent);
}
.artist-modal__eyebrow {
  color: var(--accent-deep); font-family: var(--sans); font-size: 0.78rem;
  letter-spacing: 0.16em; text-transform: uppercase; margin: 0 0 0.7em; padding-right: 40px;
}
.artist-modal__name { font-family: var(--serif); font-size: clamp(1.5rem,3vw,2rem); margin: 0 0 0.9em; padding-right: 40px; }
.artist-modal__disclaimer {
  font-size: 0.85rem; line-height: 1.6; color: var(--ink-soft); background: var(--accent-tint);
  border-left: 2px solid var(--accent); padding: 12px 16px; border-radius: 3px; margin: 0 0 1.2em;
}
.artist-modal__bio p { color: var(--ink-soft); margin: 0; line-height: 1.7; }
.artist-modal__link { margin-top: 1.4em; }
.artist-modal__link[hidden] { display: none; }

body.artist-modal-open { overflow: hidden; }

@media (max-width: 560px) {
  .artist-modal { padding: 26px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .artist-modal-overlay, .artist-modal { transition: none; }
}

/* ---------- Timeline ---------- */
.timeline { position: relative; margin-top: 20px; list-style: none; padding: 0; }
.timeline::before {
  content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 1.5px; background: var(--line);
}
.t-item { position: relative; padding-left: 48px; padding-bottom: clamp(34px, 5vw, 56px); }
.t-item:last-child { padding-bottom: 0; }
.t-item::before {
  content: ""; position: absolute; left: 0; top: 6px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--ivory); border: 1.5px solid var(--accent);
  transition: background .4s var(--ease), transform .4s var(--ease);
}
.t-item:hover::before { background: var(--accent); transform: scale(1.15); }
.t-year { font-family: var(--mono); font-size: 0.8rem; letter-spacing: 0.1em; color: var(--accent-deep); }
.t-card { margin-top: 8px; }
.t-card h3 { margin-bottom: 4px; }
.t-place { font-weight: 600; color: var(--ink); }
.t-meta { color: var(--ink-soft); font-size: 0.96rem; margin-top: 10px; }
.t-meta .label { color: var(--ink-faint); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; margin-right: 8px; }
.t-thesis { font-family: var(--serif); font-style: italic; font-size: 1.08rem; color: var(--ink); margin-top: 10px; }

@media (max-width: 640px) { .t-item { padding-left: 38px; } }

/* compact timeline (QuickRN history) */
.timeline--compact .t-item { padding-bottom: clamp(22px, 3vw, 32px); }
.timeline--compact .t-card { background: none; border: 0; padding: 0; box-shadow: none; }
.timeline--compact .t-item:hover .t-card { transform: none; box-shadow: none; }
.timeline--compact .t-item::before { top: 4px; }

.event-cat { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent-deep); }

/* ---------- Award gallery ---------- */
.award-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(290px, 100%), 1fr)); gap: 0; border: 1px solid var(--line); background: var(--line); }
.award-card {
  background: var(--paper); padding: clamp(28px, 3vw, 40px);
  display: flex; flex-direction: column; gap: 12px; min-height: 210px;
  transition: background .4s var(--ease);
}
.award-card { position: relative; }
.award-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--accent); transform: scaleX(0); transform-origin: left;
  transition: transform .5s var(--ease);
}
.award-card:hover { background: var(--ivory-2); }
.award-card:hover::before { transform: scaleX(1); }
.award-mark { transition: transform .5s var(--ease); }
.award-card:hover .award-mark { transform: rotate(90deg); }
.award-mark { width: 30px; height: 30px; position: relative; }
.award-mark::before { content: ""; position: absolute; inset: 0; border: 1.5px solid var(--accent); transform: rotate(45deg); }
.award-mark::after { content: ""; position: absolute; inset: 9px; background: var(--accent); transform: rotate(45deg); opacity: .25; }
.award-card h3 { font-size: 1.18rem; line-height: 1.25; }

/* ---------- Research & scholarly work ---------- */
.research-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: clamp(20px, 3vw, 32px); }
.research-card { display: flex; flex-direction: column; gap: 14px; }
.research-card h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); line-height: 1.25; }
.research-card p { color: var(--ink-soft); margin: 0; }
.research-card__themes { display: flex; flex-wrap: wrap; gap: 8px; }
.research-card .btn { margin-top: auto; align-self: flex-start; }
.award-meta { margin-top: auto; font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.08em; color: var(--ink-faint); display: flex; gap: 10px; flex-wrap: wrap; }
.award-meta .yr { color: var(--accent-deep); }

/* leadership list */
.lead-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.lead-item {
  position: relative; display: grid; grid-template-columns: 180px 1fr; gap: 24px;
  padding: 32px 0; border-bottom: 1px solid var(--line); align-items: start;
  transition: padding-left .45s var(--ease), background-color .45s var(--ease);
}
.lead-item::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px;
  background: var(--accent); transform: scaleY(0); transform-origin: top;
  transition: transform .45s var(--ease);
}
.lead-item:hover { padding-left: 14px; background: var(--ivory-2); }
.lead-item:hover::before { transform: scaleY(1); }
.lead-item .role-when { font-family: var(--mono); font-size: 0.8rem; letter-spacing: 0.06em; color: var(--ink-faint); padding-top: 4px; transition: color .45s var(--ease); }
.lead-item:hover .role-when { color: var(--accent-deep); }
.lead-item h3 { font-size: 1.2rem; margin-bottom: 6px; }
@media (max-width: 640px) { .lead-item { grid-template-columns: 1fr; gap: 6px; } }
@media (prefers-reduced-motion: reduce) { .lead-item, .lead-item::before, .lead-item .role-when { transition: none; } }

/* ---------- Forms ---------- */
.form-grid { display: grid; gap: 22px; }
.field { display: grid; gap: 8px; }
.field label { font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 600; color: var(--ink-soft); }
.field input, .field textarea, .field select {
  font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--paper); border: 1px solid var(--line); border-radius: 2px;
  padding: 0.85em 1em; width: 100%;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-tint);
}
.field.invalid input, .field.invalid textarea { border-color: #b4453a; box-shadow: 0 0 0 3px rgba(180,69,58,0.1); }
.field .error { font-size: 0.8rem; color: #b4453a; min-height: 1em; letter-spacing: 0; text-transform: none; font-weight: 500; opacity: 0; transform: translateY(-3px); transition: opacity .3s, transform .3s; }
.field.invalid .error { opacity: 1; transform: none; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }

.form-success {
  display: none; text-align: center; padding: clamp(40px, 6vw, 70px) 30px;
  border: 1px solid var(--line); border-radius: 3px; background: var(--paper);
}
.form-success.show { display: block; animation: fadeUp .7s var(--ease) both; }
.form-success .check { width: 56px; height: 56px; margin: 0 auto 22px; border-radius: 50%; border: 1.5px solid var(--accent); display: grid; place-items: center; color: var(--accent-deep); }
.form-wrap.sent .form { display: none; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* contact details list */
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; }
.contact-list li { padding: 22px 0; border-bottom: 1px solid var(--line); }
.contact-list li:first-child { border-top: 1px solid var(--line); }
.contact-list .k { font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-faint); font-weight: 600; margin-bottom: 6px; }
.contact-list .v { font-size: 1.1rem; color: var(--ink); }
.contact-list .v a { background-image: linear-gradient(var(--accent), var(--accent)); background-size: 0 1.5px; background-repeat: no-repeat; background-position: left bottom; transition: background-size .4s var(--ease); padding-bottom: 2px; }
.contact-list .v a:hover { background-size: 100% 1.5px; color: var(--accent-deep); }

/* ---------- Scroll indicator ---------- */
.scroll-hint { display: inline-flex; flex-direction: column; align-items: center; gap: 12px; color: var(--ink-faint); font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.22em; text-transform: uppercase; }
.scroll-hint .track { width: 1px; height: 54px; background: var(--line); position: relative; overflow: hidden; }
.scroll-hint .track::after { content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--accent); animation: scrolldrop 2.4s var(--ease) infinite; }
@keyframes scrolldrop { 0% { transform: translateY(0); } 100% { transform: translateY(360%); } }

/* ---------- utilities ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.split--top { align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 40px; } }
.stack-lg > * + * { margin-top: clamp(18px, 3vw, 30px); }
.mt-s { margin-top: 1rem; } .mt-m { margin-top: 2rem; } .mt-l { margin-top: 3rem; }
.center { text-align: center; }
.maxw-prose { max-width: 60ch; }

/* ---------- Page-specific ---------- */
  section[id] { scroll-margin-top: 88px; }

  /* hero */
  .hero { min-height: calc(100svh - 76px); display: flex; flex-direction: column; justify-content: center; position: relative; overflow: hidden; }
  .hero::before {
    content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
    background: radial-gradient(ellipse 55% 48% at 50% 22%, var(--accent-tint), transparent 70%);
  }
  .hero::after {
    content: "N"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -52%);
    font-family: var(--serif); font-weight: 500; font-size: clamp(20rem, 54vw, 48rem);
    line-height: 1; color: var(--ink); opacity: 0.025;
    pointer-events: none; z-index: 0; white-space: nowrap;
  }
  .hero-role { display: flex; align-items: center; gap: 0.7em; font-size: 0.96rem; letter-spacing: 0.04em; color: var(--ink-soft); font-weight: 500; margin-top: 1.4rem; }
  .hero-role .dot { color: var(--accent); }
  .hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 2.2rem; }
  .lastname { color: var(--ink); }
  .hero-v1 { padding-top: clamp(40px, 7vw, 80px); }
  .hero-v1__inner { text-align: center; display: flex; flex-direction: column; align-items: center; position: relative; z-index: 1; }
  .hero-v1 .display { margin-top: 0.4rem; font-size: clamp(2.9rem, 9vw, 7.2rem); }
  .hero-v1 .hero-role { justify-content: center; }
  .hero-v1 .hero-statement { max-width: 24ch; margin: 2rem auto 0; }
  .hero-v1 .hero-actions { justify-content: center; }
  .hero-v1__media { margin-top: clamp(40px, 6vw, 72px); position: relative; z-index: 1; }
  .hero-v1__media .img-ph { width: 100%; }
  .hero-v1__media .img-ph::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 60%, rgba(33,31,27,0.18) 100%);
    pointer-events: none;
  }
  .hero-scroll { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 1; }

  /* photo treatment inside placeholder frames */
  .img-ph img.photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
  .img-ph:has(img.photo) { border: 0; background: none; }
  .img-ph:has(img.photo) .img-ph__label { display: none; }

  .statement-q { position: relative; font-size: clamp(1.6rem, 3.4vw, 2.7rem); }
  .statement-q::before {
    content: "\201C"; position: absolute; left: -0.1em; top: -0.62em;
    font-family: var(--serif); font-size: clamp(3.4rem, 7vw, 6rem); line-height: 1;
    color: var(--accent); opacity: 0.3; pointer-events: none; z-index: -1;
  }
  .signature { font-family: var(--serif); font-style: italic; font-size: 1.5rem; color: var(--ink); }

  /* about */
  .bio-layout { display: grid; grid-template-columns: 240px 1fr; gap: clamp(28px,5vw,72px); align-items: start; }
  .bio-aside { position: sticky; top: 100px; }
  .bio-aside .label { font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-faint); font-weight: 600; margin-bottom: 10px; }
  .bio-aside p { font-family: var(--serif); font-style: italic; font-size: 1.15rem; line-height: 1.4; color: var(--ink); margin: 0; }
  @media (max-width: 760px) { .bio-layout { grid-template-columns: 1fr; } .bio-aside { position: static; } }
  .prose-lg p { font-size: 1.12rem; line-height: 1.72; margin: 0 0 1.4em; color: var(--ink-soft); }
  .prose-lg p.first { color: var(--ink); }
  .prose-lg .dropcap::first-letter { font-family: var(--serif); font-size: 3.6rem; line-height: 0.8; float: left; padding: 6px 12px 0 0; color: var(--accent-deep); font-weight: 500; }
  .values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
  .value { background: var(--paper); padding: clamp(26px,3vw,40px); transition: background .4s var(--ease); }
  .value:hover { background: var(--ivory-2); }
  .value__n { font-family: var(--mono); font-size: 0.76rem; color: var(--accent-deep); letter-spacing: 0.1em; }
  .value h3 { margin: 14px 0 10px; font-size: 1.3rem; }
  .value p { margin: 0; color: var(--ink-soft); font-size: 0.98rem; }
  @media (max-width: 760px) { .values-grid { grid-template-columns: 1fr; } }
  .values-grid--5 { grid-template-columns: repeat(5, 1fr); }
  @media (max-width: 760px) { .values-grid--5 { grid-template-columns: repeat(3, 1fr); } }
  @media (max-width: 480px) { .values-grid--5 { grid-template-columns: repeat(2, 1fr); } }
  .pull { position: relative; border-left: 2px solid var(--accent); padding-left: clamp(20px,3vw,34px); margin: clamp(30px,4vw,48px) 0; }
  .pull::before {
    content: "\201C"; position: absolute; left: clamp(8px,1.4vw,22px); top: -0.62em;
    font-family: var(--serif); font-size: clamp(3.2rem, 7vw, 6rem); line-height: 1;
    color: var(--accent); opacity: 0.3; pointer-events: none;
  }
  .quickrn-feature__body > .quote { position: relative; padding-left: clamp(20px,2.4vw,34px); }
  .quickrn-feature__body > .quote::before {
    content: "\201C"; position: absolute; left: -0.12em; top: -0.5em;
    font-family: var(--serif); font-size: clamp(3.2rem, 6vw, 5.5rem); line-height: 1;
    color: var(--accent); opacity: 0.3; pointer-events: none;
  }

  /* education */
  .t-card { background: var(--paper); border: 1px solid var(--line); border-radius: 3px; padding: clamp(22px,3vw,30px); transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .5s var(--ease); }
  .t-item:hover .t-card { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); }
  .t-badge { display: inline-block; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-deep); background: var(--accent-tint); padding: 0.35em 0.8em; border-radius: 100px; margin-bottom: 12px; }
  .edu-layout { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(36px,6vw,90px); align-items: start; }
  .edu-aside { position: sticky; top: 100px; }
  @media (max-width: 860px) { .edu-layout { grid-template-columns: 1fr; } .edu-aside { position: static; } }

  /* teaching */
  .exp-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
  .exp-item { position: relative; display: grid; grid-template-columns: 200px 1fr; gap: clamp(20px,4vw,56px); padding: clamp(26px,4vw,40px) 0; border-bottom: 1px solid var(--line); align-items: start; transition: padding-left .45s var(--ease); }
  .exp-item:hover { padding-left: 14px; }
  .exp-item::before {
    content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px;
    background: var(--accent); transform: scaleY(0); transform-origin: top;
    transition: transform .45s var(--ease);
  }
  .exp-item:hover::before { transform: scaleY(1); }
  .exp-when { font-family: var(--mono); font-size: 0.82rem; letter-spacing: 0.04em; color: var(--accent-deep); padding-top: 6px; }
  .exp-when .now { display: inline-block; margin-top: 8px; font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-deep); background: var(--accent-tint); padding: 0.3em 0.7em; border-radius: 100px; }
  .exp-body h3 { font-size: clamp(1.3rem,2.4vw,1.7rem); margin-bottom: 4px; }
  .exp-role { font-weight: 600; color: var(--ink); }
  .exp-body p { color: var(--ink-soft); margin: 12px 0 0; max-width: 60ch; }
  .exp-courses { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
  .exp-courses .tag { font-size: 0.8rem; padding: 0.4em 0.85em; }
  @media (max-width: 640px) { .exp-item { grid-template-columns: 1fr; gap: 10px; } }
  .spec-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
  .spec { background: var(--paper); padding: clamp(26px,3vw,38px); transition: background .4s var(--ease); }
  .spec:hover { background: var(--ivory-2); }
  .spec h3 { font-size: 1.22rem; margin-bottom: 10px; }
  .spec p { margin: 0; color: var(--ink-soft); font-size: 0.98rem; }
  @media (max-width: 640px) { .spec-grid { grid-template-columns: 1fr; } }

  /* contact */
  .contact-layout { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(36px,6vw,88px); align-items: start; }
  @media (max-width: 860px) { .contact-layout { grid-template-columns: 1fr; gap: 48px; } }
  .social-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
  .social-row a { font-size: 0.85rem; font-weight: 600; padding: 0.6em 1.1em; border: 1px solid var(--line); border-radius: 100px; transition: border-color .35s var(--ease), color .35s var(--ease); }
  .social-row a:hover { border-color: var(--accent); color: var(--accent-deep); }

  .sec-head { display: flex; align-items: baseline; gap: 16px; margin-bottom: clamp(30px,4vw,48px); }
  .sec-head .num { font-family: var(--mono); font-size: 0.8rem; letter-spacing: 0.16em; color: var(--ink-faint); }

  /* ---------- About: photo + bio ---------- */
  .about-layout { display: grid; grid-template-columns: 320px 1fr; gap: clamp(28px,5vw,72px); align-items: start; }
  .about-photo { margin: 0; }
  .about-photo .img-ph { border-radius: 3px; }
  @media (max-width: 760px) { .about-layout { grid-template-columns: 1fr; } .about-photo { max-width: 320px; } }

  /* ---------- Educational journey photo ---------- */
  .journey-photo .img-ph { border-radius: 3px; }

  /* ---------- Major events: story layout ---------- */
  .story-events { display: grid; gap: clamp(56px,9vw,110px); }
  .story-event { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px,5vw,64px); align-items: center; }
  .story-event--reverse .story-event__media { order: 2; }
  .story-event__media { border: 1px solid var(--line); border-radius: 3px; overflow: hidden; box-shadow: var(--shadow-sm); }
  .story-event__media img { width: 100%; height: auto; display: block; }
  .story-event__body .event-cat { display: block; margin-bottom: 0.7em; }
  .story-event__body h3 { font-size: clamp(1.4rem,2.6vw,2rem); margin-bottom: 0.6em; }
  .story-event__body p { color: var(--ink-soft); margin: 0 0 1em; }
  .story-event__body p:last-child { margin-bottom: 0; }
  @media (max-width: 760px) {
    .story-event, .story-event--reverse { grid-template-columns: 1fr; }
    .story-event--reverse .story-event__media { order: 0; }
  }

  /* ---------- QuickRN feature ---------- */
  .quickrn-brand { display: flex; align-items: center; gap: clamp(16px,2.5vw,28px); margin-bottom: 1.2rem; flex-wrap: wrap; }
  .quickrn-brand h2 { margin: 0; }
  .quickrn-logo { display: block; height: clamp(40px, 4.5vw, 56px); width: auto; margin: 0; flex-shrink: 0; }
  @media (max-width: 560px) { .quickrn-brand { flex-direction: column; align-items: flex-start; gap: 14px; } }
  .quickrn-feature { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(32px,5vw,72px); align-items: center; }
  .quickrn-feature__media .img-ph { border-radius: 3px; }
  @media (max-width: 860px) { .quickrn-feature { grid-template-columns: 1fr; } .quickrn-feature__media { max-width: 420px; } }

  /* ---------- QuickRN call-to-action ---------- */
  .quickrn-cta {
    margin-top: clamp(40px,6vw,64px);
    padding: clamp(32px,5vw,56px) clamp(28px,4.5vw,64px);
    border: 1px solid var(--line);
    border-radius: 3px;
    background: var(--paper);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(10px,1.5vw,16px);
  }
  .quickrn-cta__eyebrow { margin: 0; }
  .quickrn-cta__lead {
    font-family: var(--serif);
    font-size: clamp(1.3rem, 2.6vw, 1.9rem);
    line-height: 1.35;
    max-width: 32ch;
    margin: 0;
    color: var(--ink);
  }

  .gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px,2vw,24px); }
  .gallery-grid .img-ph { border-radius: 3px; }
  @media (max-width: 760px) { .gallery-grid { grid-template-columns: 1fr 1fr; } }
  @media (max-width: 480px) { .gallery-grid { grid-template-columns: 1fr; } }

  /* ---------- Events: feature stories ---------- */
  .event-feature { padding-top: clamp(64px,9vw,110px); border-top: 1px solid var(--line); }
  .event-feature:first-of-type { padding-top: 0; border-top: 0; }
  .event-feature__header { margin-bottom: clamp(28px,4vw,44px); max-width: 70ch; }
  .event-feature__header .event-cat { display: block; margin-bottom: 0.7em; }
  .event-feature__header h3 { font-size: clamp(1.7rem,3.2vw,2.6rem); margin-bottom: 0.5em; }
  .event-feature__header p { color: var(--ink-soft); }

  .event-editions { margin-top: clamp(40px,6vw,64px); }
  .event-editions .timeline--compact .t-card h4 { font-family: var(--serif); font-size: 1.12rem; font-weight: 600; margin: 0 0 6px; color: var(--ink); }
  .event-editions .timeline--compact .t-card p { color: var(--ink-soft); }
  .event-editions .timeline--compact .t-card .quote-line { font-style: italic; color: var(--ink); }
  .event-editions .t-card--media { display: grid; grid-template-columns: 140px 1fr; gap: clamp(18px,3vw,28px); align-items: start; }
  .event-editions .t-card--media img { width: 100%; height: auto; border-radius: 3px; border: 1px solid var(--line); }
  @media (max-width: 560px) { .event-editions .t-card--media { grid-template-columns: 1fr; } .event-editions .t-card--media img { max-width: 200px; } }

  .event-highlights { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: clamp(32px,4vw,48px); }
  .highlight-card { background: var(--paper); padding: clamp(24px,3vw,34px); transition: background .4s var(--ease); }
  .highlight-card:hover { background: var(--ivory-2); }
  .highlight-card .event-cat { display: block; margin-bottom: 0.6em; }
  .highlight-card h4 { font-size: 1.1rem; margin-bottom: 8px; }
  .highlight-card p { color: var(--ink-soft); font-size: 0.96rem; }
  @media (max-width: 760px) { .event-highlights { grid-template-columns: 1fr; } }

  .event-media-strip { margin-top: clamp(40px,6vw,64px); border: 1px solid var(--line); border-radius: 3px; overflow: hidden; box-shadow: var(--shadow-sm); position: relative; }
  .event-media-strip img { width: 100%; height: auto; display: block; }
  .event-media-strip figcaption { font-size: 0.85rem; color: var(--ink-faint); margin-top: 10px; }

  /* Compact flyer — reduced footprint so flyers support, not dominate, the story */
  .event-media-strip--compact { max-width: 60%; margin-left: auto; margin-right: auto; }
  @media (max-width: 760px) { .event-media-strip--compact { max-width: 75%; } }
  @media (max-width: 520px) { .event-media-strip--compact { max-width: 100%; } }

  /* Immersive photo gallery — mixes full-width and half-width images */
  .event-gallery { margin-top: clamp(40px,6vw,64px); display: grid; gap: clamp(12px,1.6vw,20px); }
  .event-gallery__row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(12px,1.6vw,20px); }
  .event-gallery figure { margin: 0; border: 1px solid var(--line); border-radius: 3px; overflow: hidden; box-shadow: var(--shadow-sm); }
  .event-gallery img { width: 100%; height: 100%; object-fit: cover; display: block; }
  .event-gallery figcaption { font-size: 0.85rem; color: var(--ink-faint); padding: 10px 14px; }
  .event-gallery__row figure { display: flex; flex-direction: column; }
  .event-gallery__row img { aspect-ratio: 3 / 2; }
  .event-gallery__full img { aspect-ratio: 16 / 9; }
  @media (max-width: 640px) { .event-gallery__row { grid-template-columns: 1fr; } }

  /* Poster paired beside the event story — poster supports, doesn't dominate */
  .event-poster-split { display: grid; grid-template-columns: minmax(160px, 230px) 1fr; gap: clamp(28px,4vw,48px); align-items: center; margin-top: clamp(32px,5vw,56px); }
  .event-poster-split__media { margin: 0; border: 1px solid var(--line); border-radius: 3px; overflow: hidden; box-shadow: var(--shadow-sm); }
  .event-poster-split__media img { width: 100%; height: auto; display: block; }
  .event-poster-split__media figcaption { font-size: 0.8rem; color: var(--ink-faint); padding: 8px 10px; }
  .event-poster-split__body p { color: var(--ink-soft); margin: 0; }
  @media (max-width: 700px) {
    .event-poster-split { grid-template-columns: 1fr; }
    .event-poster-split__media { max-width: 240px; margin: 0 auto; }
  }

  .event-schedule { list-style: none; margin: clamp(32px,4vw,48px) 0 0; padding: 0; border-top: 1px solid var(--line); }
  .event-schedule li { display: grid; grid-template-columns: 130px 1fr; gap: clamp(16px,3vw,28px); padding: clamp(16px,2vw,22px) 0; border-bottom: 1px solid var(--line); align-items: baseline; }
  .event-schedule .time { font-family: var(--mono); font-size: 0.8rem; letter-spacing: 0.06em; color: var(--accent-deep); padding-top: 2px; }
  .event-schedule h4 { font-size: 1.02rem; margin: 0 0 4px; }
  .event-schedule p { color: var(--ink-soft); font-size: 0.94rem; margin: 0; }
  @media (max-width: 640px) { .event-schedule li { grid-template-columns: 1fr; gap: 4px; } }

  .event-reflection { margin-top: clamp(40px,6vw,64px); }

  /* ---------- In memoriam ---------- */
  .memorial {
    position: relative;
    margin: clamp(56px,9vw,110px) 0;
    padding: clamp(28px,4.5vw,48px);
    border: 1px solid var(--line);
    border-left: 3px solid var(--accent);
    border-radius: 3px;
    background: var(--ivory);
    overflow: hidden;
    display: grid;
    grid-template-columns: clamp(96px,14vw,150px) 1fr;
    gap: clamp(24px,4vw,48px);
    align-items: start;
  }
  .memorial::before {
    content: "\201C"; position: absolute; right: clamp(8px,2vw,28px); top: -0.3em;
    font-family: var(--serif); font-size: clamp(4rem, 9vw, 8rem); line-height: 1;
    color: var(--accent); opacity: 0.12; pointer-events: none;
  }
  .memorial__photo { margin: 0; }
  .memorial__photo img {
    display: block; width: 100%; height: auto; aspect-ratio: 4/3; object-fit: cover;
    border-radius: 3px; border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  }
  .memorial__content { position: relative; z-index: 1; }
  .memorial__eyebrow { margin: 0 0 0.6em; color: var(--accent-deep); }
  .memorial__name { font-family: var(--serif); font-size: clamp(1.5rem, 2.8vw, 2.1rem); margin: 0 0 1.1em; }
  .memorial__years { color: var(--ink-soft); font-weight: 400; font-size: 0.68em; letter-spacing: 0.04em; }
  .memorial__body { max-width: 60ch; }
  .memorial__body p { color: var(--ink-soft); margin: 0 0 1.1em; }
  .memorial__body p:last-of-type { margin-bottom: 1.4em; }
  .memorial__quote { font-family: var(--serif); font-style: italic; color: var(--ink); }
  @media (max-width: 700px) {
    .memorial { grid-template-columns: 1fr; }
    .memorial__photo { max-width: 180px; }
  }

/* ---------- Zoomable posters / lightbox triggers ---------- */
.zoomable-wrap {
  display: block; width: 100%; position: relative;
  margin: 0; padding: 0; border: 0; background: none; cursor: zoom-in;
  font: inherit; text-align: left;
}
.zoomable-wrap::after {
  content: "\2922"; position: absolute; top: 10px; right: 10px;
  width: 36px; height: 36px; display: grid; place-items: center;
  background: rgba(33,31,27,0.6); color: var(--ivory); border-radius: 100px;
  font-size: 1.1rem; opacity: 0; transform: scale(0.85);
  transition: opacity .3s var(--ease), transform .3s var(--ease);
  pointer-events: none;
}
.zoomable-wrap:hover::after, .zoomable-wrap:focus-visible::after { opacity: 1; transform: scale(1); }
.zoomable-wrap:focus-visible { outline: 2px solid var(--accent-deep); outline-offset: 2px; }

/* ---------- Lightbox / document viewer ---------- */
body.lightbox-open { overflow: hidden; }
.lightbox-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(20,18,15,0.92);
  display: flex; align-items: center; justify-content: center;
  padding: clamp(16px,4vw,48px);
  opacity: 0; visibility: hidden;
  transition: opacity .35s var(--ease), visibility .35s var(--ease);
}
.lightbox-overlay.is-open { opacity: 1; visibility: visible; }
.lightbox-stage {
  position: relative; max-width: 100%; max-height: 100%;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; touch-action: none;
}
.lightbox-stage.is-zoomed { cursor: grab; }
.lightbox-stage.is-dragging { cursor: grabbing; }
.lightbox-overlay img {
  max-width: 100%; max-height: 86vh; display: block;
  border-radius: 2px; box-shadow: var(--shadow-lg);
  transform-origin: center center;
  transition: transform .25s var(--ease);
  user-select: none; -webkit-user-drag: none;
  transform: scale(0.96); opacity: 0;
}
.lightbox-overlay.is-open img { transform: scale(1); opacity: 1; }
.lightbox-stage.is-dragging img,
.lightbox-stage.is-zoomed img { transition: none; }
.lightbox-overlay.is-open .lightbox-stage.is-zoomed img,
.lightbox-overlay.is-open .lightbox-stage.is-dragging img { transition: transform .25s var(--ease); }
.lightbox-toolbar { position: absolute; top: clamp(8px,2vw,20px); right: clamp(8px,2vw,20px); display: flex; gap: 10px; z-index: 2; }
.lightbox-btn {
  width: 42px; height: 42px; display: grid; place-items: center;
  background: rgba(250,248,245,0.08); border: 1px solid rgba(250,248,245,0.25);
  color: var(--ivory); border-radius: 100px; font-size: 1.2rem; line-height: 1;
  cursor: pointer; transition: background .25s var(--ease), border-color .25s var(--ease);
}
.lightbox-btn:hover { background: rgba(250,248,245,0.18); border-color: rgba(250,248,245,0.5); }
.lightbox-caption {
  position: absolute; left: 0; right: 0; bottom: clamp(8px,2vw,24px);
  text-align: center; color: rgba(250,248,245,0.75); font-size: 0.9rem;
  padding: 0 clamp(60px,8vw,120px); margin: 0; pointer-events: none;
}
@media (max-width: 640px) {
  .lightbox-toolbar { top: 8px; right: 8px; }
  .lightbox-btn { width: 38px; height: 38px; font-size: 1.05rem; }
  .lightbox-caption { font-size: 0.82rem; padding: 0 16px; bottom: 8px; }
}
