/* ==========================================================================
   CIS Computer Science Council — ciscscouncil.com
   One stylesheet. Tokens first, then components.
   ========================================================================== */

:root {
  --bg:     #0e0d0c;
  --bg-2:   #161412;
  --rule:   #2b2723;
  --rule-2: #453e37;
  --ink:    #f2eee7;
  --ink-2:  #a49d94;
  --ink-3:  #6d675f;
  --red:    #d2503c;

  --sans:    "Archivo", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --display: "Archivo", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  /* condensed heavy caps, display type only */
  --disp-set: "wdth" 72, "wght" 800;

  --wrap: 1180px;
  --gut: 32px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scrollbar-gutter: stable; }
[id] { scroll-margin-top: 88px; }

/* cross-page transitions: quick crossfade, header holds still */
@view-transition { navigation: auto; }
.site-header { view-transition-name: site-header; }
::view-transition-old(site-header), ::view-transition-new(site-header) { animation: none; }
::view-transition-old(root) { animation: vt-out 0.16s ease both; }
::view-transition-new(root) { animation: vt-in 0.24s ease both; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; } }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--red); color: #fff; }

:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
@media (max-width: 560px) { :root { --gut: 20px; } }

/* ---------- type ---------- */
h1, h2 {
  font-family: var(--display);
  font-variation-settings: var(--disp-set);
  font-weight: 800;
  text-transform: uppercase;
  line-height: 0.9;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.7rem, 8.4vw, 6.2rem); }
h1 .dot, h2 .dot { color: var(--red); }
h2 { font-size: clamp(1.8rem, 4vw, 3rem); }
h3, h4 {
  font-family: var(--sans);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.005em;
}
h3 { font-size: 1.2rem; }
h4 { font-size: 1.05rem; }

p { max-width: 62ch; }
em { font-style: italic; }

.label {
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  display: block;
}
.label-red { color: var(--red); }

.lede {
  font-size: 1.0625rem;
  color: var(--ink-2);
  line-height: 1.7;
}
.muted { color: var(--ink-2); }
.faint { color: var(--ink-3); }

.prose a {
  border-bottom: 1px solid var(--rule-2);
  padding-bottom: 1px;
  transition: border-color 0.18s, color 0.18s;
}
.prose a:hover { color: var(--red); border-color: var(--red); }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--bg);
  border-bottom: 1px solid var(--rule);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 68px;
}
.brand {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.brand .b-sep { color: var(--red); }
.brand-logo { height: 22px; width: auto; display: block; flex: none; }
.b-abbr { display: none; }
@media (max-width: 720px) {
  .b-full { display: none; }
  .b-abbr { display: inline; }
  .brand-logo { height: 19px; }
  .brand { gap: 8px; font-size: 0.72rem; letter-spacing: 0.1em; }
}

.nav ul { display: flex; gap: 22px; list-style: none; align-items: baseline; }
.nav a {
  font-family: var(--display);
  font-variation-settings: "wdth" 76, "wght" 700;
  font-size: 0.95rem;
  letter-spacing: 0.005em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding: 2px 0;
  transition: color 0.18s;
}
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); }
/* Every item reserves the full stop so widths never change between pages.
   Only the active one shows it, which keeps the nav from jogging on navigation. */
.nav a::after { content: "."; color: transparent; }
.nav a[aria-current="page"]::after { color: var(--red); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px 0;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  flex: none;
  white-space: nowrap;
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav {
    display: none;
    position: absolute;
    top: 68px; left: 0; right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--rule);
  }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; gap: 0; padding: 8px var(--gut) 20px; }
  .nav li + li { border-top: 1px solid var(--rule); }
  .nav a { display: block; padding: 15px 0; font-size: 1.05rem; }
  .nav a[aria-current="page"] { color: var(--red); }
}

/* ---------- loading screen (first visit only, see main.js) ---------- */
.loader {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--bg);
  display: grid;
  place-items: center;
  pointer-events: none;
  transition: transform 0.55s cubic-bezier(0.7, 0, 0.2, 1);
  /* failsafe: leaves on its own even if JS never runs */
  animation: loader-away 0.55s cubic-bezier(0.7, 0, 0.2, 1) 2.6s forwards;
}
.loader-inner { text-align: center; }
.loader-logo {
  height: 46px;
  width: auto;
  margin: 0 auto 20px;
  animation: loader-logo-in 0.5s ease both;
}
@keyframes loader-logo-in { from { opacity: 0; transform: translateY(6px); } }
.loader-mark {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
}
.loader-mark b { color: var(--red); font-weight: 600; }
.loader-bar {
  display: block;
  width: 180px;
  height: 1px;
  margin: 18px auto 0;
  background: var(--rule);
  overflow: hidden;
}
.loader-bar i {
  display: block;
  height: 100%;
  background: var(--red);
  transform: translateX(-100%);
  animation: loader-fill 0.9s cubic-bezier(0.6, 0, 0.3, 1) 0.1s forwards;
}
.loader.done { transform: translateY(-100%); animation: none; }
@keyframes loader-fill { to { transform: translateX(0); } }
@keyframes loader-away { to { transform: translateY(-100%); } }
.no-loader .loader { display: none; }

