/* ============================================================
   NYC Tech Toastmasters: styles  (MOBILE-FIRST)
   Base rules target small screens; min-width media queries
   progressively enhance for tablet and desktop.
   Palette inspired by Toastmasters International brand:
   Loyal Blue #004165 · True Maroon #772432 · Happy Yellow #F2DF74
   ============================================================ */

:root {
  --bg:        #060a14;
  --bg-2:      #0b1120;
  --ink:       #eef2f8;
  --muted:     #9aa6bd;
  --line:      rgba(255, 255, 255, 0.09);
  --blue:      #2f7fb3;
  --blue-deep: #004165;
  --maroon:    #a13a4b;
  --gold:      #f2df74;
  --card:      rgba(255, 255, 255, 0.035);
  --card-hover:rgba(255, 255, 255, 0.06);
  --radius:    18px;
  --maxw:      1120px;
  --font-head: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  background:
    radial-gradient(1200px 600px at 70% -10%, rgba(47,127,179,0.18), transparent 60%),
    radial-gradient(900px 500px at 10% 20%, rgba(161,58,75,0.16), transparent 55%),
    linear-gradient(180deg, var(--bg), var(--bg-2));
}

#bg-canvas {
  position: fixed;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  display: block;
}

a { color: inherit; text-decoration: none; }

