/* ============================================================
   THE VERTIUM - landing
   ============================================================ */

:root {
  --ink:        #0a0a0b;   /* near-black ground */
  --ink-2:      #111113;
  --ivory:      #f4f1ea;   /* warm white */
  --ivory-dim:  #b8b3a8;
  --muted:      #6f6b62;
  --line:       rgba(244, 241, 234, 0.16);
  --gold:       #b9a37e;   /* restrained brass accent */
  --maxw:       1240px;
  --ease:       cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background: var(--ink);
  color: var(--ivory);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { display: block; width: 100%; height: 100%; object-fit: cover; }

a { color: inherit; text-decoration: none; }

/* ---------- shared type ---------- */
.label {
  font-size: 0.66rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--ivory-dim);
}

.section-label {
  font-size: 0.68rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
  margin-bottom: 2.4rem;
}
.section-label.light { color: var(--gold); }

h2 {
  font-family: "Archivo", sans-serif;
  font-weight: 800;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
}

h3 {
  font-family: "Archivo", sans-serif;
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.01em;
  line-height: 1.1;
}

/* ---------- fixed monogram ---------- */
.monogram {
  position: fixed;
  top: 28px; right: 32px;
  z-index: 50;
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  backdrop-filter: blur(6px);
  transition: border-color 0.5s var(--ease), transform 0.5s var(--ease);
}
.monogram:hover { border-color: var(--gold); transform: rotate(8deg); }
.mono-mark {
  width: 19px; height: 19px;
  color: var(--ivory);
  display: block;
}

/* ============================================================
   HERO - full-bleed photography with brand overlay
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(32px, 6vw, 72px);
  overflow: hidden;
}
.hero-media { position: absolute; inset: 0; z-index: -1; }
.hero-media img { transform: scale(1.06); animation: slowzoom 20s var(--ease) forwards; }
@keyframes slowzoom { to { transform: scale(1); } }
.hero-veil {
  position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgba(10,10,11,0.94) 0%, rgba(10,10,11,0.25) 50%, rgba(10,10,11,0.55) 100%);
}

.hero-inner { max-width: 820px; margin-bottom: 5vh; }
.eyebrow { display: flex; align-items: center; gap: 18px; margin-bottom: 26px; }
.eyebrow span:nth-child(2) {
  font-size: 0.68rem; letter-spacing: 0.42em; text-transform: uppercase;
  color: var(--ivory-dim); font-weight: 500;
}
.eyebrow .rule { height: 1px; width: 56px; background: var(--line); }

.wordmark {
  font-family: "Archivo", sans-serif;
  font-weight: 800;
  font-size: clamp(3.4rem, 13vw, 9.5rem);
  letter-spacing: 0.05em;
  line-height: 0.9;
  margin-bottom: 28px;
}

.hero-tag {
  font-family: "Archivo", sans-serif;
  font-weight: 500;
  font-size: clamp(1.15rem, 2.6vw, 1.85rem);
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}
.hero-sub { color: var(--ivory-dim); font-size: clamp(0.95rem, 1.6vw, 1.12rem); margin-bottom: 44px; }

.scroll-cue {
  position: absolute;
  bottom: 30px; right: clamp(32px, 6vw, 72px);
  display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.scroll-cue .cue-line {
  width: 1px; height: 48px;
  background: linear-gradient(to bottom, var(--ivory-dim), transparent);
  animation: cue 2.4s var(--ease) infinite;
  transform-origin: top;
}
@keyframes cue { 0%,100% { transform: scaleY(0.4); opacity: 0.4; } 50% { transform: scaleY(1); opacity: 1; } }

/* ============================================================
   FEATURE - full-bleed cinematic image with caption
   ============================================================ */
