/* ==========================================================================
   HOMEIZ BUILDING — landing page (full-screen slide pager)
   ========================================================================== */

:root {
  --c-white: #ffffff;
  --c-mist: #f3f6f8;
  --c-mist-2: #e9eef1;
  --c-silver: #c0c0c0;
  --c-silver-soft: #d8dde1;
  --c-silver-deep: #8b95a0;
  --c-blue: #396a8a;
  --c-blue-light: #5488ab;
  --c-blue-deep: #1f3c50;
  --c-ink: #131a1f;
  --c-ink-soft: #4b5a63;
  --c-line: rgba(19, 26, 31, 0.1);

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --dur-s: 0.4s;
  --dur-m: 0.7s;
  --dur-l: 1.3s;

  --container: 1280px;
  --gutter: clamp(1.25rem, 5vw, 4.5rem);
  --header-h: 5.5rem;

  --font: "Vazirmatn", "Segoe UI", Tahoma, sans-serif;
}

/* ---------------------------------- reset ---------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: auto; }
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
svg { display: block; }

html, body { height: 100%; overflow: hidden; overscroll-behavior: none; }
body {
  font-family: var(--font);
  background: var(--c-white);
  color: var(--c-ink);
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

[dir="rtl"] body { direction: rtl; }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  color: var(--c-blue);
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 2.4em;
  height: 2px;
  background: currentColor;
  opacity: 0.6;
}

h1, h2, h3 { font-weight: 800; letter-spacing: -0.01em; color: var(--c-blue-deep); }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.8rem); line-height: 1.22; }
h3 { font-size: clamp(1.1rem, 1.6vw, 1.35rem); line-height: 1.4; }
p { color: var(--c-ink-soft); }

.section-head { max-width: 46rem; margin-bottom: clamp(0.9rem, 2.2vh, 1.6rem); }
.section-head .eyebrow { margin-bottom: 0.8rem; }
.section-head p { margin-top: 0.7rem; font-size: 1.03rem; max-width: 40rem; }
.section--alt { background: var(--c-mist); }

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem 2.1rem;
  border-radius: 999px;
  background: var(--c-blue-deep);
  color: var(--c-white);
  font-weight: 700;
  font-size: 0.95rem;
  overflow: hidden;
  transition: transform var(--dur-s) var(--ease-out), box-shadow var(--dur-s) var(--ease-out);
  box-shadow: 0 10px 30px -12px rgba(31, 60, 80, 0.55);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 16px 34px -10px rgba(31, 60, 80, 0.6); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn svg { width: 1.05em; height: 1.05em; transition: transform var(--dur-s) var(--ease-out); }
[dir="rtl"] .btn svg { transform: scaleX(-1); }
.btn:hover svg { transform: translateX(3px); }
[dir="rtl"] .btn:hover svg { transform: scaleX(-1) translateX(3px); }

.btn--ghost {
  background: transparent;
  color: var(--c-blue-deep);
  box-shadow: none;
  border: 1px solid var(--c-line);
}
.btn--ghost:hover { background: var(--c-mist); box-shadow: none; }

/* decorative wave lines, echoes the brand's business-card motif */
.wave-deco { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 0; }
.wave-deco svg { position: absolute; opacity: 0.35; }
.hero-waves svg { top: -6%; inset-inline-end: -14%; width: min(58vw, 760px); height: auto; color: var(--c-silver-deep); }
.contact-waves svg { bottom: -16%; inset-inline-start: -12%; width: min(54vw, 700px); height: auto; color: #ffffff; }

/* ---------------------------------- header ---------------------------------- */
.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 100;
  padding-block: 1.1rem;
  transition: background-color var(--dur-m) var(--ease-out), box-shadow var(--dur-m) var(--ease-out), padding-block var(--dur-m) var(--ease-out);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.site-header.is-solid {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 1px 0 var(--c-line);
  padding-block: 0.75rem;
}

.brand { display: flex; align-items: center; gap: 0.7rem; }
.brand img { width: 40px; height: 40px; object-fit: contain; }
.brand__word { display: flex; flex-direction: column; line-height: 1; }
.brand__word b { font-size: 1.02rem; font-weight: 800; letter-spacing: 0.08em; color: var(--c-blue-deep); }
.brand__word span { font-size: 0.62rem; font-weight: 600; letter-spacing: 0.24em; color: var(--c-silver-deep); margin-top: 0.28rem; }

.nav { display: flex; align-items: center; gap: 2.1rem; }
.nav a {
  position: relative;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--c-ink);
  padding-block: 0.3rem;
}
.nav a::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 1px;
  background: var(--c-blue);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--dur-m) var(--ease-out);
}
[dir="rtl"] .nav a::after { transform-origin: left; }
.nav a:hover::after, .nav a.is-current::after { transform: scaleX(1); }

