/* ── Custom Properties ──────────────────────────────────────── */
:root {
  --bg: #0E0D0B;
  --bg-surface: #171614;
  --text: #F0EBE3;
  --text-muted: #8A837B;
  --accent: #C4956A;
  --accent-hover: #D4A87C;
  --accent-cool: #B8C4D0;

  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Jost', system-ui, sans-serif;

  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 3rem;
  --space-xl: 4.5rem;
  --space-2xl: 8rem;

  --max-content: 82rem;
  --max-page: 90rem;
}

/* ── Reset ──────────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

a, button, [role="button"] {
  -webkit-tap-highlight-color: transparent;
}

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

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

/* ── Animations ─────────────────────────────────────────────── */
@keyframes heroFadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes heroTextUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes breathe {

  0%,
  100% {
    opacity: 0.18;
    transform: translate(-50%, -50%) scale(1);
  }

  50% {
    opacity: 0.45;
    transform: translate(-50%, -50%) scale(1.2);
  }
}

@keyframes scrollLine {
  0% {
    transform: scaleY(0);
    transform-origin: bottom;
  }

  50% {
    transform: scaleY(1);
    transform-origin: bottom;
  }

  51% {
    transform: scaleY(1);
    transform-origin: top;
  }

  100% {
    transform: scaleY(0);
    transform-origin: top;
  }
}

/* ── Layout ─────────────────────────────────────────────────── */
.container {
  width: 92%;
  max-width: var(--max-content);
  margin-inline: auto;
}

.container--narrow {
  max-width: 38rem;
}

/* ── Navigation ─────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.2rem 4%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-sm);
  background: linear-gradient(to bottom, rgba(14, 13, 11, 0.85) 0%, rgba(14, 13, 11, 0.4) 60%, transparent 100%);
  max-width: 100vw;
  overflow: hidden;
}

.nav-brand {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text);
  white-space: nowrap;
}

.nav-link {
  appearance: none;
  background: none;
  border: none;
  border-bottom: 1px solid rgba(196, 149, 106, 0.35);
  padding: 0;
  padding-bottom: 3px;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  transition: border-color 0.3s;
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-link:hover {
  border-color: var(--accent);
}

/* ── Hero ───────────────────────────────────────────────────── */
.hero {
  position: relative;
  height: 100svh;
  min-height: 640px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
  background: url('images/hero.jpg') center 68% / cover no-repeat;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 68%;
}


.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 var(--space-sm);
  margin-bottom: 10rem;
}

.hero-content>* {
  animation: heroTextUp 0.8s ease-out both;
}

.hero-content> :nth-child(1) {
  animation-delay: 0.5s;
}

.hero-content> :nth-child(2) {
  animation-delay: 0.7s;
}

.hero-label {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 0.65rem;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.hero-title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(2.8rem, 9vw, 6.5rem);
  line-height: 0.9;
  color: var(--text);
  letter-spacing: -0.01em;
  margin-bottom: 1.2rem;
}

.hero-tagline {
  font-family: var(--font-serif);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(1rem, 2.2vw, 1.3rem);
  color: var(--text);
  opacity: 0.7;
}

.hero-scroll {
  position: absolute;
  bottom: 1rem;
  left: 0;
  right: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  opacity: 0;
  animation: heroTextUp 0.8s ease-out 1.5s both;
}

.hero-scroll span {
  font-size: 0.55rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--text);
  padding-left: 0.35em;
  /* offset letter-spacing to visually centre */
}

.hero-scroll-line {
  width: 2px;
  height: 2rem;
  background: var(--accent);
  animation: scrollLine 2.5s ease-in-out infinite;
}

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 0.95rem 2.8rem;
  background: var(--accent);
  color: var(--bg);
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 0.68rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s, box-shadow 0.3s;
  text-decoration: none;
  line-height: 1;
  border-radius: 999px;
}

.btn:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(196, 149, 106, 0.2);
}

.btn:active {
  transform: translateY(0);
}

.btn--outline {
  background: rgba(196, 149, 106, 0.08);
  color: var(--accent);
  border: 1px solid rgba(196, 149, 106, 0.7);
}

.btn--outline:hover {
  background: rgba(196, 149, 106, 0.06);
  border-color: var(--accent);
  box-shadow: 0 8px 30px rgba(196, 149, 106, 0.08);
}

/* ── Section images (gallery slides) ──────────────────────── */
.gallery__slide img {
  width: 100%;
}

