@font-face {
  font-family: 'HelveticaNeue-Medium';
  src: url('../fonts/HelveticaNeue-Medium.woff2') format('woff2'),
       url('../fonts/HelveticaNeue-Medium.woff')  format('woff');
  font-weight: normal;
  font-style:  normal;
  font-display: swap;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* ── Typography ─────────────────────────────────── */
  --font-sans:    'HelveticaNeue-Medium', Helvetica, Arial, sans-serif;
  --font-serif:   'HelveticaNeue-Medium', Helvetica, Arial, sans-serif;
  --font-body:    'HelveticaNeue-Medium', Helvetica, Arial, sans-serif;
  --font-display: 'HelveticaNeue-Medium', Helvetica, Arial, sans-serif;

  /* ── UI colors ──────────────────────────────────── */
  --panel-bg:  rgba(96, 91, 34, 0.62);
  --modal-bg:  rgba(96, 91, 34, 0.72);

  /* ── Easing ─────────────────────────────────────── */
  --ease-out:    cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.2, 0.7, 0.2, 1);

  /* ── Global UI ──────────────────────────────────── */
  --panel-blur: 14px;
  --radius:     12px;
  --white:      #fff;
  --text-dim:   rgba(255,255,255,0.65);
  --divider:    rgba(255,255,255,0.14);
}

html, body {
  height: 100%; width: 100%;
  overflow: hidden;
  font-family: var(--font-sans);
}

/* ── Scenes ─────────────────────────────────────────────────── */
.scene {
  position: fixed;
  inset: -6%;
  z-index: 0;
  opacity: 0;
  transition: opacity 0.9s ease;
  will-change: opacity;
}
.scene.active { opacity: 1; }

@keyframes drift {
  0%,100% { transform: scale(1)    translate(0%,  0%);   }
  30%     { transform: scale(1.04) translate(1.2%, -0.6%); }
  65%     { transform: scale(1.02) translate(-0.8%, 0.9%); }
}

.scene .scene-inner {
  background: radial-gradient(ellipse at 38% 58%, #8B8645 0%, #6A6535 50%, #49481E 100%);
}

/* Film grain overlay */
.grain {
  position: fixed; inset: 0; z-index: 1;
  pointer-events: none;
  opacity: 0.055;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
  animation: grainShift 0.45s steps(1) infinite;
}
@keyframes grainShift {
  0%  { background-position: 0 0; }
  25% { background-position: -45px 20px; }
  50% { background-position: 30px -30px; }
  75% { background-position: -20px 45px; }
}

/* ── Right panel ────────────────────────────────────────────── */
@keyframes panel-in {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0);     }
}
.panel {
  position: fixed;
  top: 20px; right: 20px;
  z-index: 20;
  width: 460px;
  background: var(--panel-bg);
  backdrop-filter: blur(var(--panel-blur));
  -webkit-backdrop-filter: blur(var(--panel-blur));
  border-radius: var(--radius);
  color: var(--white);
  overflow: hidden;
  transition: background 0.55s var(--ease-spring);
  animation: panel-in 0.45s var(--ease-out) both;
}

.panel-body { padding: 18px 18px 4px; }

.panel-tagline {
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--text-dim);
  line-height: 1.6;
  margin-bottom: 16px;
}

/* Accordion */
.acc-item { border-top: 1px solid var(--divider); }
.acc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 0;
  cursor: pointer;
  font-size: 13px;
  letter-spacing: 0.01em;
  color: rgba(255,255,255,0.88);
  user-select: none;
}
.acc-header:hover { color: var(--white); }
.acc-sign {
  font-size: 17px;
  font-weight: 300;
  color: var(--text-dim);
  line-height: 1;
  transition: transform 0.22s ease;
  flex-shrink: 0;
  margin-left: 8px;
}
.acc-item.open .acc-sign { transform: rotate(45deg); }
.acc-body {
  font-size: 12px;
  color: var(--text-dim);
  line-height: 1.65;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.38s var(--ease-spring), padding-bottom 0.28s var(--ease-spring);
  scrollbar-width: none;
}
.acc-body::-webkit-scrollbar { display: none; }
.acc-item.open .acc-body {
  max-height: 220px;
  overflow-y: auto;
  padding-bottom: 13px;
}
.acc-item.open .acc-body.has-overflow {
  -webkit-mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
}
.acc-body p + p { margin-top: 16px; }
.acc-body strong { color: rgba(255,255,255,0.82); font-weight: 500; }

