/* ===== Instituto Santa María — design tokens ===== */
:root {
  --ism-blue-900: #0a1f4d;
  --ism-blue-800: #122a66;
  --ism-blue-700: #1e3a8a;
  --ism-blue-600: #2447a8;
  --ism-blue-500: #3b5fc9;
  --ism-blue-50:  #eef2ff;
  --ism-orange:   #f97316;
  --ism-orange-soft: #fb923c;
  --ism-orange-deep: #ea580c;
  --ism-gold:     #f59e0b;
  --ism-ink:      #0b1220;
  --ism-body:     #334155;
  --ism-muted:    #64748b;
  --ism-line:     #e5e7eb;
  --ism-paper:    #ffffff;
  --ism-cream:    #f8fafc;
  --ism-wa-green: #25d366;

  --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --sans:  'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --container: 1240px;
  --radius-sm: 6px;
  --radius:    12px;
  --radius-lg: 20px;

  --shadow-sm: 0 1px 2px rgba(10, 31, 77, .06), 0 1px 3px rgba(10, 31, 77, .05);
  --shadow:    0 6px 24px -8px rgba(10, 31, 77, .15), 0 2px 6px rgba(10, 31, 77, .06);
  --shadow-lg: 0 24px 60px -20px rgba(10, 31, 77, .35);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  color: var(--ism-body);
  background: var(--ism-paper);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  color: var(--ism-ink);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 .5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.4rem, 5.4vw, 4.4rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(2rem, 3.6vw, 3rem); }
h3 { font-size: 1.35rem; }
p  { margin: 0 0 1em; text-wrap: pretty; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-block;
  font-family: var(--sans);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ism-orange-deep);
  margin-bottom: 1rem;
}
.eyebrow.on-dark { color: var(--ism-orange-soft); }
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 28px;
  height: 1px;
  background: currentColor;
  vertical-align: middle;
  margin-right: 12px;
  opacity: .8;
}

.section {
  padding: clamp(72px, 9vw, 120px) 0;
}
.section--tight { padding: clamp(56px, 7vw, 96px) 0; }
.section-head {
  max-width: 720px;
  margin: 0 auto clamp(48px, 6vw, 72px);
  text-align: center;
}
.section-head p {
  color: var(--ism-muted);
  font-size: 1.05rem;
}

/* ===== Top nav ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid rgba(10, 31, 77, .07);
}
.nav__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}
.brand__crest {
  width: 48px;
  height: 48px;
  object-fit: contain;
  animation: crestBob 4.5s ease-in-out infinite;
  transform-origin: center;
}
@keyframes crestBob {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-2px) rotate(-2deg); }
}
@media (prefers-reduced-motion: reduce) {
  .brand__crest { animation: none; }
}
.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}
.brand__name {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ism-ink);
  letter-spacing: .01em;
}
.brand__sub {
  font-size: .68rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ism-muted);
  font-weight: 600;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.nav__links a {
  font-size: .92rem;
  font-weight: 500;
  color: var(--ism-ink);
  position: relative;
  padding: 6px 0;
  transition: color .2s;
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--ism-orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}
.nav__links a:hover { color: var(--ism-blue-700); }
.nav__links a:hover::after { transform: scaleX(1); }
.nav__cta {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--ism-blue-700);
  color: white;
  padding: 11px 20px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .9rem;
  transition: background .2s, transform .2s;
}
.nav__cta:hover { background: var(--ism-blue-800); transform: translateY(-1px); }
.nav__cta::after {
  content: "";
  position: absolute;
  top: 0; left: -120%;
  width: 60%;
  height: 100%;
  background: linear-gradient(110deg, transparent, rgba(255,255,255,.32), transparent);
  transform: skewX(-20deg);
  animation: ctaSheen 4.5s ease-in-out infinite;
  pointer-events: none;
}
@keyframes ctaSheen {
  0%, 60%, 100% { left: -120%; }
  80%           { left: 140%; }
}
@media (prefers-reduced-motion: reduce) {
  .nav__cta::after { animation: none; }
}
.nav__menu-btn { display: none; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 30px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: .005em;
  transition: transform .2s, box-shadow .2s, background .2s, color .2s;
  position: relative;
  white-space: nowrap;
}
.btn--primary {
  background: var(--ism-orange);
  color: white;
  box-shadow: 0 8px 24px -8px rgba(249, 115, 22, .6);
}
.btn--primary:hover { background: var(--ism-orange-deep); transform: translateY(-2px); }
.btn--ghost {
  background: transparent;
  color: white;
  border: 1.5px solid rgba(255,255,255,.4);
}
.btn--ghost:hover {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.7);
}
.btn--solid-blue {
  background: var(--ism-blue-700);
  color: white;
}
.btn--solid-blue:hover { background: var(--ism-blue-800); transform: translateY(-1px); }

/* Pulsing glow */
@keyframes pulseGlow {
  0%, 100% {
    box-shadow:
      0 8px 24px -8px rgba(249, 115, 22, .55),
      0 0 0 0 rgba(249, 115, 22, .55);
  }
  50% {
    box-shadow:
      0 10px 30px -8px rgba(249, 115, 22, .8),
      0 0 0 12px rgba(249, 115, 22, 0);
  }
}
@keyframes pulseGlowGhost {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,255,255,.35); }
  50%      { box-shadow: 0 0 0 10px rgba(255,255,255,0); }
}
.btn--pulse.btn--primary { animation: pulseGlow 2.6s ease-in-out infinite; }
.btn--pulse.btn--ghost   { animation: pulseGlowGhost 2.6s ease-in-out infinite; }

