/* ============================================================================
   Boston Study Speaking Club — speaking.bostonstudyhub.com
   Original "Fresh Modern Club" Design System
   Warm Ivory (#F7F4ED) + Deep Boston Navy (#0E1A33) + Crimson (#E63946) + Mint (#C7F464)
   ========================================================================== */

:root {
  color-scheme: light;
  --paper: #f7f8fc;
  --paper-deep: #edf1f8;
  --card: #ffffff;
  --navy: #16264e;
  --navy-2: #243866;
  --muted: #5b6b85;
  --line: rgba(22, 38, 78, 0.14);
  --line-strong: rgba(22, 38, 78, 0.26);
  --crimson: #c92735;
  --crimson-dark: #a81d2a;
  --mint: #e8edfb;
  --mint-deep: #d6e0fa;
  --cobalt: #2447b5;
  --ok: #0f7a4d;
  --bad: #b01724;
  --display: "Unbounded", "Arial Black", system-ui, sans-serif;
  --body: "Onest", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --container: 1220px;
  --gutter: clamp(1rem, 3.8vw, 2.8rem);
  --radius: 24px;
  --radius-sm: 14px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--navy);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.55;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Subtle tactile paper grain */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  opacity: 0.028;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.75'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}

body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: 0.55; }
h1, h2, h3, h4, p, figure, blockquote { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

:focus-visible {
  outline: 3px solid var(--crimson);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: fixed;
  top: -80px;
  left: 16px;
  z-index: 10000;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--navy);
  color: var(--mint);
  font-weight: 700;
  font-size: 13px;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 16px; }

/* Animated top scroll progress bar */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  z-index: 900;
  transform-origin: left center;
  transform: scaleX(0);
  background: linear-gradient(90deg, var(--crimson), var(--cobalt), var(--navy), var(--crimson));
  background-size: 200% 100%;
  animation: progress-shimmer 4s linear infinite;
  pointer-events: none;
}

@keyframes progress-shimmer {
  from { background-position: 0% 50%; }
  to { background-position: 200% 50%; }
}

.container {
  width: min(var(--container), calc(100% - var(--gutter) * 2));
  margin-inline: auto;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  font-weight: 700;
  font-size: 15px;
  line-height: 1;
  transition: transform 0.24s var(--spring), background-color 0.2s var(--ease), box-shadow 0.24s var(--ease), border-color 0.2s var(--ease);
}

.btn:hover:not(:disabled) { transform: translateY(-3px); }
.btn:active:not(:disabled) { transform: translateY(0); }

.btn--navy {
  background: var(--navy);
  color: #fff;
  box-shadow: 0 12px 26px -14px rgba(14, 26, 51, 0.65);
}
.btn--navy:hover:not(:disabled) {
  background: var(--crimson);
  box-shadow: 0 16px 30px -12px rgba(230, 57, 70, 0.55);
}

.btn--crimson {
  background: var(--crimson);
  color: #fff;
  box-shadow: 0 12px 26px -14px rgba(230, 57, 70, 0.6);
}
.btn--crimson:hover:not(:disabled) { background: var(--crimson-dark); }

.btn--mint {
  background: var(--mint);
  color: var(--navy);
  border-color: var(--navy);
  box-shadow: 4px 4px 0 var(--navy);
}
.btn--mint:hover:not(:disabled) {
  background: var(--mint-deep);
  box-shadow: 6px 6px 0 var(--navy);
}

.btn--outline {
  background: var(--card);
  color: var(--navy);
  border-color: var(--navy);
}
.btn--outline:hover:not(:disabled) {
  background: var(--mint);
  box-shadow: 4px 4px 0 var(--navy);
}

.btn--ghost-light {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.28);
}
.btn--ghost-light:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.16);
  border-color: var(--mint);
}

