/* =====================================================================
   Speak Easy — Centre for Better English
   Cuddalore. Stylesheet.
   ===================================================================== */

/* ---------- tokens ---------------------------------------------------- */
:root {
  --red: #e01b22;
  --red-dark: #a8121b;
  --red-soft: #fdecec;
  --navy: #0b1533;
  --navy-2: #142248;
  --navy-3: #1d3060;
  --ink: #16203c;
  --body: #4a5570;
  --muted: #79839c;
  --gold: #ffc426;
  --gold-dark: #b8860b;
  --cream: #fff8f0;
  --paper: #ffffff;
  --line: #e8e2da;
  --line-dark: rgba(255, 255, 255, .13);

  --radius: 18px;
  --radius-lg: 28px;
  --radius-sm: 11px;

  --shadow-sm: 0 2px 8px rgba(11, 21, 51, .06);
  --shadow: 0 14px 34px -14px rgba(11, 21, 51, .22);
  --shadow-lg: 0 34px 70px -28px rgba(11, 21, 51, .38);
  --shadow-red: 0 16px 34px -12px rgba(224, 27, 34, .48);

  --font: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --serif: Georgia, "Times New Roman", serif;

  --wrap: 1200px;
  --ease: cubic-bezier(.22, .68, .28, 1);
}

/* ---------- reset ------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.68;
  color: var(--body);
  background: var(--paper);
  overflow-x: hidden;
}
body.nav-locked { overflow: hidden; }
img, svg, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 {
  margin: 0 0 .5em;
  color: var(--ink);
  font-weight: 800;
  line-height: 1.16;
  letter-spacing: -.022em;
}
h1 { font-size: clamp(2.35rem, 6.4vw, 4.15rem); }
h2 { font-size: clamp(1.85rem, 4.1vw, 2.9rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.42rem); }
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

.icon { width: 1em; height: 1em; fill: none; flex: none; }
.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;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--red); color: #fff; padding: 10px 18px; border-radius: 0 0 10px 10px;
  transition: top .2s;
}
.skip-link:focus { top: 0; }

/* ---------- layout helpers --------------------------------------------- */
.wrap { width: min(var(--wrap), 100% - 2.6rem); margin-inline: auto; }
@media (max-width: 640px) { .wrap { width: min(var(--wrap), 100% - 1.9rem); } }

.section { padding: clamp(4.2rem, 8vw, 7.4rem) 0; position: relative; }
.section--cream { background: var(--cream); }
.section--navy { background: var(--navy); color: rgba(255, 255, 255, .76); }
.section--navy h2, .section--navy h3 { color: #fff; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-size: .775rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase;
  color: var(--red); margin-bottom: 1rem;
}
.eyebrow::before {
  content: ""; width: 26px; height: 2px; background: currentColor; border-radius: 2px;
}
.section--navy .eyebrow { color: var(--gold); }

.section-head { max-width: 46rem; margin-bottom: clamp(2.4rem, 4vw, 3.4rem); }
.section-head.is-center { margin-inline: auto; text-align: center; }
.section-head.is-center .eyebrow::before { display: none; }
.section-head p { font-size: 1.06rem; }

.lede { font-size: clamp(1.02rem, 1.6vw, 1.16rem); color: var(--body); }
.section--navy .lede { color: rgba(255, 255, 255, .74); }

/* ---------- buttons ------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  padding: .92rem 1.65rem; border-radius: 100px;
  font-weight: 800; font-size: .965rem; letter-spacing: -.01em;
  transition: transform .28s var(--ease), box-shadow .28s var(--ease), background .25s, color .25s;
  white-space: nowrap;
}
.btn .icon { width: 1.15em; height: 1.15em; }
.btn:hover { transform: translateY(-3px); }
.btn--primary {
  background: linear-gradient(135deg, #f0323a, var(--red) 55%, var(--red-dark));
  color: #fff; box-shadow: var(--shadow-red);
}
.btn--primary:hover { box-shadow: 0 22px 44px -12px rgba(224, 27, 34, .58); }
.btn--gold { background: var(--gold); color: #3b2a00; box-shadow: 0 16px 32px -14px rgba(255, 196, 38, .7); }
.btn--ghost { border: 2px solid rgba(255, 255, 255, .3); color: #fff; }
.btn--ghost:hover { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .6); }
.btn--outline { border: 2px solid var(--line); color: var(--ink); background: #fff; }
.btn--outline:hover { border-color: var(--red); color: var(--red); }
.btn--wa { background: #1faa53; color: #fff; box-shadow: 0 16px 32px -14px rgba(31, 170, 83, .6); }
.btn--lg { padding: 1.08rem 2.1rem; font-size: 1.02rem; }
.btn--block { width: 100%; }

/* =====================================================================
   Header
   ===================================================================== */
