:root {
  --black: #000;
  --paper: #e8e5de;
  --mute: #7d7a74;
  --line: #262522;
  --alert: #ff8a7a;
  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --pad: clamp(1.25rem, 4vw, 3rem);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; background: var(--black); color: var(--paper); }
body { font-family: var(--font); font-size: 1rem; line-height: 1.5; -webkit-font-smoothing: antialiased; }
body::after {
  content: ""; position: fixed; inset: -50%; pointer-events: none; z-index: 50; opacity: .08;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
img { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 1.5px solid var(--paper); outline-offset: 4px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- landing ---------- */
.landing {
  min-height: 100svh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: clamp(2.5rem, 7vh, 4.5rem);
  padding: var(--pad);
}
.mark { margin: 0; width: min(62vw, 480px); opacity: 0; animation: surface 3s cubic-bezier(.3,.6,.2,1) .3s forwards; }
.mark img { width: 100%; height: auto; }
@keyframes surface { from { opacity: 0; filter: blur(10px); } to { opacity: 1; filter: blur(0); } }
.links { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem 2.5rem; opacity: 0; animation: fade 1.2s ease 2.4s forwards; }
@keyframes fade { to { opacity: 1; } }
.links a {
  text-decoration: none; font-size: 1rem; font-weight: 500; letter-spacing: .02em;
  padding-bottom: .2rem; border-bottom: 1px solid transparent; transition: border-color .25s;
}
.links a:hover { border-color: var(--paper); }
.links a.quiet { color: var(--mute); }
.links a.quiet:hover { color: var(--paper); }

/* ---------- spaces ---------- */
.spaces {
  list-style: none; margin: 0 auto; padding: clamp(5rem, 14vh, 9rem) var(--pad) 0;
  max-width: 1200px;
  display: grid; grid-template-columns: 1fr; gap: 0;
}
@media (min-width: 900px) { .spaces { grid-template-columns: repeat(3, 1fr); } }
.spaces li { border-top: 1px solid var(--line); padding: 1.5rem 0 2.5rem; }
@media (min-width: 900px) { .spaces li { padding: 1.5rem 2rem 0 0; } .spaces li + li { border-left: 1px solid var(--line); padding-left: 2rem; } }
.spaces h2 { margin: 0 0 .6rem; font-size: 1.25rem; font-weight: 600; letter-spacing: -.01em; }
.spaces p { margin: 0; color: var(--mute); max-width: 32ch; }
.spaces h2 a { text-decoration: underline; text-decoration-thickness: 1px; text-decoration-color: var(--mute); text-underline-offset: 6px; transition: text-decoration-color .25s; }
.spaces h2 a:hover { text-decoration-color: var(--paper); }

/* ---------- detail page ---------- */
.detail { max-width: 720px; margin: 0 auto; padding: clamp(4rem, 14vh, 8rem) var(--pad) 0; }
.detail h1 { margin: 0 0 .75rem; font-size: clamp(2rem, 5vw, 3rem); font-weight: 600; letter-spacing: -.02em; line-height: 1.05; }
.detail .lead { margin: 0 0 clamp(2.5rem, 7vh, 4rem); color: var(--mute); max-width: 40ch; }
.facts { margin: 0; display: grid; grid-template-columns: 1fr; }
.facts div { display: grid; grid-template-columns: 1fr; gap: .25rem 2rem; padding: 1.1rem 0; border-top: 1px solid var(--line); }
.facts div:last-child { border-bottom: 1px solid var(--line); }
@media (min-width: 640px) { .facts div { grid-template-columns: 11rem 1fr; } }
.facts dt { color: var(--mute); }
.facts dd { margin: 0; }
.detail .note { margin: 2.5rem 0 0; color: var(--mute); max-width: 52ch; }
.end { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 1.25rem 2.5rem; padding: clamp(4rem, 12vh, 7rem) var(--pad) clamp(5rem, 14vh, 9rem); }
.end a.quiet { color: var(--mute); text-decoration: none; font-weight: 500; letter-spacing: .02em; padding: 1rem 0; border-bottom: 1px solid transparent; transition: color .25s; }
.end a.quiet:hover { color: var(--paper); }
.apply-btn {
  display: inline-block; text-decoration: none;
  padding: 1rem 2.4rem; border: 1.5px solid var(--paper); color: var(--paper);
  font-weight: 600; font-size: 1rem; letter-spacing: .02em;
  transition: background-color .25s, color .25s;
}
.apply-btn:hover { background: var(--paper); color: var(--black); }

/* ---------- sponsors ---------- */
.label { margin: 0 0 2.5rem; font-size: .85rem; font-weight: 500; color: var(--mute); text-align: center; letter-spacing: .02em; }
.sponsors { max-width: 1200px; margin: 0 auto; padding: clamp(3rem, 8vh, 5rem) var(--pad) clamp(5rem, 14vh, 9rem); border-top: 1px solid var(--line); }
.sponsors ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 3rem clamp(3rem, 8vw, 6rem); }
.sponsors img { height: auto; opacity: .7; transition: opacity .3s; }
.sponsors img:hover { opacity: 1; }
.mono-white { width: clamp(110px, 14vw, 150px); filter: brightness(0) invert(1); }
.mono-grey { width: clamp(52px, 6vw, 64px); filter: grayscale(1) contrast(1.1); }

/* ---------- work / covers ---------- */
.work { padding: clamp(3rem, 8vh, 5rem) 0 clamp(4rem, 10vh, 6rem); border-top: 1px solid var(--line); }
.work .label { padding: 0 var(--pad); }
.covers { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; }
@media (min-width: 600px) { .covers { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 900px) { .covers { grid-template-columns: repeat(6, 1fr); } }
@media (min-width: 1500px) { .covers { grid-template-columns: repeat(8, 1fr); } }
.covers li {
  aspect-ratio: 1; overflow: hidden; background: #0d0d0c;
  opacity: 0; transform: translateY(14px) scale(.985);
  transition: opacity .9s ease, transform .9s cubic-bezier(.2,.7,.1,1);
}
.covers li.in { opacity: 1; transform: none; }
.covers img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- contact ---------- */
.contact { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem 2.5rem; padding: 2.5rem var(--pad) 3rem; border-top: 1px solid var(--line); font-size: .9rem; }
@media (max-width: 599px) {
  .end { flex-direction: column; gap: .5rem; }
  .end .apply-btn { width: 100%; max-width: 320px; text-align: center; }
  .contact { padding-bottom: 6rem; }
}
.contact a { color: var(--mute); text-decoration: none; letter-spacing: .02em; transition: color .25s; }
.contact a:hover { color: var(--paper); }

/* ---------- application ---------- */
.top { display: flex; align-items: center; justify-content: center; padding: 1.75rem var(--pad) 0; }
.top img { height: 20px; width: auto; }
.apply-page { max-width: 640px; margin: 0 auto; padding: clamp(2.5rem, 8vh, 5rem) var(--pad) clamp(4rem, 12vh, 8rem); }

.steps { display: flex; gap: .5rem; margin: 0 0 3rem; padding: 0; list-style: none; }
.steps li { flex: 1; border-top: 2px solid var(--line); padding-top: .6rem; color: var(--mute); font-size: .85rem; }
.steps li[aria-current="step"] { border-color: var(--paper); color: var(--paper); }
.steps li.done { border-color: var(--mute); }

.field { margin: 0 0 2rem; border: 0; padding: 0; min-width: 0; }
.field > label, .field > legend { display: block; font-weight: 500; font-size: 1rem; margin: 0 0 .6rem; padding: 0; }
.req { color: var(--mute); font-weight: 400; font-size: .85rem; }
.help { color: var(--mute); font-size: .9rem; margin: .5rem 0 0; }
.err { color: var(--alert); font-size: .9rem; margin: .5rem 0 0; }
.form-err { border: 1px solid var(--alert); color: var(--alert); padding: .9rem 1rem; margin: 0 0 1.5rem; }
input[type="text"], input[type="email"], input[type="tel"], input[type="url"], textarea {
  width: 100%; font: 400 1.05rem/1.4 var(--font); color: var(--paper);
  background: transparent; border: 0; border-bottom: 1.5px solid var(--line);
  padding: .7rem 0; border-radius: 0;
}
textarea { min-height: 7.5rem; resize: vertical; border: 1.5px solid var(--line); padding: .8rem; }
input:focus, textarea:focus { outline: none; border-color: var(--paper); }
[aria-invalid="true"] { border-color: var(--alert) !important; }
.choices { display: grid; gap: .5rem; }
.choice { display: flex; align-items: center; gap: .85rem; cursor: pointer; border: 1.5px solid var(--line); padding: .9rem 1rem; transition: border-color .15s; }
.choice:hover { border-color: var(--mute); }
.choice:has(input:checked) { border-color: var(--paper); }
.choice input { accent-color: var(--paper); width: 1.05rem; height: 1.05rem; margin: 0; }
.other-text { margin-top: .5rem; }
.form-actions { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.btn {
  display: inline-block; text-decoration: none; cursor: pointer; padding: .95rem 1.8rem;
  font: 600 1rem/1.2 var(--font); border: 1.5px solid var(--paper);
  background: var(--paper); color: var(--black); transition: background-color .2s, color .2s;
}
.btn:hover { background: transparent; color: var(--paper); }
.btn.ghost { background: transparent; color: var(--paper); }
.btn.ghost:hover { background: var(--paper); color: var(--black); }
.btn[disabled], .btn[aria-busy="true"] { opacity: .55; cursor: progress; }
.linkish { background: none; border: 0; color: var(--mute); font: 500 1rem var(--font); cursor: pointer; padding: .5rem 0; text-decoration: underline; text-underline-offset: 4px; }
.linkish:hover { color: var(--paper); }
.thanks { padding-top: 2rem; border-top: 2px solid var(--paper); }
.thanks p { font-size: clamp(1.3rem, 3vw, 1.9rem); font-weight: 600; line-height: 1.2; margin: 0 0 1.25rem; }
.loading { color: var(--mute); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .mark, .links { animation: none; opacity: 1; }
  .covers li { opacity: 1; transform: none; transition: none; }
  .choice, .apply-btn, .btn, .links a { transition: none; }
}