/* ==========================================================================
   Kappa Sigma · Gamma Pi — design system
   One stylesheet, no framework. Sections:
   1 tokens · 2 reset/base · 3 type · 4 layout · 5 controls · 6 nav/footer
   7 shared components · 8 page-specific · 9 motion
   ========================================================================== */

/* 1 ── Tokens ─────────────────────────────────────────────────────────── */
:root {
  color-scheme: dark;

  --bg: #161513;
  --bg-1: #1c1a18;
  --bg-2: #232120;
  --bg-3: #2b2926;
  --bg-rgb: 22 21 19;           /* --bg as channels, for translucent surfaces */
  --tint: 255 255 255;         /* overlay tint: lightens on dark, darkens on light */
  --line: rgb(var(--tint) / 0.08);
  --line-2: rgb(var(--tint) / 0.16);

  --fg: #efe9de;
  --fg-2: #aaa398;
  --fg-3: #8a847a;
  --fg-strong: #fffaf0;
  --placeholder: #6e685f;

  --scarlet: #a6192e;        /* brand: Bologna scarlet — fills */
  --scarlet-hi: #ee3d55;     /* lifted for text/lines on dark */
  --gold: #cbb87a;
  --green: #4cc38a;
  --shadow: rgb(0 0 0 / 0.6);

  /* canvas visuals read these */
  --font-sans: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: var(--font-sans);   /* no code type on this site; figures use tabular nums */
  --font-serif: "Newsreader", "Iowan Old Style", Georgia, serif;

  --wrap: 1240px;
  --gutter: clamp(20px, 4vw, 48px);
  --section: clamp(72px, 10vw, 136px);
  --nav-h: 64px;
  --radius: 10px;
  --radius-sm: 6px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  /* crest motifs, used as masks so they take any token colour */
  --m-star: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.5l2.6 6.3 6.8.5-5.2 4.4 1.6 6.6L12 16.8l-5.8 3.5 1.6-6.6-5.2-4.4 6.8-.5z'/%3E%3C/svg%3E");
  --m-star-line: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.2' stroke-linejoin='round'%3E%3Cpath d='M12 2.5l2.6 6.3 6.8.5-5.2 4.4 1.6 6.6L12 16.8l-5.8 3.5 1.6-6.6-5.2-4.4 6.8-.5z'/%3E%3C/svg%3E");
  --m-crescent: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M2.5 7A9.5 9.5 0 0 0 21.5 7 9.5 5.5 0 0 1 2.5 7z'/%3E%3C/svg%3E");
}

/* Light theme. <html data-theme> is set before first paint by the inline
   script in base.html (stored choice, else the system preference). */
:root[data-theme="light"] {
  color-scheme: light;

  --bg: #f7f4ee;
  --bg-1: #fdfbf7;
  --bg-2: #efe9df;
  --bg-3: #e5ddd0;
  --bg-rgb: 247 244 238;
  --tint: 31 27 22;
  --line: rgb(var(--tint) / 0.1);
  --line-2: rgb(var(--tint) / 0.2);

  --fg: #1f1b16;
  --fg-2: #5e554a;
  --fg-3: #7b7266;
  --fg-strong: #0f0c08;
  --placeholder: #a39a8d;

  --scarlet-hi: #a6192e;
  --gold: #86702c;
  --green: #16a34a;
  --shadow: rgb(31 27 22 / 0.14);
}

/* 2 ── Reset / base ───────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--nav-h) + 16px);
}
body {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
main { flex: 1; }
img, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
ul[class], ol[class] { list-style: none; padding: 0; }
h1, h2, h3, h4 { font-weight: 500; line-height: 1.08; text-wrap: balance; }
h1, h2 { font-family: var(--font-serif); font-weight: 400; }
p { text-wrap: pretty; }
::selection { background: var(--scarlet); color: #fff; }
:focus-visible {
  outline: 2px solid var(--scarlet-hi);
  outline-offset: 3px;
  border-radius: 4px;
}
[hidden], [x-cloak] { display: none !important; }

.skip-link {
  position: fixed; top: 8px; left: 8px; z-index: 200;
  padding: 10px 14px; border-radius: var(--radius-sm);
  background: var(--fg); color: var(--bg); font-weight: 500;
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; }
.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}

/* 3 ── Type ───────────────────────────────────────────────────────────── */
.mono {
  font-size: 0.8125rem;
  font-variant-numeric: tabular-nums;
}
.eyebrow {
  display: block;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--fg-3);
}

.display {
  font-family: var(--font-serif);
  font-size: clamp(3.5rem, 8vw, 7rem);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.025em;
}
.h1 {
  font-size: clamp(2.6rem, 6vw, 4.75rem);
  line-height: 1;
  letter-spacing: -0.02em;
}
.h2 {
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.05;
  letter-spacing: -0.015em;
}
.h3 { font-size: 1.25rem; letter-spacing: -0.015em; line-height: 1.25; }
.serif {                      /* quotations only, never emphasis */
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--fg);
}
.accent { color: var(--scarlet-hi); }
.lead {
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  line-height: 1.55;
  color: var(--fg-2);
  max-width: 56ch;
}
.statement {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 2.7vw, 2.25rem);
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--fg);
}
.statement strong { font-weight: inherit; }
.muted { color: var(--fg-2); }
.faint { color: var(--fg-3); }
.num { font-variant-numeric: tabular-nums; }

