/* =========================================================
   DESIGN TOKENS — change these to retune the site globally
   ========================================================= */
:root {
  --bg:         #111110;
  --text:       #F5F0E8;
  --accent:     #A0522D;          /* cognac */
  --muted:      rgba(245,240,232,0.6);
  --muted-soft: rgba(245,240,232,0.4);
  --muted-faint:rgba(245,240,232,0.28);
  --muted-ghost:rgba(245,240,232,0.2);
  --muted-trace:rgba(245,240,232,0.15);
  --border:     rgba(245,240,232,0.08);

  --serif:   "Spectral", Georgia, "Times New Roman", serif;
  --display: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --sans:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono:    "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --nav-h: 60px;
  --pad-x: 2.5rem;
  --pad-x-mobile: 1.5rem;
}

/* =========================================================
   RESET + BASE
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; border: 0; border-radius: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

::selection { background: var(--accent); color: var(--text); }

/* =========================================================
   NAV
   ========================================================= */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--pad-x);
  background: rgba(17,17,16,0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 0.5px solid var(--border);
  z-index: 100;
}
.nav__name, .nav__apply {
  position: relative;
  text-transform: uppercase;
  display: inline-block;
}
.nav__name { font-size: 12px; letter-spacing: 0.18em; color: var(--text); }
.nav__apply { font-size: 12px; letter-spacing: 0.14em; color: var(--accent); }
.nav__name::after, .nav__apply::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 100%;
  height: 0.5px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.nav__name:hover::after, .nav__apply:hover::after { transform: scaleX(1); }

@media (max-width: 720px) {
  .nav { padding: 0 var(--pad-x-mobile); }
}

/* =========================================================
   SHARED
   ========================================================= */
.label {
  font-family: var(--sans);
  font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--accent);
  margin: 0;
  font-weight: 400;
}

.eyebrow {
  font-family: var(--sans);
  font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 2.5rem;
  font-weight: 400;
}

.tagline {
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(22px, 2.8vw, 32px);
  line-height: 1.2;
  letter-spacing: 0;
  text-transform: none;
  color: rgba(245,240,232,0.92);
  margin: 0;
  font-variation-settings: "opsz" 32;
}

.rule {
  display: block;
  width: 48px; height: 0.5px;
  background: var(--accent);
  margin: 0 0 2rem;
}

/* =========================================================
   HERO — full-bleed cinematic with overlaid type
   ========================================================= */
.hero {
  position: relative;
  height: 100vh;
  min-height: 640px;
  overflow: hidden;
  background: #0a0a09;
}
.hero__image {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 20%;
  filter: brightness(0.7) contrast(1.05);
}
/* Vignette so type reads cleanly without crushing the photo */
.hero::after {
  content: '';
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(17,17,16,0.55) 0%, rgba(17,17,16,0) 22%, rgba(17,17,16,0) 55%, rgba(17,17,16,0.85) 100%),
    linear-gradient(90deg, rgba(17,17,16,0.45) 0%, rgba(17,17,16,0) 45%);
  pointer-events: none;
  z-index: 1;
}
.hero__overlay {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 0 var(--pad-x) 4.5rem;
  z-index: 2;
}
.hero__name {
  font-family: "Geist", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 400;
  font-size: clamp(64px, 12vw, 160px);
  line-height: 0.92;
  margin: 0 0 2rem;
  color: var(--text);
  letter-spacing: -0.04em;
  transition: opacity 1s ease, transform 1s ease, letter-spacing 1.6s cubic-bezier(0.2, 0.8, 0.2, 1);
  transition-delay: var(--reveal-delay, 0s);
}
.hero__name.is-visible { letter-spacing: -0.025em; }
.hero .eyebrow { margin-bottom: 1.5rem; }

@media (max-width: 720px) {
  .hero { min-height: 560px; }
  .hero__overlay { padding: 0 var(--pad-x-mobile) 3rem; }
  .hero .eyebrow { margin-bottom: 1.25rem; }
}

/* =========================================================
   SECTIONS (approach / how / apply)
   ========================================================= */
.section {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(0, 3.2fr);
  gap: 4rem;
  border-top: 0.5px solid var(--border);
  padding: 8rem var(--pad-x);
  max-width: 1400px;
  margin: 0 auto;
}
.section__label-col {
  position: sticky;
  top: calc(var(--nav-h) + 32px);
  align-self: start;
}
.section-num {
  font-family: var(--mono);
  font-weight: 400;
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin: 0 0 1rem;
  font-feature-settings: "tnum" 1;
}
.section__content { max-width: 720px; }

@media (max-width: 900px) {
  .section {
    grid-template-columns: 1fr;
    gap: 2.25rem;
    padding: 5rem var(--pad-x-mobile);
  }
  .section__label-col { position: static; }
  .section-num { margin-bottom: 0.6rem; }
}

/* =========================================================
   PROSE + PULLQUOTE
   ========================================================= */
