:root {
  --bg: #000000;
  --bg-alt: #0a0a0a;
  --fg: #ffffff;
  --fg-dim: #a1a1a6;
  --accent: #d4af37; /* soft gold, used sparingly for emphasis */
  --border: #2a2a2a;
  --max-width: 1180px;
}

@font-face {
  font-family: "Playfair Display";
  src: url("assets/fonts/PlayfairDisplay-Variable.ttf") format("truetype-variations");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; height: 100%; overflow: hidden; }

/* "Dive" navigation: each top-level section is a full-viewport panel that
   dives in from depth while the previous one falls away behind it. Falls
   back to ordinary document scrolling (.static-mode) on touch/small screens
   and prefers-reduced-motion, since the 3D dive fights the OS on touch. */
#stage {
  position: fixed;
  left: 0;
  right: 0;
  top: var(--header-h, 64px);
  bottom: var(--footer-h, 44px);
  perspective: 1600px;
  overflow: hidden;
}

/* Flying music-note background layer (notes-bg.js). Sits behind #stage;
   sections stay readable because panels keep translucent backgrounds. */
#notesBg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.snap-section {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transform: translateZ(-900px) scale(1.5);
  filter: blur(16px);
  transition: transform 1.1s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.85s ease, filter 0.95s ease;
  will-change: transform, opacity, filter;
}

.snap-section.active {
  z-index: 2;
  opacity: 1;
  pointer-events: auto;
  transform: translateZ(0) scale(1);
  filter: blur(0);
  transition: transform 1.15s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.9s ease, filter 0.85s ease;
}

.snap-section.exit-up { z-index: 1; opacity: 0; transform: translateZ(500px) translateY(-6vh) scale(1.2); filter: blur(10px); }
.snap-section.exit-down { z-index: 1; opacity: 0; transform: translateZ(-1400px) translateY(6vh) scale(0.72); filter: blur(10px); }

html.static-mode, html.static-mode body { overflow: auto; height: auto; }
html.static-mode body { padding-bottom: var(--footer-h, 44px); }
html.static-mode #stage { position: static; perspective: none; overflow: visible; }
html.static-mode .snap-section {
  position: static;
  opacity: 1;
  pointer-events: auto;
  transform: none;
  filter: none;
  transition: none;
  overflow: visible;
  min-height: calc(100vh - 64px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Helvetica, Arial, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.narrow { max-width: 720px; }

h1, h2, h3 {
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
}

h1, h2 {
  font-family: "Playfair Display", Georgia, "Iowan Old Style", serif;
  font-weight: 700;
  letter-spacing: 0;
}

h1 { font-size: clamp(2.8rem, 7vw, 5.2rem); line-height: 1.05; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.9rem); line-height: 1.15; }
h3 { font-size: 1.25rem; margin-bottom: 8px; font-weight: 600; }

p { color: var(--fg-dim); }

a { color: var(--fg); }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 14px;
}

.eyebrow.center { text-align: center; }

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--reveal-delay, 0ms);
}

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(14px) saturate(180%);
  -webkit-backdrop-filter: blur(14px) saturate(180%);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: Georgia, "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, serif;
  font-size: 1.05rem;
  text-decoration: none;
  color: var(--fg);
  letter-spacing: -0.01em;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}

.logo-mark { display: block; flex-shrink: 0; }

.main-nav {
  display: flex;
  align-items: center;
}

.main-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 24px;
  margin: 0;
  padding: 0;
}

.main-nav a {
  text-decoration: none;
  color: var(--fg-dim);
  font-size: 0.9rem;
  letter-spacing: -0.01em;
  transition: color 0.2s ease;
}

.main-nav a:hover { color: var(--fg); }

.main-nav ul li a:not(.nav-cta) {
  position: relative;
  padding-bottom: 10px;
}

.main-nav ul li a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 3px;
  width: 0;
  height: 2px;
  background: var(--accent);
  transform: translateX(-50%);
  transition: width 0.25s ease;
}