/* ===== Hero ===== */
.hero {
  position: relative;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(36, 71, 168, .55) 0%, transparent 55%),
    radial-gradient(ellipse at 100% 100%, rgba(249, 115, 22, .15) 0%, transparent 50%),
    linear-gradient(180deg, var(--ism-blue-800) 0%, var(--ism-blue-900) 100%);
  color: white;
  overflow: hidden;
  isolation: isolate;
}
.hero__pattern {
  position: absolute;
  inset: 0;
  opacity: .14;
  pointer-events: none;
  z-index: 0;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(255,255,255,.55) 1px, transparent 0),
    linear-gradient(135deg, transparent 0%, transparent 49%, rgba(255,255,255,.06) 49%, rgba(255,255,255,.06) 51%, transparent 51%, transparent 100%),
    linear-gradient(45deg,  transparent 0%, transparent 49%, rgba(255,255,255,.04) 49%, rgba(255,255,255,.04) 51%, transparent 51%, transparent 100%);
  background-size: 28px 28px, 64px 64px, 64px 64px;
  mask-image: linear-gradient(180deg, black 50%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, black 50%, transparent 100%);
}
.hero__inner {
  position: relative;
  z-index: 1;
  padding: clamp(120px, 16vh, 180px) 0 clamp(110px, 14vh, 160px);
  text-align: center;
}
.hero__crest-glow {
  width: 108px;
  height: 108px;
  margin: 0 auto 32px;
  border-radius: 999px;
  background: rgba(255,255,255,.96);
  border: 1px solid rgba(255,255,255,.6);
  display: grid;
  place-items: center;
  box-shadow:
    0 0 0 12px rgba(255,255,255,.06),
    0 18px 50px -10px rgba(0,0,0,.35);
  animation: heroCrestGlow 3.6s ease-in-out infinite;
}
@keyframes heroCrestGlow {
  0%, 100% {
    box-shadow:
      0 0 0 12px rgba(255,255,255,.05),
      0 18px 50px -10px rgba(0,0,0,.35);
  }
  50% {
    box-shadow:
      0 0 0 22px rgba(255,255,255,.09),
      0 22px 60px -10px rgba(255,180,90,.25);
  }
}
.hero__crest-glow img {
  width: 86px;
  height: 86px;
  object-fit: contain;
  animation: heroCrestFloat 5s ease-in-out infinite;
}
@keyframes heroCrestFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-4px) rotate(-3deg); }
}
@media (prefers-reduced-motion: reduce) {
  .hero__crest-glow, .hero__crest-glow img { animation: none; }
}
.hero__kicker {
  font-size: .8rem;
  letter-spacing: .35em;
  text-transform: uppercase;
  color: var(--ism-orange-soft);
  font-weight: 600;
  margin-bottom: 18px;
}
.hero h1 {
  color: white;
  margin: 0 auto 24px;
  max-width: 14ch;
  font-weight: 700;
}
.hero h1 .accent {
  font-style: italic;
  color: var(--ism-orange-soft);
  font-weight: 400;
}
.hero__lede {
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  color: rgba(255,255,255,.78);
  max-width: 56ch;
  margin: 0 auto 40px;
  line-height: 1.6;
}
.hero__ctas {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.hero__meta {
  margin-top: 56px;
  display: flex;
  justify-content: center;
  gap: clamp(28px, 5vw, 64px);
  flex-wrap: wrap;
  color: rgba(255,255,255,.65);
  font-size: .85rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.hero__meta strong {
  display: block;
  font-family: var(--serif);
  color: white;
  font-size: 1.6rem;
  letter-spacing: -0.01em;
  text-transform: none;
  font-weight: 700;
  margin-bottom: 4px;
}

/* ===== Levels ===== */
.levels-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  perspective: 1600px;
}
.level-card {
  position: relative;
  background: transparent;
  border: 0;
  padding: 0;
  border-radius: var(--radius-lg);
  min-height: 420px;
}
.level-card__inner {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: inherit;
  transition: transform .8s cubic-bezier(.2,.8,.2,1);
  transform-style: preserve-3d;
}
.level-card:hover .level-card__inner,
.level-card:focus-within .level-card__inner {
  transform: rotateY(180deg);
}
.level-card__face {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  padding: 40px 32px 36px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.level-card__face--front {
  background: var(--ism-paper);
  border: 1px solid var(--ism-line);
  box-shadow: 0 1px 2px rgba(0,0,0,.03);
  transition: box-shadow .35s ease;
}
.level-card__face--front::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--ism-blue-700), var(--ism-blue-500));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .5s ease;
}
.level-card:hover .level-card__face--front::before { transform: scaleX(1); }
.level-card__face--back {
  background: linear-gradient(155deg, var(--ism-blue-700) 0%, var(--ism-blue-900, #0d1f56) 100%);
  color: white;
  transform: rotateY(180deg);
  box-shadow: 0 30px 60px -20px rgba(15,30,80,.45);
}
.level-card__face--back::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(380px 280px at 110% -20%, rgba(255,255,255,.18), transparent 60%),
    radial-gradient(280px 220px at -10% 120%, rgba(255,180,90,.18), transparent 60%);
  pointer-events: none;
}
.level-card__face--back > * { position: relative; z-index: 1; }
.level-card__face--back h3 {
  color: white;
  font-size: 1.6rem;
  margin-bottom: 20px;
}
.level-card__list {
  list-style: none;
  padding: 0;
  margin: 0 0 22px;
  display: grid;
  gap: 12px;
  flex: 1;
}
.level-card__list li {
  position: relative;
  padding-left: 22px;
  color: rgba(255,255,255,.92);
  font-size: .96rem;
  line-height: 1.4;
}
.level-card__list li::before {
  content: "";
  position: absolute;
  left: 0; top: .55em;
  width: 8px; height: 8px;
  border-radius: 999px;
  background: var(--ism-orange-soft, #ffb27a);
  box-shadow: 0 0 0 4px rgba(255,178,122,.18);
}
.level-card__icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--ism-blue-50), white);
  display: grid;
  place-items: center;
  color: var(--ism-blue-700);
  margin-bottom: 28px;
  border: 1px solid rgba(30, 58, 138, .08);
}
.level-card__icon svg { width: 32px; height: 32px; }
.level-card__icon--anim svg {
  animation: iconFloat 3.4s ease-in-out infinite;
  transform-origin: center;
}
.level-card:nth-child(2) .level-card__icon--anim svg { animation-delay: .4s; }
.level-card:nth-child(3) .level-card__icon--anim svg { animation-delay: .8s; }
.level-card:hover .level-card__icon--anim svg { animation-duration: 1.6s; }
@keyframes iconFloat {
  0%, 100% { transform: translateY(0) rotate(0deg) scale(1); }
  35%      { transform: translateY(-5px) rotate(-3deg) scale(1.04); }
  65%      { transform: translateY(-2px) rotate(3deg) scale(1.02); }
}
.level-card__age {
  font-size: .75rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ism-orange-deep);
  font-weight: 600;
  margin-bottom: 8px;
}
.level-card h3 {
  font-size: 1.6rem;
  margin-bottom: 12px;
}
.level-card__face--front p {
  color: var(--ism-muted);
  font-size: .96rem;
  margin-bottom: 24px;
}
.level-card__hint {
  margin-top: auto;
  font-size: .78rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--ism-blue-700);
  font-weight: 600;
  opacity: .65;
}
.level-card__more {
  font-size: .92rem;
  font-weight: 600;
  color: var(--ism-blue-700);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap .25s;
  margin-top: auto;
  align-self: flex-start;
}
.level-card__more:hover { gap: 12px; }
.level-card__more--light {
  color: white;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.3);
  padding: 10px 18px;
  border-radius: 999px;
  backdrop-filter: blur(6px);
}
.level-card__more--light:hover {
  background: white;
  color: var(--ism-blue-700);
}
@media (prefers-reduced-motion: reduce) {
  .level-card__inner,
  .level-card__icon--anim svg { transition: none; animation: none; }
}

