/* ==========================================================================
   Home page (design.md §8): depth hero with the drawn dome, moodboard, steps, Instagram
   ========================================================================== */

/* ---- Depth hero (7b-1) --------------------------------------------------- */
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  min-height: 88vh;
  min-height: 88svh;
  overflow: hidden;
  background: #15162A;
  color: #FBF8F3;
}
@media (min-width: 48em) { .hero { min-height: 100vh; min-height: 100svh; } }
@media (min-width: 64em) and (max-height: 760px) { .hero { min-height: 90vh; min-height: 90svh; } }
@media (orientation: landscape) and (max-height: 500px) { .hero { min-height: 100vh; min-height: 100svh; height: auto; } }

.hero-media {
  position: absolute;
  inset: -24px 0;          /* room for parallax travel without showing edges */
  z-index: -3;
  background-size: cover;
  background-position: center;
  will-change: transform;
}
@media (min-width: 64em) { .hero-media { inset: -60px 0; } }
.hero-slides, .hero-slide, .hero-slide img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-slide { opacity: 0; transition: opacity 1.2s ease; }
.hero-slide.is-active { opacity: 1; }
.hero-slide img {
  object-fit: cover;
  object-position: var(--pos-sm, 50% 50%);
  transform-origin: var(--pos-sm, 50% 50%);
}
@media (min-aspect-ratio: 1/1) { .hero-slide img { object-position: var(--pos, 50% 50%); transform-origin: var(--pos, 50% 50%); } }
@media (prefers-reduced-motion: no-preference) {
  .js .hero-slide img { transform: scale(1); transition: transform 7s linear; }
  .js .hero-slide.is-kb img { transform: scale(1.08); }
}

.hero-scrim {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to top, rgba(14, 15, 30, .72) 0%, rgba(14, 15, 30, .35) 38%, rgba(14, 15, 30, 0) 62%),
    linear-gradient(to bottom, rgba(14, 15, 30, .45) 0%, rgba(14, 15, 30, 0) 22%);
}
@media (min-width: 48em) {
  .hero-scrim {
    background:
      linear-gradient(to top right, rgba(14, 15, 30, .7) 0%, rgba(14, 15, 30, .28) 42%, rgba(14, 15, 30, 0) 70%),
      linear-gradient(to bottom, rgba(14, 15, 30, .4) 0%, rgba(14, 15, 30, 0) 20%);
  }
}

/* Bokeh layer: pure CSS radial gradients, slow float */
.bokeh { position: absolute; inset: 0; z-index: -2; pointer-events: none; overflow: hidden; }
.bokeh span {
  --size: calc(60px + var(--b) * 9px);
  position: absolute;
  width: var(--size); height: var(--size);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(251, 236, 210, .55) 0%, rgba(251, 236, 210, 0) 70%);
  opacity: .12;
  filter: blur(2px);
}
.bokeh span:nth-child(3n) { opacity: .18; }
.bokeh span:nth-child(4n) { opacity: .09; }
.bokeh span:nth-child(1) { top: 12%; left: 8%; }
.bokeh span:nth-child(2) { top: 28%; left: 72%; background: radial-gradient(circle, rgba(185, 166, 218, .6), rgba(185, 166, 218, 0) 70%); }
.bokeh span:nth-child(3) { top: 58%; left: 84%; }
.bokeh span:nth-child(4) { top: 18%; left: 44%; }
.bokeh span:nth-child(5) { top: 70%; left: 30%; background: radial-gradient(circle, rgba(185, 166, 218, .6), rgba(185, 166, 218, 0) 70%); }
.bokeh span:nth-child(6) { top: 40%; left: 20%; }
.bokeh span:nth-child(7) { top: 8%; left: 88%; }
.bokeh span:nth-child(8) { top: 48%; left: 56%; background: radial-gradient(circle, rgba(185, 166, 218, .6), rgba(185, 166, 218, 0) 70%); }
.bokeh span:nth-child(9) { top: 80%; left: 64%; }
.bokeh span:nth-child(10) { top: 34%; left: 92%; }
.bokeh span:nth-child(n+6) { display: none; } /* 5 dots on phones */
@media (min-width: 48em) { .bokeh span:nth-child(n+6) { display: block; } }
@media (prefers-reduced-motion: no-preference) {
  .bokeh span { animation: float calc(20s + var(--b) * 2s) ease-in-out infinite alternate; animation-delay: calc(var(--b) * -3s); }
}
@keyframes float {
  from { transform: translate3d(-10px, 12px, 0); }
  to { transform: translate3d(14px, -20px, 0); }
}