.main-nav ul li a.is-active {
  color: var(--fg);
}

.main-nav ul li a.is-active::after { width: 100%; }

.nav-cta {
  background: var(--fg);
  color: #000 !important;
  padding: 7px 16px;
  border-radius: 980px;
  font-weight: 500;
  white-space: nowrap;
}

.main-nav ul li a { white-space: nowrap; }

.nav-cta:hover { background: var(--accent) !important; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  color: var(--fg);
  font-size: 1.2rem;
  padding: 6px 10px;
  cursor: pointer;
  border-radius: 8px;
}

/* Language switcher */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-right: 18px;
  padding: 3px;
  border: 1px solid var(--border);
  border-radius: 980px;
}

.lang-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  color: var(--fg-dim);
  font-size: 0.8rem;
  font-family: inherit;
  padding: 5px 10px;
  border-radius: 980px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.lang-btn:hover { color: var(--fg); }

.lang-btn.is-active {
  background: var(--fg);
  color: #000;
  font-weight: 600;
}

@media (max-width: 1080px) {
  .lang-switch { margin-right: 10px; }
  .lang-btn span { display: none; }
  .lang-btn { padding: 5px 8px; }
}

/* Hero */
.hero {
  padding: 150px 0 130px;
  text-align: center;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.hero-inner { position: relative; z-index: 2; }

.hero-sub {
  max-width: 560px;
  margin: 0 auto 36px;
  font-size: 1.2rem;
}

.cta-row {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 30px;
  text-decoration: none;
  font-size: 0.98rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  border: 1px solid var(--fg);
  border-radius: 980px;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--fg);
  color: #000;
}

.btn-primary:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #000;
}

.btn-outline {
  background: transparent;
  color: var(--fg);
}

.btn-outline:hover {
  background: var(--fg);
  color: #000;
}

.btn-block { display: block; text-align: center; width: 100%; margin-bottom: 12px; }

/* Sections */
.section { padding: 110px 0; border-bottom: 1px solid var(--border); }
.section-alt { background: rgba(10, 10, 10, 0.55); }
.section-title { text-align: center; max-width: 680px; margin-left: auto; margin-right: auto; }
.section-sub {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 48px;
  font-size: 1.1rem;
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 64px;
  align-items: center;
}

.photo-placeholder {
  aspect-ratio: 3 / 4;
  border: 1px dashed var(--border);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--fg-dim);
  font-size: 0.9rem;
  text-align: center;
  background: var(--bg-alt);
}

.about-photo {
  aspect-ratio: 3 / 4;
  position: relative;
}

.about-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 15%;
  filter: contrast(1.12) brightness(0.93) saturate(0.95);
  -webkit-mask-image: radial-gradient(ellipse 72% 76% at 50% 40%, #000 40%, transparent 92%);
          mask-image: radial-gradient(ellipse 72% 76% at 50% 40%, #000 40%, transparent 92%);
}

.about-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 72% 76% at 50% 40%, transparent 30%, var(--bg) 96%);
}

.about-text h2 { margin-bottom: 20px; }

/* Cards */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.cards-reviews {
  position: relative;
}

