/* ============ tokens ============ */
:root {
  --bg: #0a0807;
  --bg-2: #100c0a;
  --bg-3: #14100d;
  --ink: #f3ece1;
  --ink-2: #c9bfb1;
  --ink-3: #8a8175;
  --line: rgba(243, 236, 225, 0.08);
  --line-2: rgba(243, 236, 225, 0.14);
  --accent: #d96a3a;
  --accent-2: #f0a868;
  --accent-glow: rgba(217, 106, 58, 0.18);

  --font-serif: "Cormorant Garamond", "Times New Roman", serif;
  --font-sans: "Inter", system-ui, -apple-system, "Helvetica Neue", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --radius: 2px;
  --r-lg: 6px;
  --max: 1280px;
  --gutter: clamp(20px, 4vw, 56px);
  --section-y: clamp(80px, 10vw, 160px);
}

/* ============ reset ============ */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
input { font: inherit; color: inherit; }
ul, ol { padding: 0; margin: 0; list-style: none; }
h1, h2, h3, p { margin: 0; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: 0.005em;
  overflow-x: hidden;
}

/* subtle film grain on the whole page */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.045;
  mix-blend-mode: overlay;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,0.6) 0.5px, transparent 1px),
    radial-gradient(circle at 70% 80%, rgba(255,255,255,0.4) 0.5px, transparent 1px),
    radial-gradient(circle at 40% 60%, rgba(255,255,255,0.5) 0.5px, transparent 1px);
  background-size: 3px 3px, 5px 5px, 4px 4px;
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ============ typography ============ */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.32em;
  color: var(--ink-3);
  margin-bottom: 28px;
  display: inline-flex; align-items: center; gap: 12px;
}
.eyebrow::before {
  content: "";
  width: 28px; height: 1px; background: var(--accent);
}

h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.05;
  color: var(--ink);
}
.h2 {
  font-size: clamp(36px, 5vw, 64px);
  margin-bottom: 24px;
}
.h2 i { font-style: italic; color: var(--accent-2); font-weight: 400; }

.lead {
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 60ch;
}

p { color: var(--ink-2); }

/* ============ buttons ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 52px;
  padding: 0 28px;
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  border-radius: var(--radius);
  transition: all 0.25s ease;
  white-space: nowrap;
  cursor: pointer;
  border: 1px solid transparent;
}
.btn--primary {
  background: var(--accent);
  color: #1a0e08;
  border-color: var(--accent);
}
.btn--primary:hover {
  background: var(--accent-2);
  border-color: var(--accent-2);
  box-shadow: 0 0 0 1px var(--accent-2), 0 0 32px var(--accent-glow);
}
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-2);
}
.btn--ghost:hover {
  border-color: var(--ink-2);
  color: var(--ink);
}

/* ============ nav ============ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px var(--gutter);
  background: linear-gradient(180deg, rgba(10,8,7,0.85) 0%, rgba(10,8,7,0) 100%);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(10, 8, 7, 0.92);
  border-bottom-color: var(--line);
}
.nav__inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
}
.nav__brand {
  display: inline-flex; align-items: baseline; gap: 6px;
  font-family: var(--font-serif);
  color: var(--ink);
}
.nav__logo { font-size: 26px; font-weight: 500; letter-spacing: -0.02em; }
.nav__logo-sub {
  font-family: var(--font-mono); font-size: 11px; color: var(--ink-3);
  letter-spacing: 0.2em; text-transform: uppercase;
}
.nav__links {
  display: flex; align-items: center; gap: 36px;
}
.nav__links a {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-2);
  transition: color 0.2s;
  position: relative;
}
.nav__links a:not(.nav__cta)::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -6px;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s ease;
}
.nav__links a:not(.nav__cta):hover { color: var(--ink); }
.nav__links a:not(.nav__cta):hover::after { transform: scaleX(1); }
.nav__cta {
  background: var(--accent);
  color: #1a0e08 !important;
  padding: 12px 18px;
  border-radius: var(--radius);
  transition: background 0.2s, box-shadow 0.2s;
}
.nav__cta:hover {
  background: var(--accent-2);
  box-shadow: 0 0 28px var(--accent-glow);
}

@media (max-width: 760px) {
  .nav__links { gap: 18px; }
  .nav__links a:not(.nav__cta) { display: none; }
}

/* ============ hero ============ */
.hero {
  position: relative;
  min-height: 100svh;
  padding: 140px var(--gutter) 80px;
  display: flex; align-items: flex-end;
  overflow: hidden;
}
.hero__media {
  position: absolute; inset: 0;
  z-index: 0;
}
.hero__img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 25%;
  filter: saturate(0.92) contrast(1.05);
  animation: heroFloat 24s ease-in-out infinite alternate;
}
@keyframes heroFloat {
  from { transform: scale(1.05) translateY(0); }
  to   { transform: scale(1.12) translateY(-2%); }
}
.hero__veil {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(10,8,7,0.55) 0%, rgba(10,8,7,0.15) 30%, rgba(10,8,7,0.65) 75%, rgba(10,8,7,1) 100%),
    linear-gradient(90deg, rgba(10,8,7,0.7) 0%, rgba(10,8,7,0) 60%);
}
.hero__grain {
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' /></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/></svg>");
  opacity: 0.07;
  mix-blend-mode: overlay;
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: var(--max);
  width: 100%;
  margin: 0 auto;
}
.hero__title {
  font-family: var(--font-serif);
  display: flex; flex-direction: column; gap: 4px;
  margin-bottom: 32px;
  line-height: 0.95;
}
.hero__num {
  font-size: clamp(96px, 18vw, 240px);
  font-weight: 500;
  letter-spacing: -0.04em;
  background: linear-gradient(180deg, #fff5e6 0%, #d6c4a4 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 80px rgba(217, 106, 58, 0.25);
}
.hero__unit {
  font-size: clamp(24px, 3vw, 42px);
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--ink-2);
  margin-left: clamp(4px, 1vw, 12px);
}
.hero__unit i { font-style: italic; color: var(--accent-2); }
.hero__logline {
  max-width: 50ch;
  font-size: clamp(17px, 1.4vw, 21px);
  font-weight: 300;
  line-height: 1.55;
  color: var(--ink-2);
  margin-bottom: 40px;
}
.hero__cta {
  display: flex; flex-wrap: wrap; gap: 14px;
  margin-bottom: 56px;
}
.hero__meta {
  display: flex; flex-wrap: wrap; gap: 32px;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--ink-3);
}
.hero__meta i {
  font-style: normal;
  color: var(--accent);
  margin-right: 8px;
}
.hero__scroll {
  position: absolute;
  left: 50%; bottom: 32px;
  transform: translateX(-50%);
  z-index: 3;
  width: 24px; height: 40px;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  display: flex; justify-content: center;
  padding-top: 8px;
}
.hero__scroll span {
  width: 2px; height: 6px;
  background: var(--accent);
  border-radius: 2px;
  animation: scrollDot 1.8s ease-in-out infinite;
}
@keyframes scrollDot {
  0%,20% { transform: translateY(0); opacity: 1; }
  80%,100% { transform: translateY(14px); opacity: 0; }
}