.topbar {
  background: linear-gradient(90deg, var(--navy), var(--navy-3));
  color: rgba(255, 255, 255, .8);
  font-size: .83rem;
}
.topbar .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 40px; flex-wrap: wrap;
}
.topbar a { display: inline-flex; align-items: center; gap: .45rem; }
.topbar a:hover { color: var(--gold); }
.topbar-set { display: flex; align-items: center; gap: 1.4rem; flex-wrap: wrap; }
.topbar .icon { width: 15px; height: 15px; }
.topbar-social { display: flex; gap: .85rem; }
.topbar-social a { font-size: 1rem; }
@media (max-width: 860px) { .topbar-tagline { display: none; } }
@media (max-width: 540px) { .topbar { display: none; } }

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .3s, border-color .3s, background .3s;
}
.site-header.is-stuck {
  box-shadow: 0 10px 32px -20px rgba(11, 21, 51, .5);
  border-bottom-color: var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; gap: 1.4rem; min-height: 74px;
}
.brand { display: flex; align-items: center; margin-right: auto; }
.brand img { height: 46px; width: auto; }
@media (max-width: 400px) { .brand img { height: 38px; } }

.nav-list {
  display: flex; align-items: center; gap: 1.9rem;
  list-style: none; margin: 0; padding: 0;
}
.nav-list a {
  position: relative; font-weight: 700; font-size: .95rem; color: var(--ink);
  padding: .35rem 0; transition: color .2s;
}
.nav-list a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px;
  background: var(--red); border-radius: 2px; transition: right .3s var(--ease);
}
.nav-list a:hover, .nav-list a.is-active { color: var(--red); }
.nav-list a:hover::after, .nav-list a.is-active::after { right: 0; }

.nav-cta { display: flex; align-items: center; gap: .7rem; }
.nav-toggle {
  display: none; width: 44px; height: 44px; border-radius: 12px;
  align-items: center; justify-content: center; background: var(--red-soft);
}
.nav-toggle span {
  display: block; width: 20px; height: 2px; background: var(--red); border-radius: 2px;
  position: relative; transition: transform .3s var(--ease), background .2s;
}
.nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 0; width: 20px; height: 2px;
  background: var(--red); border-radius: 2px; transition: transform .3s var(--ease), top .3s;
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

@media (max-width: 1000px) {
  .nav-toggle { display: inline-flex; }
  .nav-cta .btn { display: none; }
  #primary-nav {
    position: fixed; inset: 74px 0 auto; background: #fff;
    border-bottom: 1px solid var(--line);
    max-height: 0; overflow: hidden;
    transition: max-height .38s var(--ease);
    box-shadow: var(--shadow);
  }
  #primary-nav.is-open { max-height: 78vh; overflow-y: auto; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; padding: .6rem 1.5rem 1.6rem; }
  .nav-list li { border-bottom: 1px solid var(--line); }
  .nav-list li:last-child { border-bottom: 0; }
  .nav-list a { display: block; padding: 1rem 0; font-size: 1.05rem; }
  .nav-list a::after { display: none; }
}

/* =====================================================================
   Hero
   ===================================================================== */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 620px at 78% 18%, rgba(29, 48, 96, .95), transparent 62%),
    radial-gradient(700px 520px at 12% 88%, rgba(168, 18, 27, .3), transparent 60%),
    linear-gradient(165deg, #0a1230, var(--navy) 45%, #060d24);
  color: rgba(255, 255, 255, .78);
  padding: clamp(3.4rem, 7vw, 6rem) 0 clamp(4.6rem, 8vw, 7rem);
  isolation: isolate;
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background:
    linear-gradient(to bottom, transparent 72%, rgba(255, 255, 255, .06) 100%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .022) 0 1px, transparent 1px 3px);
  mix-blend-mode: overlay;
}
.hero-grid {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.02fr .98fr;
  gap: clamp(2rem, 4vw, 3.6rem); align-items: center;
}
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-copy { order: 2; }
  .hero-stage { order: 1; }
}