/* ===== Why ISM ===== */
.why {
  background: var(--ism-cream);
}
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.value {
  text-align: left;
}
.value__circle {
  width: 64px;
  height: 64px;
  border-radius: 999px;
  background: var(--ism-orange);
  display: grid;
  place-items: center;
  color: white;
  margin-bottom: 22px;
  box-shadow: 0 12px 28px -10px rgba(249, 115, 22, .55);
  position: relative;
}
.value__circle::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: inherit;
  border: 1px dashed rgba(249, 115, 22, .35);
  animation: dashSpin 14s linear infinite;
}
@keyframes dashSpin {
  to { transform: rotate(360deg); }
}
.value__circle svg {
  width: 28px;
  height: 28px;
  animation: valuePulse 2.6s ease-in-out infinite;
  transform-origin: center;
}
.why-grid .value:nth-child(2) .value__circle svg { animation-delay: .4s; }
.why-grid .value:nth-child(3) .value__circle svg { animation-delay: .8s; }
.why-grid .value:nth-child(4) .value__circle svg { animation-delay: 1.2s; }
@keyframes valuePulse {
  0%, 100% { transform: scale(1) rotate(0deg); }
  50%      { transform: scale(1.12) rotate(-4deg); }
}
.value:hover .value__circle {
  transform: translateY(-3px);
  transition: transform .3s ease;
}
.value:hover .value__circle svg { animation-duration: 1.2s; }
@media (prefers-reduced-motion: reduce) {
  .value__circle svg, .value__circle::after { animation: none; }
}
.value h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}
.value p {
  color: var(--ism-muted);
  font-size: .94rem;
  margin: 0;
}

