/* ─── TEMP Rulers ───────────────────────────────────────────── */
#rulers {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  display: flex;
  flex-direction: column;
}
#rulers div {
  flex: 1;
  border-bottom: 1px dashed rgba(255, 0, 0, 0.4);
  display: flex;
  align-items: flex-end;
  padding: 0 8px 2px;
}
#rulers div::after {
  content: attr(data-row);
  font-size: 10px;
  color: rgba(255, 0, 0, 0.5);
  font-family: monospace;
}

/* ─── Variables ─────────────────────────────────────────────── */
:root {
  --bg: #fff7dc;
  --bg-card: #ffffff;
  --bg-card-2: #f0f0f5;

  --primary: #2d2d2d;
  --primary-light: #444444;
  --primary-glow: rgba(45, 45, 45, 0.06);
  --border: rgba(0, 0, 0, 0.08);
  --border-hover: rgba(0, 0, 0, 0.22);

  --deepset-blue: #426270;
  --accent: #f07a60;
  --accent-cyan: #7bbdd4;
  --accent-green: #9dc49a;
  --accent-warm: #e8c56a;
  --accent-lavender: #a99ad8;

  --text: #2d2d2d;
  --text-muted: #6b6b8a;
  --text-dim: #aaaacc;

  --radius: 2px;
  --radius-sm: 2px;
  --radius-lg: 2px;

  --nav-height: 70px;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─── Auth Gate ─────────────────────────────────────────────── */
#auth-gate {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: var(--bg, #fff7dc);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
html.auth-allowed #auth-gate { display: none; }
html.auth-loading body,
html.auth-locked  body { overflow: hidden; }
html.auth-loading .auth-gate-form,
html.auth-locked  .auth-gate-loading { display: none; }

.auth-gate-inner {
  max-width: 420px;
  width: 100%;
  text-align: center;
  padding: 48px 32px;
  border: 1px solid rgba(66, 98, 112, 0.2);
  background: rgba(66, 98, 112, 0.04);
  border-radius: 8px;
}
.auth-gate-inner img {
  width: 64px;
  height: auto;
  margin: 0 auto 20px;
  display: block;
}
.auth-gate-inner h2 {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight: bold;
  font-size: 22px;
  margin: 0 0 12px;
  color: var(--primary, #18182b);
}
.auth-gate-inner p {
  font-size: 14px;
  color: var(--text-muted, #6b6b80);
  margin: 0 0 24px;
  line-height: 1.5;
}
.auth-gate-loading {
  font-size: 14px;
  color: var(--text-muted, #6b6b80);
}

#signin-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 20px;
  background: #fff;
  color: #3c4043;
  border: 1px solid #dadce0;
  border-radius: 4px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: box-shadow 0.2s ease;
}
#signin-btn:hover {
  box-shadow: 0 1px 3px rgba(60, 64, 67, 0.3), 0 4px 8px 3px rgba(60, 64, 67, 0.15);
}
#signin-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
#signin-btn svg { width: 18px; height: 18px; }

#auth-error {
  font-size: 13px;
  color: #c0392b;
  margin: 16px 0 0;
  min-height: 1em;
}

/* ─── Reset & Base ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background: var(--bg);
  background-attachment: fixed;
  color: var(--text);
  font-family: 'IBM Plex Sans', sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight: bold;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { cursor: pointer; font-family: inherit; border: none; }
input, textarea { font-family: inherit; }
ul { list-style: none; }

/* ─── Utilities ─────────────────────────────────────────────── */
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
}

.section-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--deepset-blue);
  margin-bottom: 12px;
}

.gradient-text {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-lavender) 60%, var(--accent-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 2px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.tag-outdoor { background: rgba(204, 255, 0, 0.1); color: var(--accent-green); border: 1px solid rgba(204,255,0,0.2); }
.tag-workshop { background: rgba(0, 240, 255, 0.1); color: var(--accent-cyan); border: 1px solid rgba(0,240,255,0.2); }

.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 2px;
  font-size: 12px;
  font-weight: 500;
  background: var(--primary-glow);
  color: var(--primary-light);
  border: 1px solid rgba(66, 98, 112, 0.2);
}

.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── Navigation ────────────────────────────────────────────── */
#nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 1000;
  transition: background var(--transition), border-color var(--transition), backdrop-filter var(--transition);
  border-bottom: 1px solid transparent;
}

#nav.scrolled {
  background: rgba(66, 98, 112, 0.04);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-color: rgba(66, 98, 112, 0.2);
}

/* When the header bar is visible (scrolled), collapse the lockup into a
   compact horizontal logo that fits inside the bar — so it never drops
   down over the page content / cards. */
#nav.scrolled .nav-logo {
  flex-direction: row;
  align-items: center;
  align-self: center;
  margin-top: 0;
  gap: 8px;
  transform: none;
}
#nav.scrolled .nav-logo-img { width: auto; height: 42px; }
#nav.scrolled .nav-logo-by { font-size: 12px; }
#nav.scrolled .nav-deepset-logo { height: 17.4px; margin-top: 0; }

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  width: 100%;
  padding: 0 32px;
}

.nav-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  align-self: flex-start;
  gap: 2px;
  margin-top: 10px; /* keep the lockup clear of the viewport top */
  transition: transform var(--transition);
  color: var(--deepset-blue);
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight: bold;
  font-size: 16.15px;
  letter-spacing: -0.01em;
  line-height: 1;
}

.nav-logo-img {
  width: 142.5px;
  height: auto;
  display: block;
}

.nav-logo-by {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 14.25px;
  font-weight: 500;
  color: var(--text-muted);
}