/* 4 ── Layout ─────────────────────────────────────────────────────────── */
.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { position: relative; padding-block: var(--section); }
.section--flush { border-top: 0; }

/* Section divider: a hairline with a small gold crest motif at its centre,
   alternating star and crescent down the page */
.section:not(.section--flush)::before,
.section:not(.section--flush)::after { content: ""; position: absolute; top: 0; pointer-events: none; }
.section:not(.section--flush)::before {
  left: 0; right: 0; height: 1px; background: var(--line);
  -webkit-mask: linear-gradient(to right, #000 calc(50% - 28px), transparent 0 calc(50% + 28px), #000 0);
          mask: linear-gradient(to right, #000 calc(50% - 28px), transparent 0 calc(50% + 28px), #000 0);
}
.section:not(.section--flush)::after {
  left: 50%; width: 12px; height: 12px; transform: translate(-50%, -50%);
  background: var(--gold);
  -webkit-mask: var(--m-star) center / contain no-repeat;
          mask: var(--m-star) center / contain no-repeat;
}
.section:nth-child(even of .section:not(.section--flush))::after {
  width: 16px; height: 16px;
  -webkit-mask-image: var(--m-crescent); mask-image: var(--m-crescent);
}

/* A loose scatter of faint crest motifs for open corners */
.scatter { position: relative; isolation: isolate; }
.scatter::after {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  top: clamp(24px, 4vw, 56px); right: var(--gutter);
  width: clamp(180px, 22vw, 300px); aspect-ratio: 3 / 2;
  background: var(--gold); opacity: 0.45;
  -webkit-mask:
    var(--m-star-line) 8% 18% / 18px 18px no-repeat,
    var(--m-star) 46% 6% / 9px 9px no-repeat,
    var(--m-crescent) 78% 26% / 26px 26px no-repeat,
    var(--m-star-line) 30% 72% / 12px 12px no-repeat,
    var(--m-star) 92% 82% / 7px 7px no-repeat,
    var(--m-star-line) 62% 92% / 15px 15px no-repeat;
          mask:
    var(--m-star-line) 8% 18% / 18px 18px no-repeat,
    var(--m-star) 46% 6% / 9px 9px no-repeat,
    var(--m-crescent) 78% 26% / 26px 26px no-repeat,
    var(--m-star-line) 30% 72% / 12px 12px no-repeat,
    var(--m-star) 92% 82% / 7px 7px no-repeat,
    var(--m-star-line) 62% 92% / 15px 15px no-repeat;
}
.section-head.scatter::after { top: -8px; aspect-ratio: 5 / 2; }
@media (max-width: 760px) { .scatter::after { display: none; } }
.section--tight { padding-block: clamp(48px, 6vw, 80px); }
.section-head {
  display: flex; align-items: end; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
  margin-bottom: clamp(32px, 5vw, 64px);
}
.section-head .eyebrow { margin-bottom: 18px; }
.stack > * + * { margin-top: var(--gap, 1rem); }
.split {
  display: grid; gap: clamp(32px, 6vw, 96px);
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 900px) {
  .split { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
  .split--even { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split--aside { grid-template-columns: minmax(0, 1fr) minmax(0, 420px); }
}

/* 5 ── Controls ───────────────────────────────────────────────────────── */
.btn {
  --btn-bg: transparent; --btn-fg: var(--fg); --btn-bd: var(--line-2);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 44px; padding: 0 18px;
  border: 1px solid var(--btn-bd); border-radius: 999px;
  background: var(--btn-bg); color: var(--btn-fg);
  font-size: 0.9375rem; font-weight: 500;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s var(--ease);
}
.btn svg { width: 16px; height: 16px; transition: transform 0.3s var(--ease); }
.btn:hover { --btn-bd: var(--fg); }
.btn:hover svg.i-arrow { transform: translateX(3px); }
.btn:active { transform: scale(0.98); }
.btn--solid { --btn-bg: var(--fg); --btn-fg: var(--bg); --btn-bd: var(--fg); }
.btn--solid:hover { --btn-bg: var(--fg-strong); --btn-bd: var(--fg-strong); }
.btn--accent { --btn-bg: var(--scarlet); --btn-fg: #fff; --btn-bd: var(--scarlet); }
.btn--accent:hover { --btn-bg: #bd1f37; --btn-bd: #bd1f37; }
.btn--sm { min-height: 36px; padding: 0 14px; font-size: 0.875rem; }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.link {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--fg); font-weight: 500;
  border-bottom: 1px solid var(--line-2); padding-bottom: 3px;
  transition: border-color 0.2s, color 0.2s;
}
.link svg { width: 15px; height: 15px; transition: transform 0.3s var(--ease); }
.link:hover { border-color: var(--scarlet-hi); }
.link:hover svg { transform: translateX(3px); }
.text-link { color: var(--fg); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.text-link:hover { text-decoration-color: var(--scarlet-hi); }

.status {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.875rem; color: var(--fg-2);
}
.status::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--green);
}
.status--off::before { background: var(--fg-3); box-shadow: none; }

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border: 1px solid var(--line-2); border-radius: 999px;
  font-size: 0.8125rem; color: var(--fg-2);
}
.chip button { display: inline-flex; color: var(--fg-3); }
.chip button:hover { color: var(--fg); }
.chip svg { width: 12px; height: 12px; }

/* Forms */
.field { display: grid; gap: 8px; }
.field + .field, .field-row + .field, .field + .field-row { margin-top: 18px; }
.field-row { display: grid; gap: 18px; }
@media (min-width: 560px) { .field-row { grid-template-columns: 1fr 1fr; } .field-row > .field { margin-top: 0; } }
.label {
  font-size: 0.875rem; font-weight: 500; color: var(--fg-2);
}
.label .req { color: var(--scarlet-hi); }
.input, .textarea, .select {
  width: 100%; min-height: 48px; padding: 12px 16px;
  background: var(--bg); color: var(--fg);
  border: 1px solid var(--line-2); border-radius: var(--radius-sm);
  transition: border-color 0.2s, box-shadow 0.2s;
  appearance: none;
}
.textarea { min-height: 128px; resize: vertical; line-height: 1.5; }
.select {
  padding-right: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none' stroke='%237d7d87' stroke-width='1.5'%3E%3Cpath d='M2.5 4.5 6 8l3.5-3.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
.input::placeholder, .textarea::placeholder { color: var(--placeholder); }
.input:hover, .textarea:hover, .select:hover { border-color: rgb(var(--tint) / 0.28); }
.input:focus, .textarea:focus, .select:focus {
  outline: none; border-color: var(--scarlet-hi);
  box-shadow: 0 0 0 3px var(--line);
}
.check { display: flex; align-items: flex-start; gap: 10px; font-size: 0.875rem; color: var(--fg-2); }
.check input { width: 16px; height: 16px; margin-top: 3px; accent-color: var(--scarlet); }
.hint { font-size: 0.8125rem; color: var(--fg-3); }

.flash {
  display: flex; gap: 10px; align-items: center;
  margin: 16px 0 0; padding: 12px 16px;
  border: 1px solid var(--line-2); border-radius: var(--radius-sm);
  background: var(--bg-1); font-size: 0.9375rem;
}
.flash::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--scarlet-hi); flex: none; }
.flash--success::before { background: var(--green); }

/* 6 ── Nav / footer ───────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 100;
  height: var(--nav-h);
  border-bottom: 1px solid transparent;
  transition: background 0.3s, border-color 0.3s;
}
.nav::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgb(var(--bg-rgb) / 0.86);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  opacity: 0; transition: opacity 0.3s;
}
.nav.is-stuck { border-color: var(--line); }
.nav.is-stuck::before, .nav.is-open::before { opacity: 1; }
.nav__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; flex: none; }
.brand img { width: 22px; height: auto; }
.brand__name { font-weight: 500; letter-spacing: -0.01em; white-space: nowrap; }
.brand__tag {
  font-size: 0.8125rem;
  color: var(--fg-3); padding-left: 12px; border-left: 1px solid var(--line-2);
}
.nav__links { display: none; align-items: center; gap: 2px; }
.nav__link {
  position: relative; padding: 8px 12px; border-radius: 999px;
  font-size: 0.875rem; color: var(--fg-2);
  transition: color 0.2s, background 0.2s;
}
.nav__link:hover { color: var(--fg); background: rgb(var(--tint) / 0.05); }
.nav__link[aria-current="page"] { color: var(--fg); }
.nav__link[aria-current="page"]::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px;
  height: 1px; background: var(--scarlet-hi);
}
.nav__end { display: flex; align-items: center; gap: 10px; }
.nav__cta { display: none; }
.theme-toggle {
  width: 40px; height: 40px; display: inline-grid; place-items: center;
  border-radius: 50%; color: var(--fg-2); transition: color 0.2s, background 0.2s;
}
.theme-toggle:hover { color: var(--fg); background: rgb(var(--tint) / 0.06); }
.theme-toggle svg { width: 18px; height: 18px; grid-area: 1 / 1; transition: transform 0.5s var(--ease), opacity 0.3s; }
.theme-toggle .i-sun { opacity: 0; transform: rotate(-90deg) scale(0.6); }
:root[data-theme="light"] .theme-toggle .i-moon { opacity: 0; transform: rotate(90deg) scale(0.6); }
:root[data-theme="light"] .theme-toggle .i-sun { opacity: 1; transform: none; }
.nav__toggle {
  width: 44px; height: 44px; margin-right: -10px;
  display: inline-grid; place-items: center; border-radius: 50%;
}
.nav__toggle span, .nav__toggle span::before {
  content: ""; display: block; width: 18px; height: 1.5px; background: var(--fg);
  transition: transform 0.35s var(--ease);
}
.nav__toggle span { transform: translateY(-3px); }
.nav__toggle span::before { transform: translateY(6px); }
.nav.is-open .nav__toggle span { transform: rotate(45deg); }
.nav.is-open .nav__toggle span::before { transform: rotate(-90deg); }

.menu {
  position: fixed; inset: var(--nav-h) 0 0 0; z-index: 99;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 24px var(--gutter) max(32px, env(safe-area-inset-bottom));
  background: var(--bg); overflow-y: auto;
  visibility: hidden; opacity: 0;
  transition: opacity 0.25s, visibility 0s 0.25s;
}
.menu.is-open { visibility: visible; opacity: 1; transition: opacity 0.25s; }
.menu__list { border-top: 1px solid var(--line); }
.menu__link {
  display: flex; align-items: baseline; gap: 16px;
  padding: 14px 0; border-bottom: 1px solid var(--line);
  font-family: var(--font-serif); font-size: clamp(1.75rem, 7vw, 2.25rem); letter-spacing: -0.01em; line-height: 1.1;
}
.menu__link[aria-current="page"] { color: var(--scarlet-hi); }
.menu__foot { margin-top: 32px; display: grid; gap: 6px; color: var(--fg-3); }
@media (min-width: 1040px) {
  .nav__links { display: flex; }
  .nav__cta { display: inline-flex; }
  .nav__toggle, .menu { display: none; }
}
@media (max-width: 420px) { .brand__tag { display: none; } }

.footer { border-top: 1px solid var(--line); margin-top: auto; overflow: hidden; }
.footer__top {
  display: grid; gap: 40px;
  padding-block: clamp(48px, 7vw, 88px);
  grid-template-columns: 1fr;
}
@media (min-width: 760px) { .footer__top { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }
.footer__blurb { max-width: 34ch; color: var(--fg-2); font-size: 0.9375rem; }
.footer__col h2 { font-family: var(--font-sans); font-size: 0.875rem; font-weight: 500; color: var(--fg-3); margin-bottom: 16px; }
.footer__col ul { list-style: none; padding: 0; }
.footer__col li + li { margin-top: 8px; }
.footer__col a, .footer__col address {
  color: var(--fg-2); font-size: 0.9375rem; font-style: normal;
  transition: color 0.2s;
}
.footer__col a:hover { color: var(--fg); }
.footer__base {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  padding-block: 20px; border-top: 1px solid var(--line); color: var(--fg-3);
}

/* 7 ── Shared components ──────────────────────────────────────────────── */

/* Page header (interior pages) */
.page-head { position: relative; padding-block: clamp(56px, 9vw, 120px) clamp(40px, 6vw, 72px); overflow: hidden; }
.page-head__grid { display: grid; gap: 32px; align-items: end; }
@media (min-width: 900px) { .page-head__grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); } }
.page-head .eyebrow { margin-bottom: 16px; }
.page-head .lead { margin-top: 24px; }
.page-head__meta { display: grid; gap: 0; align-self: end; }
.meta-row {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 12px 0; border-top: 1px solid var(--line);
  font-size: 0.875rem;
}
.meta-row:last-child { border-bottom: 1px solid var(--line); }
.meta-row dt { color: var(--fg-3); }
.meta-row dd { color: var(--fg); text-align: right; }

