/* ---------------------------------------------
   Kimberley Utama — Yoga in Ubud, Bali
   Palette: warm ivory, jungle sage, terracotta sun.
--------------------------------------------- */

:root {
  --ivory: #faf6ef;
  --ivory-soft: #f2ebdf;
  --charcoal: #2b271f;
  --charcoal-soft: #4a4437;
  --sage: #8a9a7e;
  --sage-deep: #5f7054;
  --terracotta: #c17a52;
  --terracotta-deep: #a8613c;
  --sun: #d9a755;
  --line: #e4dac8;

  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Jost', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--charcoal);
  background: var(--ivory);
  line-height: 1.7;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--charcoal);
}

p { max-width: 62ch; }

a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 28px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--charcoal);
  color: var(--ivory);
  padding: 12px 20px;
  z-index: 200;
  border-radius: 0 0 6px 0;
}
.skip-link:focus {
  left: 0;
}

/* ---------- Header ---------- */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  background: rgba(250, 246, 239, 0);
  border-bottom: 1px solid transparent;
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease), backdrop-filter 0.35s var(--ease);
}

header.scrolled {
  background: rgba(250, 246, 239, 0.9);
  backdrop-filter: blur(10px);
  border-color: var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0;
}

.brand {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--charcoal);
  transition: color 0.3s ease, opacity 0.25s ease;
}

.hero ~ * .brand,
header.scrolled .brand { color: var(--charcoal); }

.nav-links {
  display: flex;
  gap: 36px;
  font-size: 0.92rem;
  letter-spacing: 0.03em;
}

.nav-links a {
  position: relative;
  padding-bottom: 4px;
  opacity: 0.8;
  transition: opacity 0.25s ease, color 0.25s ease;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--terracotta);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease);
}
.nav-links a:hover,
.nav-links a:focus-visible { opacity: 1; color: var(--terracotta-deep); }
.nav-links a:hover::after,
.nav-links a:focus-visible::after { transform: scaleX(1); transform-origin: left; }
.nav-links a:focus-visible { outline: none; }

.brand:hover,
.brand:focus-visible { opacity: 0.75; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 34px;
  height: 34px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 61;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--charcoal);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--charcoal);
}

.hero-image {
  position: absolute;
  inset: 0;
  background-image: url('assets/hero-pond-meditation.jpg');
  background-size: cover;
  background-position: center 22%;
  transform: scale(1.08);
  will-change: transform;
  animation: heroDrift 28s ease-in-out infinite alternate;
}

@keyframes heroDrift {
  0% { transform: scale(1.08) translate3d(0, 0, 0); }
  100% { transform: scale(1.15) translate3d(-1.2%, -1%, 0); }
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(28, 25, 19, 0.35) 0%, rgba(28, 25, 19, 0.15) 30%, rgba(28, 25, 19, 0.78) 100%),
    linear-gradient(100deg, rgba(28, 25, 19, 0.35) 0%, rgba(28, 25, 19, 0) 45%);
}

.hero-texture {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 85% 12%, rgba(217, 167, 85, 0.25), transparent 45%);
  mix-blend-mode: screen;
  pointer-events: none;
  animation: heroGlow 12s ease-in-out infinite;
}

@keyframes heroGlow {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-bottom: 110px;
  color: #fdfaf4;
}

.hero-eyebrow {
  font-size: 0.85rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0.85;
  margin-bottom: 20px;
  color: #f1dfc4;
}

.hero-content h1 {
  font-size: clamp(3.2rem, 9vw, 6.4rem);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.01em;
  color: #fdfaf4;
  text-shadow: 0 4px 28px rgba(20, 17, 12, 0.45);
}

.hero-sub {
  margin-top: 26px;
  font-size: 1.12rem;
  max-width: 460px;
  font-weight: 300;
  opacity: 0.94;
}