.card {
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 36px 30px;
  position: relative;
  background: var(--bg);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.card:hover { border-color: #444; transform: translateY(-4px); }

.price {
  font-size: 2rem;
  font-weight: 600;
  color: var(--fg);
  margin: 0 0 18px;
}

.price span {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--fg-dim);
}

.card .lede {
  color: var(--fg-dim);
  font-size: 0.9rem;
  font-style: italic;
  margin: 0 0 18px;
}

.card-link {
  display: inline-block;
  font-size: 0.9rem;
  color: var(--fg);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.card-link:hover { color: var(--accent); }

.card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  color: var(--fg-dim);
}

.card li {
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.92rem;
}

.card li:last-child { border-bottom: none; }

.fine-print {
  text-align: center;
  font-size: 0.8rem;
  color: #555;
  margin-top: 24px;
}

/* Philosophy */
.philosophy-text { display: flex; flex-direction: column; gap: 24px; }

.philosophy-text p {
  color: var(--fg-dim);
  font-size: 1.05rem;
  line-height: 1.65;
  margin: 0;
}

/* Honors & Awards */
.honors-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.honor-item {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
  background: var(--bg-alt);
  text-align: center;
  transition: border-color 0.2s ease;
}

.honor-item:hover { border-color: var(--accent); }

.honor-title {
  color: var(--fg);
  font-weight: 600;
  font-size: 1rem;
  margin: 0 0 8px;
  line-height: 1.4;
}

.honor-detail {
  color: var(--fg-dim);
  font-size: 0.9rem;
  margin: 0;
}

/* Flip cards (Reviews) */
.flip-card {
  perspective: 1400px;
  height: 200px;
  position: relative;
  z-index: 1;
}

.cards-reviews .flip-card-slot {
  position: relative;
  height: 200px;
  transition: height 0.3s ease;
}

.cards-reviews .flip-card {
  width: 100%;
  height: 100%;
}

.cards-reviews .flip-card-slot:hover,
.cards-reviews .flip-card-slot.is-flipped {
  height: 400px;
  z-index: 5;
}

.cards-reviews .flip-card-slot:hover .flip-card-btn,
.cards-reviews .flip-card-slot.is-flipped .flip-card-btn {
  transform: rotateY(180deg);
}

.flip-card-btn {
  all: unset;
  display: block;
  width: 100%;
  height: 100%;
  cursor: pointer;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.6s cubic-bezier(0.4, 0.2, 0.2, 1);
}

.flip-card-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 20px;
}

.flip-card.is-flipped .flip-card-btn { transform: rotateY(180deg); }

.face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--bg-alt);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 22px;
  text-align: center;
}

.face-front .clef {
  font-size: 36px;
  line-height: 1;
  color: var(--fg);
  margin: 0 0 10px;
}

.face-front .label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--fg-dim);
}

.face-back {
  transform: rotateY(180deg);
  border-color: var(--accent);
}

.face-back .eyebrow-sm {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin: 0 0 14px;
}

.face-back .back-text {
  font-family: Georgia, "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, serif;
  font-style: italic;
  font-size: 1.05rem;
  color: var(--fg);
}

.cards-reviews .face-back {
  padding: 20px 18px;
  overflow-y: auto;
  align-items: flex-start;
}

.cards-reviews .face-back .back-text {
  font-size: 0.85rem;
  line-height: 1.45;
  text-align: left;
}

@media (prefers-reduced-motion: reduce) {
  .flip-card-btn { transition: none; }
}

/* FAQ */
.faq-list { display: flex; flex-direction: column; gap: 12px; }

.faq-item {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 22px;
  background: var(--bg);
}

.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--fg);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--accent);
  font-weight: 400;
  margin-left: 12px;
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after { transform: rotate(45deg); }

.faq-item p { margin: 14px 0 0; }

/* Forms */
.site-form { display: flex; flex-direction: column; gap: 20px; }

.form-row { display: flex; flex-direction: column; gap: 8px; }

.form-row label {
  font-size: 0.85rem;
  letter-spacing: -0.01em;
  color: var(--fg-dim);
}

.form-row input,
.form-row select,
.form-row textarea {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--fg);
  padding: 13px 16px;
  font-family: inherit;
  font-size: 1rem;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.form-status {
  min-height: 1.2em;
  color: var(--accent);
  font-size: 0.9rem;
}

/* Pay options */
.pay-options { display: flex; flex-direction: column; }

.pay-methods {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.pay-method {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px 32px;
  color: var(--fg);
  font-size: 1.05rem;
  font-weight: 500;
  background: var(--bg-alt);
  transition: border-color 0.2s ease;
}

.pay-method:hover { border-color: var(--accent); }

/* Footer */
.site-footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  padding: 12px 0;
  font-size: 0.82rem;
  color: #666;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(14px) saturate(180%);
  -webkit-backdrop-filter: blur(14px) saturate(180%);
  border-top: 1px solid var(--border);
}