/* ============ sections ============ */
.section {
  position: relative;
  padding: var(--section-y) var(--gutter);
  max-width: var(--max);
  margin: 0 auto;
}
.section--dark {
  max-width: 100%;
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.section--dark > * {
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
}
.section__head {
  max-width: 880px;
  margin-bottom: clamp(40px, 5vw, 72px);
}

/* split section (image + text) */
.section--split {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
.section--split .section__media {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 4/5;
}
.section--split .section__media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,8,7,0) 60%, rgba(10,8,7,0.4) 100%);
}
.section--split .section__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(0.95) contrast(1.05);
}
.tags {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-top: 32px;
}
.tags li {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ink-2);
  padding: 8px 14px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
}
@media (max-width: 880px) {
  .section--split { grid-template-columns: 1fr; }
  .section--split .section__media { aspect-ratio: 4/3; order: -1; }
}

/* ============ grids ============ */
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}
@media (max-width: 960px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: 1fr; }
}
@media (max-width: 540px) {
  .grid-4 { grid-template-columns: 1fr; }
}

.card, .resource {
  background: var(--bg);
  padding: clamp(28px, 3vw, 40px);
  display: flex; flex-direction: column; gap: 12px;
  position: relative;
  transition: background 0.25s ease;
}
.section--dark .resource { background: var(--bg-2); }
.card:hover, .resource:hover { background: var(--bg-3); }

.card__num, .resource__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.card h3, .resource h3 {
  font-size: 26px;
  font-family: var(--font-serif);
  font-weight: 500;
  margin-bottom: 4px;
}
.card p, .resource p {
  font-size: 15px;
  color: var(--ink-2);
  line-height: 1.6;
}

/* ============ chapters ============ */
.chapters {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  counter-reset: chapter;
}
.chapter {
  position: relative;
  padding: 32px 28px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  background: var(--bg-2);
  transition: transform 0.4s ease, border-color 0.3s ease, background 0.3s ease;
  overflow: hidden;
}
.chapter::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.5s ease;
}
.chapter:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  background: var(--bg-3);
}
.chapter:hover::before { transform: scaleX(1); }
.chapter__num {
  font-family: var(--font-serif);
  font-size: 56px;
  font-weight: 400;
  font-style: italic;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 24px;
  opacity: 0.85;
}
.chapter__body h3 {
  font-size: 24px;
  margin-bottom: 4px;
}
.chapter__sub {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 12px;
}
.chapter__body p { font-size: 15px; color: var(--ink-2); }

