/* Chemistry Tennis Court — landing page
   Brand: Electric Rally #b2ed02 · Crystal Teal #005c70 · Baseline Black #000000 · Warm Echo #faf5e6 · Deep Court #031323
   Type: DM Mono */

:root {
  --rally: #b2ed02;
  --teal: #005c70;
  --teal-ink: #003f4d;
  --black: #000000;
  --warm: #faf5e6;
  --deep: #031323;
  --muted: #54534d;
  --warm-80: rgba(250, 245, 230, 0.82);
  --warm-hair: rgba(250, 245, 230, 0.2);
  --mono: "DM Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --pad: clamp(20px, 4.5vw, 64px);
  --max: 1440px;
  --radius: 16px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--mono); background: var(--deep); color: var(--warm); line-height: 1.5; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--rally); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding-inline: var(--pad); }
.label { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; }
.eyebrow { font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; }
.sec-num { font-size: 0.2em; letter-spacing: 0; vertical-align: top; margin-right: 0.5em; opacity: 0.75; }
.running-head { display: flex; justify-content: space-between; gap: 16px; padding-block: 40px 0; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--rally); color: var(--black); padding: 10px 16px; border-radius: 999px; z-index: 50; }
.skip:focus { left: 8px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 12px; min-height: 52px; padding: 16px 30px; border-radius: 999px; font-size: 14px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; transition: transform .2s ease, background-color .2s ease, color .2s ease; }
.btn:hover { transform: translateY(-2px); }
.btn svg { width: 16px; height: 16px; }
.btn-rally { background: var(--rally); color: var(--black); }
.btn-ghost { border: 1px solid rgba(250, 245, 230, 0.55); color: var(--warm); }
.btn-ghost:hover { background: var(--warm); color: var(--deep); }
.btn-teal { background: var(--teal); color: var(--warm); }
.btn-outline-teal { border: 1.5px solid var(--teal); color: var(--teal); }
.btn-outline-teal:hover { background: var(--teal); color: var(--warm); }

/* Header */
.site-header { position: absolute; inset: 0 0 auto 0; z-index: 10; padding-top: 32px; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo img { height: 34px; width: auto; }
.nav { display: flex; align-items: center; gap: 36px; }
.nav a:not(.btn) { font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; padding-block: 12px; }
.nav a:not(.btn):hover { color: var(--rally); }
.nav .btn { min-height: 46px; padding: 12px 24px; font-size: 13px; }
.menu-btn { display: none; background: none; border: 1px solid var(--warm-hair); color: var(--warm); width: 48px; height: 48px; border-radius: 999px; cursor: pointer; }

/* Hero */
.hero { position: relative; min-height: max(760px, 100vh); display: flex; flex-direction: column; overflow: hidden; isolation: isolate; }
.hero-media, .hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; z-index: -3; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background:
  linear-gradient(0deg, rgba(3,19,35,.92) 0%, rgba(3,19,35,0) 34%),
  linear-gradient(90deg, rgba(3,19,35,.95) 0%, rgba(3,19,35,.82) 38%, rgba(3,19,35,.25) 75%, rgba(3,19,35,.1) 100%); }
.hero-arcs { position: absolute; right: -260px; top: 0; width: 900px; height: 900px; opacity: .5; z-index: -1; pointer-events: none; }
.hero-body { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 28px; padding-top: 150px; padding-bottom: 48px; }
.hero h1 { font-weight: 400; font-size: clamp(48px, 7.2vw, 104px); line-height: .94; letter-spacing: -0.04em; max-width: 960px; }
.hero .lead { max-width: 560px; font-size: clamp(16px, 1.3vw, 18px); line-height: 1.6; color: var(--warm-80); }
.hero .eyebrow { color: var(--rally); }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 8px; }
.hero-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; padding-bottom: 40px; }
.hero-facts li { border-top: 1px solid rgba(250,245,230,.3); padding-top: 16px; display: flex; flex-direction: column; gap: 6px; font-size: 15px; }
.hero-facts .label { color: var(--rally); }

