/* ============================================================
   Fuentes & Hernández SA de CV — Hoja de estilos
   ============================================================ */

:root {
  --color-ink: #0D0F14;
  --color-slate: #1C2333;
  --color-fog: #F4F5F7;
  --color-paper: #FAFBFC;
  --color-gold: #B08D57;
  --color-gold-light: #D4B483;
  --color-muted: #6B7280;
  --color-border: #E2E5EA;

  --font-display: "Poppins", system-ui, -apple-system, sans-serif;
  --font-body: "Poppins", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", monospace;

  --container: 1200px;
  --gutter: clamp(20px, 5vw, 64px);
  --section-y: clamp(72px, 11vw, 140px);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-ink);
  background: var(--color-paper);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 { margin: 0; font-weight: 600; line-height: 1.12; }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; text-decoration: none; }
img, video { display: block; max-width: 100%; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }

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

/* ---- Typographic helpers ---- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-gold);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--color-gold);
}
.display {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(30px, 4.2vw, 46px);
  letter-spacing: -0.015em;
  max-width: 18ch;
}
.lead { color: var(--color-muted); font-size: clamp(17px, 1.6vw, 19px); max-width: 56ch; }

.gold-rule {
  width: 24px;
  height: 2px;
  background: var(--color-gold);
  border: 0;
  margin: 0;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 15px;
  line-height: 1;
  padding: 15px 26px;
  border-radius: 2px;
  border: 1px solid transparent;
  transition: background .3s var(--ease), color .3s var(--ease),
              border-color .3s var(--ease), transform .3s var(--ease);
  white-space: nowrap;
}
.btn:focus-visible { outline: 2px solid var(--color-gold); outline-offset: 3px; }
.btn--gold { background: var(--color-gold); color: var(--color-ink); }
.btn--gold:hover { background: var(--color-gold-light); transform: translateY(-1px); }
.btn--outline { background: transparent; border-color: var(--color-gold); color: var(--color-gold); }
.btn--outline:hover { background: var(--color-gold); color: var(--color-ink); }
.btn--ghost-light { background: transparent; border-color: rgba(244,245,247,.4); color: var(--color-fog); }
.btn--ghost-light:hover { border-color: var(--color-gold); color: var(--color-gold); }
.btn .arrow { transition: transform .3s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

/* ============================================================
   NAVBAR
   ============================================================ */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background .4s var(--ease), border-color .4s var(--ease), box-shadow .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 76px;
}
.nav.is-stuck {
  background: rgba(250, 251, 252, 0.82);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border-bottom-color: var(--color-border);
}
.brand { display: flex; align-items: center; gap: 14px; line-height: 1; position: relative; }
.brand__logo { height: 48px; width: auto; display: block; transition: opacity .4s var(--ease); }
.brand__logo--dark { position: absolute; top: 0; left: 0; opacity: 0; pointer-events: none; }
.nav.is-stuck .brand__logo--light { opacity: 0; }
.nav.is-stuck .brand__logo--dark { opacity: 1; }
.brand__sub {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  white-space: nowrap;
  padding-left: 14px;
  border-left: 1px solid rgba(244,245,247,.28);
  color: rgba(244,245,247,.6);
  transition: color .4s var(--ease), border-color .4s var(--ease);
}
.nav.is-stuck .brand__sub { color: var(--color-muted); border-left-color: var(--color-border); }

.nav__links { display: flex; align-items: center; gap: 30px; }
.nav__link {
  font-size: 14.5px;
  font-weight: 500;
  color: rgba(244,245,247,.82);
  position: relative;
  padding: 4px 0;
  transition: color .3s var(--ease);
}
.nav__link::after {
  content: ""; position: absolute; left: 0; bottom: -2px;
  width: 0; height: 1px; background: var(--color-gold);
  transition: width .3s var(--ease);
}
.nav__link:hover { color: var(--color-fog); }
.nav__link:hover::after { width: 100%; }
.nav.is-stuck .nav__link { color: var(--color-slate); }
.nav.is-stuck .nav__link:hover { color: var(--color-ink); }

.nav__right { display: flex; align-items: center; gap: 16px; }