.hero-actions {
  margin-top: 40px;
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 15px 32px;
  border-radius: 999px;
  font-size: 0.92rem;
  letter-spacing: 0.03em;
  transition: transform 0.3s var(--ease), background 0.3s ease, color 0.3s ease, box-shadow 0.35s var(--ease), border-color 0.3s ease;
}
.btn:active { transform: translateY(0) scale(0.97); }
.btn:focus-visible {
  outline: 2px solid var(--sun);
  outline-offset: 3px;
}
.btn.reveal {
  transition: opacity 0.7s var(--ease), transform 0.3s var(--ease), background 0.3s ease, box-shadow 0.35s var(--ease), border-color 0.3s ease, color 0.3s ease;
}

.btn-primary {
  background: var(--terracotta);
  color: #fff;
  box-shadow: 0 10px 24px -8px rgba(161, 92, 51, 0.55);
}
.btn-primary:hover {
  transform: translateY(-3px);
  background: var(--terracotta-deep);
  box-shadow: 0 16px 32px -10px rgba(161, 92, 51, 0.65);
}
.btn-primary:active { box-shadow: 0 8px 18px -8px rgba(161, 92, 51, 0.55); }

.btn-ghost {
  border: 1px solid rgba(253, 250, 244, 0.55);
  color: #fdfaf4;
}
.btn-ghost:hover {
  transform: translateY(-3px);
  border-color: #fdfaf4;
  background: rgba(253, 250, 244, 0.1);
  box-shadow: 0 12px 26px -14px rgba(0, 0, 0, 0.4);
}

.scroll-hint {
  position: absolute;
  right: 28px;
  bottom: 40px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fdfaf4;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.75;
  writing-mode: vertical-rl;
}
.scroll-hint-line {
  width: 1px;
  height: 46px;
  background: currentColor;
  opacity: 0.6;
  position: relative;
  overflow: hidden;
}
.scroll-hint-line::after {
  content: "";
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: #f1dfc4;
  animation: scrollLine 2.6s ease-in-out infinite;
}
@keyframes scrollLine {
  0% { top: -100%; }
  60% { top: 100%; }
  100% { top: 100%; }
}

/* ---------- Sections shared ---------- */
section { padding: 120px 0; position: relative; }

.eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sage-deep);
  margin-bottom: 16px;
}

.section-head { max-width: 640px; margin-bottom: 64px; }

.section-head h2 {
  font-size: clamp(2rem, 3.6vw, 2.9rem);
  font-weight: 500;
  line-height: 1.12;
}

.section-lede {
  margin-top: 18px;
  font-size: 1.06rem;
  color: var(--charcoal-soft);
}

/* ---------- Services ---------- */
.services { background: var(--ivory-soft); }

.service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
}

.service-card {
  background: var(--ivory-soft);
  position: relative;
  display: flex;
  flex-direction: column;
}

.service-card.reveal {
  transition: opacity 0.7s var(--ease), transform 0.45s var(--ease), background 0.35s ease, box-shadow 0.4s var(--ease);
}

.service-photo {
  height: 260px;
  overflow: hidden;
  background: var(--ivory);
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-photo--tall {
  height: 360px;
}

.service-photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  transition: transform 0.6s var(--ease);
}

.service-card:hover .service-photo img {
  transform: scale(1.06);
}

.service-body {
  padding: 34px 38px 42px;
}

.service-card:hover {
  background: var(--ivory);
  transform: translateY(-6px);
  box-shadow: 0 24px 40px -28px rgba(43, 39, 31, 0.35);
  z-index: 1;
}

.service-index {
  display: inline-block;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1rem;
  color: var(--terracotta-deep);
  margin-bottom: 22px;
  transition: transform 0.4s var(--ease);
}

.service-card:hover .service-index {
  transform: translateX(4px);
}

.service-grid .service-card.reveal:nth-child(1) { transition-delay: 0.05s; }
.service-grid .service-card.reveal:nth-child(2) { transition-delay: 0.12s; }
.service-grid .service-card.reveal:nth-child(3) { transition-delay: 0.19s; }
.service-grid .service-card.reveal:nth-child(4) { transition-delay: 0.26s; }

.service-card h3 {
  font-size: 1.35rem;
  font-weight: 500;
  margin-bottom: 12px;
}

