/* =========================================================================
   Soca BJJ Glen Cove — brand stylesheet
   Ported from SocabjjglencoveWebsiteRebuild/index.html <style> blocks.
   Loaded on both frontend and Gutenberg editor so patterns preview accurately.
   ========================================================================= */

/* --------- Accent tokens ---------------------------------------------------
   Single source of truth for the highlight color = the theme.json palette
   ("Red" / "Red Dark" / "Red Glow"), which WordPress prints as
   --wp--preset--color--* on both the front end and the editor, and which is
   user-editable in the Site Editor under Styles -> Colors.
   Change the palette there (or in theme.json) and every accent on the site
   follows: this stylesheet, the Tailwind utilities (functions.php maps
   red/redDark/redGlow onto these same vars), and the inline pattern SVGs
   (re-pointed by the attribute selectors below). */
:root {
  --soca-red:      var(--wp--preset--color--red, #C8102E);
  --soca-red-dark: var(--wp--preset--color--red-dark, #A00D25);
  --soca-red-glow: var(--wp--preset--color--red-glow, #E11836);
}

/* Inline SVG icons in patterns carry stroke/fill="#C8102E" presentation
   attributes; CSS wins over presentation attributes, so this re-points them
   at the accent token without editing every pattern. */
[stroke="#C8102E"] { stroke: var(--soca-red); }
[fill="#C8102E"]   { fill:   var(--soca-red); }


html { scroll-behavior: smooth; }

body {
  background: #0A0A0A;
  color: #fff;
  font-family: Inter, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* WordPress default alignfull / alignwide — we manage width through our own
   .max-w-[1280px] wrappers inside patterns, so strip WP's own wide constraints. */
.wp-site-blocks > * { max-width: none; }

/* --------- Typography primitives --------- */

.display {
  font-family: "Barlow Condensed", "Bebas Neue", Impact, sans-serif;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 0.9;
  text-transform: uppercase;
}
.tall {
  font-family: "Bebas Neue", "Barlow Condensed", Impact, sans-serif;
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 0.95;
}
.eyebrow {
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  color: var(--soca-red);
  font-size: 12px;
}
.eyebrow-num {
  font-family: "JetBrains Mono", monospace;
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--soca-red);
  text-transform: uppercase;
}

/* --------- Placeholder photo blocks (labeled, not grey) --------- */

.ph {
  position: relative;
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,.02) 0 8px, rgba(255,255,255,0) 8px 16px),
    linear-gradient(180deg, #151515, #0e0e0e);
  border: 1px solid #262626;
  overflow: hidden;
}
.ph::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 30% 20%, color-mix(in srgb, var(--soca-red) 8%, transparent), transparent 60%);
  pointer-events: none;
}
.ph-label {
  position: absolute; left: 14px; top: 14px;
  font-family: "JetBrains Mono", monospace;
  font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase;
  color: #A0A0A0;
  background: rgba(10,10,10,0.75);
  border: 1px solid #262626;
  padding: 6px 8px;
  border-radius: 2px;
  max-width: calc(100% - 28px);
  line-height: 1.4;
}
.ph-tag {
  position: absolute; right: 14px; bottom: 14px;
  font-family: "JetBrains Mono", monospace;
  font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--soca-red);
}
.ph-dot::after {
  content: ""; position: absolute; right: -1px; top: -1px;
  width: 8px; height: 8px; background: var(--soca-red);
}

/* --------- Red word helper --------- */
.rw { color: var(--soca-red); }

/* --------- Buttons --------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em;
  font-size: 15px;
  padding: 14px 22px;
  border-radius: 4px;
  transition: background 160ms ease, transform 120ms ease, border-color 160ms ease, color 160ms ease;
  will-change: transform;
  text-decoration: none;
}
.btn:active { transform: scale(0.98); }
.btn-red {
  background: var(--soca-red); color: #fff;
  box-shadow: 0 1px 0 rgba(0,0,0,0.4), 0 8px 20px -12px color-mix(in srgb, var(--soca-red) 70%, transparent);
}
.btn-red:hover { background: var(--soca-red-dark); color: #fff; }
.btn-ghost {
  background: transparent; color: #fff; border: 1.5px solid #fff;
}
.btn-ghost:hover { border-color: var(--soca-red); color: var(--soca-red); }
.btn-ghost-red {
  background: transparent; color: var(--soca-red); border: 1.5px solid var(--soca-red);
}
.btn-ghost-red:hover { background: var(--soca-red); color: #fff; }

/* --------- Focus ring --------- */
:where(a, button, [tabindex], input, select, textarea, summary):focus-visible {
  outline: 2px solid var(--soca-red);
  outline-offset: 2px;
  border-radius: 2px;
}