.lang-toggle {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(244,245,247,.35);
  border-radius: 2px;
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 12px;
  transition: border-color .4s var(--ease);
}
.nav.is-stuck .lang-toggle { border-color: var(--color-border); }
.lang-toggle button {
  background: transparent;
  border: 0;
  padding: 7px 11px;
  color: rgba(244,245,247,.7);
  letter-spacing: 0.05em;
  transition: background .25s var(--ease), color .25s var(--ease);
}
.nav.is-stuck .lang-toggle button { color: var(--color-muted); }
.lang-toggle button.is-active { background: var(--color-gold); color: var(--color-ink); }

.nav__cta { display: inline-flex; }

.nav__burger {
  display: none;
  background: transparent; border: 0; padding: 8px;
  flex-direction: column; gap: 5px;
}
.nav__burger span {
  width: 24px; height: 2px; background: var(--color-fog);
  transition: background .4s var(--ease), transform .3s var(--ease), opacity .3s var(--ease);
}
.nav.is-stuck .nav__burger span { background: var(--color-ink); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  text-align: center;
  overflow: hidden;
  color: var(--color-fog);
}
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__media video {
  width: 100%; height: 100%; object-fit: cover;
}
/* Hero carousel — crossfade */
.hero__carousel { position: absolute; inset: 0; }
.hero__slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center 40%;
  opacity: 0;
  transition: opacity 1.4s var(--ease);
  will-change: opacity;
}
.hero__slide.is-active { opacity: 1; }
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* Progress dots */
.hero__dots {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  z-index: 3; display: flex; gap: 10px;
}
.hero__dot {
  width: 32px; height: 3px; border-radius: 2px;
  background: rgba(244,245,247,.35);
  border: 0; padding: 0; cursor: pointer;
  position: relative; overflow: hidden;
  transition: background .3s var(--ease);
}
.hero__dot::after {
  content: ""; position: absolute; inset: 0;
  background: var(--color-gold);
  transform: scaleX(0); transform-origin: left;
  transition: none;
}
.hero__dot.is-active::after {
  transform: scaleX(1);
  transition: transform 5s linear;
}
.hero__dot:hover { background: rgba(244,245,247,.55); }
.hero__overlay {
  position: absolute; inset: 0; z-index: 1;
  background: rgba(13,15,20,0.55);
}
.hero__overlay::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(13,15,20,.5) 0%, rgba(13,15,20,.15) 30%, rgba(13,15,20,.55) 100%);
}
.hero__content {
  position: relative; z-index: 2;
  padding: 120px var(--gutter) 90px;
  max-width: 980px;
  margin-inline: auto;
}
.hero__eyebrow {
  font-family: var(--font-mono);
  font-size: 12px; letter-spacing: .24em; text-transform: uppercase;
  color: var(--color-gold-light);
  display: inline-block; margin-bottom: 30px;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(40px, 7.2vw, 72px);
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin-bottom: 26px;
}
.hero__sub {
  font-size: clamp(17px, 2.2vw, 20px);
  color: var(--color-fog);
  max-width: 58ch; margin: 0 auto 38px;
  line-height: 1.6;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; }
.hero__micro {
  margin-top: 26px;
  font-family: var(--font-mono);
  font-size: 12.5px; letter-spacing: .04em;
  color: rgba(244,245,247,.72);
}
.hero__micro b { color: var(--color-gold-light); font-weight: 500; }
.hero__scroll {
  position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%);
  z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .2em;
  color: rgba(244,245,247,.55);
}
.hero__scroll i {
  width: 1px; height: 38px;
  background: linear-gradient(var(--color-gold), transparent);
  animation: scrollpulse 2.4s var(--ease) infinite;
}
@keyframes scrollpulse { 0%,100%{ opacity:.3; transform: scaleY(.7);} 50%{ opacity:1; transform: scaleY(1);} }
@media (prefers-reduced-motion: reduce){ .hero__scroll i { animation: none; } }

/* ============================================================
   SECTION SHELLS
   ============================================================ */
.section { padding-block: var(--section-y); }
.section--fog { background: var(--color-fog); }
.section--paper { background: var(--color-paper); }
.section--slate { background: var(--color-slate); color: var(--color-fog); }
.section--ink { background: var(--color-ink); color: var(--color-fog); }
.section__head { max-width: 760px; margin-bottom: clamp(44px, 6vw, 72px); }
.section__head .eyebrow { margin-bottom: 22px; }