.hero h1 { color: #fff; margin-bottom: .55rem; }
.hero h1 .accent {
  background: linear-gradient(115deg, var(--gold), #ff8a3d 55%, var(--red));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-tamil {
  font-size: clamp(1.15rem, 2.7vw, 1.68rem); font-weight: 800; color: var(--gold);
  margin-bottom: 1.1rem; letter-spacing: -.01em;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .48rem 1.05rem .48rem .55rem; border-radius: 100px;
  background: rgba(255, 255, 255, .09); border: 1px solid rgba(255, 255, 255, .17);
  font-size: .83rem; font-weight: 700; color: #fff; margin-bottom: 1.5rem;
}
.hero-badge b {
  background: var(--red); border-radius: 100px; padding: .18rem .68rem;
  font-size: .74rem; letter-spacing: .06em; text-transform: uppercase;
}
.hero p.lede { color: rgba(255, 255, 255, .74); max-width: 34rem; }
@media (max-width: 980px) { .hero p.lede { margin-inline: auto; } }

.hero-actions {
  display: flex; gap: .85rem; flex-wrap: wrap; margin-top: 1.9rem;
}
@media (max-width: 980px) { .hero-actions { justify-content: center; } }

.hero-trust {
  display: flex; gap: 2.2rem; flex-wrap: wrap; margin-top: 2.6rem;
  padding-top: 1.9rem; border-top: 1px solid var(--line-dark);
}
@media (max-width: 980px) { .hero-trust { justify-content: center; } }
.hero-trust dt {
  font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 900; color: #fff; line-height: 1.1;
}
.hero-trust dd {
  margin: .12rem 0 0; font-size: .795rem; letter-spacing: .1em;
  text-transform: uppercase; color: rgba(255, 255, 255, .55); font-weight: 700;
}

/* --- the 3D canvas stage --- */
.hero-stage { position: relative; aspect-ratio: 1 / 1; min-height: 340px; }
@media (max-width: 980px) { .hero-stage { max-width: 520px; margin-inline: auto; } }
#galaxy { position: absolute; inset: 0; width: 100%; height: 100%; }
.stage-core {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%;
  width: 39%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, rgba(255, 255, 255, .13), rgba(224, 27, 34, .2) 48%, transparent 72%);
  filter: blur(14px); animation: pulse 6s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: .75; }
  50% { transform: scale(1.14); opacity: 1; }
}
.stage-chip {
  position: absolute; z-index: 4;
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .55rem .95rem; border-radius: 100px;
  background: rgba(255, 255, 255, .94); color: var(--ink);
  font-size: .8rem; font-weight: 800; box-shadow: var(--shadow);
  animation: float 7s ease-in-out infinite;
}
.stage-chip .icon { width: 16px; height: 16px; color: var(--red); }
.stage-chip:nth-of-type(1) { top: 8%; left: -2%; animation-delay: -1s; }
.stage-chip:nth-of-type(2) { top: 44%; right: -4%; animation-delay: -3s; }
.stage-chip:nth-of-type(3) { bottom: 9%; left: 8%; animation-delay: -5s; }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}
@media (max-width: 540px) { .stage-chip { display: none; } }

