:root {
  color-scheme: dark;
  --ink: #090908;
  --text: #f4efe6;
  --muted: #a39b90;
  --gold: #c6a36a;
  --line: rgba(244, 239, 230, 0.18);
  --paper: #efe4d2;
  --serif: "Instrument Serif", "Iowan Old Style", Palatino, Georgia, serif;
  --sans: Inter, "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--ink); color: var(--text); }
body {
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: -0.011em;
}
img, canvas { max-width: 100%; display: block; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
h1, h2, blockquote p { font-family: var(--serif); font-weight: 400; letter-spacing: -0.03em; }

.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 40;
  opacity: 0.18;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='0.55'/></svg>");
}

.top, footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.1rem 1.4rem;
}
.top {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 5;
  color: var(--text);
  background: rgba(9, 9, 8, 0.94);
  border-bottom: 1px solid var(--line);
}
.mark {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.35rem;
  text-decoration: none;
}
.nav { display: flex; gap: 1.4rem; }
.nav a {
  text-decoration: none;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.socials { display: flex; gap: 0.8rem; }
.socials a, footer a {
  width: 1.1rem;
  height: 1.1rem;
  display: block;
}
.socials svg, footer svg { width: 100%; height: 100%; fill: currentColor; }
.socials svg { fill: none; stroke: currentColor; stroke-width: 1.4; }
.socials path { fill: currentColor; stroke: none; }

.film { height: 340vh; position: relative; }
.film-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background: var(--ink);
}
#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.film-copy {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 2;
  width: min(34rem, 100%);
  padding: 1.6rem 1.5rem 3.4rem;
  background: #090908;
}
.kicker {
  margin: 0 0 0.6rem;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}
h1 {
  margin: 0;
  font-size: clamp(3.1rem, 8vw, 6.4rem);
  line-height: 0.92;
}
.film-caption, .scroll-hint {
  margin: 0.9rem 0 0;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.scroll-hint {
  position: absolute;
  right: 1.4rem;
  bottom: 1.4rem;
  z-index: 2;
  color: var(--gold);
}

.statement {
  padding: 18vh 1.4rem;
  max-width: 18em;
  margin-inline: auto;
  text-align: center;
}
.statement p {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2rem, 5vw, 3.6rem);
  line-height: 1.05;
}

.artists, .enlist, .contact { padding: 7.5rem 1.4rem 2rem; }
.artist-grid {
  display: grid;
  gap: 3rem;
  align-items: end;
}
.section-label {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding-top: 0.7rem;
  margin-bottom: 2.5rem;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
blockquote { margin: 0 0 4rem; max-width: 22em; }
blockquote p {
  margin: 0 0 1.6rem;
  font-size: clamp(1.7rem, 3.1vw, 2.65rem);
  line-height: 1.12;
}
blockquote footer {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}
.plates {
  display: grid;
  gap: 2.5rem;
}
.portrait, .plates figure { margin: 0; background: var(--paper); }
.portrait img,
.plates img {
  width: 100%;
  background: var(--paper);
  aspect-ratio: 4 / 5;
  object-fit: contain;
  mix-blend-mode: multiply;
}
.portrait figcaption,
.plates figcaption {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.7rem;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.portrait figcaption span:last-child,
.plates figcaption span:last-child { color: var(--muted); }
.artist-note {
  max-width: 36rem;
  color: var(--muted);
  margin: 2rem 0 4rem;
}

h2 {
  margin: 0 0 1.6rem;
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  line-height: 0.95;
}
.line-form, #contact-form { max-width: 36rem; display: grid; gap: 0.55rem; }
label {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
input, textarea {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 0.85rem 0;
  outline: none;
}
input:focus, textarea:focus { border-bottom-color: var(--gold); }
textarea { resize: vertical; }
button {
  justify-self: start;
  margin-top: 0.8rem;
  background: transparent;
  color: var(--text);
  border: 1px solid var(--gold);
  border-radius: 0;
  padding: 0.9rem 1.6rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.72rem;
  cursor: pointer;
}
button:hover { background: var(--gold); color: var(--ink); }
.line-row { display: grid; grid-template-columns: 1fr auto; gap: 1rem; align-items: end; }
.status { min-height: 1.2em; margin: 0.4rem 0 0; color: var(--gold); }
.status.bad { color: #e7b2a8; }
.field-error { margin: 0; color: #e7b2a8; font-size: 0.85rem; }
.field-error:empty { display: none; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

footer {
  border-top: 1px solid var(--line);
  margin-top: 4rem;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
footer a { color: var(--text); }
:focus-visible { outline: 1px solid var(--gold); outline-offset: 3px; }

@media (min-width: 900px) {
  .top, footer, .artists, .enlist, .contact { padding-left: 3vw; padding-right: 3vw; }
  .film-copy { width: min(40rem, 46vw); padding: 2.4rem 3vw 3.2rem; }
  .scroll-hint { right: 3vw; }
  .artist-grid { grid-template-columns: 1.15fr 0.85fr; gap: 6vw; }
  .plates { grid-template-columns: 1fr 1fr; gap: 4.5rem 1.5rem; }
  .plates figure:nth-child(even) { margin-top: 14vh; }
  .statement { padding: 22vh 8vw; max-width: none; }
  .statement p { max-width: 16em; margin-inline: auto; }
  #contact-form, .line-form { max-width: 28rem; }
}

@media (max-width: 720px) {
  .nav { display: none; }
  .film-copy { width: 100%; padding: 1.3rem 1.2rem 3.2rem; }
  h1 { font-size: 2.7rem; }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-hint { display: none; }
}