.service-card p {
  font-size: 0.98rem;
  color: var(--charcoal-soft);
}

/* ---------- Photo break ---------- */
.photo-break {
  padding: 0;
  height: 62vh;
  min-height: 380px;
  overflow: hidden;
}

.photo-break img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  transform: scale(1.02);
}

/* ---------- About ---------- */
.about { background: var(--ivory); }

.about-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 80px;
  align-items: start;
}

.about-visual {
  position: sticky;
  top: 140px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  padding-top: 20px;
}

.about-photo {
  position: relative;
  width: 100%;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 30px 60px -24px rgba(43, 39, 31, 0.35);
}

.about-photo img {
  width: 100%;
  height: 460px;
  object-fit: cover;
  object-position: center 20%;
  display: block;
}

.breath-ring {
  width: 108px;
  height: 108px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  right: -24px;
  bottom: -24px;
  background:
    radial-gradient(circle at 50% 50%, rgba(217, 167, 85, 0.18), transparent 65%),
    var(--ivory);
  box-shadow: 0 14px 30px -12px rgba(43, 39, 31, 0.4);
}

.breath-ring::before {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: 50%;
  border: 1px solid var(--line);
}

.breath-ring-core {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--sun), var(--terracotta) 70%);
  animation: breathe 8s ease-in-out infinite;
  box-shadow: 0 0 24px -4px rgba(193, 122, 82, 0.55);
}

@keyframes breathe {
  0%, 100% { transform: scale(0.82); opacity: 0.85; }
  50% { transform: scale(1.14); opacity: 1; }
}

.breath-label {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--sage-deep);
  letter-spacing: 0.04em;
  padding-left: 4px;
}

.about-copy h2 {
  font-size: clamp(2rem, 3.4vw, 2.7rem);
  margin-bottom: 26px;
  max-width: 14ch;
}

.about-copy p {
  color: var(--charcoal-soft);
  font-size: 1.05rem;
  margin-bottom: 22px;
}

.pull-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  color: var(--sage-deep);
  line-height: 1.5;
  border-left: 2px solid var(--terracotta);
  padding: 6px 0 6px 26px;
  margin: 38px 0;
  max-width: 44ch;
}

/* ---------- Stats ---------- */
.stats {
  background: var(--ivory-soft);
  padding: 80px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.stat {
  text-align: center;
  padding: 0 24px;
  border-left: 1px solid var(--line);
}

.stat:first-child { border-left: none; }

.stat-number {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.2rem, 4.2vw, 3.2rem);
  color: var(--terracotta-deep);
  line-height: 1;
}

.stat-unit {
  font-size: 0.42em;
  font-style: italic;
  margin-left: 4px;
  color: var(--sage-deep);
}

.stat-label {
  margin-top: 14px;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  color: var(--charcoal-soft);
}

/* ---------- Testimonials ---------- */
.testimonials { background: var(--ivory); }

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.testimonial-card {
  background: var(--ivory-soft);
  border-radius: 16px;
  border-left: 2px solid var(--terracotta);
  padding: 38px 34px;
  display: flex;
  flex-direction: column;
}

.testimonial-card.reveal {
  transition: opacity 0.7s var(--ease), transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 36px -26px rgba(43, 39, 31, 0.35);
}

.testimonial-title {
  font-family: var(--font-display);
  font-style: normal;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--terracotta-deep);
  margin-bottom: 16px;
  line-height: 1.3;
}

.testimonial-excerpt,
.testimonial-full {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 0.98rem;
  line-height: 1.6;
  color: var(--charcoal-soft);
}

.testimonial-excerpt { margin-bottom: 6px; }
.testimonial-full { margin: 0; }

.testimonial-full-wrap {
  display: grid;
  grid-template-rows: 0fr;
  overflow: hidden;
  transition: grid-template-rows 0.5s var(--ease);
}
.testimonial-full-wrap.is-open { grid-template-rows: 1fr; }

.testimonial-full-inner {
  overflow: hidden;
  padding-bottom: 18px;
}