/* Framed media */
.frame {
  position: relative; overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--bg-1);
}
.frame img { width: 100%; height: 100%; object-fit: cover; }
.frame__cap {
  position: absolute; left: 14px; bottom: 12px; right: 14px;
  display: flex; justify-content: space-between; gap: 12px;
  color: #fff; text-shadow: 0 1px 12px rgb(0 0 0 / 0.7);
}
.frame::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, rgb(20 16 12 / 0.5), transparent 40%);
}
.frame--plain::after { display: none; }
.banner { aspect-ratio: 21 / 9; }
@media (max-width: 700px) { .banner { aspect-ratio: 4 / 3; } }

/* Stats */
.stats { align-self: start; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.stat { padding: 24px 0 28px; border-bottom: 1px solid var(--line); }
.stat:nth-child(odd) { padding-right: 20px; }
.stat:nth-child(even) { padding-left: 20px; border-left: 1px solid var(--line); }
.stat__num {
  display: block; font-family: var(--font-serif); font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 400;
  letter-spacing: -0.02em; line-height: 1; font-variant-numeric: tabular-nums lining-nums;
}
.stat__num sup { font-size: 0.45em; color: var(--fg-2); vertical-align: top; position: relative; top: 0.1em; margin-left: 2px; letter-spacing: 0; }
.stat__label { display: block; margin-top: 12px; font-size: 0.875rem; color: var(--fg-3); }
.stats--row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 760px) {
  .stats--row { grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); }
  .stats--row .stat { padding: 24px 20px 28px; border-left: 1px solid var(--line); }
  .stats--row .stat:first-child { padding-left: 0; border-left: 0; }
}
.stats--sm .stat__num { font-size: clamp(1.8rem, 3.2vw, 2.6rem); }