.btn--sm { min-height: 42px; padding: 0 18px; font-size: 13.5px; }
.btn--block { width: 100%; }
.btn-arrow { display: inline-flex; transition: transform 0.2s var(--ease); }
.btn:hover .btn-arrow { transform: translate(2px, -2px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 248, 252, 0.88);
  backdrop-filter: saturate(150%) blur(16px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.25s var(--ease);
}

.site-header.is-scrolled {
  box-shadow: 0 10px 30px -20px rgba(14, 26, 51, 0.28);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-logo {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  object-fit: contain;
  background: #fff;
  padding: 3px;
  border: 1.5px solid var(--line-strong);
  box-shadow: 0 4px 12px -4px rgba(14, 26, 51, 0.18);
  flex: none;
}

.brand-text { display: grid; line-height: 1.1; }
.brand-name {
  font-family: var(--display);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: -0.02em;
}
.brand-name span { color: var(--crimson); }
.brand-sub {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 2px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
.main-nav a {
  font-size: 14px;
  font-weight: 600;
  color: var(--navy-2);
  position: relative;
  padding: 6px 0;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--crimson);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.22s var(--ease);
}
.main-nav a:hover::after { transform: scaleX(1); }

.header-actions { display: flex; align-items: center; gap: 8px; }

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border-radius: 999px;
  background: var(--paper-deep);
  border: 1px solid var(--line-strong);
}

.lang-switch button {
  min-width: 36px;
  min-height: 30px;
  padding: 0 8px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}

.lang-switch button[aria-pressed="true"] {
  background: var(--navy);
  color: #fff;
}

.lang-switch--mobile {
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.22);
  margin-bottom: 4px;
}

.lang-switch--mobile button {
  flex: 1;
  color: rgba(255, 255, 255, 0.72);
}

.lang-switch--mobile button[aria-pressed="true"] {
  background: #fff;
  color: var(--navy);
}

@media (max-width: 640px) {
  .site-header .lang-switch { display: none; }
}

.header-btn {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: transparent;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--navy);
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.header-btn:hover { background: var(--card); border-color: var(--navy); }
.header-btn--staff { color: var(--crimson); border-color: rgba(230, 57, 70, 0.35); }
.header-btn--staff:hover { background: #fdecee; border-color: var(--crimson); }

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1.5px solid var(--navy);
  background: var(--mint);
  color: var(--navy);
  font-size: 13.5px;
  font-weight: 700;
  box-shadow: 3px 3px 0 var(--navy);
  transition: transform 0.2s var(--spring), box-shadow 0.2s var(--ease);
}
.header-cta:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--navy); }
.header-cta-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--crimson);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(230, 57, 70, 0.5); }
  50% { box-shadow: 0 0 0 7px rgba(230, 57, 70, 0); }
}

.menu-toggle {
  display: none;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--navy);
  background: var(--card);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}
.menu-toggle span { width: 18px; height: 2px; background: var(--navy); border-radius: 2px; }

/* Mobile drawer */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: var(--navy);
  color: #fff;
  padding: 24px var(--gutter) 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transform: translateY(-100%);
  transition: transform 0.35s var(--ease);
}
.mobile-menu.is-open { transform: translateY(0); }
.mobile-menu-head { display: flex; align-items: center; justify-content: space-between; }
.menu-close {
  width: 44px; height: 44px; border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.28);
  background: transparent; color: #fff; font-size: 22px;
  display: grid; place-items: center;
}
.mobile-nav { display: grid; gap: 14px; margin-block: 24px; }
.mobile-nav a {
  display: flex; align-items: baseline; gap: 14px;
  font-family: var(--display); font-size: clamp(1.3rem, 6vw, 1.9rem); font-weight: 700;
}
.mobile-nav a span { font-family: var(--body); font-size: 13px; color: var(--mint); }
.mobile-menu-bottom { display: grid; gap: 10px; }

