﻿/* ===========================
    RESET
    =========================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ===========================
    BASE
    =========================== */
body {
  font-family: 'Cal Sans', sans-serif;
  background: #000;
  color: #fff;
  line-height: 1.5;
}

.lesson-inline-link {
  color: #f6c24a;
  font-weight: 600;
  text-decoration-thickness: .08em;
  text-underline-offset: .18em;
}

.lesson-inline-link:hover,
.lesson-inline-link:focus-visible {
  color: #ffe099;
}

.gtm-noscript-frame {
  width: 0;
  height: 0;
  border: 0;
  display: none;
  visibility: hidden;
}

/* SECTION START: Nav Mode Switching */
.mobile-head {
  display: none;
}

.mobile-navbar {
  position: relative;
  padding: 0.36rem 0.42rem 0.48rem;
  border: 3px solid #130c06;
  border-radius: 0 0 14px 14px;
  background: linear-gradient(180deg, #2f1f12 0%, #24170d 42%, #1a110a 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 223, 178, 0.16),
    inset 0 -10px 20px rgba(0, 0, 0, 0.5),
    0 10px 22px rgba(0, 0, 0, 0.42);
  overflow: hidden;
}

.mobile-navbar::before {
  content: "";
  position: absolute;
  inset: 6px 6px 8px;
  border-radius: 9px;
  background:
    repeating-linear-gradient(
      45deg,
      rgba(255, 255, 255, 0.04) 0,
      rgba(255, 255, 255, 0.04) 1px,
      rgba(0, 0, 0, 0.22) 1px,
      rgba(0, 0, 0, 0.22) 4px
    ),
    repeating-linear-gradient(
      -45deg,
      rgba(255, 255, 255, 0.03) 0,
      rgba(255, 255, 255, 0.03) 1px,
      rgba(0, 0, 0, 0.18) 1px,
      rgba(0, 0, 0, 0.18) 4px
    ),
    linear-gradient(180deg, #141414 0%, #0b0b0b 100%);
  border: 1px solid rgba(255, 230, 190, 0.14);
  box-shadow:
    inset 0 8px 14px rgba(255, 255, 255, 0.05),
    inset 0 -10px 16px rgba(0, 0, 0, 0.52);
  pointer-events: none;
  z-index: 0;
}

.mobile-navbar::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 8px;
  height: 5px;
  border-radius: 99px;
  background: linear-gradient(
    to right,
    #d4b878 0%,
    #c5a05f 16%,
    #ac8243 34%,
    #9f7437 50%,
    #ac8243 66%,
    #c5a05f 84%,
    #d4b878 100%
  );
  opacity: 0.9;
  box-shadow: 0 1px 8px rgba(172, 130, 67, 0.45);
  pointer-events: none;
  z-index: 0;
}

.mobile-nav-shell {
  position: relative;
  z-index: 1;
  padding-top: 0.25rem;
  padding-bottom: 0.28rem;
  border-radius: 10px;
}

.mobile-logo {
  width: 124px;
  height: auto;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.55));
}

.mobile-brand {
  padding: 0;
  margin-right: 0.6rem;
}

.mobile-toggler {
  border-color: rgba(212, 184, 120, 0.56);
  background: rgba(20, 20, 24, 0.85);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 2px 6px rgba(0, 0, 0, 0.35);
}

.mobile-toggler:focus {
  box-shadow: 0 0 0 0.18rem rgba(204, 174, 90, 0.25);
}

.mobile-head .navbar-collapse {
  margin-top: 0.4rem;
  padding: 0.5rem 0.45rem 0.35rem;
  border-radius: 9px;
  border: 1px solid rgba(212, 184, 120, 0.22);
  background: rgba(10, 10, 12, 0.68);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.mobile-head .nav-link {
  color: #f2f2f2;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 0.86rem;
  border-radius: 8px;
  border: 1px solid transparent;
  padding: 0.48rem 0.62rem;
}

.mobile-head .nav-link:hover,
.mobile-head .nav-link:focus {
  color: #f2d497;
  border-color: rgba(212, 184, 120, 0.34);
  background: rgba(212, 184, 120, 0.1);
}

:root {
  --amp-gold-gradient: linear-gradient(
    to right,
    #d4b878 0%,
    #c5a05f 16%,
    #ac8243 34%,
    #9f7437 50%,
    #ac8243 66%,
    #c5a05f 84%,
    #d4b878 100%
  );
}

/* SECTION START: Logo / Header Animations */
/* Heartbeat animation */
@keyframes heartbeat {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1); /* Grows the logo slightly */
  }
  100% {
    transform: scale(1); /* Returns to original size */
  }
}

@keyframes navShine {
  0%,
  18% {
    transform: translateX(-125%);
  }
  34% {
    transform: translateX(125%);
  }
  100% {
    transform: translateX(125%);
  }
}

