:root {
  --bg: #000000;
  --w60: rgba(255,255,255,0.6);
  --w75: rgba(255,255,255,0.75);
  --w35: rgba(255,255,255,0.35);
  --w25: rgba(255,255,255,0.25);
  --line: rgba(255,255,255,0.12);
  --accent: #ffffff; /* per-year override */
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { background: var(--bg); }
body {
  background: var(--bg);
  color: var(--w60);
  font-family: 'Rubik', sans-serif;
  font-size: 1.9rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--w60); text-decoration: none; border-bottom: 1px solid rgba(255,255,255,0.4); }
a:hover { color: #fff; }

/* ── top nav ── */
nav {
  position: sticky; top: 0; z-index: 20;
  background: rgba(0,0,0,0.9);
  padding: 1.1rem 3rem;
  display: flex; gap: 2.2rem; align-items: baseline;
  font-family: 'Space Mono', monospace;
  font-size: 1.15rem; letter-spacing: .05rem;
  text-transform: uppercase;
  border-bottom: 1px solid var(--line);
}
nav .brand { color: #fff; font-weight: 700; border: none; }
nav a { color: var(--w35); border: none; white-space: nowrap; }
nav a:hover { color: #fff; }
nav a.active { color: #fff; }

/* ── hero (with optional media backdrop) ── */
.hero {
  position: relative;
  min-height: 82vh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 8vh 6vw;
  overflow: hidden;
}
.hero-media { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero-media iframe {
  position: absolute; top: 50%; left: 50%;
  width: 100vw; height: 56.25vw;
  min-width: 100%; min-height: 100%;
  transform: translate(-50%, -50%);
  pointer-events: none; border: 0;
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: 0.55; }
.hero-veil {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(0,0,0,0.55), rgba(0,0,0,0.25) 40%, rgba(0,0,0,0.85));
}
.hero-ph {
  position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(ellipse at 70% 30%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 60%), #000;
}
.hero-content { position: relative; z-index: 2; }

.hero .kicker {
  font-family: 'Space Mono', monospace;
  font-size: 1.4rem; letter-spacing: .05rem;
  color: var(--w35); text-transform: uppercase;
  margin-bottom: 3rem;
}
.hero h1 {
  font-size: 12.3vmin;
  font-weight: 700;
  color: #fff;
  line-height: 0.98;
  letter-spacing: -0.01em;
}
.hero h1 .dot { color: var(--accent); }
.hero .sub {
  font-size: 5vmin;
  font-weight: 400;
  color: var(--w60);
  margin-top: 1.5rem;
}
.hero .frame {
  font-family: 'Space Mono', monospace;
  font-size: 1.3rem; letter-spacing: .05rem;
  color: var(--w60);
  max-width: 52rem;
  margin-top: 4rem;
  line-height: 1.7;
}

/* ── epigraph ── */
.epigraph {
  border-left: 1px solid var(--accent);
  padding-left: 2.4rem;
  margin-top: 5rem;
  max-width: 60rem;
}
.epigraph .de {
  font-family: 'Space Mono', monospace;
  font-size: 1.35rem; letter-spacing: .02rem;
  color: var(--w60); line-height: 1.7;
}
.epigraph .src {
  font-family: 'Space Mono', monospace;
  font-size: 1.15rem; letter-spacing: .08rem;
  text-transform: uppercase;
  color: var(--accent); margin-top: 1.2rem;
}

/* ── section ── */
.section {
  padding: 8vh 6vw;
  border-top: 1px solid var(--line);
}
.section h2 {
  font-family: 'Space Mono', monospace;
  font-size: 2rem; font-weight: 400;
  letter-spacing: .08rem; text-transform: uppercase;
  color: var(--w75);
  margin-bottom: 1rem;
}
.section h2 .phase { color: var(--w35); }
.section .lead {
  color: var(--w35);
  font-family: 'Space Mono', monospace;
  font-size: 1.25rem; letter-spacing: .05rem;
  margin-bottom: 4rem;
}

/* ── year × course tile grid (landing) ── */
.tilegrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  background: var(--line);
  border: 1px solid var(--line);
  max-width: 80%;
}
.tile-m {
  background: #000;
  aspect-ratio: 5 / 1;
  padding: 1rem 1.5rem;
  display: flex; flex-direction: row; align-items: center; justify-content: space-between;
  border-radius: 0;
  border: none;
  cursor: pointer;
  transition: background 0.15s ease;
}
.tile-m:hover { background: #0d0d0d; }
.tile-m .year {
  font-family: 'Space Mono', monospace;
  font-size: 3.15rem; font-weight: 400;
  text-align: right;
  color: rgba(255,255,255,0.5);
  line-height: 1;
  letter-spacing: .02em;
  order: 2;
}
.tile-m .ttl {
  text-align: left;
  font-size: 1.65rem;
  color: #fff;
  line-height: 1.15;
  order: 1;
}
.tile-m .ttl.sem { color: var(--w75); }

/* ── grid ── */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2px;
  background: var(--line);
  border: 1px solid var(--line);
}
.tile {
  background: #000;
  aspect-ratio: 4 / 3;
  padding: 1.6rem;
  display: flex; flex-direction: column; justify-content: space-between;
  cursor: pointer;
  transition: background 0.15s ease;
}
.tile:hover { background: #0c0c0c; }
.tile .tag {
  font-family: 'Space Mono', monospace;
  font-size: 1.05rem; letter-spacing: .1rem;
  text-transform: uppercase;
  color: var(--w25);
}
.tile .title { font-size: 1.9rem; font-weight: 400; color: #fff; line-height: 1.15; }
.tile .by {
  font-family: 'Space Mono', monospace;
  font-size: 1.1rem; letter-spacing: .04rem;
  color: var(--w35); text-transform: uppercase;
}

/* ── list rows ── */
.rows { display: flex; flex-direction: column; }
.row {
  display: flex; gap: 3rem; align-items: baseline;
  padding: 1.6rem 0;
  border-top: 1px solid var(--line);
}
.row .idx {
  font-family: 'Space Mono', monospace;
  font-size: 1.15rem; letter-spacing: .08rem;
  color: var(--w25);
  min-width: 3.2rem;
}
.row .ttl { font-size: 2rem; color: #fff; font-weight: 400; }
.row .who {
  margin-left: auto;
  font-family: 'Space Mono', monospace;
  font-size: 1.05rem; letter-spacing: .04rem;
  color: var(--w35); text-transform: uppercase;
  text-align: right;
}

/* ── two-course split ── */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; background: var(--line); border: 1px solid var(--line); }
.split .cell { background: #000; padding: 3.5rem 3rem; }
.split .cell .lbl {
  font-family: 'Space Mono', monospace;
  font-size: 1.15rem; letter-spacing: .1rem; text-transform: uppercase;
  color: var(--w35); margin-bottom: 1.4rem;
}
.split .cell .t { font-size: 3.4rem; color: #fff; line-height: 1.05; margin-bottom: 1.2rem; }
.split .cell .d { font-size: 1.45rem; color: var(--w60); line-height: 1.55; }

/* ── sample (student work) ── */
.sample { display: grid; grid-template-columns: 1fr 1fr; gap: 5vw; align-items: start; }
.sample .meta {
  font-family: 'Space Mono', monospace;
  font-size: 1.25rem; letter-spacing: .05rem; text-transform: uppercase;
  color: var(--w35);
  line-height: 1.9;
}
.sample .meta .n { color: var(--w25); }
.sample .meta .t { color: #fff; font-size: 2.2rem; text-transform: none; letter-spacing: 0; }
.sample .body { font-size: 1.55rem; color: var(--w60); line-height: 1.65; }
.sample .body p + p { margin-top: 1.6rem; }

/* ── team ── */
.team { columns: 2; column-gap: 6vw; }
.team .person { break-inside: avoid; padding: 0.5rem 0; }
.team .person .name { color: #fff; font-size: 1.7rem; }
.team .person .role { font-family: 'Space Mono', monospace; font-size: 1.1rem; letter-spacing: .04rem; color: var(--w35); text-transform: uppercase; }
.team .faculty { margin-bottom: 2.5rem; }

footer {
  padding: 6vh 6vw;
  font-family: 'Space Mono', monospace;
  font-size: 1.15rem; letter-spacing: .05rem; text-transform: uppercase;
  color: var(--w35);
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
}
footer a { color: var(--w35); }

@media (max-width: 800px) {
  body { font-size: 1.6rem; }
  .split, .sample { grid-template-columns: 1fr; }
  .tilegrid { grid-template-columns: 1fr; }
  nav { gap: 1.2rem; padding: 1rem 1.4rem; font-size: 1rem; overflow-x: auto; }
  .hero, .section { padding: 6vh 5vw; }
  .sample .body { font-size: 1.4rem; }
  .row { flex-wrap: wrap; gap: 0.6rem; }
  .row .who { margin-left: 0; text-align: left; }
  .team { columns: 1; }
}