/* Pillars */
.pillars { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
@media (min-width: 900px) { .pillars { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.pillar {
  position: relative; padding: clamp(20px, 2.6vw, 32px);
  min-height: clamp(170px, 20vw, 250px);
  display: flex; flex-direction: column; justify-content: space-between; gap: 24px;
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  transition: background 0.4s;
}
.pillar:hover { background: var(--bg-1); }
.pillar__top { display: flex; justify-content: space-between; align-items: flex-start; color: var(--fg-3); font-family: var(--font-serif); }
.pillar h3 { font-family: var(--font-serif); font-weight: 400; font-size: clamp(1.25rem, 1.8vw, 1.625rem); letter-spacing: -0.01em; }
.pillar p { margin-top: 8px; font-size: 0.875rem; color: var(--fg-3); line-height: 1.5; }

/* People */
.people { display: grid; gap: clamp(20px, 2.4vw, 32px) clamp(12px, 1.6vw, 20px); grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 560px) { .people { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 860px) { .people { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1120px) { .people { grid-template-columns: repeat(var(--cols, 5), minmax(0, 1fr)); } }
.person { position: relative; min-width: 0; }
.person__img {
  position: relative; aspect-ratio: 4 / 5; overflow: hidden;
  border-radius: var(--radius-sm); background: var(--bg-2);
  border: 1px solid var(--line);
}
.person__img img {
  width: 100%; height: 100%; object-fit: cover; object-position: center top;
}
.person__img img.is-crest, .person__img img[src$="crest.png"] {
  object-fit: contain; padding: 22%; filter: grayscale(1) opacity(0.35);
}
.person__quote {
  position: absolute; inset: 0; display: flex; align-items: flex-end;
  padding: 14px; font-size: 0.8125rem; line-height: 1.45; color: #fff;
  background: linear-gradient(to top, rgb(8 8 10 / 0.92) 10%, rgb(8 8 10 / 0.35) 70%, transparent);
  opacity: 0; transition: opacity 0.35s;
}
.person__quote span { display: -webkit-box; -webkit-line-clamp: 6; line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.person:hover .person__quote, .person:focus-within .person__quote { opacity: 1; }
.person__body { padding-top: 12px; }
.person__name { font-weight: 500; line-height: 1.3; }
.person__meta { margin-top: 4px; font-size: 0.8125rem; color: var(--fg-3); line-height: 1.5; }
.person__role { color: var(--fg-2); display: block; }
.person__desc { margin-top: 8px; font-size: 0.8125rem; color: var(--fg-2); line-height: 1.5; }
.person__desc--clamp { display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.person:hover .person__desc--clamp, .person:focus-within .person__desc--clamp { -webkit-line-clamp: unset; line-clamp: unset; }
.person__links { display: flex; gap: 4px; margin: 8px 0 0 -8px; }
.person__links a {
  display: inline-grid; place-items: center; width: 32px; height: 32px;
  border-radius: 50%; color: var(--fg-3); transition: color 0.2s, background 0.2s;
}
.person__links a:hover { color: var(--fg); background: rgb(var(--tint) / 0.06); }
.person__links svg { width: 15px; height: 15px; }
.person--link { cursor: pointer; }

/* Year divider */
.year-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  padding: 14px 0; margin-bottom: clamp(20px, 3vw, 32px);
  border-top: 1px solid var(--line-2);
  position: sticky; top: var(--nav-h); z-index: 5;
  background: linear-gradient(var(--bg) 70%, transparent);
}
.year-head h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); letter-spacing: -0.015em; }
.year-head h2 span { color: var(--fg-3); }
.year-group + .year-group { margin-top: clamp(48px, 7vw, 88px); }

/* Rows (definition-style lists) */
.rows { border-top: 1px solid var(--line); }
.row {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px 24px;
  padding: 16px 0; border-bottom: 1px solid var(--line);
}
@media (min-width: 620px) { .row { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); align-items: baseline; } }
.row dt, .row .row__k { font-weight: 500; }
.row dd, .row .row__v { color: var(--fg-2); }

/* Big link rows */
.linkrows { border-top: 1px solid var(--line); }
.linkrow {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px;
  padding: clamp(20px, 2.6vw, 28px) 0; border-bottom: 1px solid var(--line);
}
.linkrow__title { font-family: var(--font-serif); font-size: clamp(1.75rem, 3.6vw, 2.75rem); letter-spacing: -0.015em; line-height: 1.05; }
.linkrow__desc { display: block; margin-top: 8px; font-family: var(--font-sans); color: var(--fg-3); font-size: 0.9375rem; letter-spacing: 0; }
.linkrow__title { transition: color 0.2s; }
.linkrow svg { width: 28px; height: 28px; color: var(--fg-3); transition: transform 0.3s var(--ease), color 0.2s; }
.linkrow:hover svg { color: var(--fg); transform: translate(3px, -3px); }
@media (max-width: 560px) { .linkrow svg { width: 20px; height: 20px; } }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 20px 0; cursor: pointer; list-style: none;
  font-size: 1.0625rem; font-weight: 500;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 12px; height: 12px;
  background:
    linear-gradient(var(--fg-2), var(--fg-2)) center / 100% 1.5px no-repeat,
    linear-gradient(var(--fg-2), var(--fg-2)) center / 1.5px 100% no-repeat;
  transition: transform 0.35s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--fg-strong); }
.faq details p { padding: 0 40px 22px 0; color: var(--fg-2); max-width: 62ch; }

/* Panel / card */
.panel {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--bg-1); padding: clamp(20px, 3vw, 32px);
}
.panel--sticky { position: sticky; top: calc(var(--nav-h) + 24px); }
.panel__head { margin-bottom: 24px; }
.panel__head p { margin-top: 8px; color: var(--fg-2); font-size: 0.9375rem; }
.tiles { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
@media (min-width: 620px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 960px) { .tiles { grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); } }
.tile { background: var(--bg); padding: clamp(20px, 2.6vw, 30px); display: flex; flex-direction: column; gap: 10px; transition: background 0.3s; }
.tile:hover { background: var(--bg-1); }
.tile svg { width: 20px; height: 20px; color: var(--fg-2); margin-bottom: 16px; }
.tile h3 { font-size: 1.0625rem; }
.tile p { font-size: 0.875rem; color: var(--fg-2); line-height: 1.5; }
.tile .mono { color: var(--fg-3); }
.tile--off { opacity: 0.45; }
.tile .tile__big { color: var(--fg); font-family: var(--font-serif); font-size: clamp(2rem, 3vw, 2.5rem); font-weight: 400; letter-spacing: -0.015em; line-height: 1.1; font-variant-numeric: tabular-nums; }

