/* =============================================================
   CETPRO SHADAY — styles.css
   1. Tokens  2. Reset  3. Utilities  4. Typography  5. Components
   6. Sections  7. Effects  8. Responsive  9. Reduced-motion
   ============================================================= */

/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  /* Navy / gold institutional identity */
  --bg:        #0b1830;   /* deep warm-tinted navy, never pure black */
  --bg-2:      #0f2038;
  --bg-3:      #152a45;   /* card surface */
  --bg-4:      #1b3455;   /* card surface hover */
  --paper:     #f6f1e4;   /* cream paper — light sections */
  --paper-2:   #ece3cd;

  --cream:     #f3ede0;   /* text on dark, never pure white */
  --cream-2:   #d9cfb8;
  --cream-3:   #8fa0bd;   /* muted metadata on dark */

  --ink:       #12213a;   /* text on light paper sections */
  --ink-soft:  #253a5c;
  --ink-mute:  #5a6c8a;

  --gold:      #d5ac66;   /* primary accent */
  --gold-2:    #b98a3e;   /* deeper gold */
  --gold-soft: #e9cf9b;
  --wave-1:    #16304f;
  --wave-2:    #1e3d63;
  --wave-3:    #274a76;

  --line:      rgba(243, 237, 224, 0.14);
  --line-soft: rgba(18, 33, 58, 0.12);

  --serif: "Fraunces", "Georgia", serif;
  --sans:  "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;

  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft:   cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);

  --container: min(1180px, 92vw);
  --radius: 18px;
}

@property --mesh-angle { syntax: "<angle>"; inherits: false; initial-value: 0deg; }

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  tab-size: 2;
  scroll-behavior: smooth;
  overflow-x: clip;
}
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--cream);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
svg { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { text-wrap: balance; line-height: 1.05; letter-spacing: -0.01em; font-family: var(--serif); font-weight: 500; }
ul { list-style: none; padding: 0; }
::selection { background: var(--gold); color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: fixed; top: -100px; left: 1rem; z-index: 9999;
  padding: .7rem 1.1rem; background: var(--cream); color: var(--ink);
  border-radius: 8px; font-weight: 600;
}
.skip-link:focus { top: 1rem; }

html.nav-open { overflow: hidden; }

/* =============================================================
   3. Utilities
   ============================================================= */
.container { width: var(--container); margin-inline: auto; }
.section {
  position: relative;
  padding-top: clamp(6.5rem, 11vw, 8.5rem);
  padding-bottom: clamp(4.5rem, 9vw, 7.5rem);
  scroll-margin-top: 84px;
}
.section-light { background: var(--paper); color: var(--ink); }
.section-dark { background: var(--bg); color: var(--cream); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold);
}
.eyebrow::before {
  content: ""; width: 22px; height: 1px; background: var(--gold);
}
.section-head { max-width: 640px; margin-bottom: clamp(2.2rem, 5vw, 3.4rem); }
.section-head h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); font-style: italic; margin-top: .6rem; }
.section-light .eyebrow { color: var(--gold-2); }
.section-foot-link {
  display: inline-flex; align-items: center; gap: .5rem;
  font-weight: 600; font-size: .95rem;
  border-bottom: 1px solid currentColor; padding-bottom: 2px;
  transition: gap .35s var(--ease-out), opacity .3s;
}
.section-foot-link:hover { gap: .8rem; }

/* Pending-content marker — never fabricated copy, always visible as such */
.pending-note {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .78rem; font-style: italic; font-weight: 600;
  color: var(--gold-2);
  border: 1px dashed rgba(213, 172, 102, 0.55);
  border-radius: 999px; padding: .38rem .85rem;
  background: rgba(213, 172, 102, 0.06);
}
.pending-note svg { width: 13px; height: 13px; flex: none; }
.section-dark .pending-note { color: var(--gold); }

.placeholder-box {
  border: 1px dashed var(--line-soft);
  border-radius: var(--radius);
  display: grid; place-items: center; gap: .6rem;
  text-align: center; padding: 2.4rem 1.2rem;
  color: var(--ink-mute);
}
.section-dark .placeholder-box { border-color: var(--line); color: var(--cream-3); }
.placeholder-box svg { width: 28px; height: 28px; opacity: .7; }
.placeholder-box strong { font-family: var(--serif); font-style: italic; font-size: 1.05rem; color: inherit; }

/* =============================================================
   4. Typography
   ============================================================= */
.italic { font-style: italic; }
.lede { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--cream-2); max-width: 46ch; }
.section-light .lede { color: var(--ink-soft); }

