/* Chrome mounts: hide until includes.js injects partials */
html.chrome-pending #site-nav,
html.chrome-pending #book,
html.chrome-pending #site-footer {
  opacity: 0;
}
#site-nav,
#book,
#site-footer {
  transition: opacity 0.2s ease;
}

/* Sticky nav sits over in-page jumps to Book / contact */
#book {
  scroll-margin-top: var(--nav-h);
}

/* ------------------------------- Contact -------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  margin-top: 16px;
}
@media (min-width: 901px) {
  .contact-grid { grid-template-columns: 1fr 1.1fr; gap: clamp(40px, 6vw, 90px); margin-top: 20px; }
}
.contact-list { list-style: none; padding: 0; margin-top: 26px; }
.contact-list li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 16px 0;
  border-bottom: 1px solid rgba(212, 175, 55, 0.22);
}
@media (min-width: 561px) {
  .contact-list { margin-top: 34px; }
  .contact-list li { gap: 18px; padding: 18px 0; }
}
.contact-list svg { flex: 0 0 auto; margin-top: 3px; }
.contact-list a { color: var(--text-on-dark); text-decoration: none; }
.contact-list a:hover { color: var(--gold); }
.contact-list .label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 3px;
}
.form {
  /* Tertiary (blue-violet) tint: the ambient blue rgba(86,158,220)
     blended with the ambient purple rgba(146,88,214) → rgba(116,123,217). */
  background: rgba(116, 123, 217, 0.16);
  border: 1px solid rgba(116, 123, 217, 0.4);
  border-radius: 22px;
  padding: clamp(24px, 4vw, 44px);
  backdrop-filter: blur(20px) saturate(170%);
  -webkit-backdrop-filter: blur(20px) saturate(170%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 18px 48px rgba(10, 6, 18, 0.3);
}
@media (min-width: 561px) {
  .form { border-radius: 26px; }
}
.form-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 561px) {
  .form-grid { grid-template-columns: 1fr 1fr; gap: 18px; }
}
.field { display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label {
  font-size: 11px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold);
}
.field input, .field select, .field textarea {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--text-on-dark);
  background: rgba(15, 10, 24, 0.5);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: 12px;
  padding: 14px 16px;
  outline: none;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.18);
}
.form .btn { width: 100%; border: 0; cursor: pointer; font-family: var(--font-body); margin-top: 20px; }
.form-status { margin-top: 14px; font-size: 14px; color: var(--gold-light); min-height: 20px; }

/* -------------------------------- Footer -------------------------------- */
.footer {
  background: rgba(24, 12, 34, 0.32);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  color: var(--text-dim-dark);
  padding: 54px clamp(18px, 5vw, 80px) 32px;
  border-top: 1px solid rgba(212, 175, 55, 0.25);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
@media (min-width: 561px) {
  .footer { padding: 70px clamp(22px, 5vw, 80px) 40px; }
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
  text-align: center;
  justify-items: center;
}
@media (min-width: 901px) {
  .footer-inner { grid-template-columns: auto 1fr auto; gap: 50px; text-align: left; justify-items: stretch; }
}
.footer-logo img { width: 130px; height: auto; }
@media (min-width: 561px) {
  .footer-logo img { width: 150px; }
}
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; justify-content: center; list-style: none; padding: 0; }
@media (min-width: 561px) {
  .footer-links { gap: 26px; }
}
.footer-links a {
  text-decoration: none;
  color: var(--text-dim-dark);
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}
.footer-links a:hover, .footer-links a.is-active { color: var(--gold); }
.footer-meta { text-align: center; font-size: 13.5px; line-height: 2; }
@media (min-width: 901px) {
  .footer-meta { text-align: right; }
}
.footer-meta address {
  font-style: inherit;
  margin: 0 0 0.25em;
}
.footer-meta a { color: var(--gold-light); text-decoration: none; }
.footer-bottom {
  max-width: 1200px;
  margin: 34px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(212, 175, 55, 0.14);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  opacity: 0.75;
  text-align: center;
}
@media (min-width: 561px) {
  .footer-bottom { margin: 44px auto 0; padding-top: 22px; flex-direction: row; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 12.5px; text-align: left; }
}
.footer-media-credit {
  flex-basis: 100%;
  font-size: 11px;
  letter-spacing: 0.02em;
  opacity: 0.9;
  text-align: center;
}
.footer-media-credit a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.footer-media-credit a:hover { color: var(--gold-light); }

/* --------------------------- Reduced motion ----------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .reveal,
  .instructor-media.reveal { opacity: 1; transform: none; }
  #balloons { display: none; }
  /* Skip the splash entirely and show the hero as normal. */
  .splash { display: none; }
  html.has-splash body { overflow: visible; }
  html.has-splash #site-nav,
  html.has-splash .nav,
  html.has-splash main,
  html.has-splash #site-footer {
    pointer-events: auto;
  }
  html.has-splash .hero-logo,
  html.has-splash .hero .heading-xl,
  html.has-splash .hero .lede,
  html.has-splash .hero .hero-actions,
  html.has-splash .hero .scroll-cue {
    opacity: 1;
    transform: none;
  }
}