.nav-deepset-logo {
  height: 22.8px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  transition: color var(--transition), background var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.nav-cta {
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  background: var(--deepset-blue) !important;
  color: #fff !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  transition: background var(--transition), transform var(--transition) !important;
}
.nav-cta:hover {
  background: #34505c !important;
  background-color: #34505c !important;
  transform: translateY(-1px);
}

.nav-admin { color: var(--accent) !important; font-weight: 600; }
.nav-admin:hover { color: #d9624a !important; background: rgba(240, 122, 96, 0.08) !important; }

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  padding: 8px;
  border-radius: 2px;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-muted);
  border-radius: 2px;
  transition: var(--transition);
}
.nav-hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.nav-mobile {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  background: rgba(240, 240, 248, 0.97);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 16px 32px 24px;
  z-index: 999;
  flex-direction: column;
  gap: 4px;
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 16px;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  transition: color var(--transition), background var(--transition);
}
.nav-mobile a:hover { color: var(--text); background: var(--bg-card-2); }

/* ─── Section Common ─────────────────────────────────────────── */
section {
  padding: 60px 0;
  scroll-margin-top: var(--nav-height);
}

#home {
  padding: 0;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-header h2 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  margin-bottom: 12px;
  color: #f07a60;
}

.section-header p {
  font-size: 14px;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ─── Hero Section ──────────────────────────────────────────── */
#home {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  /* reserve nav height up top so the hero heading never slides under the
     fixed nav on shorter viewports (e.g. laptop screens with browser chrome) */
  padding: calc(var(--nav-height) + 16px) 0 0;
  overflow: visible;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg .orb,
.hero-bg .orb-1,
.hero-bg .orb-2,
.hero-bg .orb-3,
.hero-bg .grid-overlay {
  display: none;
}

.hero-content {
  position: absolute;
  bottom: 55px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  /* countdown is display-only; never let it steal clicks from the FF toggle
     it can overlap on shorter viewports */
  pointer-events: none;
  text-align: center;
  padding: 0 24px;
  width: 100%;
  max-width: 900px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 2px;
  border: 1px solid rgba(0, 240, 255, 0.25);
  background: rgba(0, 240, 255, 0.06);
  font-size: 13px;
  font-weight: 500;
  color: var(--accent-cyan);
  margin-bottom: 32px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.hero-eyebrow .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent-cyan);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.hero-title {
  /* ─── Sticker controls — tweak these four knobs ─────────────
     --sticker-x      : horizontal position (50% = page center)
     --sticker-y      : vertical position (distance from the top)
     --sticker-width  : base size of the sticker
     --sticker-scale  : extra size multiplier on top of the width
     --sticker-rotate : tilt (negative = anticlockwise)            */
  --sticker-x: 27%;
  --sticker-y: 15%;
  --sticker-width: 240px;
  --sticker-scale: 1;
  --sticker-rotate: -3deg;

  display: none; /* sticker removed */
  position: absolute;
  top: var(--sticker-y);
  left: var(--sticker-x);
  z-index: 3;
  margin: 0;
  transform: translate(-50%, -50%) scale(var(--sticker-scale)) rotate(var(--sticker-rotate));
  transform-origin: center;
}

.hero-sticker {
  display: block;
  width: var(--sticker-width);
  height: auto;
}

/* ─── Hero VHS/AI block (moved up from the intro) ──────────── */
.hero-image-col {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 600px;
  height: 600px;
  z-index: 1;
  --intro-img-size: 600px;
  --intro-img-zoom: 1.6;
  /* Position knobs: nudge from dead-center. Negative = up/left. */
  --hero-img-x: 0px;
  --hero-img-y: -20vh;
  transform: translate(var(--hero-img-x), var(--hero-img-y));
}
/* Take the toggle out of flow so the column height = image only,
   keeping the image itself centered. */
.hero-image-col .intro-toggle {
  position: absolute;
  left: 50%;
  bottom: 8%;
  transform: translateX(-50%);
}

/* On shorter viewports (e.g. MacBook Airs running a more-scaled
   "everything bigger" resolution) the fixed-size hero image and its
   FF toggle drop down and collide with the bottom-anchored countdown.
   Scale the image down with the available height so the toggle stays
   clear of the countdown. */
@media (max-height: 920px) {
  .hero-image-col {
    width: 520px;
    height: 520px;
    --intro-img-size: 520px;
    --hero-img-y: -16vh;
  }
  .hero-countdown { margin-bottom: 24px; }
}
@media (max-height: 720px) {
  .hero-image-col {
    width: 440px;
    height: 440px;
    --intro-img-size: 440px;
    --hero-img-y: -13vh;
  }
  .hero-content { bottom: 32px; }
  .hero-countdown { margin-bottom: 16px; }
}

/* ─── Hero two-column split: VHS block left, intro text right ─ */
.hero-split {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 460px 1fr; /* VHS fixed 460, text takes the rest (grows left) */
  align-items: center;
  gap: 56px;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px 96px; /* bottom room so the FF button clears the countdown */
}
/* Pull the VHS block out of its absolute hero placement and let it
   flow inside the left column. Overrides .hero-image-col above. */
.hero-split .hero-image-col {
  position: relative;
  inset: auto;
  width: 100%;
  max-width: 460px;
  height: auto;
  margin: 0 auto;
  transform: none;
  justify-self: center;
}
.hero-split .hero-image-col .intro-toggle {
  position: relative;   /* establish stacking so the toggle stays above the countdown */
  inset: auto;          /* clear the absolute layout's left/bottom offsets */
  z-index: 5;
  transform: none;
  display: flex;             /* block-level so margin auto can center it */
  margin: 16px auto 0;       /* always centered under the VHS image */
}
/* Centered title sitting above both hero blocks */
.hero-heading {
  position: relative;
  z-index: 1;
  text-align: center;
  color: #f07a60;
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  margin: 0 0 36px;
}

.hero-split .intro-text {
  text-align: left;
  margin: 0;
  width: 100%;
  max-width: none;
  height: 460px;
  background: transparent;
  border: none;
  padding: 0;
  overflow: visible;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
/* Tighten the copy a touch so the full text fits the 460px height */
.hero-split .intro-text p { font-size: 14px; line-height: 1.5; margin-bottom: 9px; }
.hero-split .intro-text .intro-lead { font-size: 16px; }
.hero-split .intro-text .intro-welcome { font-size: 18px; }

/* ─── Hero Carousel (full-screen background) ──────────────── */
.hero-carousel {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
}

.carousel-track {
  position: relative;
  width: 100%;
  height: 100%;
}

.carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
}

.carousel-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.carousel-slide:nth-child(2) img {
  transform: rotate(-1.5deg) scale(1.05);
  transform-origin: center;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.85);
  color: var(--primary);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: background 0.2s ease, transform 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.carousel-arrow:hover {
  background: #fff;
  transform: translateY(-50%) scale(1.05);
}

.carousel-prev { left: 12px; }
.carousel-next { right: 12px; }

.carousel-dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 2;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.carousel-dot.is-active {
  background: #fff;
  transform: scale(1.3);
}

@media (max-width: 600px) {
  .carousel-arrow { width: 32px; height: 32px; font-size: 18px; }
}


.hero-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hero-meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  color: var(--text-muted);
}
.hero-meta-item .icon { font-size: 16px; }

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  transition: all var(--transition);
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  border: 1px solid var(--primary);
}
.btn-primary:hover {
  background: var(--primary-light);
  border-color: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(66, 98, 112, 0.35);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.04);
  transform: translateY(-2px);
}