.hero-content {
  position: relative;
  padding-top: calc(var(--header-h) + var(--topbar-h) + 32px);
  padding-bottom: calc(var(--stack-lg) + 40px);
}
.eyebrow--light { color: #F4EEE5; }
.hero-title {
  font-size: var(--fs-hero);
  font-weight: 300;
  line-height: 1.04;
  color: #FBF8F3;
  text-shadow: 0 2px 24px rgba(0, 0, 0, .25);
}
.hero-title em { color: #F6CF9E; }
.hero-lead { max-width: 24em; margin-top: var(--stack-sm); font-size: var(--fs-lead); color: rgba(251, 248, 243, .9); }
.hero-title .l { display: block; } /* fixed phrase breaks: no reflow when the web font swaps in */
@media (min-width: 48em) { .hero-lead { max-width: min(60%, 25em); } }
.hero .btn-row { margin-top: var(--stack-md); }

.scroll-cue {
  position: absolute;
  left: 50%; bottom: 10px;
  display: grid; place-items: center;
  width: var(--tap); height: 56px;
  margin-left: calc(var(--tap) / -2);
  color: #FBF8F3;
}
.scroll-cue-line { width: 1px; height: 40px; background: linear-gradient(rgba(251, 248, 243, 0), rgba(251, 248, 243, .9)); }
@media (prefers-reduced-motion: no-preference) {
  .scroll-cue-line { animation: cue 2.4s ease-in-out infinite; transform-origin: top; }
}
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }
@media (max-width: 29.99em) { .scroll-cue { display: none; } }

/* CSS scroll-driven parallax where supported (JS loop switches itself off) */
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    .hero-media { animation: px-media linear both; animation-timeline: scroll(root); animation-range: 0 100vh; }
    .bokeh { animation: px-bokeh linear both; animation-timeline: scroll(root); animation-range: 0 100vh; }
  }
}
@keyframes px-media { to { transform: translate3d(0, var(--px-max, 24px), 0); } }
@keyframes px-bokeh { to { transform: translate3d(0, calc(var(--px-max, 24px) * -1), 0); } }
.hero { --px-max: 24px; }
@media (min-width: 64em) { .hero { --px-max: 60px; } }

/* ---- Welcome -------------------------------------------------------------- */
.welcome-inner { text-align: center; }
.welcome .eyebrow::after { content: ""; flex: none; width: 32px; height: 1px; background: currentColor; opacity: .7; }
.welcome-copy { margin-top: var(--stack-md); color: var(--c-ink-soft); font-size: var(--fs-lead); text-align: left; }
@media (min-width: 48em) { .welcome-copy { text-align: center; } }
.mark--signature { width: clamp(120px, 34vw, 140px); }

