/* =========================================================================
   Manager Builds — Cinematic Twilight design system
   Mobile-first, fluid from 240px upward. Built to hit hard on first paint.
   ========================================================================= */

/* ---------- Tokens ---------- */
:root {
  /* Palette — the logo's sunset, amplified */
  --c-void:       #08061a;
  --c-night-deep: #120e2b;
  --c-night:      #1a1540;
  --c-midnight:   #241a55;
  --c-purple:     #3a2a78;
  --c-lavender:   #7a5fc2;
  --c-dusk:       #b06199;
  --c-dusk-pink:  #e67aa9;
  --c-amber:      #ffb271;
  --c-amber-hot:  #ffc68c;
  --c-moon:       #ffedb8;
  --c-cream:      #fff5d6;

  --text:         #fff5d6;
  --text-soft:    rgba(255, 245, 214, 0.72);
  --text-mute:    rgba(255, 245, 214, 0.48);

  --surface:       rgba(255, 255, 255, 0.04);
  --surface-2:     rgba(255, 255, 255, 0.07);
  --border-soft:   rgba(255, 245, 214, 0.08);
  --border-warm:   rgba(255, 178, 113, 0.35);

  --grad-sunset:     linear-gradient(135deg, #ffb271 0%, #e67aa9 55%, #7a5fc2 100%);
  --grad-sunset-soft:linear-gradient(135deg, #ffb27133 0%, #e67aa933 55%, #7a5fc233 100%);
  --grad-night:      linear-gradient(180deg, #120e2b 0%, #08061a 100%);
  --grad-card:       linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.01));

  /* Fluid spacing — from 240px up */
  --sp-2xs: clamp(0.25rem, 0.2rem + 0.2vw, 0.5rem);
  --sp-xs:  clamp(0.5rem, 0.4rem + 0.3vw, 0.75rem);
  --sp-sm:  clamp(0.75rem, 0.6rem + 0.5vw, 1rem);
  --sp-md:  clamp(1rem, 0.8rem + 0.8vw, 1.5rem);
  --sp-lg:  clamp(1.5rem, 1.1rem + 1.4vw, 2.5rem);
  --sp-xl:  clamp(2rem, 1.3rem + 2.5vw, 4rem);
  --sp-2xl: clamp(3rem, 1.6rem + 5vw, 6rem);
  --sp-3xl: clamp(4rem, 1.8rem + 8vw, 9rem);

  /* Fluid type — ~15% smaller across the board for a calmer reading density. */
  --fs-xs:    clamp(0.62rem, 0.58rem + 0.17vw, 0.7rem);
  --fs-sm:    clamp(0.7rem,  0.66rem + 0.19vw, 0.78rem);
  --fs-base:  clamp(0.82rem, 0.76rem + 0.3vw,  0.94rem);
  --fs-md:    clamp(0.9rem,  0.82rem + 0.42vw, 1.1rem);
  --fs-lg:    clamp(1.02rem, 0.86rem + 0.76vw, 1.44rem);
  --fs-xl:    clamp(1.36rem, 1.02rem + 1.36vw, 2.04rem);
  --fs-2xl:   clamp(1.88rem, 1.2rem + 2.72vw,  3.4rem);
  --fs-3xl:   clamp(2.38rem, 1.2rem + 5.1vw,   5.1rem);
  --fs-mega:  clamp(2.55rem, 0.85rem + 8.5vw,  7.65rem);

  /* Radii / shadows / glow / motion */
  --r-sm: 8px;  --r-md: 14px;  --r-lg: 22px;  --r-xl: 32px;
  --sh-sm: 0 4px 18px rgba(0,0,0,0.35);
  --sh-md: 0 14px 40px rgba(0,0,0,0.45);
  --sh-lg: 0 30px 80px rgba(0,0,0,0.55);
  --glow-warm: 0 0 60px rgba(255, 178, 113, 0.45);
  --glow-pink: 0 0 80px rgba(230, 122, 169, 0.35);

  /* Motion — comfortable durations with a smooth ease-in-out curve. */
  --ease:     cubic-bezier(0.45, 0.05, 0.25, 1);
  --ease-out: cubic-bezier(0.22, 0.75, 0.3, 1);
  --t-fast:   240ms;
  --t-base:   360ms;
  --t-slow:   700ms;

  --page-max: 1280px;
  --gutter:   clamp(1rem, 4vw, 2.5rem);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
/* Reduced-motion support — we still keep short hover transitions because they
   don't trigger vestibular issues; only long keyframe animations are disabled
   and scroll behavior falls back to instant. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
  }
}
body {
  margin: 0;
  min-height: 100dvh;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: var(--fs-base);
  line-height: 1.65;
  color: var(--text);
  background: var(--c-void);
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
body.no-scroll { overflow: hidden; }

img, svg, video, canvas { display: block; max-width: 100%; height: auto; }
a {
  color: var(--c-amber-hot);
  text-decoration: none;
  transition: color var(--t-fast) var(--ease);
}
a:hover, a:focus-visible { color: var(--c-dusk-pink); }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--c-amber); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3, h4 {
  font-family: "Fraunces", "Cormorant Garamond", Georgia, serif;
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--c-cream);
}
h1 { font-size: var(--fs-mega); }
h2 { font-size: var(--fs-3xl); }
h3 { font-size: var(--fs-xl); }
p  { margin: 0 0 var(--sp-sm); }

/* ---------- Shared layout ---------- */
.container {
  width: 100%;
  max-width: var(--page-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: var(--sp-3xl);
  position: relative;
}

.section__tag {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-size: var(--fs-xs);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--c-amber-hot);
  margin-bottom: var(--sp-md);
}
.section__tag::before {
  content: "";
  width: 28px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--c-amber));
}
.section__title {
  font-size: var(--fs-3xl);
  margin-bottom: var(--sp-md);
  max-width: 16ch;
}
.section__title em {
  font-style: italic;
  background: var(--grad-sunset);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.section__lead {
  color: var(--text-soft);
  max-width: 58ch;
  font-size: var(--fs-md);
  margin-bottom: var(--sp-xl);
}

/* ---------- Background atmosphere (layered stars + aurora) ---------- */
.atmosphere {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(120% 80% at 80% 10%, rgba(255, 178, 113, 0.18) 0%, transparent 55%),
    radial-gradient(100% 90% at 10% 40%, rgba(230, 122, 169, 0.18) 0%, transparent 60%),
    radial-gradient(120% 100% at 50% 100%, rgba(58, 42, 120, 0.25) 0%, transparent 70%),
    linear-gradient(180deg, #120e2b 0%, #08061a 85%, #05040e 100%);
}
.atmosphere::before,
.atmosphere::after {
  content: "";
  position: absolute;
  inset: 0;
  background-repeat: repeat;
}
.atmosphere::before {
  background-image:
    radial-gradient(1.1px 1.1px at 5% 15%,  #fff9, transparent 50%),
    radial-gradient(1.4px 1.4px at 28% 36%, #fff8, transparent 50%),
    radial-gradient(1px 1px at 62% 14%,     #fff6, transparent 50%),
    radial-gradient(1.2px 1.2px at 82% 28%, #fffb, transparent 50%),
    radial-gradient(1px 1px at 12% 68%,     #fff7, transparent 50%),
    radial-gradient(1.4px 1.4px at 45% 74%, #fff8, transparent 50%),
    radial-gradient(1.1px 1.1px at 76% 62%, #fff6, transparent 50%),
    radial-gradient(1.2px 1.2px at 92% 84%, #fff9, transparent 50%);
  opacity: 0.8;
  animation: twinkle 7s ease-in-out infinite alternate;
}
.atmosphere::after {
  background-image:
    radial-gradient(0.8px 0.8px at 20% 22%, #fff6, transparent 50%),
    radial-gradient(0.8px 0.8px at 55% 48%, #fff5, transparent 50%),
    radial-gradient(0.8px 0.8px at 85% 18%, #fff5, transparent 50%),
    radial-gradient(0.8px 0.8px at 33% 88%, #fff5, transparent 50%),
    radial-gradient(0.8px 0.8px at 70% 75%, #fff6, transparent 50%);
  opacity: 0.55;
  animation: twinkle 4.5s ease-in-out infinite alternate-reverse;
}
@keyframes twinkle {
  from { opacity: 0.35; }
  to   { opacity: 0.9; }
}
.moon {
  position: fixed;
  top: clamp(-50px, -2vw, 0px);
  right: clamp(-60px, -3vw, -20px);
  width: clamp(140px, 18vw, 280px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff1c4, #fdd887 60%, #e0a85f 100%);
  filter: blur(0.3px);
  box-shadow:
    0 0 80px rgba(255, 213, 143, 0.4),
    inset -20px -30px 60px rgba(0,0,0,0.25);
  z-index: -1;
  opacity: 0.85;
  pointer-events: none;
}

/* ---------- Header ---------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition: background var(--t-base) var(--ease), border-color var(--t-base) var(--ease);
  border-bottom: 1px solid transparent;
}
.header.is-scrolled {
  background: rgba(8, 6, 26, 0.72);
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  border-bottom-color: var(--border-soft);
}
@media (max-width: 819px) {
  .header {
    background: rgba(8, 6, 26, 0.85);
    backdrop-filter: blur(14px) saturate(120%);
    -webkit-backdrop-filter: blur(14px) saturate(120%);
    border-bottom: 1px solid var(--border-soft);
  }
  .header.is-scrolled { background: rgba(8, 6, 26, 0.92); }
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-sm);
  padding-block: var(--sp-sm);
}
.brand {
  display: flex;
  align-items: center;
  gap: var(--sp-xs);
  font-family: "Fraunces", serif;
  font-size: var(--fs-md);
  color: var(--c-cream);
  letter-spacing: -0.01em;
}
.brand__mark {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 2px rgba(255, 178, 113, 0.35), 0 10px 24px rgba(0,0,0,0.4);
  transition: transform var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease);
}
.brand:hover .brand__mark {
  transform: rotate(-6deg) scale(1.03);
  box-shadow: 0 0 0 2px rgba(255, 178, 113, 0.6), var(--glow-warm);
}

.nav {
  display: none;
  align-items: center;
  gap: clamp(1rem, 2vw, 2rem);
}
.nav__list { display: flex; gap: clamp(1rem, 2vw, 2rem); list-style: none; margin: 0; padding: 0; }
.nav__list a {
  position: relative;
  color: var(--text-soft);
  font-size: var(--fs-sm);
  letter-spacing: 0.04em;
  padding-block: 6px;
}
.nav__list a::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 1px;
  background: var(--grad-sunset);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--t-base) var(--ease);
}
.nav__list a:hover, .nav__list a:focus-visible { color: var(--c-cream); }
.nav__list a:hover::after, .nav__list a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}
@media (min-width: 820px) { .nav { display: flex; } }

.menu-toggle {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--border-soft);
  background: var(--surface);
  color: var(--c-cream);
  transition: background var(--t-base) var(--ease),
              color var(--t-base) var(--ease),
              border-color var(--t-base) var(--ease),
              transform var(--t-base) var(--ease);
}
.menu-toggle:hover { transform: scale(1.05); border-color: var(--border-warm); }
.menu-toggle[aria-expanded="true"] {
  background: var(--grad-sunset);
  color: #1b0a1b;
  border-color: transparent;
}
@media (min-width: 820px) { .menu-toggle { display: none; } }

.drawer {
  position: fixed;
  inset: 0;
  padding: calc(80px + var(--sp-md)) var(--gutter) var(--sp-xl);
  background: rgba(8, 6, 26, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transform: translateY(-100%);
  transition: transform var(--t-base) var(--ease);
  z-index: 60;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.drawer.is-open { transform: translateY(0); }
.drawer__close {
  position: absolute;
  top: var(--sp-md);
  right: var(--gutter);
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--border-soft);
  background: var(--surface);
  color: var(--c-cream);
  font-size: 1.1rem;
  transition: background var(--t-base) var(--ease),
              border-color var(--t-base) var(--ease),
              transform var(--t-base) var(--ease);
}
.drawer__close:hover {
  border-color: var(--border-warm);
  transform: scale(1.05);
}
.drawer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-md); }
.drawer a {
  display: block;
  padding: var(--sp-xs) 0;
  font-family: "Fraunces", serif;
  font-size: clamp(1.6rem, 6vw, 2.5rem);
  color: var(--c-cream);
  border-bottom: 1px solid var(--border-soft);
  transition: color var(--t-base) var(--ease),
              padding-left var(--t-base) var(--ease),
              border-color var(--t-base) var(--ease);
}
.drawer a:hover {
  color: var(--c-amber-hot);
  padding-left: 10px;
  border-color: var(--border-warm);
}
.drawer a em { color: var(--c-amber-hot); font-style: italic; }
@media (min-width: 820px) { .drawer { display: none; } }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: calc(var(--sp-3xl) + 40px) var(--gutter) var(--sp-3xl);
  overflow: hidden;
  isolation: isolate;
}
.hero__backdrop {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}
.hero__slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  animation: hero-slideshow 24s infinite;
  transform: scale(1.1);
}
.hero__slide:nth-child(1) { animation-delay:  0s; }
.hero__slide:nth-child(2) { animation-delay:  6s; }
.hero__slide:nth-child(3) { animation-delay: 12s; }
.hero__slide:nth-child(4) { animation-delay: 18s; }
@keyframes hero-slideshow {
  0%      { opacity: 0; transform: scale(1.15); }
  6%, 20% { opacity: 1; transform: scale(1.05); }
  26%     { opacity: 0; transform: scale(1.02); }
  100%    { opacity: 0; }
}
.hero__veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(80% 70% at 50% 60%, rgba(8, 6, 26, 0.5), rgba(8, 6, 26, 0.92)),
    linear-gradient(180deg, rgba(8, 6, 26, 0.55) 0%, rgba(8, 6, 26, 0.3) 40%, rgba(8, 6, 26, 0.95) 100%);
}

.hero__inner {
  width: 100%;
  max-width: 1100px;
  text-align: center;
  display: grid;
  gap: var(--sp-lg);
  justify-items: center;
}
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
  font-size: var(--fs-xs);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--c-amber-hot);
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(8, 6, 26, 0.6);
  border: 1px solid var(--border-warm);
  backdrop-filter: blur(6px);
}
.hero__eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c-amber);
  box-shadow: 0 0 12px var(--c-amber);
  animation: pulse 2.2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.5; transform: scale(0.85); }
}

.hero__title {
  font-size: var(--fs-mega);
  line-height: 0.96;
  letter-spacing: -0.035em;
  font-weight: 400;
  max-width: 14ch;
  text-wrap: balance;
}
.hero__title .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(36px);
  filter: blur(6px);
  animation: word-in 1.2s var(--ease-out) forwards;
}
.hero__title .word:nth-child(1) { animation-delay: 0.15s; }
.hero__title .word:nth-child(2) { animation-delay: 0.30s; }
.hero__title .word:nth-child(3) { animation-delay: 0.45s; }
.hero__title .word:nth-child(4) { animation-delay: 0.60s; }
.hero__title .word:nth-child(5) { animation-delay: 0.75s; }
@keyframes word-in {
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}
.hero__title em {
  font-style: italic;
  background: var(--grad-sunset);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 10px 40px rgba(230, 122, 169, 0.4));
}

.hero__lead {
  font-size: var(--fs-md);
  color: var(--text-soft);
  max-width: 54ch;
  margin: 0 auto;
  opacity: 0;
  animation: fade-up 1s 1s var(--ease-out) forwards;
}
@keyframes fade-up {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--sp-sm);
  opacity: 0;
  animation: fade-up 1s 1.15s var(--ease-out) forwards;
}

.hero__scroll {
  position: absolute;
  bottom: clamp(1rem, 4vw, 2rem);
  left: 50%;
  transform: translateX(-50%);
  display: grid;
  place-items: center;
  gap: 10px;
  color: var(--text-mute);
  font-size: var(--fs-xs);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  opacity: 0;
  animation: fade-up 1s 1.6s var(--ease-out) forwards;
}
.hero__scroll-line {
  width: 1px;
  height: 56px;
  background: linear-gradient(180deg, transparent, var(--c-amber-hot));
  position: relative;
  overflow: hidden;
}
.hero__scroll-line::after {
  content: "";
  position: absolute;
  inset: -50% 0 auto 0;
  height: 50%;
  background: linear-gradient(180deg, transparent, var(--c-amber-hot));
  animation: scroll-hint 2.4s ease-in-out infinite;
}
@keyframes scroll-hint {
  0%   { transform: translateY(-120%); }
  100% { transform: translateY(320%); }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.9rem clamp(1.1rem, 2vw, 1.8rem);
  min-height: 48px;
  border-radius: 999px;
  font-weight: 500;
  font-size: var(--fs-sm);
  letter-spacing: 0.04em;
  transition: transform var(--t-base) var(--ease),
              box-shadow var(--t-base) var(--ease),
              background var(--t-base) var(--ease),
              color var(--t-base) var(--ease),
              border-color var(--t-base) var(--ease);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  white-space: nowrap;
  will-change: transform;
}
.btn__arrow {
  font-size: 0.95em;
  line-height: 1;
  transition: transform var(--t-base) var(--ease);
  display: inline-block;
}
.btn:hover .btn__arrow { transform: translateX(6px); }

.btn--primary {
  background: var(--grad-sunset);
  color: #1b0a1b;
  box-shadow: 0 14px 36px rgba(230, 122, 169, 0.35),
              0 0 0 1px rgba(255, 178, 113, 0.25);
}
.btn--primary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.5) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform var(--t-slow) var(--ease);
  z-index: -1;
}
.btn--primary:hover {
  transform: translateY(-2px);
  color: var(--c-cream);
  box-shadow: 0 22px 48px rgba(230, 122, 169, 0.5),
              0 0 0 1px rgba(255, 178, 113, 0.5),
              0 0 60px rgba(255, 178, 113, 0.25);
}
.btn--primary:hover::before { transform: translateX(100%); }

.btn--ghost {
  background: rgba(8, 6, 26, 0.55);
  color: var(--c-cream);
  border: 1px solid var(--border-soft);
  backdrop-filter: blur(8px);
}
.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--border-warm);
  transform: translateY(-2px);
}

/* ---------- Gallery ---------- */
.gallery-section { position: relative; }

.gallery {
  display: grid;
  gap: var(--sp-md);
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .gallery { grid-template-columns: repeat(2, 1fr); gap: var(--sp-lg); }
}
@media (min-width: 1000px) {
  .gallery {
    grid-template-columns: repeat(6, 1fr);
    grid-auto-rows: minmax(240px, auto);
  }
  .gallery__card--1 { grid-column: span 4; grid-row: span 2; }
  .gallery__card--2 { grid-column: span 2; }
  .gallery__card--3 { grid-column: span 2; }
  .gallery__card--4 { grid-column: span 3; }
  .gallery__card--5 { grid-column: span 3; }
  .gallery__card--6 { grid-column: span 3; min-height: 340px; }
  .gallery__card--7 { grid-column: span 3; min-height: 340px; }
}

.gallery__card {
  position: relative;
  display: block;
  width: 100%;
  min-height: 320px;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--c-night);
  border: 1px solid var(--border-soft);
  text-align: left;
  cursor: pointer;
  isolation: isolate;
  transition: transform var(--t-base) var(--ease-out),
              box-shadow var(--t-base) var(--ease-out),
              border-color var(--t-base) var(--ease-out);
  will-change: transform;
}
.gallery__card:hover, .gallery__card:focus-visible {
  transform: translateY(-6px);
  box-shadow:
    var(--sh-lg),
    0 0 40px rgba(230, 122, 169, 0.18),
    0 0 80px rgba(255, 178, 113, 0.08);
  border-color: var(--border-warm);
}
.gallery__media {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}
.gallery__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow) var(--ease-out);
}
.gallery__card:hover .gallery__media img { transform: scale(1.06); }
.gallery__veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(8, 6, 26, 0) 30%, rgba(8, 6, 26, 0.9) 100%),
    linear-gradient(135deg, rgba(230, 122, 169, 0) 60%, rgba(230, 122, 169, 0.2) 100%);
  transition: opacity var(--t-base) var(--ease);
}
.gallery__card:hover .gallery__veil { opacity: 0.85; }

.gallery__body {
  position: absolute;
  inset: auto 0 0 0;
  padding: var(--sp-lg);
  display: grid;
  gap: var(--sp-xs);
  transition: transform var(--t-base) var(--ease-out);
}
.gallery__card:hover .gallery__body { transform: translateY(-4px); }
.gallery__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-xs);
  font-size: var(--fs-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-amber-hot);
}
.gallery__meta span + span::before {
  content: "·";
  margin-right: var(--sp-xs);
  color: var(--text-mute);
}
.gallery__title {
  font-family: "Fraunces", serif;
  font-size: clamp(1.4rem, 1rem + 1.8vw, 2.2rem);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--c-cream);
  max-width: 18ch;
}
.gallery__chip {
  position: absolute;
  top: var(--sp-md);
  left: var(--sp-md);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: var(--fs-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  background: rgba(8, 6, 26, 0.8);
  backdrop-filter: blur(8px);
  color: var(--c-cream);
  border: 1px solid var(--border-soft);
}
.gallery__chip--3d {
  background: var(--grad-sunset);
  color: #1b0a1b;
  border-color: transparent;
}
.gallery__chip i { font-size: 0.9em; line-height: 1; }

.gallery__card--1 .gallery__title { font-size: clamp(1.8rem, 1rem + 3vw, 3rem); }

/* ---------- About ---------- */
.about {
  position: relative;
}
.about__inner {
  display: grid;
  gap: var(--sp-xl);
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 860px) {
  .about__inner { grid-template-columns: 0.9fr 1.1fr; gap: clamp(3rem, 6vw, 6rem); }
}
.about__portrait {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--sh-lg), 0 0 0 1px var(--border-soft);
}
.about__portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.about__portrait::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(8, 6, 26, 0.35) 100%);
  pointer-events: none;
  transition: opacity var(--t-base) var(--ease);
}
.about__portrait img {
  transition: transform var(--t-slow) var(--ease);
}
.about__portrait:hover img { transform: scale(1.02); }

.about__body { display: grid; gap: var(--sp-md); }
.about__body p { font-size: var(--fs-md); color: var(--text-soft); margin: 0; }
.about__body p:first-of-type {
  font-size: var(--fs-lg);
  color: var(--c-cream);
  line-height: 1.45;
  letter-spacing: -0.005em;
}

.about__stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: var(--sp-md);
  margin-top: var(--sp-lg);
  padding-top: var(--sp-md);
  border-top: 1px solid var(--border-soft);
}
.about__stat strong {
  display: block;
  font-family: "Fraunces", serif;
  font-size: var(--fs-xl);
  color: var(--c-amber-hot);
  line-height: 1;
}
.about__stat span {
  font-size: var(--fs-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin-top: var(--sp-2xs);
  display: block;
}

/* ---------- Contact ---------- */
.contact { position: relative; text-align: center; }
.contact__headline {
  font-size: var(--fs-mega);
  line-height: 0.96;
  margin-bottom: var(--sp-md);
  max-width: 14ch;
  margin-inline: auto;
}
.contact__headline em {
  font-style: italic;
  background: var(--grad-sunset);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.contact__lead {
  color: var(--text-soft);
  max-width: 48ch;
  margin: 0 auto var(--sp-xl);
  font-size: var(--fs-md);
}
.contact__links {
  display: grid;
  gap: var(--sp-sm);
  grid-template-columns: 1fr;
  max-width: 760px;
  margin: 0 auto;
}
@media (min-width: 560px) { .contact__links { grid-template-columns: repeat(2, 1fr); } }

.contact-card {
  display: flex;
  align-items: center;
  gap: var(--sp-md);
  padding: var(--sp-md);
  text-align: left;
  background: var(--grad-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-md);
  color: inherit;
  transition: transform var(--t-base) var(--ease-out),
              border-color var(--t-base) var(--ease-out),
              background var(--t-base) var(--ease-out),
              box-shadow var(--t-base) var(--ease-out);
  min-height: 78px;
}
.contact-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-warm);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 10px 30px rgba(230, 122, 169, 0.18);
  color: inherit;
}
.contact-card__icon {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--grad-sunset);
  color: #1b0a1b;
  transition: transform var(--t-base) var(--ease-out);
}
.contact-card:hover .contact-card__icon {
  transform: rotate(-4deg) scale(1.06);
}
.contact-card__icon i { font-size: 20px; line-height: 1; }
.contact-card__body { min-width: 0; }
.contact-card__label {
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-mute);
  display: block;
}
.contact-card__value {
  font-family: "Fraunces", serif;
  font-size: var(--fs-md);
  color: var(--c-cream);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}

/* ---------- Dogs running strip ---------- */
.dogs-run {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 110px;
  pointer-events: none;
}
.dogs-run__img {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 100%;
  width: auto;
  max-width: none;
  will-change: transform;
  animation: dogs-run-pass 8s linear infinite;
}
@keyframes dogs-run-pass {
  0%   { transform: translateX(100vw); }
  100% { transform: translateX(-100%); }
}
@media (max-width: 640px) {
  .dogs-run { height: 80px; }
  .dogs-run__img { animation-duration: 5.5s; }
}
@media (prefers-reduced-motion: reduce) {
  .dogs-run__img {
    animation-duration: 17s !important;
    animation-iteration-count: infinite !important;
  }
}

/* ---------- Footer ---------- */
.footer {
  position: relative;
  padding-block: var(--sp-xl);
  border-top: 1px solid var(--border-soft);
  text-align: center;
  color: var(--text-mute);
  font-size: var(--fs-sm);
}
.footer__signature {
  margin-top: 10px;
  font-size: 0.85em;
  color: var(--text-mute);
  letter-spacing: 0.03em;
}
.footer__signature a {
  color: var(--c-amber-hot);
  font-weight: 500;
  transition: color var(--t-fast) var(--ease);
}
.footer__signature a:hover { color: var(--c-cream); }
.footer__heart {
  display: inline-block;
  animation: heart-beat 1.6s ease-in-out infinite;
  transform-origin: center;
}
@keyframes heart-beat {
  0%, 100% { transform: scale(1); }
  15%, 45% { transform: scale(1.25); }
  30%      { transform: scale(0.95); }
}
@media (prefers-reduced-motion: reduce) {
  .footer__heart { animation: none; }
}

.footer__tag {
  font-family: "Fraunces", serif;
  font-style: italic;
  color: var(--c-amber-hot);
  font-size: var(--fs-md);
  display: block;
  margin-bottom: var(--sp-xs);
}
.footer p { margin: 0; }

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  filter: blur(4px);
  transition: opacity var(--t-slow) var(--ease-out),
              transform var(--t-slow) var(--ease-out),
              filter var(--t-slow) var(--ease-out);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; filter: none; transition: none; }
  .hero__slide { animation: none; opacity: 0.35; }
  .hero__slide:nth-child(1) { opacity: 0.6; }
  .hero__title .word { opacity: 1; transform: none; filter: none; animation: none; }
  .hero__lead, .hero__cta, .hero__scroll { opacity: 1; animation: none; }
}

/* ==================================================================
   MODAL — unified viewer: photos + 3D
   ================================================================== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  background: rgba(8, 6, 26, 0.96);
  backdrop-filter: blur(22px) saturate(130%);
  -webkit-backdrop-filter: blur(22px) saturate(130%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--t-base) var(--ease), visibility 0s var(--t-base);
}
.modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity var(--t-base) var(--ease), visibility 0s;
}
.modal__stage {
  transform: scale(0.97) translateY(10px);
  transition: transform var(--t-base) var(--ease-out);
}
.modal.is-open .modal__stage { transform: scale(1) translateY(0); }

.modal__close {
  position: fixed;
  top: clamp(0.75rem, 2vw, 1.5rem);
  right: clamp(0.75rem, 2vw, 1.5rem);
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(8, 6, 26, 0.85);
  color: var(--c-cream);
  border: 1px solid var(--border-soft);
  backdrop-filter: blur(10px);
  z-index: 20;
  transition: transform var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}
.modal__close:hover { transform: rotate(90deg); border-color: var(--border-warm); }

.modal__nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  display: none;
  place-items: center;
  border-radius: 50%;
  background: rgba(8, 6, 26, 0.75);
  color: var(--c-cream);
  border: 1px solid var(--border-soft);
  backdrop-filter: blur(10px);
  z-index: 20;
  transition: background var(--t-base) var(--ease),
              border-color var(--t-base) var(--ease),
              color var(--t-base) var(--ease);
}
.modal__nav:hover {
  background: rgba(255, 178, 113, 0.22);
  border-color: var(--border-warm);
  color: var(--c-amber-hot);
}
.modal__nav--prev { left: var(--sp-sm); }
.modal__nav--next { right: var(--sp-sm); }
@media (min-width: 720px) { .modal__nav { display: grid; } }

.modal__stage {
  position: relative;
  width: 100%;
  max-width: 1400px;
  margin: auto;
  padding: calc(env(safe-area-inset-top, 0px) + var(--sp-lg)) var(--gutter) var(--sp-lg);
  display: grid;
  gap: var(--sp-lg);
  grid-template-columns: 1fr;
  align-content: start;
  max-height: 100dvh;
  overflow-y: auto;
}
@media (min-width: 960px) {
  .modal__stage {
    grid-template-columns: 1.4fr 0.9fr;
    align-items: center;
    max-height: 100dvh;
    overflow: hidden;
  }
}

.modal__viewport {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--c-night-deep);
  border: 1px solid var(--border-soft);
  box-shadow: var(--sh-lg);
  aspect-ratio: 16 / 10;
}
@media (min-width: 960px) {
  .modal__viewport { aspect-ratio: auto; height: 78dvh; }
}

.modal__tabs {
  position: absolute;
  top: var(--sp-sm);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(8, 6, 26, 0.8);
  border: 1px solid var(--border-soft);
  backdrop-filter: blur(10px);
  z-index: 5;
}
.modal__tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: var(--fs-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-soft);
  min-height: 36px;
  transition: background var(--t-base) var(--ease),
              color var(--t-base) var(--ease),
              transform var(--t-base) var(--ease);
}
.modal__tab i {
  font-size: 14px;
  line-height: 1;
  transition: transform var(--t-base) var(--ease);
}
.modal__tab:not(.is-active):not(:disabled):hover {
  color: var(--c-cream);
  background: rgba(255, 255, 255, 0.06);
}
.modal__tab.is-active {
  background: var(--grad-sunset);
  color: #1b0a1b;
}
.modal__tab.is-active i { transform: scale(1.08); }
.modal__tab:disabled { opacity: 0.35; cursor: not-allowed; }

/* Photos pane */
.modal__photos {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transform: scale(0.99);
  transition: opacity var(--t-base) var(--ease),
              transform var(--t-base) var(--ease),
              visibility 0s var(--t-base);
}
.modal__photos.is-active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
  transition: opacity var(--t-base) var(--ease),
              transform var(--t-base) var(--ease),
              visibility 0s;
}
.modal__photo {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.015);
  transition: opacity var(--t-base) var(--ease),
              transform var(--t-slow) var(--ease-out);
}
.modal__photo.is-active { opacity: 1; transform: scale(1); }
.modal__photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: var(--c-night-deep);
}