/* Pillar band: the four pillars, static */
.band { border-top: 1px solid var(--line); }
.band__list {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px 24px;
  padding-block: clamp(24px, 3vw, 32px);
  font-family: var(--font-serif); font-size: clamp(1.25rem, 2vw, 1.625rem); color: var(--fg-2);
}
.band__list li { display: inline-flex; align-items: center; gap: 24px; }
.band__list li + li::before { content: ""; width: 10px; height: 10px; background: var(--gold); -webkit-mask: var(--m-star) center / contain no-repeat; mask: var(--m-star) center / contain no-repeat; }
@media (max-width: 560px) { .band__list li + li::before { display: none; } }

/* Name list: static, wrapping (e.g. where alumni work) */
.names { display: flex; flex-wrap: wrap; gap: 8px 32px; font-family: var(--font-serif); font-size: clamp(1.25rem, 2vw, 1.625rem); color: var(--fg-2); }

/* Search */
.search { position: relative; }
.search > svg { position: absolute; left: 14px; top: 23px; transform: translateY(-50%); width: 16px; height: 16px; color: var(--fg-3); pointer-events: none; }
.search .input { padding-left: 40px; }
.search__kbd { position: absolute; right: 12px; top: 23px; transform: translateY(-50%); font-size: 0.6875rem; color: var(--fg-3); border: 1px solid var(--line-2); border-radius: 4px; padding: 1px 6px; pointer-events: none; }
.search__list {
  position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 20;
  background: var(--bg-2); border: 1px solid var(--line-2); border-radius: var(--radius-sm);
  padding: 4px; box-shadow: 0 24px 60px var(--shadow);
}
.search__list.hidden { display: none; }
.search__opt { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 4px; cursor: pointer; font-size: 0.9375rem; }
.search__opt .mono { color: var(--fg-3); width: 3.4em; font-size: 0.625rem; }
.search__opt:hover, .search__opt.selected { background: rgb(var(--tint) / 0.07); }
.toolbar {
  position: sticky; top: var(--nav-h); z-index: 10;
  padding: 16px 0; margin-bottom: 20px;
  background: linear-gradient(var(--bg) 80%, transparent);
}
.toolbar__meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; min-height: 26px; }
.toolbar__chips { display: flex; flex-wrap: wrap; gap: 6px; }