.feature { position: relative; padding: 0; }
.feature-fig {
  position: relative;
  width: 100%;
  height: clamp(420px, 78vh, 820px);
  overflow: hidden;
}
/* taller than the frame so scroll parallax never reveals an edge */
.feature-fig img {
  position: absolute; left: 0; top: -14%;
  width: 100%; height: 128%;
  object-fit: cover;
  will-change: transform;
}
.feature-cap {
  position: absolute; left: 0; bottom: 0;
  padding: clamp(28px, 5vw, 60px);
  max-width: 620px;
  background: linear-gradient(to top, rgba(10,10,11,0.7), transparent);
}
.feature-cap .label { display: block; margin-bottom: 12px; }
.feature-cap p {
  font-family: "Archivo", sans-serif;
  font-weight: 500;
  font-size: clamp(1.2rem, 2.6vw, 1.9rem);
  line-height: 1.25;
  letter-spacing: -0.01em;
}

/* ---------- buttons ---------- */
.btn-ghost, .btn-solid {
  font-family: "Inter", sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.45s var(--ease);
}
.btn-ghost {
  display: inline-block;
  padding: 16px 34px;
  border: 1px solid var(--ivory);
  color: var(--ivory);
  background: transparent;
}
.btn-ghost:hover { background: var(--ivory); color: var(--ink); }

.btn-solid {
  padding: 0 32px;
  border: 1px solid var(--ivory);
  background: var(--ivory);
  color: var(--ink);
  white-space: nowrap;
}
.btn-solid:hover { background: transparent; color: var(--ivory); }

/* ============================================================
   MANIFESTO
   ============================================================ */
.manifesto {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(90px, 16vw, 200px) clamp(28px, 6vw, 80px);
  text-align: center;
}
.manifesto .section-label { display: inline-block; }
.manifesto-body {
  font-family: "Archivo", sans-serif;
  font-weight: 500;
  font-size: clamp(1.5rem, 3.6vw, 2.7rem);
  line-height: 1.32;
  letter-spacing: -0.02em;
  max-width: 18ch;
  margin: 0 auto;
}
.manifesto-body { max-width: 24ch; }
.manifesto-body .dim { color: var(--muted); display: block; margin-top: 0.6em; }

/* ============================================================
   GALLERY
   ============================================================ */
.gallery {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px) clamp(80px, 12vw, 160px);
}
.gallery-head { max-width: 620px; margin-bottom: clamp(40px, 6vw, 72px); }
.gallery-head h2 { margin-bottom: 22px; }
.gallery-intro { color: var(--ivory-dim); font-size: 1.02rem; max-width: 52ch; }

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.card {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--ink-2);
  cursor: pointer;
}
.card img { transition: transform 1.4s var(--ease); }
.card:hover img { transform: scale(1.05); }
.card::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,10,11,0.95) 0%, rgba(10,10,11,0.55) 30%, rgba(10,10,11,0) 68%);
}
/* "view" affordance */
.card-view {
  position: absolute; top: 20px; right: 20px; z-index: 3;
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border: 1px solid rgba(244,241,234,0.5);
  border-radius: 50%;
  color: var(--ivory); font-size: 1.1rem; line-height: 1;
  opacity: 0; transform: scale(0.8);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease), background 0.4s var(--ease);
}
.card:hover .card-view { opacity: 1; transform: scale(1); }
.card:hover .card-view:hover, .card:focus-visible .card-view { background: var(--ivory); color: var(--ink); }
.card:focus-visible { outline: 1px solid var(--gold); outline-offset: 3px; }
.card figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  z-index: 2;
  padding: 26px;
}
.card figcaption .label { display: block; margin-bottom: 11px; }
.card figcaption h3 { margin-bottom: 9px; }
.card figcaption p {
  color: var(--ivory-dim);
  font-size: 0.86rem;
  line-height: 1.5;
  max-width: 36ch;
}

/* ============================================================
   INVITATION / WAITLIST - black ground, no competing imagery
   ============================================================ */
.invitation {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(90px, 16vw, 200px) clamp(28px, 6vw, 40px);
  text-align: center;
  border-top: 1px solid var(--line);
}
.invitation-inner { max-width: 600px; margin: 0 auto; }
.invitation .section-label { display: inline-block; }
.invitation-inner h2 { margin-bottom: 24px; }
.invitation-copy { color: var(--ivory-dim); font-size: 1.05rem; margin-bottom: 44px; max-width: 50ch; margin-left: auto; margin-right: auto; }
.join { max-width: 520px; margin: 0 auto; text-align: left; }