.modal__dots {
  position: absolute;
  inset: auto 0 var(--sp-sm) 0;
  display: flex;
  justify-content: center;
  gap: 6px;
  z-index: 5;
}
.modal__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 245, 214, 0.3);
  transition: width var(--t-base) var(--ease),
              background var(--t-base) var(--ease),
              transform var(--t-base) var(--ease);
}
.modal__dot:hover {
  background: rgba(255, 245, 214, 0.7);
  transform: scale(1.3);
}
.modal__dot.is-active {
  width: 24px;
  background: var(--c-amber-hot);
  border-radius: 4px;
  transform: none;
}

.modal__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(8, 6, 26, 0.7);
  color: var(--c-cream);
  border: 1px solid var(--border-soft);
  backdrop-filter: blur(8px);
  z-index: 5;
  transition: transform var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}
.modal__arrow:hover { background: rgba(255, 178, 113, 0.25); }
.modal__arrow--prev { left: var(--sp-sm); }
.modal__arrow--next { right: var(--sp-sm); }

/* 3D pane — flex column: stage on top, picker below on mobile */
.modal__viewer {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(120% 90% at 50% 20%, #5a42a8 0%, #3a2a78 45%, #241a55 100%);
  opacity: 0;
  visibility: hidden;
  transform: scale(0.99);
  transition: opacity var(--t-base) var(--ease),
              transform var(--t-base) var(--ease),
              visibility 0s var(--t-base);
}
.modal__viewer.is-active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
  transition: opacity var(--t-base) var(--ease),
              transform var(--t-base) var(--ease),
              visibility 0s;
}

