/* =====================================================================
   YCC polish layer: bold black & red, with depth and smooth motion.
   Loaded after style.css so it refines the base styles.
   ===================================================================== */
:root {
  --ease: cubic-bezier(.16, 1, .3, 1);          /* fast start, soft landing */
  --spring: cubic-bezier(.34, 1.56, .64, 1);    /* small overshoot */
  --radius: 18px;
  --bg: #e9e9ec;
  --card: #ffffff;
  --line: rgba(0, 0, 0, .07);
  --lift-1: 0 1px 1px rgba(0,0,0,.05), 0 2px 4px rgba(0,0,0,.05), 0 8px 18px rgba(0,0,0,.07);
  --lift-2: 0 2px 4px rgba(0,0,0,.06), 0 14px 28px rgba(0,0,0,.13), 0 32px 60px rgba(0,0,0,.12);
  --red-glow: 0 8px 24px rgba(215, 25, 32, .35);
  --sheen: inset 0 1px 0 rgba(255,255,255,.6);
}
[data-theme=dark] {
  --bg: #08080a;
  --card: #141417;
  --line: rgba(255, 255, 255, .07);
  --lift-1: 0 1px 0 rgba(255,255,255,.04) inset, 0 2px 6px rgba(0,0,0,.5), 0 10px 24px rgba(0,0,0,.45);
  --lift-2: 0 1px 0 rgba(255,255,255,.06) inset, 0 18px 40px rgba(0,0,0,.65), 0 0 0 1px rgba(215,25,32,.35), 0 10px 40px rgba(215,25,32,.18);
  --sheen: inset 0 1px 0 rgba(255,255,255,.06);
}

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body { letter-spacing: -.005em; }
[data-theme=dark] body { background:
  radial-gradient(1200px 600px at 85% -10%, rgba(215,25,32,.14), transparent 60%),
  radial-gradient(900px 500px at -10% 30%, rgba(215,25,32,.07), transparent 60%), var(--bg); background-attachment: fixed; }
h1 { font-size: clamp(2rem, 4.6vw, 3.1rem); letter-spacing: .005em; text-transform: uppercase; }
h2 { letter-spacing: .01em; }
::selection { background: #d71920; color: #fff; }

/* ---------- Header: smoked glass that firms up as you scroll ---------- */
.site-header, [data-theme=dark] .site-header {
  background: rgba(8, 8, 10, .9);
  -webkit-backdrop-filter: saturate(180%) blur(18px); backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid rgba(255,255,255,.06);
  transition: background-color .3s, box-shadow .3s;
  view-transition-name: site-header;
}
.site-header.scrolled { background: rgba(8, 8, 10, .96); box-shadow: 0 10px 30px rgba(0,0,0,.35); }
.site-header::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
  background: linear-gradient(90deg, transparent, #d71920 30%, #ff3b44 50%, #d71920 70%, transparent); opacity: .7; }
.links a { border-radius: 999px; padding: 8px 12px; transition: background-color .25s var(--ease), color .25s; }
.links a:hover, .links a.on { background: rgba(255,255,255,.1); }
.links a.on { box-shadow: inset 0 -2px 0 #ff3b44; }
.brand-logo { transition: transform .5s var(--spring); }
.brand:hover .brand-logo { transform: rotate(-8deg) scale(1.06); }

/* ---------- Cards: raised, with a lift on hover ---------- */
.card { border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--lift-1), var(--sheen); }
.job, .member, .video-card, .news-item, .price, .stat, .speaker-row {
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .3s;
  will-change: transform;
}
.job:hover, .member:hover, .video-card:hover, .news-item:hover, .price:hover {
  transform: translateY(-6px) scale(1.012); box-shadow: var(--lift-2); border-color: rgba(215,25,32,.35);
}
/* a soft red light follows the pointer across cards */
.spot { position: relative; overflow: hidden; isolation: isolate; }
.spot::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(215,25,32,.12), transparent 60%); }
[data-theme=dark] .spot::before { background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(255,59,68,.16), transparent 60%); }
.spot:hover::before { opacity: 1; }

/* ---------- Hero: deep black with a slow red glow ---------- */
.hero { border-radius: 26px; background: #070708; box-shadow: 0 30px 70px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.06); isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: -40%; z-index: 0; pointer-events: none;
  background: radial-gradient(40% 40% at 70% 40%, rgba(215,25,32,.55), transparent 70%),
              radial-gradient(30% 30% at 20% 80%, rgba(255,59,68,.25), transparent 70%);
  filter: blur(20px); animation: drift 16s ease-in-out infinite alternate; }