.hero-scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-dim);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color var(--transition);
}
.hero-scroll:hover { color: var(--text-muted); }
.hero-scroll .scroll-arrow {
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: scrollBounce 2.5s ease-in-out infinite;
  font-size: 14px;
}
@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* Countdown */
.hero-countdown {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-bottom: 48px;
}
.countdown-unit {
  text-align: center;
  min-width: 70px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.35);
  border-radius: 4px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.countdown-number {
  display: block;
  font-size: 1.4rem;
  font-weight: 800;
  font-family: 'IBM Plex Sans', sans-serif;
  color: #6b7280;
  line-height: 1;
}
.countdown-label {
  display: block;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #6b7280;
  margin-top: 4px;
}
.countdown-sep {
  font-size: 1rem;
  font-weight: 500;
  color: var(--deepset-blue);
  line-height: 1;
  margin-top: -8px;
  align-self: center;
}

/* ─── Agenda Section ─────────────────────────────────────────── */
#agenda {
  background: transparent;
}

.coming-soon-block {
  max-width: 640px;
  margin: 0 auto 56px;
  padding: 40px 32px;
  text-align: center;
  border: 1px solid rgba(66, 98, 112, 0.2);
  background: rgba(66, 98, 112, 0.04);
  border-radius: 8px;
}

.coming-soon-img {
  display: block;
  width: 120px;
  height: auto;
  margin: 0 auto 24px;
}

.coming-soon-block h3 {
  font-size: 24px;
  font-weight: 600;
  color: #f07a60;
  margin: 0 0 16px;
  letter-spacing: -0.01em;
}

.coming-soon-block p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0 0 12px;
}

.coming-soon-note {
  font-size: 13px !important;
  color: #f07a60 !important;
  margin-top: 20px !important;
  margin-bottom: 0 !important;
  font-weight: 500;
}

.agenda-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 56px;
  flex-wrap: wrap;
}

.agenda-tab {
  padding: 10px 24px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  transition: all var(--transition);
  cursor: pointer;
}
.agenda-tab:hover {
  border-color: var(--border-hover);
  color: var(--text);
}
.agenda-tab.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.agenda-day {
  display: none;
  max-width: 720px;
  margin: 0 auto;
}
.agenda-day.active { display: block; }

.agenda-day-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.agenda-day-number {
  width: 48px;
  height: 48px;
  border-radius: 2px;
  background: var(--primary-glow);
  border: 1px solid rgba(66, 98, 112, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 800;
  color: var(--primary-light);
  flex-shrink: 0;
}
.agenda-day-info h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 2px;
}
.agenda-day-info span {
  font-size: 14px;
  color: var(--text-muted);
}

.agenda-timeline {
  position: relative;
  padding-left: 32px;
}
.agenda-timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 16px;
  bottom: 16px;
  width: 1px;
  background: linear-gradient(180deg, var(--border) 0%, var(--border) 80%, transparent 100%);
}

.agenda-item {
  position: relative;
  padding: 0 0 32px 32px;
  opacity: 0;
  transform: translateX(-12px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.agenda-item.visible {
  opacity: 1;
  transform: translateX(0);
}
.agenda-item:last-child { padding-bottom: 0; }

.agenda-item::before {
  content: '';
  position: absolute;
  left: -5px;
  top: 16px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 2px solid var(--primary);
  transition: background var(--transition);
}
.agenda-item:hover::before { background: var(--primary); }

.agenda-item-inner {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  transition: border-color var(--transition), background var(--transition);
}
.agenda-item-inner:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-2);
}

.agenda-item-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.agenda-item-time {
  font-size: 12px;
  font-weight: 600;
  color: var(--primary-light);
  letter-spacing: 0.05em;
  white-space: nowrap;
  margin-top: 2px;
}

.agenda-item-title {
  font-size: 17px;
  font-weight: 700;
  flex: 1;
}

.agenda-item-icon {
  font-size: 20px;
  flex-shrink: 0;
}

.agenda-item-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 10px;
  flex-wrap: wrap;
}
.agenda-item-location {
  font-size: 14px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

.agenda-item-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-top: 4px;
}

/* Activity choice item */
.agenda-item.choice .agenda-item-inner {
  border-color: rgba(66, 98, 112, 0.2);
  background: rgba(66, 98, 112, 0.04);
}
.agenda-item.choice .agenda-item-inner:hover {
  border-color: rgba(66, 98, 112, 0.4);
  background: rgba(66, 98, 112, 0.07);
}

.choose-activity-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  background: var(--primary);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  transition: all var(--transition);
  border: none;
}
.choose-activity-btn:hover {
  background: var(--primary-light);
  transform: translateY(-1px);
}

/* ─── Location Section ───────────────────────────────────────── */
#location {
  background: var(--bg);
}

.location-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

