:root {
  --abyss-teal: #0a2e38;
  --deep-ocean: #113845;
  --peacock-teal: #2f8c8b;
  --mist-seafoam: #cfe6e2;
  --pearl-cream: #f3eee4;
  --coral-terracotta: #d58a74;
  --champagne-gold: #c9ae74;
  --ice-white: #e8f7f5;
  --ink: #04181e;
  --muted: rgba(232, 247, 245, 0.72);
  --glass: rgba(232, 247, 245, 0.08);
  --glass-strong: rgba(10, 46, 56, 0.72);
  --line: rgba(243, 238, 228, 0.16);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--abyss-teal);
}

body {
  min-width: 320px;
  margin: 0 !important;
  color: var(--pearl-cream) !important;
  background:
    radial-gradient(circle at 68% 10%, rgba(232, 247, 245, 0.16), transparent 22rem),
    radial-gradient(circle at 8% 18%, rgba(47, 140, 139, 0.28), transparent 22rem),
    linear-gradient(135deg, #04181e 0%, #0a2e38 42%, #113845 100%) !important;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif !important;
  line-height: 1.68;
  overflow-x: hidden;
}

body::before,
body::after {
  position: fixed;
  inset: 0;
  content: "";
  pointer-events: none;
  z-index: -2;
}

body::before {
  background:
    repeating-linear-gradient(96deg, rgba(243, 238, 228, 0.12) 0 1px, transparent 1px 88px),
    radial-gradient(ellipse at 64% 0%, rgba(243, 238, 228, 0.18), transparent 32rem);
  filter: blur(8px);
  opacity: 0.55;
  transform: rotate(-5deg);
}

body::after {
  background-image:
    radial-gradient(circle, rgba(243, 238, 228, 0.45) 0 1px, transparent 1.5px),
    radial-gradient(circle, rgba(207, 230, 226, 0.24) 0 1px, transparent 1.5px);
  background-position: 14% 18%, 78% 44%;
  background-size: 190px 220px, 260px 300px;
  opacity: 0.3;
  animation: siteParticles 18s ease-in-out infinite;
}

a {
  color: inherit;
}

img,
video {
  max-width: 100%;
  height: auto;
}

body .gif-banner,
body > img[src*="HarborLight Studio"],
body > img[src*="20250212_0004"] {
  width: clamp(150px, 14vw, 180px) !important;
  max-width: 180px !important;
  height: auto !important;
  margin: 88px 0 0 clamp(20px, 8vw, 130px) !important;
  padding: 8px !important;
  border: 1px solid rgba(243, 238, 228, 0.12);
  border-radius: 12px !important;
  opacity: 0.86;
  mix-blend-mode: screen;
  background: rgba(232, 247, 245, 0.055);
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.22), 0 0 34px rgba(207, 230, 226, 0.14);
  filter: drop-shadow(0 0 18px rgba(207, 230, 226, 0.22));
  transform-origin: 50% 50%;
  animation: badgeFloat 9s ease-in-out infinite;
}

body:has(.schedule-hero) .gif-banner,
body:has(.schedule-hero) > img[src*="HarborLight Studio"],
body:has(.schedule-hero) > img[src*="20250212_0004"] {
  width: min(150px, 28vw) !important;
  margin-top: 72px !important;
  opacity: 0.68;
}

.page > .gif-banner {
  margin-left: 0 !important;
  margin-top: 0 !important;
}

.decorative-shape,
.shape,
.trail {
  display: none !important;
}

header:not(.site-header) {
  width: min(calc(100% - 32px), var(--max));
  margin: 20px auto 0;
  padding: clamp(28px, 6vw, 74px) clamp(20px, 4vw, 50px) !important;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(4, 24, 30, 0.88), rgba(10, 46, 56, 0.56)),
    radial-gradient(circle at 78% 18%, rgba(201, 174, 116, 0.18), transparent 18rem);
  box-shadow: 0 34px 120px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px);
}

header:not(.site-header) h1 {
  max-width: 850px;
  margin: 0 !important;
  color: var(--pearl-cream);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.8rem, 7vw, 6.2rem) !important;
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
  -webkit-text-stroke: 0.55px rgba(201, 174, 116, 0.54);
  text-shadow:
    0 1px 0 rgba(255, 248, 220, 0.38),
    0 0 10px rgba(201, 174, 116, 0.22),
    0 0 28px rgba(201, 174, 116, 0.18),
    0 18px 50px rgba(0, 0, 0, 0.34);
  background: linear-gradient(180deg, #fff9ec 0%, #f3eee4 42%, #c9ae74 78%, #f3eee4 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

header:not(.site-header)::after {
  display: block;
  width: 92px;
  height: 1px;
  margin-top: 26px;
  content: "";
  background: linear-gradient(90deg, transparent, var(--champagne-gold), transparent);
}

body:has(.schedule-hero) header:not(.site-header) {
  margin-top: 14px;
  padding: clamp(20px, 3.8vw, 42px) clamp(18px, 4vw, 42px) !important;
}

body:has(.schedule-hero) header:not(.site-header) h1,
body:has(.secondary-visual-hero) header:not(.site-header) h1 {
  font-size: clamp(1.7rem, 3.2vw, 3rem) !important;
  line-height: 1.02;
}

body:has(.schedule-hero) nav {
  margin-bottom: 12px !important;
}

body:has(.secondary-visual-hero) header:not(.site-header) {
  margin-top: 14px;
  padding: clamp(16px, 2.2vw, 26px) clamp(18px, 4vw, 34px) !important;
}

body:has(.secondary-visual-hero) nav,
body:has(.secondary-visual-hero) .site-enhanced-nav {
  margin-bottom: 12px !important;
}

body:has(.secondary-visual-hero) .site-page-label {
  margin-top: 50px;
}

nav,
.site-enhanced-nav {
  position: sticky;
  top: 14px;
  z-index: 30;
  width: min(calc(100% - 32px), var(--max));
  margin: 18px auto 20px !important;
  padding: 10px 12px !important;
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center;
  justify-content: center;
  gap: 8px !important;
  border: 1px solid rgba(243, 238, 228, 0.16) !important;
  border-radius: 999px !important;
  background: rgba(4, 24, 30, 0.58) !important;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(20px);
}

nav a,
.site-enhanced-nav a,
.button,
button.button,
.btn-kandinsky {
  min-height: 40px;
  padding: 10px 15px !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(243, 238, 228, 0.2) !important;
  border-radius: 999px !important;
  color: var(--pearl-cream) !important;
  background: rgba(232, 247, 245, 0.08) !important;
  box-shadow: none !important;
  font-size: 0.72rem !important;
  font-weight: 850 !important;
  letter-spacing: 0.12em;
  text-decoration: none !important;
  text-transform: uppercase;
  transition: transform 220ms ease, border-color 220ms ease, background 220ms ease, box-shadow 220ms ease !important;
}

nav a:hover,
nav a:focus-visible,
.button:hover,
.button:focus-visible,
button.button:hover,
.btn-kandinsky:hover {
  transform: translateY(-2px) !important;
  border-color: rgba(201, 174, 116, 0.72) !important;
  background: rgba(232, 247, 245, 0.13) !important;
  box-shadow: 0 0 24px rgba(201, 174, 116, 0.12) !important;
}

nav a[aria-current="page"] {
  border-color: rgba(213, 138, 116, 0.72) !important;
  background: linear-gradient(135deg, rgba(213, 138, 116, 0.45), rgba(201, 174, 116, 0.18)) !important;
}

.secondary-menu-shell {
  position: sticky;
  top: 14px;
  z-index: 1200;
  width: min(calc(100% - 32px), var(--max));
  min-height: 63px;
  margin: 18px auto 20px;
  display: flex;
  align-items: center;
  pointer-events: none;
}

body:has(.secondary-visual-hero) .secondary-menu-shell {
  margin-bottom: 12px;
}

.secondary-menu-toggle {
  width: auto;
  min-width: 116px;
  min-height: 50px;
  padding: 10px 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  border: 1px solid rgba(243, 238, 228, 0.2);
  border-radius: 999px;
  color: var(--pearl-cream);
  background: rgba(4, 24, 30, 0.72);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(20px);
  font: inherit;
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  pointer-events: auto;
  transition: border-color 220ms ease, background 220ms ease, box-shadow 220ms ease;
}

.secondary-menu-toggle:hover,
.secondary-menu-toggle:focus-visible,
.secondary-menu-shell.is-open .secondary-menu-toggle {
  border-color: rgba(201, 174, 116, 0.68);
  background: rgba(4, 24, 30, 0.9);
  box-shadow: 0 0 28px rgba(201, 174, 116, 0.12), 0 18px 60px rgba(0, 0, 0, 0.28);
}

.secondary-menu-toggle:focus-visible {
  outline: 2px solid rgba(232, 247, 245, 0.72);
  outline-offset: 3px;
}

.secondary-menu-toggle__icon {
  position: relative;
  width: 19px;
  height: 14px;
  display: block;
}

.secondary-menu-toggle__icon i {
  position: absolute;
  left: 0;
  width: 19px;
  height: 1px;
  display: block;
  background: currentColor;
  transition: top 220ms ease, transform 220ms ease;
}

.secondary-menu-toggle__icon i:first-child { top: 3px; }
.secondary-menu-toggle__icon i:last-child { top: 10px; }

.secondary-menu-shell.is-open .secondary-menu-toggle__icon i:first-child {
  top: 7px;
  transform: rotate(45deg);
}

.secondary-menu-shell.is-open .secondary-menu-toggle__icon i:last-child {
  top: 7px;
  transform: rotate(-45deg);
}

.secondary-menu-panel {
  position: absolute !important;
  top: calc(100% + 8px) !important;
  left: 0 !important;
  z-index: 1210 !important;
  width: min(360px, calc(100vw - 32px)) !important;
  max-height: calc(100vh - 110px);
  margin: 0 !important;
  padding: 12px !important;
  display: grid !important;
  grid-template-columns: 1fr;
  align-items: stretch;
  justify-content: stretch;
  gap: 8px !important;
  overflow-y: auto;
  border: 1px solid rgba(243, 238, 228, 0.18) !important;
  border-radius: 12px !important;
  background: rgba(4, 24, 30, 0.94) !important;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.44) !important;
  backdrop-filter: blur(24px);
  pointer-events: auto;
}