/* ---------- Buttons ---------- */
.btn {
  -webkit-appearance: none;
  appearance: none;
  --pad-y: 0.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: var(--pad-y) 1.6rem;
  min-height: 44px; /* comfortable touch target */
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.01em;
  color: #06121c;
  background: linear-gradient(135deg, var(--gold), #ffcf5c);
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  box-shadow: 0 10px 30px -12px rgba(242, 223, 116, 0.6);
}
a, button { -webkit-tap-highlight-color: transparent; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -14px rgba(242, 223, 116, 0.8); }
.btn--ghost {
  color: var(--ink);
  background: transparent;
  border-color: var(--line);
  box-shadow: none;
}
.btn--ghost:hover { background: var(--card-hover); border-color: rgba(255,255,255,0.25); }
.btn--sm { --pad-y: 0.6rem; padding: 0.6rem 1.15rem; min-height: 40px; font-size: 0.9rem; }

/* Rainbow-glow button (Sign Up) */
.btn--rainbow {
  position: relative;
  z-index: 0;
  color: #fff;
  background: #0b1020;
  border-color: transparent;
  box-shadow: none;
}
.btn--rainbow::before {
  content: "";
  position: absolute;
  inset: -2px;
  z-index: -1;
  border-radius: 999px;
  background: linear-gradient(90deg, #ff0040, #ff8a00, #ffe600, #33ff66, #00e0ff, #6a5cff, #ff00c8, #ff0040);
  background-size: 300% 100%;
  filter: blur(7px);
  opacity: 0.85;
  animation: rainbow-shift 6s linear infinite;
  /* Safari doesn't reliably clip a blurred layer to border-radius, which
     can leave a faint rectangular ghost behind the rounded glow. Forcing
     the mask compositing path fixes it. */
  -webkit-mask-image: -webkit-radial-gradient(white, black);
  mask-image: radial-gradient(white, black);
}
.btn--rainbow::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: 999px;
  background: linear-gradient(90deg, #ff0040, #ff8a00, #ffe600, #33ff66, #00e0ff, #6a5cff, #ff00c8, #ff0040);
  background-size: 300% 100%;
  animation: rainbow-shift 6s linear infinite;
}
.btn--rainbow:hover { transform: translateY(-2px); }
.btn--rainbow:hover::before { opacity: 1; filter: blur(11px); }
@keyframes rainbow-shift { to { background-position: 300% 0; } }
@media (prefers-reduced-motion: reduce) {
  .btn--rainbow::before, .btn--rainbow::after { animation: none; }
}

/* ---------- Nav (mobile drawer by default) ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.25rem;
  transition: background 0.3s ease, backdrop-filter 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(6, 10, 20, 0.72);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.nav__brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 500;
}
.nav__brand strong { font-weight: 700; }
.nav__logo { color: var(--gold); font-size: 1.1rem; }

.nav__links {
  position: fixed;
  top: 0; right: 0;
  height: 100svh;
  width: min(80vw, 320px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.8rem;
  background: rgba(8, 12, 22, 0.96);
  backdrop-filter: blur(18px);
  border-left: 1px solid var(--line);
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.5, 0, 0.2, 1);
}
.nav__links.is-open { transform: none; }
.nav__links a { font-size: 1.25rem; color: var(--muted); transition: color 0.2s ease; }
.nav__links a:hover { color: var(--ink); }
.nav__links a.btn { color: #06121c; }

.nav__toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
  z-index: 101;
}
.nav__toggle span {
  width: 26px; height: 2px;
  background: var(--ink);
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav__toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle.is-open span:nth-child(2) { opacity: 0; }
.nav__toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 6rem 1.25rem 4rem;
  max-width: var(--maxw);
  margin: 0 auto;
}
.hero__eyebrow {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 0.8rem;
  color: var(--gold);
  margin-bottom: 1rem;
}
.hero__title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(2.6rem, 12vw, 6rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
}
.grad {
  background: linear-gradient(100deg, var(--gold) 0%, var(--blue) 40%, var(--maroon) 70%, var(--gold) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradslide 8s linear infinite;
}
@keyframes gradslide { to { background-position: 200% center; } }
.scramble-char { opacity: 0.9; }
.caret { color: var(--gold); font-weight: 300; animation: blink 1.05s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.hero__lede {
  max-width: 40ch;
  margin-top: 1.4rem;
  font-size: clamp(1.05rem, 4.5vw, 1.3rem);
  color: var(--muted);
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2rem; }
.hero__cta .btn { flex: 1 1 auto; }
.hero__scroll { display: none; }
.hero__scroll-line {
  width: 1px; height: 46px;
  background: linear-gradient(var(--gold), transparent);
  animation: scrolldrop 1.8s ease-in-out infinite;
}
@keyframes scrolldrop { 0%,100% { opacity: 0.3; transform: scaleY(0.6); } 50% { opacity: 1; transform: scaleY(1); } }

/* ---------- Sections ---------- */
.section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(2.5rem, 8vw, 5rem) 1.25rem;
}
.section__head { margin-bottom: 2.2rem; max-width: 42rem; }
.kicker {
  display: inline-block;
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.26em;
  font-size: 0.74rem;
  color: var(--gold);
  margin-bottom: 0.9rem;
}
.section__head h2 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(1.7rem, 7vw, 3rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
}
.section__sub { margin-top: 1rem; color: var(--muted); font-size: 1rem; }
.prose { max-width: 60ch; font-size: clamp(1.02rem, 4.5vw, 1.25rem); color: #cdd6e6; }
.prose strong { color: var(--ink); }
.prose--note {
  margin-top: 1.4rem;
  font-size: 1rem;
  color: var(--muted);
  border-left: 3px solid var(--gold);
  padding: 0.6rem 0 0.6rem 1rem;
}
.prose--note strong { color: var(--gold); }
.section__cta { margin-top: 2.4rem; }

/* ---------- Cards ---------- */
/* ---------- FAQ ---------- */
.faq { display: flex; flex-direction: column; gap: 0.8rem; max-width: 52rem; }
.faq__item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color 0.3s ease, background 0.3s ease;
}
.faq__item[open] { border-color: rgba(242, 223, 116, 0.35); background: var(--card-hover); }
.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.25rem;
  cursor: pointer;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 1.02rem;
  list-style: none;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__mark { position: relative; width: 18px; height: 18px; flex: none; }
.faq__mark::before, .faq__mark::after {
  content: "";
  position: absolute;
  background: var(--gold);
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.faq__mark::before { top: 8px; left: 0; width: 18px; height: 2px; }
.faq__mark::after  { top: 0; left: 8px; width: 2px; height: 18px; }
.faq__item[open] .faq__mark::after { transform: scaleY(0); opacity: 0; }
.faq__body { padding: 0 1.25rem 1.3rem; color: var(--muted); animation: fadeIn 0.35s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* ---------- Gallery (masonry: full images, no cropping) ---------- */
.gallery {
  column-count: 2;
  column-gap: 0.7rem;
}
.gallery__item {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--card);
  break-inside: avoid;
  margin-bottom: 0.7rem;
}
.gallery__item img {
  width: 100%;
  height: auto;              /* preserve full aspect ratio */
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1), filter 0.4s ease;
  filter: saturate(0.92);
}
.gallery__item:hover img { transform: scale(1.03); filter: saturate(1.1); }
.gallery__item::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(6,10,20,0.5));
  opacity: 0;
  transition: opacity 0.4s ease;
}
.gallery__item:hover::after { opacity: 1; }