.header-cta { display: flex; align-items: center; gap: 1rem; }
.nav-toggle { display: none; width: 34px; height: 24px; position: relative; }
.nav-toggle span { position: absolute; inset-inline: 0; height: 2px; background: var(--c-blue-deep); border-radius: 2px; transition: transform var(--dur-s) var(--ease-out), opacity var(--dur-s) var(--ease-out); }
.nav-toggle span:nth-child(1) { top: 2px; }
.nav-toggle span:nth-child(2) { top: 11px; }
.nav-toggle span:nth-child(3) { top: 20px; }
.nav-toggle.is-open span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* ---------------------------------- pager / slides ---------------------------------- */
.pager { position: relative; width: 100%; height: 100vh; height: 100dvh; overflow: hidden; }

.slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--c-white);
  visibility: hidden;
  pointer-events: none;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.slide::-webkit-scrollbar { display: none; }
.slide.is-active { visibility: visible; pointer-events: auto; z-index: 1; }
.slide.is-incoming { visibility: visible; pointer-events: none; z-index: 5; }

.slide__inner {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  /* auto margins instead of the parent's justify-content: center — auto
     can't go negative, so when content overflows the viewport it falls
     back to top-aligned instead of centering into unreachable overflow
     above scrollTop:0 (which is what was clipping content under the header) */
  margin-block: auto;
  padding-inline: var(--gutter);
  padding-block: calc(var(--header-h) + 1.5rem) 2.5rem;
  flex: none;
}

.slide__hint {
  position: absolute;
  bottom: 2rem;
  /* physical left + translateX(-50%): direction-agnostic centering, unlike
     the inset-inline-start + direction-conditional-transform combo this
     replaced, which centers correctly in theory but is easy to get wrong */
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--c-silver-deep);
}
.slide__hint .line { width: 1px; height: 30px; background: var(--c-line); position: relative; overflow: hidden; }
.slide__hint .line::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: -100%;
  height: 100%;
  background: var(--c-blue);
  animation: scrollLine 2.2s var(--ease-out) infinite;
}
@keyframes scrollLine { to { top: 100%; } }

/* ---------------------------------- dot nav ---------------------------------- */
.dot-nav {
  position: fixed;
  top: 50%;
  left: clamp(1rem, 3vw, 2rem);
  transform: translateY(-50%);
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  padding: 0.7rem 0.5rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  box-shadow: 0 6px 22px -10px rgba(19, 26, 31, 0.25);
}
.dot-nav button {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--c-silver-soft);
  position: relative;
  transition: background var(--dur-s) var(--ease-out), transform var(--dur-s) var(--ease-out);
}
.dot-nav button::after { content: ""; position: absolute; inset: -0.5rem; }
.dot-nav button.is-active { background: var(--c-blue-deep); transform: scale(1.4); }

/* ---------------------------------- reveal utility ---------------------------------- */
[data-reveal] { opacity: 0; transform: translateY(1.6rem); transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out); }
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }
[data-reveal-group] > * { transition-delay: calc(var(--i, 0) * 0.09s); }

/* ---------------------------------- hero ---------------------------------- */
.hero { background: linear-gradient(180deg, var(--c-white) 0%, var(--c-mist) 100%); }

/* full-bleed panel: lives outside .container so it can reach the viewport
   edge instead of being capped by the container's max-width/gutter */
.hero__art {
  position: absolute;
  inset-block: 0;
  right: 0;
  z-index: 1;
  width: clamp(20rem, 56%, 46rem);
  overflow: hidden;
  transition: transform var(--dur-l) var(--ease-out);
}
.hero__art img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: 0; transform: scale(1.06); }
.hero.is-revealed .hero__art { transform: translateX(1.25rem); }

