/* ==========================================================================
   home.css — styles unique to index.html
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Hero — full-height, asymmetric, image bleeding to the viewport edge
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

/* Warm wash behind the type */
.hero__glow {
  position: absolute;
  top: -22%;
  left: -14%;
  width: min(42rem, 80vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--gold) 15%, transparent), transparent 66%);
  pointer-events: none;
  z-index: -1;
}

.hero__grid {
  display: grid;
  align-items: center;
  gap: clamp(2.5rem, 3vw + 1rem, 4.5rem);
  /* leave room for the stat rail so hero + stats land in one screen */
  min-height: min(calc(100svh - var(--topbar-h) - 10rem), 46rem);
  padding-top: clamp(1.75rem, 3vw, 3rem);
  padding-bottom: clamp(2.25rem, 4vw, 3.5rem);
}

@media (min-width: 1024px) {
  .hero__grid {
    grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
  }
}

/* Past ~1700px the bleeding column would otherwise swallow the screen. */
@media (min-width: 1700px) {
  .hero__grid {
    grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.82fr);
  }
}

/* Copy ---------------------------------------------------------------- */
.hero__copy {
  position: relative;
  z-index: 2;
}

.hero__title {
  font-size: var(--fs-display);
  line-height: 0.9;
  letter-spacing: -0.035em;
}

.hero__title .u-italic {
  display: block;
  padding-left: 0.06em;
}

.hero__lead {
  margin-top: clamp(1.5rem, 1rem + 1.6vw, 2.25rem);
  max-width: 40ch;
}

.hero__actions {
  margin-top: clamp(1.85rem, 1.2rem + 1.8vw, 2.75rem);
}

/* Compact trust line — takes the place of the floating pill on small screens */
.hero__trust {
  display: none;
  align-items: center;
  gap: 0.55rem;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-size: 0.68rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--ink-mute);
  line-height: 1.6;
}

.hero__trust svg {
  flex: none;
  fill: var(--gold);
  color: var(--gold);
}

@media (max-width: 1023px) {
  .hero__trust { display: flex; }
}

/* Vertical scroll label at the far left */
.hero__scroll {
  position: absolute;
  left: calc(var(--gutter) * -1 + 0.4rem);
  bottom: 0;
  display: none;
  align-items: center;
  gap: 0.9rem;
  writing-mode: vertical-rl;
  font-size: 0.58rem;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

@media (min-width: 1280px) {
  .hero__scroll { display: flex; }
}

.hero__scroll::after {
  content: "";
  width: 1px;
  height: 3.5rem;
  background: linear-gradient(180deg, var(--line-strong), transparent);
  animation: scrollHint 2.6s var(--ease-in-out) infinite;
}

@keyframes scrollHint {
  0%, 100% { transform: scaleY(0.55); opacity: 0.5; transform-origin: top; }
  50% { transform: scaleY(1); opacity: 1; transform-origin: top; }
}

/* Media ---------------------------------------------------------------- */
.hero__media {
  position: relative;
  z-index: 1;
}

@media (min-width: 1024px) {
  .hero__media {
    align-self: stretch;
    margin-right: calc(-50vw + 50%);
    margin-block: clamp(-2rem, -2vw, 0rem);
  }
}

.hero__frame {
  position: relative;
  height: 100%;
  min-height: clamp(24rem, 58vw, 46rem);
  overflow: hidden;
  border-radius: clamp(7rem, 16vw, 15rem) clamp(1rem, 2vw, 1.5rem) clamp(1rem, 2vw, 1.5rem) clamp(7rem, 16vw, 15rem);
  background: var(--surface-sunk);
  box-shadow: var(--shadow-xl);
}

@media (min-width: 1024px) {
  /* Fill the stretched column absolutely. With `height: 100%` against an
     indefinite parent the portrait fell back to its intrinsic 4:5 ratio and
     made the hero about twice the viewport height. */
  .hero__frame {
    position: absolute;
    inset: 0;
    min-height: 0;
    border-radius: clamp(7rem, 13vw, 14rem) 0 0 clamp(7rem, 13vw, 14rem);
  }
}

.hero__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
}

