/* Reunion Montage — site styles
   Type: Source Serif 4 (display) + Atkinson Hyperlegible Next (body, chosen for low-vision readability)
   Palette: archival paper, warm ink, one oxblood accent (school-pennant red) */

:root {
  --paper: #f5efe3;
  --paper-2: #ece3d2;
  --card: #fffdf8;
  --ink: #241e18;          /* 14.4:1 on paper */
  --ink-2: #463d33;        /* 9.3:1 on paper  */
  --rule: rgba(36, 30, 24, 0.16);
  --accent: #8b2a1d;       /* 7.5:1 on paper; button text on accent 8.3:1 */
  --accent-hover: #6f2015;
  --sepia: #7d5428;     /* 5.6:1 on paper */
  --night: #1f1a15;
  --night-2: #2b241d;
  --on-night: #f5efe3;     /* 15+:1 on night */
  --on-night-2: #d9cdb9;   /* 11:1 on night */
  --focus: #1d5fa8;
  --focus-on-dark: #ffd58a;

  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Atkinson Hyperlegible Next", "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", sans-serif;

  --s1: 0.5rem; --s2: 0.75rem; --s3: 1rem; --s4: 1.5rem; --s5: 2rem; --s6: 3rem; --s7: 4.5rem; --s8: 7rem;
  --wrap: 1180px;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --header-h: 72px;

  --shadow-card:
    0 1px 1px rgba(36, 30, 24, 0.08),
    0 4px 10px rgba(36, 30, 24, 0.10),
    0 16px 32px -8px rgba(36, 30, 24, 0.22);
  --shadow-soft:
    0 1px 2px rgba(36, 30, 24, 0.06),
    0 10px 30px -12px rgba(36, 30, 24, 0.25);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.1875rem;   /* 19px */
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
@media (max-width: 600px) { body { font-size: 1.125rem; } }

/* subtle paper grain */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.3  0 0 0 0 0.24  0 0 0 0 0.16  0 0 0 0.09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
body > * { position: relative; z-index: 1; }

::selection { background: #e9c9a8; color: var(--ink); }

img, video { display: block; max-width: 100%; height: auto; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--accent-hover); text-decoration-thickness: 2px; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  color: var(--ink);
  text-wrap: balance;
  margin: 0 0 var(--s3);
}
h1 { font-size: clamp(2.5rem, 5.6vw, 4.5rem); line-height: 1.04; letter-spacing: -0.02em; }
h2 { font-size: clamp(2rem, 3.8vw, 3rem); line-height: 1.1; letter-spacing: -0.015em; }
h3 { font-size: 1.5rem; line-height: 1.25; letter-spacing: -0.005em; }
h1 em, h2 em { font-style: italic; font-weight: 500; color: var(--accent); }
p { margin: 0 0 var(--s3); max-width: 66ch; text-wrap: pretty; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

.skip {
  position: absolute; left: var(--s3); top: -100px; z-index: 100;
  background: var(--ink); color: var(--paper); padding: var(--s2) var(--s3);
  border-radius: 6px; font-weight: 700;
}
.skip:focus { top: var(--s3); color: var(--paper); }

.eyebrow {
  font-family: var(--sans);
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--s3);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 56px;
  padding: 0.85rem 1.6rem;
  border-radius: 10px 10px 10px 3px;
  font-family: var(--sans);
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  text-align: center;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color 180ms var(--ease), color 180ms var(--ease), border-color 180ms var(--ease), transform 180ms var(--ease), box-shadow 180ms var(--ease);
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn-primary {
  background: var(--accent); color: #fffaf2;
  box-shadow: 0 1px 0 rgba(255,255,255,0.15) inset, 0 6px 16px -6px rgba(139, 42, 29, 0.55);
}
.btn-primary:hover { background: var(--accent-hover); color: #fffaf2; text-decoration: none; }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-secondary:hover { background: var(--ink); color: var(--paper); text-decoration: none; }
.btn-light { background: var(--paper); color: var(--ink); }
.btn-light:hover { background: #fff; color: var(--ink); text-decoration: none; }
.btn-sm { min-height: 46px; padding: 0.55rem 1.1rem; font-size: 1.0625rem; }
.btn-block { width: 100%; }
.section-ink .btn:focus-visible, .reel .btn:focus-visible { outline-color: var(--focus-on-dark); }

.actions { display: flex; flex-wrap: wrap; gap: var(--s3); margin-top: var(--s5); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(245, 239, 227, 0.0);
  border-bottom: 1px solid transparent;
  transition: background-color 200ms var(--ease), border-color 200ms var(--ease), backdrop-filter 200ms var(--ease);
}
.site-header.is-scrolled {
  background: rgba(245, 239, 227, 0.92);
  -webkit-backdrop-filter: saturate(1.2) blur(10px);
  backdrop-filter: saturate(1.2) blur(10px);
  border-bottom-color: var(--rule);
}
.header-inner { display: flex; align-items: center; gap: var(--s4); min-height: var(--header-h); }
.wordmark {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--serif); font-weight: 600; font-size: 1.375rem; letter-spacing: -0.01em;
  color: var(--ink); text-decoration: none; margin-right: auto;
}
.wordmark:hover { color: var(--ink); text-decoration: none; }
.wordmark-mark { width: 30px; height: 30px; color: var(--accent); flex: none; }
.nav ul { display: flex; gap: var(--s1); list-style: none; margin: 0; padding: 0; }
.nav a {
  display: inline-block; padding: 0.5rem 0.7rem; border-radius: 6px;
  color: var(--ink); font-weight: 600; font-size: 1.0625rem; text-decoration: none;
  transition: background-color 160ms var(--ease);
}
.nav a:hover { background: var(--paper-2); color: var(--ink); }
@media (max-width: 960px) { .nav { display: none; } }
.wordmark span, .btn-sm { white-space: nowrap; }
@media (max-width: 400px) { .header-inner { gap: var(--s2); } .wordmark { font-size: 1.1875rem; gap: 0.45rem; } .wordmark-mark { width: 24px; height: 24px; } .btn-sm { padding-inline: 0.8rem; font-size: 1rem; } }
@media (max-width: 340px) { .wordmark-mark { display: none; } }

section[id] { scroll-margin-top: calc(var(--header-h) + 8px); }

/* ---------- Hero ---------- */
.hero { overflow-x: clip; padding: clamp(2rem, 6vw, 5rem) 0 clamp(4rem, 8vw, 7rem); }
.hero-grid { display: grid; grid-template-columns: 1.02fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.lede { font-size: clamp(1.1875rem, 1.6vw, 1.3125rem); color: var(--ink-2); line-height: 1.6; }
.hero-note { margin-top: var(--s4); color: var(--ink-2); font-style: italic; font-family: var(--serif); font-size: 1.1875rem; }

.hero-visual { position: relative; padding: 0 4% 26% 2%; }
.screen {
  position: relative;
  background: #15110d;
  padding: 10px;
  border-radius: 14px 14px 14px 6px;
  box-shadow: var(--shadow-card);
  transform: rotate(0.6deg);
}
.screen img { border-radius: 6px; aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }

.card {
  margin: 0;
  background: var(--card);
  padding: 8px 8px 0;
  box-shadow: var(--shadow-card);
  border-radius: 2px;
}
.card img { aspect-ratio: 340 / 416; object-fit: cover; width: 100%; filter: contrast(1.03); }
.card figcaption {
  font-family: var(--sans); font-weight: 600;
  font-size: 0.875rem; color: var(--ink); text-align: center;
  padding: 0.45rem 0.2rem 0.55rem; line-height: 1.2; overflow-wrap: anywhere;
}
.hero-visual .card { position: absolute; width: clamp(108px, 26%, 176px); }
.hero-visual .card figcaption { font-size: 0.8125rem; }
.card-a { left: -6%; bottom: -2%; --r: -7deg; transform: rotate(var(--r)); }
.card-b { right: -2%; bottom: -6%; --r: 4deg; transform: rotate(var(--r)); z-index: 2; }
.card-c { left: 18%; bottom: -10%; --r: -1.5deg; transform: rotate(var(--r)); z-index: 1; }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { padding: 0 3% 30% 3%; max-width: 560px; margin-inline: auto; width: 100%; }
  .card-a { left: 0; }
  .card-c { left: 34%; }
  .card-b { right: 0; }
  .hero-visual .card { width: 30%; }
  .hero-visual .card figcaption { font-size: clamp(0.6875rem, 2.9vw, 0.875rem); }
}

/* load-in: gentle settle of the photo cards */
@media (prefers-reduced-motion: no-preference) {
  .js .hero-visual .card { animation: settle 900ms var(--ease) both; }
  .js .card-a { animation-delay: 250ms; }
  .js .card-b { animation-delay: 400ms; }
  .js .card-c { animation-delay: 550ms; }
  .js .screen { animation: fadein 700ms var(--ease) both 80ms; }
  @keyframes settle {
    from { opacity: 0; transform: translateY(18px) rotate(calc(var(--r) * 2.2)); }
    to   { opacity: 1; transform: translateY(0) rotate(var(--r)); }
  }
  @keyframes fadein { from { opacity: 0; transform: translateY(10px) rotate(0.6deg); } to { opacity: 1; transform: rotate(0.6deg); } }
}

/* ---------- Generic sections ---------- */
.section { padding: clamp(4.5rem, 9vw, 7.5rem) 0; }
.section-tint { background: var(--paper-2); border-block: 1px solid var(--rule); }
.section-head { margin-bottom: var(--s6); max-width: 46rem; }
.section-head > p:not(.eyebrow) { color: var(--ink-2); font-size: 1.25rem; }

/* ---------- Reel (screening room) ---------- */
.reel {
  background: radial-gradient(120% 80% at 50% 0%, #2f271f 0%, var(--night) 60%);
  color: var(--on-night);
  padding: clamp(4.5rem, 9vw, 7rem) 0;
}
.section-head.on-dark h2 { color: var(--on-night); }
.section-head.on-dark .eyebrow { color: #f0b48f; }   /* 9.6:1 on night */
.section-head.on-dark > p:not(.eyebrow) { color: var(--on-night-2); }
.reel a { color: #f0b48f; }

.video-frame {
  background: #0d0a08;
  padding: clamp(6px, 1vw, 12px);
  border-radius: 14px 14px 14px 6px;
  box-shadow: 0 0 0 1px rgba(245, 239, 227, 0.08), 0 30px 60px -20px rgba(0,0,0,0.7);
}
.video-frame video { width: 100%; aspect-ratio: 16 / 9; background: #000; border-radius: 6px; }
.reel-caption { margin-top: var(--s3); color: var(--on-night-2); font-size: 1.0625rem; max-width: none; }
.reel-caption strong { color: var(--on-night); }

.reel-second {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s5); align-items: center;
  margin-top: var(--s6); padding-top: var(--s6); border-top: 1px solid rgba(245, 239, 227, 0.14);
}
.reel-second h3 { color: var(--on-night); font-size: 1.75rem; }
.reel-second p { color: var(--on-night-2); }
@media (max-width: 760px) { .reel-second { grid-template-columns: 1fr; } }

/* ---------- What you get ---------- */
.what-grid { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.what-grid .section-head { position: sticky; top: calc(var(--header-h) + 24px); margin-bottom: 0; }
.framed-still {
  margin: var(--s5) 0 0;
  background: var(--card);
  padding: 10px;
  box-shadow: var(--shadow-soft);
  border-radius: 3px;
  transform: rotate(-1.2deg);
}
.framed-still img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }

.ledger { list-style: none; margin: 0; padding: 0; counter-reset: led; }
.ledger li {
  counter-increment: led;
  display: grid; grid-template-columns: 3.25rem 1fr; column-gap: var(--s3);
  padding: var(--s4) 0;
  border-top: 1px solid var(--rule);
}
.ledger li:last-child { border-bottom: 1px solid var(--rule); }
.ledger li::before {
  content: counter(led, decimal-leading-zero);
  font-family: var(--serif); font-style: italic; font-size: 1.375rem; color: var(--sepia);
  line-height: 1.3; font-variant-numeric: tabular-nums;
}
.ledger h3 { margin-bottom: 0.35rem; }
.ledger p { grid-column: 2; margin: 0; color: var(--ink-2); }
.ledger h3 { grid-column: 2; }
.ledger li::before { grid-row: 1 / span 2; }

@media (max-width: 860px) {
  .what-grid { grid-template-columns: 1fr; }
  .what-grid .section-head { position: static; margin-bottom: var(--s5); }
}


/* ---------- How it works ---------- */
.how-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.how-grid .section-head { position: sticky; top: calc(var(--header-h) + 24px); margin-bottom: 0; }
@media (max-width: 860px) { .how-grid { grid-template-columns: 1fr; } .how-grid .section-head { position: static; margin-bottom: var(--s5); } }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s3); max-width: 52rem; }
.step {
  display: grid; grid-template-columns: auto 1fr; gap: var(--s4); align-items: start;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 14px 14px 14px 4px;
  padding: var(--s4) var(--s5);
  box-shadow: 0 1px 2px rgba(36, 30, 24, 0.05);
}
.step-num {
  display: grid; place-items: center;
  width: 3.25rem; height: 3.25rem; border-radius: 50%;
  background: var(--accent); color: #fffaf2;
  font-family: var(--serif); font-size: 1.625rem; font-weight: 600; line-height: 1;
  font-variant-numeric: tabular-nums;
}
.step h3 { margin-bottom: 0.4rem; }
.step p { margin: 0; color: var(--ink-2); }
@media (max-width: 520px) {
  .step { padding: var(--s4); gap: var(--s3); }
  .step-num { width: 2.75rem; height: 2.75rem; font-size: 1.375rem; }
}

/* ---------- Styles ---------- */
.styles { display: grid; gap: clamp(3rem, 6vw, 5rem); }
.style { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.style:nth-child(2) .style-media { order: 2; }
.style-media { margin: 0; }
.style-body h3 { font-size: clamp(1.75rem, 2.6vw, 2.25rem); margin-bottom: 0.4rem; }
.style-sub { font-family: var(--serif); font-style: italic; font-size: 1.25rem; color: var(--ink-2); margin-bottom: var(--s4); }
.framed-still.style-media { transform: rotate(-1deg); }

.tn-pair { position: relative; display: flex; justify-content: center; align-items: flex-end; gap: 0; padding: var(--s4) 0; }
.tn-pair .card { width: 46%; max-width: 260px; }
.tn-pair .card img { aspect-ratio: 4 / 5; object-position: top; }
.tn-then { transform: rotate(-4deg) translateX(8%); z-index: 1; }
.tn-now { transform: rotate(3.5deg) translate(-4%, -6%); z-index: 2; }
.tn-pair figcaption { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 1.125rem; }

.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.7rem; }
.checks li { position: relative; padding-left: 2rem; color: var(--ink); }
.checks li::before {
  content: ""; position: absolute; left: 0.1rem; top: 0.42em;
  width: 1.05rem; height: 0.6rem;
  border-left: 3px solid var(--accent); border-bottom: 3px solid var(--accent);
  transform: rotate(-45deg);
}
@media (max-width: 860px) {
  .style { grid-template-columns: 1fr; }
  .style:nth-child(2) .style-media { order: 0; }
}

/* ---------- Committees ---------- */
.section-ink { background: var(--night); color: var(--on-night); }
.section-ink h2, .section-ink h3 { color: var(--on-night); }
.section-ink .eyebrow { color: #f0b48f; }
.lede-sm { color: var(--on-night-2); font-size: 1.25rem; }
.committees-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.split-lists { display: grid; gap: var(--s4); }
.list-panel {
  background: var(--night-2);
  border: 1px solid rgba(245, 239, 227, 0.12);
  border-radius: 14px 14px 14px 4px;
  padding: var(--s5);
}
.list-panel h3 { font-size: 1.375rem; margin-bottom: var(--s3); }
.checks-light li { color: var(--on-night); }
.checks-light li::before { border-color: #f0b48f; }
@media (max-width: 860px) { .committees-grid { grid-template-columns: 1fr; } .list-panel { padding: var(--s4); } }

/* ---------- Classmates ---------- */
.classmates-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.classmates-copy > p:not(.eyebrow) { color: var(--ink-2); font-size: 1.25rem; }
.actions-stack { flex-direction: column; align-items: stretch; max-width: 26rem; }
.help { margin-top: var(--s3); font-size: 1.0625rem; color: var(--ink-2); }
.help.is-ok { color: #24603a; font-weight: 700; }

.letter { margin: 0; }
.letter-label {
  font-size: 0.9375rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-2); margin-bottom: var(--s2);
}
.letter-paper {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: var(--s5);
  box-shadow: var(--shadow-soft);
  transform: rotate(0.8deg);
  background-image: linear-gradient(transparent calc(100% - 1px), rgba(36,30,24,0.035) 1px);
}
.letter-field { margin: 0 0 0.35rem; font-size: 1.0625rem; color: var(--ink-2); }
.letter-field span { display: inline-block; min-width: 4.7rem; font-weight: 700; color: var(--ink); }
.letter-field em { font-style: italic; }
.letter-body { margin-top: var(--s4); padding-top: var(--s4); border-top: 1px solid var(--rule); font-family: var(--serif); font-size: 1.125rem; line-height: 1.6; }
.letter-body p { margin-bottom: 0.8rem; }
.letter-body p:last-child { margin-bottom: 0; }
@media (max-width: 860px) {
  .classmates-grid { grid-template-columns: 1fr; }
  .actions-stack { max-width: none; }
  .letter-paper { transform: none; padding: var(--s4); }
}

/* ---------- FAQ ---------- */
.faq-wrap { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.faq-wrap .section-head { margin-bottom: 0; }
.faq { border-top: 1px solid var(--rule); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: var(--s3);
  padding: 1.15rem 0.25rem;
  font-family: var(--serif); font-weight: 600; font-size: 1.3125rem; line-height: 1.3;
  color: var(--ink);
  border-radius: 6px;
  transition: color 160ms var(--ease);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none;
  width: 1.9rem; height: 1.9rem; border-radius: 50%;
  border: 2px solid var(--ink);
  background:
    linear-gradient(var(--ink), var(--ink)) center / 0.8rem 2px no-repeat,
    linear-gradient(var(--ink), var(--ink)) center / 2px 0.8rem no-repeat;
  transition: transform 200ms var(--ease);
}
.faq details[open] summary::after { background: linear-gradient(var(--paper-2), var(--paper-2)) center / 0.8rem 2px no-repeat, var(--ink); }
.faq summary:hover { color: var(--accent); }
.faq-a { padding: 0 0.25rem 1.25rem; }
.faq-a p { margin: 0; color: var(--ink-2); }
@media (max-width: 860px) { .faq-wrap { grid-template-columns: 1fr; } .faq-wrap .section-head { margin-bottom: var(--s4); } }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.contact-copy > p:not(.eyebrow) { color: var(--ink-2); font-size: 1.25rem; }
.contact-direct { margin-top: var(--s5); padding-top: var(--s4); border-top: 1px solid var(--rule); }
.contact-direct p { margin: 0 0 0.25rem; color: var(--ink-2); }
.contact-email { font-family: var(--serif); font-size: clamp(1.25rem, 2.4vw, 1.625rem); font-weight: 600; word-break: break-word; }

.form {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 16px 16px 16px 4px;
  padding: clamp(1.25rem, 3.5vw, 2.5rem);
  box-shadow: var(--shadow-soft);
  display: grid; gap: var(--s4);
}
.field { display: grid; gap: 0.4rem; min-width: 0; align-content: start; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s4); }
@media (max-width: 600px) { .field-row { grid-template-columns: 1fr; } }
.field label, .radios legend { font-weight: 700; font-size: 1.0625rem; color: var(--ink); }
.req { font-weight: 400; color: var(--ink-2); }
.hint { margin: 0; font-size: 1rem; color: var(--ink-2); }
.error { margin: 0; font-size: 1rem; font-weight: 700; color: #a3200f; }  /* 7.5:1 on card */

input[type="text"], input[type="email"], select, textarea {
  width: 100%;
  font: inherit; font-size: 1.125rem;
  color: var(--ink);
  background: #fff;
  border: 2px solid #8a7d6c;     /* 3.95:1 vs card, meets non-text 3:1 */
  border-radius: 8px;
  padding: 0.75rem 0.9rem;
  min-height: 54px;
  transition: border-color 160ms var(--ease), box-shadow 160ms var(--ease);
}
textarea { resize: vertical; min-height: 8rem; line-height: 1.5; }
select {
  appearance: none; -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 22px) 52%, calc(100% - 15px) 52%;
  background-size: 7px 7px; background-repeat: no-repeat;
  padding-right: 2.5rem;
}
input:hover, select:hover, textarea:hover { border-color: var(--ink-2); }
input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: none; border-color: var(--focus); box-shadow: 0 0 0 3px rgba(29, 95, 168, 0.35);
}
[aria-invalid="true"] { border-color: #a3200f !important; }

.radios { border: 0; padding: 0; margin: 0; }
.radios legend { padding: 0; margin-bottom: 0.4rem; }
.radio-row { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.radio-row label {
  display: inline-flex; align-items: center; gap: 0.5rem;
  min-height: 54px; padding: 0 0.9rem;
  border: 2px solid #8a7d6c; border-radius: 8px; background: #fff;
  font-weight: 600; cursor: pointer;
  transition: border-color 160ms var(--ease), background-color 160ms var(--ease);
}
.radio-row label:hover { border-color: var(--ink-2); }
.radio-row label:has(input:checked) { border-color: var(--accent); background: #fbefe9; }
.radio-row label:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.radio-row input { width: 1.25rem; height: 1.25rem; accent-color: var(--accent); margin: 0; }
.radio-row input:focus-visible { outline: none; }

.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }

.form-status {
  border-radius: 10px; padding: var(--s3) var(--s4); font-weight: 600;
}
.form-status:focus { outline: none; }
.form-status.ok { background: #e6f1e8; color: #1d4d2e; border: 2px solid #3d7a51; }
.form-status.err { background: #fbe9e5; color: #7d1a0d; border: 2px solid #a3200f; }
.form-status p { margin: 0; }
.form-status p + p { margin-top: 0.35rem; font-weight: 400; }
button[disabled] { opacity: 0.7; cursor: progress; }

@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--night); color: var(--on-night-2); padding: var(--s6) 0 var(--s4); }
.site-footer a { color: var(--on-night); }
.site-footer a:hover { color: #fff; }
.site-footer a:focus-visible { outline-color: var(--focus-on-dark); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s4); }
.footer-inner p { margin: 0 0 0.35rem; }
.footer-brand { font-family: var(--serif); font-size: 1.5rem; font-weight: 600; color: var(--on-night); }
.footer-fine { margin-top: var(--s5); padding-top: var(--s4); border-top: 1px solid rgba(245,239,227,0.14); }
.footer-fine p { font-size: 1rem; max-width: none; }

/* ---------- Scroll motion (progressive enhancement) ----------
   Rules: content is visible by default; .rv is added by site.js itself, so if the
   script fails nothing is ever hidden. Everything here uses the individual
   translate / rotate / scale properties, which compose with the existing
   `transform: rotate(...)` tilts and load-in keyframes instead of overriding them.
   All of it lives inside prefers-reduced-motion: no-preference. */

/* Clip box for the slow "Ken Burns" drift on stills */
.kb { overflow: hidden; overflow: clip; }  /* clip, not hidden: hidden would make .kb a scroll container and capture view() */
.screen .kb { border-radius: 6px; }

@media (prefers-reduced-motion: no-preference) {

  /* 1. Triggered reveals (IntersectionObserver in site.js adds .in; batched items
        that enter together get a 70ms stagger via inline transition-delay) */
  .rv .reveal {
    opacity: 0; transform: translateY(16px);
    transition: opacity 600ms var(--ease), transform 600ms var(--ease);
  }
  .rv .reveal.in { opacity: 1; transform: none; }
  .rv .reveal.framed-still { transform: translateY(16px) rotate(-1.2deg); }
  .rv .reveal.framed-still.in { transform: rotate(-1.2deg); }

  /* Photo cards / stills / the letter settle from a little extra tilt */
  .rv .reveal.framed-still,
  .rv .reveal .framed-still,
  .rv .reveal .tn-pair .card,
  .rv .reveal.letter .letter-paper { transition: opacity 600ms var(--ease), transform 600ms var(--ease), rotate 1100ms var(--ease); }
  .rv .reveal.framed-still:not(.in),
  .rv .reveal:not(.in) .framed-still { rotate: -1.6deg; }
  .rv .reveal:not(.in) .tn-then { rotate: -4deg; }
  .rv .reveal:not(.in) .tn-now { rotate: 4deg; }
  .rv .reveal.letter:not(.in) .letter-paper { rotate: 1.8deg; }

  /* 2. Scroll-scrubbed motion (CSS scroll-driven animations; runs off the main
        thread). Browsers without support simply get the static layout. */
  @supports (animation-timeline: view()) {

    /* Slow Ken Burns drift on the film stills, echoing the films themselves */
    .framed-still .kb img {
      animation: kb-drift linear both;
      animation-timeline: view();
      animation-range: cover 0% cover 100%;
    }
    @keyframes kb-drift {
      from { scale: 1.08; translate: -1.5% 0; }
      to   { scale: 1.035; translate: 1.5% 0; }
    }
    /* Hero screen: gentle push-in as the page scrolls past the hero */
    .screen .kb img {
      animation: kb-push linear both;
      animation-timeline: scroll(root);
      animation-range: 0 100vh;
    }
    @keyframes kb-push { from { scale: 1; } to { scale: 1.06; } }

    /* Sample reel frames settle from 0.96 to full size as they come into view */
    .video-frame {
      animation: frame-settle linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 35%;
    }
    @keyframes frame-settle {
      from { scale: 0.96; translate: 0 14px; }
      to   { scale: 1;    translate: 0 0; }
    }

    /* Parallax depth: desktop/tablet only, a few percent of the viewport at most */
    @media (min-width: 768px) {
      /* hero: the screen and the three cards drift up at slightly different rates */
      .js .hero-visual .screen {
        animation: fadein 700ms var(--ease) both 80ms, drift-up linear both;
        animation-timeline: auto, scroll(root);
        animation-range: normal, 0 100vh;
        --py: -10px;
      }
      .js .hero-visual .card {
        animation: settle 900ms var(--ease) both, drift-up linear both;
        animation-timeline: auto, scroll(root);
        animation-range: normal, 0 100vh;
      }
      .js .hero-visual .card-a { animation-delay: 250ms, 0s; --py: -26px; }
      .js .hero-visual .card-b { animation-delay: 400ms, 0s; --py: -40px; }
      .js .hero-visual .card-c { animation-delay: 550ms, 0s; --py: -18px; }
      @keyframes drift-up { from { translate: 0 0; } to { translate: 0 var(--py); } }

      /* mid-page photo pieces float a touch against the scroll */
      .framed-still, .tn-pair .card, .letter-paper {
        animation: drift-y linear both;
        animation-timeline: view();
        animation-range: cover 0% cover 100%;
      }
      .framed-still { --d: 18px; }
      .tn-then { --d: 10px; }
      .tn-now { --d: 26px; }
      .letter-paper { --d: 14px; }
      @keyframes drift-y {
        from { translate: 0 var(--d); }
        to   { translate: 0 calc(var(--d) * -1); }
      }
    }
  }
}

/* Never print a half-revealed page */
@media print { .rv .reveal { opacity: 1 !important; transform: none !important; } }

/* Real classmates' names are never shown: a blurred placeholder marks where the name sits */
.name-blur { filter: blur(4px); user-select: none; pointer-events: none; }