#intro {
  padding-top: 0;
  margin-top: 0;
}
.intro-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
}
.intro-image-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 100%;
  max-width: var(--intro-img-size, 860px); /* image size knob */
  perspective: 900px;
}
.intro-image {
  position: relative;
  width: 100%;
  transform-style: preserve-3d;
  transition: transform 0.25s ease-out;
  will-change: transform;
}
/* Blurred shadow blob — position via the custom props below. */
.intro-shadow {
  position: absolute;
  z-index: 0;            /* behind the image layers */
  left: var(--shadow-x, 50%);
  top: var(--shadow-y, 95%);
  width: var(--shadow-w, 80%);
  height: var(--shadow-h, 18%);
  transform: translate(-50%, -50%);
  background: var(--shadow-color, rgba(0, 0, 0, 0.225));
  border-radius: 50%;
  filter: blur(var(--shadow-blur, 40px));
  pointer-events: none;
}
/* Both images occupy the same box; we crossfade their opacity. */
.intro-layer {
  display: block;
  position: relative;
  z-index: 1;            /* above the shadow blob */
  width: 100%;
  height: auto;
  object-fit: contain;
  transform: scale(var(--intro-img-zoom, 1.5)); /* zooms past the PNG's transparent padding */
  transform-origin: center center;
  transition: opacity 0.5s ease;
  pointer-events: none;
}
/* AI layer sits on top of the VHS layer, hidden until toggled. */
.intro-layer-ai {
  position: absolute;
  inset: 0;
  opacity: 0;
}
.intro-image[data-mode="ai"] .intro-layer-vhs { opacity: 0; }
.intro-image[data-mode="ai"] .intro-layer-ai  { opacity: 1; }
.intro-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(66, 98, 112, 0.2);
  background: rgba(66, 98, 112, 0.04);
  color: var(--text);
  cursor: pointer;
  position: relative;
  z-index: 2;
  transition: border-color var(--transition), background var(--transition), transform var(--transition);
}
.intro-toggle:hover {
  border-color: rgba(66, 98, 112, 0.4);
  background: rgba(66, 98, 112, 0.04);
}
.intro-toggle svg {
  width: 22px;
  height: 22px;
  transition: transform var(--transition);
}
/* Mirror the fast-forward icon into a rewind icon when showing AI */
.intro-toggle.is-rewind svg {
  transform: scaleX(-1);
}
.intro-text {
  width: 100%;
  max-width: 760px;
  text-align: center;
  border: 1px solid rgba(66, 98, 112, 0.2);
  background: rgba(66, 98, 112, 0.04);
  border-radius: 8px;
  padding: 40px;
}
.intro-text h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  margin-bottom: 20px;
  color: #f07a60;
}
.intro-text p {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 16px;
}
.intro-text p:last-child { margin-bottom: 0; }
.intro-text .intro-lead {
  font-size: 19px;
  font-weight: 600;
  color: var(--text);
}
.intro-text .intro-welcome {
  font-size: 22px;
  font-weight: 700;
  color: #f07a60;
}

.location-text .section-label { margin-bottom: 16px; }
.location-text h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  margin-bottom: 20px;
  color: #f07a60;
}
.location-text > p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 32px;
}

.location-block {
  margin-bottom: 28px;
  padding: 24px;
  background: rgba(66, 98, 112, 0.04);
  border: 1px solid rgba(66, 98, 112, 0.2);
  border-radius: 8px;
  transition: border-color var(--transition);
}
.location-block:hover { border-color: rgba(66, 98, 112, 0.4); }
.location-image {
  margin-bottom: 28px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}
/* "The Region" carousel — reuses the generic .carousel-* slide styling */
.region-carousel {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  margin-bottom: 28px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}
.region-carousel .carousel-slide img { transform: none; }
.location-image img {
  display: block;
  width: 100%;
  height: auto;
}
.location-block h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--primary-light);
}
.location-block p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
}

.location-features {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.location-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-muted);
}
.location-feature::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--deepset-blue);
  flex-shrink: 0;
}

.location-map {
  position: sticky;
  top: calc(var(--nav-height) + 24px);
}

.map-embed {
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
}
#leaflet-map {
  width: 100%;
  height: 100%;
}

.map-label {
  background: none;
  border: none;
  box-shadow: none;
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: #2d2d2d;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-shadow: 1px 1px 0 #fff, -1px -1px 0 #fff, 1px -1px 0 #fff, -1px 1px 0 #fff;
  white-space: nowrap;
}

.travel-cards {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px;
  background: rgba(66, 98, 112, 0.04);
  border: 1px solid rgba(66, 98, 112, 0.2);
  border-radius: 8px;
}
.travel-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.travel-card .airport { font-size: 14px; font-weight: 500; }
.travel-card .distance {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 500;
}

/* ─── Activities Section ─────────────────────────────────────── */
#activities {
  background: transparent;
}
#activities .container { max-width: 1380px; }

/* ─── Activity placeholder rows (square image + text) ───────── */
.activities-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 1380px;
  margin: 0 auto;
}
.activity-row {
  display: flex;
  align-items: flex-start;
  gap: 48px;
  padding: 32px 16px 32px 32px;   /* trimmed right padding to widen text */
  min-height: 486px;         /* image (422) + top/bottom padding (64) — no extra bottom gap */
  background: rgba(66, 98, 112, 0.1);
  border: 1px solid rgba(66, 98, 112, 0.2);
  border-radius: 8px;
  transition: border-color var(--transition);
}
.activity-row:hover { border-color: rgba(66, 98, 112, 0.4); }
.activity-row-img {
  flex-shrink: 0;
  width: 633px;              /* same landscape thumbnail on every card */
  aspect-ratio: 3 / 2;       /* always 3:2 landscape -> 633x422 */
  border-radius: 6px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(66, 98, 112, 0.12), rgba(66, 98, 112, 0.22));
}
.activity-row-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.activity-group-title {
  font-size: 22px;
  font-weight: 700;
  color: #f07a60;
  margin: 8px 0 0;
  text-align: center;
}
.activity-group-intro {
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.6;
  max-width: 760px;
  margin: 12px auto 0;
  text-align: center;
}
.activity-row-info {
  flex: 1;
  min-width: 0;
}
.activity-row-title {
  color: #f07a60;
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 7px;
}
.activity-row-info p {
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.6;
  margin: 0 0 6px;
}
.activity-row-info p:last-child { margin-bottom: 0; }
.activity-row-book {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 16px;
  padding: 12px 24px;
  border: 1px solid var(--deepset-blue);
  border-radius: 10px;
  background: var(--deepset-blue);
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: all var(--transition);
}
.activity-row-book:hover {
  background: #34505c;
  border-color: #34505c;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(66, 98, 112, 0.25);
}
.activity-row-book:active { transform: translateY(0); }
@media (max-width: 560px) {
  .activity-row { flex-direction: column; align-items: flex-start; text-align: left; }
  .activity-row-img { width: 100%; height: auto; aspect-ratio: 3 / 2; }
  .activity-row-book { width: 100%; }
}