.hero__grid { position: relative; z-index: 2; width: 100%; }
/* physical (not logical) margin: .hero__art is pinned to the physical right
   (it must stay opposite the copy regardless of direction), and an
   unconstrained margin on a capped-width block flushes right in RTL by
   default — pin this flush left explicitly instead, so it never collides
   with the art panel. */
.hero__copy { max-width: 28rem; margin-right: auto; }

.hero__brand {
  /* the wordmark + logo are an English lockup: force ltr so flex-start
     resolves to the physical left instead of the inline-start (right)
     the page's own rtl direction would otherwise give it */
  direction: ltr;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  transition: transform var(--dur-l) var(--ease-out);
}
.hero__logo { width: 12rem; height: 12rem; object-fit: contain; }
.hero.is-revealed .hero__brand { transform: translateX(-1.25rem); }

.hero__title {
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  line-height: 0.98;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.hero__title .l1 { display: block; color: var(--c-silver-deep); }
.hero__title .l2 { display: block; color: var(--c-blue); }

.hero__quote {
  margin-top: 1.5rem;
  max-width: 26rem;
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  color: var(--c-ink-soft);
  font-weight: 500;
  transition: opacity var(--dur-m) var(--ease-out);
}
.hero.is-revealed .hero__quote { opacity: 0; pointer-events: none; }

/* buttons + stats: hidden until the hero's own reveal state fires (see
   main.js `heroRevealed`), then appear bottom-left, under the brand block.
   left/width are computed explicitly (not max-width + auto margin) so this
   lines up exactly with .hero__copy's edge/measure without the direction-
   dependent over-constrained-margin ambiguity that rule works around. */
.hero__cta {
  position: absolute;
  left: calc(max(0px, (100% - var(--container)) / 2) + var(--gutter));
  width: min(28rem, calc(100% - 2 * var(--gutter)));
  bottom: clamp(6rem, 22vh, 10rem);
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-m) var(--ease-out);
}
.hero.is-revealed .hero__cta { opacity: 1; pointer-events: auto; }

.hero__actions { display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; }

.hero__stats { display: flex; gap: clamp(1.5rem, 4vw, 3.2rem); }
.hero__stats div b { display: block; font-size: clamp(1.3rem, 2.2vw, 1.7rem); color: var(--c-blue-deep); font-weight: 800; }
.hero__stats div span { font-size: 0.78rem; color: var(--c-ink-soft); }

/* ---------------------------------- about ---------------------------------- */
.about__grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.about__art { position: relative; border-radius: 1.4rem; overflow: hidden; aspect-ratio: 3 / 4; max-height: 60vh; }
.about__art img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); }
.about__art::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(31, 60, 80, 0) 40%, rgba(19, 26, 31, 0.55) 100%);
}
.about__badge {
  position: absolute; z-index: 2; bottom: 1.4rem; inset-inline: 1.4rem;
  color: #fff;
}
.about__badge b { display: block; font-size: 1.4rem; font-weight: 800; }
.about__badge span { font-size: 0.74rem; letter-spacing: 0.1em; opacity: 0.85; }

.about__text p { font-size: 1.02rem; margin-bottom: 1.1rem; }
.about__text p:first-of-type { color: var(--c-ink); font-weight: 600; font-size: 1.12rem; line-height: 1.8; }
.about__pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; margin-top: 1.6rem; }
.pillar { border-top: 2px solid var(--c-blue); padding-top: 0.8rem; }
.pillar b { display: block; color: var(--c-blue-deep); font-size: 1rem; margin-bottom: 0.25rem; }
.pillar span { font-size: 0.82rem; color: var(--c-ink-soft); }