/* CTAs */
.cta-wrap {
  padding: 2px 18px 18px;
  display: flex;
  gap: 8px;
}

.cta-primary,
.cta-secondary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  background: var(--white);
  color: #1A1816;
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  flex: 1;
  font-family: inherit;
  transition: opacity 0.15s;
  line-height: 1.5;
  text-align: left;
}
.cta-primary:hover,
.cta-secondary:hover { opacity: 0.92; }
.cta-primary .arrow,
.cta-secondary .arrow { display: block; flex-shrink: 0; margin: 3px 0 0 6px; }

.cta-secondary {
  background: rgba(255,255,255,0.4);
  color: var(--white);
}

/* Flip-text hover */
.cta-label {
  display: block;
  overflow: hidden;
  height: 1.5em;
  line-height: 1.5;
}
.cta-label > span {
  display: block;
  transition: transform 0.18s ease;
}
.cta-primary:hover .cta-label > span,
.cta-secondary:hover .cta-label > span { transform: translateY(-100%); }

/* ── Logo + slogan (bottom left) ────────────────────────────── */
.logo-area {
  position: fixed;
  bottom: 0;
  left: 22px;
  z-index: 10;
  user-select: none;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: min(82vw, 700px);
}
.logo-svg {
  display: block;
  width: 100%;
  height: auto;
  pointer-events: none;
  flex-shrink: 0;
}
.slogan {
  font-size: 0.8rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  font-weight: 400;
  padding: 16px 0 22px;
}

/* ── Password modal ─────────────────────────────────────────── */
@keyframes modal-in {
  from { opacity: 0; transform: scale(0.96) translateY(6px); }
  to   { opacity: 1; transform: scale(1)    translateY(0);   }
}
.modal-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(30,28,20,0.35);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 100;
  align-items: center; justify-content: center;
}
.modal-overlay.open { display: flex; }
.modal-overlay.open .modal,
.newsletter-overlay.open .newsletter-card {
  animation: modal-in 0.32s var(--ease-out) both;
}
.modal {
  background: var(--modal-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--radius);
  padding: 36px 32px 30px;
  width: 300px;
  position: relative;
  color: var(--white);
}
.modal h3 {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 18px;
}
.modal input[type="password"] {
  width: 100%;
  background: rgba(255,255,255,0.1);
  border: none;
  border-radius: 7px;
  outline: none;
  padding: 10px 12px;
  font-size: 13px;
  color: var(--white);
  font-family: inherit;
  letter-spacing: 0.08em;
}
.modal input::placeholder { color: rgba(255,255,255,0.3); }
.modal-error {
  font-size: 11px;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.04em;
  margin-top: 8px;
}
.modal-error:empty { display: none; }
.modal-submit {
  width: 100%;
  background: var(--white);
  color: #1A1816;
  border: none;
  border-radius: 7px;
  padding: 12px;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  font-family: inherit;
  font-weight: 500;
  transition: opacity 0.15s;
  margin-top: 6px;
}
.modal-submit:hover { opacity: 0.88; }
.modal-close {
  position: absolute; top: 14px; right: 16px;
  background: none; border: none;
  color: var(--text-dim); font-size: 1rem;
  cursor: pointer; line-height: 1;
}
.modal-close:hover { color: var(--white); }