.testimonial-toggle {
  display: inline-block;
  align-self: flex-start;
  background: none;
  border: none;
  padding: 0;
  margin-top: auto;
  padding-top: 18px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  color: var(--terracotta-deep);
  cursor: pointer;
  position: relative;
}

.testimonial-toggle::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s var(--ease);
}

.testimonial-toggle:hover::after,
.testimonial-toggle:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.testimonial-toggle:focus-visible {
  outline: 2px solid var(--sun);
  outline-offset: 4px;
}

.testimonial-card cite {
  display: block;
  font-style: normal;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  color: var(--terracotta-deep);
  font-weight: 500;
}

.testimonial-card cite span {
  display: block;
  color: var(--charcoal-soft);
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  margin-top: 4px;
}

.testimonial-grid .testimonial-card.reveal:nth-child(1) { transition-delay: 0.05s; }
.testimonial-grid .testimonial-card.reveal:nth-child(2) { transition-delay: 0.14s; }
.testimonial-grid .testimonial-card.reveal:nth-child(3) { transition-delay: 0.23s; }

/* ---------- CTA ---------- */
.cta {
  background: var(--charcoal);
  color: var(--ivory);
  text-align: center;
  padding: 140px 0;
  overflow: hidden;
  position: relative;
}

.cta::before {
  content: "";
  position: absolute;
  top: -30%;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 900px;
  background: radial-gradient(circle, rgba(217, 167, 85, 0.16), transparent 60%);
  pointer-events: none;
}

.cta .eyebrow { color: var(--sun); }

.cta h2 {
  font-size: clamp(2.1rem, 4.2vw, 3.4rem);
  color: var(--ivory);
  max-width: 620px;
  margin: 0 auto 20px;
  position: relative;
}

.cta-lede {
  color: rgba(250, 246, 239, 0.78);
  max-width: 480px;
  margin: 0 auto 40px;
  position: relative;
}

.cta .btn-primary { position: relative; }

.cta-note {
  margin-top: 24px;
  font-size: 0.88rem;
  color: rgba(250, 246, 239, 0.55);
  position: relative;
}

/* ---------- Footer ---------- */
footer {
  padding: 34px 0;
  background: var(--ivory-soft);
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--charcoal-soft);
}

.footer-inner a {
  transition: color 0.2s ease;
}
.footer-inner a:hover { color: var(--terracotta-deep); }

