@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@300;400;500&family=Manrope:wght@400;500;600;700&display=swap');

:root {
  color-scheme: dark;
  --ink: #f4f0e8;
  --muted: #aaa7a0;
  --ground: #0a0b0d;
  --line: rgba(244, 240, 232, .16);
  --acid: #c8ff35;
  --violet: #9c78ff;
  --orange: #ff7548;
  --mono: "DM Mono", monospace;
  --sans: "Manrope", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--sans);
}

a { color: inherit; }
button { font: inherit; }
.ambient {
  position: fixed;
  z-index: -1;
  width: 42rem;
  height: 42rem;
  border-radius: 50%;
  filter: blur(130px);
  opacity: .14;
  pointer-events: none;
}
.ambient-one { top: -18rem; right: -8rem; background: var(--violet); }
.ambient-two { bottom: 0; left: -20rem; background: var(--acid); }

.hero { min-height: 94vh; padding: 1.25rem clamp(1rem, 4vw, 4.5rem) 3rem; }
.masthead, .hero-footer, .collection-heading, footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
}
.masthead { border-bottom: 1px solid var(--line); padding-bottom: 1rem; }
.wordmark, .skip-link, .eyebrow, .work-count, .filter, .tag, .status {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.wordmark, .skip-link { text-decoration: none; }
.skip-link:hover { color: var(--acid); }
.hero-copy { padding-top: clamp(6rem, 14vh, 10rem); }
.eyebrow { color: var(--acid); }
h1 {
  max-width: 12ch;
  margin: .6rem 0 3rem;
  font-size: clamp(4.2rem, 13vw, 11rem);
  font-weight: 500;
  letter-spacing: -.075em;
  line-height: .76;
}
h1 span { color: transparent; -webkit-text-stroke: 1px var(--ink); }
.hero-footer { align-items: flex-end; }
.hero-footer > p:first-child { max-width: 34rem; margin: 0; font-size: clamp(1.15rem, 2.2vw, 2rem); line-height: 1.3; }
.year { margin: 0; font-family: var(--mono); font-size: 1.1rem; color: var(--muted); text-align: right; }

.collection { padding: 6rem clamp(1rem, 4vw, 4.5rem) 8rem; border-top: 1px solid var(--line); }
.collection-heading { align-items: flex-end; }
h2 { margin: .3rem 0 0; font-size: clamp(2.4rem, 6vw, 5.5rem); letter-spacing: -.055em; font-weight: 500; }
.work-count { color: var(--muted); }
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin: 3rem 0 2rem; }
.filter {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .65rem .9rem;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}
.filter:hover, .filter.is-active { border-color: var(--acid); color: var(--ground); background: var(--acid); }
.work-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 1rem; }
.work-card {
  grid-column: span 4;
  position: relative;
  min-height: 23rem;
  padding: 1.2rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  background: rgba(255,255,255,.025);
  transition: transform .25s ease, border-color .25s ease;
}
.work-card:nth-child(5n + 1) { grid-column: span 5; }
.work-card:nth-child(5n + 2) { grid-column: span 7; }
.work-card:hover { transform: translateY(-5px); border-color: rgba(200,255,53,.55); }
.work-card::after {
  content: "";
  position: absolute;
  right: -5rem;
  bottom: -6rem;
  width: 16rem;
  height: 16rem;
  border-radius: 50%;
  background: var(--card-accent, var(--violet));
  filter: blur(55px);
  opacity: .17;
}
.card-top { display: flex; justify-content: space-between; gap: 1rem; }
.tag { color: var(--card-accent, var(--acid)); }
.index { font-family: var(--mono); font-size: .72rem; color: var(--muted); }
.work-card h3 { margin: 7rem 0 .75rem; max-width: 18ch; font-size: clamp(1.7rem, 2.7vw, 2.7rem); line-height: 1; letter-spacing: -.045em; }
.student { margin: 0 0 1rem; font-weight: 600; }
.description { position: relative; z-index: 1; max-width: 35rem; margin: 0; color: var(--muted); line-height: 1.55; }
.status { position: absolute; z-index: 1; bottom: 1.2rem; left: 1.2rem; color: var(--muted); }
.card-link { position:absolute; z-index:2; inset:0; border-radius:inherit; }
.work-card:has(.card-link) .status { color:var(--acid); }
.notice { padding: 2rem; border: 1px solid var(--line); }
footer { padding: 2rem clamp(1rem, 4vw, 4.5rem); border-top: 1px solid var(--line); color: var(--muted); font-family: var(--mono); font-size: .72rem; text-transform: uppercase; }

@media (max-width: 850px) {
  .work-card, .work-card:nth-child(5n + 1), .work-card:nth-child(5n + 2) { grid-column: span 6; }
}
@media (max-width: 580px) {
  .hero { min-height: 82vh; }
  .hero-footer, .collection-heading, footer { flex-direction: column; }
  .year { text-align: left; }
  .work-card, .work-card:nth-child(5n + 1), .work-card:nth-child(5n + 2) { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .work-card { transition: none; }
}