/* ---------- Original Split Bento Hero ---------- */
.hero {
  position: relative;
  padding: clamp(2rem, 4.8vw, 3.8rem) 0 clamp(2.8rem, 5.5vw, 4.4rem);
  background-image:
    linear-gradient(to right, rgba(14, 26, 51, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(14, 26, 51, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: center;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 15px;
  border-radius: 999px;
  background: var(--card);
  border: 1.5px solid var(--navy);
  font-size: 12.5px;
  font-weight: 700;
  box-shadow: 3px 3px 0 var(--navy);
  margin-bottom: 22px;
}

.hero-title {
  font-family: var(--display);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.hero-title-small {
  display: block;
  font-size: clamp(1.15rem, 2.1vw, 1.65rem);
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 10px;
}

.hero-title-big {
  display: block;
  font-size: clamp(2.5rem, 5.2vw, 4.4rem);
}

.hero-title-big em {
  font-style: normal;
  color: var(--crimson);
  position: relative;
  display: inline-block;
  z-index: 1;
}

.hero-title-big em::after {
  content: "";
  position: absolute;
  left: -4px; right: -4px; bottom: 4px;
  height: 15px;
  background: var(--mint);
  z-index: -1;
  border-radius: 6px;
  transform: rotate(-1.2deg);
}

.hero-lead {
  font-size: clamp(1rem, 1.25vw, 1.15rem);
  color: var(--navy-2);
  max-width: 50ch;
  margin-bottom: 26px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 26px;
}

.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 13px;
  border-radius: 12px;
  background: var(--card);
  border: 1px solid var(--line-strong);
  font-size: 13px;
  font-weight: 600;
  color: var(--navy-2);
}

.hero-chip strong { color: var(--navy); }

/* Right Bento Stack */
.hero-bento {
  display: grid;
  gap: 16px;
  position: relative;
}

.hero-media {
  position: relative;
  border-radius: var(--radius);
  border: 2px solid var(--navy);
  box-shadow: 8px 8px 0 var(--navy);
  overflow: visible;
  background: var(--navy);
}

.hero-photo-wrap {
  border-radius: calc(var(--radius) - 2px);
  overflow: hidden;
  aspect-ratio: 16 / 10;
}

.hero-photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.hero-media:hover .hero-photo-wrap img {
  transform: scale(1.04);
}

.float-bubble {
  position: absolute;
  top: -16px;
  left: 16px;
  background: var(--mint);
  color: var(--navy);
  border: 2px solid var(--navy);
  border-radius: 18px 18px 18px 4px;
  padding: 9px 15px;
  font-family: var(--display);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
  box-shadow: 4px 4px 0 var(--navy);
  animation: float-y 4.2s ease-in-out infinite;
}

@keyframes float-y {
  0%, 100% { transform: translateY(0) rotate(-2.5deg); }
  50% { transform: translateY(-6px) rotate(-1deg); }
}

.rotating-badge {
  position: absolute;
  top: -26px;
  right: -14px;
  width: 104px;
  height: 104px;
  border-radius: 50%;
  background: var(--crimson);
  color: #fff;
  border: 2px solid var(--navy);
  box-shadow: 4px 4px 0 var(--navy);
  display: grid;
  place-items: center;
}

.rotating-badge svg {
  width: 96px;
  height: 96px;
  animation: spin-slow 16s linear infinite;
}

.rotating-badge text {
  fill: #fff;
  font-family: var(--display);
  font-size: 9.2px;
  font-weight: 700;
  letter-spacing: 1.6px;
}

.rotating-badge .badge-star {
  position: absolute;
  font-size: 18px;
  color: var(--mint);
}

@keyframes spin-slow {
  to { transform: rotate(360deg); }
}

/* Live Next Meetup Bento Card (Deep Navy) */
.live-card {
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius);
  border: 2px solid var(--navy);
  padding: 22px 24px;
  box-shadow: 8px 8px 0 var(--crimson);
  display: grid;
  gap: 14px;
}

.live-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(199, 244, 100, 0.16);
  color: var(--mint);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.live-pill i {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--mint);
  display: inline-block;
  animation: pulse 2s infinite;
}

.live-card h2 {
  font-family: var(--display);
  font-size: clamp(1.05rem, 1.7vw, 1.35rem);
  font-weight: 700;
  line-height: 1.25;
}

.live-date {
  flex: none;
  min-width: 66px;
  padding: 10px;
  border-radius: 16px;
  background: var(--mint);
  color: var(--navy);
  text-align: center;
  line-height: 1;
}

.live-date strong { display: block; font-family: var(--display); font-size: 22px; font-weight: 800; }
.live-date span { display: block; font-size: 10.5px; font-weight: 800; letter-spacing: 0.08em; margin-top: 3px; }

.live-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 12px 0;
  border-top: 1px dashed rgba(255, 255, 255, 0.2);
  border-bottom: 1px dashed rgba(255, 255, 255, 0.2);
}