/* ---------------------------------- services ---------------------------------- */
.services__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.6rem; }
.service-card {
  position: relative;
  background: var(--c-white);
  border: 1px solid var(--c-line);
  border-radius: 1.1rem;
  padding: 0.75rem 1.3rem;
  transition: transform var(--dur-m) var(--ease-out), box-shadow var(--dur-m) var(--ease-out), border-color var(--dur-m) var(--ease-out);
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 46px -22px rgba(31, 60, 80, 0.32);
  border-color: transparent;
}
.service-card .num {
  position: absolute; top: 1.1rem; inset-inline-end: 1.4rem;
  font-size: 0.76rem; font-weight: 700; color: var(--c-silver-soft);
  letter-spacing: 0.05em;
}
.service-card__icon {
  width: 2.3rem; height: 2.3rem;
  display: flex; align-items: center; justify-content: center;
  border-radius: 0.7rem;
  background: var(--c-mist);
  color: var(--c-blue);
  margin-bottom: 0.75rem;
  transition: background var(--dur-m) var(--ease-out), color var(--dur-m) var(--ease-out), transform var(--dur-m) var(--ease-out);
}
.service-card__icon svg { width: 1.25rem; height: 1.25rem; }
.service-card:hover .service-card__icon { background: var(--c-blue-deep); color: #fff; transform: rotate(-6deg) scale(1.06); }
.service-card h3 { margin-bottom: 0.35rem; }
.service-card p { font-size: 0.9rem; }

/* ---------------------------------- process (one step per slide) ---------------------------------- */
.process-slide .slide__inner {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  margin-block: 0;
}
.process-step__eyebrow { display: flex; align-items: center; margin-bottom: clamp(1.6rem, 4vh, 3rem); }

.process-step__ghost {
  /* physical (not logical) side: this element forces direction:ltr via .ltr
     for correct digit rendering, which would flip inset-inline-end to the
     wrong physical edge — pin it with `left` explicitly instead */
  position: absolute;
  top: 46%;
  left: clamp(0.5rem, 3vw, 2.5rem);
  transform: translateY(-50%);
  font-size: clamp(7rem, 20vw, 15rem);
  font-weight: 800;
  color: var(--c-mist-2);
  line-height: 1;
  z-index: -1;
  user-select: none;
  pointer-events: none;
}

.process-step__body { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; margin-block: auto; }
.process-step__num { display: inline-block; font-weight: 800; font-size: 0.95rem; color: var(--c-blue); letter-spacing: 0.08em; margin-bottom: 0.6rem; }
.process-step__body h2 { margin-bottom: 1rem; }
.process-step__body p { font-size: 1.02rem; }
.process-step__list { display: flex; flex-direction: column; gap: 0.9rem; }
.process-step__list li {
  position: relative;
  padding-inline-start: 1.5rem;
  font-size: 0.94rem;
  color: var(--c-ink-soft);
}
.process-step__list li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0.55em;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--c-blue);
}

/* ---------------------------------- contact ---------------------------------- */
.contact { background: var(--c-blue-deep); color: #fff; }
.contact .eyebrow { color: var(--c-silver-soft); }
.contact .eyebrow::before { background: var(--c-silver-soft); }
.contact h2 { color: #fff; }
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-areas: "lead list" "map list";
  align-content: start;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
  position: relative;
  z-index: 1;
}
.contact__lead { grid-area: lead; }
.contact__list { grid-area: list; }
.contact__lead p { color: rgba(255, 255, 255, 0.72); font-size: 1rem; max-width: 30rem; }
.contact__cta { margin-top: 1.8rem; }
.contact__cta .btn { background: #fff; color: var(--c-blue-deep); box-shadow: none; }
.contact__cta .btn:hover { background: var(--c-silver-soft); }

.contact__list { display: grid; gap: 0.5rem; }
.contact__item {
  display: flex; align-items: center; gap: 1rem;
  padding: 0.6rem 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.03);
  transition: background var(--dur-m) var(--ease-out), border-color var(--dur-m) var(--ease-out);
}
.contact__item:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.3); }
.contact__item .ic {
  width: 2.4rem; height: 2.4rem; flex-shrink: 0;
  border-radius: 0.7rem;
  background: rgba(255, 255, 255, 0.08);
  display: flex; align-items: center; justify-content: center;
  color: var(--c-silver-soft);
}
.contact__item .ic svg { width: 1.2rem; height: 1.2rem; }
.contact__item .meta { display: flex; flex-direction: column; gap: 0.12rem; min-width: 0; }
.contact__item .meta span { font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255, 255, 255, 0.5); }
.contact__item .meta b { font-size: 0.95rem; font-weight: 600; word-break: break-word; }
.contact__item.is-placeholder .meta b { color: rgba(255, 255, 255, 0.55); font-weight: 500; font-style: italic; }