/* form */
.join { max-width: 520px; }
.field-row {
  display: flex;
  border: 1px solid var(--line);
  background: rgba(10,10,11,0.4);
  transition: border-color 0.4s var(--ease);
}
.field-row:focus-within { border-color: var(--ivory); }
.field-row input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--ivory);
  font-family: "Inter", sans-serif;
  font-size: 0.95rem;
  padding: 18px 20px;
}
.field-row input::placeholder { color: var(--muted); }
.field-row .btn-solid { border: none; }

.consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 20px;
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--muted);
}
.consent input {
  margin-top: 3px;
  width: 15px; height: 15px;
  accent-color: var(--gold);
  flex-shrink: 0;
}
.consent a { color: var(--ivory-dim); text-decoration: underline; text-underline-offset: 2px; }

.form-msg { margin-top: 18px; font-size: 0.84rem; min-height: 1.2em; }
.form-msg.ok { color: var(--gold); }
.form-msg.err { color: #d98a7a; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  border-top: 1px solid var(--line);
  padding: clamp(56px, 8vw, 90px) clamp(28px, 6vw, 80px);
  text-align: center;
}
.footer-mono {
  width: 34px; height: 34px;
  color: var(--ivory);
  margin: 0 auto 18px;
  display: block;
}
.footer-tag { color: var(--ivory-dim); font-size: 0.95rem; margin-bottom: 34px; }
.footer-nav {
  display: flex; justify-content: center; gap: 36px;
  margin-bottom: 34px; flex-wrap: wrap;
}
.footer-nav a {
  font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--ivory-dim); transition: color 0.4s var(--ease);
}
.footer-nav a:hover { color: var(--ivory); }
.footer-fine { font-size: 0.72rem; letter-spacing: 0.08em; color: var(--muted); }

/* ============================================================
   DESTINATIONS MARQUEE
   ============================================================ */
