[data-request-validate] [data-validate-for]:not(.jax-visible),
[data-request-validate] [data-validate-error]:not(.jax-visible) {
    display: none;
}

/* ==========================================================================
   CrossFit Zitterd — "Next" theme
   Dark, athletic, tight. Brand colour is injected as --brand from theme settings.
   ========================================================================== */

:root {
    --brand: #e25304;
    --brand-btn: color-mix(in srgb, var(--brand) 86%, #000); /* white text on this passes WCAG AA (>=4.5:1) */
    --brand-600: color-mix(in srgb, var(--brand) 72%, #000);
    --brand-soft: color-mix(in srgb, var(--brand) 12%, transparent);
    --ink: #0c0c0d;
    --ink-2: #151517;
    --ink-3: #1e1e21;
    --paper: #f4f2ee;
    --white: #fff;
    --text: #1b1b1d;
    --muted: #6b6b70;
    --muted-on-dark: #a9a9b0;
    --line: rgba(255, 255, 255, .1);
    --line-light: rgba(12, 12, 13, .1);
    --radius: 4px;
    --header-h: 76px;
    --font-display: 'Barlow Condensed', 'Arial Narrow', Impact, sans-serif;
    --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.65;
    color: var(--text);
    background: var(--ink);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body.nav-open { overflow: hidden; }

img, video, svg { max-width: 100%; display: block; }
img { height: auto; }

a { color: var(--brand); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--brand-600); }

:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }

h1, h2, h3, h4, h5 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: .01em;
    text-transform: uppercase;
    margin: 0 0 .5em;
}

p { margin: 0 0 1.1em; }

.skip-link {
    position: absolute; left: 12px; top: -60px; z-index: 200;
    background: var(--brand); color: #fff; padding: 10px 16px; border-radius: var(--radius);
}
.skip-link:focus { top: 12px; color: #fff; }

/* ---------- Layout ------------------------------------------------------- */

.wrap { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: 24px; }
.wrap--narrow { max-width: 900px; }

.section { padding: clamp(56px, 8vw, 104px) 0; position: relative; }
.section--tight { padding: clamp(28px, 4vw, 48px) 0; }
.section--light { background: var(--paper); color: var(--text); }
.section--dark { background: var(--ink); color: #fff; }
.section--dark h1, .section--dark h2, .section--dark h3, .section--dark h4 { color: #fff; }

/* Section with optional background photo, always dimmed for legibility */
.section--dark[style*="--bg-image"],
.pricing[style*="--bg-image"] {
    background-image: linear-gradient(rgba(12, 12, 13, .86), rgba(12, 12, 13, .92)), var(--bg-image);
    background-size: cover;
    background-position: center;
}

main { display: block; }
body:not(.page-home):not(.page-empty) main { padding-top: var(--header-h); }

/* ---------- Typography helpers ------------------------------------------- */

.section-head { text-align: center; margin-bottom: clamp(28px, 4vw, 52px); }

.section-head h2,
.section-header {
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    font-weight: 800;
    margin-bottom: 0;
    position: relative;
    padding-bottom: .5em;
    text-align: center;
}
.section-head h2::after,
.section-header::after {
    content: '';
    position: absolute; left: 50%; bottom: 0;
    width: 64px; height: 4px; transform: translateX(-50%) skewX(-24deg);
    background: var(--brand);
}

.prose { font-size: 1.04rem; }
.prose h1 { font-size: clamp(2.2rem, 4.5vw, 3.2rem); font-weight: 800; }
.prose h2 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); font-weight: 800; margin-top: 1.4em; }
.prose h3 { font-size: 1.6rem; margin-top: 1.4em; color: var(--brand); }
.split-text.prose h3 { font-size: 1.35rem; font-weight: 700; line-height: 1.2; text-transform: none; letter-spacing: 0; color: var(--text); margin-top: 0; }
.prose h4 { font-size: 1.35rem; font-weight: 700; line-height: 1.2; text-transform: none; letter-spacing: 0; }
.prose > :first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.2em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .4em; }
.prose ul li::marker { color: var(--brand); }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose img { border-radius: var(--radius); }
.prose iframe { width: 100%; border: 0; }
.prose .text-center, .prose [style*="text-align: center"] { text-align: center; }
.prose table { width: 100%; border-collapse: collapse; margin-bottom: 1.4em; }
.prose th, .prose td { padding: 10px 12px; border-bottom: 1px solid var(--line-light); text-align: left; }