.hero::after { background: repeating-linear-gradient(-28deg, transparent 0 70px, rgba(255,255,255,.035) 70px 72px); z-index: 0; }
.hero h1 { font-size: clamp(2.2rem, 5.4vw, 3.8rem); line-height: 1.02; }
.hero .lead { color: #c3c6cd; }
@keyframes drift { from { transform: translate3d(-4%, -2%, 0) rotate(0deg); } to { transform: translate3d(5%, 4%, 0) rotate(8deg); } }

/* ---------- Buttons: solid, glossy, springy ---------- */
.btn { border-radius: 999px; padding: 11px 22px; font-weight: 700; letter-spacing: .01em;
  transition: transform .35s var(--spring), box-shadow .3s var(--ease), background-color .2s, border-color .2s, color .2s; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.96); transition-duration: .1s; }
.btn-gold { background: linear-gradient(180deg, #ef2a32, #c8141b); border-color: #c8141b;
  box-shadow: 0 1px 0 rgba(255,255,255,.25) inset, 0 6px 16px rgba(215,25,32,.3); }
.btn-gold:hover { background: linear-gradient(180deg, #ff3b44, #d71920); box-shadow: 0 1px 0 rgba(255,255,255,.3) inset, var(--red-glow); }
.btn:not(.btn-gold):not(.btn-ghost) { background: linear-gradient(180deg, #2a2a2e, #111113); border-color: #111113; box-shadow: 0 1px 0 rgba(255,255,255,.12) inset, 0 6px 16px rgba(0,0,0,.25); }
.btn-ghost { border-width: 1.5px; }
.btn-ghost:hover { box-shadow: 0 8px 20px rgba(0,0,0,.12); }
.btn.sm { padding: 7px 14px; } .btn.big { padding: 15px 30px; }

/* ---------- Forms ---------- */
input, select, textarea { border-radius: 12px; transition: border-color .2s, box-shadow .25s var(--ease), background-color .2s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: #d71920; box-shadow: 0 0 0 4px rgba(215,25,32,.18); }

/* ---------- Pills, tabs, chips ---------- */
.tabs { background: rgba(127,127,127,.12); padding: 4px; border-radius: 999px; display: inline-flex; gap: 2px; }
.tabs a { border: 0; transition: background-color .3s var(--ease), color .3s, box-shadow .3s; }
.tabs a.on { background: #111; color: #fff; box-shadow: 0 4px 12px rgba(0,0,0,.25); }
[data-theme=dark] .tabs a.on { background: #d71920; }
.date-chip { background: linear-gradient(180deg, #222, #0b0b0c); box-shadow: 0 6px 14px rgba(0,0,0,.25), inset 0 1px 0 rgba(255,255,255,.08); border-radius: 12px; }
.evt { transition: transform .3s var(--spring), background-color .2s; }
.evt:hover { transform: scale(1.05); background: #d71920; }
.day { transition: background-color .25s, transform .3s var(--ease); border-radius: 10px; }
.day.has:hover { transform: translateY(-2px); }

/* ---------- Pricing ---------- */
.price.featured { border: 0; background: linear-gradient(var(--card), var(--card)) padding-box, linear-gradient(160deg, #ff3b44, #7a0a0f) border-box; border: 2px solid transparent; box-shadow: var(--lift-2); }
.amount { letter-spacing: -.01em; }
.plan-tag { box-shadow: var(--red-glow); }

/* ---------- Video & media ---------- */
.video-card .thumb { transition: transform .7s var(--ease), filter .3s; }
.video-card:hover .thumb { transform: scale(1.04); }
.player, .tour { box-shadow: 0 30px 60px rgba(0,0,0,.35), 0 0 0 1px rgba(255,255,255,.06); }
.avatar { box-shadow: 0 6px 16px rgba(0,0,0,.2), 0 0 0 3px var(--card), 0 0 0 5px rgba(215,25,32,.65); }

/* ---------- Notices & flashes ---------- */
.notice-card { border-radius: 16px; box-shadow: var(--lift-1); }
.flash { border-radius: 14px; box-shadow: var(--lift-1); animation: drop .6s var(--ease) both; }
@keyframes drop { from { opacity: 0; transform: translateY(-12px) scale(.98); } }

/* ---------- Pop-ups: scale in over a blurred page ---------- */
.modal { border-radius: 24px; box-shadow: 0 40px 100px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.06); }
.modal[open] { animation: modal-in .5s var(--spring) both; }
.modal::backdrop { background: rgba(0,0,0,.5); -webkit-backdrop-filter: blur(10px) saturate(140%); backdrop-filter: blur(10px) saturate(140%); animation: fade-in .3s ease both; }
@keyframes modal-in { from { opacity: 0; transform: translateY(18px) scale(.94); } }
@keyframes fade-in { from { opacity: 0; } }

/* ---------- Toasts: dark glass ---------- */
.toast-pop, [data-theme=dark] .toast-pop { background: rgba(18,18,20,.82); -webkit-backdrop-filter: blur(16px) saturate(160%); backdrop-filter: blur(16px) saturate(160%);
  border: 1px solid rgba(255,255,255,.08); border-radius: 16px; box-shadow: 0 20px 50px rgba(0,0,0,.4);
  transform: translateY(-10px) scale(.96); transition: opacity .45s var(--ease), transform .55s var(--spring); }

/* ---------- Scroll reveal: rise, sharpen and fade in ---------- */
.reveal { opacity: 0; transform: translateY(28px) scale(.985); filter: blur(6px);
  transition: opacity .9s var(--ease), transform .9s var(--ease), filter .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; filter: none; }

/* ---------- Footer ---------- */
.site-footer, [data-theme=dark] .site-footer { background: #050506; border-top: 1px solid rgba(255,255,255,.06); position: relative; }
.site-footer::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 2px; background: linear-gradient(90deg, transparent, #d71920, transparent); opacity: .6; }

/* ---------- Smooth page-to-page transitions (Chrome, Edge, Safari 18+) ---------- */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out .28s cubic-bezier(.4, 0, 1, 1) both; }
::view-transition-new(root) { animation: vt-in .5s var(--ease) both; }
@keyframes vt-out { to { opacity: 0; transform: scale(.985); filter: blur(4px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(14px) scale(1.01); filter: blur(4px); } }

/* ---------- Nav: one line on wide screens; the Menu button takes over sooner ---------- */
.links a { white-space: nowrap; }
@media (max-width: 1280px) {
  .menu-btn { display: block; margin-left: auto; cursor: pointer; padding: 8px 14px; border: 1px solid rgba(255,255,255,.3); border-radius: 999px; }
  .links { display: none; flex-basis: 100%; flex-direction: column; align-items: stretch; padding-bottom: 12px; }
  .links a { border-radius: 12px; }
  .menu-toggle:checked ~ .links { display: flex; }
  .spacer { display: none; }
}

/* ---------- Mobile menu slides open ---------- */
@media (max-width: 1280px) {
  .menu-toggle:checked ~ .links { animation: menu-in .45s var(--ease) both; }
  @keyframes menu-in { from { opacity: 0; transform: translateY(-8px); } }
}

@media (prefers-reduced-motion: reduce) {
  .hero::before { animation: none; }
  .reveal { filter: none; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
  .job:hover, .member:hover, .video-card:hover, .news-item:hover, .price:hover, .btn:hover { transform: none; }
}
.linkbtn { white-space: nowrap; }
.site-header .wrap { max-width: 1320px; }
.links { gap: 2px; }
.links a, .links .linkbtn { padding: 7px 11px; font-size: .9rem; }
.nav { flex-wrap: nowrap; }
@media (max-width: 1280px) { .nav { flex-wrap: wrap; } }

/* Bios read as written (normal sentences), even though the rest of the site is in capitals */
.bio { text-transform: none; letter-spacing: 0; }

/* Job titles in capital letters: job postings, member titles and speaker titles */
.job h3, .member-title, .profile-title, .job-title, #ev-title { text-transform: uppercase; letter-spacing: .03em; }

/* Names in capital letters: members, profiles, speakers, chat and video creators */
.member h3, .speakers b, #ev-name, .evt, .convo span, .chat-head b, .bubble .meta b, .byline b { text-transform: uppercase; letter-spacing: .03em; }

/* Schools / employers in capital letters */
.school { text-transform: uppercase; letter-spacing: .03em; }

/* Everything in capital letters (what people type in boxes stays as typed; emails and web links keep their case) */
body, button { text-transform: uppercase; }
input, textarea, select, [contenteditable], a[href^="mailto:"], #ev-zoom-url, .ref-share input, .bio { text-transform: none; }

.edit-event { flex-basis: 100%; } .edit-event summary { cursor: pointer; display: inline-block; } .edit-event[open] summary { margin-bottom: 10px; }
.event-li { flex-wrap: wrap; }