/* --------- Card --------- */
.card {
  background: #141414;
  border: 1px solid #262626;
  transition: border-color 180ms ease, transform 180ms ease, background 180ms ease;
  color: #fff;
  text-decoration: none;
  display: block;
}
.card:hover { border-color: #3a3a3a; }
.card-int:hover { border-color: var(--soca-red); }

/* --------- Program detail modal (lightbox) --------- */
.prog-modal { position: fixed; inset: 0; z-index: 200; display: none; }
.prog-modal.open { display: block; }
.prog-modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(0, 0, 0, 0.82);
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  animation: progFade 0.25s ease;
}
.prog-modal-panel {
  position: relative; z-index: 1;
  width: calc(100% - 32px); max-width: 640px;
  margin: 6vh auto 4vh; max-height: 88vh; overflow-y: auto;
  background: #141414;
  border: 1px solid #2a2a2a; border-top: 3px solid var(--soca-red);
  border-radius: 2px;
  padding: 44px 38px 46px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.65);
  animation: progRise 0.32s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.prog-modal-x {
  position: absolute; top: 12px; right: 16px;
  background: none; border: 0; padding: 4px;
  color: #777; font-size: 30px; line-height: 1; cursor: pointer;
  transition: color 160ms ease;
}
.prog-modal-x:hover { color: #fff; }
.prog-modal-meta {
  margin-top: 10px;
  font-family: "Barlow Condensed", sans-serif; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.16em;
  font-size: 12px; color: rgba(255, 255, 255, 0.6);
}
.prog-modal-list { margin-top: 24px; display: grid; gap: 11px; }
.prog-modal-list li {
  position: relative; padding-left: 20px;
  color: #9a9a9a; line-height: 1.6;
}
.prog-modal-list li::before {
  content: ""; position: absolute; left: 0; top: 9px;
  width: 7px; height: 7px; background: var(--soca-red);
}
.prog-modal .link-red { margin-top: 32px; }
body.prog-open { overflow: hidden; }
/* On phones the panel sits near the top edge — keep it (and the × close
   button) clear of the notch / status-bar safe area. */
@media (max-width: 640px) {
  .prog-modal-panel {
    margin-top: calc(4vh + env(safe-area-inset-top, 0px));
    padding-top: 40px;
  }
}
@keyframes progFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes progRise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }

/* --------- Rules & dividers --------- */
.rule-red { height: 1px; background: linear-gradient(90deg, var(--soca-red) 0, var(--soca-red) 60px, transparent 60px); }
.sect { border-top: 1px solid #1D1D1D; }

/* --------- Red underline link --------- */
.link-red {
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--soca-red); display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px;
  text-decoration: none;
}
.link-red .arrow { transition: transform 160ms ease; }
.link-red:hover .arrow { transform: translateX(4px); }

/* --------- Reveal on scroll --------- */
.reveal { opacity: 0; transform: translateY(8px); transition: opacity 600ms ease, transform 600ms ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* --------- Stars --------- */
.stars { display: inline-flex; gap: 3px; color: var(--soca-red); }

/* --------- Hero photo layers --------- */
.hero-vignette {
  background:
    radial-gradient(ellipse at 60% 40%, color-mix(in srgb, var(--soca-red) 18%, transparent), transparent 55%),
    radial-gradient(ellipse at 20% 100%, rgba(0,0,0,0.85), transparent 60%),
    linear-gradient(180deg, rgba(10,10,10,0.3), rgba(10,10,10,0.9));
}
.hero-bg { overflow: hidden; }
.hero-bg-img {
  position: absolute;
  inset: -6% -3%;
  width: 106%;
  height: 112%;
  object-fit: cover;
  object-position: center 35%;
  filter: grayscale(1) contrast(1.08) brightness(0.62);
  will-change: transform;
  transform: translate3d(0,0,0);
}
.hero-pros-layer { overflow: hidden; pointer-events: none; }
.hero-pros {
  position: absolute;
  right: clamp(-6%, -1vw, 3%);
  bottom: 0;
  height: 94%;
  max-width: 72%;
  object-fit: contain;
  object-position: right bottom;
  filter: saturate(0.45) brightness(0.85) contrast(1.05);
  opacity: 0.9;
  will-change: transform;
  transform: translate3d(0,0,0);
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,1) 70%, rgba(0,0,0,0.6) 100%);
          mask-image: linear-gradient(180deg, rgba(0,0,0,1) 70%, rgba(0,0,0,0.6) 100%);
}
.hero-grain {
  background-image:
    radial-gradient(ellipse at 0% 100%, rgba(0,0,0,0.55), transparent 55%),
    radial-gradient(ellipse at 100% 0%, rgba(0,0,0,0.35), transparent 50%);
  mix-blend-mode: multiply;
}
@media (max-width: 768px) {
  .hero-pros { right: -12%; height: 72%; max-width: 120%; opacity: 0.7; }
}
@media (prefers-reduced-motion: reduce) {
  [data-parallax] { transform: none !important; }
}

