:root {
  --navy: #000060;
  --navy-deep: #00003f;
  --orange: #fa5001;
  --hero-orange: #ef640e;
  --orange-bright: #ff681f;
  --white: #ffffff;
  --off-white: #f7f7fb;
  --ink: #08081f;
  --muted: #6f7082;
  --line: rgba(255, 255, 255, 0.18);
  --shadow: 0 24px 70px rgba(0, 0, 48, 0.25);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--hero-orange);
}

body {
  margin: 0;
  color: var(--white);
  background:
    radial-gradient(circle at 84% 12%, rgba(0, 0, 96, 0.13), transparent 28rem),
    var(--hero-orange);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.sheet-open {
  overflow: hidden;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

a {
  color: inherit;
}

.ambient {
  position: fixed;
  z-index: 0;
  border-radius: 999px;
  pointer-events: none;
  filter: blur(10px);
  opacity: 0.5;
}

.ambient-one {
  width: 280px;
  height: 280px;
  right: -160px;
  top: 160px;
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.ambient-two {
  width: 180px;
  height: 180px;
  left: -110px;
  top: 560px;
  background: rgba(250, 80, 1, 0.08);
}

main {
  position: relative;
  z-index: 1;
  width: min(100%, 1080px);
  margin: 0 auto;
}

.hero,
.programs,
.contact {
  padding: 24px 20px;
}

.hero {
  min-height: 93svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: max(24px, env(safe-area-inset-top));
  padding-bottom: 42px;
  background: var(--hero-orange);
}

.brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-logo {
  width: 62px;
  height: 62px;
  display: block;
  object-fit: contain;
}

.icon-button {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  transition: 180ms ease;
}

.icon-button svg {
  width: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.icon-button .fill-dot {
  fill: currentColor;
  stroke: none;
}

.eyebrow {
  margin-top: 70px;
  display: flex;
  align-items: center;
  gap: 9px;
  color: rgba(255, 255, 255, 0.65);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow span {
  width: 25px;
  height: 2px;
  background: var(--white);
}

h1 {
  margin: 18px 0 18px;
  font-size: clamp(38px, 10.5vw, 72px);
  line-height: 0.92;
  letter-spacing: -0.065em;
  font-weight: 900;
}

h1 em {
  color: var(--navy);
  font-style: normal;
}

.hero-copy {
  max-width: 540px;
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 15px;
  line-height: 1.6;
}

.hero-actions {
  margin-top: 28px;
  margin-bottom: auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 16px;
}

.primary-button {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 20px;
  border: 0;
  border-radius: 17px;
  color: var(--white);
  background: var(--orange);
  box-shadow: 0 15px 35px rgba(250, 80, 1, 0.25);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease;
}

.primary-button svg {
  width: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.primary-button:active {
  transform: scale(0.98);
}

.text-link {
  align-self: center;
  color: var(--navy);
  font-size: 12px;
  font-weight: 800;
  text-underline-offset: 4px;
}

.programs {
  padding-top: 66px;
  padding-bottom: 72px;
  border-radius: 32px 32px 0 0;
  color: var(--ink);
  background: var(--off-white);
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
}

.section-kicker {
  margin: 0 0 11px;
  color: var(--orange);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.section-heading h2,
.contact h2 {
  margin: 0;
  font-size: clamp(31px, 9vw, 52px);
  line-height: 0.99;
  letter-spacing: -0.055em;
  font-weight: 900;
}

.contact h2 {
  font-size: clamp(24px, 7.2vw, 52px);
}

.title-line {
  display: block;
  white-space: nowrap;
}

.section-number {
  padding-bottom: 4px;
  color: #a2a2ae;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.link-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 30px;
}

.program-card {
  width: 100%;
  min-height: 156px;
  display: block;
  position: relative;
  padding: 17px;
  overflow: hidden;
  border: 1px solid #e7e7ec;
  border-radius: 20px;
  color: var(--ink);
  background: var(--white);
  font: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 5px 20px rgba(8, 8, 31, 0.035);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.program-card.featured {
  grid-column: 1 / -1;
  min-height: 146px;
  color: var(--white);
  background: var(--navy);
  border-color: var(--navy);
}

.program-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: var(--orange);
  background: rgba(250, 80, 1, 0.1);
  font-size: 19px;
}

.program-card.featured .program-icon {
  background: rgba(255, 255, 255, 0.09);
}

.program-card h3 {
  margin: 17px 28px 5px 0;
  font-size: 15px;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.program-card p {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.45;
}

.program-card.featured p {
  color: rgba(255, 255, 255, 0.58);
}

.card-arrow {
  position: absolute;
  right: 15px;
  bottom: 15px;
  color: var(--orange);
  font-size: 19px;
}

.contact {
  min-height: 530px;
  display: flex;
  flex-direction: column;
  padding-top: 68px;
  padding-bottom: max(28px, env(safe-area-inset-bottom));
  background: var(--navy);
}

.section-kicker.orange {
  color: var(--orange);
}

.contact-copy p:last-child {
  max-width: 510px;
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.83);
  font-size: 13px;
  line-height: 1.6;
}

.contact-actions {
  margin-top: 28px;
  display: grid;
  gap: 12px;
}

.primary-button.light {
  color: var(--navy);
  background: var(--white);
  box-shadow: 0 16px 34px rgba(98, 27, 0, 0.18);
}

.instagram-link {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 17px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: auto;
  padding-top: 60px;
  color: rgba(255, 255, 255, 0.67);
  font-size: 9px;
  letter-spacing: 0.04em;
}

.sheet-backdrop {
  position: fixed;
  z-index: 20;
  inset: 0;
  background: rgba(0, 0, 35, 0.65);
  backdrop-filter: blur(5px);
}

.sheet {
  position: fixed;
  z-index: 21;
  right: 0;
  bottom: 0;
  left: 0;
  max-height: 88svh;
  padding: 28px 20px max(26px, env(safe-area-inset-bottom));
  overflow-y: auto;
  border-radius: 28px 28px 0 0;
  color: var(--ink);
  background: var(--white);
  box-shadow: var(--shadow);
  animation: sheet-in 240ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.sheet-close {
  width: 38px;
  height: 38px;
  position: absolute;
  top: 19px;
  right: 18px;
  border: 0;
  border-radius: 50%;
  color: var(--ink);
  background: #f0f0f4;
  font-size: 23px;
  line-height: 1;
  cursor: pointer;
}

.sheet-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  margin-bottom: 23px;
  border-radius: 16px;
  color: var(--orange);
  background: rgba(250, 80, 1, 0.11);
  font-size: 23px;
}

.sheet-kicker {
  margin: 0 0 8px;
  color: var(--orange);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.sheet h2 {
  max-width: calc(100% - 45px);
  margin: 0;
  font-size: 36px;
  line-height: 1;
  letter-spacing: -0.055em;
  font-weight: 900;
}

.sheet > p:not(.sheet-kicker) {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.sheet-cta {
  margin-top: 27px;
}

.sheet-bullets {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 18px;
}

.sheet-bullets span {
  padding: 7px 10px;
  border-radius: 999px;
  color: var(--navy);
  background: #f0f0f8;
  font-size: 9px;
  font-weight: 700;
}

[hidden] {
  display: none !important;
}

@keyframes sheet-in {
  from { transform: translateY(30px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

:focus-visible {
  outline: 3px solid #ffc4a8;
  outline-offset: 3px;
}

@media (hover: hover) {
  .program-card:hover {
    transform: translateY(-3px);
    border-color: rgba(250, 80, 1, 0.45);
    box-shadow: 0 14px 32px rgba(8, 8, 31, 0.08);
  }

  .primary-button:hover {
    background: var(--orange-bright);
  }

  .primary-button.light:hover {
    background: #f1f1f6;
  }

  .icon-button:hover {
    color: var(--orange);
    border-color: var(--orange);
  }
}

@media (min-width: 720px) {
  .hero,
  .programs,
  .contact {
    padding-right: 58px;
    padding-left: 58px;
  }

  .hero-actions {
    max-width: 480px;
    grid-template-columns: 1fr;
  }

  .link-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
  }

  .program-card.featured {
    grid-column: span 2;
  }

  .contact-actions {
    max-width: 480px;
  }

  .sheet {
    width: min(540px, calc(100% - 40px));
    right: 20px;
    bottom: 20px;
    left: auto;
    border-radius: 28px;
    padding: 34px;
  }

}

@media (min-width: 1000px) {
  body {
    padding: 28px 0;
  }

  main {
    overflow: hidden;
    border-radius: 34px;
    box-shadow: 0 30px 100px rgba(0, 0, 30, 0.35);
  }

  .hero {
    min-height: 770px;
    padding: 46px 76px 56px;
  }

  .programs,
  .contact {
    padding-right: 76px;
    padding-left: 76px;
  }

  .programs {
    border-radius: 0;
  }

  .link-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .program-card.featured {
    grid-column: span 2;
  }

  .contact {
    min-height: 500px;
  }

  .contact-copy,
  .contact-actions {
    max-width: 620px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