/* ---------- game of life canvas (in heroes) ---------- */
.hero, .page-hero { position: relative; overflow: hidden; }
.hero > .wrap, .page-hero > .wrap { position: relative; z-index: 1; }
.life {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 0;
  opacity: 0.32;
}
.page-hero .life { opacity: 0.22; }

/* ---------- hero ---------- */
.hero { padding: clamp(52px, 8.5vh, 100px) 0 48px; }
.hero h1 { margin: 24px 0 0; max-width: 22ch; }
.hero-foot {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 40px;
  align-items: end;
  margin-top: 34px;
  padding-top: 26px;
  border-top: 1px solid var(--rule);
}
.hero-links { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }

.page-hero { padding: clamp(56px, 9vh, 104px) 0 56px; border-bottom: 1px solid var(--rule); }
.page-hero h1 { margin: 22px 0 0; }
.page-hero .lede { margin-top: 24px; }

@media (max-width: 760px) {
  .hero-foot { grid-template-columns: 1fr; gap: 28px; align-items: start; }
}

/* ---------- links & buttons ---------- */
.arrow {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  display: inline-flex;
  align-items: baseline;
  gap: 9px;
  color: var(--ink);
  border-bottom: 1px solid var(--rule-2);
  padding-bottom: 3px;
  transition: color 0.18s, border-color 0.18s;
}
.arrow::after { content: "→"; transition: transform 0.22s ease; }
.arrow:hover { color: var(--red); border-color: var(--red); }
.arrow:hover::after { transform: translateX(4px); }

.btn {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 13px 26px;
  border: 1px solid var(--rule-2);
  transition: background 0.18s, color 0.18s, border-color 0.18s;
}
.btn:hover { border-color: var(--ink); }
.btn-solid { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn-solid:hover { background: #fff; border-color: #fff; }

/* ---------- moving photo strip ----------
   Track holds two identical copies; each image carries its own trailing
   margin so translating -50% lands exactly on the seam. */
.strip {
  overflow: hidden;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 16px 0;
}
.strip-track {
  display: flex;
  width: max-content;
  animation: strip-slide 62s linear infinite;
}
.strip:hover .strip-track { animation-play-state: paused; }
.strip img {
  height: clamp(112px, 13vw, 152px);
  width: auto;
  margin-right: 16px;
  object-fit: cover;
  filter: saturate(0.9) brightness(0.9);
  transition: filter 0.3s ease;
}
.strip img:hover { filter: saturate(1.05) brightness(1.05); }
@keyframes strip-slide {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.strip-cap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 14px var(--gut) 0;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}
@media (prefers-reduced-motion: reduce) {
  .strip-track { animation: none; }
}

/* ---------- sections ---------- */
.sec { padding: clamp(64px, 9vh, 108px) 0; border-top: 1px solid var(--rule); }
.sec:first-of-type { border-top: none; }
.sec-head {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 0 28px;
  align-items: start;
  margin-bottom: 48px;
}
.sec-num {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--red);
  padding-top: 12px;
}
.sec-head .lede { margin-top: 20px; }
.sec-body { margin-left: 100px; }

@media (max-width: 760px) {
  .sec-head { grid-template-columns: 1fr; gap: 10px; margin-bottom: 34px; }
  .sec-num { padding-top: 0; }
  .sec-body { margin-left: 0; }
}

/* ---------- statement ---------- */
.statement { padding: clamp(64px, 9vh, 104px) 0; border-top: 1px solid var(--rule); }
.statement .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
}
.statement p {
  font-family: var(--sans);
  font-weight: 500;
  font-size: clamp(1.4rem, 2.9vw, 2.25rem);
  line-height: 1.24;
  letter-spacing: -0.025em;
  max-width: 24ch;
  color: var(--ink);
}
.statement em { font-style: italic; color: var(--ink-2); }
.statement-side { list-style: none; border-top: 1px solid var(--rule); }
.statement-side li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  padding: 15px 0;
  border-bottom: 1px solid var(--rule);
}
.statement-side .n {
  font-family: var(--display);
  font-variation-settings: var(--disp-set);
  font-weight: 800;
  font-size: 1.9rem;
  letter-spacing: -0.01em;
  color: var(--red);
}
.statement-side .l {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  text-align: right;
}
@media (max-width: 860px) {
  .statement .wrap { grid-template-columns: 1fr; gap: 36px; }
}