.modal__viewer-stage {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}
.modal__viewer canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  touch-action: none;
}

.modal__loading {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: var(--sp-sm);
  background: rgba(13, 10, 36, 0.9);
  color: var(--text-soft);
  font-size: var(--fs-sm);
  z-index: 4;
  transition: opacity var(--t-base) var(--ease);
}
.modal__loading.is-hidden { opacity: 0; pointer-events: none; }
.modal__spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(255,255,255,0.15);
  border-top-color: var(--c-amber-hot);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.modal__hint {
  position: absolute;
  inset: auto 0 var(--sp-md) 0;
  text-align: center;
  font-size: var(--fs-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-soft);
  pointer-events: none;
  z-index: 3;
  transition: opacity var(--t-slow) var(--ease);
}
.modal__hint.is-hidden { opacity: 0; }
.modal__hint kbd {
  display: inline-block;
  padding: 4px 10px;
  margin: 0 4px;
  border-radius: 8px;
  background: rgba(8, 6, 26, 0.8);
  border: 1px solid var(--border-soft);
  color: var(--c-cream);
  font-family: inherit;
  letter-spacing: 0.08em;
}

.modal__viewer-ctrls {
  position: absolute;
  top: var(--sp-sm);
  right: var(--sp-sm);
  display: grid;
  gap: var(--sp-2xs);
  z-index: 5;
}
.modal__viewer-ctrl {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(8, 6, 26, 0.8);
  color: var(--c-cream);
  border: 1px solid var(--border-soft);
  backdrop-filter: blur(8px);
  transition: background var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.modal__viewer-ctrl:hover {
  background: rgba(255, 178, 113, 0.25);
  transform: translateY(-1px);
}
.modal__viewer-ctrl i { font-size: 16px; line-height: 1; }

.modal__fallback {
  position: absolute;
  inset: 0;
  display: none;
  padding: var(--sp-lg);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--sp-sm);
  text-align: center;
  color: var(--text-soft);
  font-size: var(--fs-sm);
  z-index: 6;
}
.modal__viewer.is-unsupported .modal__fallback { display: flex; }