/* ============================================================
   3 — PROBLEMA
   ============================================================ */
.problem__quotes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(28px, 4vw, 56px);
  margin-bottom: clamp(48px, 6vw, 72px);
}
.qcard { position: relative; padding-top: 18px; }
.qcard__mark {
  font-family: var(--font-display);
  font-size: 72px; line-height: 0.6;
  color: var(--color-gold);
  display: block; height: 34px;
}
.qcard p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(19px, 2.1vw, 23px);
  line-height: 1.4;
  color: var(--color-slate);
}
.problem__reframe {
  border-top: 1px solid var(--color-border);
  padding-top: clamp(36px, 4vw, 48px);
  display: grid; grid-template-columns: 1fr 1.4fr;
  gap: clamp(24px, 5vw, 64px); align-items: start;
}
.problem__reframe h3 {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 34px);
  letter-spacing: -0.01em; line-height: 1.2;
}
.problem__reframe p { font-size: 18px; color: var(--color-slate); }
.problem__reframe b { color: var(--color-ink); font-weight: 600; }

/* ============================================================
   4 — SOLUCIÓN
   ============================================================ */
.solution__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(32px, 4.5vw, 64px);
}
.scol { padding-top: 30px; border-top: 1px solid var(--color-border); }
.scol__icon {
  width: 40px; height: 40px; color: var(--color-gold);
  margin-bottom: 24px;
}
.scol__icon svg { width: 100%; height: 100%; stroke: currentColor; stroke-width: 1.25; fill: none; }
.scol h3 {
  font-size: 21px; font-weight: 600; letter-spacing: -0.01em;
  margin-bottom: 12px;
}
.scol p { color: var(--color-muted); font-size: 16.5px; }

/* ============================================================
   5 — SERVICIOS
   ============================================================ */
.services__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.07);
}
.scard {
  background: var(--color-slate);
  padding: clamp(28px, 3vw, 40px) clamp(24px, 2.4vw, 34px);
  min-height: 220px;
  display: flex; flex-direction: column;
  position: relative;
  border: 1px solid transparent;
  transition: transform .3s var(--ease), background .3s var(--ease), border-color .3s var(--ease);
}
.scard::after {
  content: ""; position: absolute; inset: 0;
  border: 1px solid var(--color-gold);
  opacity: 0; transition: opacity .3s var(--ease);
  pointer-events: none;
}
.scard:hover { transform: translateY(-2px); background: #20283b; }
.scard:hover::after { opacity: 1; }
.scard__num {
  font-family: var(--font-mono);
  font-size: 12px; color: var(--color-gold);
  letter-spacing: .1em; margin-bottom: auto;
}
.scard h3 {
  font-family: var(--font-display);
  font-size: 23px; font-weight: 600;
  margin: 38px 0 12px; color: var(--color-fog);
}
.scard p { font-size: 15px; color: rgba(244,245,247,.62); line-height: 1.55; }
/* the 8th cell is a CTA tile */
.scard--cta {
  background: var(--color-ink);
  justify-content: center; gap: 16px;
}
.scard--cta h3 { margin: 0; }
.scard--cta:hover { transform: translateY(-2px); background: #0a0c11; }

/* ============================================================
   IMAGE BREAK — atmospheric strip between sections
   ============================================================ */
.img-break { position: relative; height: clamp(220px, 24vw, 320px); overflow: hidden; }
.img-break__inner {
  position: absolute; inset: -20px;
  background: url("assets/team-meeting.png") center 45% / cover no-repeat;
}
.img-break::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, var(--color-slate) 0%, rgba(28,35,51,.55) 30%, rgba(28,35,51,.55) 70%, var(--color-ink) 100%);
  pointer-events: none;
}

/* ============================================================
   6 — STATS
   ============================================================ */
.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(24px, 4vw, 48px);
}
.stat { text-align: center; padding: 12px 0; }
.stat__num {
  font-family: var(--font-mono);
  font-size: clamp(44px, 6vw, 72px);
  font-weight: 600;
  color: var(--color-gold);
  line-height: 1; letter-spacing: -0.02em;
  display: flex; align-items: baseline; justify-content: center;
}
.stat__suffix { color: var(--color-gold-light); }
.stat__label {
  margin-top: 16px; font-size: 14.5px;
  color: rgba(244,245,247,.74); letter-spacing: .01em;
}
.stat + .stat { border-left: 1px solid rgba(255,255,255,.08); }