/* =============================================================
   5. Components
   ============================================================= */

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .95rem 1.7rem; border-radius: 999px;
  font-weight: 700; font-size: .95rem; letter-spacing: .01em;
  white-space: nowrap;
  transition: transform .45s var(--ease-soft), box-shadow .45s var(--ease-soft), background-color .3s, color .3s, border-color .3s;
}
.btn-gold {
  background: linear-gradient(135deg, var(--gold-soft), var(--gold-2));
  color: #1b1204;
  box-shadow: 0 10px 28px -8px rgba(213, 172, 102, 0.55);
}
.btn-gold:hover { transform: translateY(-3px); box-shadow: 0 20px 40px -10px rgba(213, 172, 102, 0.6); }
.btn-ghost {
  background: transparent; color: var(--cream);
  border: 1px solid rgba(243, 237, 224, 0.35);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-soft); transform: translateY(-3px); }
.section-light .btn-ghost { color: var(--ink); border-color: rgba(18,33,58,0.28); }
.section-light .btn-ghost:hover { border-color: var(--gold-2); color: var(--gold-2); }
.btn-small { padding: .65rem 1.2rem; font-size: .82rem; }
.btn:active { transform: translateY(-1px); transition-duration: .12s; }

/* Icon badge */
.icon-badge {
  width: 52px; height: 52px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  background: radial-gradient(circle at 32% 28%, var(--bg-4), var(--bg-3));
  border: 1px solid rgba(213, 172, 102, 0.4);
  color: var(--gold);
}
.icon-badge svg { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 1.5; }
.section-light .icon-badge {
  background: radial-gradient(circle at 32% 28%, #fff, var(--paper-2));
  border-color: rgba(185, 138, 62, 0.45);
  color: var(--gold-2);
}

/* Cards */
.card {
  --rx: 0deg; --ry: 0deg;
  background: linear-gradient(165deg, var(--bg-3), var(--bg-2));
  color: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.9rem;
  transform: perspective(1000px) rotateX(var(--rx)) rotateY(var(--ry));
  transform-style: preserve-3d;
  transition: transform .55s var(--ease-soft), border-color .35s, box-shadow .45s var(--ease-soft);
}
.has-tilt:hover { transition-duration: .15s; }
.card:hover {
  border-color: rgba(213, 172, 102, 0.45);
  box-shadow: 0 40px 70px -30px rgba(0,0,0,0.55), 0 0 0 1px rgba(213,172,102,0.12);
}
.card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 1.1rem; }
.card-tag {
  font-size: .68rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  padding: .32rem .65rem; border-radius: 999px;
  background: rgba(213, 172, 102, 0.12); color: var(--gold);
  white-space: nowrap;
}
.card h3 { font-size: 1.28rem; margin-bottom: .35rem; }
.card p.card-desc { font-size: .92rem; color: var(--cream-3); margin-bottom: 1rem; }

.card-stats {
  display: flex; flex-wrap: wrap; gap: .5rem 1.4rem;
  padding-top: 1rem; margin-top: .3rem;
  border-top: 1px solid var(--line);
}
.card-stat { display: flex; flex-direction: column; gap: .1rem; }
.card-stat b { font-family: var(--serif); font-style: italic; font-size: 1.15rem; color: var(--gold-soft); }
.card-stat span { font-size: .7rem; letter-spacing: .05em; text-transform: uppercase; color: var(--cream-3); }
.card-res {
  margin-top: 1rem; font-size: .72rem; color: var(--cream-3);
  font-family: var(--sans); letter-spacing: .02em;
}

/* Grids */
.grid-cards {
  display: grid; grid-template-columns: 1fr; gap: 1.3rem;
}

/* Nav */
.nav {
  position: fixed; inset-inline: 0; top: 0; z-index: 200;
  transition: background-color .4s var(--ease-out), box-shadow .4s var(--ease-out), backdrop-filter .4s var(--ease-out);
}
.nav.is-scrolled {
  background: rgba(11, 24, 48, 0.86);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 1px 0 rgba(213,172,102,0.14);
}
.nav-inner {
  width: var(--container); margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between;
  padding-block: 1.1rem;
}
.brand { display: flex; align-items: center; gap: .7rem; }
.brand-mark {
  width: 42px; height: 42px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  background: radial-gradient(circle at 34% 28%, #1c3a5e, #0b1830);
  border: 1px solid var(--gold);
  color: var(--gold);
  font-family: var(--serif); font-style: italic; font-weight: 600; font-size: 1.1rem;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-family: var(--serif); font-style: italic; font-size: 1.02rem; letter-spacing: .01em; }
.brand-text span { font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; color: var(--cream-3); }

.nav-links { display: none; align-items: center; gap: 2.1rem; }
.nav-link { position: relative; font-size: .92rem; font-weight: 600; padding-block: .3rem; }
.nav-link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px;
  background: var(--gold); transform: scaleX(0); transform-origin: right;
  transition: transform .45s var(--ease-out);
}
.nav-link:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-cta-wrap { display: flex; align-items: center; gap: 1rem; }
.nav-cta-wrap .btn { display: none; }