.secondary-menu-panel[hidden] {
  display: none !important;
}

.secondary-menu-panel a {
  width: 100%;
  justify-content: flex-start !important;
  text-align: left;
}

.language-toggle {
  position: fixed !important;
  top: 16px !important;
  right: 16px !important;
  z-index: 60 !important;
}

.language-toggle select,
.language-select {
  min-height: 38px;
  border: 1px solid rgba(243, 238, 228, 0.24) !important;
  border-radius: 999px !important;
  color: var(--pearl-cream) !important;
  background: rgba(4, 24, 30, 0.78) !important;
  padding: 7px 12px !important;
  font-weight: 800;
  backdrop-filter: blur(16px);
}

body > button.button,
body .canvas > button.button {
  margin-left: clamp(18px, 4vw, 52px) !important;
  margin-bottom: 18px;
  border-color: rgba(213, 138, 116, 0.62) !important;
  background: linear-gradient(135deg, rgba(213, 138, 116, 0.72), rgba(201, 174, 116, 0.26)) !important;
}

section,
.page,
.panel,
.card {
  width: min(calc(100% - 32px), var(--max)) !important;
  max-width: var(--max) !important;
  margin: 22px auto !important;
  padding: clamp(22px, 4vw, 42px) !important;
  border: 1px solid var(--line) !important;
  border-radius: 10px !important;
  color: var(--pearl-cream) !important;
  background:
    radial-gradient(circle at var(--site-x, 50%) var(--site-y, 40%), rgba(207, 230, 226, 0.14), transparent 18rem),
    linear-gradient(135deg, rgba(232, 247, 245, 0.1), rgba(4, 24, 30, 0.48)) !important;
  box-shadow: 0 28px 100px rgba(0, 0, 0, 0.22) !important;
  backdrop-filter: blur(18px);
}

section h2,
.card h2,
.panel h2 {
  margin: 0 0 22px !important;
  color: var(--pearl-cream) !important;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.05rem, 5vw, 4.4rem) !important;
  font-weight: 400 !important;
  line-height: 0.98;
  letter-spacing: 0.02em !important;
}

section h3,
.course h3,
.card h2 {
  color: var(--ice-white) !important;
  letter-spacing: 0.06em;
}

p,
li,
td,
th,
label {
  color: var(--muted) !important;
}

.course {
  position: relative;
  overflow: hidden;
  margin: 24px 0 !important;
  padding: clamp(18px, 3vw, 30px) !important;
  border: 1px solid rgba(243, 238, 228, 0.14) !important;
  border-radius: 10px !important;
  background: rgba(232, 247, 245, 0.07) !important;
  box-shadow: inset 0 1px 0 rgba(243, 238, 228, 0.08) !important;
  transition: transform 260ms ease, border-color 260ms ease, background 260ms ease;
}

.course::after,
.card::after,
.gallery video::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background: linear-gradient(115deg, transparent, rgba(243, 238, 228, 0.06), transparent);
  opacity: 0;
  transition: opacity 260ms ease;
}

.course:hover,
.course:focus-within,
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(201, 174, 116, 0.46) !important;
  background: rgba(232, 247, 245, 0.1) !important;
}

.course:hover::after,
.course:focus-within::after,
.card:hover::after {
  opacity: 1;
}

.course h3 {
  display: grid;
  grid-template-columns: minmax(160px, 0.36fr) minmax(0, 1fr);
  gap: clamp(16px, 3vw, 30px);
  align-items: center;
  margin: 0 0 18px !important;
}

.course h3 img {
  width: 100% !important;
  max-width: 360px !important;
  margin: 0 !important;
  border: 1px solid rgba(243, 238, 228, 0.15);
  border-radius: 10px !important;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.24);
}

.course h3 span::before {
  content: "" !important;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.gallery video,
section video {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border: 1px solid rgba(243, 238, 228, 0.16);
  border-radius: 10px !important;
  background: rgba(0, 0, 0, 0.38);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.26);
  transition: transform 260ms ease, border-color 260ms ease;
}

.gallery video:hover,
section video:hover {
  transform: translateY(-4px) scale(1.01);
  border-color: rgba(201, 174, 116, 0.48);
}

table {
  min-width: 680px;
  width: 100%;
  border-collapse: collapse !important;
  overflow: hidden;
  border: 1px solid rgba(243, 238, 228, 0.16) !important;
  border-radius: 10px;
  background: rgba(4, 24, 30, 0.38);
}

table th,
table td {
  padding: 14px 16px !important;
  border: 1px solid rgba(243, 238, 228, 0.1) !important;
}

table th {
  color: var(--pearl-cream) !important;
  background: rgba(47, 140, 139, 0.34) !important;
  text-transform: uppercase;
  letter-spacing: 0.09em;
}

table tr:nth-child(even) td {
  background: rgba(232, 247, 245, 0.04);
}

section:has(table) {
  overflow-x: auto;
}

#popup-form {
  width: min(92vw, 520px) !important;
  max-height: min(84vh, 760px);
  overflow: auto;
  background:
    radial-gradient(circle at 84% 16%, rgba(213, 138, 116, 0.16), transparent 14rem),
    rgba(4, 24, 30, 0.94) !important;
  color: var(--pearl-cream) !important;
  border: 1px solid rgba(243, 238, 228, 0.2);
  border-radius: 14px !important;
  box-shadow: 0 36px 120px rgba(0, 0, 0, 0.45) !important;
  backdrop-filter: blur(22px);
}

form input,
form textarea,
form select {
  width: 100%;
  margin-top: 6px;
  padding: 11px 12px;
  border: 1px solid rgba(243, 238, 228, 0.18);
  border-radius: 8px;
  color: var(--pearl-cream);
  background: rgba(232, 247, 245, 0.08);
}