/* ============================================================
   7 — COMPORTAMIENTO POST-USO
   ============================================================ */
.behavior {
  display: grid;
  grid-template-columns: 7fr 3fr;
  gap: clamp(24px, 5vw, 64px);
}
.behavior__list { display: flex; flex-direction: column; gap: clamp(28px, 3.4vw, 44px); }
.bitem { display: grid; grid-template-columns: 24px 1fr; gap: 22px; align-items: start; }
.bitem i { width: 24px; height: 2px; background: var(--color-gold); margin-top: 19px; }
.bitem p {
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 32px);
  line-height: 1.25; letter-spacing: -0.01em;
  color: var(--color-slate);
}
.behavior__aside { display: flex; align-items: stretch; }
.behavior__photo {
  width: 100%; border-radius: 4px; overflow: hidden;
  position: relative;
}
.behavior__photo img {
  width: 100%; height: 100%; object-fit: cover;
  object-position: 70% 55%; display: block;
}
.behavior__photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(176,141,87,.12) 0%, transparent 60%);
  pointer-events: none;
}

/* ============================================================
   9 — CTA AGENDAR
   ============================================================ */
.schedule { text-align: center; }
.schedule__head { max-width: 720px; margin: 0 auto clamp(40px, 5vw, 56px); display: flex; flex-direction: column; align-items: center; gap: 18px; }
.schedule h2 {
  font-family: var(--font-display);
  font-size: clamp(32px, 4.6vw, 52px);
  letter-spacing: -0.02em; line-height: 1.14; margin: 0;
}
.schedule__sub { color: rgba(244,245,247,.74); font-size: 19px; max-width: 54ch; margin: 0 auto; }
.schedule__widget {
  max-width: 760px; margin: 0 auto;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 4px;
  background: rgba(255,255,255,.02);
  min-height: 280px;
  display: grid; place-items: center;
  padding: 48px 24px;
  position: relative;
  overflow: hidden;
}
.schedule__widget::before {
  content: ""; position: absolute; inset: 0;
  background-image: repeating-linear-gradient(135deg, rgba(176,141,87,.06) 0 1px, transparent 1px 16px);
}
.schedule__widget-inner { position: relative; text-align: center; }
.schedule__widget-tag {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .12em;
  color: var(--color-gold); margin-bottom: 14px;
}
.schedule__widget p { color: rgba(244,245,247,.6); font-size: 14.5px; max-width: 42ch; margin: 0 auto; }
.schedule__micro { margin-top: 30px; font-family: var(--font-mono); font-size: 12.5px; color: rgba(244,245,247,.6); }

/* ============================================================
   10 — FAQ
   ============================================================ */
.faq { max-width: 860px; margin-inline: auto; }
.faq__item { border-top: 1px solid var(--color-border); }
.faq__item:last-child { border-bottom: 1px solid var(--color-border); }
.faq__q {
  width: 100%; background: transparent; border: 0;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 28px 0; text-align: left;
  font-family: var(--font-body); font-size: clamp(17px, 1.9vw, 20px); font-weight: 500;
  color: var(--color-ink);
}
.faq__q:hover { color: var(--color-gold); }
.faq__icon { position: relative; width: 16px; height: 16px; flex-shrink: 0; }
.faq__icon::before, .faq__icon::after {
  content: ""; position: absolute; background: var(--color-gold);
  transition: transform .35s var(--ease), opacity .35s var(--ease);
}
.faq__icon::before { top: 7px; left: 0; width: 16px; height: 2px; }
.faq__icon::after { left: 7px; top: 0; width: 2px; height: 16px; }
.faq__item.is-open .faq__icon::after { transform: scaleY(0); opacity: 0; }
.faq__a {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows .4s var(--ease);
}
.faq__a-inner { overflow: hidden; }
.faq__item.is-open .faq__a { grid-template-rows: 1fr; }
.faq__a p {
  padding: 0 0 30px; color: var(--color-muted); font-size: 16.5px; max-width: 64ch;
  border-top: 1px solid transparent;
}
.faq__item.is-open .faq__q { color: var(--color-gold); }

/* ============================================================
   11 — FOOTER
   ============================================================ */