.nav-toggle {
  display: grid; place-items: center; width: 42px; height: 42px;
  border: 1px solid var(--line); border-radius: 10px;
}
.nav-toggle span, .nav-toggle::before, .nav-toggle::after {
  content: ""; display: block; width: 18px; height: 1.5px; background: var(--cream);
  position: relative; transition: transform .3s var(--ease-out), opacity .3s;
}
.nav-toggle::before { transform: translateY(-5px); }
.nav-toggle::after { transform: translateY(4px); }
.nav-toggle[aria-expanded="true"] span { opacity: 0; }
.nav-toggle[aria-expanded="true"]::before { transform: translateY(0) rotate(45deg); }
.nav-toggle[aria-expanded="true"]::after { transform: translateY(-1.5px) rotate(-45deg); }

.nav-mobile {
  position: fixed; inset: 0; z-index: 190;
  background: var(--bg);
  display: grid; place-content: center; gap: 2rem;
  clip-path: inset(0 0 100% 0);
  transition: clip-path .6s var(--ease-soft);
}
.nav-mobile[aria-hidden="false"] { clip-path: inset(0); }
.nav-mobile ul { display: flex; flex-direction: column; gap: 1.4rem; text-align: center; }
.nav-mobile a { font-family: var(--serif); font-style: italic; font-size: 1.7rem; }
.nav-mobile .btn { margin-inline: auto; }

/* Forms */
.field { display: flex; flex-direction: column; gap: .45rem; }
.field label { font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--cream-3); }
.field input, .field textarea {
  background: rgba(243, 237, 224, 0.05);
  border: 1px solid var(--line);
  border-radius: 12px; padding: .85rem 1rem;
  color: var(--cream); font-family: var(--sans); font-size: .96rem;
  transition: border-color .3s, background-color .3s;
}
.field input:focus, .field textarea:focus { border-color: var(--gold); background: rgba(243,237,224,0.08); outline: none; }
.field textarea { resize: vertical; min-height: 120px; }

/* =============================================================
   6. Sections
   ============================================================= */

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding-top: 9rem;
  /* must clear .paper-waves (capped at clamp(5.6rem,12vw,10.6rem)) with margin to spare */
  padding-bottom: clamp(8.5rem, 15vw, 13.5rem);
  overflow: clip;
  isolation: isolate;
  background: var(--bg);
}
.hero-mesh {
  position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(55% 45% at 22% 18%, rgba(213,172,102,0.16), transparent 60%),
    conic-gradient(from var(--mesh-angle), rgba(39,74,118,0.55), rgba(21,42,69,0.2), rgba(213,172,102,0.14), rgba(39,74,118,0.55));
  filter: blur(90px) saturate(120%);
  opacity: .8;
  animation: meshShift 26s linear infinite;
}
@keyframes meshShift { to { --mesh-angle: 360deg; } }
.hero-inner { position: relative; width: var(--container); margin-inline: auto; max-width: 760px; }
.hero-kicker {
  display: inline-flex; align-items: center; gap: .6rem;
  font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold-soft); margin-bottom: 1.4rem;
}
.hero-kicker .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.hero h1 {
  font-size: clamp(2.5rem, 6.4vw, 4.6rem);
  max-width: 16ch;
  text-wrap: balance;
}
.hero h1 em { color: var(--gold-soft); }
.hero-sub {
  margin-top: 1.4rem; font-size: clamp(1.05rem, 1.7vw, 1.25rem);
  color: var(--cream-2); max-width: 52ch;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.3rem; }

.hero-stats {
  position: relative; z-index: 1;
  width: var(--container); margin: clamp(3rem, 6vw, 5rem) auto 0;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem 1.6rem;
}
.hero-stat b { display: block; font-family: var(--serif); font-style: italic; font-size: clamp(2rem, 3.4vw, 2.8rem); color: var(--gold-soft); }
.hero-stat span { font-size: .78rem; color: var(--cream-3); letter-spacing: .02em; }