form input:focus,
form textarea:focus {
  outline: 2px solid rgba(201, 174, 116, 0.42);
  outline-offset: 2px;
}

form button {
  min-height: 40px;
  border-radius: 999px !important;
  font-weight: 850;
}

.founder-photo {
  max-width: 180px !important;
  border: 1px solid rgba(243, 238, 228, 0.16);
  border-radius: 12px !important;
  background: rgba(232, 247, 245, 0.08);
}

footer,
.footer {
  width: min(calc(100% - 32px), var(--max));
  margin: 28px auto 0 !important;
  padding: 20px clamp(18px, 4vw, 36px) !important;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
  border-top: 1px solid rgba(243, 238, 228, 0.14);
  border-radius: 0 !important;
  color: rgba(243, 238, 228, 0.58) !important;
  background: transparent !important;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.page .logo-panel,
.page .lang-panel,
.page .hero-panel,
.page .buttons-panel,
.page .card {
  width: auto !important;
  margin: 0 !important;
}

.page {
  display: block !important;
}

.buttons-panel {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)) !important;
  gap: 16px !important;
}

.site-page-label {
  width: min(calc(100% - 32px), var(--max));
  margin: 68px auto -4px;
  color: var(--champagne-gold);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.secondary-ocean-hero {
  --ocean-parallax-x: 0px;
  --ocean-parallax-y: 0px;
  position: relative;
  left: 50%;
  width: 100vw !important;
  max-width: none !important;
  height: clamp(620px, 88svh, 900px) !important;
  min-height: 620px !important;
  margin: 0 0 clamp(36px, 6vw, 86px) -50vw !important;
  padding: 0 !important;
  overflow: hidden !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: #061f27 !important;
  box-shadow: 0 36px 100px rgba(0, 0, 0, 0.34) !important;
  isolation: isolate;
}

.secondary-ocean-hero__media-wrap {
  position: absolute;
  inset: -12% -1% -2%;
  transform: translate3d(var(--ocean-parallax-x), var(--ocean-parallax-y), 0);
  transition: transform 900ms cubic-bezier(0.2, 0.72, 0.2, 1);
  will-change: transform;
}

.secondary-ocean-hero__media {
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover;
  object-position: 62% center;
  filter: saturate(0.92) contrast(1.03) brightness(0.94);
  transform: scale(1.012);
  animation: secondaryOceanDrift 22s ease-in-out infinite;
  will-change: transform;
}

.secondary-ocean-hero__shade {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(4, 24, 30, 0.76) 0%, rgba(4, 24, 30, 0.34) 12%, transparent 30%),
    linear-gradient(90deg, rgba(4, 24, 30, 0.16), transparent 40%, rgba(4, 24, 30, 0.08)),
    linear-gradient(180deg, transparent 68%, rgba(4, 24, 30, 0.24) 82%, #0a2e38 100%);
}

.secondary-ocean-hero__shade::before {
  position: absolute;
  inset: 0 0 auto;
  height: 15%;
  content: "";
  background: linear-gradient(180deg, rgba(4, 24, 30, 0.68), rgba(4, 24, 30, 0.1));
  backdrop-filter: blur(4px);
  mask-image: linear-gradient(180deg, #000 0 58%, transparent 100%);
}

.secondary-ocean-hero__shade::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    radial-gradient(circle at 66% 40%, rgba(232, 247, 245, 0.08), transparent 28%),
    linear-gradient(108deg, transparent 42%, rgba(232, 247, 245, 0.08) 55%, transparent 66%);
  mix-blend-mode: screen;
  opacity: 0.7;
}

.secondary-ocean-hero__scroll-cue {
  position: absolute;
  left: 50%;
  bottom: clamp(22px, 4vh, 42px);
  z-index: 4;
  display: grid;
  justify-items: center;
  gap: 9px;
  color: rgba(243, 238, 228, 0.76);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.62);
  transform: translateX(-50%);
  animation: secondaryScrollCue 3.4s ease-in-out infinite;
}

.secondary-ocean-hero__scroll-cue i {
  position: relative;
  width: 1px;
  height: 30px;
  overflow: hidden;
  background: rgba(243, 238, 228, 0.28);
}

.secondary-ocean-hero__scroll-cue i::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, transparent, var(--champagne-gold), transparent);
  animation: secondaryScrollLine 2.4s ease-in-out infinite;
}

body.secondary-hero-passed nav,
body.secondary-hero-passed .site-enhanced-nav {
  background: rgba(4, 24, 30, 0.88) !important;
  border-color: rgba(201, 174, 116, 0.24) !important;
}

html.secondary-reveal-ready .secondary-content-reveal {
  opacity: 0.85;
  transform: translateY(20px);
  transition: opacity 650ms ease, transform 650ms ease;
}

html.secondary-reveal-ready .secondary-content-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.secondary-visual-hero {
  position: relative;
  min-height: clamp(360px, 48vw, 540px);
  display: grid;
  grid-template-columns: minmax(300px, 0.82fr) minmax(420px, 1.18fr);
  align-items: center;
  gap: clamp(22px, 5vw, 72px);
  overflow: hidden !important;
  isolation: isolate;
}

.secondary-visual-hero::before,
.secondary-visual-hero::after {
  position: absolute;
  content: "";
  pointer-events: none;
  z-index: -1;
}

.secondary-visual-hero::before {
  inset: 0;
  background:
    radial-gradient(circle at 72% 34%, rgba(207, 230, 226, 0.16), transparent 20rem),
    radial-gradient(circle at 12% 86%, rgba(47, 140, 139, 0.14), transparent 18rem);
}

.secondary-visual-hero::after {
  top: -20%;
  right: 8%;
  width: 34%;
  height: 130%;
  background: linear-gradient(90deg, transparent, rgba(243, 238, 228, 0.12), transparent);
  filter: blur(16px);
  opacity: 0.28;
  transform: rotate(12deg);
}

.secondary-hero-copy {
  position: relative;
  z-index: 3;
}

.secondary-hero-copy h2 {
  font-size: clamp(2.15rem, 4.7vw, 5rem) !important;
}

.secondary-device {
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  --device-x: 0px;
  --device-y: 0px;
  position: relative;
  min-height: 360px;
  transform: translate3d(var(--device-x), var(--device-y), 0) rotateX(var(--tilt-y)) rotateY(var(--tilt-x));
  transform-style: preserve-3d;
  transition: transform 450ms ease;
  will-change: transform;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.secondary-device.is-touching {
  transition-duration: 80ms;
}

.secondary-device.is-touching .archive-core,
.secondary-device.is-touching .echo-core,
.secondary-device.is-touching .time-core {
  box-shadow: 0 0 52px rgba(207, 230, 226, 0.5), inset 0 0 22px rgba(243, 238, 228, 0.28);
}

.secondary-device.is-touching .echo-ring,
.secondary-device.is-touching .time-ring {
  border-color: rgba(243, 238, 228, 0.58);
}

.storyboard-archive {
  min-height: 390px;
  perspective: 900px;
}

.archive-core,
.echo-core,
.time-core {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 74px;
  height: 74px;
  border: 1px solid rgba(243, 238, 228, 0.28);
  border-radius: 50%;
  background:
    radial-gradient(circle at 38% 32%, rgba(243, 238, 228, 0.96), rgba(207, 230, 226, 0.62) 38%, rgba(47, 140, 139, 0.2) 72%);
  box-shadow: 0 0 34px rgba(207, 230, 226, 0.34), inset 0 0 18px rgba(243, 238, 228, 0.22);
  transform: translate(-50%, -50%);
}

.archive-card {
  position: absolute;
  width: clamp(132px, 18vw, 210px);
  aspect-ratio: 4 / 3;
  overflow: hidden;
  display: grid;
  align-content: end;
  padding: 12px;
  border: 1px solid rgba(243, 238, 228, 0.16);
  border-radius: 10px;
  color: var(--pearl-cream);
  background: rgba(232, 247, 245, 0.08);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.26);
  text-decoration: none;
  transform-style: preserve-3d;
  animation: archiveFloat 12s ease-in-out infinite;
}