@media (max-width: 1100px) {
  .chapters { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
  .chapters { grid-template-columns: 1fr; }
}

/* ============ gallery ============ */
.gallery {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}
.gallery figure {
  margin: 0;
  aspect-ratio: 2/3;
  overflow: hidden;
  border-radius: var(--r-lg);
  position: relative;
  background: var(--bg);
  cursor: zoom-in;
}
.gallery img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(0.95) contrast(1.05) brightness(0.92);
  transition: transform 0.7s ease, filter 0.4s ease;
}
.gallery figure:hover img {
  transform: scale(1.06);
  filter: saturate(1.05) contrast(1.05) brightness(1);
}
@media (max-width: 1024px) {
  .gallery { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 540px) {
  .gallery { grid-template-columns: repeat(2, 1fr); }
}

/* lightbox */
.lightbox {
  position: fixed; inset: 0;
  z-index: 200;
  background: rgba(5, 4, 3, 0.94);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 5vw;
  cursor: zoom-out;
}
.lightbox.is-open { display: flex; }
.lightbox img {
  max-width: 100%;
  max-height: 90vh;
  border-radius: var(--r-lg);
  box-shadow: 0 30px 80px rgba(0,0,0,0.6);
}

/* ============ kindred ============ */
.kindred {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line-2);
  border-bottom: 1px solid var(--line-2);
}
.kindred__item {
  padding: 36px 28px;
  border-right: 1px solid var(--line-2);
  transition: background 0.25s ease;
}
.kindred__item:last-child { border-right: 0; }
.kindred__item:hover { background: var(--bg-2); }
.kindred__item h3 {
  font-size: 22px;
  font-family: var(--font-serif);
  font-weight: 500;
  font-style: italic;
  margin-bottom: 12px;
  color: var(--ink);
}
.kindred__item p {
  font-size: 14px;
  color: var(--ink-2);
}
@media (max-width: 900px) {
  .kindred { grid-template-columns: repeat(2, 1fr); }
  .kindred__item:nth-child(2) { border-right: 0; }
  .kindred__item:nth-child(1),
  .kindred__item:nth-child(2) { border-bottom: 1px solid var(--line-2); }
}
@media (max-width: 520px) {
  .kindred { grid-template-columns: 1fr; }
  .kindred__item { border-right: 0; border-bottom: 1px solid var(--line-2); }
  .kindred__item:last-child { border-bottom: 0; }
}

/* ============ waitlist ============ */
.waitlist {
  position: relative;
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  padding: var(--section-y) var(--gutter);
  overflow: hidden;
}
.waitlist__inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
  position: relative;
  z-index: 1;
}
.waitlist__art {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: var(--r-lg);
  overflow: hidden;
}
.waitlist__art img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(0.85) contrast(1.05) brightness(0.85);
}
.waitlist__art::after {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at center, transparent 30%, rgba(10,8,7,0.5) 100%),
    linear-gradient(180deg, transparent 50%, rgba(10,8,7,0.6) 100%);
}
.waitlist__form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  margin-top: 32px;
  margin-bottom: 24px;
}
.waitlist__form input[type="email"] {
  height: 52px;
  padding: 0 20px;
  background: var(--bg);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  color: var(--ink);
  font-size: 16px;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.waitlist__form input[type="email"]:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--bg-3);
}
.waitlist__form input[type="email"]::placeholder { color: var(--ink-3); }
.waitlist__form input[type="email"].is-error {
  border-color: #c0392b;
}
.waitlist__form button { grid-column: 2; }
.waitlist__note {
  grid-column: 1 / -1;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--ink-3);
  margin-top: 4px;
}
.waitlist__success {
  grid-column: 1 / -1;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 20px;
  color: var(--accent-2);
  margin-top: 12px;
}
.waitlist__perks {
  display: flex; flex-direction: column; gap: 8px;
  margin-top: 8px;
  font-size: 14px;
  color: var(--ink-2);
}
.waitlist__perks i {
  color: var(--accent);
  font-style: normal;
  margin-right: 8px;
}
@media (max-width: 880px) {
  .waitlist__inner { grid-template-columns: 1fr; }
  .waitlist__art { aspect-ratio: 16/10; order: -1; max-height: 380px; }
  .waitlist__form { grid-template-columns: 1fr; }
  .waitlist__form button { grid-column: 1; }
}

/* ============ footer ============ */
.footer {
  padding: 80px var(--gutter) 32px;
  border-top: 1px solid var(--line);
  background: var(--bg);
}
.footer__inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--line);
}
.footer__logo {
  font-family: var(--font-serif);
  font-size: 36px;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.footer__brand p {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.footer__cols {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}
.footer__cols > div {
  display: flex; flex-direction: column; gap: 12px;
}
.footer__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}
.footer__cols a {
  font-size: 14px;
  color: var(--ink-2);
  transition: color 0.2s;
}
.footer__cols a:hover { color: var(--accent-2); }
.footer__base {
  max-width: var(--max);
  margin: 0 auto;
  padding-top: 32px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
}
@media (max-width: 720px) {
  .footer__inner { grid-template-columns: 1fr; }
}

/* ============ reveal animation ============ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .hero__img { animation: none; }
}