@media (min-width: 1024px) {
  /* the desktop crop is much wider than tall — keep headroom above the face */
  .hero__frame img { object-position: center 12%; }
}

/* Slow cinematic drift once the page has loaded */
.hero.is-in .hero__frame img {
  animation: heroDrift 22s var(--ease-in-out) infinite alternate;
}

@keyframes heroDrift {
  from { transform: scale(1.02); }
  to { transform: scale(1.1); }
}

@media (prefers-reduced-motion: reduce) {
  .hero.is-in .hero__frame img { animation: none; }
}

/* Hairline inside the arch */
.hero__frame::after {
  content: "";
  position: absolute;
  inset: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: inherit;
  pointer-events: none;
}

/* Small overlapping thumbnail */
.hero__chip {
  position: absolute;
  z-index: 3;
  left: clamp(-1rem, -2vw, -2.5rem);
  bottom: clamp(1.5rem, 6vw, 5rem);
  width: clamp(6.5rem, 16vw, 11rem);
  aspect-ratio: 3 / 4;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 5px solid var(--bg);
  box-shadow: var(--shadow-lg);
}

.hero__chip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 1023px) {
  .hero__chip {
    left: auto;
    right: -0.5rem;
    bottom: -1.5rem;
  }
}

/* Credential pill */
.hero__note {
  position: absolute;
  z-index: 4;
  left: clamp(-1rem, -2vw, -2.5rem);
  top: clamp(2rem, 8vw, 6rem);
  display: none;
  align-items: center;
  gap: 0.65rem;
  padding: 0.8rem 1.3rem;
  border-radius: var(--r-pill);
  background: var(--surface);
  border: 1px solid var(--line-gold);
  box-shadow: var(--shadow-md);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--ink-soft);
}

@media (min-width: 1024px) {
  .hero__note { display: inline-flex; }
}

.hero__note b {
  color: var(--gold);
  font-weight: 500;
}

/* Stat rail beneath the hero grid */
.hero__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  padding-block: clamp(1.5rem, 1rem + 1.8vw, 2.5rem);
  position: relative;
  z-index: 2;
}

@media (min-width: 860px) {
  .hero__stats { grid-template-columns: repeat(4, 1fr); }
}

.hero__stat {
  padding-inline: clamp(0.5rem, 1.6vw, 1.75rem);
}

.hero__stat + .hero__stat { border-left: 1px solid var(--line); }

.hero__stat > b {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 1.3rem + 2vw, 3.1rem);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.02em;
  background: var(--grad-gold);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__stat > span {
  display: block;
  margin-top: 0.6rem;
  font-size: 0.6rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

.hero__stat--wide { display: none; }

@media (min-width: 860px) {
  .hero__stat--wide { display: block; }
}

/* --------------------------------------------------------------------------
   2. Editorial intro
   -------------------------------------------------------------------------- */
.intro {
  display: grid;
  gap: clamp(2.5rem, 1.5rem + 5vw, 6rem);
  align-items: center;
}

@media (min-width: 980px) {
  .intro { grid-template-columns: minmax(0, 0.92fr) minmax(0, 1fr); }
}

.intro__media {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: auto auto;
  gap: clamp(0.75rem, 1.6vw, 1.4rem);
}

.intro__shot--main {
  grid-column: 1 / 5;
  grid-row: 1 / 3;
  aspect-ratio: 4 / 5.4;
  border-radius: var(--r-arch);
  overflow: hidden;
}

.intro__shot--a {
  grid-column: 5 / 7;
  grid-row: 1;
  aspect-ratio: 3 / 4;
  border-radius: var(--r-md);
  overflow: hidden;
  align-self: end;
}

.intro__shot--b {
  grid-column: 5 / 7;
  grid-row: 2;
  aspect-ratio: 1;
  border-radius: var(--r-md);
  overflow: hidden;
}

.intro__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.intro__quote {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 1.1rem + 1.1vw, 2rem);
  font-style: italic;
  font-weight: 300;
  line-height: 1.35;
  color: var(--ink);
  border-left: 1px solid var(--gold);
  padding-left: clamp(1rem, 2vw, 1.75rem);
  margin-block: clamp(1.75rem, 1rem + 2vw, 2.75rem);
  max-width: 30ch;
}