.archive-card video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.68;
  filter: saturate(0.85) brightness(0.78);
}

.archive-card span {
  position: relative;
  z-index: 2;
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.archive-card::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, transparent 36%, rgba(4, 24, 30, 0.78));
}

.archive-card:hover,
.archive-card:focus-visible {
  z-index: 4;
  transform: translateZ(48px) scale(1.045) !important;
  border-color: rgba(201, 174, 116, 0.62);
}

.storyboard-archive:has(.archive-card:hover) .archive-card:not(:hover) {
  opacity: 0.62;
  filter: blur(0.4px);
}

.archive-card-a { left: 8%; top: 18%; transform: rotate(-7deg) translateZ(20px); }
.archive-card-b { right: 9%; top: 16%; transform: rotate(7deg) translateZ(-10px); animation-delay: -3s; }
.archive-card-c { left: 24%; bottom: 7%; transform: rotate(4deg) translateZ(36px); animation-delay: -6s; }
.archive-card-d { right: 22%; bottom: 15%; transform: rotate(-5deg) translateZ(8px); animation-delay: -8s; }

.archive-note {
  display: grid;
  place-items: center;
  background:
    linear-gradient(135deg, rgba(243, 238, 228, 0.1), rgba(47, 140, 139, 0.14)),
    repeating-linear-gradient(0deg, transparent 0 18px, rgba(243, 238, 228, 0.05) 18px 19px);
}

.curved-gallery {
  min-height: 390px;
  perspective: 1000px;
  transform: translateX(calc(var(--gallery-shift, 0) * 1px));
}

.cinema-card {
  position: absolute;
  top: 18%;
  left: 50%;
  width: clamp(160px, 22vw, 280px);
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border: 1px solid rgba(243, 238, 228, 0.16);
  border-radius: 10px;
  color: var(--pearl-cream);
  background: rgba(4, 24, 30, 0.52);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.32);
  text-decoration: none;
  transform-style: preserve-3d;
  transition: transform 360ms ease, opacity 360ms ease, filter 360ms ease;
}

.cinema-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.86;
}

.cinema-card span {
  position: absolute;
  left: 14px;
  bottom: 12px;
  z-index: 2;
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.cinema-card::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, transparent 38%, rgba(4, 24, 30, 0.86));
}

.cinema-card-left {
  opacity: 0.72;
  filter: blur(0.25px);
  transform: translateX(-116%) rotateY(20deg) translateZ(-80px) scale(0.82);
}

.cinema-card-center {
  z-index: 2;
  transform: translateX(-50%) translateZ(70px) scale(1.06);
}

.cinema-card-right {
  opacity: 0.72;
  filter: blur(0.25px);
  transform: translateX(16%) rotateY(-20deg) translateZ(-80px) scale(0.82);
}

.cinema-card:hover,
.cinema-card:focus-visible {
  opacity: 1;
  filter: none;
  border-color: rgba(201, 174, 116, 0.62);
}

.echo-portal,
.time-rings {
  min-height: 350px;
  display: grid;
  place-items: center;
}

.echo-ring,
.time-ring {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 120px;
  height: 120px;
  border: 1px solid rgba(201, 174, 116, 0.42);
  border-radius: 50%;
  transform: translate(-50%, -50%) rotateX(64deg);
  animation: echoPulse 8s ease-out infinite;
}

.echo-ring.ring-b { width: 190px; height: 190px; animation-delay: -2s; border-color: rgba(207, 230, 226, 0.28); }
.echo-ring.ring-c { width: 270px; height: 270px; animation-delay: -4s; }
.echo-ring.ring-d { width: 340px; height: 340px; animation-delay: -6s; border-color: rgba(47, 140, 139, 0.34); }

.contact-portal-hero:focus-within .echo-ring,
.echo-portal.is-active .echo-ring,
.echo-portal:hover .echo-ring {
  border-color: rgba(243, 238, 228, 0.54);
  box-shadow: 0 0 24px rgba(207, 230, 226, 0.18);
}

.contact-portal-hero {
  height: 780px;
  min-height: 780px;
  grid-template-columns: minmax(330px, 0.8fr) minmax(500px, 1.2fr);
  align-items: center;
}

.contact-portal-hero .secondary-hero-copy {
  align-self: center;
}

.contact-hero-logo {
  display: block;
  width: clamp(140px, 12vw, 180px) !important;
  height: auto !important;
  margin: 0 0 22px !important;
  padding: 8px;
  border: 1px solid rgba(243, 238, 228, 0.14);
  border-radius: 8px;
  object-fit: contain;
  background: rgba(232, 247, 245, 0.045);
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.2), 0 0 30px rgba(207, 230, 226, 0.12);
  filter: drop-shadow(0 0 14px rgba(201, 174, 116, 0.16));
}

.contact-portal-hero .secondary-hero-copy h2 {
  margin-bottom: 18px !important;
  font-size: clamp(3rem, 5.2vw, 5.8rem) !important;
}

.contact-hero-intro {
  max-width: 60ch;
  margin: 0;
  color: rgba(232, 247, 245, 0.76) !important;
  font-size: clamp(0.76rem, 0.86vw, 0.92rem) !important;
  line-height: 1.62;
  white-space: pre-line;
}

.contact-portal-hero .echo-portal {
  min-height: 480px;
}

.contact-details-section {
  width: min(calc(100% - 32px), 880px) !important;
  margin-top: 28px !important;
  padding: clamp(22px, 4vw, 38px) !important;
}

.contact-details {
  display: grid;
  gap: 12px;
}

.contact-details p {
  margin: 0 !important;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(243, 238, 228, 0.1);
}

.contact-details p:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.time-rings {
  min-height: 300px;
}

.time-ring-a { width: 132px; height: 132px; }
.time-ring-b { width: 202px; height: 202px; animation-delay: -3s; }
.time-ring-c { width: 274px; height: 274px; animation-delay: -6s; }

.time-dot {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(243, 238, 228, 0.9);
  box-shadow: 0 0 16px rgba(207, 230, 226, 0.46);
  transform-origin: 0 0;
  animation: timeDot 18s linear infinite;
}

.time-dot-a { --radius: 66px; }
.time-dot-b { --radius: 101px; animation-duration: 24s; animation-delay: -5s; }
.time-dot-c { --radius: 137px; animation-duration: 32s; animation-delay: -11s; }

.section-kicker {
  margin: 0 0 12px !important;
  color: var(--champagne-gold) !important;
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.schedule-hero {
  min-height: 520px;
  display: grid;
  grid-template-columns: minmax(320px, 0.88fr) minmax(420px, 1.12fr);
  align-items: center;
  gap: clamp(22px, 5vw, 72px);
  overflow: visible !important;
}

.schedule-hero-copy {
  position: relative;
  z-index: 2;
  max-width: 620px;
}

.schedule-hero-copy h2 {
  font-size: clamp(2.4rem, 5.4vw, 5.5rem) !important;
}

.schedule-hero-copy p:not(.section-kicker),
.tuition-summary p {
  max-width: 620px;
}

.schedule-hero-actions,
.tuition-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.tuition-section {
  overflow: hidden !important;
}

.tuition-section:has(.tuition-panel[hidden]) {
  padding: clamp(18px, 2.5vw, 26px) !important;
}

.tuition-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
}

.tuition-section:has(.tuition-panel[hidden]) .tuition-summary {
  gap: 16px;
}

.tuition-summary h2 {
  max-width: 780px;
  font-size: clamp(1.9rem, 3.6vw, 3.8rem) !important;
}

.tuition-toggle {
  min-height: 30px;
  padding: 5px 10px;
  border: 1px solid rgba(243, 238, 228, 0.16);
  border-radius: 999px;
  color: rgba(243, 238, 228, 0.76);
  background: rgba(232, 247, 245, 0.05);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  cursor: pointer;
}