/* ---------- homepage showcase: editorial rows with inline photos ---------- */
.show { border-top: 1px solid var(--rule); }
.show-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 264px;
  gap: 8px 40px;
  align-items: center;
  padding: 30px 0;
  border-bottom: 1px solid var(--rule);
}
.show-body { min-width: 0; }
.show-title {
  display: block;
  font-family: var(--display);
  font-variation-settings: var(--disp-set);
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(1.8rem, 4.4vw, 3.2rem);
  line-height: 0.94;
  letter-spacing: -0.015em;
  transition: color 0.2s;
}
.show-desc {
  display: block;
  margin-top: 10px;
  color: var(--ink-2);
  font-size: 0.95rem;
  max-width: 54ch;
}
.show-more {
  display: inline-block;
  margin-top: 14px;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  transition: color 0.2s;
}
.show-pic {
  width: 264px;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  filter: saturate(0.75) brightness(0.85);
  transition: filter 0.35s ease;
}
.show-row:hover .show-title { color: var(--red); }
.show-row:hover .show-more { color: var(--red); }
.show-row:hover .show-pic { filter: saturate(1.05) brightness(1); }
@media (max-width: 860px) {
  .show-row { grid-template-columns: 1fr; gap: 14px; padding: 26px 0; }
  .show-num { padding-top: 0; }
  .show-pic { width: 100%; max-height: 200px; }
}

/* ---------- editorial columns (no cards) ---------- */
.cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--rule);
}
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.col {
  padding: 32px 34px 34px 0;
  border-right: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}
.col:last-child { border-right: none; }
.col + .col { padding-left: 34px; }
.col h3 { margin-top: 2px; }
.col p { color: var(--ink-2); font-size: 0.94rem; flex: 1; }

@media (max-width: 860px) {
  .cols, .cols-2 { grid-template-columns: 1fr; }
  .col { border-right: none; border-bottom: 1px solid var(--rule); padding: 26px 0; }
  .col + .col { padding-left: 0; }
  .col:last-child { border-bottom: none; }
}