/* Paper-cut waves — signature motif, layered SVG at hero base.
   Height is capped (not width-proportional) so it can never grow tall
   enough on wide/short viewports to intrude on the hero content above. */
.paper-waves {
  position: absolute; left: 0; right: 0; bottom: -2px; z-index: -1;
  height: clamp(5.6rem, 12vw, 10.6rem);
  overflow: hidden;
}
.paper-waves svg { position: absolute; left: 0; bottom: 0; width: 100%; height: 100%; display: block; }
.paper-waves .layer-1 { color: var(--wave-2); opacity: .5; transform: translateY(20%); }
.paper-waves .layer-2 { color: var(--wave-3); opacity: .85; transform: translateY(9%); }
.paper-waves .layer-3 { color: var(--paper); }
.wave-drift { animation: waveDrift 18s ease-in-out infinite; }
.wave-drift-slow { animation: waveDrift 26s ease-in-out infinite reverse; }
@keyframes waveDrift {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(-2.4%); }
}

/* --- About / Sobre nosotros --- */
.about-grid {
  display: grid; gap: 2.4rem;
}
.about-resolution {
  display: inline-flex; align-items: center; gap: .6rem;
  font-size: .82rem; font-weight: 700;
  padding: .55rem 1rem; border-radius: 999px;
  background: rgba(185, 138, 62, 0.09);
  border: 1px solid rgba(185, 138, 62, 0.3);
  color: var(--gold-2);
  margin-top: 1.3rem;
}
.director-card {
  display: flex; align-items: center; gap: 1.1rem;
  background: #fff; border: 1px solid var(--line-soft);
  border-radius: var(--radius); padding: 1.4rem;
  margin-top: 1.6rem;
}
.director-avatar {
  width: 58px; height: 58px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  background: linear-gradient(160deg, #fff, var(--paper-2));
  border: 1px solid rgba(185,138,62,0.4);
  color: var(--gold-2);
}
.director-avatar svg { width: 26px; height: 26px; }
.director-name { font-weight: 700; font-size: 1rem; }
.director-role { font-size: .82rem; color: var(--ink-mute); }

/* --- Mission / vision --- */
.mv-grid { display: grid; gap: 1.3rem; grid-template-columns: 1fr; }
.mv-card {
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 2.2rem;
  display: flex; flex-direction: column; gap: 1rem;
}
.mv-card h3 { font-size: 1.4rem; font-style: italic; }

/* --- Modalidades --- */
.modality-grid { display: grid; gap: 1.2rem; grid-template-columns: 1fr; margin-bottom: 2.4rem; }
.modality-card {
  background: var(--paper); color: var(--ink);
  border-radius: var(--radius); padding: 1.8rem;
  border: 1px solid var(--line-soft);
}
.section-dark .modality-card { background: var(--bg-3); color: var(--cream); border-color: var(--line); }
.turnos-row { display: flex; flex-wrap: wrap; gap: .7rem; }
.turno-pill {
  font-size: .85rem; font-weight: 700;
  padding: .55rem 1.1rem; border-radius: 999px;
  background: rgba(213,172,102,0.1); border: 1px solid rgba(213,172,102,0.3);
  color: var(--gold);
}

/* --- Admisión --- */
.steps-grid { display: grid; gap: 1.4rem; grid-template-columns: 1fr; counter-reset: step; }
.step-card { position: relative; padding-left: 3.6rem; }
.step-num {
  position: absolute; left: 0; top: 0;
  width: 2.6rem; height: 2.6rem; border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--gold-soft), var(--gold-2));
  color: #1b1204; font-family: var(--serif); font-style: italic; font-weight: 700; font-size: 1.1rem;
}
.step-card h3 { font-size: 1.15rem; margin-bottom: .4rem; }
.step-card p { color: var(--cream-3); font-size: .92rem; }
.admission-cta { margin-top: 2.6rem; display: flex; flex-wrap: wrap; align-items: center; gap: 1.2rem; }

/* --- Testimonios / Galería (empty states) --- */
.testi-grid, .gallery-grid { display: grid; gap: 1.2rem; grid-template-columns: repeat(2, 1fr); }
.gallery-grid { grid-template-columns: repeat(3, 1fr); }
.gallery-grid .placeholder-box { aspect-ratio: 4 / 5; }

