/* ============================================================
   The Loft — landing styles
   Charcoal-green base · champagne-gold accents · warm amber
   Mobile-first. No framework.
   ============================================================ */

:root {
  /* Palette */
  --charcoal: #101613;        /* page base — charcoal green */
  --charcoal-2: #161e1a;      /* alt section base */
  --charcoal-3: #1d2721;      /* cards */
  --ink-soft: #24302a;        /* borders / lines */
  --gold: #d3b478;            /* champagne gold */
  --gold-bright: #e8cd96;
  --amber: #e89a4e;           /* warm amber highlight */
  --amber-glow: rgba(232, 154, 78, 0.55);
  --cream: #f2ead9;           /* headings */
  --body: #b9c0b7;            /* body copy */
  --body-dim: #8b948a;

  --font-display: Georgia, 'Times New Roman', serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  --radius: 14px;
  --container: 72rem;
  --pad: clamp(1.25rem, 4vw, 2.5rem);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--charcoal);
  color: var(--body);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, video { max-width: 100%; display: block; }

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--cream);
  font-weight: 500;
  line-height: 1.15;
  margin: 0 0 0.5em;
}

p { margin: 0 0 1em; }
a { color: var(--gold); }

.container {
  width: min(100% - 2 * var(--pad), var(--container));
  margin-inline: auto;
}
.container.narrow { max-width: 46rem; }

/* ---------- Buttons — every one reads "Enter the Loft" ---------- */
.btn {
  display: inline-block;
  padding: 0.9rem 2.1rem;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.btn:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 3px;
}
.btn-gold {
  background: linear-gradient(135deg, var(--gold) 0%, var(--amber) 120%);
  color: #191207;
  box-shadow: 0 0 0 0 var(--amber-glow);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 8px 28px -8px var(--amber-glow); }
.btn-outline {
  background: transparent;
  color: var(--gold-bright);
  border-color: rgba(211, 180, 120, 0.45);
}
.btn-outline:hover { border-color: var(--gold-bright); transform: translateY(-2px); }
.btn-wide { width: 100%; text-align: center; }

/* ---------- Wordmark ---------- */
.wordmark {
  font-family: var(--font-display);
  color: var(--gold-bright);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-size: 0.85rem;
  margin: 0;
}

/* ============================================================
   1. Hero
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  isolation: isolate;
  overflow: hidden;
}

.hero-media, .finale-media {
  position: absolute;
  inset: -8% 0;                 /* headroom for parallax drift */
  z-index: -2;
}
.hero-visual {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
/* Fallback if hero-loft.png is missing: warm amber loft glow */
.hero-visual.is-missing {
  visibility: hidden;
}
.hero-media::before, .finale-media::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 75% 60% at 68% 42%, rgba(232, 154, 78, 0.35), transparent 65%),
    radial-gradient(ellipse 45% 45% at 30% 75%, rgba(211, 180, 120, 0.12), transparent 70%),
    linear-gradient(160deg, #1a2018 0%, #131a15 55%, #0d120f 100%);
}

.hero-overlay, .finale-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(105deg, rgba(13, 18, 15, 0.82) 0%, rgba(13, 18, 15, 0.35) 45%, rgba(13, 18, 15, 0.15) 70%),
    linear-gradient(to top, rgba(13, 18, 15, 0.85) 0%, transparent 30%);
}

.hero-inner {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding-top: clamp(1.5rem, 4vh, 3rem);
  padding-bottom: clamp(3rem, 8vh, 6rem);
}

.hero-copy {
  margin-top: clamp(4rem, 14vh, 9rem);   /* upper-left negative space */
  max-width: 34rem;
}
.hero-headline {
  font-size: clamp(2.6rem, 8vw, 4.6rem);
  letter-spacing: -0.01em;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.45);
}
.hero-subline {
  color: var(--gold-bright);
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.1rem, 2.6vw, 1.35rem);
  margin: 1rem 0 2rem;
}

.hero-scrollcue {
  position: absolute;
  left: 50%;
  bottom: 1.4rem;
  transform: translateX(-50%);
}
.hero-scrollcue span {
  display: block;
  width: 1px;
  height: 44px;
  background: linear-gradient(to bottom, transparent, var(--gold));
  opacity: 0.7;
}

/* ============================================================
   Sections — shared
   ============================================================ */
.section { padding: clamp(4rem, 10vw, 7rem) 0; }
.section-alt { background: var(--charcoal-2); }