.tuition-toggle[aria-expanded="true"] {
  border-color: rgba(201, 174, 116, 0.72) !important;
  background: rgba(201, 174, 116, 0.16) !important;
}

.tuition-panel {
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid rgba(243, 238, 228, 0.14);
}

.tuition-panel[hidden] {
  display: none !important;
}

.tuition-panel h3 {
  margin: 22px 0 12px !important;
}

.tuition-table {
  min-width: 0;
  font-size: 0.92rem;
}

.tuition-table th {
  color: rgba(243, 238, 228, 0.88) !important;
  background: rgba(47, 140, 139, 0.18) !important;
}

.tuition-table td:last-child,
.tuition-table th:last-child {
  width: 18%;
  color: rgba(243, 238, 228, 0.86) !important;
  font-weight: 750;
  text-align: right;
}

@keyframes siteParticles {
  0%, 100% { transform: translate3d(0, 0, 0); opacity: 0.28; }
  50% { transform: translate3d(-18px, -24px, 0); opacity: 0.42; }
}

@keyframes badgeFloat {
  0%, 100% { transform: translate3d(0, 0, 0) rotateX(0deg) rotateY(0deg); }
  50% { transform: translate3d(0, -7px, 0) rotateX(1.5deg) rotateY(-1.2deg); }
}

@keyframes secondaryOceanDrift {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1.012); }
  50% { transform: translate3d(0, -5px, 0) scale(1.025); }
}

@keyframes secondaryScrollCue {
  0%, 100% { opacity: 0.62; transform: translate3d(-50%, 0, 0); }
  50% { opacity: 0.95; transform: translate3d(-50%, 5px, 0); }
}

@keyframes secondaryScrollLine {
  0% { transform: translateY(-100%); }
  70%, 100% { transform: translateY(100%); }
}

@keyframes archiveFloat {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -12px; }
}

@keyframes echoPulse {
  0% { opacity: 0.1; scale: 0.78; }
  45% { opacity: 0.5; }
  100% { opacity: 0.04; scale: 1.18; }
}

@keyframes timeDot {
  from { transform: rotate(0deg) translateX(var(--radius)); }
  to { transform: rotate(360deg) translateX(var(--radius)); }
}

@media (max-width: 760px), (hover: none) and (pointer: coarse) {
  body .gif-banner,
  body > img[src*="HarborLight Studio"],
  body > img[src*="20250212_0004"] {
    width: clamp(110px, 34vw, 135px) !important;
    margin-top: 84px !important;
    margin-left: 18px !important;
    padding: 6px !important;
  }

  header:not(.site-header) {
    padding: 28px 18px !important;
  }

  header:not(.site-header) h1 {
    font-size: clamp(2.5rem, 15vw, 4.4rem) !important;
    letter-spacing: 0.01em;
  }

  nav,
  .site-enhanced-nav {
    position: relative;
    top: auto;
    justify-content: flex-start;
    overflow-x: hidden;
    flex-wrap: wrap !important;
    border-radius: 14px !important;
  }

  nav a,
  .button,
  button.button {
    flex: 1 1 calc(50% - 8px);
    min-width: 0;
    white-space: normal;
    font-size: 0.64rem !important;
    text-align: center;
  }

  section,
  .page,
  .panel,
  .card {
    width: calc(100% - 28px) !important;
    padding: 18px !important;
  }

  .course h3 {
    grid-template-columns: 1fr;
  }

  .gallery {
    grid-template-columns: 1fr;
  }

  section:has(table) {
    padding-bottom: 24px !important;
  }

  .secondary-visual-hero {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 10px;
    padding-top: 22px !important;
    padding-bottom: 18px !important;
  }

  .secondary-ocean-hero {
    width: 100vw !important;
    height: auto !important;
    min-height: 0 !important;
    aspect-ratio: 1138 / 640;
    margin-bottom: 34px !important;
    padding: 0 !important;
  }

  .secondary-ocean-hero__media-wrap {
    inset: 0;
    transform: none;
  }

  .secondary-ocean-hero__media {
    object-fit: contain;
    object-position: center;
    transform: none;
    animation: none;
  }

  .secondary-ocean-hero__scroll-cue {
    bottom: 18px;
    font-size: 0.58rem;
  }

  .secondary-hero-copy h2 {
    font-size: clamp(2rem, 10vw, 3.25rem) !important;
  }

  .contact-portal-hero {
    height: 1040px;
    min-height: 1040px;
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 1fr) 290px;
    gap: 6px;
  }

  .contact-portal-hero .secondary-hero-copy {
    align-self: start;
  }

  .contact-hero-logo {
    width: clamp(100px, 30vw, 130px) !important;
    margin-bottom: 16px !important;
    padding: 6px;
  }

  .contact-portal-hero .secondary-hero-copy h2 {
    margin-bottom: 14px !important;
    font-size: clamp(2.7rem, 14vw, 4.2rem) !important;
  }

  .contact-hero-intro {
    max-width: none;
    font-size: 0.78rem !important;
    line-height: 1.58;
  }

  .contact-portal-hero .echo-portal {
    min-height: 290px;
  }

  .secondary-device,
  .storyboard-archive,
  .curved-gallery,
  .echo-portal,
  .time-rings {
    min-height: 270px;
  }

  .archive-card {
    width: min(36vw, 148px);
    padding: 9px;
  }

  .archive-card span,
  .cinema-card span {
    font-size: 0.56rem;
  }

  .archive-card-a { left: 2%; top: 16%; }
  .archive-card-b { right: 2%; top: 18%; }
  .archive-card-c { left: 18%; bottom: 8%; }
  .archive-card-d { right: 12%; bottom: 14%; }

  .cinema-card {
    width: min(52vw, 190px);
  }

  .cinema-card-left {
    transform: translateX(-96%) rotateY(16deg) translateZ(-60px) scale(0.78);
  }

  .cinema-card-center {
    transform: translateX(-50%) translateZ(44px) scale(0.98);
  }

  .cinema-card-right {
    transform: translateX(-4%) rotateY(-16deg) translateZ(-60px) scale(0.78);
  }

  .echo-ring.ring-d {
    width: 260px;
    height: 260px;
  }

  .time-ring-c {
    width: 230px;
    height: 230px;
  }

  .schedule-hero {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 8px;
    overflow: hidden !important;
  }

  .tuition-summary {
    grid-template-columns: 1fr;
  }

  .tuition-toggle {
    width: auto;
    justify-self: start;
  }

  .tuition-table,
  .tuition-table tbody,
  .tuition-table tr,
  .tuition-table th,
  .tuition-table td {
    display: block;
    width: 100% !important;
    text-align: left !important;
  }

  .tuition-table {
    border-radius: 10px;
  }

  .tuition-table tr {
    padding: 12px;
    border-bottom: 1px solid rgba(243, 238, 228, 0.12);
  }

  .tuition-table tr:first-child {
    display: none;
  }

  .tuition-table td {
    padding: 6px 0 !important;
    border: 0 !important;
  }

  .tuition-table td:last-child {
    color: rgba(201, 174, 116, 0.92) !important;
  }

  footer,
  .footer {
    display: grid;
  }
}