/* ---------- Buttons ------------------------------------------------------ */

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    padding: 13px 26px;
    font: 700 .95rem/1 var(--font-display);
    letter-spacing: .1em; text-transform: uppercase;
    border: 2px solid transparent; border-radius: var(--radius);
    cursor: pointer;
    transition: background .2s var(--ease), color .2s var(--ease), transform .2s var(--ease), border-color .2s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn-brand { background: var(--brand-btn); color: #fff; }
.btn-brand:hover { background: var(--brand-600); color: #fff; }
.btn-ghost { border-color: rgba(255, 255, 255, .55); color: #fff; background: transparent; }
.btn-ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn-lg { padding: 17px 34px; font-size: 1.05rem; }

/* ---------- Header ------------------------------------------------------- */

.site-header {
    position: fixed; inset: 0 0 auto 0; z-index: 100;
    height: var(--header-h);
    background: rgba(12, 12, 13, .97); /* no backdrop-filter: it would trap the fixed mobile nav panel */
    border-bottom: 1px solid var(--line);
    transition: background .3s var(--ease), border-color .3s var(--ease), height .3s var(--ease);
}
.site-header.is-overlay:not(.is-scrolled):not(.is-open) {
    background: linear-gradient(rgba(0, 0, 0, .55), transparent);
    border-bottom-color: transparent;
}
.site-header .wrap { max-width: 1400px; }
.header-inner { height: 100%; display: flex; align-items: center; gap: 28px; }

.brand { display: inline-flex; align-items: center; flex-shrink: 0; color: #fff; }
.brand:hover { color: #fff; }
.brand img { height: 56px; width: auto; }
.brand-word {
    font: 600 1.55rem/1 var(--font-display); text-transform: uppercase; letter-spacing: .04em;
}
.brand-word b { color: var(--brand); font-weight: 800; }

.primary-nav { display: flex; align-items: center; gap: 20px; margin-left: auto; }
.nav-list { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav-item { position: relative; }
.nav-item > a {
    display: block; padding: 10px 14px;
    font: 600 1.02rem/1 var(--font-display); letter-spacing: .09em; text-transform: uppercase;
    color: #fff; position: relative; white-space: nowrap;
}
.nav-item > a::after {
    content: ''; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 2px;
    background: var(--brand); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease);
}
.nav-item > a:hover { color: #fff; }
.nav-item > a:hover::after, .nav-item.is-active > a::after { transform: scaleX(1); }

.nav-sub {
    list-style: none; margin: 0; padding: 8px 0; min-width: 200px;
    position: absolute; left: 0; top: 100%;
    background: var(--ink-2); border: 1px solid var(--line); border-top: 2px solid var(--brand);
    opacity: 0; visibility: hidden; transform: translateY(8px); transition: .2s var(--ease);
}
.has-sub:hover .nav-sub, .has-sub:focus-within .nav-sub { opacity: 1; visibility: visible; transform: none; }
.nav-sub a { display: block; padding: 9px 18px; color: #fff; font-size: .95rem; }
.nav-sub a:hover { background: var(--brand-soft); color: var(--brand); }

.nav-cta { padding: 11px 20px; font-size: .9rem; white-space: nowrap; }

.header-tools { display: flex; align-items: center; gap: 6px; }
.icon-link {
    display: inline-flex; align-items: center; justify-content: center;
    width: 38px; height: 38px; border-radius: 50%; color: #fff;
    transition: background .2s, color .2s;
}
.icon-link:hover { background: var(--brand); color: #fff; }

.lang { display: flex; margin-left: 6px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.lang-link {
    padding: 6px 10px; font: 700 .8rem/1 var(--font-display); letter-spacing: .1em; color: var(--muted-on-dark);
}
.lang-link:hover { color: #fff; }
.lang-link.is-current { background: var(--brand-btn); color: #fff; }

.nav-toggle {
    display: none; width: 42px; height: 42px; margin-left: 4px;
    background: none; border: 0; padding: 0; cursor: pointer; position: relative;
}
.nav-toggle span {
    position: absolute; left: 9px; right: 9px; height: 2px; background: #fff; border-radius: 2px;
    transition: transform .3s var(--ease), opacity .2s;
}
.nav-toggle span:nth-child(1) { top: 14px; }
.nav-toggle span:nth-child(2) { top: 20px; }
.nav-toggle span:nth-child(3) { top: 26px; }
.site-header.is-open .nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.site-header.is-open .nav-toggle span:nth-child(2) { opacity: 0; }
.site-header.is-open .nav-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1320px) {
    .header-tools .icon-link { display: none; }
    .nav-item > a { padding-inline: 10px; }
    .nav-item > a::after { left: 10px; right: 10px; }
}
@media (min-width: 992px) and (max-width: 1399px) {
    .nav-cta { display: none; }
}
@media (min-width: 992px) and (max-width: 1199px) {
    .brand img { height: 38px; }
    .header-inner { gap: 16px; }
}

@media (max-width: 991px) {
    :root { --header-h: 68px; }
    .nav-toggle { display: block; }
    .header-tools { margin-left: auto; }
    .primary-nav {
        position: fixed; inset: var(--header-h) 0 0 0;
        flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 24px;
        margin: 0; padding: 24px 24px 40px;
        background: var(--ink); overflow-y: auto;
        transform: translateX(100%); visibility: hidden;
        transition: transform .35s var(--ease), visibility .35s;
    }
    .site-header.is-open .primary-nav { transform: none; visibility: visible; }
    .is-resizing .primary-nav, .is-resizing .nav-toggle span { transition: none; }
    .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
    .nav-item { border-bottom: 1px solid var(--line); }
    .nav-item > a { padding: 18px 0; font-size: 1.6rem; }
    .nav-item > a::after { display: none; }
    .nav-item.is-active > a { color: var(--brand); }
    .nav-sub { position: static; opacity: 1; visibility: visible; transform: none; border: 0; background: none; padding: 0 0 12px 12px; }
    .nav-cta { width: 100%; padding: 16px; }
    .brand img { height: 40px; }
}

/* ---------- Hero (home) -------------------------------------------------- */

.hero {
    position: relative; isolation: isolate;
    min-height: 100svh; display: flex; align-items: center;
    padding: calc(var(--header-h) + 40px) 0 80px;
    background:
        radial-gradient(900px 500px at 85% 10%, color-mix(in srgb, var(--brand) 38%, transparent), transparent 70%),
        repeating-linear-gradient(115deg, transparent 0 46px, rgba(255, 255, 255, .025) 46px 47px),
        var(--ink);
    overflow: hidden; color: #fff;
}
.hero-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero-shade {
    position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(90deg, rgba(12, 12, 13, .88) 0%, rgba(12, 12, 13, .55) 55%, rgba(12, 12, 13, .35) 100%),
                linear-gradient(180deg, transparent 60%, var(--ink) 100%);
}
.hero-inner { position: relative; }
.hero-content { max-width: 820px; }

.hero-content h1, .hero-content h2 {
    font-size: clamp(3.2rem, 9.5vw, 7.4rem);
    font-weight: 800; line-height: .92; letter-spacing: .005em; color: #fff;
    margin-bottom: .35em;
}
.hero-content h1 span, .hero-content h2 span { color: var(--brand); display: block; }
.hero-content p {
    font-size: clamp(1.05rem, 2vw, 1.4rem); color: #e3e3e6; max-width: 34em; margin-bottom: 2em;
    padding-left: 18px; border-left: 4px solid var(--brand);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-scroll {
    position: absolute; left: 50%; bottom: 28px; width: 26px; height: 42px; transform: translateX(-50%);
    border: 2px solid rgba(255, 255, 255, .5); border-radius: 14px;
}
.hero-scroll span {
    position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px;
    background: #fff; border-radius: 2px; animation: scroll-dot 1.8s infinite;
}
@keyframes scroll-dot { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

@media (max-width: 575px) { .hero-scroll { display: none; } .hero-actions .btn { width: 100%; } }

/* ---------- Ticker ------------------------------------------------------- */

.ticker { background: var(--brand); color: #fff; overflow: hidden; white-space: nowrap; transform: skewY(-1.2deg); margin: -14px 0 0; position: relative; z-index: 2; }
.ticker-track { display: inline-flex; align-items: center; gap: 28px; padding: 14px 0; animation: ticker 38s linear infinite; }
.ticker span { font: 800 1.35rem/1 var(--font-display); letter-spacing: .12em; text-transform: uppercase; }
.ticker i { width: 10px; height: 10px; background: #fff; transform: rotate(45deg); opacity: .8; flex-shrink: 0; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- Split / welcome / what-is ------------------------------------ */

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split--single { grid-template-columns: 1fr; max-width: 820px; margin-inline: auto; }
.split-media { position: relative; }
.split-media img { width: 100%; border-radius: var(--radius); position: relative; z-index: 1; aspect-ratio: 4 / 3; object-fit: cover; }
.split-media::before {
    content: ''; position: absolute; inset: 20px -20px -20px 20px; border: 3px solid var(--brand); border-radius: var(--radius); z-index: 0;
}
.welcome .prose h2 { margin-top: 0; font-size: clamp(2rem, 4vw, 3rem); }
.welcome .prose p:last-child a {
    display: inline-flex; align-items: center; gap: 8px; padding: 12px 24px; border-radius: var(--radius);
    background: var(--ink); color: #fff; text-decoration: none;
    font: 700 .95rem/1 var(--font-display); letter-spacing: .1em; text-transform: uppercase;
    transition: background .2s;
}
.welcome .prose p:last-child a:hover { background: var(--brand); }

@media (max-width: 767px) {
    .split { grid-template-columns: 1fr; }
    .split-media::before { inset: 12px -10px -12px 12px; }
}

/* ---------- WOD ---------------------------------------------------------- */

.wod { background-color: var(--ink); }
.wod-card {
    background: rgba(21, 21, 23, .82); border: 1px solid var(--line); border-left: 4px solid var(--brand);
    border-radius: var(--radius); padding: clamp(24px, 4vw, 44px);
    font-size: 1.08rem; color: #e3e3e6; backdrop-filter: blur(4px);
}
.wod-card p { margin: 0; text-align: left !important; }

/* ---------- Benefits ----------------------------------------------------- */

.benefit-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.benefit {
    position: relative; background: #fff; border: 1px solid var(--line-light); border-top: 4px solid var(--brand);
    border-radius: var(--radius); padding: 36px 30px 28px; overflow: hidden;
    transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.benefit:hover { transform: translateY(-6px); box-shadow: 0 24px 40px -24px rgba(0, 0, 0, .35); }
.benefit-num {
    position: absolute; right: 18px; top: 6px;
    font: 800 5.5rem/1 var(--font-display); color: var(--brand); opacity: .12;
}
.benefit h3 { font-size: 1.9rem; font-weight: 800; margin-bottom: .5em; position: relative; }
.benefit ul { list-style: none; padding: 0; margin: 1.2em 0; display: grid; gap: 8px; }
.benefit li { padding-left: 26px; position: relative; font-weight: 500; }
.benefit li::before {
    content: ''; position: absolute; left: 0; top: .55em; width: 12px; height: 6px;
    border-left: 3px solid var(--brand); border-bottom: 3px solid var(--brand); transform: rotate(-45deg) translateY(-3px);
}
.benefit p:last-child { margin: 0; color: var(--muted); font-size: .86rem; font-style: italic; }

@media (max-width: 991px) { .benefit-grid { grid-template-columns: 1fr; } }

/* ---------- Team --------------------------------------------------------- */

.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 28px; }
.coach { background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.coach-photo { position: relative; aspect-ratio: 2 / 3; max-height: 520px; overflow: hidden; background: var(--ink-3); }
.coach-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); filter: grayscale(.25) contrast(1.05); }
.coach:hover .coach-photo img { transform: scale(1.05); filter: none; }
.coach-photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(transparent 60%, rgba(12, 12, 13, .85)); pointer-events: none; }
.coach-social {
    position: absolute; z-index: 2; left: 14px; bottom: 14px; display: flex; gap: 8px;
}
.coach-social a {
    width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center;
    background: rgba(255, 255, 255, .14); color: #fff; border-radius: 50%; backdrop-filter: blur(6px);
}
.coach-social a:hover { background: var(--brand); color: #fff; }
.coach-body { padding: 24px 20px 28px; border-top: 3px solid var(--brand); flex: 1; }
.coach-body h3 { font-size: 1.8rem; font-weight: 800; margin-bottom: .4em; }
.coach-about { color: var(--muted-on-dark); font-size: .95rem; margin-bottom: 14px; }
/* Credentials: one tidy line each, with a brand marker */
.coach-about p { margin: 0 0 7px; padding-left: 18px; position: relative; font-size: .84rem; line-height: 1.3; text-wrap: pretty; }
.coach-about p::before { content: ''; position: absolute; left: 0; top: .42em; width: 7px; height: 7px; background: var(--brand); transform: rotate(45deg); }
.coach-about strong { color: #fff; font-weight: 600; }
.coach-link { display: block; color: #fff; font-size: .92rem; }
a.coach-link { color: var(--brand); }

/* ---------- Pricing ------------------------------------------------------ */

.pricing { background: var(--ink); }
.price-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: start; }
.price-col { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
@media (max-width: 767px) { .price-grid { grid-template-columns: 1fr; } }
.plan {
    background: var(--ink-2); color: #fff; border: 1px solid var(--line); border-top: 4px solid var(--brand);
    border-radius: var(--radius); padding: 26px 28px 24px; display: flex; flex-direction: column;
}
.plan { position: relative; overflow: hidden; box-shadow: 0 30px 60px -34px rgba(0, 0, 0, .7); transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease); }
.plan:hover { transform: translateY(-6px); box-shadow: 0 40px 70px -32px rgba(0, 0, 0, .8); }
.plan-title { font-size: clamp(1.7rem, 3vw, 2.2rem); font-weight: 800; color: #fff; margin-bottom: .3em; }
.plan-sub { color: var(--muted-on-dark); }
.plan .plan-items, .prose .plan-items { list-style: none; margin: 4px 0 20px; padding: 0; flex: 1; }
.plan-items li { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin: 0; padding: 9px 0; line-height: 1.35; border-bottom: 1px dashed var(--line); }
.plan-items li > span { flex: 1; min-width: 0; }
@media (max-width: 575px) { .plan-items li { flex-direction: column; gap: 2px; } .price-tag { text-align: left; } }
.plan-items li:last-child { border-bottom: 0; }
.plan-items li > span { color: #e3e3e6; }
.price-tag { font: 800 1.35rem/1 var(--font-display); color: var(--brand); white-space: nowrap; text-align: right; letter-spacing: .02em; }
.plan .btn { align-self: flex-start; }

/* ---------- Reviews ------------------------------------------------------ */

.review-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.review { margin: 0; background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 28px; position: relative; }
.review::before { content: '\201C'; position: absolute; top: 4px; right: 20px; font: 800 6rem/1 var(--font-display); color: var(--brand); opacity: .3; }
.review blockquote { margin: 0 0 22px; font-size: 1.05rem; color: #e3e3e6; position: relative; }
.review figcaption { display: flex; align-items: center; gap: 12px; }
.review img { border-radius: 50%; object-fit: cover; }
.review strong { display: block; font-family: var(--font-display); text-transform: uppercase; letter-spacing: .06em; font-size: 1.1rem; }
.review em { color: var(--muted-on-dark); font-size: .85rem; }

/* Reviews embedded in a static page: full-bleed band with the review backdrop photo,
   breaking out of the narrow prose column (like the original theme's testimonial band). */
.page-static main { overflow-x: clip; }
.page-static .prose .reviews {
    width: 100vw; margin: 48px 0 0 calc(50% - 50vw);
    padding: clamp(56px, 8vw, 96px) 0;
    background-color: var(--ink);
    background-image: linear-gradient(rgba(12, 12, 13, .78), rgba(12, 12, 13, .9)),
                      radial-gradient(800px 400px at 15% 0%, color-mix(in srgb, var(--brand) 30%, transparent), transparent 70%);
}
.page-static .prose .reviews[style*="--bg-image"] {
    background-image: linear-gradient(rgba(12, 12, 13, .72), rgba(12, 12, 13, .88)), var(--bg-image);
    background-size: cover; background-position: center; background-attachment: fixed;
}
.page-static .reviews .wrap { max-width: 960px; }
.page-static .reviews .section-head { margin-bottom: 36px; }
.page-static .reviews .section-header { color: #fff; font-size: clamp(2.2rem, 5vw, 3.4rem); }
.page-static .review-grid { grid-template-columns: 1fr; }
.page-static .review {
    background: rgba(12, 12, 13, .62); color: #e3e3e6; border: 1px solid rgba(255, 255, 255, .14);
    border-left: 4px solid var(--brand); border-radius: var(--radius);
    padding: clamp(28px, 4vw, 48px) clamp(24px, 4vw, 52px); overflow: hidden;
    backdrop-filter: blur(8px);
}
.page-static .review::before {
    content: '\201C'; position: absolute; top: -8px; left: clamp(20px, 3vw, 36px); right: auto;
    font: 800 7rem/1 var(--font-display); color: var(--brand); opacity: 1;
}
.page-static .review blockquote { color: #ececef; font-size: 1.04rem; line-height: 1.75; max-width: 76ch; padding-top: 44px; margin-bottom: 26px; }
.page-static .review figcaption { padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .14); }
.page-static .review strong { color: #fff; font-size: 1.25rem; letter-spacing: .1em; }
.page-static .review em { color: var(--brand); font: 600 .85rem/1 var(--font-display); letter-spacing: .14em; text-transform: uppercase; }
@media (hover: none), (max-width: 991px) { .page-static .prose .reviews[style*="--bg-image"] { background-attachment: scroll; } }

/* ---------- Promo banner + video ---------------------------------------- */

.promo-banner { display: block; border-radius: var(--radius); overflow: hidden; }
.promo-banner img { width: 100%; transition: transform .6s var(--ease); }
.promo-banner:hover img { transform: scale(1.02); }

.video-card {
    position: relative; display: block; width: 100%; padding: 0; border: 0; cursor: pointer;
    border-radius: var(--radius); overflow: hidden; background: var(--ink-2);
    box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .6);
}
.video-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .6s var(--ease); }
.video-card::after { content: ''; position: absolute; inset: 0; background: rgba(12, 12, 13, .35); transition: background .3s; }
.video-card:hover img { transform: scale(1.03); }
.video-card:hover::after { background: rgba(12, 12, 13, .15); }
.video-play {
    position: absolute; z-index: 1; left: 50%; top: 50%; width: 88px; height: 88px; transform: translate(-50%, -50%);
    display: flex; align-items: center; justify-content: center; border-radius: 50%;
    background: var(--brand); color: #fff;
    box-shadow: 0 0 0 12px color-mix(in srgb, var(--brand) 30%, transparent);
    animation: pulse 2.2s infinite;
}
@keyframes pulse { 50% { box-shadow: 0 0 0 22px color-mix(in srgb, var(--brand) 0%, transparent); } }

.video-block:not(.section--dark) { padding: 24px 0 48px; }
.video-block:not(.section--dark) .section-head h2 { color: var(--text); }

.video-dialog { border: 0; padding: 0; background: #000; width: min(1100px, 94vw); border-radius: var(--radius); overflow: hidden; }
.video-dialog::backdrop { background: rgba(0, 0, 0, .85); }
.video-dialog video { width: 100%; max-height: 86vh; display: block; }
.video-dialog .video-close {
    position: absolute; top: 10px; right: 10px; z-index: 2; width: 40px; height: 40px; border: 0; border-radius: 50%;
    background: rgba(0, 0, 0, .6); color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.video-dialog .video-close:hover { background: var(--brand); }

/* ---------- Page hero (breadcrumbs partial) ------------------------------ */

.page-hero {
    position: relative; isolation: isolate; color: #fff; text-align: left;
    padding: clamp(48px, 7vw, 88px) 0 clamp(36px, 5vw, 60px);
    background:
        radial-gradient(700px 320px at 100% 0%, color-mix(in srgb, var(--brand) 32%, transparent), transparent 70%),
        repeating-linear-gradient(115deg, transparent 0 46px, rgba(255, 255, 255, .025) 46px 47px),
        var(--ink);
    border-bottom: 4px solid var(--brand);
}
.page-hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.page-hero--image::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(rgba(12, 12, 13, .78), rgba(12, 12, 13, .88)); }
.page-title { font-size: clamp(2.6rem, 7vw, 5rem); font-weight: 800; margin: 0; color: #fff; }
.crumbs { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0 0 14px; font: 600 .85rem/1 var(--font-display); letter-spacing: .14em; text-transform: uppercase; }
.crumbs li { color: var(--muted-on-dark); }
.crumbs li + li::before { content: '/'; margin-right: 8px; color: var(--brand); }
.crumbs a { color: #fff; }
.crumbs a:hover { color: var(--brand); }
.crumbs .is-current { color: var(--brand); }

/* ---------- Contact ------------------------------------------------------ */

.contact { padding-bottom: 0; }
.contact-cards { list-style: none; margin: 0 0 clamp(32px, 5vw, 56px); padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.contact-card { background: #fff; border: 1px solid var(--line-light); border-radius: var(--radius); padding: 28px 26px; border-bottom: 4px solid var(--brand); }
.contact-icon {
    width: 52px; height: 52px; margin-bottom: 16px; display: inline-flex; align-items: center; justify-content: center;
    background: var(--brand); color: #fff; border-radius: var(--radius); transform: skewX(-8deg);
}
.contact-card h4, .contact-card .contact-card-title { font-size: 1.4rem; font-weight: 800; margin-bottom: .2em; }
.contact-card p { margin: 0; color: var(--muted); word-break: break-word; }
.contact-card a { color: var(--text); font-weight: 500; }
.contact-card a:hover { color: var(--brand); }

.form-card { background: #fff; border: 1px solid var(--line-light); border-radius: var(--radius); padding: clamp(24px, 4vw, 48px); margin-bottom: clamp(48px, 7vw, 96px); }

.map { margin-top: 0; line-height: 0; background: var(--ink-3); }
.map iframe { width: 100%; height: 440px; border: 0; filter: grayscale(.85) contrast(1.05); transition: filter .4s; }
.map:hover iframe { filter: none; }

/* ---------- Forms (Artisans form builder) -------------------------------- */

.artisan-form-wrapper { margin: 0 !important; }
.artisan-form .form-label { font: 700 .9rem/1.2 var(--font-display); letter-spacing: .1em; text-transform: uppercase; color: var(--text); margin-bottom: 6px; }
.artisan-form .form-control, .artisan-form .form-select {
    border: 1px solid #d5d3ce; border-radius: var(--radius); background: #faf9f7;
    padding: 13px 15px; font-size: 1rem; color: var(--text);
    transition: border-color .2s, box-shadow .2s, background .2s;
}
.artisan-form .form-control:focus, .artisan-form .form-select:focus {
    background: #fff; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); outline: 0;
}
.artisan-form .form-check-input:checked { background-color: var(--brand); border-color: var(--brand); }
.artisan-form .btn-primary, .artisan-form .theme-btn {
    --bs-btn-bg: var(--brand-btn); --bs-btn-border-color: var(--brand-btn);
    --bs-btn-hover-bg: var(--brand-600); --bs-btn-hover-border-color: var(--brand-600);
    --bs-btn-active-bg: var(--brand-600); --bs-btn-active-border-color: var(--brand-600);
    font: 700 1rem/1 var(--font-display); letter-spacing: .12em; text-transform: uppercase;
    padding: 15px 36px; border-radius: var(--radius); margin-top: 8px;
}
.artisan-form .form-field-2, .artisan-form .form-field-3 { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }
.alert { border-radius: var(--radius); }

/* ---------- Static pages: schedule, price tables, galleries --------------- */

/* Sub-headings in static page content. On the planning page they are <h2> (correct order under the page title)
   but keep the same look as the <h3> sub-headings elsewhere. */
.page-static .prose h3,
.page-static .prose:has(.artisan-schedule) > h2 { color: var(--text); font-size: 1.5rem; font-weight: 700; margin: 1.4em 0 .3em; padding-left: 14px; border-left: 4px solid var(--brand); }
.page-static .prose h3 + p,
.page-static .prose:has(.artisan-schedule) > h2 + p { color: var(--muted); }
.page-static .wrap--narrow { max-width: 1100px; }
.prose .wrap { max-width: none; padding-inline: 0; }
.prose > p, .prose > ul, .prose > ol { max-width: 820px; }
/* Price tables on static pages: full-bleed dark band (with the pricing backdrop photo) so the cards pop */
.page-static .prose .pricing {
    width: 100vw; margin: 0 0 56px calc(50% - 50vw); padding: clamp(48px, 7vw, 88px) 0;
    background-color: var(--ink);
    background-image: linear-gradient(rgba(12, 12, 13, .8), rgba(12, 12, 13, .92)),
                      radial-gradient(800px 400px at 85% 0%, color-mix(in srgb, var(--brand) 28%, transparent), transparent 70%);
}
.page-static .prose .pricing[style*="--bg-image"] {
    background-image: linear-gradient(rgba(12, 12, 13, .74), rgba(12, 12, 13, .9)), var(--bg-image);
    background-size: cover; background-position: center;
}
.page-static .prose .pricing .wrap { max-width: 1100px; padding-inline: 24px; }
.page-static .plan { background: rgba(21, 21, 23, .92); color: #fff; border-color: var(--line); border-top-color: var(--brand); }
.page-static .prose .plan-title { color: #fff; border-left: 0; padding-left: 0; margin-top: 0; font-size: clamp(1.7rem, 3vw, 2.2rem); }
.page-static .prose .plan-sub, .page-static .prose .plan-items li > span { max-width: none; }
.page-static .plan-sub { color: var(--muted-on-dark); }
.page-static .plan-items li { border-bottom-color: var(--line); }
.page-static .video-block { padding: 0 0 32px; }
.page-static .video-block .section-head h2 { color: var(--text); }
.page-static .section-header { color: var(--text); }
.artisan-schedule-container { margin-bottom: 40px; }
.artisan-schedule-header-container { display: none; }
#lightcase-caption { display: none !important; }

/* Planning calendar: keep every block's content inside its time slot.
   The plugin positions blocks by time (1h = 100px) but its large type/padding
   made 3-line titles overflow into the next block. */
.artisan-schedule { font-family: var(--font-body); }
.artisan-schedule .events .top-info > span {
    font: 700 1.05rem/1 var(--font-display); letter-spacing: .1em; text-transform: uppercase;
}
.artisan-schedule .timeline li span { font: 600 .95rem/1 var(--font-display); letter-spacing: .06em; color: var(--muted); }
/* Static pages wrap content in .prose, whose list rules (margins, padding, bullets) leaked into the
   calendar: every timeline <li> grew by .4em, so labels drifted ~6px further from the blocks per half hour. */
.artisan-schedule ul { margin: 0; list-style: none; }
.artisan-schedule .timeline ul, .artisan-schedule .events > ul { padding-left: 0; }
.artisan-schedule .timeline li, .artisan-schedule .events-group li { margin-bottom: 0; }
/* Pin each time label exactly on its grid line. The plugin lets the label sit on the text baseline
   of the <li>, so any font/line-height change shifts it away from the blocks. */
.artisan-schedule .timeline li span { position: absolute; left: 0; top: 0; transform: translateY(-50%); }
.artisan-schedule .events .events-group { border-color: var(--line-light); background: #fff; }
.artisan-schedule .events .top-info { border-bottom-color: var(--line-light); }
.artisan-schedule .events .single-event { border-radius: 2px; overflow: hidden; box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .25); }
.artisan-schedule .events .single-event > div { padding: 9px 11px; overflow: hidden; }
.artisan-schedule .event-name {
    font: 700 1.05rem/1.05 var(--font-display); letter-spacing: .04em; text-transform: uppercase; font-style: normal;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    text-shadow: 0 1px 2px rgba(0, 0, 0, .35);
}
.artisan-schedule .single-event.is-light .event-name, .artisan-schedule .single-event.is-light .event-date { color: #1b1b1d; text-shadow: none; }
.artisan-schedule .event-date { opacity: 1; font-size: .75rem; margin-bottom: 3px; text-shadow: 0 1px 2px rgba(0, 0, 0, .35); }
@media (min-width: 800px) and (max-width: 1100px) {
    .artisan-schedule .event-name { font-size: .92rem; }
}
@media (max-width: 799px) {
    /* stacked mobile cards have room, so allow full titles */
    .artisan-schedule .event-name { -webkit-line-clamp: unset; font-size: 1.3rem; }
    .artisan-schedule .events .single-event > div { padding: 14px 16px; }
}

/* ---------- Footer ------------------------------------------------------- */

.site-footer {
    background:
        linear-gradient(rgba(12, 12, 13, .94), rgba(12, 12, 13, .98)),
        var(--footer-image, none) center / cover,
        var(--ink);
    color: var(--muted-on-dark); border-top: 4px solid var(--brand);
}
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 48px; padding-block: clamp(48px, 6vw, 80px); }
.footer-claim { margin: 18px 0; max-width: 22em; font-size: .95rem; }
.footer-social { display: flex; gap: 8px; }
.footer-social .icon-link { border: 1px solid var(--line); }
.footer-title { font-size: 1.3rem; font-weight: 700; letter-spacing: .12em; color: #fff; margin-bottom: 1.1em; position: relative; padding-bottom: .6em; }
.footer-title::after { content: ''; position: absolute; left: 0; bottom: 0; width: 32px; height: 3px; background: var(--brand); }
.footer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.footer-list li { display: flex; gap: 12px; align-items: flex-start; line-height: 1.5; }
.footer-list .icon { color: var(--brand); margin-top: 2px; flex-shrink: 0; }
.footer-list a { color: #fff; }
.footer-list a:hover { color: var(--brand); }
.journal img { opacity: .85; transition: opacity .2s; max-width: 240px; height: auto; }
.journal:hover img { opacity: 1; }
.footer-bottom { border-top: 1px solid var(--line); font-size: .88rem; }
.footer-bottom-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-block: 20px; }
.footer-bottom p { margin: 0; }
.footer-bottom a { color: #fff; }
.footer-bottom a:hover, .artisan-link { color: var(--brand) !important; }
.footer-menu { display: flex; flex-wrap: wrap; gap: 6px 22px; list-style: none; margin: 0; padding: 0; }

@media (max-width: 767px) {
    .footer-grid { grid-template-columns: 1fr; gap: 36px; }
}

/* ---------- Reveal on scroll -------------------------------------------- */

.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .js .reveal { opacity: 1; transform: none; transition: none; }
    .ticker-track, .video-play, .hero-scroll span { animation: none; }
    .btn, .benefit, .coach-photo img { transition: none; }
}

/* ---------- Cookie message (Matomo plugin) ------------------------------- */
/* `html #matomo-opt-out` out-specifies the plugin CSS, so no !important needed.
   display/opacity stay with the plugin, which shows/hides the box inline. */

html #matomo-opt-out {
    left: 24px; bottom: 24px; transform: none;
    width: min(30rem, calc(100% - 48px)); max-width: none;
    padding: 26px 28px 24px;
    background: var(--ink-2); color: #e3e3e6;
    border: 1px solid var(--line); border-top: 4px solid var(--brand); border-radius: var(--radius);
    box-shadow: 0 30px 70px rgba(0, 0, 0, .5);
    font-family: var(--font-body); letter-spacing: 0;
}
html #matomo-opt-out::before {
    content: 'Cookies'; display: block; margin-bottom: 10px;
    font: 700 1.1rem/1 var(--font-display); letter-spacing: .14em; text-transform: uppercase; color: var(--brand);
}
html #matomo-opt-out p { margin: 0 0 20px; font-size: .92rem; line-height: 1.6; color: var(--muted-on-dark); }
html #matomo-opt-out a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
html #matomo-opt-out .matomo-buttons { display: flex; gap: 10px; justify-content: flex-start; }
html #matomo-opt-out button {
    padding: 12px 22px; border-radius: var(--radius); border: 2px solid transparent;
    font: 700 .85rem/1 var(--font-display); letter-spacing: .12em; text-transform: uppercase;
    transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
html #matomo-opt-out button.cookie-consent-button { background: var(--brand-btn); color: #fff; }
html #matomo-opt-out button.cookie-consent-button:hover { background: var(--brand-600); }
html #matomo-opt-out button.cookie-no-content-button { border-color: rgba(255, 255, 255, .35); color: #fff; }
html #matomo-opt-out button.cookie-no-content-button:hover { background: #fff; color: var(--ink); border-color: #fff; }
@media (max-width: 480px) {
    html #matomo-opt-out { left: 12px; bottom: 12px; width: calc(100% - 24px); padding: 22px 20px 20px; }
    html #matomo-opt-out .matomo-buttons button { flex: 1 1 100%; }
    html #matomo-opt-out .matomo-buttons { flex-direction: column; }
}