/* ─── Morning activities: vertical cards (image on top) ─────── */
.morning-activities {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  max-width: 1380px;
  margin: 0 auto;
}
.morning-card {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 24px;
  background: rgba(240, 122, 96, 0.12);
  border: 1px solid rgba(240, 122, 96, 0.25);
  border-radius: 8px;
  transition: border-color var(--transition);
}
.morning-card:hover { border-color: rgba(240, 122, 96, 0.5); }
.morning-card .activity-row-img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
}
@media (max-width: 760px) {
  .morning-activities { grid-template-columns: 1fr; }
}

.activities-slots {
  display: flex;
  flex-direction: column;
  gap: 56px;
}

.slot-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}
.slot-divider {
  flex: 1;
  height: 1px;
  background: var(--border);
}
.slot-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--deepset-blue);
  white-space: nowrap;
}
.slot-conflict-note {
  font-size: 14px;
  color: var(--accent-warm);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 4px;
}

.activities-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.activity-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
  cursor: pointer;
}
.activity-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(34, 68, 255, 0.08);
}
.activity-card.booked {
  border-color: var(--accent-cyan);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.07);
}
.activity-card.conflict {
  opacity: 0.5;
  pointer-events: none;
  filter: grayscale(0.5);
}

.activity-card-top {
  padding: 20px 28px 0;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 8px;
}

.activity-card-badges {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.activity-card-body {
  padding: 24px 28px;
}

.activity-card-title {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.activity-card-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
}

.activity-card-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}
.activity-meta-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-muted);
}
.activity-meta-row .meta-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
  min-width: 52px;
}
.activity-meta-row strong { color: var(--text); font-weight: 500; }

.activity-spots {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.spots-bar {
  height: 3px;
  background: var(--border);
  border-radius: 2px;
  margin-top: 6px;
  overflow: hidden;
}
.spots-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-green), var(--accent-cyan));
  border-radius: 2px;
}

.book-btn {
  width: 100%;
  padding: 13px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  transition: all var(--transition);
  border: 1px solid var(--primary);
  background: transparent;
  color: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.book-btn:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}
.book-btn.booked {
  background: rgba(0, 240, 255, 0.08);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.2);
}
.book-btn.booked:hover {
  background: rgba(0, 240, 255, 0.15);
}

/* Whova embed section */
.whova-section {
  margin-top: 64px;
  padding: 40px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-align: center;
}
.whova-section h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
}
.whova-section p {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 24px;
}
#whova-widget-container {
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.whova-placeholder {
  padding: 32px;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  width: 100%;
}
.whova-placeholder p {
  font-size: 14px;
  color: var(--text-dim);
  margin: 0;
}
.whova-placeholder code {
  background: rgba(255,255,255,0.05);
  padding: 2px 6px;
  border-radius: 2px;
  font-size: 12px;
  color: var(--primary-light);
}

/* ─── FAQ Section ────────────────────────────────────────────── */
#faq {
  background: var(--bg);
}

.faq-layout {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 48px;
  align-items: start;
}

.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.faq-item {
  background: rgba(66, 98, 112, 0.04);
  border: 1px solid rgba(66, 98, 112, 0.2);
  border-radius: 8px;
  overflow: hidden;
  transition: border-color var(--transition);
}
.faq-item:hover { border-color: rgba(66, 98, 112, 0.4); }
.faq-item.open { border-color: rgba(66, 98, 112, 0.25); }

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  background: none;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  text-align: left;
  transition: background var(--transition);
}
.faq-question:hover { background: rgba(255,255,255,0.02); }

.faq-chevron {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(66, 98, 112, 0.04);
  border: 1px solid rgba(66, 98, 112, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 10px;
  transition: transform var(--transition), background var(--transition);
}
.faq-item.open .faq-chevron {
  transform: rotate(180deg);
  background: var(--primary-glow);
  color: var(--primary-light);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.faq-answer-inner {
  padding: 0 24px 20px;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
  border-top: 1px solid var(--border);
  padding-top: 16px;
}
.faq-item.open .faq-answer { max-height: 300px; }

/* AI Chat */
.faq-chat {
  position: sticky;
  top: calc(var(--nav-height) + 24px);
}

.chat-card {
  background: rgba(66, 98, 112, 0.04);
  border: 1px solid rgba(66, 98, 112, 0.2);
  border-radius: 8px;
  overflow: hidden;
}

.chat-header {
  padding: 20px 24px;
  border-bottom: 1px solid rgba(66, 98, 112, 0.2);
  display: flex;
  align-items: center;
  gap: 12px;
  background: transparent;
}
.chat-avatar {
  width: 36px;
  height: 36px;
  border-radius: 2px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.chat-header-text h4 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 1px;
}
.chat-header-text span {
  font-size: 11px;
  color: var(--accent-green);
  display: flex;
  align-items: center;
  gap: 4px;
}
.chat-header-text span::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent-green);
}

.chat-messages {
  height: 340px;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  scroll-behavior: smooth;
}
.chat-messages::-webkit-scrollbar { width: 4px; }
.chat-messages::-webkit-scrollbar-track { background: transparent; }
.chat-messages::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