/* ── Newsletter popup ───────────────────────────────────────── */
.newsletter-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(30,28,20,0.35);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 100;
  align-items: center; justify-content: center;
}
.newsletter-overlay.open { display: flex; }
.newsletter-card {
  background: var(--modal-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--radius);
  padding: 36px 32px 30px;
  width: 320px;
  position: relative;
  color: var(--white);
}
.newsletter-card .eyebrow {
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 10px;
}
.newsletter-card h3 {
  font-size: 18px;
  font-weight: 300;
  line-height: 1.35;
  margin-bottom: 10px;
}
.newsletter-card p {
  font-size: 12px;
  color: var(--text-dim);
  line-height: 1.6;
  margin-bottom: 22px;
}
.newsletter-card input[type="email"] {
  width: 100%;
  background: rgba(255,255,255,0.1);
  border: none;
  border-radius: 7px;
  outline: none;
  padding: 10px 12px;
  font-size: 13px;
  color: var(--white);
  font-family: inherit;
  margin-bottom: 4px;
}
.newsletter-card input::placeholder { color: rgba(255,255,255,0.3); }
.newsletter-note {
  font-size: 10px;
  color: rgba(255,255,255,0.35);
  margin-bottom: 16px;
  letter-spacing: 0.02em;
}
.newsletter-submit {
  width: 100%;
  background: var(--white);
  color: #1A1816;
  border: none;
  border-radius: 7px;
  padding: 12px;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  font-family: inherit;
  font-weight: 500;
  transition: opacity 0.15s;
}
.newsletter-submit:hover { opacity: 0.88; }
.newsletter-close {
  position: absolute; top: 14px; right: 16px;
  background: none; border: none;
  color: var(--text-dim); font-size: 1rem;
  cursor: pointer; line-height: 1;
}
.newsletter-close:hover { color: var(--white); }
.newsletter-success {
  text-align: center;
}
.newsletter-success .mark { font-size: 10px; margin-bottom: 10px; }
.newsletter-success p { font-size: 12px; color: var(--text-dim); }

/* ── Video background ───────────────────────────────────────── */
.scene-inner {
  position: relative;
  width: 100%; height: 100%;
  animation: drift 24s ease-in-out infinite;
}
.scene-video {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

/* ── Mobile (≤530px) ──────────────────────────────────────────── */
@media (max-width: 530px) {
  .panel {
    top: 20px;
    right: 20px;
    bottom: auto;
    left: 20px;
    width: auto;
    max-height: 65vh;
    overflow-y: auto;
    scrollbar-width: none;
  }
  .panel::-webkit-scrollbar { display: none; }
  .logo-area { left: 20px; width: 72vw; }
  .slogan {
    font-size: 0.8rem;
    letter-spacing: 0.15em;
    padding: 16px 0 20px;
  }
}

/* ── Schedule overlay ───────────────────────────────────────── */
/* Outer: full-screen positioning wrapper only — no backdrop-filter here */
#schedule-overlay {
  display: none;
  position: fixed; inset: 0;
  z-index: 200;
  padding: 20px;
  align-items: flex-start;
  justify-content: center;
  background: rgba(30, 28, 20, 0.35);
  backdrop-filter: blur(6px);
}
#schedule-overlay.open { display: flex; }

/* Inner: the visible panel with blur, background and scroll */
#schedule-scroll {
  position: relative;
  width: 100%;
  max-width: 650px;
  height: 100%;
  background: rgba(96, 91, 34, 0.72);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--radius);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  color: #fff;
}
#schedule-scroll::-webkit-scrollbar { display: none; }
#schedule-overlay .scroll-cta { display: none; }

/* Text */
#schedule-overlay p,
#schedule-overlay .hero-text,
#schedule-overlay label,
#schedule-overlay .label-block,
#schedule-overlay .step-label,
#schedule-overlay .cal-month-label,
#schedule-overlay .time-slots-date,
#schedule-overlay .time-slots-location,
#schedule-overlay .time-slots-note,
#schedule-overlay .inquiry-toggle-text,
#schedule-overlay .sc-value {
  color: rgba(255,255,255,0.82);
}
#schedule-overlay strong, #schedule-overlay b { color: #fff; }
#schedule-overlay .step-num,
#schedule-overlay .cal-day-header,
#schedule-overlay .label-hint,
#schedule-overlay .sc-label,
#schedule-overlay .inquiry-or { color: rgba(255,255,255,0.38); }
#schedule-overlay a { color: inherit; }