/* --- marquee --- */
.marquee {
  background: var(--red); color: #fff; overflow: hidden;
  padding: .82rem 0; font-weight: 800; letter-spacing: .04em;
  border-block: 1px solid rgba(255, 255, 255, .16);
}
.marquee-track {
  display: flex; gap: 3rem; width: max-content;
  animation: slide 34s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee span { display: inline-flex; align-items: center; gap: 3rem; white-space: nowrap; }
.marquee span::after { content: "\2726"; color: var(--gold); }
@keyframes slide { to { transform: translateX(-50%); } }

/* =====================================================================
   Feature cards
   ===================================================================== */
.grid { display: grid; gap: 1.5rem; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }

.card {
  position: relative; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 2rem 1.75rem;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .3s;
  transform-style: preserve-3d; will-change: transform;
}
.card:hover { box-shadow: var(--shadow-lg); border-color: transparent; }
.card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; opacity: 0;
  background: radial-gradient(420px circle at var(--gx, 50%) var(--gy, 50%), rgba(224, 27, 34, .07), transparent 62%);
  transition: opacity .35s; pointer-events: none;
}
.card:hover::before { opacity: 1; }
.card h3 { margin-bottom: .5rem; }
.card p { font-size: .95rem; }
.card-icon {
  width: 54px; height: 54px; border-radius: 15px; margin-bottom: 1.15rem;
  display: grid; place-items: center;
  background: linear-gradient(140deg, var(--red-soft), #fff);
  border: 1px solid rgba(224, 27, 34, .16); color: var(--red);
}
.card-icon .icon { width: 25px; height: 25px; }
.card--gold .card-icon {
  background: linear-gradient(140deg, #fff6dc, #fff);
  border-color: rgba(255, 196, 38, .4); color: var(--gold-dark);
}
.card--navy .card-icon {
  background: linear-gradient(140deg, #e9eefb, #fff);
  border-color: rgba(29, 48, 96, .18); color: var(--navy-3);
}

/* =====================================================================
   About / split blocks
   ===================================================================== */
.split {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4.2rem); align-items: center;
}
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.split--flip .split-media { order: -1; }
@media (max-width: 900px) { .split--flip .split-media { order: 0; } }

.split-media { position: relative; }
.split-media img {
  width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 3; object-fit: cover;
}
.split-media::before {
  content: ""; position: absolute; inset: auto -18px -18px 26px; height: 68%;
  border-radius: var(--radius-lg); z-index: -1;
  background: linear-gradient(135deg, var(--gold), var(--red));
  opacity: .18;
}
.media-stat {
  position: absolute; right: -14px; bottom: -22px;
  background: #fff; border-radius: var(--radius); padding: 1.05rem 1.35rem;
  box-shadow: var(--shadow-lg); text-align: center; border: 1px solid var(--line);
}
.media-stat b { display: block; font-size: 1.75rem; color: var(--red); line-height: 1; font-weight: 900; }
.media-stat span { font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; color: var(--muted); }
@media (max-width: 560px) { .media-stat { right: 8px; bottom: -18px; padding: .8rem 1rem; } }

.tick-list { list-style: none; margin: 1.4rem 0 0; padding: 0; display: grid; gap: .85rem; }
.tick-list li { display: flex; gap: .8rem; align-items: flex-start; font-size: .985rem; }
.tick-list .icon {
  width: 22px; height: 22px; padding: 4px; margin-top: 2px; border-radius: 50%;
  background: var(--red); color: #fff; stroke-width: 3;
}
.section--navy .tick-list .icon { background: var(--gold); color: var(--navy); }

/* =====================================================================
   Courses — 3D flip cards
   ===================================================================== */
.course-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(272px, 1fr)); gap: 1.6rem; }
.flip { perspective: 1600px; min-height: 625px; }
.flip-inner {
  position: relative; width: 100%; height: 100%; min-height: 625px;
  transform-style: preserve-3d; transition: transform .8s var(--ease);
}
.flip:hover .flip-inner, .flip:focus-within .flip-inner { transform: rotateY(180deg); }
.flip-face {
  position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden;
  border-radius: var(--radius-lg); padding: 2rem 1.7rem;
  display: flex; flex-direction: column; overflow: hidden;
}
.flip-front { background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.flip-front::after {
  content: ""; position: absolute; inset: 0 0 auto; height: 6px;
  background: linear-gradient(90deg, var(--red), var(--gold));
}
.flip-back {
  transform: rotateY(180deg); color: rgba(255, 255, 255, .84);
  background: linear-gradient(160deg, var(--navy-3), var(--navy));
  box-shadow: var(--shadow-lg);
}
.flip-back h4 { color: #fff; font-size: 1.02rem; margin-bottom: .8rem; }
.flip-back ol {
  margin: 0; padding-left: 1.15rem; font-size: .9rem; display: grid; gap: .42rem;
}
.flip-back .flip-take {
  margin-top: auto; padding-top: 1.1rem; border-top: 1px solid var(--line-dark);
  font-size: .88rem; color: var(--gold); font-weight: 700;
}
.course-level {
  font-size: .7rem; font-weight: 900; letter-spacing: .17em; text-transform: uppercase;
  color: var(--muted); margin-bottom: .55rem;
  padding-right: 6.5rem;   /* clear the "Syllabus" hint pinned top-right */
}
.flip-front h3 {
  font-size: 1.62rem; color: var(--red); letter-spacing: .01em; margin-bottom: .7rem;
}
.flip-front > p { font-size: .935rem; }
.course-meta {
  margin-top: auto; padding-top: 1.3rem; border-top: 1px dashed var(--line);
  display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem;
}
.course-meta small {
  display: block; font-size: .68rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); font-weight: 800; margin-bottom: .15rem;
}
.course-meta strong { font-size: 1.05rem; color: var(--ink); font-weight: 800; }
.course-meta .fee { text-align: right; }
.course-meta .fee strong { color: var(--red); }
.flip-hint {
  position: absolute; right: 1.2rem; top: 1.4rem; font-size: .68rem;
  color: var(--muted); font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  display: flex; align-items: center; gap: .3rem;
}
.flip-hint .icon { width: 13px; height: 13px; }
@media (hover: none) {
  .flip-hint::after { content: "\2022 tap"; }
}

/* =====================================================================
   Audience cards
   ===================================================================== */
.aud-card {
  position: relative; overflow: hidden; border-radius: var(--radius-lg);
  background: linear-gradient(165deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, .03));
  border: 1px solid var(--line-dark); padding: 1.9rem 1.6rem;
  transition: transform .4s var(--ease), border-color .3s, background .3s;
}
.aud-card:hover {
  transform: translateY(-8px); border-color: rgba(255, 196, 38, .45);
  background: linear-gradient(165deg, rgba(255, 196, 38, .1), rgba(255, 255, 255, .03));
}
.aud-card h3 { font-size: 1.28rem; margin-bottom: .7rem; }
.aud-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; font-size: .93rem; }
.aud-card li { display: flex; gap: .55rem; align-items: baseline; }
.aud-card li::before { content: "\2013"; color: var(--gold); font-weight: 900; }
.aud-num {
  position: absolute; right: 1rem; top: -.6rem; font-size: 4.6rem; font-weight: 900;
  color: rgba(255, 255, 255, .05); line-height: 1; pointer-events: none;
}

/* =====================================================================
   Method / timeline
   ===================================================================== */
.steps { display: grid; gap: 1.4rem; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); counter-reset: step; }
.step {
  position: relative; padding: 2.2rem 1.5rem 1.7rem; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.step:hover { transform: translateY(-7px); box-shadow: var(--shadow-lg); }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  position: absolute; top: -18px; left: 1.5rem;
  width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center;
  background: linear-gradient(140deg, var(--red), var(--red-dark)); color: #fff;
  font-weight: 900; font-size: .95rem; box-shadow: var(--shadow-red);
}
.step h3 { font-size: 1.12rem; margin: .55rem 0 .4rem; }
.step p { font-size: .92rem; }

/* =====================================================================
   Stats band
   ===================================================================== */
.stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.2rem; text-align: center;
}
.stat {
  padding: 2rem 1rem; border-radius: var(--radius);
  background: rgba(255, 255, 255, .05); border: 1px solid var(--line-dark);
}
.stat b {
  display: block; font-size: clamp(2.1rem, 4.4vw, 3.1rem); font-weight: 900;
  color: #fff; line-height: 1; margin-bottom: .5rem;
}
.stat b .unit { color: var(--gold); }
/* direct child only: the counter markup nests spans inside <b> */
.stat > span { font-size: .8rem; letter-spacing: .11em; text-transform: uppercase; font-weight: 700; }

/* =====================================================================
   Gallery
   ===================================================================== */
/* Masonry via CSS columns: the posters are portrait, square and landscape,
   and cropping them to a single ratio cuts off phone numbers and headlines.
   Columns let every image keep its own aspect ratio. */
.gallery { columns: 4; column-gap: 1.1rem; }
@media (max-width: 1100px) { .gallery { columns: 3; } }
@media (max-width: 780px)  { .gallery { columns: 2; } }
@media (max-width: 460px)  { .gallery { columns: 1; } }

.gallery-item {
  position: relative; overflow: hidden; border-radius: var(--radius);
  cursor: zoom-in; background: #fff; border: 1px solid var(--line);
  break-inside: avoid; margin: 0 0 1.1rem; display: block;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.gallery-item img {
  width: 100%; height: auto; display: block;
  transition: transform .7s var(--ease);
}
.gallery-item:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); z-index: 2; }
.gallery-item:hover img { transform: scale(1.04); }
.gallery-item figcaption {
  position: absolute; inset: auto 0 0; padding: 2.6rem .95rem .9rem;
  background: linear-gradient(to top, rgba(11, 21, 51, .92), transparent);
  color: #fff; font-size: .84rem; font-weight: 700;
  transform: translateY(8px); opacity: 0; transition: .35s var(--ease);
}
.gallery-item:hover figcaption { transform: none; opacity: 1; }

.lightbox {
  position: fixed; inset: 0; z-index: 300; display: none;
  place-items: center; padding: 4vmin;
  background: rgba(6, 11, 26, .93); backdrop-filter: blur(6px);
}
.lightbox.is-open { display: grid; animation: fadeIn .25s var(--ease); }
@keyframes fadeIn { from { opacity: 0; } }
.lightbox-img {
  max-width: min(1000px, 92vw); max-height: 82vh; width: auto; border-radius: 14px;
  box-shadow: 0 40px 90px rgba(0, 0, 0, .6);
}
.lightbox-cap { color: rgba(255, 255, 255, .8); text-align: center; margin-top: 1rem; font-size: .92rem; }
.lightbox button {
  position: absolute; width: 50px; height: 50px; border-radius: 50%;
  background: rgba(255, 255, 255, .13); color: #fff; display: grid; place-items: center;
  font-size: 1.4rem; transition: background .2s, transform .2s;
}
.lightbox button:hover { background: var(--red); transform: scale(1.08); }
.lightbox-close { top: 3vmin; right: 3vmin; }
.lightbox-prev { left: 3vmin; top: 50%; translate: 0 -50%; }
.lightbox-next { right: 3vmin; top: 50%; translate: 0 -50%; }

/* =====================================================================
   Testimonials
   ===================================================================== */
.quote-viewport { overflow: hidden; border-radius: var(--radius-lg); }
.quote-track { display: flex; transition: transform .7s var(--ease); }
.quote-card {
  flex: 0 0 100%; padding: clamp(2rem, 4vw, 3.2rem);
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  text-align: center;
}
.quote-card .icon-quote { width: 40px; height: 40px; color: var(--red); opacity: .22; margin: 0 auto 1.1rem; }
.quote-card blockquote {
  margin: 0 0 1.6rem; font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  line-height: 1.6; color: var(--ink); font-weight: 600;
}
.quote-who { display: flex; align-items: center; justify-content: center; gap: .85rem; }
.quote-avatar {
  width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(140deg, var(--red), var(--red-dark)); color: #fff;
  font-weight: 900; font-size: 1.1rem;
}
.quote-who b { display: block; color: var(--ink); font-size: .98rem; }
.quote-who span { font-size: .84rem; color: var(--muted); }
.quote-nav { display: flex; align-items: center; justify-content: center; gap: 1.1rem; margin-top: 1.8rem; }
.quote-dots { display: flex; gap: .5rem; }
.quote-dot {
  width: 9px; height: 9px; border-radius: 50%; background: var(--line);
  transition: background .3s, width .3s;
}
.quote-dot.is-active { background: var(--red); width: 26px; border-radius: 5px; }
.quote-prev, .quote-next {
  width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line);
  display: grid; place-items: center; color: var(--ink); background: #fff;
  transition: .25s;
}
.quote-prev:hover, .quote-next:hover { background: var(--red); color: #fff; border-color: var(--red); }
.quote-prev .icon { transform: rotate(180deg); }

/* =====================================================================
   FAQ
   ===================================================================== */
.faq { max-width: 46rem; margin-inline: auto; display: grid; gap: .75rem; }
.faq-item {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: border-color .3s, box-shadow .3s;
}
.faq-item.is-open { border-color: rgba(224, 27, 34, .35); box-shadow: var(--shadow); }
.faq-q {
  width: 100%; text-align: left; padding: 1.25rem 1.5rem;
  display: flex; align-items: center; gap: 1rem;
  font-weight: 800; font-size: 1.01rem; color: var(--ink);
}
.faq-q::after {
  content: "+"; margin-left: auto; font-size: 1.5rem; font-weight: 400; color: var(--red);
  transition: transform .35s var(--ease); line-height: 1;
}
.faq-item.is-open .faq-q::after { transform: rotate(45deg); }
.faq-a {
  display: grid; grid-template-rows: 0fr; transition: grid-template-rows .38s var(--ease);
}
.faq-item.is-open .faq-a { grid-template-rows: 1fr; }
.faq-a > div { overflow: hidden; }
.faq-a p { padding: 0 1.5rem 1.4rem; font-size: .96rem; margin: 0; }

/* =====================================================================
   Contact
   ===================================================================== */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 4vw, 3.4rem); }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-list { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; gap: 1.35rem; }