.ig-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--terracotta-deep);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  transition: color 0.25s ease, transform 0.25s var(--ease);
}
.ig-link svg { flex-shrink: 0; transition: transform 0.3s var(--ease); }
.ig-link:hover,
.ig-link:focus-visible {
  color: var(--sun);
  transform: translateY(-1px);
}
.ig-link:hover svg,
.ig-link:focus-visible svg { transform: scale(1.1) rotate(-6deg); }
.ig-link:focus-visible { outline: 2px solid var(--sun); outline-offset: 4px; }

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px) scale(0.985);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* stagger children within hero and cta on load */
.hero .reveal:nth-child(1) { transition-delay: 0.05s; }
.hero .reveal:nth-child(2) { transition-delay: 0.15s; }
.hero .reveal:nth-child(3) { transition-delay: 0.25s; }
.hero .reveal:nth-child(4) { transition-delay: 0.35s; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .nav-links {
    position: fixed;
    inset: 0 0 0 auto;
    height: 100svh;
    width: min(78vw, 340px);
    background: var(--ivory);
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 30px;
    padding: 40px;
    font-size: 1.3rem;
    font-family: var(--font-display);
    transform: translateX(100%);
    transition: transform 0.4s var(--ease);
    box-shadow: -20px 0 60px -20px rgba(0,0,0,0.2);
  }
  .nav-links.is-open { transform: translateX(0); }
  .nav-toggle { display: flex; }

  section { padding: 88px 0; }
  .photo-break { height: 46vh; min-height: 280px; }

  .service-grid { grid-template-columns: 1fr; border-radius: 14px; }
  .service-photo { height: 220px; }
  .service-photo--tall { height: 300px; }
  .service-body { padding: 30px 26px 36px; }

  .about-grid { grid-template-columns: 1fr; gap: 44px; }
  .about-visual { position: static; align-items: stretch; }
  .about-photo img { height: 320px; }
  .breath-ring { width: 84px; height: 84px; right: -14px; bottom: -14px; }
  .breath-ring::before { inset: 9px; }
  .breath-ring-core { width: 40px; height: 40px; }

  .pull-quote { padding-left: 20px; }

  .stats { padding: 56px 0; }
  .stats-grid { grid-template-columns: 1fr; gap: 32px; }
  .stat { border-left: none; border-top: 1px solid var(--line); padding: 28px 0 0; }
  .stat:first-child { border-top: none; padding-top: 0; }

  .testimonial-grid { grid-template-columns: 1fr; gap: 20px; }
  .testimonial-card { padding: 32px 26px; }

  .footer-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .hero-content h1 { font-size: clamp(2.6rem, 13vw, 3.6rem); }
  .btn { padding: 14px 26px; font-size: 0.88rem; }
  .scroll-hint { display: none; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
  .hero-image { transform: none !important; }
  .breath-ring-core { animation: none; transform: scale(1); }
}

/* ================= Refinements ================= */

/* Hero: a second, much slower light drift layered under the existing glow.
   Different duration to heroGlow so they never sync into a pulse. */
.hero-scrim::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 20% 85%, rgba(217, 167, 85, 0.16), transparent 55%);
  opacity: 0;
  animation: heroEmber 19s ease-in-out infinite;
  pointer-events: none;
}
@keyframes heroEmber {
  0%, 100% { opacity: 0.25; transform: translate3d(0, 0, 0); }
  50%      { opacity: 0.6;  transform: translate3d(1.5%, -1.5%, 0); }
}

/* Hero parallax, driven by --scroll set in JS. Transform only, no layout. */
.hero-image {
  transform: scale(1.08) translate3d(0, calc(var(--scroll, 0) * 42px), 0);
}

/* Buttons: soften the press, add a light sweep on hover */
.btn {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,0.22) 50%, transparent 65%);
  transform: translateX(-120%);
  transition: transform 0.65s var(--ease);
  z-index: -1;
}
.btn:hover::before { transform: translateX(120%); }
.btn:active { transform: translateY(-1px) scale(0.985); }

/* Stats: stagger in, and give the numbers room to animate without reflow */
.stat { opacity: 0; transform: translateY(14px); transition: opacity 0.7s var(--ease), transform 0.55s var(--ease); }
.stat.is-visible { opacity: 1; transform: none; }
.stats-grid .stat:nth-child(1) { transition-delay: 0.05s; }
.stats-grid .stat:nth-child(2) { transition-delay: 0.15s; }
.stats-grid .stat:nth-child(3) { transition-delay: 0.25s; }
.stat-number { font-variant-numeric: tabular-nums; }

/* Consistent keyboard focus on everything interactive, not just buttons */
.service-card:focus-within {
  box-shadow: 0 0 0 2px var(--sun), 0 18px 40px -22px rgba(0,0,0,0.4);
}
.testimonial-toggle:focus-visible,
.nav-links a:focus-visible,
.brand:focus-visible,
.ig-link:focus-visible,
.scroll-hint:focus-visible {
  outline: 2px solid var(--sun);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Photo break: very slight lift so it does not sit flat against the sections */
.photo-break img { transition: transform 1.2s var(--ease); }
.photo-break:hover img { transform: scale(1.02); }

/* Anything animating gets promoted only while it needs to be */
.hero-image, .hero-texture, .hero-scrim::after { backface-visibility: hidden; }

/* ---- Reduced motion: must stay last so it wins ---- */
@media (prefers-reduced-motion: reduce) {
  .hero-scrim::after { animation: none; opacity: 0.35; }
  .hero-image { transform: scale(1.08) !important; }
  .btn::before { display: none; }
  .btn:hover, .btn:active { transform: none; }
  .stat { opacity: 1; transform: none; transition: none; }
  .photo-break:hover img { transform: none; }
}