@media (min-width: 761px) and (max-width: 1024px) {
  .secondary-ocean-hero {
    height: clamp(520px, 72svh, 760px) !important;
    min-height: 520px !important;
  }

  .secondary-ocean-hero__media {
    object-position: 64% center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .secondary-ocean-hero__media,
  .secondary-ocean-hero__scroll-cue,
  .secondary-ocean-hero__scroll-cue i::after {
    animation: none !important;
  }

  .secondary-ocean-hero__media-wrap,
  .secondary-content-reveal {
    transform: none !important;
    transition: none !important;
  }
}

/* Works page: independent curved cinematic gallery */
.works-page main {
  display: block;
}

.works-page header:not(.site-header) h1 {
  max-width: 100%;
  font-size: clamp(2rem, 4.2vw, 4rem) !important;
  line-height: 1;
  overflow-wrap: normal;
  white-space: nowrap;
}

.works-page .works-gallery-section {
  overflow: hidden !important;
  padding-bottom: clamp(30px, 6vw, 70px) !important;
}

.works-gallery-heading {
  width: min(760px, 100%);
  margin-bottom: 10px;
}

.works-gallery-heading .section-kicker,
.works-current__category {
  margin: 0 0 12px;
  color: var(--champagne-gold) !important;
  font-size: 0.68rem !important;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.works-gallery-heading > p:last-child {
  max-width: 620px;
  color: var(--muted) !important;
}

.works-gallery {
  position: relative;
  width: 100%;
  min-height: 570px;
  perspective: 1200px;
}

.works-gallery-stage {
  position: relative;
  width: 100%;
  height: 470px;
  overflow: visible;
  touch-action: pan-y;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}

.works-gallery-stage.is-dragging {
  cursor: grabbing;
}

.works-gallery-card {
  --work-x: 0px;
  --work-z: 0px;
  --work-scale: 1;
  --work-opacity: 1;
  --work-rotate: 0deg;
  position: absolute;
  top: 50%;
  left: 50%;
  width: clamp(260px, 33vw, 430px);
  aspect-ratio: 16 / 10;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(243, 238, 228, 0.16);
  border-radius: 8px;
  color: var(--pearl-cream);
  background: rgba(4, 24, 30, 0.88);
  box-shadow: 0 34px 100px rgba(0, 0, 0, 0.42);
  opacity: var(--work-opacity);
  transform: translate3d(calc(-50% + var(--work-x)), -50%, var(--work-z)) rotateY(var(--work-rotate)) scale(var(--work-scale));
  transform-style: preserve-3d;
  transition: transform 480ms cubic-bezier(0.2, 0.75, 0.2, 1), opacity 360ms ease, border-color 300ms ease, filter 300ms ease;
  cursor: pointer;
  will-change: transform, opacity;
}

.works-gallery-stage.is-dragging .works-gallery-card {
  transition-duration: 50ms;
}

.works-gallery-card img,
.works-gallery-card__shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.works-gallery-card img {
  object-fit: cover;
  border-radius: 0;
  filter: saturate(0.88) contrast(1.04);
  transition: transform 600ms ease, filter 300ms ease;
}

.works-gallery-card__shade {
  background: linear-gradient(180deg, transparent 34%, rgba(2, 17, 22, 0.92) 100%);
}

.works-gallery-card__copy {
  position: absolute;
  inset: auto 0 0;
  z-index: 2;
  display: grid;
  gap: 5px;
  padding: clamp(16px, 2.4vw, 26px);
  text-align: left;
}

.works-gallery-card__copy small,
.works-gallery-card__copy em {
  color: rgba(243, 238, 228, 0.68);
  font-size: 0.6rem;
  font-style: normal;
  font-weight: 750;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.works-gallery-card__copy strong {
  display: block;
  color: var(--pearl-cream);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.05rem, 2vw, 1.65rem);
  font-weight: 400;
  line-height: 1.12;
}

.works-gallery-card.is-current {
  border-color: rgba(201, 174, 116, 0.76);
  box-shadow: 0 36px 120px rgba(0, 0, 0, 0.5), 0 0 38px rgba(201, 174, 116, 0.15);
}

.works-gallery-card.is-current img,
.works-gallery-card:hover img,
.works-gallery-card:focus-visible img {
  filter: saturate(1) contrast(1.03);
  transform: scale(1.025);
}

.works-gallery-card:focus-visible,
.works-gallery-controls button:focus-visible,
.works-gallery-dot:focus-visible,
.works-play-button:focus-visible,
.works-player__close:focus-visible {
  outline: 2px solid var(--champagne-gold);
  outline-offset: 4px;
}

.works-gallery-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.works-gallery-controls button,
.works-gallery-dot,
.works-play-button,
.works-player__close {
  border: 1px solid rgba(243, 238, 228, 0.22);
  color: var(--pearl-cream);
  background: rgba(4, 24, 30, 0.72);
  cursor: pointer;
  backdrop-filter: blur(16px);
}

.works-gallery-controls button {
  width: 42px;
  height: 42px;
  padding: 0;
  border-radius: 50%;
  font-size: 1rem;
}

.works-gallery-controls button:hover,
.works-play-button:hover {
  border-color: rgba(201, 174, 116, 0.72);
  background: rgba(47, 140, 139, 0.34);
}

.works-gallery-count {
  min-width: 68px;
  color: rgba(243, 238, 228, 0.76);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-align: center;
}

.works-gallery-dots {
  min-height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-top: 14px;
}

.works-gallery-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border-radius: 50%;
}

.works-gallery-dot[aria-current="true"] {
  border-color: var(--champagne-gold);
  background: var(--champagne-gold);
  box-shadow: 0 0 14px rgba(201, 174, 116, 0.55);
}

.works-gallery-hint {
  margin: 5px 0 0;
  color: rgba(207, 230, 226, 0.5) !important;
  font-size: 0.58rem !important;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-align: center;
  text-transform: uppercase;
}

.works-current {
  width: min(820px, 100%);
  min-height: 210px;
  margin: 12px auto 0;
  padding: clamp(24px, 4vw, 42px);
  border-top: 1px solid rgba(201, 174, 116, 0.28);
  text-align: left;
}

.works-current h3 {
  margin: 0 0 16px;
  color: var(--pearl-cream) !important;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.8rem, 4vw, 3.5rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: 0;
}

.works-current > p:not(.works-current__category) {
  max-width: 680px;
  color: var(--muted) !important;
}

.works-play-button {
  min-height: 40px;
  margin-top: 10px;
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.works-player[hidden] {
  display: none !important;
}

.works-player {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: grid;
  place-items: center;
  padding: 24px;
}

.works-player__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 17, 22, 0.9);
  backdrop-filter: blur(18px);
}

.works-player__dialog {
  position: relative;
  z-index: 1;
  width: min(1040px, 100%);
  max-height: calc(100svh - 48px);
  overflow: auto;
  padding: 12px 12px 24px;
  border: 1px solid rgba(243, 238, 228, 0.2);
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(10, 46, 56, 0.98), rgba(4, 24, 30, 0.98));
  box-shadow: 0 42px 140px rgba(0, 0, 0, 0.62);
}

.works-player__media {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #021116;
}

.works-player__media iframe,
.works-player__media video {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 0;
  object-fit: contain;
}

.works-player__dialog h2 {
  margin: 20px 12px 0 !important;
  font-size: clamp(1.35rem, 3vw, 2.5rem) !important;
  line-height: 1.12;
}

.works-player__close {
  position: absolute;
  top: 22px;
  right: 22px;
  z-index: 2;
  width: 42px;
  height: 42px;
  padding: 0;
  border-radius: 50%;
  font-size: 1.45rem;
}

body.works-player-open {
  overflow: hidden;
}

.works-footer-home {
  margin-top: 20px;
}

.works-fallback-list {
  display: grid;
  gap: 10px;
}