.live-meta span { display: block; font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.08em; color: rgba(255, 255, 255, 0.6); font-weight: 700; }
.live-meta strong { display: block; font-size: 13.5px; font-weight: 700; margin-top: 2px; }

.live-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

/* ---------- Double Counter-Scrolling Kinetic Marquee ---------- */
.marquee-band {
  position: relative;
  padding: 18px 0;
  overflow: hidden;
}

.marquee-strip {
  width: 106%;
  margin-left: -3%;
  overflow: hidden;
  border-block: 1.5px solid var(--navy);
}

.marquee-strip--navy {
  background: var(--navy);
  color: var(--paper);
  transform: rotate(-1.1deg);
}

.marquee-strip--mint {
  margin-top: 8px;
  background: var(--mint);
  color: var(--navy);
  transform: rotate(0.95deg);
}

.marquee-belt {
  display: flex;
  width: max-content;
  will-change: transform;
  animation: belt-left 22s linear infinite;
}

.marquee-belt--reverse {
  animation: belt-right 25s linear infinite;
}

.marquee-strip:hover .marquee-belt { animation-play-state: paused; }

.marquee-chunk {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 13px 14px;
  white-space: nowrap;
}

.marquee-chunk span {
  font-family: var(--display);
  font-size: clamp(0.76rem, 1.3vw, 0.98rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.marquee-chunk i {
  font-style: normal;
  font-size: 1rem;
  color: var(--crimson);
}

.marquee-strip--mint .marquee-chunk i { color: var(--crimson); }

@keyframes belt-left {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes belt-right {
  from { transform: translateX(-50%); }
  to { transform: translateX(0); }
}

/* ---------- Sections ---------- */
.section { padding: clamp(3.4rem, 6.8vw, 5.6rem) 0; }
.section--alt { background: var(--paper-deep); border-block: 1px solid var(--line); }
.section--navy { background: var(--navy); color: #fff; position: relative; overflow: hidden; }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--display);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--crimson);
  margin-bottom: 10px;
}

.section--navy .kicker { color: var(--mint); }

.section-title {
  font-family: var(--display);
  font-size: clamp(1.85rem, 3.6vw, 2.95rem);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.025em;
  max-width: 18ch;
}

.section-lead {
  font-size: 16px;
  color: var(--muted);
  max-width: 46ch;
}
.section--navy .section-lead { color: rgba(255, 255, 255, 0.72); }

/* ---------- Interactive "Taste the Club" (3D Flip + Icebreaker + 30s Timer) ---------- */
.try-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.try-card {
  background: var(--card);
  border: 2px solid var(--navy);
  border-radius: var(--radius);
  padding: clamp(22px, 3vw, 30px);
  box-shadow: 8px 8px 0 var(--navy);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
}

.try-card--navy {
  background: var(--navy);
  color: #fff;
  box-shadow: 8px 8px 0 var(--crimson);
}

.try-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.try-badge {
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--paper-deep);
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.try-card--navy .try-badge { background: rgba(255, 255, 255, 0.12); color: var(--mint); }
.try-sub { font-size: 12.5px; font-weight: 600; color: var(--muted); }
.try-card--navy .try-sub { color: rgba(255, 255, 255, 0.65); }

.question-stage {
  min-height: 145px;
  display: flex;
  align-items: center;
  font-family: var(--display);
  font-size: clamp(1.2rem, 2.1vw, 1.55rem);
  font-weight: 700;
  line-height: 1.32;
}

.question-stage.is-swapping {
  animation: pop-in 0.35s var(--spring);
}

@keyframes pop-in {
  0% { opacity: 0; transform: translateY(10px) scale(0.98); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* True 3D Flip Flashcard */
.flip-scene {
  perspective: 1100px;
  width: 100%;
  min-height: 185px;
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0;
  text-align: left;
}

.flip-inner {
  position: relative;
  width: 100%;
  min-height: 185px;
  transform-style: preserve-3d;
  transition: transform 0.6s var(--spring);
}

.flip-scene.is-flipped .flip-inner {
  transform: rotateY(180deg);
}

.flip-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 20px;
  padding: 24px;
  display: grid;
  align-content: center;
  gap: 8px;
}

.flip-face--front {
  background: rgba(255, 255, 255, 0.07);
  border: 1.5px dashed rgba(255, 255, 255, 0.3);
}

.flip-face--back {
  background: var(--mint);
  color: var(--navy);
  border: 2px solid var(--mint-deep);
  transform: rotateY(180deg);
}

.flip-word {
  font-family: var(--display);
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  font-weight: 800;
  color: var(--mint);
  line-height: 1.15;
}

.flip-hint {
  font-size: 12.5px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
}

.flip-meaning {
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 800;
}

.flip-example {
  font-size: 14.5px;
  color: var(--navy-2);
  font-style: italic;
}

.try-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.timer-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1.5px solid var(--navy);
  background: var(--paper);
  font-family: var(--display);
  font-size: 12px;
  font-weight: 700;
}
.timer-pill.is-running { background: var(--crimson); color: #fff; border-color: var(--crimson); }

.flash-nav { display: inline-flex; align-items: center; gap: 8px; }
.circle-btn {
  width: 40px; height: 40px; border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.28);
  background: transparent; color: #fff; font-size: 16px;
  display: grid; place-items: center;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}
.circle-btn:hover { background: var(--mint); color: var(--navy); border-color: var(--mint); }
.flash-count { font-family: var(--display); font-size: 12px; font-weight: 700; color: rgba(255, 255, 255, 0.75); min-width: 56px; text-align: center; }

/* ---------- Dark Manifesto + Count-Up Stats ---------- */
.manifesto-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 32px;
  align-items: center;
  margin-bottom: 36px;
}

.manifesto-quote {
  font-family: var(--display);
  font-size: clamp(1.45rem, 2.8vw, 2.3rem);
  font-weight: 800;
  line-height: 1.18;
}

.manifesto-quote s { color: rgba(255, 255, 255, 0.4); }
.manifesto-quote mark {
  background: var(--mint);
  color: var(--navy);
  padding: 2px 10px;
  border-radius: 8px;
}

.club-photo-card {
  border-radius: var(--radius);
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.2);
  position: relative;
  aspect-ratio: 16 / 10;
}
.club-photo-card img { width: 100%; height: 100%; object-fit: cover; }
.club-photo-card figcaption {
  position: absolute;
  left: 14px; bottom: 14px;
  padding: 7px 13px;
  border-radius: 999px;
  background: rgba(14, 26, 51, 0.85);
  backdrop-filter: blur(8px);
  font-size: 12px;
  font-weight: 700;
  color: var(--mint);
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.stat-tile {
  background: rgba(255, 255, 255, 0.06);
  border: 1.5px solid rgba(255, 255, 255, 0.14);
  border-radius: 20px;
  padding: 22px;
}

.stat-tile strong {
  display: block;
  font-family: var(--display);
  font-size: clamp(2rem, 3.8vw, 3rem);
  font-weight: 800;
  color: var(--mint);
  line-height: 1;
}

.stat-tile span {
  display: block;
  margin-top: 8px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.78);
}

/* ---------- Saturday Flow + 4 Club Rules ---------- */
.flow-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  align-items: start;
}