.footer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--fg);
  font-family: Georgia, "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, serif;
  font-weight: 600;
  font-size: 0.9rem;
}

.footer-copy { color: #555; font-size: 0.82rem; margin: 0; }
.footer-copy a { color: #999; text-decoration: none; }
.footer-copy a:hover { color: var(--fg); }

.footer-mail { display: inline-flex; vertical-align: middle; margin-left: 6px; color: #999; }
.footer-mail:hover { color: var(--accent); }

/* Responsive */
@media (max-width: 780px) {
  .about-grid { grid-template-columns: 1fr; }

  .logo { font-size: 0.92rem; gap: 8px; }
  .logo-mark { width: 40px; height: 14px; }

  .nav-toggle { display: inline-block; }

  .main-nav ul {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #000;
    border-bottom: 1px solid var(--border);
    padding: 16px 24px;
    gap: 16px;
  }

  .main-nav ul.open { display: flex; }
}

@media (max-width: 400px) {
  .wrap { padding: 0 14px; }
  .logo { font-size: 0.8rem; gap: 6px; }
  .logo-mark { width: 32px; height: 11px; }
  .lang-switch { gap: 2px; margin-right: 6px; padding: 2px; }
  .lang-btn { padding: 4px 6px; }
  .nav-toggle { padding: 5px 8px; font-size: 1.05rem; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---- Award polish pass ---------------------------------------------- */

/* Hero headline: gold gradient shimmer sweep */
.hero h1 {
  background: linear-gradient(
    110deg,
    var(--fg) 0%,
    var(--fg) 38%,
    var(--accent) 50%,
    var(--fg) 62%,
    var(--fg) 100%
  );
  background-size: 240% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--fg); /* fallback if background-clip:text unsupported */
  animation: hero-shimmer 6.5s ease-in-out infinite;
}

@keyframes hero-shimmer {
  0%   { background-position: 120% 0; }
  55%  { background-position: -60% 0; }
  100% { background-position: -60% 0; }
}

/* Mute toggle for note sounds */
.sound-toggle {
  position: fixed;
  right: 16px;
  bottom: calc(var(--footer-h, 44px) + 14px);
  z-index: 60;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--fg);
  font-size: 1.05rem;
  cursor: pointer;
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.sound-toggle:hover { border-color: var(--accent); transform: scale(1.08); }
.sound-toggle.is-muted { opacity: 0.6; }

/* Reviews carousel (JS adds .carousel-on; static grid without JS) */
.reviews-viewport.carousel-on { overflow: hidden; }
.reviews-viewport.carousel-on .cards-reviews {
  display: flex;
  flex-wrap: nowrap;
  gap: 20px;
  transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}
.reviews-viewport.carousel-on .flip-card-slot {
  flex: 0 0 calc((100% - 40px) / 3);
}
@media (max-width: 768px) {
  .reviews-viewport.carousel-on .flip-card-slot { flex: 0 0 100%; }
}

.reviews-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 26px;
}
.rev-arrow {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--fg);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}
.rev-arrow:hover { border-color: var(--accent); color: var(--accent); transform: scale(1.1); }
.rev-dots { display: flex; gap: 8px; }
.rev-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: var(--border);
  cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease;
}
.rev-dot.is-active { background: var(--accent); transform: scale(1.3); }

/* Nav link animated gold underline */
#navMenu a:not(.nav-cta) {
  position: relative;
  text-decoration: none;
}
#navMenu a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 1.5px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
#navMenu a:not(.nav-cta):hover::after,
#navMenu a:not(.nav-cta).is-active::after { transform: scaleX(1); }

/* Card hover tilt + magnetic buttons (transforms set by script.js) */
.js-tilt {
  transition: transform 0.25s ease;
  will-change: transform;
}
.js-magnetic {
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
  .hero h1 { animation: none; }
  .sound-toggle { display: none; }
  .js-tilt, .js-magnetic { transition: none; }
}
