/* =====================================================================
   YCC redesign: immersive, photo-first, app-like on phones. Black & red.
   ===================================================================== */
html, body { overflow-x: clip; }
.avatar.xs { width: 24px; height: 24px; font-size: .62rem; box-shadow: none; }

/* ---------- Liquid glass ----------
   Elements marked data-glass get a frosted fallback from CSS; when the glass script
   runs, the real refracting lens takes over (class lg-on). */
.glass, [data-glass="panel"] {
  background: linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.04));
  -webkit-backdrop-filter: blur(22px) saturate(170%); backdrop-filter: blur(22px) saturate(170%);
  border: 1px solid rgba(255,255,255,.12); border-radius: 22px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.16), 0 18px 40px rgba(0,0,0,.35);
}
.glass-root { display: contents; }
.lg { display: block; width: 100%; height: 100%; border-radius: inherit; }
.glass-content { display: contents; }
/* the lens now carries the padding, corners and tint */
[data-glass].lg-on { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; background: transparent !important; padding: 0 !important; border-color: transparent !important; }
.btn[data-glass].lg-on { overflow: visible; }
.btn[data-glass].lg-on .lg { display: flex; align-items: center; justify-content: center; gap: 8px; }

/* ---------- Full-bleed hero with moving footage ---------- */
.hero-x { position: relative; margin: -28px calc(50% - 50vw) 0; width: 100vw; min-height: min(92vh, 860px);
  display: flex; align-items: center; overflow: hidden; isolation: isolate; background: #050506; }
.hero-x-bg { position: absolute; inset: -40px; width: calc(100% + 80px); height: calc(100% + 80px); object-fit: cover;
  filter: blur(28px) saturate(150%) brightness(.55); transform: scale(1.1); z-index: -2; }
.hero-x-shade { position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(80% 70% at 20% 40%, rgba(5,5,6,.2), rgba(5,5,6,.85) 75%),
              linear-gradient(180deg, rgba(5,5,6,.1) 0%, rgba(5,5,6,.0) 50%, #08080a 100%); }
.hero-x-inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; padding-top: 70px; padding-bottom: 90px; width: 100%; }
.hero-x-copy { color: #fff; }
.hero-x-copy .eyebrow { color: #ff3b44; letter-spacing: .22em; }
.hero-x-title { font: 700 clamp(3.2rem, 9vw, 7.4rem)/.9 Oswald, Impact, sans-serif; letter-spacing: -.01em; margin: .15em 0 .25em; text-transform: uppercase; }
.hero-x-title span { display: inline-block; animation: rise .9s var(--ease, ease) both; }
.hero-x-title span:nth-child(2) { animation-delay: .08s; } .hero-x-title span:nth-child(3) { animation-delay: .16s; }
.hero-x-title .red { color: #ff2d36; text-shadow: 0 0 40px rgba(215,25,32,.55); }
@keyframes rise { from { opacity: 0; transform: translateY(40px) skewY(4deg); filter: blur(8px); } }
.hero-x-lead { font-size: clamp(1.05rem, 2.2vw, 1.3rem); color: #d4d6dc; max-width: 560px; margin: 0 0 30px; animation: rise 1s .25s var(--ease, ease) both; }
.hero-x-ctas { display: flex; gap: 12px; flex-wrap: wrap; animation: rise 1s .35s var(--ease, ease) both; }
.hero-x-ctas .btn.light { color: #fff; border-color: rgba(255,255,255,.35); background: rgba(255,255,255,.06); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.hero-x-proof { display: inline-flex; align-items: center; gap: 12px; margin-top: 30px; color: #e7e8ec !important; text-decoration: none; font-size: .92rem;
  padding: 8px 16px 8px 8px; border-radius: 999px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1); animation: rise 1s .45s var(--ease, ease) both; }
.faces { display: inline-flex; align-items: center; }
.faces .avatar { margin-left: -9px; box-shadow: 0 0 0 2px #0b0b0d; } .faces .avatar:first-child { margin-left: 0; }
.faces .more { margin-left: 6px; font-weight: 700; font-size: .85rem; }
.hero-x-phone { justify-self: center; width: min(300px, 100%); aspect-ratio: 9 / 19.5; border-radius: 46px; padding: 10px; background: #0d0d0f;
  box-shadow: 0 0 0 2px rgba(255,255,255,.1), 0 0 0 6px #1a1a1d, 0 40px 90px rgba(0,0,0,.7), 0 0 120px rgba(215,25,32,.45);
  transform: perspective(1400px) rotateY(-14deg) rotateX(4deg) rotateZ(2deg); animation: float 7s ease-in-out infinite; }
.hero-x-phone video { width: 100%; height: 100%; object-fit: cover; border-radius: 37px; display: block; }
@keyframes float { 50% { transform: perspective(1400px) rotateY(-8deg) rotateX(2deg) rotateZ(0deg) translateY(-14px); } }
.hero-x-scroll { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); color: #fff !important; text-decoration: none; width: 42px; height: 42px;
  display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(255,255,255,.25); animation: bob 2s ease-in-out infinite; }
@keyframes bob { 50% { transform: translate(-50%, 6px); } }
@media (max-width: 860px) {
  .hero-x { min-height: 88svh; align-items: flex-end; }
  .hero-x-inner { grid-template-columns: 1fr; padding-top: 40px; padding-bottom: 70px; }
  .hero-x-phone { display: none; }
  .hero-x-bg { filter: blur(6px) saturate(140%) brightness(.45); }
  .hero-x-ctas .btn { flex: 1 1 100%; text-align: center; }
  .hero-x-scroll { display: none; }
}

/* ---------- Sections ---------- */
.block { margin: 56px 0; }
.block-head { display: flex; justify-content: space-between; align-items: end; gap: 14px; margin-bottom: 16px; }
.block-head h2 { font-size: clamp(1.8rem, 4.5vw, 2.6rem); margin: 0; text-transform: uppercase; }
.see-all { font-weight: 700; text-decoration: none; white-space: nowrap; }

/* horizontal swipe rows */
.rail { display: grid; grid-auto-flow: column; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px 2px 18px;
  margin: 0 -16px; padding-left: 16px; padding-right: 16px; scrollbar-width: none; overscroll-behavior-x: contain; }
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; }

/* ---------- Talk cards (photo-first, like an event invite) ---------- */
.rail:has(.talk-card) { grid-auto-columns: min(420px, 84vw); }
.talk-card { position: relative; display: flex; align-items: flex-end; min-height: 440px; border-radius: 28px; overflow: hidden; isolation: isolate;
  text-decoration: none; color: #fff !important; background: radial-gradient(120% 90% at 70% 10%, #b3141b, #2a0607 55%, #0b0b0c);
  box-shadow: 0 24px 60px rgba(0,0,0,.45), 0 0 0 1px rgba(255,255,255,.07); transition: transform .6s var(--ease, ease), box-shadow .6s var(--ease, ease); }
.talk-card[style*="--img"]::before { content: ""; position: absolute; inset: 0; z-index: -2; background: var(--img) center 25% / cover; transition: transform 1.2s var(--ease, ease); }
.talk-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0,0,0,.05) 30%, rgba(0,0,0,.75) 100%); }
.talk-card:hover { transform: translateY(-6px); box-shadow: 0 34px 80px rgba(0,0,0,.6), 0 0 0 1px rgba(215,25,32,.5), 0 0 60px rgba(215,25,32,.25); }
.talk-card:hover::before { transform: scale(1.06); }
.talk-card-initials { position: absolute; inset: 0 0 40% 0; display: grid; place-items: center; font: 700 9rem/1 Oswald, sans-serif; color: rgba(255,255,255,.12); letter-spacing: -.02em; }
.talk-card-date { position: absolute; top: 16px; left: 16px; width: 62px; text-align: center; border-radius: 16px; overflow: hidden; background: #fff; color: #0b0b0c;
  box-shadow: 0 10px 24px rgba(0,0,0,.35); }
.talk-card-date small { display: block; background: #d71920; color: #fff; font: 700 .72rem Inter, sans-serif; letter-spacing: .12em; padding: 4px 0; text-transform: uppercase; }
.talk-card-date b { display: block; font: 700 1.9rem/1.2 Oswald, sans-serif; padding: 2px 0 4px; }
.talk-card-body { margin: 12px; padding: 16px 18px; width: calc(100% - 24px); }
.talk-card-body .eyebrow { color: #ff5a61; margin-bottom: 4px; }
.talk-card-body h3 { font-size: 1.45rem; line-height: 1.1; margin: 0 0 6px; text-transform: uppercase; }
.talk-card-by { margin: 0 0 12px; color: #e3e4e8; font-size: .92rem; }
.talk-card-going { display: flex; align-items: center; gap: 10px; font-size: .85rem; color: #cfd1d7; }
.talk-card.empty { min-height: 220px; align-items: center; }

/* ---------- Meet the coaches ---------- */
.faces-rail { grid-auto-columns: 200px; }
.face-card { position: relative; display: flex; align-items: flex-end; height: 270px; border-radius: 24px; overflow: hidden; isolation: isolate; text-decoration: none; color: #fff !important;
  background: linear-gradient(160deg, #2b2b30, #0f0f11); box-shadow: 0 14px 34px rgba(0,0,0,.35), 0 0 0 1px rgba(255,255,255,.06);
  transition: transform .5s var(--ease, ease), box-shadow .5s var(--ease, ease); }
.face-card[style*="--img"]::before { content: ""; position: absolute; inset: 0; z-index: -2; background: var(--img) center 20% / cover; transition: transform 1s var(--ease, ease); }
.face-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,.85)); }
.face-card:hover { transform: translateY(-6px) rotate(-1deg); box-shadow: 0 24px 50px rgba(0,0,0,.5), 0 0 0 1px rgba(215,25,32,.5); }
.face-card:hover::before { transform: scale(1.07); }
.face-initials { position: absolute; inset: 0 0 30% 0; display: grid; place-items: center; font: 700 4.4rem/1 Oswald, sans-serif; color: rgba(255,255,255,.22); }
.face-card.no-photo { background: radial-gradient(120% 80% at 30% 10%, #8a1016, #1a0405 60%, #0b0b0c); }
.face-info { padding: 14px; display: grid; gap: 2px; }
.face-info b { font: 700 1.15rem/1.1 Oswald, sans-serif; text-transform: uppercase; }
.face-info small { font-size: .74rem; color: #d7d8dd; letter-spacing: .03em; }
.join-card { border: 2px dashed rgba(255,59,68,.55); background: rgba(215,25,32,.06); }
.join-card .face-initials { color: #ff3b44; }

/* ---------- Feature strip ---------- */
.feature-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.feature { display: grid; gap: 4px; padding: 20px; border-radius: 22px; text-decoration: none; color: var(--text) !important; background: var(--card);
  border: 1px solid var(--line); box-shadow: var(--lift-1); transition: transform .5s var(--ease, ease), box-shadow .5s, border-color .3s; }
.feature:hover { transform: translateY(-5px); border-color: rgba(215,25,32,.45); box-shadow: var(--lift-2); }
.feature-icon { font-size: 1.6rem; width: 52px; height: 52px; display: grid; place-items: center; border-radius: 16px; background: linear-gradient(160deg, #e3222a, #7a0a0f); margin-bottom: 8px; box-shadow: 0 8px 20px rgba(215,25,32,.35); }
.feature b { font: 700 1.1rem Oswald, sans-serif; text-transform: uppercase; }
.feature small { color: var(--muted); }
@media (max-width: 860px) { .feature-strip { grid-template-columns: 1fr 1fr; } }

.speaker-row { text-decoration: none; color: inherit !important; }

/* ---------- Talk page: immersive invite ---------- */
.talk-page { position: relative; margin: -28px calc(50% - 50vw) 0; width: 100vw; padding-bottom: 40px; isolation: isolate; color: #fff; }
.talk-backdrop { position: absolute; inset: 0; z-index: -1; background: radial-gradient(90% 60% at 50% 0%, #7a0a0f, #0b0b0c 70%); }
.talk-page[style*="--talk-img"] .talk-backdrop { background: var(--talk-img) center / cover; filter: blur(60px) saturate(160%) brightness(.45); transform: scale(1.2); }
.talk-page[style*="--talk-img"] .talk-backdrop::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,8,10,.2), #08080a 85%); }
.talk-hero { position: relative; max-width: 980px; margin: 0 auto; min-height: 64vh; display: flex; align-items: flex-end; overflow: hidden; }
.talk-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 25%;
  -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent 100%); mask-image: linear-gradient(180deg, #000 55%, transparent 100%); animation: settle 1.4s var(--ease, ease) both; }
@keyframes settle { from { transform: scale(1.12); opacity: 0; } }
.talk-initials { position: absolute; inset: 0; display: grid; place-items: center; font: 700 clamp(9rem, 30vw, 18rem)/1 Oswald, sans-serif; color: rgba(255,255,255,.08); }
.talk-hero-text { position: relative; padding: 0 22px 22px; width: 100%; animation: rise 1s .15s var(--ease, ease) both; }
.talk-hero-text .eyebrow { color: #ff5a61; }
.talk-hero-text h1 { font: 700 clamp(2.6rem, 8vw, 5.2rem)/.92 Oswald, sans-serif; margin: .1em 0 .2em; text-transform: uppercase; text-shadow: 0 8px 40px rgba(0,0,0,.6); }
.talk-by { font-size: 1.1rem; color: #e6e7eb; margin: 0; }
.talk-body { max-width: 640px; margin: 0 auto; padding: 0 16px; display: grid; gap: 14px; }
.talk-body .glass { padding: 18px 20px; animation: rise .9s var(--ease, ease) both; }
.talk-body .glass:nth-child(2) { animation-delay: .08s; } .talk-body .glass:nth-child(3) { animation-delay: .16s; } .talk-body .glass:nth-child(4) { animation-delay: .24s; }
.talk-when { display: flex; align-items: center; gap: 16px; font-size: 1.1rem; }
.talk-when .date-chip.big { min-width: 64px; }
.talk-when .pill.past { margin-left: auto; }
.talk-going { display: grid; gap: 12px; }
.going-top { display: flex; justify-content: space-between; align-items: center; }
.going-count { background: rgba(34,197,94,.18); color: #6ee7a0; border-radius: 999px; padding: 3px 10px; font-size: .8rem; font-weight: 700; }
.talk-going .faces { flex-wrap: wrap; min-height: 36px; }
.talk-going .faces .avatar.sm { width: 38px; height: 38px; }
.going-btn { width: 100%; text-align: center; }
.talk-zoom { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.talk-zoom .zoom-url { text-transform: none; }
.talk-about .bio { color: #e3e4e8; margin: 0; }
.talk-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 6px; }
.talk-actions .btn-ghost { color: #fff; border-color: rgba(255,255,255,.3); background: rgba(255,255,255,.05); }
.talk-page .muted { color: #b9bcc4; }
.talk-page a:not(.btn) { color: #ff6b71; }
@media (min-width: 900px) { .talk-hero { min-height: 70vh; border-radius: 0 0 40px 40px; } }

/* light mode keeps the talk page dark, like a poster */
:root[data-theme=light] .talk-page { color: #fff; }

/* ---------- Bottom tab bar (phones) ---------- */
.tabbar { display: none; }
@media (max-width: 760px) {
  body { padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px)); }
  .tabbar { position: fixed; z-index: 60; left: 12px; right: 12px; bottom: calc(10px + env(safe-area-inset-bottom, 0px)); display: block; height: 66px;
    border-radius: 26px; background: rgba(16,16,18,.72); -webkit-backdrop-filter: blur(24px) saturate(180%); backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid rgba(255,255,255,.1); box-shadow: 0 18px 40px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.12); }
  .tabbar .lg, .tabbar .glass-content, .tabbar:not(.lg-on) { display: flex; }
  .tabbar .lg { align-items: stretch; height: 100%; }
  .tabbar a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; text-decoration: none; color: #a6a9b1 !important;
    font: 600 .66rem Inter, sans-serif; letter-spacing: .04em; border-radius: 20px; margin: 5px 2px; transition: color .2s, background-color .3s var(--ease, ease), transform .3s var(--spring, ease); }
  .tabbar a:active { transform: scale(.9); }
  .tabbar a.on { color: #fff !important; background: rgba(215,25,32,.9); box-shadow: 0 6px 16px rgba(215,25,32,.45); }
  .tabbar .ti { position: relative; font-size: 1.2rem; line-height: 1; height: 24px; display: grid; place-items: center; }
  .tab-badge { position: absolute; top: -6px; right: -12px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: #ff2d36; color: #fff; font: 700 .65rem/18px Inter, sans-serif; text-align: center; box-shadow: 0 0 0 2px #111; }
  .toasts { bottom: calc(92px + env(safe-area-inset-bottom, 0px)); top: auto; }
  .site-footer { padding-bottom: 10px; }
}

/* ---------- Member profile: photo cover ---------- */
.profile-cover { position: relative; margin: -28px calc(50% - 50vw) 0; width: 100vw; height: 260px; overflow: hidden; isolation: isolate;
  background: radial-gradient(90% 120% at 30% 0%, #8a1016, #0b0b0c 70%); }
.profile-cover[style*="--img"]::before { content: ""; position: absolute; inset: -40px; background: var(--img) center 25% / cover; filter: blur(40px) saturate(150%) brightness(.55); transform: scale(1.1); }
.profile-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, var(--bg)); }
.profile.card { margin-top: -150px; position: relative; }
.profile .avatar.xl { width: 180px; height: 180px; }
@media (max-width: 760px) { .profile-cover { height: 200px; } .profile.card { margin-top: -120px; } .profile .avatar.xl { width: 130px; height: 130px; } }

@media (prefers-reduced-motion: reduce) {
  .hero-x-title span, .hero-x-lead, .hero-x-ctas, .hero-x-proof, .talk-photo, .talk-hero-text, .talk-body .glass { animation: none; }
  .hero-x-phone, .hero-x-scroll { animation: none; }
}
@media (min-width: 761px) { .rail { -webkit-mask-image: linear-gradient(90deg, #000 90%, transparent); mask-image: linear-gradient(90deg, #000 90%, transparent); } }

/* Bottom bar scrolls sideways */
@media (max-width: 760px) {
  .tabbar { overflow: hidden; }
  .tabbar .lg, .tabbar:not(.lg-on) { overflow-x: auto; overflow-y: hidden; scroll-snap-type: x proximity; scrollbar-width: none; -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain; padding: 0 4px;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 18px, #000 calc(100% - 18px), transparent 100%);
            mask-image: linear-gradient(90deg, transparent 0, #000 18px, #000 calc(100% - 18px), transparent 100%); }
  .tabbar .lg::-webkit-scrollbar, .tabbar::-webkit-scrollbar { display: none; }
  .tabbar a { flex: 0 0 68px; scroll-snap-align: center; font-size: .64rem; }
}