/* Section borders */
#schedule-overlay .hero,
#schedule-overlay .booking-section,
#schedule-overlay .form-section,
#schedule-overlay .inquiry-section,
#schedule-overlay .time-slots-section {
  border-color: rgba(255,255,255,0.1);
}
#schedule-overlay .inquiry-or::before,
#schedule-overlay .inquiry-or::after { background: rgba(255,255,255,0.18); opacity: 1; }

/* Scroll CTA */
#schedule-overlay .scroll-cta {
  color: rgba(255,255,255,0.7);
  border-bottom-color: rgba(255,255,255,0.3);
}
#schedule-overlay .scroll-cta:hover { color: #fff; border-bottom-color: #fff; }

/* Calendar */
#schedule-overlay .calendar-wrapper {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.14);
}
#schedule-overlay .cal-nav {
  background: rgba(255,255,255,0.04);
  border-bottom-color: rgba(255,255,255,0.1);
}
#schedule-overlay .cal-nav-btn {
  background: transparent;
  border-color: rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.7);
}
#schedule-overlay .cal-nav-btn:hover:not(:disabled) {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.4);
}
#schedule-overlay .cal-day { color: rgba(255,255,255,0.28); }
#schedule-overlay .cal-day.available { color: rgba(255,255,255,0.82); }
#schedule-overlay .cal-day.available::after { background: rgba(255,255,255,0.5); }
#schedule-overlay .cal-day.available:hover { background: rgba(255,255,255,0.12); border-radius: 100px; }
#schedule-overlay .cal-day.selected { background: rgba(255,255,255,0.85) !important; color: #1c1b08 !important; }
#schedule-overlay .cal-day.selected::after { background: rgba(0,0,0,0.25) !important; }
#schedule-overlay .cal-day.today:not(.unavailable):not(.selected) { color: rgba(255,255,255,0.9); }
#schedule-overlay .cal-day.unavailable { color: rgba(255,255,255,0.12); }

/* Time slots */
#schedule-overlay .time-slot {
  background: rgba(255,255,255,0.07);
  border-color: rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.82);
}
#schedule-overlay .time-slot:hover:not(.booked) {
  background: rgba(255,255,255,0.16);
  border-color: rgba(255,255,255,0.45);
  color: #fff;
}
#schedule-overlay .time-slot.selected {
  background: rgba(255,255,255,0.85);
  color: #1c1b08;
  border-color: transparent;
}
#schedule-overlay .time-slot.booked { color: rgba(255,255,255,0.75); text-decoration-color: rgba(255,255,255,0.35); }

/* Session card */
#schedule-overlay .session-card {
  background: rgba(255,255,255,0.07);
  border-color: rgba(255,255,255,0.14);
  border-radius: 10px;
}
#schedule-overlay .sc-change {
  border-color: rgba(255,255,255,0.25);
  color: rgba(255,255,255,0.6);
}
#schedule-overlay .sc-change:hover { border-color: #fff; color: #fff; }

/* Inputs */
#schedule-overlay input[type="text"],
#schedule-overlay input[type="email"],
#schedule-overlay input[type="tel"],
#schedule-overlay textarea {
  width: 100% !important;
  background: rgba(255,255,255,0.08) !important;
  border: none !important;
  border-radius: 8px !important;
  color: #fff !important;
  font-size: 12px !important;
  font-family: var(--font-sans) !important;
  padding: 10px 12px !important;
}
#schedule-overlay input::placeholder,
#schedule-overlay textarea::placeholder { color: rgba(255,255,255,0.5) !important; }

/* 12px across all form text */
#schedule-overlay .form-section *,
#schedule-overlay .form-group label,
#schedule-overlay .form-group span,
#schedule-overlay .disclaimer-label span,
#schedule-overlay .label-block,
#schedule-overlay .step-label,
#schedule-overlay .sc-label,
#schedule-overlay .sc-value,
#schedule-overlay .no-time-warning,
#schedule-overlay .form-error { font-size: 12px !important; }
#schedule-overlay input:focus,
#schedule-overlay textarea:focus {
  background: rgba(255,255,255,0.12) !important;
  outline: none;
}
#schedule-overlay textarea { resize: vertical; }