.section-title {
  font-size: clamp(1.9rem, 4.5vw, 2.8rem);
  text-align: center;
}
.section-lede {
  text-align: center;
  color: var(--body-dim);
  font-size: 1.1rem;
  margin-bottom: clamp(2.5rem, 6vw, 4rem);
}
.section-cta { text-align: center; margin-top: clamp(2.5rem, 6vw, 4rem); }

/* ============================================================
   2. Bundle row
   ============================================================ */
.bundle-row {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
}
.bundle-card {
  background: var(--charcoal-3);
  border: 1px solid var(--ink-soft);
  border-radius: var(--radius);
  padding: 1.25rem;
}
.bundle-card h3 { font-size: 1.15rem; margin-top: 1rem; }
.bundle-card p { font-size: 0.92rem; color: var(--body-dim); margin: 0; }

.bundle-thumb {
  border-radius: 10px;
  background:
    radial-gradient(ellipse 80% 70% at 60% 35%, rgba(232, 154, 78, 0.22), transparent 70%),
    linear-gradient(150deg, #222c25, #131a15);
  border: 1px solid var(--ink-soft);
  display: grid;
  place-items: center;
}
.thumb-label {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: var(--gold);
  opacity: 0.85;
}
.ratio-1x1 { aspect-ratio: 1 / 1; }
.ratio-9x16 { aspect-ratio: 9 / 16; }
.ratio-16x9 { aspect-ratio: 16 / 9; }
.bundle-card .ratio-9x16 { max-height: 14rem; margin-inline: auto; aspect-ratio: 9/16; }

/* ============================================================
   3. Steps
   ============================================================ */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  counter-reset: step;
}
.step {
  position: relative;
  padding-top: 0.5rem;
  border-top: 1px solid var(--ink-soft);
}
.step-num {
  font-family: var(--font-display);
  color: var(--amber);
  font-size: 1rem;
  letter-spacing: 0.2em;
}
.step h3 { font-size: 1.25rem; margin-top: 0.75rem; }
.step p { color: var(--body-dim); font-size: 0.95rem; }

/* ============================================================
   4. Gallery + case study
   ============================================================ */
.gallery-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  align-items: start;
}
.gallery-slot { margin: 0; }
.gallery-slot figcaption {
  font-size: 0.82rem;
  color: var(--body-dim);
  margin-top: 0.6rem;
  letter-spacing: 0.02em;
}
.slot-placeholder {
  width: 100%;
  height: 100%;
  min-height: 9rem;
  border-radius: var(--radius);
  border: 1px dashed rgba(211, 180, 120, 0.35);
  background: linear-gradient(150deg, rgba(34, 44, 37, 0.6), rgba(19, 26, 21, 0.6));
  display: grid;
  place-items: center;
}
.gallery-slot.ratio-9x16 .slot-placeholder,
.gallery-slot.ratio-1x1 .slot-placeholder,
.gallery-slot.ratio-16x9 .slot-placeholder { aspect-ratio: inherit; height: auto; }
.gallery-slot.ratio-9x16 { max-width: 14rem; }
.slot-placeholder span {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.8;
  text-align: center;
  padding: 0 1rem;
}

.case-study {
  margin-top: clamp(2.5rem, 6vw, 4rem);
  display: grid;
  gap: 1.5rem;
  align-items: center;
  background: var(--charcoal-3);
  border: 1px solid var(--ink-soft);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.case-study-media { aspect-ratio: 16 / 9; }
.case-study-copy h3 { font-size: 1.35rem; }
.case-study-copy p { color: var(--body-dim); margin: 0; }
@media (min-width: 46rem) {
  .case-study { grid-template-columns: 1.2fr 1fr; padding: 2rem; }
}

/* ============================================================
   5. Trust list
   ============================================================ */
.trust-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
}
.trust-list li {
  border-left: 2px solid var(--gold);
  padding-left: 1.25rem;
  color: var(--body-dim);
}
.trust-list strong { color: var(--cream); display: block; font-weight: 600; }

/* ============================================================
   6. Make it yours
   ============================================================ */
.yours-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
}
.yours-card {
  background: var(--charcoal-3);
  border: 1px solid var(--ink-soft);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  position: relative;
}
.yours-card h3 { font-size: 1.2rem; }
.yours-card p { color: var(--body-dim); font-size: 0.95rem; margin: 0; }
.led-dot {
  display: block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 12px 2px var(--amber-glow);
  margin-bottom: 1.1rem;
}