/* ===== Uniforms / Identity (alternating) ===== */
.identity-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  gap: 0;
}
.identity-row + .identity-row { margin-top: 0; }
.identity-row__copy {
  padding: clamp(56px, 7vw, 96px) clamp(32px, 5vw, 72px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.identity-row__copy h2 { color: inherit; }
.identity-row__copy p { font-size: 1.02rem; }
.identity-row__copy .dot-list {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: grid;
  gap: 14px;
}
.identity-row__copy .dot-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  font-size: .98rem;
  line-height: 1.55;
}
.identity-row__copy .dot-list li::before {
  content: "";
  flex: 0 0 auto;
  width: 8px; height: 8px;
  margin-top: 9px;
  border-radius: 999px;
  background: var(--ism-orange);
}
.identity-row--blue .identity-row__copy {
  background: var(--ism-blue-800);
  color: white;
}
.identity-row--blue .identity-row__copy h2 { color: white; }
.identity-row--blue .identity-row__copy p  { color: rgba(255,255,255,.78); }
.identity-row--blue .eyebrow { color: var(--ism-orange-soft); }
.identity-row--blue .dot-list li { color: rgba(255,255,255,.85); }

.identity-row__photo {
  position: relative;
  min-height: 520px;
  background: var(--ism-blue-50);
  overflow: hidden;
}
.identity-row__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.photo-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--ism-blue-700);
  background:
    repeating-linear-gradient(45deg, rgba(30,58,138,.06) 0 2px, transparent 2px 22px),
    linear-gradient(135deg, #dbe5ff 0%, #eef2ff 100%);
}
.photo-placeholder__inner {
  text-align: center;
  padding: 28px;
}
.photo-placeholder__icon {
  width: 56px; height: 56px;
  margin: 0 auto 14px;
  display: grid; place-items: center;
  background: white;
  border-radius: 14px;
  box-shadow: var(--shadow);
  color: var(--ism-blue-700);
}
.photo-placeholder__icon svg { width: 28px; height: 28px; }
.photo-placeholder__label {
  font-size: .76rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ism-blue-700);
}
.photo-placeholder__hint {
  font-size: .82rem;
  color: var(--ism-muted);
  margin-top: 6px;
}

.identity-row--reverse {
  direction: rtl;
}
.identity-row--reverse > * { direction: ltr; }