.prose {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 20px;
  line-height: 1.7;
  color: var(--text);
  margin: 0 0 1.75rem;
}
.prose:last-child { margin-bottom: 0; }

.pullquote {
  position: relative;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: 26px;
  line-height: 1.45;
  color: rgba(245,240,232,0.65);
  padding-left: 1.75rem;
  margin: 3rem 0;
  /* Hang the opening quote outside the text block — editorial typesetting */
  hanging-punctuation: first;
  text-indent: -0.32em;
}
.pullquote::before {
  content: "";
  position: absolute;
  left: 0; top: 0;
  width: 0.5px;
  height: 0;
  background: var(--accent);
  transition: height 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) 0.2s;
}
.pullquote.is-visible::before { height: 100%; }

.subnote {
  font-family: var(--sans);
  font-size: 13px; font-weight: 300;
  letter-spacing: 0.04em;
  color: rgba(245,240,232,0.55);
  margin: 0 0 3.5rem;
}

/* =========================================================
   FIGURES
   ========================================================= */
.figure {
  margin: 3.5rem 0;
  background: #0a0a09;
}
.figure img {
  width: 100%;
  max-height: 78vh;
  object-fit: cover;
  filter: brightness(0.82) contrast(1.05);
}

/* Break a figure out of its parent column to full viewport width */
.figure--bleed {
  position: relative;
  width: 100vw;
  left: 50%;
  margin-left: -50vw;
  margin-top: 5rem;
  margin-bottom: 5rem;
  background: #0a0a09;
  border-top: 0.5px solid var(--border);
  border-bottom: 0.5px solid var(--border);
}
.figure--bleed img {
  display: block;
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: cover;
  filter: brightness(0.82) contrast(1.06);
}

/* Full-bleed cinematic interstitial band — natural aspect ratio, no cropping */
.figure-band {
  margin: 0;
  background: #0a0a09;
  width: 100%;
  border-top: 0.5px solid var(--border);
  border-bottom: 0.5px solid var(--border);
}
.figure-band img {
  display: block;
  width: 100%;
  height: auto;
  filter: brightness(0.82) contrast(1.06);
}

/* =========================================================
   HOW IT WORKS — model blocks
   ========================================================= */
.models {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}
.model {
  border-top: 0.5px solid var(--muted-trace);
  padding-top: 1.5rem;
}
.model__title {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text);
  margin: 0 0 1.25rem;
}
.model__body {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 18px;
  line-height: 1.7;
  color: rgba(245,240,232,0.78);
  margin: 0;
}
@media (max-width: 720px) {
  .models { grid-template-columns: 1fr; gap: 2.5rem; }
}

/* =========================================================
   APPLY FORM
   ========================================================= */
.apply-form { margin-top: 1rem; }
.field { margin-bottom: 2rem; }
.field label {
  display: block;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(245,240,232,0.75);
  margin-bottom: 0.85rem;
}
.field input,
.field textarea {
  width: 100%;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 300;
  color: var(--text);
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(245,240,232,0.3);
  border-radius: 0;
  padding: 0.65rem 0;
  outline: none;
  transition: border-color 0.3s ease;
  resize: vertical;
}
.field textarea { min-height: 96px; line-height: 1.5; }
.field input:focus,
.field textarea:focus { border-bottom-color: var(--accent); }

.submit {
  display: inline-block;
  margin-top: 3rem;
  padding: 1.2rem 2.6rem;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text);
  background: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 0;
  transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}
.submit:hover, .submit:focus-visible {
  background-color: #8B4626;
  border-color: #8B4626;
}

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  border-top: 0.5px solid var(--border);
  padding: 2rem var(--pad-x);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer__credit {
  font-family: var(--sans);
  font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(245,240,232,0.4);
}
.footer__email {
  font-family: var(--sans);
  font-size: 12px;
  color: rgba(245,240,232,0.4);
  text-decoration: none;
  transition: color 0.3s ease;
}
.footer__email:hover { color: var(--accent); }
@media (max-width: 720px) {
  .footer { padding: 2rem var(--pad-x-mobile); }
}

/* =========================================================
   ANIMATIONS — load (hero) + on-scroll (everything else)
   ========================================================= */

/* Default hidden state for elements that animate */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1s ease, transform 1s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Hero load animations: in-page elements with delays */
.hero .reveal.is-visible,
.hero .rule--draw.is-visible {
  /* delays applied per-element via inline data-delay -> CSS var */
}
.hero .reveal { transition-delay: var(--reveal-delay, 0s); }

/* Cognac rule that draws from 0 to 48px */
.rule--draw {
  width: 0;
  transition: width 0.8s ease;
  transition-delay: var(--reveal-delay, 0s);
}
.rule--draw.is-visible { width: 48px; }

/* Reduced motion — respect the user setting */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .rule--draw {
    opacity: 1 !important;
    transform: none !important;
    width: 48px;
    transition: none !important;
  }
  .hero__name { letter-spacing: -0.025em !important; }
  .pullquote::before { height: 100% !important; }
}