.socials-row { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }
.social-pill {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .6rem 1.05rem; border-radius: 999px;
  border: 1px solid var(--line); font-size: .85rem; font-weight: 600;
  color: var(--cream-3); cursor: not-allowed;
}
.social-pill svg { width: 16px; height: 16px; }
.social-pill sup { font-style: italic; font-weight: 500; opacity: .8; margin-left: .15rem; }

/* --- Contacto --- */
.contact-grid { display: grid; gap: 2.4rem; grid-template-columns: 1fr; }
.contact-list { display: flex; flex-direction: column; gap: 1.2rem; margin-top: 1.6rem; }
.contact-item { display: flex; align-items: flex-start; gap: .9rem; }
.contact-item .icon-badge { width: 42px; height: 42px; }
.contact-item .icon-badge svg { width: 19px; height: 19px; }
.contact-item strong { display: block; font-size: .95rem; }
.contact-item span, .contact-item a { font-size: .88rem; color: var(--cream-3); }
.contact-item a:hover { color: var(--gold-soft); }
.map-frame {
  width: 100%; aspect-ratio: 4/3; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); filter: grayscale(0.15) contrast(1.05);
}
.map-frame iframe { width: 100%; height: 100%; border: 0; }
.contact-form-card {
  background: var(--bg-3); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.8rem;
}
.contact-form-card h3 { font-size: 1.2rem; margin-bottom: 1.3rem; }
.contact-form-card form { display: flex; flex-direction: column; gap: 1.1rem; }

/* --- Footer --- */
.footer { background: var(--bg-2); border-top: 1px solid var(--line); padding-block: 3.6rem 2rem; }
.footer-grid { display: grid; gap: 2.4rem; grid-template-columns: 1fr; }
.footer-brand p { color: var(--cream-3); font-size: .88rem; margin-top: 1rem; max-width: 34ch; }
.footer-col h4 { font-family: var(--sans); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); margin-bottom: 1rem; font-weight: 700; }
.footer-col ul { display: flex; flex-direction: column; gap: .65rem; }
.footer-col a { font-size: .9rem; color: var(--cream-2); }
.footer-col a:hover { color: var(--gold-soft); }
.footer-bottom {
  margin-top: 3rem; padding-top: 1.6rem; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem;
  font-size: .78rem; color: var(--cream-3);
}

/* Thin decorative wave hairline — bookends the paper-cut wave motif elsewhere on the page */
.wave-divider { line-height: 0; background: inherit; }
.wave-divider svg { width: 100%; height: 34px; display: block; }
.wave-divider path { fill: none; stroke: var(--gold); stroke-width: 1; opacity: .4; }

/* =============================================================
   7. Effects (misc, kept intentionally small — 4-5 signature effects)
   ============================================================= */
[data-reveal] {
  opacity: 0; transform: translateY(32px);
  transition: opacity .8s var(--ease-soft), transform .8s var(--ease-soft);
}
[data-reveal].is-revealed { opacity: 1; transform: none; }
[data-reveal][data-reveal-delay="1"] { transition-delay: .08s; }
[data-reveal][data-reveal-delay="2"] { transition-delay: .16s; }
[data-reveal][data-reveal-delay="3"] { transition-delay: .24s; }
[data-reveal][data-reveal-delay="4"] { transition-delay: .32s; }
[data-reveal][data-reveal-delay="5"] { transition-delay: .4s; }

/* =============================================================
   8. Responsive
   ============================================================= */
@media (min-width: 540px) {
  .mv-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-cards.cards-3 { grid-template-columns: repeat(2, 1fr); }
  .hero-stats { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 720px) {
  .about-grid { grid-template-columns: 1.1fr .9fr; }
  .modality-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: repeat(3, 1fr); }
  .contact-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1.3fr 1fr 1fr 1fr; }
}
@media (min-width: 960px) {
  .nav-links { display: flex; }
  .nav-cta-wrap .btn { display: inline-flex; }
  .nav-toggle { display: none; }
  .grid-cards.cards-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-cards.cards-5 { grid-template-columns: repeat(3, 1fr); }
  .testi-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1280px) {
  .grid-cards.cards-6 { grid-template-columns: repeat(3, 1fr); }
  .grid-cards.cards-5 { grid-template-columns: repeat(5, 1fr); }
  .gallery-grid { grid-template-columns: repeat(4, 1fr); }
}

/* =============================================================
   9. Reduced-motion — only the truly intrusive stuff
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-mesh { animation: none; }
  .wave-drift, .wave-drift-slow { animation: none; }
  /* Do NOT disable: tilt, hover, reveal fades, count-up, nav underline */
}