/* ── Story CTA ──────────────────────────────────────────────── */
.story-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-block: var(--space-sm);
  /* background: var(--bg-surface); */
}

.story-cta .btn {
  padding: 1.2rem 3.5rem;
  font-size: 0.75rem;
}

/* ── Gallery Carousel ──────────────────────────────────────── */
.gallery {
  position: relative;
  padding-block: var(--space-lg);
}

.gallery__track {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  /* Firefox */
  padding-inline: calc((100vw - min(78vw, 560px)) / 2);
  overscroll-behavior-x: contain;
}

.gallery__track::-webkit-scrollbar {
  display: none;
  /* Chrome / Safari */
}

.gallery__slide {
  flex: 0 0 min(78vw, 560px);
  scroll-snap-align: center;
  scroll-snap-stop: always;
  border-radius: 1rem;
  overflow: hidden;
}

.gallery__controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  margin-top: var(--space-md);
}

.gallery__dots {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.gallery__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(240, 235, 227, 0.25);
  padding: 0;
  transition: background 0.3s, width 0.3s;
}

.gallery__dot.is-active {
  width: 1.5rem;
  border-radius: 3px;
  background: var(--accent);
}

.gallery__chevron {
  background: none;
  border: none;
  padding: 0.25rem;
  cursor: pointer;
  color: rgba(240, 235, 227, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
}

.gallery__chevron:hover {
  color: var(--cream);
}

.gallery__chevron:disabled {
  color: rgba(240, 235, 227, 0.2);
  cursor: default;
}

.gallery__chevron:focus {
  outline: none;
}

/* ── Story Section ─────────────────────────────────────────── */
.story {
  padding-top: var(--space-lg);
  padding-bottom: var(--space-sm);
  overflow: hidden;
}

.story h2 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(1.8rem, 4.5vw, 2.8rem);
  line-height: 1.2;
  margin-bottom: var(--space-md);
  color: var(--text);
}

.story p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.95;
}

.story p+p {
  margin-top: 1.2em;
}

/* ── Details ────────────────────────────────────────────────── */
.details {
  padding-block: var(--space-lg);
  background: var(--bg-surface);
  overflow: hidden;
}

.details h2 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  margin-bottom: var(--space-sm);
  color: var(--text);
}

.detail-row {
  padding-block: 1.3rem;
  border-top: 1px solid rgba(240, 235, 227, 0.06);
}

.detail-row:last-of-type {
  border-bottom: 1px solid rgba(240, 235, 227, 0.06);
}

.detail-key {
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.2rem;
}

.detail-val {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--text);
  line-height: 1.4;
}

.detail-note {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

.cta-doubt {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0.8rem;
}

.cta-subtitle {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0.8rem;
}

.details-grid {
  display: grid;
  gap: var(--space-lg);
}

.details-image img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0.5rem;
}

/* ── Waitlist ───────────────────────────────────────────────── */
.waitlist {
  padding-block: var(--space-lg);
  text-align: center;
}

.waitlist h2,
.waitlist-heading {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2.2rem, 6vw, 3.5rem);
  line-height: 1.1;
  margin-bottom: var(--space-sm);
  color: var(--text);
}

.waitlist-intro {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.95;
  margin-bottom: var(--space-sm);
  max-width: 32rem;
  margin-inline: auto;
}

.form {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  max-width: 28rem;
  margin-inline: auto;
}

.form-field {
  position: relative;
  width: 100%;
}

.form-shimmer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
}

.form-shimmer::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(196, 149, 106, 0) 20%,
    var(--accent) 50%,
    rgba(196, 149, 106, 0) 80%,
    transparent 100%);
  transform: translateX(-100%);
}

.form.is-loading .form-shimmer {
  opacity: 1;
}

.form.is-loading .form-shimmer::before {
  animation: formShimmer 1.2s ease-in-out infinite;
}

.form.is-loading .btn {
  opacity: 0.55;
  cursor: progress;
}

.form.is-loading .btn:hover {
  transform: none;
  box-shadow: none;
  background: var(--accent);
}

@keyframes formShimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

@media (prefers-reduced-motion: reduce) {
  .form.is-loading .form-shimmer::before {
    animation: none;
    transform: translateX(0);
    opacity: 0.6;
  }
}

.form input[type="email"] {
  width: 100%;
  padding: 1rem 1.3rem;
  background: rgba(240, 235, 227, 0.05);
  border: 1px solid rgba(240, 235, 227, 0.20);
  border-radius: 0;
  color: var(--text);
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
  -webkit-appearance: none;
}