/* ---- Moodboard wall (7b-4) ----------------------------------------------- */
.mood-wall {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--grid-gap);
  align-items: start;
  padding-block: 24px;
}
.mood-col { position: relative; display: grid; gap: var(--grid-gap); will-change: transform; }
.mood-col:nth-child(even) { margin-top: 32px; }
.mood-item { overflow: hidden; border-radius: var(--radius); background: var(--c-greige); }
.mood-item img { width: 100%; height: auto; transition: transform .7s var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .mood-item:hover img { transform: scale(1.04); } }
.mood-chip {
  position: absolute;
  z-index: 2;
  top: -14px; left: 12px;
  padding: 4px 14px 6px;
  border-radius: 999px;
  background: var(--c-ivory);
  color: var(--c-accent-deep);
  font-family: var(--ff-script);
  font-size: 1.35rem;
  line-height: 1.1;
  box-shadow: 0 4px 14px var(--c-shadow);
  transition: background-color var(--dur-theme);
}
@media (min-width: 48em) {
  .mood-wall { grid-template-columns: repeat(3, 1fr); }
  .mood-col:nth-child(even) { margin-top: 0; }
  .mood-col:nth-child(2) { margin-top: 56px; }
  /* 4th column becomes a finishing strip of three across */
  .mood-col:nth-child(4) { grid-column: 1 / -1; grid-template-columns: repeat(3, 1fr); margin-top: calc(var(--drift-max) * 2 + 16px); }
  .mood-col:nth-child(4) .mood-item img { aspect-ratio: 4 / 3; object-fit: cover; }
}
@media (min-width: 100em) {
  .mood-wall { grid-template-columns: repeat(4, 1fr); }
  .mood-col:nth-child(4) { grid-column: auto; grid-template-columns: 1fr; margin-top: 56px; }
  .mood-col:nth-child(4) .mood-item img { aspect-ratio: auto; }
}
/* Drift: CSS view timeline where supported, otherwise the rAF loop in motion.js */
.moodboard { --drift-max: 16px; }
@media (min-width: 64em) { .moodboard { --drift-max: 40px; } }
.mood-col[data-drift="-1"] { --dir: -1; }
.mood-col[data-drift="1"] { --dir: 1; }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .mood-col { animation: drift linear both; animation-timeline: view(); animation-range: cover; }
  }
}
@keyframes drift {
  from { transform: translate3d(0, calc(var(--drift-max) * var(--dir) * -1), 0); }
  to { transform: translate3d(0, calc(var(--drift-max) * var(--dir)), 0); }
}
.moodboard .center { margin-top: var(--stack-lg); }

/* ---- Experience steps ----------------------------------------------------- */
.steps { list-style: none; display: grid; gap: var(--stack-md); counter-reset: step; }
.step { position: relative; padding-left: 64px; }
.step-num {
  position: absolute; left: 0; top: -4px;
  font-family: var(--ff-display);
  font-size: 2.4rem;
  font-style: italic;
  line-height: 1;
  color: var(--c-accent);
}
.step-title { margin-bottom: 6px; font-size: 1.45rem; }
.step p { color: var(--c-ink-soft); font-size: .98rem; }
@media (min-width: 48em) { .steps { grid-template-columns: repeat(2, 1fr); gap: var(--stack-lg) var(--stack-md); } }
@media (min-width: 64em) {
  .steps { grid-template-columns: repeat(5, 1fr); gap: var(--stack-md); position: relative; padding-top: 18px; }
  .steps::before {
    content: ""; position: absolute; top: 40px; left: 10%; right: 10%; height: 1px;
    background: var(--c-accent); opacity: .35;
    transform: scaleX(var(--draw, 1)); transform-origin: left;
  }
  .step { padding-left: 0; text-align: center; }
  .step-num { position: relative; display: inline-grid; place-items: center; width: 64px; height: 64px; margin-bottom: 16px; border-radius: 50%; background: var(--c-linen); border: 1px solid var(--c-line); font-size: 1.8rem; top: 0; transition: background-color var(--dur-theme); }
}
@media (min-width: 64em) and (prefers-reduced-motion: no-preference) {
  .js .steps::before { transform: scaleX(0); transition: transform 1.6s var(--ease-out) .2s; }
  .js .steps.is-drawn::before { transform: scaleX(1); }
}