/* Segmented control */
.seg { display: inline-flex; padding: 3px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--bg-1); }
.seg button {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px;
  font-size: 0.875rem; color: var(--fg-2); transition: color 0.2s, background 0.2s;
}
.seg button svg { width: 15px; height: 15px; }
.seg button:hover { color: var(--fg); }
.seg button.is-on { background: var(--fg); color: var(--bg); }
.icon-btn {
  display: inline-grid; place-items: center; width: 38px; height: 38px;
  border: 1px solid var(--line-2); border-radius: var(--radius-sm); color: var(--fg-2);
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.icon-btn:hover { color: var(--fg); border-color: var(--fg-3); background: var(--bg-1); }
.icon-btn svg { width: 16px; height: 16px; }

/* Closing CTA */
.cta { position: relative; text-align: left; }
.cta__grid { display: grid; gap: 32px; align-items: end; }
@media (min-width: 900px) { .cta__grid { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); } }
.cta .eyebrow { margin-bottom: 16px; }

.empty { padding: 64px 0; text-align: center; color: var(--fg-3); }

/* 8 ── Page-specific ──────────────────────────────────────────────────── */

/* Home hero: KAPPA | crest | SIGMA, set in Cinzel like the official lettering */
.hero {
  position: relative; isolation: isolate;
  min-height: max(560px, calc(100svh - var(--nav-h)));
  display: grid; grid-template-rows: 1fr auto;
}
.hero__stage { display: grid; place-items: center; }
.hero__mark {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  gap: clamp(16px, 3vw, 48px); width: 100%;
  font-family: "Cinzel", var(--font-serif); font-weight: 700;
  font-size: clamp(2.75rem, 8.6vw, 9rem); line-height: 0.9;
  letter-spacing: 0.04em; text-transform: uppercase; color: var(--fg-strong);
}
.hero__word:first-child { justify-self: end; }
.hero__word:last-child { justify-self: start; }
.hero__crest {
  position: relative; width: clamp(96px, 12vw, 200px); height: auto;
}
/* a quiet paper disc behind the crest, from the neutral ramp */
.hero__crest { filter: drop-shadow(0 12px 24px var(--shadow)); }
.hero__stage::before {
  content: ""; position: absolute; z-index: -1; left: 50%; top: 46%;
  width: clamp(200px, 26vw, 420px); aspect-ratio: 1; border-radius: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, var(--bg-2) 72%, transparent);
}
.hero__foot {
  display: grid; justify-items: center; gap: 12px;
  padding-bottom: clamp(24px, 4vw, 40px);
}
.hero__mit { width: clamp(72px, 7vw, 104px); height: auto; color: var(--scarlet-hi); }
.hero__foot p { font-size: 0.875rem; color: var(--fg-3); }
@media (max-width: 700px) {
  .hero__mark { grid-template-columns: auto auto; justify-content: center; gap: 4px 12px; font-size: clamp(2rem, 9.6vw, 4rem); }
  .hero__crest { grid-column: 1 / -1; grid-row: 1; justify-self: center; width: 120px; margin-bottom: 24px; }
  .hero__word:first-child, .hero__word:last-child { justify-self: auto; }
  .hero__stage::before { top: 34%; width: 220px; }
}