/* Apply animation to the logo */
.logo {
  animation: heartbeat 1.5s ease-in-out 2;
}

/* SECTION START: Header Shell + Mesh + Trim */
/* ===========================
    AMP-HEAD HEADER
    =========================== */
header.amp-head {
  position: relative;
  width: 100%;
  padding: 10px 10px 12px;
  border-radius: 14px;
  background:
    linear-gradient(180deg, #2f1f12 0%, #24170d 42%, #1a110a 100%);
  border: 3px solid #130c06;
  box-shadow:
    inset 0 1px 0 rgba(255, 223, 178, 0.18),
    inset 0 -10px 20px rgba(0, 0, 0, 0.55),
    0 12px 28px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}

header.amp-head::before {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 10px;
  background:
    repeating-linear-gradient(
      45deg,
      rgba(255,255,255,0.04) 0,
      rgba(255,255,255,0.04) 1px,
      rgba(0,0,0,0.22) 1px,
      rgba(0,0,0,0.22) 4px
    ),
    repeating-linear-gradient(
      -45deg,
      rgba(255,255,255,0.035) 0,
      rgba(255,255,255,0.035) 1px,
      rgba(0,0,0,0.2) 1px,
      rgba(0,0,0,0.2) 4px
    ),
    linear-gradient(180deg, #141414 0%, #0b0b0b 100%);
  border: 1px solid rgba(255, 230, 190, 0.16);
  box-shadow:
    inset 0 10px 18px rgba(255, 255, 255, 0.06),
    inset 0 -10px 18px rgba(0, 0, 0, 0.55);
  z-index: 0;
  pointer-events: none;
}

header.amp-head::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 12px;
  border: 1px solid rgba(207, 166, 109, 0.32);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.5);
  pointer-events: none;
  z-index: 0;
}

/* ===========================
    AMP PANEL
    =========================== */
.amp-panel {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.25rem 0.5rem 1rem; /* reduced padding */
  text-align: center;
  z-index: 1;
}

.logo-container {
  position: relative;
  z-index: 2;
  margin-bottom: 0.5rem;
}

.logo {
  max-width: 200px;
  width: min(200px, 42vw);
  height: auto;
  transition: transform 0.3s ease;
}
.logo:hover {
  transform: scale(1.05);
}

/* SECTION START: Control Panel / Knob Navigation */
/* ===========================
    CONTROL PANEL
    =========================== */
.control-panel {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  background: var(--amp-gold-gradient);
  padding: 0.5rem 0.25rem; /* reduced */
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.35),
    inset 0 -4px 10px rgba(0,0,0,0.9);
  overflow: hidden;
}

.control-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    115deg,
    transparent 0%,
    rgba(255,255,255,0.06) 34%,
    rgba(255,255,255,0.34) 48%,
    rgba(255,255,255,0.08) 63%,
    transparent 100%
  );
  transform: translateX(-125%);
  animation: navShine 9s ease-in-out infinite;
  pointer-events: none;
}

.control-panel::after {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 45%;
  background: linear-gradient(to bottom, rgba(255,255,255,0.24), transparent);
  pointer-events: none;
}

.control-panel ul {
  list-style: none;
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  margin: 0;
  padding: 0;
  position: relative;
  z-index: 1;
}