/* Multi-schematic picker.
   Mobile: sits below the canvas as a horizontal scroll strip, so it never
   overlaps the 3D build. Desktop: floats at the bottom of the canvas. */
.modal__picker {
  flex: 0 0 auto;
  display: flex;
  gap: var(--sp-xs);
  padding: var(--sp-sm);
  overflow-x: auto;
  overflow-y: hidden;
  background: rgba(8, 6, 26, 0.55);
  border-top: 1px solid var(--border-soft);
  backdrop-filter: blur(10px);
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
}
.modal__picker:empty { display: none; }
.modal__picker::-webkit-scrollbar { height: 4px; }
.modal__picker::-webkit-scrollbar-thumb {
  background: rgba(255, 245, 214, 0.2);
  border-radius: 2px;
}
.modal__picker-btn {
  flex: 0 0 auto;
  scroll-snap-align: start;
  padding: 8px 16px;
  min-height: 38px;
  border-radius: 999px;
  font-size: var(--fs-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-soft);
  border: 1px solid var(--border-soft);
  transition: background var(--t-fast) var(--ease),
              color var(--t-fast) var(--ease),
              border-color var(--t-fast) var(--ease),
              transform var(--t-fast) var(--ease);
  white-space: nowrap;
}
.modal__picker-btn:hover {
  color: var(--c-cream);
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--border-warm);
}
.modal__picker-btn.is-active {
  background: var(--grad-sunset);
  color: #1b0a1b;
  border-color: transparent;
  transform: scale(1.03);
}

