/* ==========================================================================
   Home page (design.md §8 blueprint, 7b-1 / 7b-4 / 7b-6 / 7b-7)
   ========================================================================== */

/* ---- Depth hero (7b-1) --------------------------------------------------- */
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  min-height: 88vh;
  min-height: 88svh;
  overflow: hidden;
  background: #2F2620;
  color: #FAF7F2;
}
@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 cubic-bezier(.4, 0, .2, 1); }
.hero-slide.is-active { opacity: 1; z-index: 1; }
/* the outgoing slide stays opaque underneath, so the crossfade never dips to the backdrop */
.hero-slide.is-prev { opacity: 1; transition: none; }
.hero-slide.is-active, .hero-slide.is-prev { will-change: opacity; }
.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) {
  /* one continuous zoom across fade-in, hold and fade-out (4.4s) */
  .js .hero-slide.is-kb img { animation: kb 4.6s linear both; will-change: transform; }
}
@keyframes kb { from { transform: scale(1); } to { transform: scale(1.08); } }

.hero-scrim {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to top, rgba(30, 22, 17, .72) 0%, rgba(30, 22, 17, .35) 38%, rgba(30, 22, 17, 0) 62%),
    linear-gradient(to bottom, rgba(30, 22, 17, .45) 0%, rgba(30, 22, 17, 0) 22%);
}
@media (min-width: 48em) {
  .hero-scrim {
    background:
      linear-gradient(to top right, rgba(30, 22, 17, .7) 0%, rgba(30, 22, 17, .28) 42%, rgba(30, 22, 17, 0) 70%),
      linear-gradient(to bottom, rgba(30, 22, 17, .4) 0%, rgba(30, 22, 17, 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(250, 240, 228, .55) 0%, rgba(250, 240, 228, 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(217, 196, 182, .6), rgba(217, 196, 182, 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(217, 196, 182, .6), rgba(217, 196, 182, 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(217, 196, 182, .6), rgba(217, 196, 182, 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: #F3EDE6; }
.hero-title {
  font-size: var(--fs-hero);
  font-weight: 300;
  line-height: 1.04;
  color: #FAF7F2;
  text-shadow: 0 2px 24px rgba(0, 0, 0, .25);
}
.hero-title em { color: #F1D3C2; }
.hero-lead { max-width: 24em; margin-top: var(--stack-sm); font-size: var(--fs-lead); color: rgba(250, 247, 242, .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); }
/* Phones: a lighter text block over the moving photos. The eyebrow and lead repeat in the welcome
   section just below; one compact button, and the portfolio as a quiet text link. */
@media (max-width: 47.99em) {
  .hero .eyebrow, .hero-lead { display: none; }
  .hero-title { font-size: clamp(1.85rem, 1.3rem + 2.8vw, 2.35rem); line-height: 1.08; }
  .hero-content { padding-bottom: calc(var(--stack-md) + 20px); }
  .hero .btn-row { gap: 4px; margin-top: var(--stack-sm); align-items: center; }
  .hero .btn-row > .btn--solid { min-height: var(--tap); padding: 12px 20px; font-size: .74rem; }
  .hero .btn-row > .btn--frost {
    width: auto; min-height: var(--tap); padding: 8px 12px;
    background: none; border-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: none;
    text-decoration: underline; text-underline-offset: 4px;
  }
}

.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: #FAF7F2;
}
.scroll-cue-line { width: 1px; height: 40px; background: linear-gradient(rgba(250, 247, 242, 0), rgba(250, 247, 242, .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: center; }
.mark--signature { width: 54px; }

/* ---- 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: #E1B39A; }
.testimonials .eyebrow { color: #E1C7B6; }
.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: #E7B970; }
.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 blockquote p + p { margin-top: .7em; }
/* long, multi-paragraph reviews: smaller so the carousel doesn't grow very tall */
.quote--long blockquote p { font-size: clamp(1.05rem, .95rem + .5vw, 1.3rem); max-width: 60ch; }
.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: #E1B39A; }

/* ---- 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: #FAF7F2; 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); }