/* ---------- Events / Calendar ---------- */
.events { display: grid; grid-template-columns: 1fr; gap: 1.6rem; align-items: start; }
.events__calendar {
  padding: 1.25rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  backdrop-filter: blur(6px);
}
.cal__nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}
.cal__btn {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.cal__btn:hover { background: var(--card-hover); border-color: rgba(242,223,116,0.4); transform: translateY(-1px); }
.cal__btn:active { transform: translateY(0); }
.cal__label { font-family: var(--font-head); font-weight: 600; font-size: 1.05rem; }
.cal { display: block; }
.cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal__dow {
  text-align: center;
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  padding-bottom: 4px;
}
.cal__day {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  font-size: 0.9rem;
  color: #c3ccdd;
  border-radius: 8px;
  border: 1px solid transparent;
}
.cal__day--empty { color: transparent; }
.cal__day--today { border-color: var(--line); color: var(--ink); font-weight: 600; }
.cal__day--meeting {
  background: linear-gradient(135deg, rgba(242,223,116,0.16), rgba(161,58,75,0.16));
  border-color: rgba(242,223,116,0.4);
  color: var(--ink);
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}
.cal__day--meeting:hover { transform: translateY(-2px); background: linear-gradient(135deg, rgba(242,223,116,0.3), rgba(161,58,75,0.3)); }
.cal__legend { display: flex; align-items: center; gap: 0.5rem; margin-top: 1.2rem; font-size: 0.8rem; color: var(--muted); }
.cal__dot {
  width: 12px; height: 12px; border-radius: 4px;
  background: linear-gradient(135deg, rgba(242,223,116,0.6), rgba(161,58,75,0.6));
  border: 1px solid rgba(242,223,116,0.5);
}
.events__list-title { font-family: var(--font-head); font-weight: 600; font-size: 1.05rem; margin-bottom: 1rem; }
.events__items { list-style: none; display: flex; flex-direction: column; gap: 0.7rem; }
.event {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}
.event:hover { border-color: rgba(242,223,116,0.35); background: var(--card-hover); }
.event__date {
  flex: none;
  width: 56px;
  text-align: center;
  border-radius: 10px;
  padding: 0.4rem 0;
  background: linear-gradient(135deg, rgba(47,127,179,0.22), rgba(161,58,75,0.22));
  border: 1px solid var(--line);
}
.event__mon { display: block; font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--gold); }
.event__day { display: block; font-family: var(--font-head); font-size: 1.3rem; font-weight: 700; line-height: 1; }
.event__info { flex: 1; min-width: 0; }
.event__title { display: block; font-family: var(--font-head); font-weight: 500; font-size: 0.98rem; }
.event__meta { display: block; font-size: 0.83rem; color: var(--muted); }
.event__cta {
  flex: none;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  color: #06121c;
  background: linear-gradient(135deg, var(--gold), #ffcf5c);
  transition: transform 0.2s ease;
}
.event__cta:hover { transform: scale(1.05); }
.events__all { margin-top: 1.3rem; }
.events__empty { color: var(--muted); padding: 1rem 0; }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 1fr; gap: 1.8rem; align-items: start; }
.contact__info { display: flex; flex-direction: column; gap: 1.5rem; align-self: start; }
.contact__row { display: flex; flex-direction: column; gap: 0.3rem; }
.contact__label {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  color: var(--gold);
}
.contact__row a { font-size: 1.02rem; color: var(--ink); transition: color 0.2s ease; word-break: break-word; }
.contact__row a:hover { color: var(--gold); }

/* .field / .form-note below are shared with the check-in page (checkin/index.html) */
.field { margin-bottom: 1rem; }
.field label { display: block; font-size: 0.85rem; color: var(--muted); margin-bottom: 0.4rem; }
.field input, .field textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem; /* >=16px avoids iOS zoom-on-focus */
  transition: border-color 0.2s ease, background 0.2s ease;
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(255,255,255,0.06);
}
.form-note { margin-top: 1rem; font-size: 0.9rem; color: var(--gold); min-height: 1.2em; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); }
.footer__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 1.8rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  font-size: 0.88rem;
  color: var(--muted);
}
.footer__social {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted);
  transition: color 0.2s ease;
}
.footer__social:hover { color: var(--gold); }
[data-theme="light"] .footer__social:hover { color: var(--maroon); }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ============================================================
   Progressive enhancement for larger screens
   ============================================================ */