.timeline { display: grid; gap: 14px; }

.timeline-step {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  background: var(--card);
  border: 1.5px solid var(--navy);
  border-radius: 20px;
  padding: 18px 20px;
  transition: transform 0.22s var(--spring), box-shadow 0.22s var(--ease);
}

.timeline-step:hover {
  transform: translateX(4px);
  box-shadow: 5px 5px 0 var(--navy);
}

.timeline-time {
  font-family: var(--display);
  font-size: 13px;
  font-weight: 800;
  color: var(--crimson);
  padding-top: 2px;
}

.timeline-step h3 { font-family: var(--display); font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.timeline-step p { font-size: 14.5px; color: var(--muted); }

.rules-card {
  background: var(--mint);
  color: var(--navy);
  border: 2px solid var(--navy);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: 8px 8px 0 var(--navy);
  display: grid;
  gap: 18px;
}

.rules-card h3 { font-family: var(--display); font-size: 22px; font-weight: 800; }
.rules-list { display: grid; gap: 12px; }
.rules-list li {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-weight: 700;
  font-size: 15px;
  padding-bottom: 10px;
  border-bottom: 1px dashed rgba(14, 26, 51, 0.25);
}
.rules-list li span { font-family: var(--display); font-size: 12px; color: var(--crimson); }

/* ---------- Schedule & Groups (Filterable) ---------- */
.filter-bar {
  display: inline-flex;
  gap: 6px;
  padding: 5px;
  border-radius: 999px;
  background: var(--card);
  border: 1.5px solid var(--navy);
}

.filter-btn {
  min-height: 38px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--muted);
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}