.form input[type="email"]::placeholder {
  color: var(--text-muted);
  opacity: 0.6;
}

.form input[type="email"]:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(196, 149, 106, 0.15);
}

.form-field--error input[type="email"] {
  border-color: #c97a6a;
  box-shadow: 0 0 0 1px rgba(201, 122, 106, 0.15);
}

.form input[type="email"]:disabled {
  cursor: text;
  color: var(--text);
  -webkit-text-fill-color: var(--text);
  opacity: 1;
}

.form .btn {
  width: 100%;
  text-align: center;
  padding: 1.2rem 2rem;
  font-size: 0.75rem;
  white-space: nowrap;
}

.form-error {
  display: block;
  font-size: 0.85rem;
  color: #c97a6a;
  margin-top: 0.2rem;
}

.form-error[hidden] {
  display: none;
}

.form-thanks {
  display: none;
  padding: var(--space-md) 0;
  text-align: center;
}

.thanks-title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(1.9rem, 5vw, 2.6rem);
  line-height: 1.15;
  color: var(--text);
  margin-bottom: var(--space-sm);
}

.thanks-body {
  margin-bottom: 1.6rem;
}

.thanks-body p {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 0.55rem;
}

.thanks-body p:last-child {
  margin-bottom: 0;
}

.thanks-ig-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  color: #fff;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  box-shadow: 0 4px 18px rgba(220, 39, 67, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.thanks-ig-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 26px rgba(220, 39, 67, 0.35);
}

.thanks-ig-icon {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
}

/* ── Footer ─────────────────────────────────────────────────── */
.footer {
  padding-block: var(--space-lg);
  border-top: 1px solid rgba(240, 235, 227, 0.04);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  text-align: center;
}

.footer-brand {
  font-family: var(--font-serif);
  font-weight: 500;
  font-style: italic;
  font-size: 1.1rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: 2rem;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.footer-links a {
  transition: color 0.25s;
}

.footer-links a:hover {
  color: var(--text);
}

.footer-contact-btn {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 300;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.25s;
}

.footer-contact-btn:hover {
  color: var(--text);
}

.footer-legal {
  font-size: 0.65rem;
  color: var(--text-muted);
  opacity: 0.35;
}

/* ── Interlude (full-bleed image) ───────────────────────────── */
.interlude {
  display: block;
  width: 100%;
  margin: 0;
}

.interlude img {
  width: 100%;
  height: auto;
  display: block;
}

/* ── Tablet+ ────────────────────────────────────────────────── */
@media (min-width: 768px) {
  .details-grid {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }

  .interlude img {
    max-height: 50vh;
    object-fit: cover;
  }

  .form .cta-doubt {
    text-align: center;
    margin: 0;
  }
}

/* ── Desktop ────────────────────────────────────────────────── */

@media (min-width: 1024px) {
  body {
    max-width: var(--max-page);
    margin-inline: auto;
  }

  .nav {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    width: 100%;
    max-width: var(--max-page);
  }

  .hero {
    background-image: none;
    height: 50svh;
    min-height: 0;
    align-items: flex-start;
  }

  .hero-content {
    margin-bottom: 0;
    margin-top: 4rem;
  }

  .hero-video {
    width: 92%;
    max-width: var(--max-content);
    height: 100%;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    object-fit: cover;
  }

  .gallery__track {
    overflow-x: visible;
    scroll-snap-type: none;
    padding-inline: 0;
    gap: 0;
  }

  .gallery__slide {
    flex: 1 1 0;
    scroll-snap-align: none;
    border-radius: 0;
  }

  .gallery__controls {
    display: none;
  }
}

/* ── Hide scroll indicator on non-touch (mouse) devices ─────── */
@media (hover: hover) and (pointer: fine) {
  .hero-scroll {
    display: none;
  }
}

/* ── Modal ──────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(14, 13, 11, 0.82);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.modal {
  background: var(--bg-surface);
  border: 1px solid rgba(196, 149, 106, 0.15);
  border-radius: 4px;
  padding: 2.5rem 2rem 2rem;
  width: min(92vw, 28rem);
  position: relative;
  text-align: center;
  transform: translateY(14px);
  transition: transform 0.35s ease;
}

.modal-overlay.is-open .modal {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 0.875rem;
  right: 1rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 1.375rem;
  line-height: 1;
  padding: 0.25rem;
  transition: color 0.2s;
}

.modal-close:hover {
  color: var(--text);
}

.modal-close:focus {
  outline: none;
}

/* ── Reduced motion ─────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