/* ---- Testimonials (espresso band) ---------------------------------------- */
.testimonials { overflow: hidden; }
.testimonials h2 em { color: #E7C987; }
.testimonials .eyebrow { color: #E7D6B8; }
.mark--watermark {
  position: absolute;
  top: 50%; left: 50%;
  width: min(70vw, 520px);
  margin: 0;
  transform: translate(-50%, -50%);
  opacity: .04;
  pointer-events: none;
}
.rating { display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; margin-top: var(--stack-sm); color: var(--c-on-dark-soft); letter-spacing: .08em; }
.stars { display: inline-flex; gap: 2px; color: #E7C987; }
.stars .icon { width: 16px; height: 16px; }
.count { font-variant-numeric: tabular-nums; color: var(--c-on-dark); font-weight: 400; }
.quote blockquote p {
  font-family: var(--ff-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.3rem, 1.05rem + 1.1vw, 1.95rem);
  line-height: 1.45;
  color: var(--c-on-dark);
  max-width: 46ch;
  margin-inline: auto;
}
.quote-cite { display: grid; gap: 2px; margin-top: var(--stack-md); }
.quote-name { font-size: .82rem; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; }
.quote-meta { font-size: .82rem; color: var(--c-on-dark-soft); }
.review-links { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 24px; margin-top: var(--stack-lg); }
.review-links .link-light { display: inline-flex; align-items: center; min-height: var(--tap); }
.testimonials .carousel-btn { color: var(--c-on-dark); }
.testimonials :focus-visible { outline-color: #E7C987; }

/* ---- Style Guide teaser ---------------------------------------------------- */
.style-layout { display: grid; gap: var(--stack-lg); }
.style-photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--grid-gap); align-items: start; }
.style-photo { overflow: hidden; border-radius: var(--radius); background: var(--c-blush); }
.style-photo:nth-child(2) { margin-top: 32px; }
.style-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.swatches { list-style: none; display: flex; gap: 10px; margin-top: var(--stack-md); }
.swatches li { width: 36px; height: 36px; border-radius: 50%; background: var(--sw); border: 1px solid var(--c-line); box-shadow: inset 0 0 0 3px var(--c-greige); transition: box-shadow var(--dur-theme); }
.style-text .link-arrow { margin-top: var(--stack-sm); }
@media (min-width: 64em) { .style-layout { grid-template-columns: 7fr 5fr; align-items: center; } }

/* ---- Instagram strip ------------------------------------------------------- */
.insta-grid { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
@media (min-width: 48em) { .insta-grid { grid-template-columns: repeat(6, 1fr); gap: var(--grid-gap); } }
.insta-grid a { position: relative; display: block; overflow: hidden; border-radius: var(--radius); background: var(--c-greige); }
.insta-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform .7s var(--ease-out); }
.insta-hover { position: absolute; inset: 0; display: grid; place-items: center; background: var(--c-overlay); color: #FBF8F3; opacity: 0; transition: opacity .4s; }
.insta-hover .icon { width: 28px; height: 28px; }
@media (hover: hover) and (pointer: fine) {
  .insta-grid a:hover img { transform: scale(1.05); }
  .insta-grid a:hover .insta-hover { opacity: 1; }
}
.insta .center { margin-top: var(--stack-md); }

/* ==========================================================================
   Nadageri additions: the drawn dome behind the headline, hero meta strip,
   "two moods" compare captions, Instagram strip on the night band.
   ========================================================================== */
.hero { background: #15162A; }
/* a deeper scrim: the evening photos are busy behind the headline */
.hero-scrim {
  background:
    linear-gradient(to top, rgba(10, 11, 24, .82) 0%, rgba(10, 11, 24, .45) 42%, rgba(10, 11, 24, .1) 70%),
    linear-gradient(to bottom, rgba(10, 11, 24, .5) 0%, rgba(10, 11, 24, 0) 24%);
}
@media (min-width: 48em) {
  .hero-scrim {
    background:
      linear-gradient(100deg, rgba(10, 11, 24, .82) 0%, rgba(10, 11, 24, .55) 34%, rgba(10, 11, 24, .05) 62%),
      linear-gradient(to bottom, rgba(10, 11, 24, .5) 0%, rgba(10, 11, 24, 0) 22%),
      linear-gradient(to top, rgba(10, 11, 24, .5) 0%, rgba(10, 11, 24, 0) 30%);
  }
}
.hero-title { max-width: 12ch; }
.hero-title em { color: #F6CF9E; }
.hero-content { z-index: 1; }
.hero-dome {
  position: absolute;
  left: 50%;
  bottom: 0;
  z-index: -1;
  width: min(560px, 120vw);
  height: auto;
  transform: translateX(-50%);
  opacity: .32;
  pointer-events: none;
}
/* wide screens: the dome stands on the right, framing the photo, clear of the headline */
@media (min-width: 64em) {
  .hero-dome { left: auto; right: 0; transform: none; width: min(620px, 42vw); bottom: calc(var(--stack-lg) + 30px); opacity: .55; }
}
.hero-dome path { fill: none; stroke: url(#dome-grad); stroke-width: 1.4; vector-effect: non-scaling-stroke; }
@media (prefers-reduced-motion: no-preference) {
  .js .hero-dome path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 2.6s var(--ease-out) .4s forwards; }
  .js .hero-dome path + path { animation-delay: 1.1s; }
  .js .hero-dome path + path + path { animation-delay: 1.5s; }
}
@keyframes draw { to { stroke-dashoffset: 0; } }

.hero-meta {
  display: flex; flex-wrap: wrap; gap: 8px 22px;
  margin-top: var(--stack-md);
  padding-top: var(--stack-sm);
  border-top: 1px solid rgba(251, 248, 243, .22);
  max-width: 34rem;
  font-size: .74rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase;
  color: rgba(251, 248, 243, .82);
  list-style: none;
}
.hero-meta li { display: inline-flex; align-items: center; gap: 10px; }
.hero-meta li + li::before { content: ""; width: 6px; height: 6px; border-radius: 50% 50% 0 0; background: var(--g-dusk); }

/* slide caption (bottom right on wide screens) */
.hero-caption { display: none; }
@media (min-width: 64em) {
  .hero-caption {
    display: block;
    position: absolute; right: var(--gutter); bottom: calc(var(--stack-lg) + 40px);
    max-width: 18rem;
    text-align: right;
    font-family: var(--ff-display); font-style: italic; font-size: 1.15rem; line-height: 1.4;
    color: rgba(251, 248, 243, .82);
  }
}

/* welcome: a duo collage beside the copy on wide screens */
.welcome-grid { display: grid; gap: var(--stack-lg); align-items: center; }
@media (min-width: 64em) {
  .welcome-grid { grid-template-columns: 6fr 5fr; }
  .welcome-grid .welcome-inner { text-align: left; }
  .welcome-grid .welcome-copy { text-align: left; }
  .welcome-grid .welcome .eyebrow::after { display: none; }
  .welcome-grid .mark { margin-left: 0; }
}
.welcome-inner { width: auto; }
.welcome-sign { margin-top: var(--stack-sm); font-family: var(--ff-script); font-size: 2rem; color: var(--c-accent); }

/* compare section in the night band */
.band-night .compare-note { color: var(--c-on-dark-soft); }
.compare-label { background: rgba(14, 15, 30, .55); }

/* steps in the linen band */
.band-linen .step-num { background: var(--c-ivory); }

.style-photo.arch { border-radius: var(--arch); }

/* Instagram strip header */
.insta-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 24px; margin-bottom: var(--stack-md); }
.insta-head h2 { font-size: clamp(1.7rem, 1.3rem + 1.6vw, 2.6rem); }

/* ---- the full brand logo on the hero: a plate that follows the theme --------
   Day: the ink logo (dark lettering) on an ivory plate.
   Night: the ivory logo on a deep-navy plate. */
.hero-logo {
  width: clamp(150px, 42vw, 200px);
  margin-bottom: var(--stack-sm);
  padding: 14px 16px 12px;
  border-radius: 120px 120px 16px 16px;
  padding-top: 22px;
  background: rgba(251, 248, 243, .94);
  box-shadow: 0 18px 50px -18px rgba(10, 11, 24, .6);
}
.hero-logo .logo { width: 100%; height: auto; }
.hero-logo .logo--light { display: none; }
[data-theme="night"] .hero-logo {
  background: rgba(21, 22, 42, .82);
  border: 1px solid rgba(251, 248, 243, .14);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
[data-theme="night"] .hero-logo .logo--dark { display: none; }
[data-theme="night"] .hero-logo .logo--light { display: block; }
@media (min-width: 64em) {
  .hero-logo {
    position: absolute;
    right: var(--gutter);
    bottom: calc(var(--stack-lg) + 30px);
    width: min(400px, 28vw);
    margin: 0;
    padding: 44px 36px 30px;
    border-radius: 240px 240px 22px 22px;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .js .hero-logo { opacity: 0; transform: translateY(14px); animation: hero-logo-in 1.2s var(--ease-out) .5s forwards; }
}
@keyframes hero-logo-in { to { opacity: 1; transform: none; } }