@media (min-width: 960px) {
  .modal__picker {
    position: absolute;
    inset: auto 0 var(--sp-md) 0;
    padding: 0 var(--sp-md);
    background: transparent;
    border-top: 0;
    backdrop-filter: none;
    overflow: visible;
    justify-content: center;
    flex-wrap: wrap;
    z-index: 5;
    pointer-events: none;
    flex: unset;
  }
  .modal__picker-btn {
    pointer-events: auto;
    background: rgba(8, 6, 26, 0.82);
    backdrop-filter: blur(10px);
  }
}

/* Side panel */
.modal__side {
  display: grid;
  gap: var(--sp-md);
  align-content: start;
  padding: var(--sp-md) 0;
}
@media (min-width: 960px) {
  .modal__side {
    max-height: 78dvh;
    overflow-y: auto;
    padding-right: var(--sp-sm);
  }
}
.modal__eyebrow {
  font-size: var(--fs-xs);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--c-amber-hot);
}
.modal__title {
  font-family: "Fraunces", serif;
  font-size: clamp(1.8rem, 1.2rem + 3vw, 3.2rem);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--c-cream);
}
.modal__desc { color: var(--text-soft); font-size: var(--fs-md); }
.modal__facts {
  display: grid;
  gap: var(--sp-xs);
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  margin-top: var(--sp-sm);
}
.modal__fact {
  padding: var(--sp-sm);
  background: var(--grad-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-md);
}
.modal__fact strong {
  display: block;
  font-family: "Fraunces", serif;
  color: var(--c-cream);
  font-size: var(--fs-lg);
  line-height: 1;
}
.modal__fact span {
  font-size: var(--fs-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-mute);
}

/* ---------- 240px safety net ---------- */
@media (max-width: 340px) {
  :root { --gutter: 0.75rem; }
  .brand span { display: none; }
  .hero__cta { flex-direction: column; align-items: stretch; width: 100%; }
  .btn { justify-content: center; }
  .modal__tabs { font-size: 10px; }
  .modal__tab { padding: 6px 10px; }
  .contact-card__value { font-size: var(--fs-sm); }
}