.chat-msg {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.chat-msg.user { flex-direction: row-reverse; }

.chat-bubble {
  max-width: 80%;
  padding: 12px 16px;
  border-radius: 2px;
  font-size: 14px;
  line-height: 1.5;
}
.chat-msg.bot .chat-bubble {
  background: var(--bg-card-2);
  border: 1px solid var(--border);
  border-bottom-left-radius: 2px;
  color: var(--text);
}
.chat-msg.user .chat-bubble {
  background: var(--primary);
  color: #fff;
  border-bottom-right-radius: 2px;
}

.chat-msg-icon {
  width: 28px;
  height: 28px;
  border-radius: 2px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.chat-msg-icon img, .chat-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.chat-typing {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 12px 16px;
  background: var(--bg-card-2);
  border: 1px solid var(--border);
  border-radius: 2px;
  border-bottom-left-radius: 2px;
  max-width: 60px;
}
.chat-typing span {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--text-muted);
  animation: typingDot 1.2s ease-in-out infinite;
}
.chat-typing span:nth-child(2) { animation-delay: 0.2s; }
.chat-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typingDot {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-4px); opacity: 1; }
}

.chat-input-row {
  padding: 16px 20px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 8px;
}
.chat-input {
  flex: 1;
  background: var(--bg-card-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  color: var(--text);
  font-size: 14px;
  outline: none;
  transition: border-color var(--transition);
}
.chat-input::placeholder { color: var(--text-dim); }
.chat-input:focus { border-color: rgba(66, 98, 112, 0.4); }

.chat-send {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: var(--primary);
  color: #fff;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), transform var(--transition);
  flex-shrink: 0;
}
.chat-send:hover {
  background: var(--primary-light);
  transform: translateY(-1px);
}

.chat-suggestions {
  padding: 0 20px 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.chat-suggestion {
  padding: 5px 12px;
  border-radius: 2px;
  border: 1px solid var(--border);
  background: var(--bg-card-2);
  color: var(--text-muted);
  font-size: 11px;
  transition: all var(--transition);
}
.chat-suggestion:hover {
  border-color: var(--border-hover);
  color: var(--primary-light);
  background: var(--primary-glow);
}

/* ─── Activity Modal ─────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 560px;
  max-height: 85vh;
  overflow-y: auto;
  transform: scale(0.95) translateY(20px);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.modal-overlay.open .modal {
  transform: scale(1) translateY(0);
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 28px 28px 0;
  margin-bottom: 20px;
}
.modal-emoji { font-size: 3rem; }
.modal-close {
  width: 32px; height: 32px;
  border-radius: 2px;
  background: var(--bg-card-2);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  flex-shrink: 0;
}
.modal-close:hover {
  background: rgba(255,92,122,0.1);
  border-color: var(--accent);
  color: var(--accent);
}

.modal-body { padding: 0 28px 28px; }
.modal-title {
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 6px;
  color: #f07a60;
}
.modal-subtitle {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.modal-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 24px;
}

.modal-highlights {
  margin-bottom: 24px;
}
.modal-highlights h5 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 10px;
}
.modal-highlights ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.modal-highlights li {
  font-size: 14px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}
.modal-highlights li::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--deepset-blue);
  flex-shrink: 0;
}

.modal-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 24px;
}
.modal-info-item {
  padding: 12px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.modal-info-item .label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  margin-bottom: 4px;
}
.modal-info-item .value {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.modal-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.modal-book-btn {
  width: 100%;
  padding: 15px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 700;
  background: var(--primary);
  color: #fff;
  border: none;
  transition: all var(--transition);
}
.modal-book-btn:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(66, 98, 112, 0.35);
}
.modal-book-btn.booked {
  background: rgba(0, 229, 160, 0.1);
  border: 1px solid var(--accent-green);
  color: var(--accent-green);
}

.modal-cal-btn {
  width: 100%;
  padding: 12px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
  transition: all var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.modal-cal-btn:hover {
  color: var(--text);
  border-color: rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.03);
}

/* Booked state banner */
.booked-banner {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: rgba(123, 189, 212, 0.1);
  border: 1px solid rgba(123, 189, 212, 0.3);
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.booked-banner.visible { display: flex; }
.booked-banner .icon { font-size: 18px; }

/* ─── Footer ─────────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
/* Footer brand — mirrors the header logo block in its reduced (scrolled) size */
.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}
.footer-logo-img { width: auto; height: 42px; display: block; }
.footer-logo-by {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
}
.footer-deepset-logo { width: auto; height: 14.7px; display: block; }
.footer-logo .logo-mark {
  width: 26px;
  height: 26px;
  object-fit: contain;
  display: block;
}
.footer-copy {
  font-size: 14px;
  color: var(--text-dim);
}

/* ─── Responsive ─────────────────────────────────────────────── */
@media (max-width: 900px) {
  .location-grid { grid-template-columns: 1fr; }
  .intro-grid { grid-template-columns: 1fr; }
  .location-map { position: static; }
  .faq-layout { grid-template-columns: 1fr; }
  .faq-chat { position: static; }
  .activities-grid { grid-template-columns: 1fr; }

  /* Stack the hero on small screens and let it grow instead of
     overlapping the bottom-anchored countdown. */
  #home { min-height: auto; padding: calc(var(--nav-height) + 24px) 0 40px; }
  .hero-split { grid-template-columns: 1fr; gap: 32px; padding-bottom: 32px; }
  .hero-split .intro-text { text-align: center; height: auto; max-width: 560px; overflow: visible; }
  .hero-content { position: static; transform: none; margin: 8px auto 0; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .container { padding: 0 20px; }
  section { padding: 72px 0; }
  .modal-info-grid { grid-template-columns: 1fr; }
  .hero-countdown { gap: 2px; }
  .countdown-unit { min-width: 56px; }
  .countdown-number { font-size: 2rem; }
}

@media (max-width: 480px) {
  .activities-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; width: 100%; }
  .hero-actions .btn { width: 100%; justify-content: center; }
}

/* ─── 3D Showcase ───────────────────────────────────────────── */
#showcase3d { padding: 6rem 0; }
.showcase3d-stage {
  width: 100%;
  max-width: 560px;
  aspect-ratio: 1 / 1;
  margin: 2rem auto 0;
  border-radius: 1rem;
  background: radial-gradient(ellipse at center, rgba(76,110,245,0.12), transparent 70%);
  overflow: hidden;
}
.showcase3d-stage canvas { display: block; width: 100% !important; height: 100% !important; }

/* ─── Booking timeline ─────────────────────────────────────────── */
.agenda-intro {
  max-width: 720px;
  margin: 0 auto 28px;
  text-align: center;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.6;
}
#timeline-root { width: 100%; }

.tl-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.tl-tab {
  flex: 1 1 0;
  min-width: 120px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 12px 16px;
  background: rgba(66, 98, 112, 0.04);
  border: 1px solid rgba(66, 98, 112, 0.2);
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
  text-align: left;
}
.tl-tab:hover { border-color: rgba(66, 98, 112, 0.45); }
.tl-tab.active {
  background: var(--deepset-blue);
  border-color: var(--deepset-blue);
}
.tl-tab.active .tl-tab-day,
.tl-tab.active .tl-tab-sub { color: #fff; }
.tl-tab-day { font-weight: 600; font-size: 15px; color: var(--text); }
.tl-tab-sub { font-size: 12px; color: var(--text-muted); }

.tl-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 12px;
  border: 1px solid rgba(66, 98, 112, 0.2);
  border-radius: 8px;
  background: rgba(66, 98, 112, 0.04);
}
.tl-inner { position: relative; min-width: 100%; padding: 0 12px 12px; box-sizing: border-box; }

.tl-axis {
  position: relative;
  height: 30px;
  margin-bottom: 6px;
  border-bottom: 1px solid var(--border);
}
.tl-tick {
  position: absolute;
  top: 8px;
  transform: translateX(-50%);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
}
.tl-lanes { position: relative; }
.tl-grid {
  position: absolute;
  top: 0; bottom: 0;
  width: 1px;
  background: var(--border);
}

.tl-block {
  position: absolute;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--blk);
  border: 1.5px solid rgba(0,0,0,0.12);
  color: #2d2d2d;
  cursor: pointer;
  overflow: hidden;
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}
.tl-block:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0,0,0,0.12); }
.tl-block-time { font-size: 11px; font-weight: 600; opacity: 0.75; white-space: nowrap; }
.tl-block-title {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.tl-count {
  font-size: 11px;
  font-weight: 600;
  opacity: 0.8;
  margin-top: auto;
}
.tl-block.is-selected {
  border-color: var(--deepset-blue);
  box-shadow: 0 0 0 3px var(--deepset-blue) inset, 0 0 0 1px var(--deepset-blue);
  filter: saturate(1.15);
}
.tl-block.is-alt { opacity: 0.45; }
.tl-block.is-full {
  filter: grayscale(0.7) opacity(0.6);
  cursor: not-allowed;
}
.tl-block.is-full:hover { transform: none; box-shadow: none; }

/* Non-bookable fixed blocks (breakfast, meals) — neutral, not interactive */
.tl-block--fixed {
  background: repeating-linear-gradient(45deg, #ededed 0 7px, #e3e3e3 7px 14px);
  border: 1.5px dashed rgba(0,0,0,0.22);
  color: #555;
  cursor: default;
}
.tl-block--fixed:hover { transform: none; box-shadow: none; }
.tl-block--fixed .tl-block-title { font-weight: 600; }

.tl-empty-note {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  pointer-events: none;
}
.tl-error { padding: 40px; text-align: center; color: var(--accent); }

/* Modal */
.tl-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: none;
  align-items: flex-start;
  justify-content: center;
  overflow-y: auto;
  z-index: 1000;
  padding: 20px;
}
.tl-modal-overlay.open { display: flex; }
.tl-modal {
  position: relative;
  margin: auto;
  background: var(--bg);
  border-radius: 16px;
  max-width: 800px;
  width: 100%;
  box-shadow: 0 24px 60px rgba(0,0,0,0.25);
}
.tl-modal-body {
  padding: 30px 38px;
}
.tl-modal-close {
  position: absolute;
  top: 16px; right: 16px;
  z-index: 2;
  width: 32px; height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  background: var(--bg-card-2);
  border-radius: 8px;
  cursor: pointer;
  font-size: 18px;
  color: var(--text-muted);
  transition: all var(--transition);
}
.tl-modal-close:hover {
  background: rgba(240, 122, 96, 0.12);
  border-color: var(--accent);
  color: var(--accent);
}
.tl-modal-overlay.locked .tl-modal-close { display: none; }
.tl-modal-hint { margin: 14px 0 0; font-size: 13px; color: var(--text-muted); text-align: center; }
.tl-booked-banner {
  display: inline-block;
  background: rgba(66, 98, 112, 0.1);
  color: var(--deepset-blue);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 8px;
  margin-bottom: 14px;
}
.tl-modal-title { font-size: 23px; font-weight: 700; margin: 0 0 5px; color: var(--text); }
.tl-modal-sub { font-size: 14px; color: var(--text-muted); margin: 0 0 14px; }
.tl-modal-desc { font-size: 14.5px; line-height: 1.5; color: var(--text); margin: 0 0 16px; }
.tl-modal-desc p { margin: 0 0 0.65em; }
.tl-modal-desc p:last-child { margin-bottom: 0; }
.tl-modal-warn { font-size: 15px; line-height: 1.6; color: var(--text); margin: 8px 0 24px; }
.tl-modal-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 14px;
  padding: 14px 0;
  border-top: 1px solid var(--border);
  margin-bottom: 16px;
}
.tl-modal-meta div { display: flex; flex-direction: column; gap: 3px; }
.tl-modal-meta span { font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); }
.tl-modal-meta strong { font-size: 14px; color: var(--text); }
.tl-modal-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.tl-btn {
  flex: 1 1 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-decoration: none;
  padding: 14px 20px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}