/* ============================================================
   7. Pricing
   ============================================================ */
.pricing-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  align-items: stretch;
}
.price-card {
  background: var(--charcoal-3);
  border: 1px solid var(--ink-soft);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
}
.price-card-featured {
  border-color: rgba(211, 180, 120, 0.55);
  box-shadow: 0 0 40px -18px var(--amber-glow);
}
.price-flag {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amber);
  margin: 0 0 0.5rem;
}
.price-card h3 { font-size: 1.5rem; }
.price-line {
  font-family: var(--font-display);
  color: var(--gold-bright);
  font-size: 1.9rem;
  margin: 0.25rem 0 0.25rem;
}
.price-line span { font-size: 0.95rem; color: var(--body-dim); font-family: var(--font-body); }
.price-blurb { color: var(--body-dim); font-style: italic; }
.price-card ul {
  list-style: none;
  margin: 0 0 1.75rem;
  padding: 0;
  flex: 1;
  display: grid;
  gap: 0.7rem;
  font-size: 0.95rem;
}
.price-card ul li { padding-left: 1.4rem; position: relative; }
.price-card ul li::before {
  content: '·';
  color: var(--gold);
  position: absolute;
  left: 0.3rem;
  font-weight: 700;
}
.price-card small { color: var(--body-dim); }
.price-card .btn { text-align: center; }

/* ============================================================
   8. B2B strip
   ============================================================ */
.b2b-strip {
  background: linear-gradient(120deg, #0d120f, #17201a);
  border-top: 1px solid var(--ink-soft);
  border-bottom: 1px solid var(--ink-soft);
  padding: clamp(2.5rem, 6vw, 4rem) 0;
}
.b2b-inner {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: flex-start;
}
.b2b-strip h2 { font-size: 1.5rem; margin-bottom: 0.35rem; }
.b2b-strip p { color: var(--body-dim); margin: 0; max-width: 40rem; }
@media (min-width: 52rem) {
  .b2b-inner { flex-direction: row; justify-content: space-between; align-items: center; }
}

/* ============================================================
   9. Finale + form
   ============================================================ */
.finale {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(4.5rem, 10vw, 8rem) 0;
}
.finale-overlay {
  background:
    linear-gradient(to bottom, rgba(13, 18, 15, 0.92) 0%, rgba(13, 18, 15, 0.72) 100%);
}

.enter-form {
  background: rgba(16, 22, 19, 0.82);
  border: 1px solid rgba(211, 180, 120, 0.25);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  backdrop-filter: blur(6px);
  display: grid;
  gap: 1.2rem;
}
.field { display: grid; gap: 0.45rem; }
.field label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--cream);
  letter-spacing: 0.02em;
}
.field .hint { font-weight: 400; color: var(--body-dim); }
.field input,
.field select {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  border: 1px solid var(--ink-soft);
  background: #0d120f;
  color: var(--cream);
  font-size: 1rem;
  font-family: inherit;
}
.field input:focus,
.field select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(211, 180, 120, 0.18);
}
.field input.invalid { border-color: #c96f4a; }

.form-status {
  margin: 0;
  min-height: 1.4em;
  text-align: center;
  font-size: 0.95rem;
  color: var(--gold-bright);
}

/* ============================================================
   Entrance transition — stepping through the doorway
   ============================================================ */
.enter-transition {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
  opacity: 0;
  background: #0d120f;
  overflow: hidden;
  pointer-events: none;
}
.enter-transition img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%;
}
.enter-transition::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 62% 52% at 50% 55%, transparent 30%, rgba(13, 18, 15, 0.85) 100%);
}

/* ============================================================
   Footer
   ============================================================ */
.footer {
  border-top: 1px solid var(--ink-soft);
  padding: 2.5rem 0;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
  text-align: center;
}
.footer p { margin: 0; font-size: 0.9rem; color: var(--body-dim); }

/* ============================================================
   Motion — initial states only when JS + motion allowed.
   GSAP adds .gsap-on to <html>; reveals start hidden from there.
   ============================================================ */
.gsap-on [data-reveal] { opacity: 0; }

@media (prefers-reduced-motion: reduce) {
  .gsap-on [data-reveal] { opacity: 1; }
  .btn, .btn:hover { transition: none; transform: none; }
}