.filter-btn.is-active { background: var(--navy); color: var(--mint); }

.session-list { display: grid; gap: 16px; }

.session-row {
  display: grid;
  grid-template-columns: 90px minmax(0, 1.3fr) minmax(0, 0.8fr) auto;
  gap: 20px;
  align-items: center;
  background: var(--card);
  border: 2px solid var(--navy);
  border-radius: 22px;
  padding: 22px 24px;
  transition: transform 0.22s var(--spring), box-shadow 0.22s var(--ease);
}

.session-row:hover {
  transform: translateY(-3px);
  box-shadow: 7px 7px 0 var(--navy);
}

.session-row[hidden] { display: none; }

.session-date {
  text-align: center;
  padding: 10px;
  border-radius: 16px;
  background: var(--paper-deep);
  border: 1.5px solid var(--navy);
  line-height: 1;
}
.session-date strong { display: block; font-family: var(--display); font-size: 22px; font-weight: 800; }
.session-date span { display: block; font-size: 11px; font-weight: 800; text-transform: uppercase; color: var(--crimson); margin-top: 3px; }

.session-tags { display: flex; gap: 8px; margin-bottom: 6px; flex-wrap: wrap; }
.tag {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--paper-deep);
}
.tag--adults { background: var(--navy); color: var(--mint); }
.tag--kids { background: var(--crimson); color: #fff; }

.session-main h3 { font-family: var(--display); font-size: 18px; font-weight: 700; margin-bottom: 4px; }
.session-main p { font-size: 14.5px; color: var(--muted); }
.session-meta { font-size: 14px; font-weight: 700; display: grid; gap: 4px; color: var(--navy-2); }
.session-act { display: grid; gap: 8px; justify-items: end; }
.session-price { font-family: var(--display); font-size: 15px; font-weight: 800; }

/* Topic Suggestion Callout Strip */
.topic-callout {
  margin-top: 24px;
  background: var(--card);
  border: 2px dashed var(--navy);
  border-radius: 22px;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}
.topic-callout strong { font-family: var(--display); font-size: 16px; display: block; margin-bottom: 3px; }
.topic-callout span { font-size: 14.5px; color: var(--muted); }

/* ---------- FAQ + Direct Sign-Up Split ---------- */
.faq-join-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}

.faq-list { display: grid; gap: 12px; }

.faq-item {
  background: var(--card);
  border: 1.5px solid var(--navy);
  border-radius: 18px;
  overflow: hidden;
}

.faq-q {
  width: 100%;
  border: 0;
  background: none;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  text-align: left;
  font-family: var(--display);
  font-size: 14.5px;
  font-weight: 700;
}

.faq-q::after {
  content: "+";
  font-size: 22px;
  color: var(--crimson);
  flex: none;
  transition: transform 0.2s var(--ease);
}
.faq-item.is-open .faq-q::after { transform: rotate(45deg); }

.faq-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.28s var(--ease);
}
.faq-item.is-open .faq-a { grid-template-rows: 1fr; }
.faq-a > div { overflow: hidden; }
.faq-a p { padding: 0 20px 18px; font-size: 14.5px; color: var(--muted); }

/* Inline Signup Card */
.join-card {
  background: var(--card);
  border: 2px solid var(--navy);
  border-radius: var(--radius);
  padding: clamp(24px, 3.2vw, 32px);
  box-shadow: 10px 10px 0 var(--navy);
}

.join-card h3 { font-family: var(--display); font-size: 22px; font-weight: 800; margin-bottom: 6px; }
.join-card .join-sub { font-size: 14.5px; color: var(--muted); margin-bottom: 18px; }