/* ===== Testimonials ===== */
.testimonials { background: var(--ism-cream); }
.testi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.testi {
  background: white;
  border-radius: var(--radius-lg);
  padding: 36px 32px 32px;
  border: 1px solid var(--ism-line);
  box-shadow: var(--shadow-sm);
  position: relative;
  display: flex;
  flex-direction: column;
}
.testi__quote-mark {
  font-family: var(--serif);
  font-size: 5rem;
  line-height: .8;
  color: var(--ism-orange);
  opacity: .25;
  position: absolute;
  top: 18px; right: 24px;
}
.testi__body {
  font-size: 1.02rem;
  color: var(--ism-ink);
  font-family: var(--serif);
  font-style: italic;
  line-height: 1.5;
  margin: 0 0 28px;
}
.testi__person {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: auto;
}
.testi__avatar {
  width: 48px; height: 48px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--ism-blue-700), var(--ism-blue-500));
  color: white;
  display: grid; place-items: center;
  font-weight: 600;
  font-family: var(--serif);
  font-size: 1.05rem;
}
.testi__name {
  font-weight: 600;
  color: var(--ism-ink);
  font-size: .95rem;
  line-height: 1.3;
}
.testi__grade {
  font-size: .8rem;
  color: var(--ism-muted);
  letter-spacing: .04em;
}

/* ===== Contact banner ===== */
.contact {
  background:
    radial-gradient(ellipse at 80% 30%, rgba(249, 115, 22, .18) 0%, transparent 55%),
    linear-gradient(135deg, var(--ism-blue-900) 0%, var(--ism-blue-800) 100%);
  color: white;
  position: relative;
  overflow: hidden;
}
.contact::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,.4) 1px, transparent 0);
  background-size: 32px 32px;
  opacity: .08;
  pointer-events: none;
}
.contact__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
.contact h2 { color: white; max-width: 16ch; }
.contact__lede { color: rgba(255,255,255,.75); max-width: 50ch; margin-bottom: 36px; font-size: 1.05rem; }
.contact__phone {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  color: white;
  margin-bottom: 36px;
}
.contact__phone-icon {
  width: 56px; height: 56px;
  border-radius: 16px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  display: grid; place-items: center;
}
.contact__phone-icon svg { width: 24px; height: 24px; color: var(--ism-orange-soft); }
.contact__phone-text small {
  display: block;
  font-size: .72rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
  margin-bottom: 2px;
}
.contact__phone-text strong {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.01em;
}
.contact__channels {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.channel {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 22px 14px 18px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .96rem;
  transition: transform .2s, background .2s;
}
.channel--wa {
  background: var(--ism-wa-green);
  color: white;
  box-shadow: 0 10px 28px -10px rgba(37, 211, 102, .55);
}
.channel--wa:hover { transform: translateY(-2px); background: #1ebe5a; }
.channel--ig {
  background: rgba(255,255,255,.06);
  color: white;
  border: 1px solid rgba(255,255,255,.18);
}
.channel--ig:hover { transform: translateY(-2px); background: rgba(255,255,255,.12); }
.channel svg { width: 20px; height: 20px; }
.wa-dot {
  width: 10px; height: 10px;
  border-radius: 999px;
  background: white;
  position: relative;
  margin-right: -2px;
}
.wa-dot::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: white;
  animation: dotPulse 1.6s ease-out infinite;
}
@keyframes dotPulse {
  0%   { transform: scale(1); opacity: .8; }
  100% { transform: scale(2.6); opacity: 0; }
}

.contact__card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-lg);
  padding: 36px;
}
.contact__card h3 {
  color: white;
  font-size: 1.25rem;
  margin-bottom: 20px;
}
.contact__card dl {
  margin: 0;
  display: grid;
  gap: 18px;
}
.contact__card dt {
  font-size: .72rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
  font-weight: 600;
  margin-bottom: 4px;
}
.contact__card dd {
  margin: 0;
  color: white;
  font-size: 1rem;
  line-height: 1.5;
}

