/* x-home.css: public site polish (home, footer, phone bar, memberships). Tokens from style.css only. */
.view > .section.is-dark { --bg: var(--night); --surface: var(--night-2); --surface-2: var(--night-3); --text: #FFFFFF; --muted: #ABABAB; --dim: #8F8F8F; --line: var(--night-line); --line-ctl: #7A7A7A; --line-strong: #FFFFFF; --accent-text: var(--brand-on-night); --error: var(--brand-on-night); --ok: #5BC88A; --focus: #FFFFFF; color: var(--text); background: var(--bg); margin-inline: calc(50% - 50vw); padding-inline: calc(50vw - 50%); padding-block: 56px; }
@media (min-width: 960px) { .view > .section.is-dark { padding-block: 88px; } }
.view > .is-dark + .is-dark, .view > .is-dark + .film, .view > .film + .is-dark { margin-top: 0; }
.view > .is-dark + .is-dark { border-top: 1px solid var(--night-line); }
.story-text > h2::before { content: ""; display: block; width: 48px; height: 5px; margin: 0 0 16px; background: var(--accent-text); clip-path: polygon(6% 0, 100% 0, 94% 100%, 0 100%); }
.btn-quiet.arrow::after { content: ""; width: 7px; height: 7px; border-top: 2px solid currentColor; border-right: 2px solid currentColor; transform: rotate(45deg); transition: transform .3s var(--ease-out); }
.btn-quiet.arrow:hover::after { transform: translateX(4px) rotate(45deg); }
h1, h2, .display { text-wrap: balance; }
p { text-wrap: pretty; }
/* A heading with a count badge: balanced wrapping in Safari drops the badge onto its own line. */
h2:has(> .count) { text-wrap: wrap; }
.fine { margin-top: 20px; font-size: 13px; line-height: 1.5; color: var(--muted); }
.btn:active { transform: translateY(1px); }

/* Hero */
.hero > :not(.hero-cap) { position: relative; z-index: 1; }
.hero-kicker { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 18px; color: #fff; }
.hero-kicker::before { content: ""; width: 6px; height: 18px; background: var(--brand); transform: skewX(-12deg); }
.hero-cap { display: none; }
@media (min-width: 960px) { .hero-cap { display: block; position: absolute; z-index: 1; right: max(var(--gutter), calc((100vw - 1120px) / 2)); bottom: 28px; max-width: 32ch; text-align: right; font: 600 12px/1.3 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.6); } }
@media (min-width: 960px) and (max-height: 820px) { .hero { min-height: calc(100svh - var(--top-h) - 40px); padding-top: 48px; padding-bottom: 40px; } .hero .display { font-size: clamp(64px, 15vh, 120px); } }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
.hero.is-intro :is(.hero-kicker, .display, .lead, .hero-actions) { animation: rise .7s var(--ease-out) both; }
.hero.is-intro .display { animation-delay: .06s; } .hero.is-intro .lead { animation-delay: .14s; } .hero.is-intro .hero-actions { animation-delay: .22s; }
.hero-photo::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .16; mix-blend-mode: overlay; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* Proof strip */
.proof { margin-inline: calc(50% - 50vw); padding-inline: calc(50vw - 50%); background: var(--night); color: #fff; }
.proof-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--night-line); }
.proof-grid > div { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 8px; padding: 20px 0 24px; }
.proof-grid > div:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--night-line); }
.proof-grid > div:nth-child(n + 3) { border-top: 1px solid var(--night-line); }
.proof dd { font: 900 clamp(48px, 13vw, 80px)/.85 var(--display); text-transform: uppercase; }
.proof dt { font: 700 12px/1.25 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: #ABABAB; }
.proof-grid > div:last-child dd { color: var(--brand-on-night); }
@media (min-width: 620px) { .proof-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } .proof-grid > div, .proof-grid > div:nth-child(even), .proof-grid > div:nth-child(n + 3) { padding: 28px 24px 32px; border-top: 0; border-left: 1px solid var(--night-line); } .proof-grid > div:first-child { padding-left: 0; border-left: 0; } }