.form-grid { display: grid; gap: 13px; }
.form-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.field { display: grid; gap: 5px; }
.field label { font-size: 12.5px; font-weight: 700; color: var(--navy); }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1.5px solid var(--line-strong);
  background: #fff;
  font-size: 15px;
}
.field textarea { min-height: 92px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--navy);
  outline: none;
  box-shadow: 0 0 0 3px rgba(199, 244, 100, 0.7);
}

.consent-row { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; color: var(--navy-2); }
.consent-row input { margin-top: 3px; width: 16px; height: 16px; accent-color: var(--crimson); }

.form-error { min-height: 18px; font-size: 13px; font-weight: 700; color: var(--bad); }
.form-error--ok { color: var(--ok); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  color: #fff;
  padding: 48px 0 36px;
  margin-top: 24px;
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.footer-links { display: flex; gap: 20px; flex-wrap: wrap; font-size: 14px; font-weight: 700; }
.footer-links a:hover { color: var(--mint); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 20px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.65);
}

/* ---------- Dialogs (Auth + Topic Suggestion) ---------- */
dialog.club-dialog {
  width: min(460px, calc(100% - 24px));
  padding: 0;
  border: 2px solid var(--navy);
  border-radius: 26px;
  background: var(--card);
  color: var(--navy);
  box-shadow: 12px 12px 0 var(--navy);
}
dialog.club-dialog::backdrop {
  background: rgba(14, 26, 51, 0.65);
  backdrop-filter: blur(6px);
}
.dialog-shell { padding: 28px; }
.dialog-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.dialog-eyebrow { font-size: 11px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--crimson); margin-bottom: 4px; }
.dialog-title { font-family: var(--display); font-size: 20px; font-weight: 800; }
.dialog-close {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1.5px solid var(--line-strong); background: var(--paper);
  font-size: 18px; display: grid; place-items: center;
}
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 5px; border-radius: 999px; background: var(--paper-deep); margin-bottom: 18px; }
.auth-tabs button { min-height: 38px; border: 0; border-radius: 999px; background: transparent; font-size: 13.5px; font-weight: 700; color: var(--muted); }
.auth-tabs button[aria-pressed="true"] { background: var(--navy); color: var(--mint); }
.auth-view { display: grid; gap: 13px; }
.auth-view[hidden] { display: none; }
.password-wrap { position: relative; }
.password-wrap input { padding-right: 44px; }
.password-toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; border: 0; background: transparent; font-size: 15px; }
.auth-switch { text-align: center; font-size: 13px; color: var(--muted); }
.auth-switch button { border: 0; background: none; color: var(--crimson); font-weight: 700; text-decoration: underline; padding: 0 4px; }
.dialog-aside { margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--line-strong); font-size: 12px; color: var(--muted); text-align: center; }

/* ---------- Recent Saturdays Real Photo & Topic Strip ---------- */
.past-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.past-card {
  background: var(--card);
  border: 1.5px solid var(--navy);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.24s var(--spring), box-shadow 0.24s var(--ease);
}

.past-card:hover {
  transform: translateY(-4px);
  box-shadow: 6px 6px 0 var(--navy);
}

.past-photo {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--paper-deep);
}

.past-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s var(--ease);
}

.past-card:hover .past-photo img {
  transform: scale(1.05);
}

.past-body {
  padding: 16px;
  display: grid;
  gap: 5px;
}

.past-date {
  font-family: var(--display);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--crimson);
}

.past-body h3 {
  font-family: var(--display);
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.25;
}

.past-body p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.4;
}

@media (max-width: 1020px) {
  .past-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

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

/* ---------- Scroll Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .hero-grid, .try-grid, .manifesto-grid, .flow-grid, .faq-join-grid { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .session-row { grid-template-columns: 78px minmax(0, 1fr); }
  .session-act { justify-items: start; grid-column: 1 / -1; }
}

@media (max-width: 820px) {
  .main-nav, .header-btn { display: none; }
  .menu-toggle { display: inline-flex; }
}

@media (max-width: 560px) {
  .form-2col, .live-meta { grid-template-columns: 1fr; }
  .rotating-badge { width: 82px; height: 82px; right: 4px; top: -18px; }
  .rotating-badge svg { width: 76px; height: 76px; }
  .timeline-step { grid-template-columns: 1fr; gap: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}