@media (max-width: 760px) {
  .works-page header:not(.site-header) {
    padding-block: 22px !important;
  }

  .works-page header:not(.site-header) h1 {
    font-size: clamp(1.15rem, 5.8vw, 1.65rem) !important;
    letter-spacing: 0.025em;
  }

  .works-gallery {
    min-height: 430px;
  }

  .works-gallery-stage {
    height: 340px;
  }

  .works-gallery-card {
    width: min(74vw, 330px);
  }

  .works-gallery-card__copy strong {
    font-size: clamp(0.95rem, 4vw, 1.25rem);
  }

  .works-current {
    min-height: 180px;
    padding-inline: 4px;
  }

  .works-player {
    padding: 10px;
  }

  .works-player__dialog {
    max-height: calc(100svh - 20px);
    padding: 8px 8px 20px;
  }

  .works-player__close {
    top: 14px;
    right: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .works-gallery-card {
    transition: none !important;
  }
}

/* Courses brand panel: preserve the wordmark on one restrained line. */
body .course-brand-header {
  width: min(calc(100% - 32px), var(--max));
  max-width: var(--max);
  padding: clamp(20px, 2.8vw, 32px) clamp(18px, 4vw, 46px) !important;
}

body .course-brand-header .course-brand-title {
  width: 100%;
  max-width: none;
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: normal;
  font-size: clamp(2rem, 5vw, 4.6rem) !important;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.05em;
}

@media (max-width: 600px) {
  body .course-brand-header {
    padding: 18px 16px !important;
  }

  body .course-brand-header .course-brand-title {
    font-size: clamp(1.05rem, 5.4vw, 1.6rem) !important;
    letter-spacing: 0.03em;
  }
}

/* Practice archive heading: keep both language variants compact and readable. */
.storyboard-hero .secondary-hero-copy h2 {
  max-width: 12ch;
  font-size: clamp(2.35rem, 4.4vw, 4.8rem) !important;
  letter-spacing: 0;
  overflow-wrap: normal;
  text-wrap: balance;
}

@media (max-width: 760px) {
  .storyboard-hero .secondary-hero-copy h2 {
    max-width: 100%;
    font-size: clamp(2.05rem, 9.5vw, 3.25rem) !important;
  }
}

/* Courses: progressive-enhancement carousel. Without JS, the original list remains. */
[data-course-gallery].is-enhanced {
  overflow: hidden !important;
}

.course-gallery-shell {
  position: relative;
  min-height: 540px;
  margin-top: 18px;
  overflow: hidden;
  perspective: 1200px;
  border-top: 1px solid rgba(243, 238, 228, 0.1);
  border-bottom: 1px solid rgba(243, 238, 228, 0.1);
  background:
    radial-gradient(circle at 50% 46%, rgba(47, 140, 139, 0.2), transparent 34%),
    linear-gradient(180deg, rgba(4, 24, 30, 0.08), rgba(4, 24, 30, 0.34));
}

.course-gallery-stage {
  position: relative;
  min-height: 460px;
  touch-action: pan-y;
  user-select: none;
  transform-style: preserve-3d;
  cursor: grab;
  pointer-events: none;
}

.course-gallery-stage.is-dragging {
  cursor: grabbing;
}

[data-course-gallery].is-enhanced .course-gallery-stage > .course {
  --course-x: 0px;
  --course-z: 0px;
  --course-rotate: 0deg;
  --course-scale: 1;
  --course-opacity: 1;
  position: absolute !important;
  top: 48%;
  left: 50%;
  width: clamp(230px, 27vw, 350px) !important;
  height: clamp(320px, 35vw, 410px);
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden;
  border-color: rgba(243, 238, 228, 0.12) !important;
  background: rgba(4, 24, 30, 0.72) !important;
  opacity: var(--course-opacity);
  transform:
    translate3d(calc(-50% + var(--course-x)), -50%, var(--course-z))
    rotateY(var(--course-rotate))
    scale(var(--course-scale));
  transform-origin: center;
  transform-style: preserve-3d;
  transition: transform 520ms cubic-bezier(0.22, 0.75, 0.24, 1), opacity 360ms ease, border-color 260ms ease, filter 260ms ease;
  will-change: transform, opacity;
  cursor: pointer;
  pointer-events: auto;
}

[data-course-gallery].is-enhanced .course-gallery-stage > .course::before {
  position: absolute;
  inset: 0;
  z-index: 2;
  content: "";
  pointer-events: none;
  background: linear-gradient(180deg, transparent 42%, rgba(2, 17, 22, 0.2) 58%, rgba(2, 17, 22, 0.96) 100%);
}

[data-course-gallery].is-enhanced .course-gallery-stage > .course > p {
  display: none;
}

[data-course-gallery].is-enhanced .course-gallery-stage > .course > h3 {
  position: relative;
  width: 100%;
  height: 100%;
  margin: 0 !important;
  padding: 0 !important;
}

[data-course-gallery].is-enhanced .course-gallery-stage > .course > h3 > img {
  width: 100% !important;
  max-width: none !important;
  height: 100% !important;
  margin: 0 !important;
  display: block;
  object-fit: cover;
  border-radius: 8px !important;
  filter: saturate(0.88) contrast(1.02) brightness(0.78);
  transition: filter 260ms ease, transform 600ms ease;
}

[data-course-gallery].is-enhanced .course-gallery-stage > .course > h3 > span:not(.course-gallery-card__hint) {
  position: absolute;
  right: 20px;
  bottom: 48px;
  left: 20px;
  z-index: 3;
  color: var(--pearl-cream) !important;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.15rem, 2vw, 1.65rem);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: 0;
}

.course-gallery-card__hint {
  position: absolute;
  right: 20px;
  bottom: 20px;
  left: 20px;
  z-index: 3;
  color: var(--champagne-gold) !important;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

[data-course-gallery].is-enhanced .course-gallery-stage > .course.is-current {
  border-color: rgba(201, 174, 116, 0.76) !important;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.4), 0 0 30px rgba(201, 174, 116, 0.12) !important;
}

[data-course-gallery].is-enhanced .course-gallery-stage > .course.is-current > h3 > img {
  filter: saturate(1.02) contrast(1.04) brightness(0.94);
}

[data-course-gallery].is-enhanced .course-gallery-stage > .course:hover,
[data-course-gallery].is-enhanced .course-gallery-stage > .course:focus-visible {
  border-color: rgba(201, 174, 116, 0.7) !important;
  filter: brightness(1.06);
}

[data-course-gallery].is-enhanced .course-gallery-stage > .course:focus-visible {
  outline: 2px solid rgba(201, 174, 116, 0.9);
  outline-offset: 4px;
}

.course-gallery-controls {
  position: absolute;
  right: 0;
  bottom: 16px;
  left: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.course-gallery-controls button,
.course-gallery-dot {
  display: grid;
  place-items: center;
  border: 1px solid rgba(243, 238, 228, 0.2);
  color: var(--pearl-cream);
  background: rgba(4, 24, 30, 0.68);
  cursor: pointer;
}

.course-gallery-controls > button {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 1rem;
}

.course-gallery-count {
  min-width: 58px;
  color: rgba(243, 238, 228, 0.8);
  font-size: 0.72rem;
  font-weight: 800;
  text-align: center;
  letter-spacing: 0.12em;
}

.course-gallery-dots {
  position: absolute;
  bottom: 7px;
  left: 50%;
  z-index: 21;
  display: flex;
  gap: 7px;
  transform: translateX(-50%);
}

.course-gallery-dot {
  width: 6px;
  height: 6px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(243, 238, 228, 0.28);
}

.course-gallery-dot[aria-current="true"] {
  background: var(--champagne-gold);
  box-shadow: 0 0 10px rgba(201, 174, 116, 0.55);
}

.course-gallery-detail {
  margin-top: 26px;
  padding: clamp(22px, 3vw, 32px);
  border: 1px solid rgba(201, 174, 116, 0.28);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(232, 247, 245, 0.08), rgba(4, 24, 30, 0.5));
  box-shadow: inset 0 1px 0 rgba(243, 238, 228, 0.06);
  transition: opacity 320ms ease;
}

.course-gallery-detail.is-changing {
  opacity: 0.42;
}

.course-gallery-detail__content {
  width: 100%;
  max-width: 860px;
  margin: 0 auto !important;
  padding: 0 !important;
  border: 0 !important;
  background: none !important;
  box-shadow: none !important;
  transform: none !important;
}

.course-gallery-detail__content > p {
  margin: 0;
  color: rgba(232, 247, 245, 0.78) !important;
  font-size: clamp(0.94rem, 1.25vw, 1.03rem);
  font-weight: 400;
  line-height: 1.78;
}