/* Home brothers strip */
.people--strip { --cols: 6; }
@media (min-width: 1120px) { .people--strip { grid-template-columns: repeat(6, minmax(0, 1fr)); } }

/* Rush */
.steps { counter-reset: step; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.step { background: var(--bg); padding: clamp(20px, 2.6vw, 30px); }
.step::before { counter-increment: step; content: "Step " counter(step); display: block; font-size: 0.875rem; color: var(--fg-3); margin-bottom: 40px; }
.step h3 { font-size: 1.125rem; letter-spacing: -0.015em; }
.step p { margin-top: 8px; font-size: 0.9rem; color: var(--fg-2); }

/* Summer gallery */
.gallery__main { position: relative; aspect-ratio: 16 / 10; }
.gallery__main img { position: absolute; inset: 0; opacity: 0; transition: opacity 0.6s; }
.gallery__main img.is-on { opacity: 1; }
.gallery__nav { position: absolute; z-index: 2; right: 12px; bottom: 12px; display: flex; gap: 6px; }
.gallery__nav .icon-btn { background: rgb(8 8 10 / 0.7); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-color: var(--line-2); color: #fff; }
.gallery__count { position: absolute; z-index: 2; left: 14px; bottom: 16px; color: #fff; text-shadow: 0 1px 10px rgb(0 0 0 / 0.8); }
.gallery__thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; scrollbar-color: var(--bg-3) transparent; }
.gallery__thumbs button { flex: none; width: 88px; aspect-ratio: 3 / 2; border-radius: 4px; overflow: hidden; border: 1px solid var(--line); opacity: 0.45; transition: opacity 0.2s, border-color 0.2s; }
.gallery__thumbs button img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumbs button:hover { opacity: 0.8; }
.gallery__thumbs button.is-on { opacity: 1; border-color: var(--scarlet-hi); }

/* Donate */
.amounts { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.amounts button {
  min-height: 48px; border: 1px solid var(--line-2); border-radius: var(--radius-sm);
  font-variant-numeric: tabular-nums; font-weight: 500; color: var(--fg-2);
  transition: color 0.2s, background-color 0.2s, border-color 0.2s;
}
.amounts button:hover { border-color: var(--fg-3); color: var(--fg); }
.amounts button.is-on { background: var(--fg); color: var(--bg); border-color: var(--fg); }
@media (max-width: 480px) { .amounts { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.pay { display: grid; gap: 10px; grid-template-columns: 1fr 1fr; }
.pay form { display: contents; }
.quote-card { position: relative; align-self: stretch; min-height: 360px; display: flex; flex-direction: column; justify-content: flex-end; padding: clamp(24px, 3vw, 40px); }
.quote-card > img { position: absolute; inset: 0; object-position: center 30%; }
/* same treatment as the live donate panel: near-black into deep scarlet */
.quote-card::after { background: linear-gradient(135deg, rgb(11 11 11 / 0.7), rgb(80 8 18 / 0.6)); }
.quote-card > :not(img) { position: relative; z-index: 1; }
.quote-card blockquote { color: #fffaf0; font-family: var(--font-serif); font-style: italic; font-size: clamp(1.75rem, 3vw, 2.5rem); line-height: 1.15; letter-spacing: -0.01em; max-width: 20ch; }
.quote-card cite { display: block; margin-top: 16px; font-style: normal; font-size: 0.875rem; color: rgb(255 250 240 / 0.75); }

/* Events */
.event {
  display: grid; grid-template-columns: 5.5rem minmax(0, 1fr); gap: 8px 24px;
  padding: 22px 0; border-bottom: 1px solid var(--line); align-items: start;
}
@media (min-width: 760px) { .event { grid-template-columns: 7rem minmax(0, 1.4fr) minmax(0, 1fr) auto; align-items: center; } }
.event__day { font-family: var(--font-serif); font-size: clamp(2rem, 4vw, 3rem); font-weight: 400; letter-spacing: -0.02em; line-height: 0.95; font-variant-numeric: tabular-nums; }
.event__day small { display: block; margin-top: 8px; font-family: var(--font-sans); font-size: 0.8125rem; color: var(--fg-3); font-weight: 400; letter-spacing: 0; }
.event h3 { font-family: var(--font-serif); font-weight: 400; font-size: 1.375rem; }
.event p { margin-top: 4px; color: var(--fg-2); font-size: 0.9375rem; }
.event__where { color: var(--fg-3); display: grid; gap: 4px; }
@media (max-width: 759px) { .event__where, .event > .chip { grid-column: 2; justify-self: start; } }

/* Family tree (Alpine-driven) */
.tree-bar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 14px; }
.tree-bar__zoom { display: flex; align-items: center; gap: 6px; }
.tree-bar__zoom .mono { min-width: 52px; text-align: center; color: var(--fg-2); }
.tree-wrapper {
  position: relative; height: 72vh; min-height: 420px; overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--bg-1);
  cursor: grab;
}
.tree-wrapper.is-panning { cursor: grabbing; }
#tree-scroll-container { width: 100%; height: 100%; overflow: auto; position: relative; scrollbar-width: thin; scrollbar-color: var(--bg-3) transparent; }
#tree-container { position: relative; }
.tree-years { position: absolute; left: 0; top: 0; width: 96px; z-index: 10; pointer-events: none; }
.tree-years > div { position: absolute; padding: 4px 12px; font-size: 0.8125rem; color: var(--fg-3); }
.tree-rules > div { position: absolute; left: 0; right: 0; height: 0; border-top: 1px dashed var(--line); }
#tree-svg { position: absolute; top: 0; left: 0; margin-left: 96px; }
#tree-svg .year-line { stroke: var(--line); stroke-width: 1; stroke-dasharray: 3 6; }
#tree-svg .tree-arrow { stroke: color-mix(in srgb, var(--scarlet-hi) 60%, transparent); stroke-width: 1.5; stroke-linecap: round; }
#tree-svg #arrowhead polygon { fill: var(--scarlet-hi); }
#tree-nodes { position: relative; margin-left: 96px; }
.person-node { position: absolute; cursor: pointer; }
.person-node:hover { z-index: 20; }
.person-node-circle {
  width: 64px; height: 64px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-2); border: 1px solid var(--line-2);
  font-size: 0.875rem; font-weight: 500; color: var(--fg);
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.person-node:hover .person-node-circle { border-color: var(--fg-2); background: var(--bg-3); }
.person-node.is-current .person-node-circle { border-color: var(--scarlet-hi); background: var(--bg-3); box-shadow: 0 0 0 4px var(--line-2); }
.person-tooltip {
  position: absolute; left: 50%; bottom: calc(100% + 10px); transform: translateX(-50%);
  padding: 7px 10px; white-space: nowrap; font-size: 0.8125rem; line-height: 1.35; text-align: center;
  background: var(--bg); color: var(--fg); border: 1px solid var(--line-2); border-radius: var(--radius-sm);
  opacity: 0; pointer-events: none; transition: opacity 0.2s;
}
.person-tooltip div { color: var(--fg-3); font-size: 0.75rem; }
.person-node:hover .person-tooltip { opacity: 1; }
.profile { display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 620px) { .profile { grid-template-columns: 200px minmax(0, 1fr); } }
.profile__img { aspect-ratio: 4 / 5; max-width: 220px; }
.profile__img img { object-position: top; }
.profile__facts { margin-top: 16px; }
.profile__extra { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); display: grid; gap: 12px; color: var(--fg-2); }
.profile__extra .serif { font-size: 1.375rem; line-height: 1.3; }
.crumbs { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; color: var(--fg-3); }
.crumbs button { display: inline-flex; align-items: center; gap: 8px; color: var(--fg-2); font-size: 0.875rem; }
.crumbs button:hover { color: var(--fg); }
.crumbs svg { width: 14px; height: 14px; }
.hscroll { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 8px; scrollbar-width: thin; scrollbar-color: var(--bg-3) transparent; }
.hscroll > * { flex: none; width: 128px; }
.subhead { display: flex; align-items: center; gap: 10px; margin: 36px 0 16px; color: var(--fg-3); }
.subhead svg { width: 14px; height: 14px; color: var(--scarlet-hi); }

/* Data table (admin) */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.table th { text-align: left; padding: 12px 16px; font-size: 0.8125rem; font-weight: 500; color: var(--fg-3); border-bottom: 1px solid var(--line-2); white-space: nowrap; }
.table td { padding: 12px 16px; border-bottom: 1px solid var(--line); color: var(--fg-2); vertical-align: top; }
.table tr:last-child td { border-bottom: 0; }
.table tr:hover td { background: var(--bg-1); }

/* Alumni form + submissions (internal) */
.form-narrow { max-width: 720px; }
.form-section + .form-section { margin-top: 20px; }
.submission + .submission { margin-top: 16px; }
.submission-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.info-grid { display: grid; gap: 16px 24px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.info-item { display: grid; gap: 4px; align-content: start; }
.info-value { color: var(--fg); overflow-wrap: anywhere; }
.photo-preview { max-width: 160px; border-radius: var(--radius-sm); border: 1px solid var(--line); margin-top: 4px; }

/* 404 */
.lost { min-height: calc(100svh - var(--nav-h) - 1px); display: grid; align-content: center; position: relative; overflow: hidden; }
.lost__code { font-family: var(--font-serif); font-size: clamp(7rem, 30vw, 24rem); font-weight: 400; letter-spacing: -0.03em; line-height: 0.8; color: transparent; -webkit-text-stroke: 1px var(--line-2); }

/* Theme switch: cross-fade surfaces only while toggling */
:root.is-theming, :root.is-theming *, :root.is-theming *::before, :root.is-theming *::after {
  transition: background-color 0.35s, color 0.35s, border-color 0.35s, fill 0.35s, stroke 0.35s !important;
}

/* 9 ── Motion ─────────────────────────────────────────────────────────── */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 0.22s; }
.nav { view-transition-name: site-nav; }

.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

.js .hero [data-rise] { opacity: 0; transform: translateY(24px); animation: rise 1s var(--ease) forwards; animation-delay: calc(120ms + var(--i, 0) * 90ms); }
@keyframes rise { to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .js [data-reveal], .js .hero [data-rise] { opacity: 1; transform: none; }
  @view-transition { navigation: none; }
}

@media print {
  .nav, .menu { display: none; }
  body { background: #fff; color: #000; }
}
