:root {
  --bg:    #000;
  --ink:   #fff;
  --muted: #8c8c8c;
  --rule:  #262626;
  --pad:   clamp(24px, 4.5vw, 60px);
  --ease:  cubic-bezier(.4, 0, .2, 1);
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Source Serif 4", "Source Serif Pro", Georgia, serif;
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
::selection { background: #fff; color: #000; }

/* ---------- Entrance (staggered fade + rise, after ansatz.capital) ---------- */
.rise {
  opacity: 0;
  transform: translate3d(0, 12%, 0);
  animation: rise 700ms var(--ease) forwards;
  animation-delay: var(--d, 0ms);
}
@keyframes rise { to { opacity: 1; transform: none; } }

/* ---------- Hero (home) ---------- */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 520px; overflow: hidden; }
.hero #ising { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

.hero-overlay {
  position: absolute; inset: 0;
  padding: calc(var(--pad) * 1.6) var(--pad) var(--pad);
  pointer-events: none;               /* the canvas gets the cursor */
}

.wordmark { position: relative; display: inline-block; }
.hero-title {
  font-weight: 300;
  font-size: clamp(56px, 10vw, 160px);
  line-height: 1;
  letter-spacing: -0.03em;
  margin: 0;
}
.underline {
  display: block;
  width: 100%;
  height: clamp(14px, 1.6vw, 26px);
  margin-top: clamp(6px, 0.8vw, 14px);
  overflow: visible;
}
.underline path {
  fill: none;
  stroke: var(--ink);
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: draw 2.6s 600ms var(--ease) forwards;
}
@keyframes draw { to { stroke-dashoffset: 0; } }

.lede {
  font-weight: 300;
  font-size: clamp(26px, 3.4vw, 52px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: clamp(20px, 2.4vw, 36px) 0 0;
}
.lede span { display: block; }

/* ---------- Navbar (every page, pinned bottom-left) ---------- */
.nav {
  position: fixed;
  left: var(--pad);
  bottom: var(--pad);
  z-index: 10;
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1.2;
}
.nav a {
  position: relative;
  text-decoration: none;
  pointer-events: auto;
}
.nav a::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -4px;
  height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: left;
  transition: transform 300ms var(--ease);
}
.nav a:hover::after,
.nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav .sep { color: var(--muted); margin: 0 clamp(10px, 1.2vw, 18px); }

/* ---------- Subpages ---------- */
main {
  max-width: 980px;
  margin: 0;
  padding: calc(var(--pad) * 1.6) var(--pad) calc(var(--pad) + 120px);
}

.home { font-weight: 300; font-size: clamp(28px, 3vw, 40px); letter-spacing: -0.02em; text-decoration: none; }
.home-mark { display: inline-block; }
.home-mark .underline { height: clamp(8px, 0.9vw, 12px); margin-top: 4px; }

.page-title {
  font-weight: 300;
  font-size: clamp(48px, 7vw, 104px);
  line-height: 1;
  letter-spacing: -0.03em;
  margin: clamp(32px, 5vw, 64px) 0 12px;
}
.page-sub { font-size: clamp(22px, 2.4vw, 32px); font-weight: 300; color: #cfcfcf; margin: 8px 0 0; }
.soon { font-size: clamp(24px, 2.4vw, 32px); font-weight: 300; color: var(--muted); font-style: italic; margin: 16px 0 0; }

h2 {
  font-size: 15px; font-weight: 600;
  margin: 48px 0 14px;
  text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--muted);
}

/* ---------- Competition listing ---------- */
.awards { list-style: none; padding: 0; margin: 0; }
.award {
  position: relative;
  padding: 18px 0;
  border-top: 1px solid var(--rule);
  transition: padding-left 200ms ease;
}
.award:first-child { border-top: 0; padding-top: 6px; }
.award::before {
  content: "";
  position: absolute; left: -2px; top: 18px; bottom: 18px; width: 2px;
  background: var(--ink);
  opacity: 0; transform: scaleY(0.6); transform-origin: center;
  transition: opacity 200ms ease, transform 200ms ease;
}
.award:first-child::before { top: 6px; }
.award:hover { padding-left: 14px; }
.award:hover::before { opacity: 1; transform: scaleY(1); }

.award-name {
  display: block;
  font-size: clamp(22px, 2.2vw, 28px); font-weight: 400; line-height: 1.3;
  color: var(--ink); text-decoration: none;
}
.award-meta {
  margin-top: 4px; font-size: 18px; line-height: 1.5;
  display: flex; flex-wrap: wrap; align-items: baseline;
}
.award-year { color: var(--muted); font-variant-numeric: tabular-nums; }
.award-year::after { content: "·"; margin: 0 8px; color: var(--muted); }
.award-place { color: #cfcfcf; font-style: italic; }

@media (prefers-reduced-motion: reduce) {
  .rise { animation: none; opacity: 1; transform: none; }
  .underline path { animation: none; stroke-dashoffset: 0; }
}

/* ---------- Subpages: animation in a strip on the right side ---------- */
.split #ising {
  position: fixed;
  top: 0; right: 0;
  width: 33vw;
  height: 100vh; height: 100svh;
  display: block;
}
.split main { max-width: min(980px, 67vw); }

@media (max-width: 760px) {
  .split #ising { display: none; }
  .split main { max-width: none; }
}