.marquee {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 26px 0;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
          mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
}
.marquee-track {
  display: flex; align-items: center;
  width: max-content;
  white-space: nowrap;
  animation: marquee 48s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee span {
  font-family: "Archivo", sans-serif;
  font-weight: 500;
  font-size: clamp(1.05rem, 2.1vw, 1.7rem);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  padding: 0 30px;
  color: var(--ivory);
}
.marquee i {
  color: var(--gold); font-style: normal;
  font-size: 0.5em;
  transform: translateY(-0.2em);
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ============================================================
   GALLERY LIGHTBOX
   ============================================================ */
.lightbox {
  position: fixed; inset: 0; z-index: 110;
  display: flex; align-items: center; justify-content: center;
  padding: clamp(20px, 5vw, 64px);
  opacity: 0; visibility: hidden;
  transition: opacity 0.5s var(--ease), visibility 0.5s var(--ease);
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox-backdrop {
  position: absolute; inset: 0;
  background: rgba(6, 6, 7, 0.9);
  backdrop-filter: blur(10px);
}
.lightbox-inner {
  position: relative; z-index: 1;
  display: flex; align-items: center;
  gap: clamp(28px, 4vw, 64px);
  width: 100%; max-width: 1180px; max-height: 88vh;
  transform: scale(0.975); transition: transform 0.5s var(--ease);
}
.lightbox.open .lightbox-inner { transform: none; }
.lightbox-media { flex: 0 1 58%; display: flex; min-width: 0; }
.lightbox-media img {
  width: 100%; height: auto; max-height: 84vh;
  object-fit: contain;
  box-shadow: 0 40px 120px rgba(0,0,0,0.6);
}
.lightbox-body { flex: 1 1 42%; max-width: 46ch; }
.lightbox-body .label { display: block; margin-bottom: 16px; }
.lightbox-body h3 {
  font-family: "Archivo", sans-serif; font-weight: 800;
  font-size: clamp(1.6rem, 3vw, 2.4rem); letter-spacing: -0.02em;
  line-height: 1.05; margin-bottom: 22px;
}
.lightbox-desc { color: var(--ivory-dim); font-size: 1rem; line-height: 1.78; margin-bottom: 30px; }
.lightbox-cta {
  display: inline-block;
  font-size: 0.7rem; letter-spacing: 0.22em; text-transform: uppercase;
  font-weight: 500; color: var(--ivory);
  padding-bottom: 6px; border-bottom: 1px solid var(--gold);
  transition: color 0.4s var(--ease), border-color 0.4s var(--ease);
}
.lightbox-cta:hover { color: var(--gold); }
.lightbox-close {
  position: absolute; top: 24px; right: 28px; z-index: 2;
  background: none; border: none; color: var(--ivory-dim);
  font-size: 2rem; line-height: 1; cursor: pointer;
  transition: color 0.3s var(--ease);
}
.lightbox-close:hover { color: var(--ivory); }

/* ============================================================
   HERO LOAD STAGGER
   ============================================================ */
.hero-inner > * { opacity: 0; animation: rise 1s var(--ease) forwards; }
.hero-inner > *:nth-child(1) { animation-delay: 0.15s; }
.hero-inner > *:nth-child(2) { animation-delay: 0.30s; }
.hero-inner > *:nth-child(3) { animation-delay: 0.45s; }
.hero-inner > *:nth-child(4) { animation-delay: 0.55s; }
.hero-inner > *:nth-child(5) { animation-delay: 0.70s; }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }

/* ============================================================
   TIMED WAITLIST OVERLAY
   ============================================================ */
.overlay {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  opacity: 0; visibility: hidden;
  transition: opacity 0.6s var(--ease), visibility 0.6s var(--ease);
}
.overlay.open { opacity: 1; visibility: visible; }

.overlay-backdrop {
  position: absolute; inset: 0;
  background: rgba(6, 6, 7, 0.78);
  backdrop-filter: blur(8px);
}

.overlay-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 520px;
  background: var(--ink-2);
  border: 1px solid var(--line);
  padding: clamp(36px, 6vw, 56px);
  text-align: center;
  transform: translateY(18px) scale(0.985);
  transition: transform 0.6s var(--ease);
  box-shadow: 0 40px 120px rgba(0,0,0,0.6);
}
.overlay.open .overlay-card { transform: none; }

.overlay-mono {
  width: 38px; height: 38px;
  color: var(--ivory);
  margin: 0 auto 22px;
  display: block;
}
.overlay-card .section-label { display: inline-block; margin-bottom: 18px; }
.overlay-card h2 { font-size: clamp(1.7rem, 5vw, 2.4rem); margin-bottom: 16px; }
.overlay-copy { color: var(--ivory-dim); font-size: 0.98rem; margin-bottom: 32px; }
.overlay-card .join { text-align: left; }

.overlay-close {
  position: absolute; top: 16px; right: 18px;
  background: none; border: none; color: var(--ivory-dim);
  font-size: 1.6rem; line-height: 1; cursor: pointer;
  transition: color 0.3s var(--ease);
}
.overlay-close:hover { color: var(--ivory); }

.overlay-dismiss {
  margin-top: 22px;
  background: none; border: none; cursor: pointer;
  font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted);
  transition: color 0.3s var(--ease);
}
.overlay-dismiss:hover { color: var(--ivory-dim); }

@media (prefers-reduced-motion: reduce) {
  .overlay, .overlay-card { transition: opacity 0.2s linear; }
  .overlay-card { transform: none; }
}

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 860px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  /* lightbox stacks: image on top, description below, scrollable */
  .lightbox { padding: 0; }
  .lightbox-inner {
    flex-direction: column; align-items: stretch;
    gap: 0; max-height: 100vh; max-width: 100%;
    overflow-y: auto; -webkit-overflow-scrolling: touch;
  }
  .lightbox-media { flex: none; }
  .lightbox-media img { max-height: 56vh; width: 100%; }
  .lightbox-body { flex: none; max-width: none; padding: 26px clamp(24px,6vw,40px) 48px; }
}
@media (max-width: 560px) {
  .grid { grid-template-columns: 1fr; }
  .field-row { flex-direction: column; }
  .field-row .btn-solid { padding: 16px; }
  .hero-foot { flex-direction: column; align-items: flex-start; gap: 8px; }
  .monogram { top: 18px; right: 18px; width: 38px; height: 38px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-inner > * { opacity: 1; }
  .feature-fig img { transform: none !important; }
}