.slide-footer {
  position: relative; z-index: 1;
  margin-top: clamp(1rem, 2.5vh, 1.8rem);
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.6rem;
  font-size: 0.8rem; color: rgba(255, 255, 255, 0.6);
}

.contact__map {
  grid-area: map;
  position: relative;
  z-index: 1;
  border-radius: 1.1rem;
  overflow: hidden;
  height: clamp(200px, 28vh, 320px);
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.contact__map iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---------------------------------- responsive ---------------------------------- */
@media (max-width: 1040px) {
  .hero__art { position: relative; inset: auto; width: 100%; height: 42vh; order: -1; }
  .hero.is-revealed .hero__art { transform: none; }
  .hero__copy { max-width: none; }
  .about__grid { grid-template-columns: 1fr; }
  .about__art { max-width: 22rem; margin-inline: auto; }
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .process-step__body { grid-template-columns: 1fr; gap: 1.2rem; }
  .process-step__ghost { top: 6.5rem; transform: none; font-size: clamp(5rem, 26vw, 9rem); }
  .contact__grid { grid-template-columns: 1fr; grid-template-areas: "lead" "list" "map"; }
}

@media (max-width: 820.98px) {
  .nav, .header-cta .btn { display: none; }
  .nav-toggle { display: block; }

  /* backdrop-filter on a `position:fixed` ancestor creates a containing
     block for fixed descendants — without this, .nav.is-open's inset:0
     resolves against .site-header's small box instead of the viewport */
  .site-header.is-solid { backdrop-filter: none; background: rgba(255, 255, 255, 0.97); }

  .nav.is-open {
    display: flex;
    position: fixed;
    inset: 0;
    top: 0;
    padding: 6.5rem 2rem 2rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.6rem;
    background: var(--c-white);
    z-index: 90;
  }
  .nav.is-open a { font-size: 1.3rem; }

  .slide__inner { padding-block: calc(var(--header-h) + 0.5rem) 2rem; }
  .slide__hint { display: none; }

  .services__grid { grid-template-columns: 1fr; }

  .about__pillars { grid-template-columns: 1fr; gap: 0.9rem; }
  .about__art { max-height: 46vh; }

  .dot-nav { left: 0.5rem; padding: 0.55rem 0.4rem; gap: 0.55rem; }
  .dot-nav button { width: 0.45rem; height: 0.45rem; }

  /* ---- Hero: compact single-page layout on mobile ---- */

  /* Shorter art so copy + CTA fit in the remaining viewport height */
  .hero__art { height: 22vh; }

  /* Compact logo */
  .hero__logo { width: 4.5rem; height: 4.5rem; }

  /* Tighten gap and keep RTL alignment consistent with the Persian quote */
  .hero__brand { direction: rtl; align-items: flex-start; gap: 0.5rem; }

  /* Reduce quote margin to save vertical space */
  .hero__quote { margin-top: 1rem; }

  /* Tighten slide__inner bottom padding inside the hero */
  .hero .slide__inner { padding-bottom: 1.25rem; }

  /* CTA in normal flow, always visible, no two-phase reveal needed */
  .hero__cta {
    position: static;
    left: auto;
    bottom: auto;
    width: 100%;
    opacity: 1;
    pointer-events: auto;
    padding-right: var(--gutter);
    padding-left: calc(var(--gutter) + 1.25rem); /* matches slide__inner dot-nav clearance */
    padding-bottom: 1.5rem;
    gap: 1rem;
  }

  /* Hide stats on mobile — saves ~56px and they're secondary info */
  .hero__stats { display: none; }

  /* Don't fade the quote if is-revealed fires on mobile */
  .hero.is-revealed .hero__quote { opacity: 1; pointer-events: auto; }

  /* .dot-nav is pinned with a physical `left` (it must stay on the same
     edge in RTL too), but padding-inline above is logical and symmetric —
     it doesn't know the dot-nav is there, so give the physical left edge
     extra clearance to keep text from rendering under it. */
  .slide__inner { padding-left: calc(var(--gutter) + 1.25rem); }
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
  .hero__art img { opacity: 1 !important; transform: none !important; }
}