.signature {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(2.2rem, 1.5rem + 2.4vw, 3.4rem);
  line-height: 1;
  margin-top: var(--sp-6);
  background: var(--grad-gold);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.signature + span {
  display: block;
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-top: 0.65rem;
}

/* Credential chips */
.creds {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  margin-top: var(--sp-7);
}

@media (min-width: 560px) {
  .creds { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.cred {
  background: var(--surface);
  padding: 1.15rem 1rem;
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
  text-align: center;
}

.cred b {
  display: block;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 300;
  letter-spacing: 0;
  text-transform: none;
  color: var(--gold);
  margin-bottom: 0.3rem;
}

/* --------------------------------------------------------------------------
   3. Portfolio rail (full-bleed, draggable)
   -------------------------------------------------------------------------- */
.rail-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--sp-5);
  margin-bottom: clamp(2rem, 1.4rem + 2.4vw, 3.5rem);
}

.rail-head .section-head { margin-bottom: 0; }

/* --------------------------------------------------------------------------
   4. Process (deep section)
   -------------------------------------------------------------------------- */
.process-grid {
  display: grid;
  gap: clamp(1.75rem, 1rem + 3vw, 3.5rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
}

/* --------------------------------------------------------------------------
   5. Pricing preview
   -------------------------------------------------------------------------- */
.pkg-grid {
  display: grid;
  gap: clamp(1rem, 0.6rem + 1.6vw, 1.85rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
  align-items: stretch;
}

/* --------------------------------------------------------------------------
   6. Why-choose band
   -------------------------------------------------------------------------- */
.why {
  display: grid;
  gap: clamp(1.5rem, 0.8rem + 2.4vw, 2.75rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
}

.why__item {
  padding-top: var(--sp-5);
  border-top: 1px solid var(--line-gold);
}

.why__item h3 {
  font-size: var(--fs-lg);
  margin-top: var(--sp-5);
}

.why__item p {
  margin-top: var(--sp-3);
  font-size: var(--fs-sm);
  color: var(--ink-soft);
}

/* --------------------------------------------------------------------------
   7. Section header row with controls
   -------------------------------------------------------------------------- */
.head-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--sp-5);
  margin-bottom: clamp(2rem, 1.4rem + 2.4vw, 3.5rem);
}

.head-row .section-head { margin-bottom: 0; }

/* --------------------------------------------------------------------------
   8. Instagram strip
   -------------------------------------------------------------------------- */
.ig-head {
  text-align: center;
  margin-bottom: clamp(2rem, 1.4rem + 2vw, 3rem);
}

.ig-head h2 {
  font-size: clamp(2rem, 1.4rem + 2.6vw, 3.6rem);
}


/* ==========================================================================
   MOBILE — everything below 1024px is composed separately, not squeezed.
   ========================================================================== */
@media (max-width: 1023px) {

  /* Hero: copy first, then a full-bleed arched portrait ------------------ */
  .hero__grid {
    min-height: 0;
    gap: clamp(1.75rem, 5vw, 2.5rem);
    padding-top: clamp(1.5rem, 5vw, 2.25rem);
    padding-bottom: clamp(1.25rem, 4vw, 2rem);
  }

  .hero__title {
    font-size: clamp(3.1rem, 13.5vw, 5.4rem);
    line-height: 0.94;
    letter-spacing: -0.028em;
  }

  .hero__lead {
    margin-top: 1.15rem;
    font-size: 1.02rem;
    line-height: 1.58;
    max-width: 36ch;
  }

  .hero__actions {
    margin-top: 1.6rem;
    gap: 0.7rem;
  }

  .hero__actions .btn {
    flex: 1 1 12rem;
    justify-content: center;
  }

  /* Bleed the portrait to both screen edges */
  .hero__media {
    margin-inline: calc(-1 * var(--gutter));
  }

  .hero__frame {
    min-height: 0;
    aspect-ratio: 4 / 4.6;
    border-radius: 44% 44% 0 0 / 22% 22% 0 0;
    box-shadow: none;
  }

  .hero__frame::after {
    inset: 0.7rem;
    border-radius: 44% 44% 0 0 / 21% 21% 0 0;
  }

  .hero__frame img { object-position: center 18%; }

  /* Thumbnail tucked into the bottom-left, fully inside the frame */
  .hero__chip {
    left: var(--gutter);
    right: auto;
    bottom: 1rem;
    width: 5.6rem;
    border-width: 4px;
    border-radius: 12px;
  }

  .hero__glow {
    top: -12%;
    left: -30%;
    width: 130vw;
  }

  /* Stats: two clean rows instead of three cramped columns --------------- */
  .hero__stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
    padding-block: 0;
    border-top: 0;
    margin-top: 0.5rem;
  }

  .hero__stat {
    padding: 1.15rem 0.75rem;
    border-top: 1px solid var(--line);
  }

  .hero__stat + .hero__stat { border-left: 0; }
  .hero__stat:nth-child(even) { border-left: 1px solid var(--line); }

  .hero__stat--wide { display: block; }

  .hero__stat > b { font-size: 2.1rem; }
  .hero__stat > span { font-size: 0.56rem; letter-spacing: 0.2em; }

  /* Marquee -------------------------------------------------------------- */
  .marquee-xl { --marquee-duration: 26s; }
  .marquee-xl__item { font-size: 1.55rem; }

  /* Intro imagery: a simple, generous two-up ----------------------------- */
  .intro__media {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto;
    gap: 0.7rem;
  }

  .intro__shot--main {
    grid-column: 1 / -1;
    grid-row: auto;
    aspect-ratio: 4 / 4.4;
    border-radius: 40% 40% 14px 14px / 20% 20% 14px 14px;
  }

  .intro__shot--a,
  .intro__shot--b {
    grid-column: auto;
    grid-row: auto;
    aspect-ratio: 1;
    align-self: auto;
  }

  .intro__quote {
    font-size: 1.28rem;
    max-width: none;
  }

  /* Cards / lists -------------------------------------------------------- */
  .creds { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .showcase__name { font-size: 1.5rem; }
  .showcase__price { font-size: 0.95rem; }

  .showcase__row {
    flex-wrap: wrap;
    gap: 0.35rem 0.9rem;
  }

  .showcase__price {
    width: 100%;
    padding-left: 2rem;
  }

  .rail { grid-auto-columns: 72vw; }

  .pkg-grid,
  .why { gap: 1rem; }

  .head-row,
  .rail-head { gap: 1.25rem; }

  .head-row .slider-nav { display: none; }
}

@media (max-width: 479px) {
  .hero__actions .btn { flex: 1 1 100%; }
}

@media (max-width: 560px) {
  .hero__title { font-size: clamp(2.9rem, 14vw, 4rem); }
  .hero__trust { font-size: 0.63rem; letter-spacing: 0.08em; }
  .intro__quote { font-size: 1.18rem; }
  .marquee-xl__item { font-size: 1.3rem; }
  .rail { grid-auto-columns: 78vw; }
}


/* ==========================================================================
   Short desktop screens (1366x768 laptops) — scale the hero down so the
   headline, CTAs and stat rail still land above the fold.
   ========================================================================== */
@media (min-width: 1024px) and (max-height: 920px) {
  .hero__title { font-size: clamp(3rem, 4.6vw, 5rem); }
  .hero__lead { margin-top: 1.1rem; font-size: 1.02rem; }
  .hero__actions { margin-top: 1.5rem; }
  .hero__grid { padding-top: 1.5rem; padding-bottom: 1.75rem; }
  .hero__stats { padding-block: 1.25rem; }
  .hero__stat > b { font-size: 2.2rem; }
}