/* Experience */
.experience { background: var(--warm); color: var(--black); padding-bottom: 96px; }
.experience .running-head { color: var(--muted); }
.story { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 520px); gap: 72px; margin-top: 56px; }
.story-copy { display: flex; flex-direction: column; gap: 24px; }
.story .eyebrow { color: var(--teal); }
.story h2 { font-weight: 400; font-size: clamp(40px, 4.5vw, 64px); line-height: 1; letter-spacing: -0.03em; }
.story p.body { max-width: 640px; font-size: 16px; line-height: 1.65; color: #2b2a26; }
.quote { display: flex; align-items: center; gap: 28px; margin-top: auto; padding-top: 16px; }
.quote p { font-size: clamp(18px, 1.6vw, 22px); line-height: 1.35; color: var(--teal); letter-spacing: -0.01em; }
.quote svg { flex: 0 0 auto; }
.story-photo { position: relative; border-radius: var(--radius); overflow: hidden; min-height: 440px; }
.story-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; }
.story-photo .label { position: absolute; left: 20px; bottom: 18px; color: var(--warm); }
.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 48px; }
.pillar { background: #ffffff; border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.pillar .label { color: var(--teal); }
.pillar h3 { font-size: 24px; font-weight: 500; letter-spacing: -0.01em; line-height: 1.2; }
.pillar p { font-size: 15px; line-height: 1.55; color: var(--muted); }
.pillar.is-teal { background: var(--teal); color: var(--warm); }
.pillar.is-teal .label { color: var(--rally); }
.pillar.is-teal p { color: rgba(250,245,230,.86); }

/* Programs */
.programs { position: relative; overflow: hidden; isolation: isolate; background: linear-gradient(180deg, var(--deep) 0%, #02283a 55%, var(--teal) 100%); padding-bottom: 72px; }
.programs-arcs { position: absolute; left: -380px; bottom: -420px; width: 760px; height: 760px; opacity: .35; z-index: -1; pointer-events: none; }
.programs .running-head { color: rgba(250,245,230,.72); }
.programs-intro { display: flex; justify-content: space-between; align-items: flex-end; gap: 48px; margin-top: 56px; flex-wrap: wrap; }
.programs h2 { font-weight: 400; font-size: clamp(36px, 3.9vw, 56px); line-height: 1.02; letter-spacing: -0.03em; max-width: 820px; }
.programs-intro p { max-width: 400px; font-size: 16px; line-height: 1.6; color: var(--warm-80); }
.offers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 48px; }
.offer { border: 1px solid rgba(250,245,230,.18); background: rgba(250,245,230,.05); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; scroll-margin-top: 24px; }
.offer picture img { width: 100%; height: 220px; object-fit: cover; }
.offer-body { padding: 24px 28px 28px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.offer .label { color: var(--rally); }
.offer h3 { font-size: 24px; font-weight: 500; letter-spacing: -0.01em; }
.offer p { font-size: 15px; line-height: 1.55; color: rgba(250,245,230,.8); }
.offer-foot { margin-top: auto; padding-top: 16px; border-top: 1px solid rgba(250,245,230,.18); display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 14px; }
.offer-foot a { color: var(--rally); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; padding-block: 8px; }
.offer-foot a:hover { color: var(--warm); }
.features { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin-top: 40px; font-size: 14px; letter-spacing: .06em; }
.features li { display: flex; align-items: center; gap: 12px; }
.features li::before { content: ""; width: 8px; height: 8px; border-radius: 999px; background: var(--rally); flex: 0 0 auto; }

/* Book */
.book { display: grid; grid-template-columns: minmax(0, 600px) minmax(0, 1fr); background: var(--black); }
.book-photo { position: relative; min-height: 640px; overflow: hidden; }
.book-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 38% 50%; }
.book-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,.78) 0%, rgba(0,0,0,0) 45%); }
.book-photo .caption { position: absolute; z-index: 1; left: 48px; right: 48px; bottom: 44px; display: flex; align-items: flex-end; justify-content: space-between; font-size: 28px; line-height: 1.15; letter-spacing: -0.02em; }
.book-photo .caption img { position: static; width: 44px; height: auto; }
.book-panel { background: var(--rally); color: var(--black); padding: 40px var(--pad) 48px; display: flex; flex-direction: column; gap: 24px; }
.book-panel .running-head { padding-top: 0; color: var(--teal-ink); }
.book-panel h2 { margin-top: 24px; font-weight: 400; font-size: clamp(52px, 5.8vw, 84px); line-height: .96; letter-spacing: -0.04em; color: var(--teal); }
.book-panel h2 .sec-num { color: var(--teal-ink); opacity: 1; }
.book-panel .lead { max-width: 560px; font-size: 17px; line-height: 1.6; color: #0b1a10; }
.info { margin-top: auto; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; border-top: 1px solid rgba(0,63,77,.35); padding-top: 20px; }
.info div { display: flex; flex-direction: column; gap: 8px; font-size: 14px; line-height: 1.55; }
.info .label { color: var(--teal-ink); }

/* Footer */
.site-footer { background: var(--black); color: var(--warm); padding-block: 36px; }
.site-footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; }
.site-footer .brand { display: flex; flex-direction: column; gap: 16px; }
.site-footer .brand img { height: 34px; width: auto; }
.site-footer small { font-size: 12px; letter-spacing: .1em; color: rgba(250,245,230,.66); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 32px; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; }
.site-footer nav a:hover { color: var(--rally); }
.site-footer .to-top { color: var(--rally); }

/* Reveal on scroll (only when JS is on and motion is OK) */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn { transition: none; }
}

/* Tablet */
@media (max-width: 1080px) {
  .story { grid-template-columns: 1fr; gap: 40px; }
  .story-photo { min-height: 420px; }
  .pillars, .offers { grid-template-columns: 1fr 1fr; }
  .features, .hero-facts { grid-template-columns: 1fr 1fr; }
  .book { grid-template-columns: 1fr; }
  .book-photo { min-height: 420px; }
}

/* Mobile */
@media (max-width: 760px) {
  .menu-btn { display: inline-flex; align-items: center; justify-content: center; }
  .nav { display: none; position: absolute; top: 88px; left: var(--pad); right: var(--pad); flex-direction: column; align-items: stretch; gap: 4px; padding: 16px; background: rgba(3,19,35,.96); border: 1px solid var(--warm-hair); border-radius: var(--radius); }
  .nav.open { display: flex; }
  .nav a:not(.btn) { padding: 12px 8px; }
  .nav .btn { justify-content: center; margin-top: 8px; }
  .logo img { height: 26px; }
  .hero { min-height: 720px; }
  .hero::before { background: linear-gradient(0deg, rgba(3,19,35,.95) 10%, rgba(3,19,35,.6) 60%, rgba(3,19,35,.45) 100%); }
  .hero-body { padding-top: 130px; }
  .hero-facts { gap: 20px; }
  .running-head span:nth-child(3) { display: none; }
  .pillars, .offers, .features, .info { grid-template-columns: 1fr; }
  .quote { flex-direction: column; align-items: flex-start; gap: 16px; }
  .book-photo .caption { left: 24px; right: 24px; bottom: 28px; font-size: 22px; }
  .site-footer .wrap { flex-direction: column; align-items: flex-start; }
}