@media (max-width: 760px) {
  .course-gallery-shell {
    min-height: 440px;
    margin-right: -12px;
    margin-left: -12px;
  }

  .course-gallery-stage {
    min-height: 370px;
  }

  [data-course-gallery].is-enhanced .course-gallery-stage > .course {
    width: min(68vw, 270px) !important;
    height: 330px;
  }

  .course-gallery-controls {
    bottom: 20px;
  }

  .course-gallery-detail {
    padding: 18px;
  }

  .course-gallery-detail__content > p {
    margin-bottom: 16px;
    font-size: clamp(0.88rem, 3.8vw, 0.98rem);
    line-height: 1.72;
  }
}

@media (prefers-reduced-motion: reduce) {
  [data-course-gallery].is-enhanced .course-gallery-stage > .course,
  .course-gallery-detail,
  .course-gallery-detail__content {
    transition: none !important;
  }
}

/* Practice Works spatial archive */
.storyboard-archive.is-carousel {
  min-height: 520px;
  overflow: hidden;
  border-radius: 10px;
  cursor: grab;
  touch-action: pan-y;
  isolation: isolate;
}

.storyboard-archive.is-carousel.is-dragging {
  cursor: grabbing;
}

.storyboard-archive.is-carousel .archive-core {
  top: 42%;
  z-index: 120;
  width: 68px;
  height: 68px;
  pointer-events: none;
}

.archive-stage {
  position: absolute;
  inset: 0;
  perspective: 1000px;
  transform-style: preserve-3d;
}

.storyboard-archive.is-carousel .archive-card {
  --archive-x: 0px;
  --archive-y: 0px;
  --archive-z: 0px;
  --archive-scale: 1;
  --archive-opacity: 1;
  --archive-angle: 0deg;
  left: 50%;
  top: 53%;
  width: clamp(170px, 19vw, 230px);
  aspect-ratio: 16 / 10;
  margin: 0;
  appearance: none;
  align-content: end;
  padding: 14px;
  opacity: var(--archive-opacity);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transform:
    translate3d(calc(-50% + var(--archive-x)), calc(-50% + var(--archive-y)), var(--archive-z))
    rotateY(var(--archive-angle))
    scale(var(--archive-scale)) !important;
  transition: transform 540ms cubic-bezier(0.2, 0.72, 0.2, 1), opacity 420ms ease, filter 420ms ease, border-color 240ms ease;
  animation: none;
  will-change: transform, opacity;
}

.storyboard-archive.is-carousel.is-dragging .archive-card {
  transition-duration: 45ms;
}

.storyboard-archive.is-carousel .archive-card::after {
  background: linear-gradient(180deg, rgba(4, 24, 30, 0.04) 24%, rgba(4, 24, 30, 0.9) 92%);
}

.storyboard-archive.is-carousel .archive-card video {
  border-radius: inherit;
  opacity: 0.76;
}

.storyboard-archive.is-carousel .archive-card.is-active {
  border-color: rgba(201, 174, 116, 0.72);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.42), 0 0 34px rgba(207, 230, 226, 0.14);
  filter: none;
}

.storyboard-archive.is-carousel .archive-card:hover,
.storyboard-archive.is-carousel .archive-card:focus-visible {
  border-color: rgba(243, 238, 228, 0.76);
  transform:
    translate3d(calc(-50% + var(--archive-x)), calc(-50% + var(--archive-y)), var(--archive-z))
    rotateY(var(--archive-angle))
    scale(calc(var(--archive-scale) + 0.035)) !important;
}

.storyboard-archive.is-carousel:has(.archive-card:hover) .archive-card:not(:hover) {
  opacity: var(--archive-opacity);
  filter: none;
}

.archive-card__title {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.archive-card__status {
  position: relative;
  z-index: 3;
  margin-top: 5px;
  color: rgba(213, 138, 116, 0.96);
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.archive-card.is-missing video {
  opacity: 0.12;
}

.archive-card.is-missing {
  background:
    linear-gradient(135deg, rgba(213, 138, 116, 0.12), rgba(4, 24, 30, 0.86)),
    repeating-linear-gradient(135deg, transparent 0 12px, rgba(243, 238, 228, 0.035) 12px 13px);
}

.archive-controls {
  position: absolute;
  left: 50%;
  bottom: 30px;
  z-index: 210;
  display: flex;
  align-items: center;
  gap: 12px;
  transform: translateX(-50%);
}

.archive-controls button {
  width: 42px;
  height: 42px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 1px solid rgba(243, 238, 228, 0.2);
  border-radius: 50%;
  color: var(--pearl-cream);
  background: rgba(4, 24, 30, 0.72);
  font-size: 1rem;
  cursor: pointer;
  backdrop-filter: blur(16px);
}

.archive-controls button:hover,
.archive-controls button:focus-visible {
  border-color: rgba(201, 174, 116, 0.72);
  background: rgba(47, 140, 139, 0.34);
}

.archive-count {
  min-width: 54px;
  color: rgba(243, 238, 228, 0.76);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-align: center;
}

.archive-gesture-hint {
  position: absolute;
  left: 50%;
  bottom: 2px;
  z-index: 205;
  margin: 0;
  color: rgba(207, 230, 226, 0.5) !important;
  font-size: 0.58rem !important;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
  transform: translateX(-50%);
}

.practice-lightbox[hidden] {
  display: none !important;
}

.practice-lightbox {
  position: fixed;
  inset: 0;
  z-index: 2600;
  display: grid;
  place-items: center;
  padding: 24px;
}

.practice-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 17, 22, 0.88);
  backdrop-filter: blur(18px);
}

.practice-lightbox__dialog {
  position: relative;
  z-index: 1;
  width: min(960px, 100%);
  max-height: calc(100svh - 48px);
  overflow: auto;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(240px, 0.65fr);
  border: 1px solid rgba(243, 238, 228, 0.18);
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(10, 46, 56, 0.98), rgba(4, 24, 30, 0.98));
  box-shadow: 0 42px 140px rgba(0, 0, 0, 0.6);
}

.practice-lightbox__close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 4;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(243, 238, 228, 0.22);
  border-radius: 50%;
  color: var(--pearl-cream);
  background: rgba(4, 24, 30, 0.78);
  font-size: 1.45rem;
  cursor: pointer;
}

.practice-lightbox__media {
  min-height: 420px;
  display: grid;
  place-items: center;
  background: #021116;
}

.practice-lightbox__media video,
.practice-lightbox__media img {
  width: 100%;
  height: 100%;
  max-height: 72svh;
  object-fit: contain;
  border-radius: 0;
}

.practice-lightbox__copy {
  padding: clamp(28px, 5vw, 54px) 28px 28px;
}

.practice-lightbox__copy h3 {
  margin: 10px 0 18px;
  color: var(--pearl-cream);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.8rem, 3.5vw, 3.3rem);
  font-weight: 400;
  line-height: 1;
}

.practice-lightbox__status {
  padding: 14px;
  border: 1px solid rgba(213, 138, 116, 0.3);
  border-radius: 8px;
  color: rgba(243, 238, 228, 0.82);
  background: rgba(213, 138, 116, 0.08);
}

body.practice-lightbox-open {
  overflow: hidden;
}

@media (max-width: 760px), (hover: none) and (pointer: coarse) {
  .storyboard-archive.is-carousel {
    min-height: 400px;
  }

  .storyboard-archive.is-carousel .archive-card {
    width: min(48vw, 176px);
    top: 50%;
    padding: 10px;
  }

  .storyboard-archive.is-carousel .archive-core {
    top: 39%;
    width: 54px;
    height: 54px;
  }

  .archive-controls {
    bottom: 28px;
  }

  .archive-gesture-hint {
    font-size: 0.5rem !important;
  }

  .practice-lightbox {
    padding: 12px;
  }

  .practice-lightbox__dialog {
    max-height: calc(100svh - 24px);
    grid-template-columns: 1fr;
  }

  .practice-lightbox__media {
    min-height: min(52svh, 380px);
  }

  .practice-lightbox__copy {
    padding: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .storyboard-archive.is-carousel .archive-card {
    transition: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
  }

  .archive-card,
  .echo-ring,
  .time-dot,
  body .gif-banner {
    animation: none !important;
  }
}