/* Small tablets / large phones */
@media (min-width: 560px) {
  .hero__cta .btn { flex: 0 0 auto; }
  .gallery { column-count: 3; column-gap: 1rem; }
  .gallery__item { margin-bottom: 1rem; }
  .footer__inner { flex-direction: row; justify-content: space-between; flex-wrap: wrap; }
}

/* Tablets: switch nav to horizontal, show scroll cue */
@media (min-width: 820px) {
  .nav { padding: 1.1rem clamp(1.5rem, 4vw, 3rem); }
  .nav__brand { font-size: 1.05rem; }
  .nav__toggle { display: none; }
  .nav__links {
    position: static;
    height: auto;
    width: auto;
    flex-direction: row;
    justify-content: flex-end;
    gap: 1.7rem;
    background: none;
    backdrop-filter: none;
    border-left: 0;
    transform: none;
  }
  .nav__links a { font-size: 0.95rem; }

  .section { padding: clamp(3rem, 6vw, 5.5rem) clamp(1.5rem, 4vw, 3rem); }
  .hero { padding: 7rem clamp(1.5rem, 4vw, 3rem) 4rem; }
  .hero__scroll {
    display: flex;
    position: absolute;
    bottom: 2rem; left: 50%;
    transform: translateX(-50%);
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-head);
    font-size: 0.72rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--muted);
  }

  .contact { grid-template-columns: 1fr; gap: 2.5rem; max-width: 40rem; }
  .footer__inner { padding: 2rem clamp(1.5rem, 4vw, 3rem); }
}

/* Small desktops: two-column events, sticky calendar */
@media (min-width: 900px) {
  .events { grid-template-columns: 0.9fr 1.1fr; gap: 2.5rem; }
  .events__calendar { position: sticky; top: 90px; padding: 1.5rem; }
}