/* ===== Footer ===== */
.footer {
  background: var(--ism-blue-900);
  color: rgba(255,255,255,.7);
  padding: 72px 0 32px;
  font-size: .92rem;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 48px;
  margin-bottom: 56px;
}
.footer .brand__name { color: white; }
.footer .brand__sub { color: rgba(255,255,255,.55); }
.footer .brand__crest {
  background: rgba(255,255,255,.95);
  border-radius: 12px;
  padding: 4px;
  width: 52px;
  height: 52px;
}
.footer__about {
  margin-top: 20px;
  color: rgba(255,255,255,.65);
  line-height: 1.6;
  max-width: 32ch;
  font-size: .92rem;
}
.footer h4 {
  color: white;
  font-family: var(--sans);
  font-size: .8rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 20px;
}
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.footer ul a { color: rgba(255,255,255,.7); transition: color .2s; }
.footer ul a:hover { color: var(--ism-orange-soft); }
.footer__address {
  display: grid;
  gap: 12px;
  color: rgba(255,255,255,.7);
}
.footer__address-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: .92rem;
  line-height: 1.5;
}
.footer__address-row svg { width: 18px; height: 18px; color: var(--ism-orange-soft); flex: 0 0 auto; margin-top: 3px; }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: .84rem;
  color: rgba(255,255,255,.5);
}

/* ===== Animations: reveal on scroll ===== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1);
  will-change: transform, opacity;
}
.reveal.is-in { opacity: 1; transform: none; }

.reveal-left {
  opacity: 0;
  transform: translateX(-32px);
  transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1);
}
.reveal-left.is-in { opacity: 1; transform: none; }

.stagger > * {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1);
}
.stagger.is-in > * { opacity: 1; transform: none; }
.stagger.is-in > *:nth-child(1) { transition-delay: 0ms; }
.stagger.is-in > *:nth-child(2) { transition-delay: 110ms; }
.stagger.is-in > *:nth-child(3) { transition-delay: 220ms; }
.stagger.is-in > *:nth-child(4) { transition-delay: 330ms; }
.stagger.is-in > *:nth-child(5) { transition-delay: 440ms; }

/* Hero entrance (fires on load) */
.hero-anim > * {
  animation: heroIn .9s cubic-bezier(.2,.7,.2,1) both;
}
.hero-anim > *:nth-child(1) { animation-delay: .05s; }
.hero-anim > *:nth-child(2) { animation-delay: .18s; }
.hero-anim > *:nth-child(3) { animation-delay: .32s; }
.hero-anim > *:nth-child(4) { animation-delay: .46s; }
.hero-anim > *:nth-child(5) { animation-delay: .60s; }
.hero-anim > *:nth-child(6) { animation-delay: .74s; }
@keyframes heroIn {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
  .reveal, .reveal-left, .stagger > *, .hero-anim > * { opacity: 1 !important; transform: none !important; }
}

/* ===== Life at ISM (gallery) ===== */
.life {
  background:
    radial-gradient(800px 360px at 90% -10%, rgba(30,58,138,.05), transparent 60%),
    var(--ism-paper, #fbfaf6);
}
.life-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 36px;
}
.life-card {
  position: relative;
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #f4f4ef;
  aspect-ratio: 4 / 5;
}
.life-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .8s ease;
}
.life-card:hover img { transform: scale(1.04); }
.life-card figcaption {
  position: absolute;
  left: 14px;
  bottom: 14px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(6px);
  color: var(--ism-blue-700);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .04em;
}

/* ===== Responsive ===== */
@media (max-width: 1080px) {
  .brand__sub { display: none; }
  .brand__name { font-size: .98rem; }
}
@media (max-width: 980px) {
  .nav__links { display: none; }
  .nav__cta { display: none; }
  .nav__menu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px; height: 44px;
    border-radius: 12px;
    background: var(--ism-blue-50);
    color: var(--ism-blue-700);
  }
  .levels-grid { grid-template-columns: 1fr; gap: 20px; }
  .why-grid { grid-template-columns: repeat(2, 1fr); gap: 28px 20px; }
  .testi-grid { grid-template-columns: 1fr; }
  .life-grid { grid-template-columns: 1fr 1fr; }
  .identity-row { grid-template-columns: 1fr; }
  .identity-row--reverse { direction: ltr; }
  .identity-row__photo { min-height: 360px; order: -1; }
  .identity-row--reverse .identity-row__photo { order: 0; }
  .contact__inner { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .why-grid { grid-template-columns: 1fr; }
  .life-grid { grid-template-columns: 1fr; }
  .life-card { aspect-ratio: 4/5; }
  .footer__grid { grid-template-columns: 1fr; }
  .hero__ctas .btn { width: 100%; }
  .hero__meta { gap: 24px; }
  .hero__meta strong { font-size: 1.3rem; }
  .contact__phone-text strong { font-size: 1.6rem; }
}