.contact-list li { display: flex; gap: 1rem; align-items: flex-start; }
.contact-list .ci {
  width: 46px; height: 46px; border-radius: 13px; flex: none; display: grid; place-items: center;
  background: rgba(255, 255, 255, .08); border: 1px solid var(--line-dark); color: var(--gold);
}
.contact-list .ci .icon { width: 20px; height: 20px; }
.contact-list b { display: block; color: #fff; font-size: .98rem; margin-bottom: .1rem; }
.contact-list a:hover { color: var(--gold); }

.form-card {
  background: #fff; border-radius: var(--radius-lg); padding: clamp(1.7rem, 3vw, 2.5rem);
  box-shadow: var(--shadow-lg); color: var(--body);
}
.form-card h3 { margin-bottom: .3rem; }
.form-card > p { font-size: .93rem; margin-bottom: 1.6rem; }
.field { margin-bottom: 1.05rem; }
.field label {
  display: block; font-size: .82rem; font-weight: 800; color: var(--ink);
  margin-bottom: .4rem; letter-spacing: .01em;
}
.field input, .field select, .field textarea {
  width: 100%; padding: .82rem 1rem; border: 1.5px solid var(--line);
  border-radius: var(--radius-sm); background: var(--cream);
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 96px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--red); background: #fff;
  box-shadow: 0 0 0 4px rgba(224, 27, 34, .1);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 480px) { .field-row { grid-template-columns: 1fr; } }
.form-status { font-size: .88rem; margin-top: .9rem; font-weight: 700; min-height: 1.2em; }
.form-status.is-error { color: var(--red); }
.form-status.is-ok { color: #1faa53; }
.form-note { font-size: .8rem; color: var(--muted); margin-top: .8rem; }

.map-embed {
  margin-top: 1.6rem; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line-dark); aspect-ratio: 16 / 9; background: rgba(255,255,255,.05);
}
.map-embed iframe { width: 100%; height: 100%; border: 0; display: block; }

/* =====================================================================
   CTA band
   ===================================================================== */