/* Desktop: richer gallery mosaic */
@media (min-width: 1024px) {
  .gallery { column-count: 4; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .caret, .hero__scroll-line { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ============================================================
   Interactive effects & light theme
   ============================================================ */

/* ---------- Light theme ---------- */
[data-theme="light"] {
  --bg:        #eef2f8;
  --bg-2:      #dde5f0;
  --ink:       #0d1526;
  --muted:     #4a5670;
  --line:      rgba(10, 20, 40, 0.12);
  --card:      rgba(10, 20, 40, 0.04);
  --card-hover:rgba(10, 20, 40, 0.07);
}
[data-theme="light"] .nav,
[data-theme="light"] .nav.is-scrolled {
  background: transparent !important;
  backdrop-filter: none !important;
  border-bottom-color: transparent !important;
}
/* keep the mobile drawer readable when the menu is open */
[data-theme="light"] .nav__links { background: rgba(222, 229, 240, 0.97); }
@media (min-width: 820px) {
  [data-theme="light"] .nav__links { background: transparent; }
}
/* Flatter, more uniform backdrop in light mode so the transparent nav
   never reads as a band across the top. */
[data-theme="light"] body::before {
  background:
    radial-gradient(1000px 500px at 70% -10%, rgba(47,127,179,0.08), transparent 60%),
    radial-gradient(800px 460px at 10% 20%, rgba(161,58,75,0.06), transparent 55%),
    linear-gradient(180deg, var(--bg), var(--bg-2));
}
[data-theme="light"] .aurora::before,
[data-theme="light"] .aurora::after { opacity: 0.2; }

[data-theme="light"] .prose--note { border-left-color: var(--maroon); }
[data-theme="light"] .prose--note strong { color: var(--maroon); }

/* Gold accent text is unreadable on the light background: darken it. */
[data-theme="light"] .hero__eyebrow,
[data-theme="light"] .kicker,
[data-theme="light"] .contact__label,
[data-theme="light"] .form-note { color: var(--maroon); }
[data-theme="light"] .caret { color: var(--maroon); }
[data-theme="light"] .nav__logo { color: var(--maroon); }
[data-theme="light"] .prose { color: #26324a; }
[data-theme="light"] .cal__day { color: #33405c; }
[data-theme="light"] .field input,
[data-theme="light"] .field textarea { background: rgba(10, 20, 40, 0.04); }
[data-theme="light"] .field input:focus,
[data-theme="light"] .field textarea:focus { background: rgba(10, 20, 40, 0.07); }
[data-theme="light"] .field select { background: rgba(10, 20, 40, 0.04); }
[data-theme="light"] .segmented__btn.is-active { color: var(--maroon); border-color: var(--maroon); }

/* ---------- Aurora gradient mesh ---------- */
.aurora {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  overflow: hidden;
}
.aurora::before, .aurora::after {
  content: "";
  position: absolute;
  width: 60vmax; height: 60vmax;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.45;
  will-change: transform;
}
.aurora::before {
  top: -12%; left: -10%;
  background: radial-gradient(circle at center, rgba(47,127,179,0.6), transparent 60%);
  animation: blob1 20s ease-in-out infinite alternate;
}
.aurora::after {
  bottom: -15%; right: -10%;
  background: radial-gradient(circle at center, rgba(161,58,75,0.55), transparent 60%);
  animation: blob2 26s ease-in-out infinite alternate;
}
@keyframes blob1 { to { transform: translate(22vw, 16vh) scale(1.25); } }
@keyframes blob2 { to { transform: translate(-20vw, -12vh) scale(1.18); } }

/* ---------- Confetti ---------- */
.confetti-canvas {
  position: fixed;
  inset: 0;
  z-index: 2000;
  pointer-events: none;
}

/* ---------- Fireworks (meeting check-in) ---------- */
.fireworks-canvas {
  position: fixed;
  inset: 0;
  z-index: 2000;
  pointer-events: none;
}

/* ---------- Custom cursor ---------- */
.cursor-dot, .cursor-ring { position: fixed; top: 0; left: 0; pointer-events: none; z-index: 9999; }
.cursor-dot {
  width: 8px; height: 8px; margin: -4px 0 0 -4px;
  background: var(--gold); border-radius: 50%;
  mix-blend-mode: difference;
}
.cursor-ring {
  width: 34px; height: 34px; margin: -17px 0 0 -17px;
  border: 1.5px solid rgba(242, 223, 116, 0.6);
  border-radius: 50%;
  z-index: 9998;
  transition: width 0.22s ease, height 0.22s ease, margin 0.22s ease, background 0.22s ease, border-color 0.22s ease;
}
body.cursor-hover .cursor-ring {
  width: 56px; height: 56px; margin: -28px 0 0 -28px;
  background: rgba(242, 223, 116, 0.08);
  border-color: var(--gold);
}
body.cursor-down .cursor-ring { width: 24px; height: 24px; margin: -12px 0 0 -12px; }
.has-cursor, .has-cursor a, .has-cursor button, .has-cursor summary, .has-cursor .gallery__item img { cursor: none; }

/* ---------- Theme toggle ---------- */
.theme-toggle {
  position: relative;
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  display: grid; place-items: center;
  cursor: pointer;
  margin-left: 0.4rem;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.theme-toggle:hover { border-color: rgba(242,223,116,0.5); background: var(--card-hover); }
.theme-toggle__icon {
  position: absolute;
  font-size: 1.1rem; line-height: 1;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
[data-theme="dark"]  .theme-toggle__sun  { opacity: 0; transform: rotate(-90deg) scale(0.4); }
[data-theme="dark"]  .theme-toggle__moon { opacity: 1; color: var(--gold); }
[data-theme="light"] .theme-toggle__moon { opacity: 0; transform: rotate(90deg) scale(0.4); }
[data-theme="light"] .theme-toggle__sun  { opacity: 1; color: #c8860b; }

/* ---------- 3D tilt (gallery items; see effects.js "3D TILT" block) ---------- */
.tilt { transition: transform 0.18s ease; transform-style: preserve-3d; will-change: transform; }

/* ---------- Marquee ribbon ---------- */
.marquee {
  overflow: hidden;
  padding: 1.4rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track {
  display: flex;
  gap: 1rem;
  width: max-content;
  animation: marquee 45s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track img {
  height: 130px; width: auto;
  border-radius: 12px;
  object-fit: cover;
  filter: saturate(0.9);
  border: 1px solid var(--line);
}
@keyframes marquee { to { transform: translateX(-50%); } }
@media (min-width: 820px) { .marquee__track img { height: 170px; } }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0;
  z-index: 1000;
  display: none;
  align-items: center; justify-content: center;
  padding: 5vh 5vw;
  background: rgba(3, 6, 12, 0.9);
  backdrop-filter: blur(8px);
  animation: fadeIn 0.25s ease;
}
.lightbox.is-open { display: flex; }
.lightbox__stage { display: flex; flex-direction: column; align-items: center; gap: 0.8rem; }
.lightbox__img {
  max-width: 88vw; max-height: 80vh;
  border-radius: 12px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.6);
}
.lightbox__cap { color: #cdd6e6; font-size: 0.9rem; text-align: center; max-width: 60ch; }
.lightbox__close, .lightbox__nav {
  position: absolute;
  display: grid; place-items: center;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
.lightbox__close:hover, .lightbox__nav:hover { background: rgba(255, 255, 255, 0.18); }
.lightbox__close { top: 18px; right: 20px; width: 46px; height: 46px; font-size: 1.8rem; }
.lightbox__nav { top: 50%; transform: translateY(-50%); width: 52px; height: 52px; font-size: 1.9rem; }
.lightbox__prev { left: 16px; }
.lightbox__next { right: 16px; }
@media (max-width: 640px) {
  .lightbox__nav { width: 44px; height: 44px; }
  .lightbox__prev { left: 8px; } .lightbox__next { right: 8px; }
}

/* ---------- Reduced motion: disable the flashy stuff ---------- */
@media (prefers-reduced-motion: reduce) {
  .grad { animation: none; }
  .aurora::before, .aurora::after { animation: none; }
  .marquee__track { animation: none; }
  .tilt { transition: none; }
  .checkin__check { animation: none; }
  .checkin__success h2, .checkin__success p { animation: none; }
}

/* ---------- Meeting check-in ---------- */
.checkin {
  max-width: 560px;
  margin: 0 auto;
  padding: 6rem 1.25rem 4rem;
}
.checkin__card {
  padding: 2rem 1.6rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  backdrop-filter: blur(6px);
}
.checkin__card h1 {
  font-family: var(--font-head);
  font-size: clamp(1.5rem, 5vw, 2rem);
  font-weight: 700;
  margin: 0.5rem 0 0.4rem;
}
.checkin__card .section__sub { margin: 0 0 1.6rem; }
.checkin__notice {
  padding: 1rem 1.1rem;
  border: 1px dashed var(--line);
  border-radius: 12px;
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 1.4rem;
}
.checkin__notice code {
  font-family: monospace;
  background: rgba(255,255,255,0.08);
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
}

.segmented {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
}
.segmented__btn {
  padding: 1rem;
  min-height: 52px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1rem;
  color: var(--ink);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}
.segmented__btn:hover { transform: translateY(-2px); }
.segmented__btn.is-active {
  border-color: var(--gold);
  background: linear-gradient(135deg, rgba(242,223,116,0.18), rgba(242,223,116,0.06));
  color: var(--gold);
}

.checkin__fields { margin-top: 1.4rem; }
.field select {
  width: 100%;
  padding: 0.85rem 1rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
}
.field__optional { color: var(--muted); font-weight: 400; }
.checkin__submit { width: 100%; margin-top: 0.4rem; }

.checkin__success { text-align: center; padding: 1rem 0; }
.checkin__success .btn { display: flex; width: 100%; max-width: 320px; margin: 0 auto; }
.checkin__success .btn + .btn { margin-top: 0.7rem; }
.checkin__check {
  display: inline-grid;
  place-items: center;
  width: 64px; height: 64px;
  margin-bottom: 1rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--gold), #ffcf5c);
  color: #06121c;
  font-size: 2rem;
  font-weight: 700;
  box-shadow: 0 0 0 0 rgba(242, 223, 116, 0.5);
  animation: checkinPop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), checkinRing 0.9s ease-out;
}
@keyframes checkinPop {
  0% { transform: scale(0.3); opacity: 0; }
  60% { transform: scale(1.15); opacity: 1; }
  100% { transform: scale(1); }
}
@keyframes checkinRing {
  0% { box-shadow: 0 0 0 0 rgba(242, 223, 116, 0.55); }
  100% { box-shadow: 0 0 0 22px rgba(242, 223, 116, 0); }
}
.checkin__success h2 {
  font-family: var(--font-head);
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
  animation: checkinRise 0.5s ease-out 0.15s both;
}
.checkin__success p {
  color: var(--muted);
  margin-bottom: 1.4rem;
  animation: checkinRise 0.5s ease-out 0.25s both;
}
@keyframes checkinRise {
  0% { transform: translateY(8px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}