/* --------- Schedule grid cell accents per program --------- */
.sch-adults   { border-left: 3px solid var(--soca-red); }
.sch-kids     { border-left: 3px solid var(--soca-red-glow); opacity: 0.85; }
.sch-nogi     { border-left: 3px solid #fff; }
.sch-open     { border-left: 3px solid #6B6B6B; }

/* --------- Nav --------- */
#soca-nav.solid { background: rgba(10,10,10,0.92); border-bottom: 1px solid #1D1D1D; backdrop-filter: blur(8px); }
.nav-link { font-family: "Barlow Condensed", sans-serif; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; font-size: 13px; color: #fff; opacity: 0.85; text-decoration: none; }
.nav-link:hover { color: var(--soca-red); opacity: 1; }

/* --------- Ribbon --------- */
.ribbon { background: var(--soca-red); }

/* --------- Instagram — big standalone brand icon beside the follow button --------- */
.ig-bigicon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 62px; height: 62px; flex: none;
  color: var(--soca-red);
  border: 1.5px solid color-mix(in srgb, var(--soca-red) 45%, transparent);
  border-radius: 16px;
  background: color-mix(in srgb, var(--soca-red) 9%, transparent);
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease, color 180ms ease;
}
.ig-bigicon:hover {
  transform: translateY(-2px) scale(1.06);
  color: var(--soca-red-glow);
  background: color-mix(in srgb, var(--soca-red) 17%, transparent);
  box-shadow: 0 12px 30px -10px color-mix(in srgb, var(--soca-red) 70%, transparent);
}
@media (min-width: 640px) { .ig-bigicon { width: 68px; height: 68px; } }

/* --------- Instagram tile hover (reels wake into a short muted preview) --------- */
.ig-tile { position: relative; }
.ig-tile > img { position: relative; z-index: 0; }
/* Muted reel preview — sits above the poster, fades in on hover. */
.ig-vid {
  position: absolute; inset: 0; z-index: 1;
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity 320ms ease;
  pointer-events: none;
}
.ig-tile:hover .ig-vid, .ig-tile:focus-visible .ig-vid { opacity: 1; }
/* Darker red highlight wash — rides above the footage. */
.ig-tile::after {
  content: "";
  position: absolute; inset: 0; z-index: 2;
  background: color-mix(in srgb, var(--soca-red) 0%, transparent);
  transition: background 220ms ease;
  pointer-events: none;
}
.ig-tile:hover::after, .ig-tile:focus-visible::after {
  background: color-mix(in srgb, var(--soca-red) 30%, transparent);
}
/* "View" pill — appears on top while the clip plays behind it. */
.ig-view {
  position: absolute; z-index: 3;
  left: 50%; top: 50%; transform: translate(-50%, -50%) scale(0.9);
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px;
  font-family: 'Barlow Condensed', sans-serif; font-weight: 800;
  font-size: 14px; letter-spacing: 0.14em; text-transform: uppercase; color: #fff;
  background: var(--soca-red);
  box-shadow: 0 8px 22px -8px rgba(0,0,0,0.7);
  opacity: 0; transition: opacity 220ms ease, transform 220ms ease;
  pointer-events: none;
}
.ig-tile:hover .ig-view, .ig-tile:focus-visible .ig-view {
  opacity: 1; transform: translate(-50%, -50%) scale(1);
}
@media (prefers-reduced-motion: reduce) {
  .ig-vid { transition: opacity 200ms ease; }
  .ig-bigicon:hover { transform: none; }
}

/* --------- Instructors — square cards + modal portrait --------- */
.inst-card {
  position: relative; display: block; width: 100%; padding: 0;
  text-align: left; cursor: pointer; background: #141414;
  border: 1px solid #262626; overflow: hidden;
  transition: border-color 180ms ease;
}
.inst-card:hover, .inst-card:focus-visible { border-color: var(--soca-red); }
.inst-card .inst-img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 600ms cubic-bezier(0.2,0.7,0.2,1), filter 400ms ease;
  filter: saturate(0.94) brightness(0.94);
}
.inst-card:hover .inst-img, .inst-card:focus-visible .inst-img {
  transform: scale(1.05); filter: saturate(1.04) brightness(1);
}
.inst-card-grad {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(0,0,0,0) 42%, rgba(8,8,8,0.55) 70%, rgba(8,8,8,0.9) 100%);
}
.inst-card-cap { position: absolute; left: 18px; right: 18px; bottom: 16px; z-index: 2; }
.inst-plus {
  position: absolute; top: 14px; right: 14px; z-index: 2;
  width: 34px; height: 34px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(12,12,12,0.55); border: 1px solid rgba(255,255,255,0.25);
  color: #fff; opacity: 0.85;
  transition: background 180ms ease, border-color 180ms ease, opacity 180ms ease;
}
.inst-card:hover .inst-plus, .inst-card:focus-visible .inst-plus {
  background: var(--soca-red); border-color: var(--soca-red); opacity: 1;
}
.inst-modal-head { display: flex; gap: 24px; align-items: flex-end; }
.inst-modal-img {
  /* full 2:3 portrait — no crop, belt & backdrop visible */
  flex: 0 0 auto; width: 225px; aspect-ratio: 2 / 3; height: auto; object-fit: cover;
  border: 1px solid #2a2a2a; background: #0e0e0e;
}
@media (max-width: 560px) {
  .inst-modal-head { display: block; }
  .inst-modal-img { width: 100%; max-width: 300px; margin: 0 auto 18px; display: block; }
}