/* Class level tags (schedule rows) */
.ctag { align-self: flex-start; display: inline-flex; align-items: center; height: 20px; margin-top: 4px; padding: 0 6px; border: 1px solid var(--line-ctl); color: var(--muted); font: 700 11px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; }
.ctag-students { border-color: var(--st-blue); color: var(--st-blue); }
.ctag-sparring, .ctag-academy { background: var(--ink); border-color: var(--ink); color: #fff; }

/* Program cards */
.program .card-body { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding-top: 20px; }
.program-n { font: 800 18px/1 var(--display); letter-spacing: .06em; color: var(--accent-text); }
.program-n::after { content: " /"; color: var(--dim); }
.program h3 { font: 800 clamp(30px, 7.5vw, 36px)/.95 var(--display); text-transform: uppercase; letter-spacing: .005em; }
.program .program-tag { color: var(--muted); }
.program .card-body > .muted { margin-top: 4px; max-width: 32ch; }

/* Story */
.story { display: grid; gap: 24px; }
.story-img { margin: 0 calc(-1 * var(--gutter)); }
.story-img .photo-btn { aspect-ratio: 1024 / 696; }
.story-img figcaption { margin-top: 8px; padding: 0 var(--gutter); font: 600 14px/1.35 var(--sans); color: var(--muted); }
.story-text .lead { margin-top: 16px; }
.story-text .btn-quiet { margin-top: 12px; }
@media (min-width: 840px) { .story { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; align-items: end; } .story-img { margin: 0; } .story-img figcaption { padding: 0; } }

/* Coach portraits (dark) */
.coach-grid { display: grid; grid-auto-flow: column; grid-auto-columns: 64%; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter) 4px; scrollbar-width: none; }
.coach-grid::-webkit-scrollbar { display: none; }
.coach-card { margin: 0; scroll-snap-align: start; }
.coach-card .photo-btn { aspect-ratio: 3 / 4; background: var(--night-3); }
.coach-card figcaption { display: grid; gap: 4px; margin-top: 14px; padding-top: 12px; border-top: 2px solid #fff; }
.coach-card strong { font: 800 24px/1 var(--display); text-transform: uppercase; color: #fff; }
.coach-card span { font-size: 14px; line-height: 1.4; color: #ABABAB; }
.coach-more { margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--night-line); color: #E0E0E0; font-size: 16px; }
.coach-more .sc { display: block; margin-bottom: 6px; color: var(--brand-on-night); }
@media (min-width: 620px) { .coach-grid { grid-auto-flow: row; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; overflow: visible; margin: 0; padding: 0; } }
.view > .section:has(> .coach-list) .coach-grid { margin-bottom: 32px; }
.view > .section > h2 + .coach-grid { margin-top: 20px; }

/* Photo strip with no words */
.film { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px; margin-inline: calc(50% - 50vw); background: var(--night); }
.film-img { aspect-ratio: 1; }
.film-img img { filter: grayscale(1) contrast(1.15) brightness(.92); }
.film-credit { grid-column: 1 / -1; padding: 10px max(var(--gutter), calc((100vw - 1120px) / 2)); font: 600 11px/1.3 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: #8F8F8F; }
@media (min-width: 840px) { .film { grid-template-columns: repeat(6, minmax(0, 1fr)); } }

/* First class reassurance */
.assure { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 28px 0 24px; padding: 0; color: #E0E0E0; font: 600 15px var(--sans); }
.assure li { display: inline-flex; align-items: center; gap: 10px; }
.assure li::before { content: ""; width: 5px; height: 9px; border-right: 2px solid var(--brand-on-night); border-bottom: 2px solid var(--brand-on-night); transform: rotate(40deg) translateY(-2px); }

/* Kids / private panels */
.duo { display: grid; gap: 24px; }
.duo-card { display: flex; flex-direction: column; background: var(--surface); }
.duo-card .photo-btn { aspect-ratio: 3 / 2; }
.duo-kids .photo-btn img { object-position: 0% 50%; }
.duo-private .photo-btn img { object-position: 50% 35%; }
.duo-body { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; flex: 1; padding: 20px; box-shadow: inset 0 4px 0 var(--ink); }
.duo-body h3 { font: 800 clamp(30px, 7vw, 40px)/.95 var(--display); text-transform: uppercase; }
.duo-body .btn { margin-top: auto; }
@media (min-width: 620px) { .duo { grid-template-columns: 1fr 1fr; } }

/* Photos with the photographer's name printed bottom-left (site.js photoCrop): a taller frame pushes that strip out of view */
.photo-btn.crop-credit img { height: 114%; }

/* Reviews: CSS draws the opening quote; red drawn stars above it */
.review blockquote::before { content: "\201C"; display: block; height: .45em; margin-bottom: 10px; font: 900 88px/1 var(--display); color: var(--brand); }
.stars { display: flex; gap: 4px; }
.stars svg { display: block; width: 22px; height: 22px; fill: none; stroke: var(--brand); stroke-width: 1.8; stroke-linejoin: miter; }
.stars svg.on { fill: var(--brand); }

/* Prices */
.price-row { display: grid; border-top: 2px solid var(--ink); }
.price-cell { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "label num" "note num"; align-items: center; gap: 2px 16px; padding: 18px 12px; border-bottom: 1px solid var(--line); color: var(--text); text-decoration: none; transition: background-color .2s var(--ease-ui); }
.price-cell:hover { background: var(--surface-2); }
.price-cell .sc { grid-area: label; }
.price-cell em { grid-area: note; font-style: normal; font-size: 14px; color: var(--muted); }
.price-cell strong { grid-area: num; font: 900 48px/.85 var(--display); text-transform: uppercase; }
.price-cell small, .plan-price small { margin-left: 2px; font: 700 13px var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.price-cell.is-free strong { color: var(--brand); }
.price-cell.is-best { box-shadow: inset 4px 0 0 var(--brand); }
@media (min-width: 840px) { .price-row { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; border-top: 0; } .price-cell { grid-template-columns: 1fr; grid-template-areas: "label" "num" "note"; align-content: start; gap: 12px; padding: 28px 24px; background: var(--white); border: 1px solid var(--line); box-shadow: inset 0 4px 0 var(--ink); } .price-cell.is-best { box-shadow: inset 0 4px 0 var(--brand); border-color: var(--ink); } .price-cell strong { font-size: 88px; } }

/* Closing red band */
.band-close { background: color-mix(in srgb, var(--brand) 86%, #000); }
.band-meta { margin-top: 14px; font: 700 13px/1.5 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: #fff; }

/* Memberships page */
.best-tag { display: inline-block; margin-bottom: 8px; padding: 4px 8px; background: var(--brand); color: #fff; }
a.plan-free { color: inherit; text-decoration: none; }
.plan-free .plan-price { color: var(--accent-text); }
@media (min-width: 960px) {
  .plan-free { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: space-between; }
  .plan-free .plan-side { flex-direction: row; align-items: center; gap: 24px; margin-top: 0; }
  .plan-free .plan-side .btn { width: auto; margin-top: 0; }
}

/* About page */
.section-lede { margin-top: 12px; max-width: 42em; font-size: 17px; line-height: 1.55; color: var(--muted); }
.view > .section > h2[tabindex="-1"]:focus { outline: none; }
.about-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 40px; border-top: 2px solid var(--ink); }
.about-facts > div { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 8px; padding: 18px 0 20px; border-bottom: 1px solid var(--line); }
.about-facts > div:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--line); }
.about-facts dt { font: 700 12px/1.25 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.about-facts dd { font: 900 clamp(44px, 12vw, 72px)/.85 var(--display); text-transform: uppercase; }
.about-facts > div:last-child dd { color: var(--brand); }
@media (min-width: 620px) { .about-facts { grid-template-columns: repeat(4, minmax(0, 1fr)); } .about-facts > div, .about-facts > div:nth-child(even) { padding: 24px 20px 26px; border-left: 1px solid var(--line); } .about-facts > div:first-child { padding-left: 0; border-left: 0; } }
.about-jump { margin-top: 32px; }
.about-jump .sc { color: var(--muted); }
.about-jump > div { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.jump-btn { min-height: 44px; padding: 0 16px; border: 1px solid var(--line-ctl); border-radius: 0; background: transparent; color: var(--text); font: 700 16px/1 var(--sans); cursor: pointer; transition: background-color .2s var(--ease-ui), border-color .2s var(--ease-ui); }
.jump-btn:hover { background: var(--white); border-color: var(--ink); }
.jump-btn:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

.family { display: grid; gap: 16px; }
.fam { padding: 20px; background: var(--white); border: 1px solid var(--line); box-shadow: inset 0 4px 0 var(--ink); }
.fam.is-head { box-shadow: inset 0 4px 0 var(--brand); }
.fam .sc { color: var(--accent-text); }
.fam h3 { margin-top: 8px; font: 800 clamp(30px, 7vw, 36px)/.95 var(--display); text-transform: uppercase; letter-spacing: .005em; }
.fam h3 small { display: block; margin-top: 4px; font: 700 15px/1.2 var(--sans); text-transform: none; letter-spacing: 0; color: var(--muted); }
.fam .ticks { gap: 8px; margin-top: 14px; font-size: 16px; }
@media (min-width: 840px) { .family { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; } .fam { padding: 24px; } }

.teach { list-style: none; margin: 16px 0 0; padding: 0; display: grid; border-top: 2px solid var(--ink); }
.teach li { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 12px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.teach-n { font: 900 40px/.85 var(--display); color: var(--accent-text); }
.teach h3 { font-size: 20px; }
.teach p { margin-top: 6px; max-width: 40em; font-size: 16px; line-height: 1.55; color: var(--muted); }
@media (min-width: 840px) { .teach { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 40px; } }
.mission { margin-top: 32px; padding: 28px 24px 28px 30px; background: var(--ink); color: #fff; box-shadow: inset 6px 0 0 var(--brand); }
.mission .sc { color: var(--brand-on-night); }
.mission-line { max-width: 18ch; margin-top: 10px; font: 900 clamp(36px, 9vw, 64px)/.9 var(--display); text-transform: uppercase; text-wrap: balance; }
.mission-line + p { max-width: 40em; margin-top: 14px; font-size: 17px; line-height: 1.5; color: #E0E0E0; }
@media (min-width: 960px) { .mission { padding: 40px 40px 40px 46px; } }

.trains { display: grid; border-top: 2px solid var(--ink); }
.trains-row { display: grid; justify-items: start; align-content: start; gap: 6px; padding: 20px 0 22px; border-bottom: 1px solid var(--line); }
.trains-row .sc { color: var(--accent-text); }
.trains-row h3 { font: 800 clamp(26px, 6vw, 32px)/.95 var(--display); text-transform: uppercase; letter-spacing: .005em; }
.trains-row .muted { max-width: 42em; font-size: 16px; }
@media (min-width: 840px) { .trains { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 40px; } }

.coach-intro { max-width: 44em; font-size: 17px; line-height: 1.55; color: #E0E0E0; }
.view > .section > .coach-intro + .coach-grid { margin-top: 28px; }

.results { display: grid; gap: 28px; }
.result { padding-top: 16px; border-top: 4px solid var(--ink); }
.result.is-hall { border-top-color: var(--brand); }
.result .sc { color: var(--muted); }
.result-names { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.result-names li { font: 800 clamp(26px, 6vw, 32px)/1 var(--display); text-transform: uppercase; letter-spacing: .005em; }
.result-names li .sc { display: inline-block; margin-left: 6px; padding: 4px 6px; background: var(--brand); color: #fff; vertical-align: middle; }
@media (min-width: 840px) { .results { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; } }
.name-wall { list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 16px; border-top: 2px solid var(--ink); }
.name-wall li { padding: 12px 0; border-bottom: 1px solid var(--line); font: 800 20px/1.05 var(--display); text-transform: uppercase; letter-spacing: .01em; }
@media (min-width: 620px) { .name-wall { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 24px; } .name-wall li { font-size: 22px; } }
@media (min-width: 960px) { .name-wall { grid-template-columns: repeat(5, minmax(0, 1fr)); } }

.homes { display: grid; gap: 16px; }
.home-card { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 20px; background: var(--white); border: 1px solid var(--line); box-shadow: inset 0 4px 0 var(--ink); }
.home-card.is-now { box-shadow: inset 0 4px 0 var(--brand); }
.home-card .sc { color: var(--accent-text); }
.home-card h3 { font: 800 clamp(28px, 6.5vw, 36px)/.95 var(--display); text-transform: uppercase; letter-spacing: .005em; }
.home-card .muted { font-size: 16px; }
@media (min-width: 620px) { .homes { grid-template-columns: 1fr 1fr; } }

/* Footer */
.foot-sign { max-width: 1120px; margin: 0 auto 40px; padding-bottom: 28px; border-bottom: 1px solid var(--night-line); }
.foot-mark { font: 900 clamp(88px, 26vw, 240px)/.78 var(--display); text-transform: uppercase; color: transparent; -webkit-text-stroke: 1.5px #fff; }
@supports not (-webkit-text-stroke: 1px) { .foot-mark { color: var(--night-3); } }
.foot-tag { margin-top: 14px; font: 700 13px var(--sans); letter-spacing: .08em; text-transform: uppercase; color: #fff; }
@media (min-width: 620px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .foot-grid { grid-template-columns: 1.3fr 1fr 1fr 1fr; } }

/* Phone call-to-action bar */
.dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 18; display: grid; grid-template-columns: 1fr auto; gap: 8px; padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom)); background: var(--night); border-top: 1px solid var(--night-line); transform: translateY(110%); transition: transform .35s var(--ease-out); }
body.dock-on .dock { transform: none; }
body.touring .dock { display: none; }
@media (max-width: 959px) { .foot:has(> .dock) { padding-bottom: calc(104px + env(safe-area-inset-bottom)); } body.dock-on .toast[popover], body.dock-on .toast { bottom: calc(88px + env(safe-area-inset-bottom)); } }
@media (min-width: 960px) { .dock { display: none; } }