.footer { background: var(--color-ink); color: var(--color-fog); position: relative; }
.footer__rule { height: 2px; background: linear-gradient(90deg, var(--color-gold), var(--color-gold-light)); }
.footer__main {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: clamp(32px, 4vw, 56px);
  padding-block: clamp(56px, 7vw, 88px);
}
.footer__brand .brand__mark { color: var(--color-fog); }
.footer__logo { height: 72px; width: auto; display: block; margin-bottom: 4px; }
.footer__brand p { color: rgba(244,245,247,.6); font-size: 15px; margin-top: 18px; max-width: 32ch; }
.footer__col h4 {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--color-gold); margin-bottom: 18px;
}
.footer__col a { display: block; color: rgba(244,245,247,.72); font-size: 15px; padding: 6px 0; transition: color .25s var(--ease); }
.footer__col a:hover { color: var(--color-gold-light); }
.footer__social { display: flex; gap: 12px; margin-top: 6px; }
.footer__social a {
  width: 42px; height: 42px; border: 1px solid rgba(244,245,247,.2);
  border-radius: 2px; display: grid; place-items: center;
  transition: border-color .25s var(--ease), background .25s var(--ease);
}
.footer__social a:hover { border-color: var(--color-gold); background: rgba(176,141,87,.1); }
.footer__social svg { width: 19px; height: 19px; fill: currentColor; color: rgba(244,245,247,.8); }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-block: 26px;
  display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; justify-content: space-between;
  font-size: 13px; color: rgba(244,245,247,.5);
}
.footer__bottom a:hover { color: var(--color-gold-light); }
.footer__bottom .mono { font-family: var(--font-mono); letter-spacing: .04em; }

/* ============================================================
   WHATSAPP FLOAT
   ============================================================ */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25D366; color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.wa-float:hover { transform: translateY(-3px) scale(1.04); box-shadow: 0 16px 40px rgba(37,211,102,.4); }
.wa-float svg { width: 30px; height: 30px; fill: currentColor; }
.wa-float::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%;
  border: 2px solid rgba(37,211,102,.45);
  animation: waPulse 2.6s var(--ease) infinite;
}
@keyframes waPulse { 0%{ transform: scale(.9); opacity: .8;} 100%{ transform: scale(1.4); opacity: 0;} }
@media (prefers-reduced-motion: reduce){ .wa-float::after { animation: none; } }

/* ============================================================
   QUOTE MODAL
   ============================================================ */
.modal {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-items: center;
  padding: 24px;
  visibility: hidden; opacity: 0;
  transition: opacity .3s var(--ease), visibility .3s var(--ease);
}
.modal.is-open { visibility: visible; opacity: 1; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(13,15,20,.62); backdrop-filter: blur(4px); }
.modal__panel {
  position: relative; z-index: 1;
  width: min(620px, 100%);
  max-height: 90svh; overflow-y: auto;
  background: var(--color-paper);
  border-radius: 4px;
  border-top: 3px solid var(--color-gold);
  padding: clamp(28px, 4vw, 44px);
  transform: translateY(16px) scale(.98);
  transition: transform .35s var(--ease);
  box-shadow: 0 40px 80px rgba(13,15,20,.35);
}
.modal.is-open .modal__panel { transform: translateY(0) scale(1); }
.modal__close {
  position: absolute; top: 18px; right: 18px;
  width: 38px; height: 38px; border-radius: 2px;
  background: transparent; border: 1px solid var(--color-border);
  color: var(--color-muted); font-size: 18px; line-height: 1;
  display: grid; place-items: center;
  transition: border-color .25s var(--ease), color .25s var(--ease);
}
.modal__close:hover { border-color: var(--color-gold); color: var(--color-ink); }
.modal__eyebrow { margin-bottom: 14px; }
.modal h3 { font-family: var(--font-display); font-size: clamp(24px, 3.2vw, 32px); letter-spacing: -0.01em; margin-bottom: 8px; }
.modal__intro { color: var(--color-muted); font-size: 15.5px; margin-bottom: 26px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13px; font-weight: 500; margin-bottom: 7px; color: var(--color-slate); }
.field label .opt { color: var(--color-muted); font-weight: 400; font-family: var(--font-mono); font-size: 11px; }
.field input, .field textarea {
  width: 100%; font-family: var(--font-body); font-size: 15px;
  padding: 13px 15px; color: var(--color-ink);
  background: #fff; border: 1px solid var(--color-border); border-radius: 2px;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--color-gold);
  box-shadow: 0 0 0 3px rgba(176,141,87,.14);
}
.field textarea { resize: vertical; min-height: 92px; }
.field--row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.checks { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 18px; margin-top: 4px; }
.check {
  display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--color-slate); cursor: pointer;
  padding: 8px 0;
}
.check input { width: 17px; height: 17px; accent-color: var(--color-gold); flex-shrink: 0; }
.modal__submit { width: 100%; justify-content: center; margin-top: 10px; }
.modal__note { font-family: var(--font-mono); font-size: 11px; color: var(--color-muted); text-align: center; margin-top: 14px; letter-spacing: .02em; }
.form-success {
  text-align: center; padding: 24px 0;
}
.form-success .tick {
  width: 56px; height: 56px; border-radius: 50%; margin: 0 auto 20px;
  border: 2px solid var(--color-gold); color: var(--color-gold);
  display: grid; place-items: center; font-size: 26px;
}
.form-success h3 { margin-bottom: 10px; }
.form-success p { color: var(--color-muted); }

