/* The Counterpunch Boxing Club
   Rebuilt from the Hostinger Website Builder design: same palette, type and layout.
   Mobile first; the desktop layout starts at 920px (where the old site switched). */

/* ---------- fonts ----------
   Self-hosted copies of the Google Fonts files (all SIL OFL): a stylesheet on another origin
   blocked the first paint for ~800ms on mobile. Each family is one variable file per subset;
   latin-ext only downloads if a page uses one of its characters. */
@font-face { font-family: "Epilogue"; font-style: normal; font-weight: 400 900; font-display: swap;
    src: url("../fonts/epilogue-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Epilogue"; font-style: normal; font-weight: 400 900; font-display: swap;
    src: url("../fonts/epilogue-latin-ext.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Catamaran"; font-style: normal; font-weight: 500 700; font-display: swap;
    src: url("../fonts/catamaran-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Catamaran"; font-style: normal; font-weight: 500 700; font-display: swap;
    src: url("../fonts/catamaran-latin-ext.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Roboto"; font-style: normal; font-weight: 500 700; font-display: swap;
    src: url("../fonts/roboto-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Roboto"; font-style: normal; font-weight: 500 700; font-display: swap;
    src: url("../fonts/roboto-latin-ext.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
    --red: #7d000b;
    --ink: #1a1a17;
    --stone: #ccccc5;
    --card: #eceff3;
    --muted: #3a3a3a;
    --white: #fff;

    --font-display: "Epilogue", "Arial Black", sans-serif;
    --font-body: "Catamaran", system-ui, sans-serif;
    --font-ui: "Roboto", system-ui, sans-serif;

    --type-body: 16px;
    --type-small: 14px;
    --type-caption: 12px;
    --type-placeholder: 13px;
    --type-lead: 18px;
    --type-eyebrow: 16px;
    --type-nav: 18px;
    --type-control-large: 16px;
    --type-h1: clamp(44px, 11vw, 120px);
    --type-h2: 36px;
    --type-h2-small: 24px;
    --type-h2-large: 40px;
    --type-h3: 22px;
    --heading-rule-gap: 4px;

    --gutter: 24px;
    --section-y: 64px;
    --header-h: 88px;
}
@media (min-width: 920px) {
    :root {
        --gutter: 28px; --section-y: 80px; --header-h: 108px;
        --type-h2: 42px; --type-h2-small: 32px; --type-h2-large: 48px; --type-h3: 24px;
        --type-eyebrow: 18px; --type-nav: 16px;
    }
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--header-h); }
body {
    margin: 0;
    font: 500 var(--type-body)/1.72 var(--font-body);
    letter-spacing: 0.01em;
    color: var(--ink);
    background: var(--ink);
    /* Thinner macOS text rendering, as on the old site */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
img, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 900; line-height: 1.3; margin: 0; }
h1 { font-size: var(--type-h1); line-height: 1.2; }
h2 { font-size: var(--type-h2); }
h3 { font-size: var(--type-h3); }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul { margin: 0 0 1em; padding-left: 1.5em; }

.container { width: min(1224px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.center { text-align: center; }
.text-red { color: var(--red); }
.visually-hidden {
    position: absolute !important; width: 1px; height: 1px; overflow: hidden;
    clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 100; padding: 8px 16px; background: var(--white); }
.skip-link:focus { left: 8px; top: 8px; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
.section--ink :focus-visible, .section--red :focus-visible, .site-header :focus-visible, .site-footer :focus-visible { outline-color: var(--white); }

/* ---------- sections ---------- */
.section { padding-block: var(--section-y); }
.section--tight { padding-block: 56px; }
.section--flush-top { padding-top: 24px; }
.section--ink { background: var(--ink); color: var(--white); }
.section--stone { background: var(--stone); color: var(--ink); }
.section--red { background: var(--red); color: var(--white); }

/* Subtle builder-style reveal as page content enters the viewport */
@keyframes motion-enter {
    from { opacity: 0; transform: translateY(20px) scale(.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.motion-ready .motion-reveal {
    opacity: 0;
    transform: translateY(20px) scale(.96);
}
.motion-ready .motion-reveal.is-visible {
    opacity: 1;
    transform: none;
    animation: motion-enter .7s cubic-bezier(.22, 1, .36, 1) both;
    animation-delay: var(--motion-delay, 0ms);
}
/* Parallax bands only fade: any transform on the band would pin its fixed image to the band instead of the window */
@keyframes motion-fade {
    from { opacity: 0; }
    to { opacity: 1; }
}
.motion-ready .parallax.motion-reveal { transform: none; }
.motion-ready .parallax.motion-reveal.is-visible { animation-name: motion-fade; }

/* Section heading with the red bar under it */
.heading { font-size: var(--type-h2); text-transform: uppercase; margin-bottom: 24px; }
.heading::after { content: ""; display: block; width: 200px; max-width: 60%; height: 4px; margin-top: var(--heading-rule-gap); background: var(--red); }
.heading--center { text-align: center; }
.heading--center::after { margin-inline: auto; }
.heading--sm { font-size: var(--type-h2-small); }
.heading--lg { font-size: var(--type-h2-large); }
.heading--plain::after { display: none; }
.heading--compact { font-size: var(--type-h2-small); }
.heading--on-dark-muted { color: var(--stone); }
.lead { margin-bottom: 32px; }
.lead--center { margin-inline: auto; text-align: center; max-width: 740px; }
.lead--narrow { max-width: 400px; }
.lead--wide { max-width: 700px; }
.lead--hero { max-width: 680px; font-size: var(--type-lead); color: var(--stone); }
.section--ink .lead { color: var(--stone); }
.section--red .lead { color: var(--white); }

.eyebrow { font: 400 var(--type-eyebrow)/1.3 var(--font-display); text-transform: uppercase; margin-bottom: 16px; }
.display { font-size: var(--type-h2); text-transform: uppercase; margin-bottom: 32px; }
@media (min-width: 920px) {
    .eyebrow { margin-bottom: 20px; }
    .display { margin-bottom: 48px; }
}

/* ---------- buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 128px; min-height: 48px; padding: 10px 28px;
    font: 700 var(--type-small)/1.2 var(--font-ui); letter-spacing: 0.01em; text-transform: uppercase; text-decoration: none;
    border: 2px solid transparent; border-radius: 2px; cursor: pointer;
    transition: background-color .2s, color .2s, border-color .2s;
}
.btn--lg { min-width: 160px; min-height: 52px; font-size: var(--type-control-large); }
.btn--red { background: var(--red); color: var(--white); border-color: var(--red); }
.btn--ink { background: var(--ink); color: var(--white); border-color: var(--ink); }
.btn--stone { background: var(--stone); color: var(--ink); border-color: var(--stone); }
.btn--white { background: var(--white); color: var(--ink); border-color: var(--white); }
.btn--red:hover, .btn--red:focus-visible,
.btn--ink:hover, .btn--ink:focus-visible,
.btn--stone:hover, .btn--stone:focus-visible {
    background: var(--white); color: var(--ink); border-color: var(--red);
}
.btn--white:hover, .btn--white:focus-visible { background: var(--stone); color: var(--ink); border-color: var(--red); }
.cta-band .btn--stone:hover, .cta-band .btn--stone:focus-visible { border-color: var(--stone); }
.section--red .btn--stone:hover, .section--red .btn--stone:focus-visible { border-color: var(--stone); }
@media (min-width: 920px) {
    .btn { min-width: 146px; min-height: 50px; }
    .btn--lg { min-width: 194px; min-height: 56px; }
}
.button-row { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--ink); color: var(--white); }
.site-header__inner {
    display: flex; align-items: center; justify-content: center; position: relative;
    height: var(--header-h); padding-inline: var(--gutter);
}
.site-header__logo img { width: 120px; }
/* Matches the old site's burger: a 24×18 icon centred in a 44px tap target; the outer lines pivot from their left ends into the X */
.nav-toggle {
    position: absolute; left: var(--gutter); top: 50%; translate: 0 -50%;
    width: 44px; height: 44px; padding: 0;
    background: none; border: 0; cursor: pointer;
}
.nav-toggle span {
    position: absolute; left: 10px; width: 24px; height: 2px; border-radius: 2px; background: var(--white);
    transform-origin: left center; transition: transform .25s ease-in-out .1s, opacity .25s ease-in-out .1s, width .25s ease-in-out .1s;
}
.nav-toggle span:nth-child(1) { top: 13px; }
.nav-toggle span:nth-child(2) { top: 21px; }
.nav-toggle span:nth-child(3) { top: 29px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { top: 12px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { width: 0; opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: rotate(-45deg); }

/* Slides open like the old site's mobile menu; visibility (not display) keeps closed links out of the tab order while still animating */
.site-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    max-height: 0; overflow-y: hidden; visibility: hidden;
    padding: 0 var(--gutter); background: var(--ink);
    border-top: 1px solid rgba(255, 255, 255, .1);
    transition: max-height .3s ease-out .1s, padding .5s .1s, visibility .6s;
}
.site-nav.is-open { max-height: 50vh; overflow-y: auto; visibility: visible; padding: 8px var(--gutter) 32px; }
.site-nav ul { list-style: none; margin: 0 0 16px; padding: 0; }
.site-nav li a { display: block; padding: 12px 0; font: 700 var(--type-nav)/1.5 var(--font-ui); text-decoration: none; }
.site-nav a[aria-current="page"] { color: var(--red); text-decoration: underline; text-underline-offset: 6px; }
.site-nav__cta { width: 100%; }

@media (min-width: 920px) {
    .nav-toggle { display: none; }
    .site-header__inner { justify-content: space-between; width: min(1280px, 100%); margin-inline: auto; padding-inline: 44px; }
    .site-header__logo img { width: 150px; }
    .site-nav, .site-nav.is-open { display: flex; position: static; align-items: center; gap: 64px; padding: 0; background: none; border: 0; max-height: none; overflow: visible; visibility: visible; transition: none; }
    .site-nav ul { display: flex; gap: 32px; margin: 0; }
    .site-nav li a { padding: 4px 0; }
    .site-nav li a:hover { color: var(--stone); }
    .site-nav a[aria-current="page"]:hover { color: var(--red); }
    .site-nav__cta { width: auto; min-width: 166px; min-height: 60px; font-size: var(--type-control-large); }
}

/* Home: the header floats over the hero video */
.is-home .site-header {
    position: fixed; left: 0; right: 0; background: transparent;
    transition: background-color .25s ease;
}
.is-home .site-header.is-scrolled, .is-home .site-header.is-menu-open { background: var(--ink); }

/* ---------- home hero ---------- */
.hero { position: relative; display: flex; align-items: center; min-height: 600px; padding: calc(var(--header-h) + 48px) 0 64px; overflow: hidden; color: var(--white); background: var(--ink); }
.hero__media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@media (prefers-reduced-motion: no-preference) {
    .hero { background: var(--ink) var(--hero-start, none) center / cover no-repeat; }
}
.hero::before { content: ""; position: absolute; inset: 0; z-index: 1; background: rgba(0, 0, 0, .35); }
.hero__content { position: relative; z-index: 2; }
.hero__title { text-transform: uppercase; margin-bottom: 24px; }
.hero p { max-width: 420px; font-size: var(--type-lead); margin-bottom: 32px; }
@media (min-width: 920px) {
    .hero { min-height: 956px; padding-top: 180px; align-items: flex-start; }
    .hero__title { margin-bottom: 72px; }
    .hero p { margin-bottom: 40px; }
}

/* ---------- inner page heroes ---------- */
.page-hero { padding-top: 48px; }
.page-hero__title { text-transform: uppercase; margin-bottom: 32px; }
@media (min-width: 920px) {
    .page-hero { padding-top: 96px; }
}
.wide-img { width: 100%; aspect-ratio: 1224 / 544; object-fit: cover; margin-top: 8px; }
.section--stone .wide-img { margin-top: 48px; }

/* ---------- two-column splits ---------- */
.split { display: grid; gap: 40px; align-items: start; }
.split__text .btn { margin-top: 24px; }
@media (max-width: 919px) {
    .split--intro .split__text { text-align: center; }
}
@media (min-width: 920px) {
    .split { grid-template-columns: 1fr 1fr; gap: 56px; }
    .split--intro { padding-block: 56px; }
    .split--intro .split__text { max-width: 470px; }
    .split--intro .split__text .btn { margin-top: 48px; }
    .split--bring { grid-template-columns: 612px 1fr; align-items: center; gap: 72px; }
}

/* ---------- YouTube ---------- */
.video { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #000; }
.page-hero .video { max-width: 1018px; margin-inline: auto; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- shop ---------- */
.product-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.product-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; }
@media (min-width: 920px) { .product-grid { gap: 16px; margin-top: 56px; } }

/* ---------- parallax image bands ---------- */
/* Same technique as the old site: a fixed image clipped to the band. Unlike background-attachment: fixed, it works on iOS. */
.parallax { position: relative; height: 260px; clip-path: inset(0); }
.parallax__image { position: fixed; top: 0; left: 0; width: 100%; height: 100vh; object-fit: cover; pointer-events: none; }
@media (min-width: 920px) {
    .parallax { height: 623px; }
}

/* ---------- testimonials ---------- */
.reviews { display: grid; gap: 12px; margin-top: 40px; }
.review { margin: 0; padding: 40px 32px; background: var(--card); }
.review__stars { color: var(--red); font-size: 24px; letter-spacing: 2px; line-height: 1; margin-bottom: 16px; }
.review blockquote { margin: 0 0 16px; }
.review figcaption { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: var(--type-small); font-weight: 400; }
.review figcaption img { width: 48px; height: 48px; border-radius: 50%; }
@media (max-width: 919px) {
    .review { text-align: center; }
    .review figcaption { flex-direction: column; }
}
@media (min-width: 920px) {
    .reviews { grid-template-columns: 1fr 1fr; margin-top: 56px; }
    .review { padding: 40px 52px; min-height: 280px; }
}

/* ---------- events & sponsors ---------- */
.event { margin-top: 40px; }
.event__poster { width: 100%; max-width: 1018px; margin-inline: auto; }
.event__details h3 { text-transform: uppercase; }
.event__details p { color: var(--stone); font-size: var(--type-lead); margin: 4px 0 0; }
.event__text { max-width: 680px; margin: 32px auto 0; color: var(--stone); }
.event .btn { margin-top: 32px; }

.sponsors { list-style: none; padding: 0; margin: 0 auto 24px; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px; }
.sponsors img { width: 100%; }
.sponsors--title li { width: min(606px, 100%); }
.sponsors--gold li { width: calc(50% - 6px); }
.sponsors--silver { display: grid; grid-template-columns: repeat(4, 1fr); max-width: 812px; }
@media (min-width: 920px) {
    .sponsors { margin-top: 32px; }
    .sponsors--gold li { width: min(300px, 40%); }
    .sponsors--gold li:first-child { width: min(400px, 50%); }
    .sponsors--silver { gap: 24px 12px; }
}

/* ---------- red "try your first class free" band ---------- */
.cta-band { background: var(--red); color: var(--white); padding-block: 56px; }
.cta-band__inner { display: flex; flex-direction: column; align-items: center; gap: 24px; text-align: center; }
.cta-band u { text-underline-offset: 6px; text-decoration-thickness: 3px; }
.cta-band .btn { font-size: var(--type-lead); }
@media (min-width: 920px) {
    .cta-band { padding-block: 72px; }
    .cta-band__inner { flex-direction: row; justify-content: space-between; text-align: left; }
}

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: var(--stone); padding: 56px 0 32px; }
.site-footer__grid { display: grid; gap: 32px; }
.site-footer h3 { margin-bottom: 8px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer__badge { width: 104px; grid-column: 1 / -1; grid-row: 1; justify-self: center; }
.site-footer__legal { font-size: var(--type-caption); margin-top: 48px; }
.site-footer__legal a { text-decoration: underline; }
@media (min-width: 480px) {
    .site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 768px) {
    .site-footer__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 920px) {
    .site-footer { padding-top: 72px; }
    .site-footer__grid { grid-template-columns: minmax(0, 267px) minmax(0, 267px) 1fr 150px; gap: 40px; }
    .site-footer__badge { width: 124px; grid-column: auto; grid-row: auto; align-self: start; justify-self: end; }
}

.social { list-style: none; display: flex; gap: 12px; margin: 0; padding: 0; }
.center .social { justify-content: center; }
.social a { display: grid; place-items: center; width: 28px; height: 28px; color: currentColor; }
.social svg { width: 22px; height: 22px; fill: currentColor; }
.social svg[fill="none"] { fill: none; }
.social a:hover { color: var(--red); }
.section--stone .social a:hover { color: var(--red); }
.site-footer .social a:hover { color: var(--white); }

/* ---------- classes page ---------- */
/* Phones/tablets: the photo leads, its slanted bottom edge echoing the desktop's slanted photo, then the text at a readable width */
.private-training { position: relative; overflow: hidden; display: flex; flex-direction: column; }
.private-training__inner { padding-block: 40px var(--section-y); }
.private-training__text { max-width: 560px; }
.private-training__text p { margin-bottom: 40px; }
.private-training__img {
    order: -1; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: center 15%;
    clip-path: polygon(0 0, 100% 0, 100% 86%, 0 100%);
}
@media (min-width: 640px) {
    .private-training__img { aspect-ratio: 16 / 9; }
}
@media (min-width: 920px) {
    .private-training { min-height: 664px; flex-direction: row; align-items: center; }
    .private-training__inner { padding-block: 120px; }
    .private-training__text { max-width: min(500px, 44vw); }
    .private-training__img {
        position: absolute; top: 0; right: 30px; bottom: 0; width: min(637px, 46vw); height: 100%; aspect-ratio: auto;
        object-position: center; clip-path: polygon(0 0, 82% 0, 100% 100%, 26% 100%);
    }
}

.class-block__inner { display: grid; gap: 32px; align-items: center; }
.class-block__media { position: relative; }
.class-block__media img { width: 100%; aspect-ratio: 606 / 544; object-fit: cover; }
.class-block__note {
    position: relative; margin: -40px 16px 0; padding: 28px 32px;
    font-size: var(--type-lead); background: var(--stone); color: var(--ink);
}
.class-block--flip .class-block__note { background: var(--ink); color: var(--white); }
.class-block__text small { font-size: .5em; white-space: nowrap; }
.section--ink .class-block__text p, .section--ink .class-block__text ul { color: var(--stone); }
.class-block__text ul { padding-left: 40px; margin-top: 8px; }
@media (max-width: 919px) {
    /* Phones: heading and text first, then the photo, like the old site */
    .class-block__text { order: -1; }
    .class-block .heading, .private-training .heading { text-align: center; }
    .class-block .heading::after, .private-training .heading::after { margin-inline: auto; }
    .private-training__text { text-align: center; margin-inline: auto; }
    .private-training .button-row { justify-content: center; }
}
@media (min-width: 920px) {
    .class-block { padding-bottom: calc(var(--section-y) + 80px); }
    .class-block__inner { grid-template-columns: minmax(0, 606fr) minmax(0, 480fr); gap: clamp(48px, 8vw, 115px); }
    .class-block--flip .class-block__media { order: 2; }
    .class-block--flip .class-block__inner { grid-template-columns: minmax(0, 480fr) minmax(0, 606fr); gap: clamp(48px, 6vw, 72px); }
    .class-block__note { position: absolute; left: 42px; bottom: -80px; width: min(521px, calc(100% - 42px)); min-height: 160px; margin: 0; padding: 40px 60px; display: flex; flex-direction: column; justify-content: center; }
    .class-block__text { max-width: 480px; }
}

.schedule { display: block; margin-top: 40px; }
.schedule img { width: 100%; }

/* ---------- about page ---------- */
.team { display: grid; gap: 40px; }
.coach { position: relative; margin: 0; background: var(--ink); }
.coach img { width: 100%; aspect-ratio: 606 / 544; object-fit: cover; }
.coach figcaption { padding: 28px 32px; color: var(--stone); font-size: var(--type-small); background: var(--ink); }
.coach strong { display: block; font: 700 var(--type-body)/1.5 var(--font-body); text-transform: uppercase; color: var(--white); margin-bottom: 8px; }
@media (min-width: 640px) {
    .team { grid-template-columns: 1fr 1fr; }
    .team__intro { grid-column: 1 / -1; }
}
@media (min-width: 920px) {
    .team { gap: 40px 24px; }
    .team--single { grid-template-columns: 1fr 606px; align-items: center; gap: 80px; }
    .team--single .team__intro { grid-column: auto; max-width: 440px; }
    .team--single .coach figcaption { position: absolute; left: 44px; right: 44px; bottom: 40px; min-height: 160px; padding: 44px 60px; }
}

/* ---------- why boxing ---------- */
.why-grid { display: grid; gap: 48px; }
.why-grid h3 { margin-bottom: 24px; }
@media (min-width: 920px) {
    .why-grid { grid-template-columns: 1fr 1fr; gap: 64px 72px; }
    .why-grid > div { max-width: 520px; }
}

/* ---------- forms ---------- */
.form-wrap { max-width: 606px; margin: 8px auto 0; text-align: left; }
.form { display: grid; gap: 22px; }
.field label { display: block; font-size: var(--type-small); color: var(--stone); margin-bottom: 4px; }
.field input, .field textarea {
    width: 100%; min-height: 48px; padding: 10px 16px;
    font: 500 var(--type-body)/1.5 var(--font-body); color: var(--muted);
    background: #f1f1f1; border: 1px solid transparent; border-radius: 0;
}
.field textarea { min-height: 96px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #8a8a8a; font-size: var(--type-placeholder); }
.field input:hover, .field textarea:hover { background: #fff; }
.field [aria-invalid="true"] { border-color: #ff6b6b; }
.form-error { margin: 6px 0 0; color: #ff8c8c; font-size: var(--type-small); }
.form-error--block { margin: 0; padding: 12px 16px; background: rgba(255, 255, 255, .08); }
.field--trap { position: absolute; left: -9999px; }
.btn--submit { justify-self: center; }
.form-success { font: 900 var(--type-h2-small)/1.3 var(--font-display); color: var(--white); text-align: center; padding: 48px 0; }
.form-success::after { content: ""; display: block; width: 200px; height: 4px; margin: 8px auto 0; background: var(--red); }
#form { scroll-margin-top: calc(var(--header-h) + 24px); }

/* ---------- contact & free trial ---------- */
.info-band { display: grid; gap: 32px; text-align: center; }
.info-band h3 { margin-bottom: 12px; }
.info-band p { margin-bottom: 8px; }
.info-band a { text-decoration: none; }
@media (min-width: 920px) { .info-band { grid-template-columns: repeat(3, 1fr); } }

.map { width: 100%; height: 320px; border: 0; background: #eef1f5; }
.map--wide { margin-top: 16px; height: 384px; }
.map-row { display: grid; gap: 12px; margin-bottom: var(--section-y); }
.map-row img { width: 100%; height: 320px; object-fit: cover; }
@media (min-width: 920px) {
    .map-row { grid-template-columns: 1fr 1fr; }
    .map-row .map, .map-row img { height: 424px; }
}
.photo-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 48px; }
.photo-row img { width: 100%; aspect-ratio: 400 / 353; object-fit: cover; }

.split--bring img { width: 100%; aspect-ratio: 612 / 440; object-fit: cover; }
.bring-list { display: grid; gap: 32px; }
.bring-list h3 { text-transform: uppercase; }
@media (min-width: 920px) { .split--bring { margin-top: 56px; } }

@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; }
    .motion-ready .motion-reveal { opacity: 1 !important; transform: none !important; animation: none !important; }
    .parallax__image { position: absolute; height: 100%; }
}