/* ---------- index rows (events, archive) ---------- */
.index { border-top: 1px solid var(--rule); }
.index .row {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) minmax(0, 1.5fr);
  gap: 28px;
  padding: 26px 0 26px 16px;
  border-bottom: 1px solid var(--rule);
  position: relative;
  align-items: baseline;
  transition: background 0.18s;
}
a.row:hover { background: var(--bg-2); }
a.row::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  width: 4px; height: 0;
  background: var(--red);
  transform: translateY(-50%);
  transition: height 0.22s ease;
}
a.row:hover::before { height: 34px; }
.row-date {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.row-title { font-family: var(--sans); font-size: 1.15rem; font-weight: 600; line-height: 1.3; letter-spacing: -0.01em; }
a.row:hover .row-title { color: var(--red); }
.row-desc { color: var(--ink-2); font-size: 0.92rem; }

@media (max-width: 860px) {
  .index .row { grid-template-columns: 1fr; gap: 8px; padding: 22px 0 22px 14px; }
}

/* ---------- figures / stats ---------- */
.figs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.fig { padding: 28px 24px 28px 0; border-right: 1px solid var(--rule); }
.fig:last-child { border-right: none; }
.fig + .fig { padding-left: 24px; }
.fig .n {
  font-family: var(--display);
  font-variation-settings: var(--disp-set);
  font-weight: 800;
  font-size: clamp(2rem, 4.2vw, 3.1rem);
  line-height: 0.95;
  display: block;
  letter-spacing: -0.015em;
}
.fig .l {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-top: 12px;
  display: block;
}
@media (max-width: 640px) {
  .fig { border-right: none; border-bottom: 1px solid var(--rule); padding: 22px 0; }
  .fig + .fig { padding-left: 0; }
  .fig:last-child { border-bottom: none; }
}

/* ---------- co-curriculars: click to expand ---------- */
.cca details { border-bottom: 1px solid var(--rule); }
.cca details:first-child { border-top: 1px solid var(--rule); }
.cca summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 96px 150px;
  gap: 20px;
  align-items: baseline;
  padding: 17px 34px 17px 0;
  cursor: pointer;
  list-style: none;
  position: relative;
  transition: color 0.18s;
}
.cca summary::-webkit-details-marker { display: none; }
.cca summary:hover { color: var(--red); }
.cca summary::after {
  content: "";
  position: absolute;
  right: 4px; top: 50%;
  width: 11px; height: 1px;
  background: var(--ink-2);
}
.cca summary::before {
  content: "";
  position: absolute;
  right: 9px; top: 50%;
  width: 1px; height: 11px;
  margin-top: -5px;
  background: var(--ink-2);
  transition: opacity 0.18s;
}
.cca details[open] summary::before { opacity: 0; }
.cca .c-name { font-weight: 600; letter-spacing: -0.01em; }
.cca .c-meta, .cca .c-when {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  white-space: nowrap;
}
.cca details > div { padding: 0 34px 22px 0; }
/* height is animated by js; these keep it from jumping */
.cca details > div, .disc details > div, .disc details > p, .faq details > p { will-change: height; }
.cca details p { color: var(--ink-2); font-size: 0.94rem; max-width: 70ch; }
.cca .c-join {
  margin-top: 10px;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.cca .c-join span { color: var(--red); }
@media (max-width: 720px) {
  .cca summary { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .cca .c-meta, .cca .c-when { letter-spacing: 0.1em; }
}

/* ---------- people ---------- */
.people {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(178px, 1fr));
  gap: 34px 26px;
}
.p-media { position: relative; display: block; overflow: hidden; background: var(--bg-2); }

.person img, .person .ph {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
}
.person img {
  filter: saturate(0.94) brightness(0.88) contrast(1.03);
  transition: filter 0.4s ease;
}
.person:hover img { filter: saturate(1) brightness(1) contrast(1); }
.person .ph {
  aspect-ratio: 1;
  background: var(--bg-2);
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-variation-settings: var(--disp-set);
  font-weight: 800;
  font-size: 2.2rem;
  letter-spacing: 0.01em;
  color: var(--ink-3);
}
.person h3 { font-size: 1.05rem; margin-top: 14px; font-family: var(--sans); font-weight: 500; letter-spacing: 0; }
.person .role {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-top: 5px;
  display: block;
}

.roster { list-style: none; border-top: 1px solid var(--rule); }
.roster li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  padding: 17px 0;
  border-bottom: 1px solid var(--rule);
}
.roster .r-name { font-family: var(--sans); font-size: 1.02rem; font-weight: 600; letter-spacing: -0.01em; }
.roster .r-role {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  text-align: right;
}

/* ---------- bios (judges, speakers) ---------- */
.bios { border-top: 1px solid var(--rule); }
.bio {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 28px;
  padding: 30px 0;
  border-bottom: 1px solid var(--rule);
}
.bio .p-media { width: 104px; height: 104px; }
.bio img {
  width: 104px; height: 104px;
  object-fit: cover;
  display: block;
  filter: saturate(0.94) brightness(0.88) contrast(1.03);
  transition: filter 0.4s ease;
}
.bio:hover img { filter: saturate(1) brightness(1) contrast(1); }
.bio h3 { font-size: 1.25rem; font-weight: 400; }
.bio .org {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
  display: block;
  margin: 7px 0 12px;
}
.bio p { color: var(--ink-2); font-size: 0.92rem; max-width: 70ch; }

@media (max-width: 640px) {
  .bio { grid-template-columns: 1fr; gap: 16px; }
  .bio img { width: 84px; height: 84px; }
}

/* ---------- tables ---------- */
.tbl-wrap { overflow-x: auto; border-top: 1px solid var(--rule); }
table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
th {
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink-3);
  text-align: left;
  padding: 14px 20px 14px 0;
  border-bottom: 1px solid var(--rule);
  white-space: nowrap;
}
td {
  padding: 16px 20px 16px 0;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
  color: var(--ink-2);
}
td:last-child, th:last-child { padding-right: 0; }
td strong { color: var(--ink); font-weight: 500; }
tr:last-child td { border-bottom: none; }
td.tight { white-space: nowrap; color: var(--ink-3); font-size: 0.8rem; letter-spacing: 0.04em; }
td.score { white-space: nowrap; color: var(--red); font-size: 0.82rem; font-weight: 500; }
td .sub { display: block; color: var(--ink-3); margin-top: 5px; font-size: 0.86rem; }