/* Multi-select details dropdown */
#schedule-overlay .multi-select-details { position: relative; }
#schedule-overlay .multi-select-details summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  background: rgba(255,255,255,0.08);
  border-radius: 8px;
  cursor: pointer;
  list-style: none;
  color: rgba(255,255,255,0.5);
  font-size: 12px;
  font-family: var(--font-sans);
  user-select: none;
}
#schedule-overlay .multi-select-details summary::-webkit-details-marker { display: none; }
#schedule-overlay .multi-select-details summary::after {
  content: '▾';
  font-size: 0.7rem;
  opacity: 0.45;
  transition: transform 0.18s;
  flex-shrink: 0;
  margin-left: 8px;
}
#schedule-overlay .multi-select-details[open] summary::after { transform: rotate(180deg); }
#schedule-overlay .multi-select-details summary.has-selection { color: #fff; }
#schedule-overlay .multi-select-options {
  position: absolute;
  left: 0; right: 0;
  top: calc(100% + 3px);
  background: rgba(38, 37, 13, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 8px;
  padding: 5px 0;
  z-index: 20;
  max-height: 210px;
  overflow-y: auto;
}
#schedule-overlay .multi-select-options label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  cursor: pointer;
  color: rgba(255,255,255,0.75);
  font-size: 12px;
  font-weight: 300;
  transition: background 0.1s;
}
#schedule-overlay .multi-select-options label:hover { background: rgba(255,255,255,0.06); }
#schedule-overlay .multi-select-options input[type="checkbox"],
#schedule-overlay .multi-select-options input[type="radio"] {
  accent-color: #fff;
  width: 14px; height: 14px;
  flex-shrink: 0;
  margin: 0;
}

/* Checkboxes */
#schedule-overlay .checkbox-item,
#schedule-overlay .checkbox-item span { color: rgba(255,255,255,0.75); }
#schedule-overlay .checkbox-item input[type="checkbox"] { accent-color: #fff; }
#schedule-overlay .disclaimer-label { color: rgba(255,255,255,0.45); font-size: 10px !important; }
#schedule-overlay .disclaimer-label span { font-size: 10px !important; }
#schedule-overlay .disclaimer-label input[type="checkbox"] { accent-color: #fff; }
#schedule-overlay .inquiry-toggle-label input[type="checkbox"] { accent-color: #fff; }

/* No-time warning */
#schedule-overlay .no-time-warning {
  background: rgba(255,200,100,0.08);
  border-color: rgba(255,200,100,0.2);
  color: rgba(255,200,120,0.85);
}

/* Form error */
#schedule-overlay .form-error {
  background: rgba(220,80,80,0.1);
  border-color: rgba(220,80,80,0.25);
  color: rgba(255,160,160,0.9);
}

/* Submit button */
#schedule-overlay .btn-submit {
  display: block;
  margin: 16px auto 20px;
  background: #fff;
  color: #1c1b08;
  border: none;
  border-radius: 8px;
  font-weight: 400;
}
#schedule-overlay .btn-submit:hover:not(:disabled) {
  background: rgba(255,255,255,0.88);
  color: #1c1b08;
}

/* Confirmation overlay */
#schedule-overlay .confirmation {
  background: rgba(28, 27, 8, 0.97);
}
#schedule-overlay .confirmation-inner h2,
#schedule-overlay .confirmation-inner p strong { color: #fff; }
#schedule-overlay .confirmation-inner p { color: rgba(255,255,255,0.65); }
#schedule-overlay .conf-details {
  background: rgba(255,255,255,0.07);
  border-color: rgba(255,255,255,0.14);
}
#schedule-overlay .conf-details-label { color: rgba(255,255,255,0.4) !important; }
#schedule-overlay .conf-details-value { color: #fff !important; }
#schedule-overlay .conf-mark { color: rgba(255,255,255,0.6); }