.cta-band {
  position: relative; overflow: hidden; border-radius: var(--radius-lg);
  padding: clamp(2.4rem, 5vw, 4rem); text-align: center; color: #fff;
  background: linear-gradient(135deg, var(--red-dark), var(--red) 50%, #f0323a);
  box-shadow: var(--shadow-lg);
}
.cta-band::before, .cta-band::after {
  content: ""; position: absolute; border-radius: 50%; pointer-events: none;
  background: rgba(255, 255, 255, .1);
}
.cta-band::before { width: 320px; height: 320px; top: -140px; right: -80px; }
.cta-band::after { width: 220px; height: 220px; bottom: -110px; left: -50px; }
.cta-band h2 { color: #fff; position: relative; }
.cta-band p { position: relative; color: rgba(255, 255, 255, .88); max-width: 40rem; margin-inline: auto; }
.cta-band .hero-actions { position: relative; justify-content: center; }

/* =====================================================================
   Footer
   ===================================================================== */
.site-footer { background: #060d20; color: rgba(255, 255, 255, .6); padding: 4.2rem 0 0; font-size: .93rem; }
.footer-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 2.4rem; padding-bottom: 3rem;
}
@media (max-width: 880px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 {
  color: #fff; font-size: .8rem; letter-spacing: .15em; text-transform: uppercase;
  margin-bottom: 1.15rem;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.site-footer a:hover { color: var(--gold); }
.footer-brand img { height: 52px; width: auto; margin-bottom: 1.1rem; }
.footer-brand p { font-size: .92rem; max-width: 26rem; }
.footer-social { display: flex; gap: .65rem; margin-top: 1.3rem; }
.footer-social a {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(255, 255, 255, .07); border: 1px solid var(--line-dark);
  transition: .25s; color: #fff;
}
.footer-social a:hover { background: var(--red); transform: translateY(-3px); border-color: transparent; }
.footer-social .icon { width: 18px; height: 18px; }
.footer-bottom {
  border-top: 1px solid var(--line-dark); padding: 1.4rem 0;
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  font-size: .84rem; color: rgba(255, 255, 255, .42);
}

/* ---------- floating actions ------------------------------------------- */
.float-wa {
  position: fixed; right: 20px; bottom: 20px; z-index: 90;
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  background: #1faa53; color: #fff; box-shadow: 0 14px 30px -8px rgba(31, 170, 83, .65);
  transition: transform .3s var(--ease);
}
.float-wa .icon { width: 28px; height: 28px; }
.float-wa:hover { transform: scale(1.09) rotate(-6deg); }
.float-wa::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid #1faa53; animation: ripple 2.4s ease-out infinite;
}
@keyframes ripple {
  0% { transform: scale(1); opacity: .8; }
  100% { transform: scale(1.75); opacity: 0; }
}
.to-top {
  position: fixed; right: 22px; bottom: 88px; z-index: 90;
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: var(--navy); color: #fff; box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(10px); transition: .3s var(--ease);
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top .icon { width: 18px; height: 18px; transform: rotate(-90deg); }

/* ---------- reveal animation --------------------------------------------- */
[data-reveal] {
  opacity: 0; transform: translateY(26px);
  transition: opacity .75s var(--ease), transform .75s var(--ease);
}
[data-reveal="left"]  { transform: translateX(-32px); }
[data-reveal="right"] { transform: translateX(32px); }
[data-reveal="zoom"]  { transform: scale(.94); }
[data-reveal].is-revealed { opacity: 1; transform: none; }

/* =====================================================================
   3D SCENE BLOCKS
   Containers for the canvases in assets/js/scenes3d.js, plus two
   CSS-3D pieces (the poster cube and the tilting stat prisms) that
   are cheaper done in the compositor than on a canvas.
   ===================================================================== */

/* ---------- full-width scene band ------------------------------------- */
.scene-band {
  position: relative;
  background: radial-gradient(120% 130% at 50% 0%, var(--navy-3) 0%, var(--navy) 62%);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.scene-band::before {
  /* faint grid so the depth has something to read against */
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 68px 68px;
  mask-image: radial-gradient(75% 75% at 50% 45%, #000 0%, transparent 100%);
  -webkit-mask-image: radial-gradient(75% 75% at 50% 45%, #000 0%, transparent 100%);
}
.scene-band > .wrap { position: relative; z-index: 2; }
.scene-band .section-head h2,
.scene-band h2 { color: #fff; }
.scene-band .section-head p,
.scene-band .lede { color: rgba(230, 236, 255, .78); }

.scene-canvas {
  position: relative;
  display: block;
  width: 100%;
  height: 460px;
  touch-action: pan-y;
}
.scene-canvas--tall { height: 560px; }
.scene-canvas--short { height: 360px; }
@media (max-width: 780px) {
  .scene-canvas { height: 340px; }
  .scene-canvas--tall { height: 400px; }
  .scene-canvas--short { height: 280px; }
}

/* a canvas that sits behind copy rather than beside it */
.scene-bg {
  position: absolute; inset: 0; z-index: 1;
  width: 100%; height: 100%;
  opacity: .85; pointer-events: none;
}

/* ---------- boxed scene (used in split layouts) ------------------------ */
.scene-box {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: radial-gradient(110% 120% at 50% 0%, var(--navy-3) 0%, var(--navy) 70%);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line-dark);
}
.scene-box--light {
  background: linear-gradient(160deg, #fff 0%, var(--cream) 100%);
  border-color: var(--line);
}
.scene-box .scene-tag {
  position: absolute; left: 1.1rem; top: 1.1rem; z-index: 3;
  font-size: .66rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase;
  padding: .4rem .75rem; border-radius: 999px;
  background: rgba(255, 255, 255, .10); color: rgba(255, 255, 255, .85);
  border: 1px solid rgba(255, 255, 255, .16);
  backdrop-filter: blur(6px);
}
.scene-box--light .scene-tag {
  background: var(--red-soft); color: var(--red-dark); border-color: rgba(224, 27, 34, .18);
}
.scene-box .scene-note {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3;
  padding: 1.5rem 1.4rem 1.2rem;
  font-size: .88rem; line-height: 1.5;
  color: rgba(226, 233, 255, .82);
  background: linear-gradient(transparent, rgba(11, 21, 51, .85) 55%);
}
.scene-box--light .scene-note {
  color: var(--body);
  background: linear-gradient(transparent, rgba(255, 255, 255, .92) 55%);
}

/* ---------- scene grid ------------------------------------------------- */
.scene-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 1.5rem;
}

/* ---------- CSS-3D poster cube ----------------------------------------- */
.cube-stage {
  perspective: 1400px;
  display: grid;
  place-items: center;
  padding: 3.5rem 0 4.5rem;
}
.cube {
  position: relative;
  width: 240px; height: 240px;
  transform-style: preserve-3d;
  animation: cube-spin 26s linear infinite;
}
.cube-stage:hover .cube { animation-play-state: paused; }
.cube-face {
  position: absolute; inset: 0;
  border-radius: 14px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, .22);
  box-shadow: 0 22px 60px -22px rgba(0, 0, 0, .75);
  background: var(--navy-2);
  backface-visibility: visible;
}
.cube-face img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cube-face::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(150deg, rgba(255, 255, 255, .22), transparent 45%);
}
.cube-face:nth-child(1) { transform: translateZ(120px); }
.cube-face:nth-child(2) { transform: rotateY(90deg)  translateZ(120px); }
.cube-face:nth-child(3) { transform: rotateY(180deg) translateZ(120px); }
.cube-face:nth-child(4) { transform: rotateY(-90deg) translateZ(120px); }
.cube-face:nth-child(5) { transform: rotateX(90deg)  translateZ(120px); }
.cube-face:nth-child(6) { transform: rotateX(-90deg) translateZ(120px); }
@keyframes cube-spin {
  0%   { transform: rotateX(-18deg) rotateY(0deg); }
  100% { transform: rotateX(-18deg) rotateY(360deg); }
}
@media (max-width: 560px) {
  .cube { width: 170px; height: 170px; }
  .cube-face:nth-child(1) { transform: translateZ(85px); }
  .cube-face:nth-child(2) { transform: rotateY(90deg)  translateZ(85px); }
  .cube-face:nth-child(3) { transform: rotateY(180deg) translateZ(85px); }
  .cube-face:nth-child(4) { transform: rotateY(-90deg) translateZ(85px); }
  .cube-face:nth-child(5) { transform: rotateX(90deg)  translateZ(85px); }
  .cube-face:nth-child(6) { transform: rotateX(-90deg) translateZ(85px); }
}
@media (prefers-reduced-motion: reduce) {
  .cube { animation: none; transform: rotateX(-18deg) rotateY(-28deg); }
}

/* ---------- CSS-3D prisms (rotating stat blocks) ----------------------- */
.prism-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1.4rem;
  perspective: 1200px;
}
.prism {
  position: relative;
  height: 150px;
  transform-style: preserve-3d;
  animation: prism-turn 12s var(--ease) infinite;
}
.prism:nth-child(2) { animation-delay: 1.2s; }
.prism:nth-child(3) { animation-delay: 2.4s; }
.prism:nth-child(4) { animation-delay: 3.6s; }
.prism-face {
  position: absolute; inset: 0;
  display: grid; place-content: center; text-align: center; gap: .3rem;
  border-radius: var(--radius);
  padding: 1rem;
  backface-visibility: hidden;
  border: 1px solid rgba(255, 255, 255, .14);
  background: rgba(255, 255, 255, .05);
}
.prism-face b { font-size: 2rem; font-weight: 800; color: #fff; line-height: 1.1; }
.prism-face span { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: rgba(214, 224, 255, .7); font-weight: 800; }
.prism-face--front { transform: rotateX(0deg) translateZ(75px); }
.prism-face--top {
  transform: rotateX(90deg) translateZ(75px);
  background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);
  border-color: transparent;
}
.prism-face--top span { color: rgba(255, 255, 255, .82); }
@keyframes prism-turn {
  0%, 42%   { transform: rotateX(0deg); }
  50%, 92%  { transform: rotateX(-90deg); }
  100%      { transform: rotateX(0deg); }
}
@media (prefers-reduced-motion: reduce) { .prism { animation: none; } }

/* ---------- hint line under an interactive scene ----------------------- */
.scene-hint {
  display: inline-flex; align-items: center; gap: .5rem;
  margin-top: 1.1rem;
  font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  color: rgba(214, 224, 255, .62);
}
.scene-hint .icon { width: 16px; height: 16px; }
.scene-box--light + .scene-hint, .section .scene-hint { color: var(--muted); }

/* ---------- 3D tour hero (canvas behind the copy) ---------------------- */
.hero--tour {
  min-height: min(88vh, 820px);
  display: grid;
  align-items: center;
  padding: clamp(5rem, 10vw, 8rem) 0 clamp(5rem, 10vw, 8rem);
}
.hero--tour .scene-bg { z-index: 1; opacity: .8; }
.tour-hero-copy {
  position: relative; z-index: 2;
  max-width: 42rem;
}
.tour-hero-copy h1 { color: #fff; margin-bottom: .55rem; }
.tour-hero-copy .lede { color: rgba(226, 233, 255, .82); }
@media (max-width: 900px) {
  .hero--tour { text-align: center; }
  .tour-hero-copy { margin-inline: auto; }
  .hero--tour .hero-actions { justify-content: center; }
}

/* the tunnel canvas runs edge-to-edge inside its band */
.scene-band > .scene-canvas {
  position: relative; z-index: 2;
  margin: clamp(1rem, 3vw, 2.4rem) 0 clamp(2rem, 4vw, 3rem);
}