/* ---------- disclosure (FAQ / collapsed detail) ---------- */
.disc { border-top: 1px solid var(--rule); }
.disc details { border-bottom: 1px solid var(--rule); }
.disc summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 32px 20px 0;
  position: relative;
  font-family: var(--sans);
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: color 0.18s;
}
.disc summary::-webkit-details-marker { display: none; }
.disc summary:hover { color: var(--red); }
.disc summary::after {
  content: "";
  position: absolute;
  right: 4px; top: 50%;
  width: 11px; height: 1px;
  background: var(--ink-2);
}
.disc summary::before {
  content: "";
  position: absolute;
  right: 9px; top: 50%;
  width: 1px; height: 11px;
  margin-top: -5px;
  background: var(--ink-2);
  transition: opacity 0.18s;
}
.disc details[open] summary::before { opacity: 0; }
.disc details > *:not(summary) { padding-bottom: 22px; }
.disc details p { color: var(--ink-2); font-size: 0.94rem; }

.disc-quiet summary {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding: 18px 32px 18px 0;
}
.disc-quiet summary:hover { color: var(--ink); }

/* expandable past councils: same grid as the current one, just folded away */
.disc-team summary {
  font-family: var(--display);
  font-variation-settings: var(--disp-set);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
  color: var(--ink-2);
  padding: 20px 34px 20px 0;
}
.disc-team summary:hover { color: var(--ink); }
.disc-team details > div { padding-bottom: 30px; }

/* ---------- link lists (resources) ---------- */
.links { list-style: none; border-top: 1px solid var(--rule); }
.links li { border-bottom: 1px solid var(--rule); }
.links a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr) 20px;
  gap: 24px;
  align-items: baseline;
  padding: 18px 0 18px 16px;
  position: relative;
  transition: background 0.18s;
}
.links a:hover { background: var(--bg-2); }
.links a::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  width: 4px; height: 0;
  background: var(--red);
  transform: translateY(-50%);
  transition: height 0.22s ease;
}
.links a:hover::before { height: 26px; }
.links .n { font-family: var(--sans); font-size: 1.02rem; font-weight: 600; letter-spacing: -0.01em; }
.links a:hover .n { color: var(--red); }
.links .d { color: var(--ink-3); font-size: 0.86rem; }
.links .x { color: var(--ink-3); font-size: 0.8rem; text-align: right; }
@media (max-width: 640px) {
  .links a { grid-template-columns: minmax(0, 1fr) 20px; gap: 6px 16px; }
  .links .d { grid-column: 1 / -1; }
}

/* ---------- photo grids ---------- */
.photos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 16px;
}
.photos img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  filter: saturate(0.94) brightness(0.86) contrast(1.03);
  transition: filter 0.4s ease;
  background: var(--bg-2);
}
.photos img:hover { filter: saturate(1) brightness(1) contrast(1); }

.logos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.logos img {
  height: 108px;
  width: 100%;
  object-fit: contain;
  padding: 28px 26px;
  border-right: 1px solid var(--rule);
  opacity: 0.82;
  transition: opacity 0.3s ease;
}
.logos img:last-child { border-right: none; }
.logos img:hover { opacity: 1; }
@media (max-width: 640px) {
  .logos img { border-right: none; border-bottom: 1px solid var(--rule); }
  .logos img:last-child { border-bottom: none; }
}

.poster { max-width: 400px; width: 100%; }

/* ---------- split layout ---------- */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 34px; } }

/* ---------- archive year heading ---------- */
.year {
  display: flex;
  align-items: baseline;
  gap: 22px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--rule-2);
  margin-bottom: 44px;
}
.year b {
  font-family: var(--display);
  font-variation-settings: var(--disp-set);
  font-weight: 800;
  font-size: clamp(2.5rem, 5.4vw, 3.9rem);
  line-height: 0.92;
  letter-spacing: -0.015em;
}
.year span {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* ---------- notice ---------- */
.notice { border-top: 2px solid var(--red); padding-top: 26px; }
.notice h2 { margin: 14px 0 16px; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--rule); padding: 60px 0 40px; }
.foot-top {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 40px;
  padding-bottom: 40px;
}
.foot-top p { color: var(--ink-2); font-size: 0.92rem; max-width: 34ch; margin-top: 14px; }
.foot-nav { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px 24px; }
.foot-nav a {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-2);
  transition: color 0.18s;
}
.foot-nav a:hover { color: var(--red); }
.foot-meta {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--ink-3);
}
@media (max-width: 640px) { .foot-top { grid-template-columns: 1fr; gap: 30px; } }

/* ---------- utilities ---------- */
.gap-s { height: 26px; }
.gap { height: 44px; }
.gap-l { height: 68px; }
.note { font-size: 0.8rem; color: var(--ink-3); letter-spacing: 0.02em; }

@media (prefers-reduced-motion: reduce) {
  * { transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
  .loader { display: none; }
  .life { display: none; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}