.tl-link-btn {
  display: block;
  width: 100%;
  margin-top: 12px;
  padding: 6px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 13px;
  text-decoration: underline;
  cursor: pointer;
}
.tl-link-btn:hover { color: var(--text); }

.tl-myschedule {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 16px;
  padding: 14px 18px;
  background: rgba(66, 98, 112, 0.04);
  border: 1px solid rgba(66, 98, 112, 0.2);
  border-radius: 8px;
}
.tl-myschedule-label { font-size: 14px; font-weight: 600; color: var(--text); }
.tl-btn-sm {
  padding: 9px 16px;
  border-radius: 10px;
  border: 1px solid var(--deepset-blue);
  background: var(--deepset-blue);
  color: #fff;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}
.tl-btn-sm:hover { background: #34505c; }
.tl-btn-primary { background: var(--deepset-blue); color: #fff; }
.tl-btn-primary:hover:not(:disabled) { background: #34505c; }
.tl-btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }
.tl-btn-cancel { background: var(--bg-card-2); color: var(--text); border-color: var(--border-hover); }
.tl-btn-ghost { background: transparent; color: var(--text-muted); border-color: var(--border); }

.tl-flash {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--deepset-blue);
  color: #fff;
  padding: 12px 20px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
  z-index: 1100;
}
.tl-flash.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ─── Admin dashboard ──────────────────────────────────────────── */
.admin-body { background: var(--bg); color: var(--text); min-height: 100vh; }

.admin-gate { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 20px; }
.admin-gate-card {
  text-align: center; max-width: 400px; width: 100%;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 48px 36px;
}
.admin-gate-card img { width: 56px; height: 56px; margin-bottom: 16px; }
.admin-gate-card .section-label { margin-bottom: 6px; }
.admin-gate-card h2 { font-size: 24px; font-weight: 800; margin: 0 0 14px; color: var(--accent); }
#admin-gate-msg { color: var(--text-muted); margin-bottom: 22px; font-size: 14px; }

.admin-app { padding: 64px 0 100px; }
.admin-header {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 24px; flex-wrap: wrap; margin-bottom: 48px;
}
.admin-header-titles .section-label { margin-bottom: 10px; }
.admin-header h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; color: var(--accent); margin: 0 0 10px; }
.admin-summary { color: var(--text-muted); font-size: 14px; margin: 0; }
.admin-header-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.admin-who { font-size: 13px; color: var(--text-muted); margin-right: 6px; }

.admin-btn {
  padding: 11px 20px; border-radius: var(--radius-sm);
  border: 1px solid var(--primary); background: var(--primary); color: #fff;
  font-family: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
  transition: all var(--transition);
}
.admin-btn:hover { background: var(--primary-light); }
.admin-btn-ghost { background: transparent; color: var(--text-muted); border-color: var(--border); }
.admin-btn-ghost:hover { border-color: var(--border-hover); color: var(--text); }

.admin-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px;
}

