:root {
  --ink: #0b0b0c;
  --ink-2: #131315;
  --ink-3: #1c1c1f;
  --bone: #e9e4da;
  --ash: #9a958c;
  --gold: #c9a24a;
  --gold-hi: #e6c87a;
  --serif: "Cormorant Garamond", Georgia, serif;
  --script: "Pinyon Script", cursive;
  --fraktur: "UnifrakturMaguntia", serif;
  --max: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font-family: var(--serif);
  font-size: 1.2rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }

/* Subtle film grain */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: .06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.script { font-family: var(--script); font-weight: 400; }
.fraktur { font-family: var(--fraktur); color: var(--gold); }
.eyebrow {
  margin: 0 0 .75rem;
  font-size: .8rem;
  letter-spacing: .35em;
  text-transform: uppercase;
  color: var(--gold);
}

/* Nav */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem clamp(1.25rem, 4vw, 3rem);
  background: linear-gradient(to bottom, rgba(11,11,12,.85), rgba(11,11,12,0));
}
.nav__mark, .footer__mark {
  font-family: var(--script);
  font-size: 2rem;
  line-height: 1;
  color: var(--gold);
  text-decoration: none;
}
.nav__mark span, .footer__mark span {
  font-family: var(--serif);
  font-size: .8rem;
  letter-spacing: .4em;
  text-transform: uppercase;
  color: var(--bone);
  margin-left: .25rem;
}
.nav nav { display: flex; gap: clamp(1rem, 3vw, 2.25rem); }
.nav nav a {
  font-size: .8rem;
  letter-spacing: .25em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ash);
  transition: color .3s;
}
.nav nav a:hover, .nav nav a:focus-visible { color: var(--gold-hi); }

/* Buttons */
.btn {
  display: inline-block;
  margin-top: 1.5rem;
  padding: .9rem 2.2rem;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-size: .8rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background .3s, color .3s;
}
.btn:hover, .btn:focus-visible { background: var(--gold); color: var(--ink); }
.btn--ghost { cursor: default; opacity: .75; }
.btn--ghost:hover { background: transparent; color: var(--gold); }

/* Hero */
.hero { position: relative; }
.hero__image {
  margin: 0;
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
}
.hero__image img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 45%;
  animation: slowzoom 18s ease-out forwards;
}
.hero__image::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(11,11,12,.5) 0%, transparent 22%, transparent 62%, var(--ink) 100%);
}
.hero__text {
  padding: 0 clamp(1.5rem, 6vw, 5rem) 4rem;
  margin-top: -5rem;
  position: relative;
  z-index: 2;
  text-align: center;
}
.hero__title { margin: 0; line-height: .85; }
.hero__title .script {
  display: block;
  font-size: clamp(5rem, 16vw, 10rem);
  color: var(--gold);
  text-shadow: 0 2px 30px rgba(201,162,74,.25);
}
.hero__title .caps {
  display: block;
  font-size: clamp(1rem, 2.4vw, 1.4rem);
  font-weight: 500;
  letter-spacing: .9em;
  text-transform: uppercase;
  margin: .5rem 0 0 .4rem;
}
.hero__tag {
  font-family: var(--fraktur);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin: 2rem 0 .5rem;
}
.hero__lede { max-width: 32rem; color: var(--ash); margin: 0 auto; }

@media (min-width: 760px) {
  .hero__image { aspect-ratio: auto; height: min(92svh, 56.25vw, 1100px); }
  .hero__text { margin-top: -9rem; }
}

@keyframes slowzoom { from { transform: scale(1.08); } to { transform: scale(1); } }

/* Manifesto */
.manifesto {
  max-width: 46rem;
  margin: 0 auto;
  padding: clamp(5rem, 12vw, 9rem) 1.5rem;
  text-align: center;
}
.manifesto p { margin: 0; font-size: clamp(1.8rem, 4vw, 2.8rem); line-height: 1.25; }
.manifesto em { color: var(--gold); }
.manifesto .manifesto__sub { font-size: 1.2rem; color: var(--ash); margin-top: 1.75rem; line-height: 1.7; }
.ornament { display: block; width: 24px; height: 72px; margin: 0 auto 1.75rem; color: var(--gold); }

/* Sections */
.section { max-width: var(--max); margin: 0 auto; padding: clamp(4rem, 9vw, 7rem) clamp(1.25rem, 4vw, 3rem); }
.section__head { text-align: center; margin-bottom: clamp(2.5rem, 6vw, 4rem); }
.section__head h2, .mope h2 {
  margin: 0;
  font-family: var(--fraktur);
  font-weight: 400;
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  line-height: 1.1;
}
.section__lede { color: var(--ash); margin: 1rem auto 0; max-width: 32rem; }

/* Triptych */
.triptych { display: grid; gap: clamp(1.25rem, 3vw, 2rem); grid-template-columns: 1fr; }
@media (min-width: 760px) { .triptych { grid-template-columns: repeat(3, 1fr); } }
.card { margin: 0; }
.card img {
  aspect-ratio: 3 / 4;
  object-fit: cover;
  width: 100%;
  filter: grayscale(.25) contrast(1.05);
  transition: filter .6s, transform .6s;
}
.card:hover img { filter: none; transform: translateY(-4px); }
.card figcaption { padding-top: 1.1rem; color: var(--ash); font-size: 1.05rem; }
.card .fraktur { display: block; font-size: 1.7rem; margin-bottom: .2rem; }

/* Course gallery */
.section--course { max-width: none; background: linear-gradient(var(--ink), var(--ink-2) 20%, var(--ink-2) 80%, var(--ink)); }
.gallery {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  gap: clamp(.75rem, 2vw, 1.25rem);
  grid-template-columns: 1fr;
}
.gallery__item { margin: 0; overflow: hidden; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 3 / 4; transition: transform 1.2s ease; }
.gallery__item:hover img { transform: scale(1.04); }
@media (min-width: 760px) {
  .gallery { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; }
  .gallery__item--tall { grid-row: span 2; }
  .gallery__item img { aspect-ratio: auto; }
  .gallery__item:not(.gallery__item--tall) img { aspect-ratio: 4 / 3; }
}

.quote { margin: clamp(4rem, 9vw, 6rem) auto 0; text-align: center; }
.quote p { margin: 0; font-family: var(--script); font-size: clamp(2.4rem, 6vw, 4rem); color: var(--gold); line-height: 1.2; }

/* Mope */
.mope { text-align: center; padding: clamp(5rem, 12vw, 9rem) 1.5rem; border-top: 1px solid var(--ink-3); }
.mope h2 .script { display: block; font-size: .7em; color: var(--gold); }
.mope p:not(.eyebrow) { color: var(--ash); }

/* Footer */
.footer { text-align: center; padding: 3rem 1.5rem; border-top: 1px solid var(--ink-3); color: var(--ash); font-size: .9rem; }
.footer p { margin: .4rem 0; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 1s ease, transform 1s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__image img { animation: none; }
}

@media (max-width: 520px) {
  .nav nav { display: none; }
}