/* --------- Gallery (Our Space) mosaic --------- */
.gal-tile {
  position: relative;
  display: block;
  overflow: hidden;
  border: 1px solid #262626;
  background: #0e0e0e;
  cursor: pointer;
  padding: 0;
  width: 100%;
  height: 100%;
}
.gal-tile img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 600ms cubic-bezier(0.2,0.7,0.2,1), filter 400ms ease;
  filter: saturate(0.92) brightness(0.92);
}
.gal-tile:hover img { transform: scale(1.06); filter: saturate(1.05) brightness(1); }
.gal-tile::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 55%, rgba(0,0,0,0.55) 100%);
  transition: background 200ms ease;
  pointer-events: none;
}
.gal-tile:hover::after { background: linear-gradient(180deg, color-mix(in srgb, var(--soca-red) 10%, transparent) 0%, rgba(0,0,0,0.55) 100%); }
.gal-cap {
  position: absolute; left: 12px; bottom: 11px; z-index: 2;
  font-family: "JetBrains Mono", monospace;
  font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase;
  color: #fff; opacity: 0; transform: translateY(6px);
  transition: opacity 220ms ease, transform 220ms ease;
  text-shadow: 0 1px 6px rgba(0,0,0,0.7);
  max-width: calc(100% - 24px);
}
.gal-tile:hover .gal-cap, .gal-tile:focus-visible .gal-cap { opacity: 1; transform: translateY(0); }
.gal-plus {
  position: absolute; top: 10px; right: 12px; z-index: 2;
  color: #fff; opacity: 0; transform: scale(0.8);
  transition: opacity 220ms ease, transform 220ms ease;
}
.gal-tile:hover .gal-plus, .gal-tile:focus-visible .gal-plus { opacity: 0.9; transform: scale(1); }

/* --------- Welcome photo row --------- */
.wel-ph {
  border: 1px solid #262626;
  background: #0e0e0e;
  transition: border-color 300ms ease;
}
.wel-ph img {
  transition: transform 600ms cubic-bezier(0.2,0.7,0.2,1), filter 400ms ease;
  filter: saturate(0.92) brightness(0.92);
}
.wel-ph:hover { border-color: color-mix(in srgb, var(--soca-red) 45%, #262626); }
.wel-ph:hover img { transform: scale(1.04); filter: saturate(1.05) brightness(1); }
.wel-ph::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 60%, rgba(0,0,0,0.45) 100%);
  pointer-events: none;
}
.wel-ph::before {
  content: "";
  position: absolute; left: 0; bottom: 0; z-index: 2;
  height: 2px; width: 0;
  background: var(--soca-red);
  transition: width 450ms cubic-bezier(0.2,0.7,0.2,1);
}
.wel-ph:hover::before { width: 100%; }
.wel-ph:hover .gal-cap { opacity: 1; transform: translateY(0); }