.admin-stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px; margin-bottom: 24px;
}
.admin-stat {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px 22px;
  display: flex; flex-direction: column;
}
.admin-stat-num { font-size: 34px; font-weight: 800; line-height: 1; color: var(--text); }
.admin-stat-label { margin-top: 8px; font-size: 13px; font-weight: 600; color: var(--text); }
.admin-stat-sub { margin-top: auto; padding-top: 4px; font-size: 12px; color: var(--text-muted); }

.admin-distribution {
  display: grid; grid-template-columns: 1fr;
  gap: 20px; margin-bottom: 40px;
}
.admin-group .section-label { margin-bottom: 18px; }
.admin-bars { display: flex; flex-direction: column; gap: 12px; }
.admin-bar-row { display: grid; grid-template-columns: 1fr 120px 64px; align-items: center; gap: 14px; }
.admin-bar-row.muted { padding: 6px 0; }
.admin-bar-row.muted .admin-bar-label { color: var(--text-muted); }

/* Clickable activity row → expands the participant list below it. */
.admin-bar-click {
  width: 100%; background: none; border: 0; font: inherit; color: inherit;
  text-align: left; cursor: pointer; padding: 6px 0; margin: 0; border-radius: 8px;
  transition: background .15s ease;
}
.admin-bar-click:hover { background: var(--bg-card-2); }
.admin-caret { display: inline-block; color: var(--text-muted); transition: transform .15s ease; }
.admin-bar-click[aria-expanded="true"] .admin-caret { transform: rotate(90deg); }
.admin-participants { padding: 6px 8px 12px 26px; }
.admin-participants-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.admin-participants-list li {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  font-size: 13px; padding: 7px 0; border-bottom: 1px solid var(--border);
}
.admin-participants-list li:last-child { border-bottom: 0; }
.admin-p-name { font-weight: 600; }
.admin-p-email { color: var(--text-muted); }
.admin-participants-empty { font-size: 13px; color: var(--text-muted); margin: 2px 0 0; }
.admin-bar-label { font-size: 14px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-bar-track { height: 10px; background: var(--bg-card-2); border-radius: 999px; overflow: hidden; }
.admin-bar-fill { display: block; height: 100%; background: var(--deepset-blue); border-radius: 999px; transition: width .3s ease; }
.admin-bar-fill.full { background: var(--accent); }
.admin-bar-num { font-size: 13px; font-weight: 700; text-align: right; color: var(--text); white-space: nowrap; }

.admin-users-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.admin-users-head h2 { font-size: 18px; font-weight: 700; margin: 0; }
.admin-search {
  padding: 10px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  font-family: inherit; font-size: 14px; min-width: 240px; background: var(--bg); color: var(--text);
}
.admin-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.admin-table th, .admin-table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--border); }
.admin-table th { font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--deepset-blue); font-weight: 700; }
.admin-table tbody tr:last-child td { border-bottom: none; }
.admin-table tbody tr:hover { background: var(--bg); }
.admin-table td:first-child { font-weight: 600; }
.admin-none { color: var(--text-dim); }
.admin-empty { color: var(--text-muted); padding: 20px 0; }