.control-panel ul li {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ===========================
    POWER SWITCH
    =========================== */
.power-switch {
  perspective: 200px;
  cursor: pointer;
}

.switch {
  position: relative;
  width: 2.2rem;  /* was 2.8rem */
  height: 3.5rem; /* was 4.5rem */
  background: #200;
  border: 2px solid #555;
  border-radius: 3px;
  box-shadow:
    0 4px 6px rgba(0,0,0,0.6),
    inset 0 3px 3px rgba(255,255,255,0.1),
    inset 0 -3px 3px rgba(0,0,0,0.5);
  transform-style: preserve-3d;
  transform-origin: center center;
  transform: rotateX(20deg);
  transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.switch::before,
.switch::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-size: 0.9rem;
  font-weight: bold;
  backface-visibility: hidden;
}
.switch::before { content: 'I'; top: 0.6rem; }
.switch::after  { content: 'O'; bottom: 0.6rem; }

.power-switch.on .switch {
  background: #C00;
  transform: rotateX(-20deg);
  box-shadow:
    0 0 8px rgba(255,0,0,0.8),
    0 4px 6px rgba(0,0,0,0.6),
    inset 0 3px 3px rgba(255,255,255,0.1),
    inset 0 -3px 3px rgba(0,0,0,0.5);
}

.power-switch:hover .switch {
  transform: rotateX(20deg) translateY(1px);
}

/* ===========================
    KNOBS
    =========================== */
.knob {
  position: relative;
  width: 2.4rem;  /* was 3.2rem */
  height: 2.4rem;
  border-radius: 50%;
  background: radial-gradient(
    circle at center,
    #ddd 0%,
    #888 50%,
    #444 100%
  );
  border: 2px solid #666;
  box-shadow:
    0 2px 4px rgba(0,0,0,0.6),
    inset 0 2px 2px rgba(255,255,255,0.1),
    inset 0 -2px 2px rgba(0,0,0,0.7);
  transition: transform 0.4s ease;
  text-decoration: none;
}

.knob::before {
  content: '';
  position: absolute;
  top: 5px;
  left: 50%;
  width: 2px;
  height: 8px;
  background: #222;
  border-radius: 1px;
  transform: translateX(-50%);
  transition: background 0.2s ease;
}

.knob-label {
  margin-top: 0.3rem; /* was 0.4rem */
  font-size: 0.65rem; /* was 0.75rem */
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #ffffff;
  transition: color 0.2s ease;
}

.knob:hover,
.knob:focus,
.knob.active {
  transform: rotate(180deg);
}

.knob:hover::before,
.knob:focus::before,
.knob.active::before {
  background: #000;
}

.knob:hover + .knob-label,
.knob:focus + .knob-label,
.knob.active + .knob-label {
  color: #fff;
}

/* SECTION START: Header Responsive Rules */
/* ===========================
    RESPONSIVE
    =========================== */
@media (max-width: 600px) {
  .amp-panel {
    padding: 1.5rem 1rem 0.5rem;
  }
  .logo-container {
    margin-bottom: -1rem;
  }
  .control-panel {
    margin-left: calc(50% - 50vw);
    padding: 0.75rem 0.5rem;
  }
  .control-panel ul {
    flex-direction: column;
    gap: 1rem;
  }
  .knob {
    width: 2.4rem;
    height: 2.4rem;
  }
  .switch {
    width: 2.4rem;
    height: 3.6rem;
  }
}

@media (max-width: 991.98px) {
  .mobile-head {
    display: block;
  }

  .amp-head {
    display: none;
  }
}

@media (min-width: 992px) {
  .mobile-head {
    display: none;
  }
}

/* ===========================
    CAROUSEL
    =========================== */
carousel-item {
  display: none;
  position: relative;
  transition: transform 0.6s ease;
}

.carousel-item.active {
  display: block;
}

.carousel-item img {
  width: 100%;
  height: 650px;
  object-fit: cover;
  display: block;
}

/* SECTION START: Carousel Controls + Overlay Content */
/* ===========================
    SLIDER ARROWS
    =========================== */
.carousel-control-prev-icon,
.carousel-control-next-icon {
  background: radial-gradient(circle at center, #ccc 0%, #666 40%, #333 100%);
  border: 2px solid #222;
  border-radius: 50%;
  width: 3.5rem;
  height: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: #000;
  box-shadow:
    0 2px 4px rgba(0, 0, 0, 0.5),
    inset 0 -2px 2px rgba(255, 255, 255, 0.2),
    inset 0 2px 2px rgba(0, 0, 0, 0.6);
  transition: transform 0.2s ease, background 0.2s ease;
  text-align: center;
}

.carousel-control-prev-icon::after {
  content: "\2190";
}

.carousel-control-next-icon::after {
  content: "\2192";
}

.carousel-control-prev:hover .carousel-control-prev-icon,
.carousel-control-next:hover .carousel-control-next-icon {
  transform: scale(1.1);
  background: radial-gradient(circle at center, #eee 0%, #888 60%, #444 100%);
  color: #111;
}
/* Carousel overlay */
.carousel-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8); /* More opaque overlay */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  pointer-events: none; /* Prevent interaction with the overlay */
  z-index: 1; /* Ensure overlay is beneath the button */
}

.overlay-text {
  color: #fff;
  font-size: 3rem; /* Larger title */
  font-family: 'Cal Sans', sans-serif;
  font-weight: 600;
  padding: 1rem;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.6);
  margin-bottom: 1rem;
}

.overlay-description {
  color: #ddd;
  font-size: 1.2rem;
  font-family: 'Cal Sans', sans-serif;
  margin-bottom: 1.5rem;
  max-width: 80%;
  line-height: 1.5;
}

/* Button styling */
.overlay-btn {
  padding: 10px 30px;
  font-size: 1rem;
  background: var(--amp-gold-gradient);
  border: 1px solid rgba(69, 43, 14, 0.55);
  border-radius: 30px;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: filter 0.3s ease;
  position: relative; /* Ensure button is positioned correctly */
  z-index: 2; /* Make sure the button stays on top of the overlay */
  pointer-events: auto; /* Allow button to be clickable */
}

.overlay-btn:hover {
  filter: brightness(1.05);
}

.overlay-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  pointer-events: auto;
}