/* --------- Gallery lightbox --------- */
.gal-lb { position: fixed; inset: 0; z-index: 300; display: none; }
.gal-lb.open { display: block; }
.gal-lb-backdrop {
  position: absolute; inset: 0;
  background: rgba(7,7,7,0.94);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  animation: progFade 0.25s ease;
}
.gal-lb-stage {
  position: absolute; inset: 0; z-index: 1;
  display: flex; align-items: center; justify-content: center;
  padding: 5vh 4vw;
}
.gal-lb-img {
  max-width: 100%; max-height: 90vh;
  object-fit: contain;
  border: 1px solid #2a2a2a;
  box-shadow: 0 30px 90px rgba(0,0,0,0.7);
  animation: progRise 0.3s cubic-bezier(0.2,0.7,0.2,1);
}
.gal-lb-cap {
  position: absolute; left: 0; right: 0; bottom: 18px; z-index: 2;
  text-align: center;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: #cfcfcf;
}
.gal-lb-cap .gal-lb-count { color: var(--soca-red); margin-right: 12px; }
.gal-lb-btn {
  position: absolute; z-index: 3; top: 50%; transform: translateY(-50%);
  background: rgba(20,20,20,0.6); border: 1px solid #2a2a2a;
  color: #fff; width: 50px; height: 50px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background 160ms ease, border-color 160ms ease;
}
.gal-lb-btn:hover { background: var(--soca-red); border-color: var(--soca-red); }
.gal-lb-prev { left: 3vw; }
.gal-lb-next { right: 3vw; }
.gal-lb-x {
  position: absolute; top: 18px; right: 22px; z-index: 3;
  background: none; border: 0; color: #aaa; font-size: 34px; line-height: 1;
  cursor: pointer; padding: 4px; transition: color 150ms ease;
}
.gal-lb-x:hover { color: #fff; }
@media (max-width: 640px) {
  .gal-lb-btn { width: 42px; height: 42px; }
  .gal-lb-prev { left: 8px; } .gal-lb-next { right: 8px; }
}

/* --------- Mobile drawer --------- */
#soca-drawer { transform: translateY(-100%); transition: transform 280ms ease; }
#soca-drawer.open { transform: translateY(0); }

/* --------- FAQ --------- */
.soca-faq details { border-top: 1px solid #1D1D1D; }
.soca-faq details:last-child { border-bottom: 1px solid #1D1D1D; }
.soca-faq details summary { list-style: none; cursor: pointer; padding: 22px 0; display: flex; align-items: center; justify-content: space-between; }
.soca-faq details summary::-webkit-details-marker { display: none; }
.soca-faq details .chev { transition: transform 200ms ease; color: var(--soca-red); }
.soca-faq details[open] .chev { transform: rotate(45deg); }
.soca-faq details .body { padding: 0 0 22px 0; color: #A0A0A0; max-width: 62ch; line-height: 1.7; }

/* --------- Responsive display type --------- */
.h-display { font-size: clamp(44px, 8vw, 104px); }
.h-section { font-size: clamp(36px, 5.5vw, 72px); }
.h-sub     { font-size: clamp(22px, 2.4vw, 32px); }

/* --------- Schedule mobile scroll --------- */
.sched-wrap { overflow-x: auto; }
.sched-wrap::-webkit-scrollbar { height: 8px; }
.sched-wrap::-webkit-scrollbar-thumb { background: #262626; }

/* --------- Gutenberg tuning: kill its container padding so our own wrappers control width --------- */
:where(.wp-block-group.alignfull),
:where(.wp-block-group.alignwide) { margin-left: 0; margin-right: 0; }
.wp-site-blocks { padding-left: 0 !important; padding-right: 0 !important; }

/* Default core-block text/heading color in our dark theme */
.wp-block-post-content p,
.wp-block-post-content li { color: inherit; }

/* Dialog-level: make sure the body pad for the fixed header is not added by WP */
.wp-site-blocks > main { margin-block-start: 0 !important; padding-top: 0; }

/* --------- WP Admin Bar offset ---------
   WP adds html{margin-top:32px} when logged-in admin bar is visible,
   which pushes the in-flow ribbon down but leaves position:fixed #soca-nav
   at top:26px of the VIEWPORT, causing overlap with the ribbon + admin bar.
   Push the fixed nav down by the admin bar height when .admin-bar is present. */
body.admin-bar #soca-nav { top: calc(26px + 32px); }
@media screen and (max-width: 782px) {
  body.admin-bar #soca-nav { top: calc(26px + 46px); }
}

/* --------- Dark scrollbar (matches ink bg, no jarring white track on right) */
html { scrollbar-color: #262626 #0A0A0A; scrollbar-width: thin; }
::-webkit-scrollbar { width: 8px; background: #0A0A0A; }
::-webkit-scrollbar-thumb { background: #262626; border-radius: 0; }
::-webkit-scrollbar-thumb:hover { background: #3a3a3a; }

/* --------- Silhouette placeholder overlay (for missing portraits) --------- */
.ph-silhouette::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 400 300%27 preserveAspectRatio=%27xMidYMax meet%27><g fill=%27rgba(255,255,255,0.09)%27><circle cx=%27200%27 cy=%27110%27 r=%2755%27/><path d=%27M 100 300 Q 100 200 200 195 Q 300 200 300 300 Z%27/></g></svg>");
  background-repeat: no-repeat;
  background-position: center bottom;
  background-size: 60% auto;
  pointer-events: none;
}

/* --------- Reveal on scroll — upgraded easing --------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 750ms cubic-bezier(0.22, 1, 0.36, 1),
              transform 750ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}
.reveal.in { opacity: 1; transform: translateY(0); }

/* --------- Sections scroll over sticky hero --------- */
.sect { position: relative; z-index: 1; }

/* --------- Hero sticky scroll-behind --------- */
.hero-sticky { position: sticky; top: 0; z-index: 0; }
.hero-dim {
  position: absolute; inset: 0;
  background: #000;
  opacity: 0;
  pointer-events: none;
  z-index: 10;
}

/* --------- Hero particle canvas --------- */
#hero-particles {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 2;
}

/* --------- Nav: front.js slides the fixed nav up in lockstep with the ribbon
   (inline `top`), so `top` must NOT be transitioned — it would lag the scroll
   and reintroduce the gap above the nav. Only paint properties animate. --------- */
#soca-nav { transition: background-color 200ms, border-color 200ms; }

/* --------- Schedule tabs --------- */
.sched-tabs { display: flex; border-bottom: 1px solid #1D1D1D; margin-bottom: 0; }
.sched-tab {
  display: flex; flex-direction: column; gap: 4px;
  padding: 16px 28px; background: transparent; border: none;
  border-bottom: 2px solid transparent; cursor: pointer; text-align: left;
  color: rgba(255,255,255,0.45);
  transition: color 180ms ease, border-color 180ms ease;
  font-family: inherit;
}
.sched-tab:hover { color: rgba(255,255,255,0.75); }
.sched-tab.active { color: #fff; border-bottom-color: var(--soca-red); }
/* --------- Nav: front.js slides the fixed nav up in lockstep with the ribbon
   (inline `top`), so `top` must NOT be transitioned — it would lag the scroll
   and reintroduce the gap above the nav. Only paint properties animate. --------- */
#soca-nav { transition: background-color 200ms, border-color 200ms; }

/* --------- Schedule tabs --------- */
.sched-tabs { display: flex; border-bottom: 1px solid #1D1D1D; margin-bottom: 0; }
.sched-tab {
  display: flex; flex-direction: column; gap: 4px;
  padding: 16px 28px; background: transparent; border: none;
  border-bottom: 2px solid transparent; cursor: pointer; text-align: left;
  color: rgba(255,255,255,0.45);
  transition: color 180ms ease, border-color 180ms ease;
  font-family: inherit;
}
.sched-tab:hover { color: rgba(255,255,255,0.75); }
.sched-tab.active { color: #fff; border-bottom-color: var(--soca-red); }
.sched-tab .tab-title {
  font-family: Barlow Condensed, sans-serif;
  font-weight: 700; font-size: 16px; letter-spacing: 0.12em; text-transform: uppercase;
}
.sched-tab .tab-sub {
  font-family: JetBrains Mono, monospace;
  font-size: 10px; letter-spacing: 0.10em; text-transform: uppercase;
  color: var(--soca-red); opacity: 0.8;
}
.sched-tab.active .tab-sub { opacity: 1; }
.sched-panel { display: none; }
.sched-panel.active { display: block; }

/* --------- Native schedule grid (Zen Planner data, our markup) --------- */
.sched-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 1px;
  background: #1d1d1d;          /* shows through as hairline rules */
  border: 1px solid #1d1d1d;
}
.sched-day { background: #111; display: flex; flex-direction: column; min-width: 0; }
.sched-day-head {
  padding: 12px 10px 10px;
  border-bottom: 1px solid #1d1d1d;
  display: flex; align-items: baseline; gap: 7px;
  position: sticky; top: 0;
}
.sched-dow {
  font-family: "Barlow Condensed", sans-serif; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.08em; font-size: 15px; color: #fff;
}
.sched-date {
  font-family: "JetBrains Mono", monospace; font-size: 10px;
  letter-spacing: 0.06em; color: #6b6b6b;
}
.sched-day-body { padding: 8px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.sched-empty { color: #2f2f2f; text-align: center; padding: 14px 0; font-size: 18px; }

.sched-class {
  display: block; position: relative;
  background: #181818; border: 1px solid #242424; border-left: 3px solid var(--c, var(--soca-red));
  padding: 10px 10px 11px; text-decoration: none; color: #fff;
  transition: background 150ms ease, border-color 150ms ease, transform 150ms ease;
}
.sched-class:hover { background: #1f1f1f; border-color: #3a3a3a; border-left-color: var(--c, var(--soca-red)); transform: translateY(-1px); }
.sched-time {
  display: block; font-family: "Barlow Condensed", sans-serif; font-weight: 800;
  font-size: 17px; letter-spacing: 0.02em; color: #fff; line-height: 1.05;
}
.sched-name {
  display: block; margin-top: 4px; font-size: 12.5px; line-height: 1.35;
  color: #d8d8d8; font-weight: 500;
}
.sched-sub {
  display: block; margin-top: 5px; font-size: 11px; color: #7d7d7d; line-height: 1.3;
}
.sched-reserve {
  display: block; margin-top: 8px;
  font-family: "Barlow Condensed", sans-serif; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.1em; font-size: 11px; color: var(--soca-red);
  opacity: 0; transform: translateY(2px); transition: opacity 150ms ease, transform 150ms ease;
}
.sched-class:hover .sched-reserve { opacity: 1; transform: translateY(0); }
.sched-reserve .arrow { transition: transform 160ms ease; display: inline-block; }
.sched-class:hover .sched-reserve .arrow { transform: translateX(3px); }

/* Tablet: 3 columns, days wrap. Mobile: 1 column with day labels. */
@media (max-width: 1024px) {
  .sched-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sched-reserve { opacity: 1; transform: none; }   /* touch — no hover */
}
@media (max-width: 640px) {
  .sched-grid { grid-template-columns: 1fr; }
  .sched-day-head { position: static; }
}

/* --------- Hero layer adjustments for light-beam effect --------- */

/* Darken photo so beams stand out */
.hero-bg-img {
  filter: grayscale(1) contrast(1.12) brightness(0.44) !important;
}

/* Open vignette at top so beams can bloom; keep bottom dark for text */
.hero-vignette {
  background:
    radial-gradient(ellipse at 50% 0%, color-mix(in srgb, var(--soca-red) 10%, transparent), transparent 55%),
    radial-gradient(ellipse at 20% 100%, rgba(0,0,0,0.90), transparent 60%),
    linear-gradient(180deg,
      rgba(10,10,10,0.05) 0%,
      rgba(10,10,10,0.00) 25%,
      rgba(10,10,10,0.60) 75%,
      rgba(10,10,10,0.92) 100%) !important;
}

/* Canvas: screen blend makes bright pixels add light to the dark photo */
#hero-particles {
  mix-blend-mode: screen !important;
  z-index: 5 !important;
}

/* Dim overlay must sit above canvas */
.hero-dim { z-index: 15 !important; }

/* --------- Zen Planner iframe container --------- */
.zp-embed iframe {
  display: block;
  min-height: 600px;
  background: transparent !important;
}
/* Loading shimmer before iframe sizes itself */
.sched-panel.active .zp-embed:not(:has(iframe[height])) {
  min-height: 600px;
  background: repeating-linear-gradient(
    90deg,
    rgba(255,255,255,0.02) 0px,
    rgba(255,255,255,0.04) 40px,
    rgba(255,255,255,0.02) 80px
  );
}

/* --------- Hero video override (replaces light-beam darkening) --------- */
/* Video has tilt-shift + vignette baked in; only mild darkening for text legibility. */
.hero-bg-img {
  filter: brightness(0.72) contrast(1.05) saturate(1.05) !important;
}
video.hero-bg-img {
  display: block;
  background: #0A0A0A;
}
/* Reopen vignette to a softer profile now that beams are gone. */
.hero-vignette {
  background:
    radial-gradient(ellipse at 60% 40%, color-mix(in srgb, var(--soca-red) 14%, transparent), transparent 55%),
    radial-gradient(ellipse at 20% 100%, rgba(0,0,0,0.85), transparent 60%),
    linear-gradient(180deg, rgba(10,10,10,0.20), rgba(10,10,10,0.85)) !important;
}

/* --------- Static hero video: remove parallax overscan --------- */
/* No parallax movement means no overscan needed; fill container exactly. */
.hero-bg-img {
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  will-change: auto !important;
  transform: none !important;
}
video.hero-bg-img { background: transparent; }

/* --------- Program card background footage --------- */
/* A darkened clip sits behind each program card; it brightens and starts
   playing a short 3s loop on hover so the cards feel alive. Real per-program
   photos/clips can be swapped in via the data-poster / <source> per card. */
.card-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: #0e0e0e;
}
.card-media-vid {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Idle: dark, slightly desaturated so the headline pops. */
  filter: grayscale(22%) brightness(0.40) contrast(1.05);
  transform: scale(1.03);
  transition: filter 450ms ease, transform 6000ms ease;
  will-change: filter, transform;
}
.card-media-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg,
    rgba(10,10,10,0.55) 0%,
    rgba(10,10,10,0.30) 38%,
    rgba(10,10,10,0.82) 100%);
  transition: opacity 450ms ease;
}
/* Lift the real card content above the footage. */
.card-int > *:not(.card-media) { position: relative; z-index: 2; }
/* Hover: the footage wakes up. */
.card-int:hover .card-media-vid {
  filter: grayscale(0%) brightness(0.58) contrast(1.06);
  transform: scale(1.07);
}
.card-int:hover .card-media-shade { opacity: 0.78; }
@media (prefers-reduced-motion: reduce) {
  .card-media-vid { transition: filter 200ms ease; transform: none; }
  .card-int:hover .card-media-vid { transform: none; }
}

/* =========================================================================
   Band parallax — full-bleed CTA bands where the headline "comes together"
   on scroll (see front.js). Words are split into .band-word spans.
   ========================================================================= */
.band-parallax [data-band-bg]     { will-change: transform; }
.band-parallax [data-band-content]{ will-change: transform, opacity; transform-style: preserve-3d; }
.band-word {
  display: inline-block;
  will-change: transform, opacity, filter;
}
@media (prefers-reduced-motion: reduce) {
  .band-parallax [data-band-bg],
  .band-parallax [data-band-content],
  .band-word { transform: none !important; filter: none !important; opacity: 1 !important; }
}

/* --------- Schedule: All / Kids / Adults filters + Connect-4 drop animation --------- */
.sched-board { overflow: hidden; }
.sched-filters { display: flex; flex-wrap: wrap; border-bottom: 1px solid #1D1D1D; }
.sched-filter {
  flex: 1 1 200px; position: relative;
  display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
  padding: 18px 56px 16px 22px;
  background: transparent; border: none; border-right: 1px solid #1D1D1D;
  cursor: pointer; text-align: left; color: rgba(255,255,255,0.5);
  font-family: inherit;
  transition: background 200ms ease, color 200ms ease;
}
.sched-filter:last-child { border-right: none; }
.sched-filter:hover { color: #fff; background: #161616; }
.sched-filter.active { background: var(--soca-red); color: #fff; }
.sched-filter .f-title {
  font-family: "Barlow Condensed", sans-serif; font-weight: 800;
  font-size: 20px; letter-spacing: 0.1em; text-transform: uppercase; line-height: 1.05;
}
.sched-filter .f-sub {
  font-family: "JetBrains Mono", monospace; font-size: 9.5px;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--soca-red); opacity: 0.85;
}
.sched-filter.active .f-sub { color: rgba(255,255,255,0.9); opacity: 1; }
.sched-filter .f-count {
  position: absolute; top: 15px; right: 16px;
  font-family: "JetBrains Mono", monospace; font-size: 10.5px;
  padding: 2px 8px; border: 1px solid currentColor; border-radius: 999px; opacity: 0.65;
}
.sched-filter.active .f-count { opacity: 1; }
.sched-status {
  padding: 10px 22px; border-bottom: 1px solid #1D1D1D; background: #0e0e0e;
  font-family: "JetBrains Mono", monospace; font-size: 10.5px;
  letter-spacing: 0.08em; text-transform: uppercase; color: #7d7d7d;
}
.sched-status b { color: #fff; font-weight: 700; }

.sched-class { position: relative; }
.sched-prog {
  position: absolute; top: 9px; right: 9px;
  font-family: "JetBrains Mono", monospace; font-size: 8.5px; line-height: 1.5;
  letter-spacing: 0.08em; text-transform: uppercase; padding: 1px 6px; border: 1px solid;
}
.sched-prog.kids   { color: #E8A33D; border-color: rgba(232,163,61,0.45); }
.sched-prog.adults { color: color-mix(in srgb, var(--soca-red-glow) 70%, #fff); border-color: color-mix(in srgb, var(--soca-red) 55%, transparent); }

/* Connect-4 drop: pieces fall out the bottom, new ones drop in from above. */
.sched-class.drop-out {
  transition: transform 520ms cubic-bezier(0.5, 0, 0.9, 0.4), opacity 420ms ease-in;
  transition-delay: var(--dd, 0ms);
  transform: translateY(75vh) rotate(var(--rot, 3deg));
  opacity: 0; pointer-events: none;
}
.sched-class.pre-drop { transition: none; transform: translateY(-60vh); opacity: 0; }
.sched-class.drop-in {
  transition: transform 560ms cubic-bezier(0.22, 0.9, 0.3, 1.14), opacity 320ms ease-out;
  transition-delay: var(--dd, 0ms);
  transform: translateY(0); opacity: 1;
}
@media (prefers-reduced-motion: reduce) {
  .sched-class.drop-out, .sched-class.pre-drop, .sched-class.drop-in {
    transition: none; transform: none; opacity: 1;
  }
}

/* --------- Reviews: read-more cards fade in when revealed --------- */
.rev-more { opacity: 0; transform: translateY(22px); transition: opacity 500ms ease, transform 500ms ease; }
.rev-more.in { opacity: 1; transform: none; }

/* --------- Instructors: 4-wide at every viewport — compact captions on phones --------- */
@media (max-width: 640px) {
  .inst-card-cap { left: 7px; right: 7px; bottom: 7px; }
  .inst-card-cap .eyebrow-num { font-size: 7px; letter-spacing: 0.05em; }
  .inst-plus { display: none; }
}

/* --------- Intro CTA band: title lands from above (blurred zoom-in) --------- */
.band-parallax [data-band-title] { will-change: transform, filter, opacity; transform-origin: 50% 35%; }
@media (prefers-reduced-motion: reduce) {
  .band-parallax [data-band-title] { transform: none !important; filter: none !important; opacity: 1 !important; }
}

/* hidden attribute must beat utility display classes (e.g. .grid on #more-reviews) */
[hidden] { display: none !important; }

/* --------- Hero video: soft fade-in over the still once playback starts --------- */
.hero-bg { position: relative; }
.hero-bg .hero-bg-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-vid { opacity: 0; transition: opacity 600ms ease; }
.hero-vid.vid-on { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .hero-vid { transition: none; } }

/* --------- Free intro page: adult / child branch cards --------- */
.intro-choice {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px;
  padding: 30px 22px 26px;
  background: #111111;
  border: 1px solid #262626;
  cursor: pointer;
  color: #A0A0A0;
  transition: border-color 180ms ease, background 180ms ease, transform 120ms ease;
}
.intro-choice:hover { border-color: #4a4a4a; color: #fff; }
.intro-choice:active { transform: scale(0.99); }
.intro-choice-ic {
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; border-radius: 999px;
  border: 1px solid #262626; color: #A0A0A0; margin-bottom: 8px;
  transition: border-color 180ms ease, color 180ms ease, background 180ms ease;
}
.intro-choice-t {
  font-family: 'Barlow Condensed', sans-serif; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em;
  font-size: 21px; line-height: 1.1; color: #fff;
}
.intro-choice-s { font-size: 13px; line-height: 1.5; color: #6B6B6B; }
.intro-choice[aria-pressed="true"] {
  border-color: var(--soca-red);
  background: color-mix(in srgb, var(--soca-red) 7%, #111111);
  box-shadow: 0 10px 28px -18px color-mix(in srgb, var(--soca-red) 80%, transparent);
}
.intro-choice[aria-pressed="true"] .intro-choice-ic {
  border-color: var(--soca-red); color: #fff; background: var(--soca-red);
}
.intro-choice[aria-pressed="true"] .intro-choice-s { color: #A0A0A0; }
.intro-choice:focus-visible { outline: 2px solid var(--soca-red); outline-offset: 2px; }