/* ============================================================
   REVEAL ANIMATIONS
   Content is ALWAYS visible (opacity:1). The entrance animates
   transform only, so if a frozen/hidden document never advances
   the timeline, content shows (just un-shifted) instead of blank.
   ============================================================ */
@keyframes revealIn {
  from { transform: translateY(26px); }
  to   { transform: translateY(0); }
}
.reveal { opacity: 1; }
.js-anim .reveal.is-in { animation: revealIn .8s var(--ease) both; }
.js-anim .reveal.is-in[data-delay="1"] { animation-delay: .08s; }
.js-anim .reveal.is-in[data-delay="2"] { animation-delay: .16s; }
.js-anim .reveal.is-in[data-delay="3"] { animation-delay: .24s; }
.js-anim .reveal.is-in[data-delay="4"] { animation-delay: .32s; }
@media (prefers-reduced-motion: reduce){
  .js-anim .reveal.is-in { animation: none; }
}
/* Hard failsafe */
.force-reveal .reveal { opacity: 1 !important; animation: none !important; transform: none !important; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .footer__main { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: flex; }
  .nav__mobile {
    position: fixed; inset: 76px 0 auto 0;
    background: rgba(250,251,252,.97);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--color-border);
    display: grid; gap: 4px; padding: 18px var(--gutter) 26px;
    transform: translateY(-12px); opacity: 0; visibility: hidden;
    transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s var(--ease);
  }
  .nav__mobile.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav__mobile a { padding: 13px 0; font-size: 17px; font-weight: 500; color: var(--color-slate); border-bottom: 1px solid var(--color-border); }
  .nav__mobile .btn { margin-top: 14px; justify-content: center; }

  .problem__quotes { grid-template-columns: 1fr; gap: 30px; }
  .problem__reframe { grid-template-columns: 1fr; }
  .solution__grid { grid-template-columns: 1fr; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); gap: 36px 24px; }
  .stat + .stat { border-left: 0; }
  .stat:nth-child(2) { border-left: 1px solid rgba(255,255,255,.08); }
  .stat:nth-child(4) { border-left: 1px solid rgba(255,255,255,.08); }
  .behavior { grid-template-columns: 1fr; }
  .behavior__aside { display: block; margin-top: 32px; }
  .behavior__photo { height: 260px; border-radius: 4px; }
}
@media (max-width: 560px) {
  .services__grid { grid-template-columns: 1fr; }
  .footer__main { grid-template-columns: 1fr; gap: 36px; }
  .field--row, .checks { grid-template-columns: 1fr; }
  .stats__grid { grid-template-columns: 1fr; gap: 30px; }
  .stat + .stat, .stat:nth-child(n) { border-left: 0; padding-top: 26px; border-top: 1px solid rgba(255,255,255,.08); }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; justify-content: center; }
}

/* nav burger open state */
.nav__burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger.is-open span:nth-child(2) { opacity: 0; }
.nav__burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* mobile menu hidden on desktop */
.nav__mobile { display: none; }
@media (max-width: 860px) { .nav__mobile { display: grid; } }