/* SECTION START: Text Contrast Helpers */
/* Improve white text contrast on bright accents */
.knob-label,
.overlay-text,
.overlay-description,
.overlay-btn,
.feature-box h3,
.feature-box p {
  text-shadow:
    -1px -1px 0 #000,
    1px -1px 0 #000,
    -1px 1px 0 #000,
    1px 1px 0 #000;
}

/* SECTION START: Hero Video Layering (keep in sync with HTML carousel) */
/* ===========================
    HERO VIDEO BACKGROUND
    =========================== */
.hero-video {
  position: relative;
  width: 100%;
  height: clamp(700px, 82vh, 860px);
  overflow: hidden;
}

.hero-video::after {
  content: none;
}

.hero-video__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  backface-visibility: hidden;
  will-change: transform;
  z-index: 0;
}

.hero-video .carousel,
.hero-video .carousel-inner {
  height: 100%;
  position: relative;
  z-index: 1;
}

.hero-video .carousel-item {
  position: relative;
  height: 100%;
}

.hero-video .carousel-overlay {
  position: absolute;
  inset: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-top: clamp(10rem, 24vh, 14rem);
  padding-inline: clamp(1rem, 4vw, 2.25rem);
  align-items: center;
  background: rgba(0,0,0,0.6);
}

.hero-video .carousel-indicators {
  z-index: 2;
}

@media (max-width: 768px) {
  .hero-video {
    height: clamp(470px, 70vh, 600px);
  }

  .hero-video .carousel-overlay {
    justify-content: flex-start;
    padding-inline: clamp(1rem, 4vw, 1.4rem);
    padding-top: clamp(6.75rem, 19vh, 9rem);
  }

  .overlay-text {
    font-size: clamp(1.75rem, 7vw, 2.35rem);
    line-height: 1.1;
    margin-bottom: 0.75rem;
    padding: 0.5rem;
  }

  .overlay-description {
    font-size: clamp(0.95rem, 3.6vw, 1.1rem);
    line-height: 1.45;
    max-width: min(92%, 34rem);
    margin-bottom: 1rem;
  }

  .overlay-cta-group {
    flex-direction: column;
    width: min(90%, 340px);
    gap: 0.6rem;
  }

  .overlay-cta-group .overlay-btn {
    width: 100%;
    padding: 0.75rem 1rem;
    min-height: 44px;
    font-size: 0.95rem;
    letter-spacing: 0.04em;
  }

  .carousel-control-prev,
  .carousel-control-next {
    display: none;
  }
}

/* SECTION START: Global Footer Visualizer Transparency */
.site-footer {
  background: transparent !important;
}

.site-footer .audio-visualizer--footer {
  background: none !important;
}

.site-footer .audio-visualizer--footer::before,
.site-footer .audio-visualizer--footer::after {
  opacity: 0 !important;
  background: none !important;
}
/* SECTION END: Global Footer Visualizer Transparency */

/* SECTION START: Global Back To Top Button */
body .back-to-top {
  position: fixed !important;
  right: clamp(10px, 1.6vw, 16px) !important;
  top: calc(50% - 25px) !important;
  bottom: auto !important;
  left: auto !important;
  width: 50px;
  height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(86, 57, 21, 0.78);
  border-radius: 999px;
  background: var(--amp-gold-gradient);
  color: #1f1408;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  z-index: 1200;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  box-shadow:
    0 14px 26px rgba(0, 0, 0, 0.52),
    0 4px 10px rgba(0, 0, 0, 0.36),
    inset 0 1px 0 rgba(255, 244, 216, 0.62),
    inset 0 -5px 9px rgba(83, 56, 18, 0.52);
  animation: site-back-to-top-float 2.8s ease-in-out infinite;
  transition:
    opacity 220ms ease,
    visibility 220ms ease,
    filter 220ms ease,
    box-shadow 220ms ease;
}

body .back-to-top span {
  display: block;
  transform: translateY(-1px);
}

body .back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

body .back-to-top:hover {
  filter: brightness(1.04);
  box-shadow:
    0 18px 30px rgba(0, 0, 0, 0.62),
    0 5px 12px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 248, 228, 0.66),
    inset 0 -6px 11px rgba(83, 56, 18, 0.56);
}

body .back-to-top:focus-visible {
  outline: 2px solid rgba(255, 235, 190, 0.95);
  outline-offset: 2px;
}

@keyframes site-back-to-top-float {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-5px);
  }
}

@media (max-width: 700px) {
  body .back-to-top {
    width: 46px;
    height: 46px;
    font-size: 1.12rem;
    right: 10px !important;
    top: calc(50% - 23px) !important;
    bottom: auto !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  body .back-to-top {
    animation: none;
    transition: opacity 180ms ease, visibility 180ms ease;
  }
}
/* SECTION END: Global Back To Top Button */
