:root {
  --background: #03172c;
  --surface: #102a4d;
  --panel-background: #0b1f3a;
  --primary: #2563eb;
  --primary-hover: #3472f4;
  --sky: #7dd3fc;
  --foreground: #f5f9ff;
  --muted: rgba(245, 249, 255, 0.72);
  --border: rgba(255, 255, 255, 0.12);
  --container: 1280px;
  --header-height: 64px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; overflow-x: hidden; }
body {
  margin: 0;
  min-width: 0;
  overflow-x: hidden;
  background: var(--background);
  color: var(--foreground);
  font-family: "Inter", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
/* Keep decorative glows inside the viewport without creating a scroll container. */
@supports (overflow: clip) {
  html, body { overflow-x: clip; }
}
body.menu-open { overflow: hidden; }
/* Card glow layers extend beyond their cards; clip them at the page content edge. */
main { width: 100%; min-width: 0; overflow-x: hidden; }
@supports (overflow: clip) {
  main { overflow-x: clip; }
}
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button { color: inherit; }
img { display: block; max-width: 100%; }
::selection { background: rgba(37, 99, 235, 0.6); color: white; }

.container { width: min(var(--container), calc(100% - 48px)); margin-inline: auto; }
/* Let grid and flex content shrink to the available mobile width. */
:where(.two-column, .card-grid, .steps, .info-grid, .contact-grid, .contact-list, .footer-grid, .contact-row) > * { min-width: 0; }
.contact-row > div, .footer-grid a, .info-grid dd { overflow-wrap: anywhere; }
.section { padding-block: 80px; }
.section-label {
  margin: 0 0 16px;
  color: var(--sky);
  font-size: 12px;
  line-height: 1.4;
  font-weight: 500;
  letter-spacing: .24em;
  text-transform: uppercase;
}
h1, h2, h3, .brand, .footer-brand { font-family: "Space Grotesk", sans-serif; }
h1, h2, h3, p { overflow-wrap: break-word; }
h1 { margin: 0; font-size: clamp(48px, 8vw, 112px); line-height: 1; letter-spacing: -.055em; }
.hero-title-line { white-space: nowrap; }
h2 { max-width: 800px; margin: 0; font-size: clamp(40px, 5vw, 64px); line-height: 1.03; letter-spacing: -.04em; }
h3 { margin: 0; font-size: 21px; line-height: 1.18; }
p { line-height: 1.7; }

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-height);
  transition: transform .3s ease, background .3s ease, border-color .3s ease;
}
.site-header.scrolled { background: rgba(3, 23, 44, .9); border-bottom-color: transparent; box-shadow: 0 10px 30px rgba(0, 0, 0, .16); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }
.site-header.hidden-nav { transform: translateY(-100%); }
.nav { height: var(--header-height); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { font-size: 21px; font-weight: 700; letter-spacing: -.035em; }
.desktop-nav { display: flex; align-items: center; gap: 32px; color: var(--muted); font-size: 13px; font-weight: 500; letter-spacing: .03em; }
.desktop-nav a { transition: color .2s ease; }
.desktop-nav a:hover { color: white; }
.nav-actions { display: none; align-items: center; gap: 10px; }
.button.nav-cta { width: auto; min-width: 160px; min-height: 44px; height: 44px; padding-block: 10px; }
.menu-toggle { display: none; width: 42px; height: 42px; padding: 10px; border: 1px solid var(--border); border-radius: 50%; background: rgba(255,255,255,.03); cursor: pointer; }
.menu-toggle span { display: block; height: 1.5px; margin: 4px 0; background: white; transition: transform .25s ease, opacity .2s ease; }
.menu-toggle.open span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }
.mobile-menu { position: fixed; inset: var(--header-height) 0 auto; max-height: calc(100dvh - var(--header-height)); overflow-y: auto; z-index: 98; background: rgba(3,23,44,.97); border-top: 1px solid var(--border); box-shadow: 0 30px 80px rgba(0,0,0,.4); backdrop-filter: blur(20px); }
.mobile-menu[hidden] { display: none; }
.mobile-menu-inner { display: flex; flex-direction: column; padding-block: 14px 22px; animation: menuIn .25s ease both; }
.mobile-menu-inner > a:not(.button) { padding: 15px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.mobile-menu-inner .button { margin-top: 16px; max-width: none; }
@keyframes menuIn { from { opacity: 0; transform: translateY(-10px); } }

.mobile-backdrop {
  position: fixed;
  inset: var(--header-height) 0 0;
  z-index: 96;
  background: rgba(3,23,44,.6);
  backdrop-filter: blur(4px);
  animation: fadeIn .24s ease both;
}
.mobile-backdrop.closing { animation: fadeOut .24s ease both; }
.mobile-menu.opening { animation: slideDown .28s cubic-bezier(.2,.8,.2,1) both; }
.mobile-menu.closing { animation: slideUp .24s cubic-bezier(.4,0,.6,1) both; }
.mobile-menu.opening .mobile-menu-inner > * { animation: slideDown .28s cubic-bezier(.2,.8,.2,1) both; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeOut { from { opacity: 1; } to { opacity: 0; } }
@keyframes slideDown { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideUp { from { opacity: 1; transform: translateY(0); } to { opacity: 0; transform: translateY(-12px); } }

.button {
  display: inline-flex;
  width: min(100%, 320px);
  min-width: 256px;
  min-height: 48px;
  padding: 12px 28px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .02em;
  transition: transform .2s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.button:hover { transform: translateY(-1px); }
.button-primary { background: var(--primary); color: white; box-shadow: 0 25px 70px -28px rgba(37,99,235,.95); }
.button-primary:hover { background: var(--primary-hover); box-shadow: 0 25px 65px -22px rgba(37,99,235,1); }
.button-ghost { background: rgba(255,255,255,.06); color: white; border-color: rgba(255,255,255,.23); backdrop-filter: blur(8px); }
.button-ghost:hover { background: rgba(255,255,255,.14); border-color: rgba(125,211,252,.65); }

.hero { position: relative; min-height: 92vh; overflow: hidden; }
.section-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(3,23,44,.65), rgba(3,23,44,.40) 52%, rgba(37,99,235,.18)), rgba(3,23,44,.10); }
.hero-content { position: relative; z-index: 3; min-height: 92vh; display: flex; flex-direction: column; justify-content: flex-end; padding-block: 150px 112px; }
.eyebrow-pill { display: inline-flex; width: fit-content; margin: 0 0 24px; padding: 7px 16px; border: 1px solid rgba(255,255,255,.2); border-radius: 999px; background: rgba(255,255,255,.05); color: var(--sky); font-size: 12px; letter-spacing: .24em; text-transform: uppercase; backdrop-filter: blur(10px); }
.hero-copy { max-width: 680px; margin: 24px 0 0; color: rgba(245,249,255,.86); font-size: clamp(18px, 2vw, 21px); }
.hero-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.ribbons-canvas {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.two-column { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 64px; }
.about-grid .image-card { order: 0; }
.image-card { overflow: hidden; border: 1px solid var(--border); border-radius: 32px; background: var(--surface); }
.image-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease; }
.image-card:hover img { transform: scale(1.025); }
.portrait { aspect-ratio: 7/8; }
.body-copy { margin-top: 24px; color: rgba(245,249,255,.84); font-size: clamp(16px, 1.35vw, 18px); }
.body-copy p { margin: 0 0 13px; }

.card-grid { display: grid; gap: 20px; margin-top: 36px; }
.focus-grid { grid-template-columns: repeat(4, 1fr); }
.border-glow-card {
  --edge-proximity: 0;
  --cursor-angle: 45deg;
  --edge-sensitivity: 30;
  --color-sensitivity: calc(var(--edge-sensitivity) + 20);
  --border-radius: 28px;
  --glow-padding: 40px;
  --cone-spread: 25;
  --fill-opacity: .5;
  --card-bg: var(--panel-background);
  --glow-color: hsl(205deg 90% 70% / 100%);
  --glow-color-60: hsl(205deg 90% 70% / 60%);
  --glow-color-50: hsl(205deg 90% 70% / 50%);
  --glow-color-40: hsl(205deg 90% 70% / 40%);
  --glow-color-30: hsl(205deg 90% 70% / 30%);
  --glow-color-20: hsl(205deg 90% 70% / 20%);
  --glow-color-10: hsl(205deg 90% 70% / 10%);
  --gradient-one: radial-gradient(at 80% 55%, #2563eb 0px, transparent 50%);
  --gradient-two: radial-gradient(at 69% 34%, #7dd3fc 0px, transparent 50%);
  --gradient-three: radial-gradient(at 8% 6%, #60a5fa 0px, transparent 50%);
  --gradient-four: radial-gradient(at 41% 38%, #2563eb 0px, transparent 50%);
  --gradient-five: radial-gradient(at 86% 85%, #7dd3fc 0px, transparent 50%);
  --gradient-six: radial-gradient(at 82% 18%, #60a5fa 0px, transparent 50%);
  --gradient-seven: radial-gradient(at 51% 4%, #7dd3fc 0px, transparent 50%);
  --gradient-base: linear-gradient(#2563eb 0 100%);
  position: relative;
  display: grid;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--border-radius);
  background: var(--card-bg);
  isolation: isolate;
  overflow: visible;
  transform: translate3d(0,0,.01px);
}
.border-glow-card::before,
.border-glow-card::after,
.border-glow-card > .edge-light {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  transition: opacity .25s ease-out;
}
.border-glow-card:not(:hover):not(.sweep-active)::before,
.border-glow-card:not(:hover):not(.sweep-active)::after,
.border-glow-card:not(:hover):not(.sweep-active) > .edge-light {
  opacity: 0;
  transition: opacity .75s ease-in-out;
}
.border-glow-card::before {
  border: 1px solid transparent;
  background:
    linear-gradient(var(--card-bg) 0 100%) padding-box,
    linear-gradient(rgb(255 255 255 / 0%) 0 100%) border-box,
    var(--gradient-one) border-box,
    var(--gradient-two) border-box,
    var(--gradient-three) border-box,
    var(--gradient-four) border-box,
    var(--gradient-five) border-box,
    var(--gradient-six) border-box,
    var(--gradient-seven) border-box,
    var(--gradient-base) border-box;
  opacity: calc((var(--edge-proximity) - var(--color-sensitivity)) / (100 - var(--color-sensitivity)));
  -webkit-mask-image: conic-gradient(from var(--cursor-angle) at center, black calc(var(--cone-spread) * 1%), transparent calc((var(--cone-spread) + 15) * 1%), transparent calc((100 - var(--cone-spread) - 15) * 1%), black calc((100 - var(--cone-spread)) * 1%));
  mask-image: conic-gradient(from var(--cursor-angle) at center, black calc(var(--cone-spread) * 1%), transparent calc((var(--cone-spread) + 15) * 1%), transparent calc((100 - var(--cone-spread) - 15) * 1%), black calc((100 - var(--cone-spread)) * 1%));
}
.border-glow-card::after {
  border: 1px solid transparent;
  background:
    var(--gradient-one) padding-box,
    var(--gradient-two) padding-box,
    var(--gradient-three) padding-box,
    var(--gradient-four) padding-box,
    var(--gradient-five) padding-box,
    var(--gradient-six) padding-box,
    var(--gradient-seven) padding-box,
    var(--gradient-base) padding-box;
  -webkit-mask-image:
    linear-gradient(to bottom, black, black),
    radial-gradient(ellipse at 50% 50%, black 40%, transparent 65%),
    radial-gradient(ellipse at 66% 66%, black 5%, transparent 40%),
    radial-gradient(ellipse at 33% 33%, black 5%, transparent 40%),
    radial-gradient(ellipse at 66% 33%, black 5%, transparent 40%),
    radial-gradient(ellipse at 33% 66%, black 5%, transparent 40%),
    conic-gradient(from var(--cursor-angle) at center, transparent 5%, black 15%, black 85%, transparent 95%);
  mask-image:
    linear-gradient(to bottom, black, black),
    radial-gradient(ellipse at 50% 50%, black 40%, transparent 65%),
    radial-gradient(ellipse at 66% 66%, black 5%, transparent 40%),
    radial-gradient(ellipse at 33% 33%, black 5%, transparent 40%),
    radial-gradient(ellipse at 66% 33%, black 5%, transparent 40%),
    radial-gradient(ellipse at 33% 66%, black 5%, transparent 40%),
    conic-gradient(from var(--cursor-angle) at center, transparent 5%, black 15%, black 85%, transparent 95%);
  -webkit-mask-composite: source-out, source-over, source-over, source-over, source-over, source-over;
  mask-composite: subtract, add, add, add, add, add;
  opacity: calc(var(--fill-opacity) * (var(--edge-proximity) - var(--color-sensitivity)) / (100 - var(--color-sensitivity)));
  mix-blend-mode: soft-light;
}
.border-glow-card > .edge-light {
  inset: calc(var(--glow-padding) * -1);
  z-index: 1;
  pointer-events: none;
  -webkit-mask-image: conic-gradient(from var(--cursor-angle) at center, black 2.5%, transparent 10%, transparent 90%, black 97.5%);
  mask-image: conic-gradient(from var(--cursor-angle) at center, black 2.5%, transparent 10%, transparent 90%, black 97.5%);
  opacity: calc((var(--edge-proximity) - var(--edge-sensitivity)) / (100 - var(--edge-sensitivity)));
  mix-blend-mode: plus-lighter;
}
.border-glow-card > .edge-light::before {
  content: "";
  position: absolute;
  inset: var(--glow-padding);
  border-radius: inherit;
  box-shadow:
    inset 0 0 0 1px var(--glow-color),
    inset 0 0 1px 0 var(--glow-color-60),
    inset 0 0 3px 0 var(--glow-color-50),
    inset 0 0 6px 0 var(--glow-color-40),
    inset 0 0 15px 0 var(--glow-color-30),
    inset 0 0 25px 2px var(--glow-color-20),
    inset 0 0 50px 2px var(--glow-color-10),
    0 0 1px 0 var(--glow-color-60),
    0 0 3px 0 var(--glow-color-50),
    0 0 6px 0 var(--glow-color-40),
    0 0 15px 0 var(--glow-color-30),
    0 0 25px 2px var(--glow-color-20),
    0 0 50px 2px var(--glow-color-10);
}
.border-glow-inner {
  position: relative;
  z-index: 1;
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border-radius: inherit;
}
.focus-glow {
  --border-radius: 24px;
  --glow-padding: 30px;
  --edge-sensitivity: 25;
  --cone-spread: 22;
  height: 100%;
  transition: transform .25s ease;
}
.focus-glow:hover { transform: translateY(-4px); }
.glow-card-content { min-height: 320px; padding: 32px; }
.focus-glow:hover .card-number { color: var(--primary); }
.card-number { display: block; color: rgba(37,99,235,.7); font-family: "Space Grotesk"; font-size: 50px; line-height: 1; font-weight: 700; transition: color .25s ease; }
.small-line { display: block; width: 40px; height: 1px; margin: 25px 0; background: rgba(125,211,252,.65); }
.glow-card-content p { margin: 12px 0 0; color: var(--muted); font-size: 14px; }
.beat-glow,
.info-glow {
  --border-radius: 28px;
  --glow-padding: 40px;
  --edge-sensitivity: 28;
}

.steps { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 36px; margin-top: 46px; }
.steps::before { content: ""; position: absolute; top: 24px; left: 25px; right: 25px; height: 1px; background: linear-gradient(90deg, rgba(37,99,235,.7), rgba(125,211,252,.35), transparent); }
.step { position: relative; padding-top: 74px; }
.step > span { position: absolute; top: 0; left: 0; display: grid; width: 50px; height: 50px; place-items: center; border: 1px solid rgba(37,99,235,.55); border-radius: 50%; background: var(--background); color: var(--primary); font-family: "Space Grotesk"; font-size: 14px; font-weight: 700; }
.step p { margin: 12px 0 0; color: var(--muted); font-size: 14px; }

.beat-section { padding-block: 40px 64px; }
.beat-panel { position: relative; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 52px; padding: 56px; }
.beat-panel h2 { font-size: clamp(36px, 4vw, 54px); }
.beat-panel p:not(.section-label) { max-width: 510px; margin: 24px 0 0; color: var(--muted); font-size: 17px; }
.equalizer { display: flex; height: 270px; align-items: flex-end; justify-content: space-between; gap: 5px; overflow: hidden; }
.equalizer span { display: block; flex: 1; min-width: 2px; border-radius: 999px; transform-origin: bottom; background: linear-gradient(to top, var(--primary), var(--sky)); animation: beat var(--duration) ease-in-out var(--beat-delay) infinite alternate; }
@keyframes beat { from { transform: scaleY(.35); opacity: .58; } to { transform: scaleY(1); opacity: 1; } }

.info-section { padding-block: 64px; }
.info-panel { position: relative; padding: 54px; overflow: hidden; border-radius: 28px; }
.info-panel > * { position: relative; z-index: 1; }
.info-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; margin: 36px 0 0; }
.info-grid > div { padding-top: 17px; border-top: 1px solid rgba(255,255,255,.15); }
.info-grid dt, .contact-row small { color: var(--sky); font-size: 11px; line-height: 1.5; letter-spacing: .15em; text-transform: uppercase; }
.info-grid dd { margin: 12px 0 0; font-family: "Space Grotesk"; font-size: 20px; line-height: 1.25; font-weight: 600; }
.info-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; margin-top: 34px; }
.info-actions p { margin: 0; color: rgba(245,249,255,.58); font-size: 14px; }

.instructor-grid { grid-template-columns: minmax(0, 1fr) 1.2fr; }
.instructor-image { width: 100%; padding: 0; cursor: pointer; appearance: none; aspect-ratio: 4/5; }
.instructor-copy { margin: 24px 0 28px; color: rgba(245,249,255,.84); font-size: 18px; }

.faq-section { max-width: 900px; }
.faq-list { display: grid; gap: 9px; margin-top: 36px; }
.faq-item { overflow: hidden; border: 1px solid var(--border); border-radius: 17px; background: var(--panel-background); }
.faq-question { display: flex; width: 100%; padding: 22px 25px; align-items: center; justify-content: space-between; gap: 20px; border: 0; background: transparent; text-align: left; cursor: pointer; font-family: "Space Grotesk"; font-size: 18px; font-weight: 600; }
.faq-question b { color: var(--sky); font-size: 26px; font-weight: 300; transition: transform .25s ease; }
.faq-question[aria-expanded="true"] b { transform: rotate(45deg); }
.faq-answer { display: grid; grid-template-rows: 1fr; transition: grid-template-rows .32s ease; }
.faq-answer > p { min-height: 0; overflow: hidden; margin: 0; padding: 0 25px 22px; color: rgba(245,249,255,.79); font-size: 14px; transition: padding .32s ease; }
.faq-enabled .faq-answer { grid-template-rows: 0fr; }
.faq-enabled .faq-answer > p { padding-bottom: 0; }
.faq-enabled .faq-item.open .faq-answer { grid-template-rows: 1fr; }
.faq-enabled .faq-item.open .faq-answer > p { padding-bottom: 22px; }

.final-cta { position: relative; min-height: 510px; overflow: hidden; }
.final-overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(3,23,44,.65), rgba(37,99,235,.30), rgba(3,23,44,.60)); }
.final-cta-content { position: relative; z-index: 3; min-height: 510px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding-block: 90px; text-align: center; }
.final-cta-content h2 { max-width: 900px; font-size: clamp(42px, 6vw, 76px); }
.final-cta-content p { max-width: 600px; margin: 25px auto 28px; color: rgba(245,249,255,.84); font-size: 18px; }
@media (max-width: 767px) {
  .final-cta .section-image {
    object-fit: cover;
    object-position: calc(50% + 100px) center;
  }
}

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; margin-top: 42px; }
.contact-list { display: grid; gap: 30px; }
.contact-row { display: flex; gap: 16px; align-items: center; }
.contact-icon { display: grid; width: 46px; height: 46px; flex: 0 0 46px; place-items: center; border: 1px solid rgba(255,255,255,.15); border-radius: 50%; background: rgba(255,255,255,.05); color: var(--sky); font-size: 20px; }
.contact-row small { display: block; }
.contact-row strong, .contact-row a { display: block; margin-top: 5px; font-family: "Space Grotesk"; font-size: 18px; font-weight: 600; }
.contact-row a:hover { color: var(--primary-hover); }
.contact-list > .button { margin-top: 8px; }
.contact-socials { display: flex; gap: 14px; }
.contact-socials a { transition: color .2s ease, background .2s ease, border-color .2s ease; }
.contact-socials a:hover { color: white; background: rgba(37,99,235,.25); border-color: var(--sky); }
.contact-socials a:focus-visible { outline: 2px solid var(--sky); outline-offset: 4px; }
.map-card { overflow: hidden; border: 1px solid var(--border); border-radius: 27px; }
.map-card iframe { display: block; border: 0; filter: grayscale(.2) contrast(1.05); }

.footer { border-top: 1px solid var(--border); background: rgba(3,23,44,.62); }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 36px; padding-block: 52px; color: rgba(245,249,255,.75); font-size: 14px; }
.footer-grid p { margin: 4px 0; }
.footer-grid a { display: block; margin-top: 5px; }
.footer-grid a:hover { color: var(--primary-hover); }
.footer-brand { color: white; font-size: 26px; }
.copyright { text-align: right; color: rgba(245,249,255,.55); }

.bio-dialog { width: min(520px, calc(100% - 36px)); padding: 38px; border: 1px solid var(--border); border-radius: 25px; background: var(--surface); color: var(--foreground); box-shadow: 0 30px 100px rgba(0,0,0,.6); }
.bio-dialog::backdrop { background: rgba(4,14,28,.72); backdrop-filter: blur(8px); }
.bio-dialog h2 { font-size: 38px; }
.bio-copy { margin-top: 22px; color: var(--muted); }
.bio-copy p { margin: 0; }
.bio-copy p + p { margin-top: 20px; }
.dialog-close { position: absolute; top: 15px; right: 17px; width: 36px; height: 36px; border: 1px solid var(--border); border-radius: 50%; background: rgba(255,255,255,.04); color: white; cursor: pointer; font-size: 25px; line-height: 1; }

.reveal { opacity: 1; transform: none; }
.reveal-enabled .reveal { opacity: 0; transform: translateY(24px); transition: opacity .75s ease var(--delay, 0ms), transform .75s cubic-bezier(.2,.8,.2,1) var(--delay, 0ms); }
.reveal-enabled .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal-enabled .reveal { opacity: 1; transform: none; }
  .ribbons-canvas { pointer-events: none; }
}

@media (max-width: 1050px) {
  .nav-actions { display: flex; }
  .desktop-nav, .nav-cta { display: none; }
  .menu-toggle { display: block; }
  .focus-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .steps::before { display: none; }
  .info-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 820px) {
  /* Keep the glow's layout bounds inside the narrowest container gutter. */
  .border-glow-card { --glow-padding: 10px; }
  .container { width: min(var(--container), calc(100% - 36px)); }
  .section { padding-block: 62px; }
  .hero-content { padding-block: 130px 82px; }
  .two-column, .beat-panel, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-grid .image-card { order: 2; }
  .instructor-grid .instructor-image { max-height: 700px; }
  .beat-panel, .info-panel { padding: 38px; }
  .equalizer { height: 210px; }
  .info-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .copyright { grid-column: 1/-1; text-align: left; }
}

@media (max-width: 560px) {
  :root { --header-height: 62px; }
  .container { width: min(var(--container), calc(100% - 28px)); }
  .section { padding-block: 52px; }
  h1 { font-size: clamp(30px, 10.5vw, 58px); }
  h2 { font-size: 38px; }
  .hero { min-height: 88svh; }
  .hero-content { min-height: 88svh; padding-block: 116px 60px; }
  .eyebrow-pill { max-width: 100%; font-size: 10px; letter-spacing: .18em; }
  .hero-copy { font-size: 17px; }
  .hero-buttons, .info-actions { align-items: stretch; flex-direction: column; }
  .button { width: 100%; min-width: 0; max-width: none; }
  .focus-grid, .steps, .info-grid, .footer-grid { grid-template-columns: 1fr; }
  .glow-card-content { min-height: auto; }
  .steps { gap: 26px; }
  .step { min-height: 74px; padding: 0 0 0 65px; }
  .step > span { top: 0; }
  .beat-section { width: 100%; padding: 24px 14px 50px; }
  .beat-panel, .info-panel { padding: 30px 22px; }
  .equalizer { height: 165px; gap: 2px; }
  .info-actions p { text-align: center; }
  .final-cta-content { min-height: 480px; }
  .contact-grid { gap: 38px; }
  .copyright { grid-column: auto; }
  .bio-dialog { padding: 32px 23px; }
}

.contact-icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.hero > .section-image,
.final-cta > .section-image { z-index: 0; }
.hero-overlay,
.final-overlay { z-index: 1; }
.hero-content,
.final-cta-content { z-index: 3; }


/* Reveal wrapper and hover share transform on focus cards; this keeps both behaviors. */
.focus-glow:hover,
.reveal-enabled .focus-glow.reveal.is-visible:hover {
  transform: translateY(-4px);
}
