/* ============================================================
   COATINGS COLLEGE — Design System
   Editorial dark theme with paint-gold accent
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,700;0,900;1,700&family=Inter:wght@400;500;600&display=swap');

/* ── Variables ────────────────────────────────────────────── */
:root {
  /* Editorial dark — default theme */
  --ink:        #0b0b0c;
  --ink-2:      #111215;
  --ink-3:      #1a1b1f;
  --rule:       #2a2b30;
  --rule-light: #38393f;

  --gold:       #c9932a;
  --gold-light: #e0aa44;
  --gold-dim:   rgba(201, 147, 42, 0.18);
  --gold-line:  rgba(201, 147, 42, 0.35);

  --paper:      #f0ede8;
  --paper-dim:  #b8b4ad;
  --paper-mute: #6c6860;

  --nav-bg:     rgba(11, 11, 12, 0.92);
  --noise-opacity: 0.6;
  --shadow-color: 0, 0, 0;

  --max:        1180px;
  --col-gap:    28px;
  --section-v:  100px;
}

/* Editorial light — warm cream paper with deep ink text */
html[data-theme="light"] {
  --ink:        #f6f3ec;
  --ink-2:      #ede9df;
  --ink-3:      #e3ddcd;
  --rule:       #d6cfbb;
  --rule-light: #c3bba2;

  --gold:       #a87514;
  --gold-light: #c9932a;
  --gold-dim:   rgba(168, 117, 20, 0.16);
  --gold-line:  rgba(168, 117, 20, 0.4);

  --paper:      #1a1814;
  --paper-dim:  #4d4942;
  --paper-mute: #7a7568;

  --nav-bg:     rgba(246, 243, 236, 0.92);
  --noise-opacity: 0.35;
  --shadow-color: 90, 80, 40;

  color-scheme: light;
}

/* Smooth theme transition (no transition on first paint) */
html.theme-ready,
html.theme-ready body,
html.theme-ready *:not(svg):not(path):not(.cc-asst-typing span):not(.cc-asst-launcher-pulse):not(.lb-img):not(.team-avatar):not(.photo-tile):not(.photo-tile img):not(.gallery-editorial img):not(.hero-right img):not(.founder-portrait img) {
  transition: background-color 0.35s ease, border-color 0.35s ease, color 0.25s ease;
}

/* ── Reset ────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Inter', -apple-system, sans-serif;
  background: var(--ink);
  color: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* subtle noise overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
  opacity: var(--noise-opacity);
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ── Typography ───────────────────────────────────────────── */
.display {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.display-italic {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

h1, h2 { font-family: 'Playfair Display', Georgia, serif; font-weight: 700; line-height: 1.15; }
h3, h4 { font-family: 'Inter', sans-serif; font-weight: 600; line-height: 1.3; }

.eyebrow {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}

.muted { color: var(--paper-mute); }
.dim   { color: var(--paper-dim); }

/* ── Layout ───────────────────────────────────────────────── */
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 40px;
}

section.section {
  padding: var(--section-v) 0;
  position: relative;
}

section.section + section.section {
  border-top: 1px solid var(--rule);
}

/* ── Canonical page header (consistent across all subpages) ───── */
section.page-header {
  padding-top: 140px;
  padding-bottom: 60px;
  border-bottom: 1px solid var(--rule);
}
section.page-header .eyebrow + .display,
section.page-header .eyebrow + h1 {
  margin-top: 12px;
  font-size: clamp(2.4rem, 5vw, 4rem);
  max-width: 700px;
}
section.page-header > .wrap > p {
  max-width: 640px;
  margin-top: 20px;
  color: var(--paper-dim);
  font-size: 1rem;
  line-height: 1.75;
}
@media (max-width: 768px) {
  section.page-header {
    padding-top: 110px;
    padding-bottom: 40px;
  }
}

.divider {
  width: 48px;
  height: 2px;
  background: var(--gold);
  margin: 18px 0 28px;
}

/* ── Navigation ───────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  height: 68px;
  border-bottom: 1px solid transparent;
  transition: background 0.4s, border-color 0.4s;
}

.nav.scrolled {
  background: var(--nav-bg);
  backdrop-filter: blur(16px) saturate(1.2);
  border-bottom-color: var(--rule);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.brand {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.01em;
}

.brand em {
  color: var(--gold);
  font-style: normal;
}

.nav-links {
  display: flex;
  gap: 32px;
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--paper-dim);
}

.nav-links a {
  transition: color 0.2s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width 0.3s ease;
}

.nav-links a:hover, .nav-links a.active { color: var(--paper); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

.btn-enroll {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #0b0b0c; /* always dark text on gold (both themes) */
  background: var(--gold);
  padding: 10px 22px;
  border-radius: 4px;
  transition: background 0.2s, transform 0.2s;
}

.btn-enroll:hover {
  background: var(--gold-light);
  transform: translateY(-1px);
}

/* ── Theme toggle button (sun/moon) ───────────────────── */
.theme-toggle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--rule-light);
  background: transparent;
  color: var(--paper-dim);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 4px 0 8px;
  padding: 0;
  transition: color 0.2s, border-color 0.2s, background 0.2s, transform 0.2s;
  flex-shrink: 0;
}
.theme-toggle:hover {
  color: var(--gold);
  border-color: var(--gold-line);
  background: var(--gold-dim);
  transform: translateY(-1px);
}
.theme-toggle svg {
  width: 16px;
  height: 16px;
  display: block;
}
.theme-toggle .icon-sun  { display: none; }
.theme-toggle .icon-moon { display: block; }
html[data-theme="light"] .theme-toggle .icon-sun  { display: block; }
html[data-theme="light"] .theme-toggle .icon-moon { display: none; }

/* ── Nav Dropdowns ─────────────────────────────────────── */
.nav-dropdown {
  position: relative;
  padding-bottom: 24px;
  margin-bottom: -24px;
}

.nav-drop-btn {
  background: none;
  border: none;
  cursor: pointer;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--paper-dim);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0;
  transition: color 0.2s;
  position: relative;
}

.nav-drop-btn::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width 0.3s ease;
}

.nav-dropdown:hover .nav-drop-btn,
.nav-dropdown.open .nav-drop-btn,
.nav-drop-btn:hover { color: var(--paper); }

.nav-drop-btn svg {
  width: 10px; height: 10px;
  transition: transform 0.25s;
}
.nav-dropdown:hover .nav-drop-btn svg,
.nav-dropdown.open .nav-drop-btn svg { transform: rotate(180deg); }

.nav-drop-menu {
  position: absolute;
  top: calc(100% - 8px);
  left: 50%;
  background: var(--ink-2);
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 8px 0;
  min-width: 200px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s, transform 0.18s;
  transform: translateX(-50%) translateY(-6px);
  z-index: 200;
  box-shadow: 0 12px 36px rgba(0,0,0,0.4);
}

.nav-dropdown:hover .nav-drop-menu,
.nav-dropdown.open .nav-drop-menu,
.nav-drop-menu:hover {
  opacity: 1;
  pointer-events: all;
  transform: translateX(-50%) translateY(0);
  transition-delay: 0.05s;
}

.nav-drop-menu a {
  display: block;
  padding: 10px 20px;
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--paper-dim);
  transition: color 0.15s, background 0.15s;
}

.nav-drop-menu a:hover {
  color: var(--paper);
  background: var(--ink-3);
}

/* Mobile nav toggle */
.nav-mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  width: 44px;
  height: 44px;
  margin-right: -10px;
  z-index: 110;
  position: relative;
}

.nav-mobile-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--paper);
  transition: transform 0.25s ease, opacity 0.2s ease;
  transform-origin: center;
}

/* Burger → X */
.nav-mobile-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-mobile-toggle.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0.4);
}
.nav-mobile-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Lock body scroll when mobile nav is open */
body.nav-locked { overflow: hidden; }

@media (max-width: 768px) {
  .nav-mobile-toggle { display: flex; }
  .nav-links {
    display: none;
    position: fixed;
    top: 68px; left: 0; right: 0; bottom: 0;
    background: var(--ink-2);
    flex-direction: column;
    padding: 32px 40px;
    gap: 0;
    overflow-y: auto;
    border-top: 1px solid var(--rule);
  }
  .nav-links.open { display: flex; }
  .nav-links a, .nav-drop-btn {
    padding: 14px 0;
    border-bottom: 1px solid var(--rule);
    font-size: 1rem;
    width: 100%;
  }
  .nav-drop-menu {
    position: static;
    transform: none;
    opacity: 1;
    pointer-events: all;
    background: var(--ink-3);
    border: none;
    border-radius: 0;
    padding: 0 0 0 16px;
    display: none;
  }
  .nav-dropdown.open .nav-drop-menu { display: block; }
  .btn-enroll { display: none; }

  /* Always show theme toggle on mobile — moves to right of brand */
  .theme-toggle {
    display: inline-flex;
    order: 3;
    margin: 0 8px 0 auto;
  }
  .nav-mobile-toggle { order: 4; }
}

/* ── Class Listing Styles ──────────────────────────────── */
.level-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.badge-beginner  { background: rgba(100,180,100,0.15); color: #7ecb7e; border: 1px solid rgba(100,180,100,0.3); }
.badge-intermediate { background: rgba(201,147,42,0.15); color: var(--gold); border: 1px solid var(--gold-line); }
.badge-advanced  { background: rgba(200,80,80,0.15); color: #e07878; border: 1px solid rgba(200,80,80,0.3); }

.class-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
  margin-top: 28px;
}

.class-card {
  background: var(--ink-2);
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color 0.25s, transform 0.25s;
}

.class-card:hover {
  border-color: var(--gold-line);
  transform: translateY(-2px);
}

.class-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.class-card h3 {
  font-size: 1rem;
  line-height: 1.3;
  flex: 1;
}

.class-price {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--gold);
  white-space: nowrap;
}

.class-instructor {
  font-size: 0.78rem;
  color: var(--gold);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.class-card p {
  font-size: 0.9rem;
  color: var(--paper-dim);
  line-height: 1.6;
  flex: 1;
}

/* Package Tables */
.pkg-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 28px;
}

.pkg-card {
  background: var(--ink-2);
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 32px 28px;
  position: relative;
  transition: border-color 0.25s;
}

.pkg-card.featured {
  border-color: var(--gold-line);
  background: linear-gradient(135deg, var(--ink-3), var(--ink-2));
}

.pkg-card.featured::before {
  content: 'BEST VALUE';
  position: absolute;
  top: -1px; right: 20px;
  background: var(--gold);
  color: var(--ink);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 4px 12px;
  border-radius: 0 0 6px 6px;
}

.pkg-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.pkg-retail {
  font-size: 0.8rem;
  color: var(--paper-mute);
  text-decoration: line-through;
  margin-bottom: 4px;
}

.pkg-price {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 900;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 16px;
}

.pkg-includes {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
}

.pkg-includes li {
  font-size: 0.85rem;
  color: var(--paper-dim);
  padding-left: 18px;
  position: relative;
}

.pkg-includes li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: 700;
}

/* Full program pricing */
.program-options {
  display: grid;
  gap: 20px;
  margin-top: 32px;
}

.program-option {
  background: var(--ink-2);
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 32px 36px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px 40px;
  align-items: center;
  transition: border-color 0.25s;
}

.program-option:hover { border-color: var(--rule-light); }

.program-option.top-pick {
  border-color: var(--gold-line);
  background: linear-gradient(to right, var(--ink-3), var(--ink-2));
}

.program-option h3 {
  font-size: 1.1rem;
}

.program-option p {
  font-size: 0.88rem;
  color: var(--paper-dim);
  grid-column: 1;
}

.program-option-price {
  grid-row: 1 / 3;
  grid-column: 2;
  text-align: right;
}

.program-option-price .price-big {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--gold);
  line-height: 1;
}

.program-option-price .price-retail {
  font-size: 0.78rem;
  color: var(--paper-mute);
  text-decoration: line-through;
  display: block;
  margin-top: 4px;
}

@media (max-width: 600px) {
  .program-option {
    grid-template-columns: 1fr;
  }
  .program-option-price {
    grid-row: auto;
    grid-column: 1;
    text-align: left;
  }
}

/* ── Artist Bio Page ───────────────────────────────────── */
.bio-hero {
  padding-top: 140px;
  padding-bottom: 80px;
  border-bottom: 1px solid var(--rule);
}

.bio-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 32px;
  transition: gap 0.2s;
}

.bio-back:hover { gap: 12px; }

.bio-layout {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 64px;
  align-items: start;
  padding: var(--section-v) 0;
}

@media (max-width: 768px) {
  .bio-layout { grid-template-columns: 1fr; gap: 40px; }
}

.bio-sidebar {}

.bio-name-block {
  padding-bottom: 24px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 24px;
}

.bio-company {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}

.bio-classes-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bio-classes-list li {
  font-size: 0.85rem;
  color: var(--paper-dim);
  padding: 10px 14px;
  background: var(--ink-2);
  border: 1px solid var(--rule);
  border-radius: 4px;
  border-left: 2px solid var(--gold);
}

.bio-body h2 {
  font-size: 1.8rem;
  margin-bottom: 24px;
}

.bio-body p {
  font-size: 0.95rem;
  color: var(--paper-dim);
  line-height: 1.75;
  margin-bottom: 20px;
}

.bio-body p:last-child { margin-bottom: 0; }

/* ── Events Page ───────────────────────────────────────── */
.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.event-card {
  background: var(--ink-2);
  border: 1px solid var(--rule);
  border-radius: 8px;
  overflow: hidden;
  transition: border-color 0.25s, transform 0.25s;
}

.event-card:hover {
  border-color: var(--gold-line);
  transform: translateY(-3px);
}

.event-date-bar {
  background: var(--gold);
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 8px 20px;
}

.event-card-body {
  padding: 24px;
}

.event-card-body h3 {
  font-size: 1rem;
  margin-bottom: 10px;
  line-height: 1.3;
}

.event-card-body p {
  font-size: 0.86rem;
  color: var(--paper-dim);
  line-height: 1.6;
}

/* ── Team Grid ─────────────────────────────────────────── */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.team-card {
  background: var(--ink-2);
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 28px;
  text-align: center;
  transition: border-color 0.25s, transform 0.25s;
}

.team-card:hover {
  border-color: var(--gold-line);
  transform: translateY(-3px);
}

.team-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--ink-3);
  border: 2px solid var(--rule-light);
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--gold);
}

.team-card h3 { font-size: 1rem; margin-bottom: 4px; }
.team-card .team-role {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}
.team-card p {
  font-size: 0.84rem;
  color: var(--paper-mute);
  line-height: 1.5;
}

.team-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 14px;
  transition: gap 0.2s;
}
.team-card-link:hover { gap: 10px; }

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Inter', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 14px 28px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
  text-decoration: none;
}

.btn-gold {
  background: var(--gold);
  color: var(--ink);
}

.btn-gold:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(201, 147, 42, 0.28);
}

.btn-outline {
  background: transparent;
  color: var(--paper);
  border: 1px solid var(--rule-light);
}

.btn-outline:hover {
  border-color: var(--gold-line);
  color: var(--gold-light);
}

.btn svg { transition: transform 0.2s; }
.btn:hover svg { transform: translateX(4px); }

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
  overflow: hidden;
}

.hero-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 130px 60px 80px 40px;
  position: relative;
  z-index: 2;
}

.hero-headline {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 900;
  font-size: clamp(2.8rem, 5.5vw, 4.6rem);
  line-height: 1.04;
  letter-spacing: -0.025em;
  margin: 20px 0 24px;
}

.hero-headline em {
  font-style: italic;
  color: var(--gold);
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--paper-dim);
  max-width: 460px;
  line-height: 1.65;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-meta {
  display: flex;
  gap: 36px;
  margin-top: 52px;
  padding-top: 32px;
  border-top: 1px solid var(--rule);
}

.hero-meta-item strong {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}

.hero-meta-item span {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--paper-mute);
  margin-top: 4px;
  display: block;
}

.hero-right {
  position: relative;
  overflow: hidden;
}

.hero-right img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.72) contrast(1.1);
}

.hero-right::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    var(--ink) 0%,
    rgba(11,11,12,0.35) 40%,
    transparent 100%
  );
}

/* ── About Block ──────────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: start;
}

.about-grid p + p { margin-top: 16px; }

.quote-block {
  border-left: 2px solid var(--gold);
  padding: 8px 0 8px 24px;
  margin: 32px 0;
}

.quote-block p {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 1.3rem;
  color: var(--paper);
  line-height: 1.55;
}

/* ── Program Levels ───────────────────────────────────────── */
.levels {
  display: grid;
  gap: 0;
}

.level-row {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 0 36px;
  padding: 40px 0;
  border-top: 1px solid var(--rule);
  transition: border-color 0.2s;
}

.level-row:hover {
  border-top-color: var(--gold-line);
}

.level-num {
  font-family: 'Playfair Display', serif;
  font-size: 3.2rem;
  font-weight: 900;
  color: var(--rule-light);
  line-height: 1;
  padding-top: 6px;
  transition: color 0.3s;
}

.level-row:hover .level-num { color: var(--gold); }

.level-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 8px;
}

.level-header h3 {
  font-size: 1.3rem;
}

.level-duration {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
}

.level-body {
  color: var(--paper-dim);
  line-height: 1.65;
}

.level-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.tag {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--paper-mute);
  border: 1px solid var(--rule-light);
  padding: 4px 10px;
  border-radius: 3px;
}

/* ── Tracks ───────────────────────────────────────────────── */
.tracks-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--rule);
}

.track-card {
  background: var(--ink-2);
  padding: 52px 44px;
  transition: background 0.3s;
  position: relative;
  overflow: hidden;
}

.track-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 3px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.track-card:hover { background: var(--ink-3); }
.track-card:hover::before { transform: scaleX(1); }

.track-num {
  font-family: 'Playfair Display', serif;
  font-size: 4.5rem;
  font-weight: 900;
  color: var(--rule-light);
  line-height: 1;
  margin-bottom: 24px;
  transition: color 0.3s;
}

.track-card:hover .track-num { color: var(--gold-dim); }

.track-card h3 {
  font-size: 1.45rem;
  margin-bottom: 14px;
}

.track-card p { color: var(--paper-dim); }

.track-card ul {
  list-style: none;
  margin-top: 20px;
}

.track-card ul li {
  color: var(--paper-dim);
  font-size: 0.9rem;
  padding: 7px 0;
  border-bottom: 1px solid var(--rule);
  display: flex;
  align-items: center;
  gap: 10px;
}

.track-card ul li::before {
  content: '';
  display: inline-block;
  width: 5px; height: 5px;
  background: var(--gold);
  border-radius: 50%;
  flex-shrink: 0;
}

/* ── Gallery ──────────────────────────────────────────────── */
.gallery-editorial {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  grid-template-rows: auto auto;
  gap: 3px;
}

.gallery-editorial figure {
  overflow: hidden;
  position: relative;
}

.gallery-editorial figure:first-child {
  grid-row: 1 / 3;
}

.gallery-editorial img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.85) contrast(1.05) saturate(0.9);
  transition: transform 0.8s cubic-bezier(0.25,0.1,0.25,1), filter 0.5s;
  min-height: 280px;
}

.gallery-editorial figure:hover img {
  transform: scale(1.04);
  filter: brightness(0.95) contrast(1.05) saturate(1.1);
}

.gallery-editorial figcaption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 28px 22px 18px;
  background: linear-gradient(transparent, rgba(0,0,0,0.65));
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(240,237,232,0.7);
  transform: translateY(6px);
  transition: transform 0.3s, opacity 0.3s;
  opacity: 0;
}

.gallery-editorial figure:hover figcaption {
  transform: translateY(0);
  opacity: 1;
}

/* ── Founder ──────────────────────────────────────────────── */
.founder-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 80px;
  align-items: start;
}

.founder-portrait {
  position: relative;
}

.founder-portrait img {
  width: 100%;
  border-radius: 3px;
  filter: brightness(0.82) contrast(1.1) saturate(0.8);
}

.founder-portrait::after {
  content: '';
  position: absolute;
  bottom: -14px; right: -14px;
  width: 100%; height: 100%;
  border: 2px solid var(--gold-line);
  border-radius: 3px;
  pointer-events: none;
}

.company-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--rule);
  margin-top: 32px;
}

.company-cell {
  background: var(--ink-2);
  padding: 28px 24px;
}

.company-cell h4 {
  font-size: 0.95rem;
  margin-bottom: 6px;
  color: var(--paper);
}

.company-cell p {
  font-size: 0.85rem;
  color: var(--paper-mute);
}

/* ── Contact ──────────────────────────────────────────────── */
.contact-split {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 80px;
  align-items: start;
}

.contact-info-block { display: flex; flex-direction: column; gap: 28px; }

.contact-detail {
  border-top: 1px solid var(--rule);
  padding-top: 18px;
}

.contact-detail label {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 6px;
}

.contact-detail a, .contact-detail p {
  color: var(--paper);
  font-size: 1rem;
}

.contact-detail a:hover { color: var(--gold-light); }

/* ── Form ─────────────────────────────────────────────────── */
.field {
  margin-bottom: 18px;
}

.field label {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--paper-mute);
  margin-bottom: 7px;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  background: var(--ink-3);
  border: 1px solid var(--rule);
  border-radius: 4px;
  color: var(--paper);
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  padding: 13px 14px;
  transition: border-color 0.25s, box-shadow 0.25s;
  -webkit-appearance: none;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,147,42,0.12);
}

.field input::placeholder,
.field textarea::placeholder { color: var(--paper-mute); }

.field textarea { min-height: 120px; resize: vertical; }

.fields-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* ── CTA Banner ───────────────────────────────────────────── */
.cta-band {
  background: var(--gold);
  color: #0b0b0c; /* always dark text on gold */
  padding: 64px 0;
  position: relative;
  overflow: hidden;
}

.cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.06'/%3E%3C/svg%3E");
  pointer-events: none;
}

.cta-band h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 4vw, 3rem);
  color: var(--ink);
  margin-bottom: 8px;
}

.cta-band p {
  font-size: 1rem;
  color: rgba(11,11,12,0.65);
  margin-bottom: 28px;
}

.btn-cta-dark {
  background: var(--ink);
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 14px 28px;
  border-radius: 4px;
  transition: background 0.2s;
}

.btn-cta-dark:hover { background: var(--ink-3); }

/* ── Footer ───────────────────────────────────────────────── */
.footer {
  background: var(--ink-2);
  border-top: 1px solid var(--rule);
  padding: 52px 0 36px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap;
}

.footer-brand .brand { font-size: 1.1rem; }
.footer-brand p { font-size: 0.85rem; color: var(--paper-mute); margin-top: 8px; max-width: 260px; }

.footer-links h4 {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}

.footer-links ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links ul a {
  font-size: 0.88rem;
  color: var(--paper-dim);
  transition: color 0.2s;
}

.footer-links ul a:hover { color: var(--paper); }

.footer-social a {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--paper-mute);
  margin-right: 16px;
  transition: color 0.2s;
}

.footer-social a:hover { color: var(--gold); }

.footer-bottom {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-bottom small {
  font-size: 0.78rem;
  color: var(--paper-mute);
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 1020px) {
  :root { --section-v: 72px; }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-left {
    padding: 110px 28px 60px;
  }

  .hero-right {
    height: 340px;
  }

  .hero-right::after {
    background: linear-gradient(to top, var(--ink) 0%, transparent 60%);
  }

  .about-grid,
  .founder-grid,
  .tracks-grid,
  .contact-split {
    grid-template-columns: 1fr;
    gap: 40px;
  }

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

  .gallery-editorial figure:first-child { grid-row: auto; }

  .company-row { grid-template-columns: 1fr; }

  .level-row { grid-template-columns: 48px 1fr; gap: 0 18px; }
  .level-num { font-size: 2.4rem; }

  .track-card { padding: 36px 28px; }
  .tracks-grid { gap: 0; background: none; }
  .track-card + .track-card { border-top: 1px solid var(--rule); }
}

@media (max-width: 680px) {
  .wrap { padding: 0 22px; }
  .hero-headline { font-size: 2.2rem; }
  .hero-meta { flex-wrap: wrap; gap: 20px; }
  .fields-row { grid-template-columns: 1fr; }
}

/* ============================================================
   MOBILE-FIRST OVERHAUL — full responsive pass
   ============================================================ */

/* Prevent iOS pinch-zoom on inputs (need ≥16px font-size) */
@media (max-width: 768px) {
  .field input,
  .field textarea,
  .field select,
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="password"],
  input[type="search"],
  textarea,
  select {
    font-size: 16px;
  }

  /* Bigger tap targets across the board */
  .nav-links a,
  .nav-drop-btn,
  .nav-drop-menu a,
  .footer-links ul a,
  .footer-social a,
  .btn,
  .btn-cta-dark,
  .btn-enroll {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }

  /* Tighten section vertical rhythm on phones */
  :root { --section-v: 56px; }
  .wrap { padding: 0 20px; }

  /* Hero block — reduce padding so headline doesn't sit half off-screen */
  .hero { min-height: auto; }
  .hero-left { padding: 96px 20px 48px; }
  .hero-sub { font-size: 0.98rem; margin-bottom: 28px; }
  .hero-meta { gap: 22px 28px; margin-top: 36px; padding-top: 24px; }
  .hero-meta-item strong { font-size: 1.5rem; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .hero-right { height: 280px; }

  /* Levels list */
  .level-row { padding: 28px 0; gap: 0 16px; grid-template-columns: 44px 1fr; }
  .level-num { font-size: 2rem; padding-top: 4px; }
  .level-header h3 { font-size: 1.1rem; }
  .level-body { font-size: 0.92rem; }

  /* Tracks */
  .track-card { padding: 32px 22px; }
  .track-num { font-size: 3.2rem; margin-bottom: 18px; }
  .track-card h3 { font-size: 1.2rem; }

  /* About */
  .about-grid { gap: 32px; }
  .quote-block { margin: 24px 0; padding-left: 18px; }
  .quote-block p { font-size: 1.1rem; }

  /* Cards & grids */
  .class-grid,
  .pkg-grid,
  .events-grid,
  .team-grid,
  .video-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .class-card { padding: 22px; }
  .pkg-card { padding: 28px 22px; }
  .event-card-body { padding: 20px; }
  .team-card { padding: 24px 22px; }

  /* Program option rows — stack price below text on phones */
  .program-option {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 26px 24px;
  }
  .program-option-price {
    grid-row: auto;
    grid-column: 1;
    text-align: left;
  }
  .program-option-price .price-big { font-size: 1.9rem; }

  /* Bio pages */
  .bio-hero { padding-top: 110px; padding-bottom: 56px; }
  .bio-layout { gap: 32px; padding: 56px 0; }
  .bio-body h2 { font-size: 1.45rem; margin-bottom: 18px; }
  .bio-body p { font-size: 0.92rem; }

  /* CTA Banner */
  .cta-band { padding: 52px 0; }

  /* Footer */
  .footer { padding: 40px 0 28px; }
  .footer-inner { flex-direction: column; gap: 28px; }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    text-align: left;
  }

  /* Inline-styled responsive grids — collapse to single column on mobile */
  [style*="grid-template-columns:2fr 1fr 1fr"],
  [style*="grid-template-columns: 2fr 1fr 1fr"],
  [style*="grid-template-columns:1fr 2fr"],
  [style*="grid-template-columns: 1fr 2fr"],
  [style*="grid-template-columns:1fr 1fr"],
  [style*="grid-template-columns: 1fr 1fr"],
  [style*="grid-template-columns:1fr auto"],
  [style*="grid-template-columns: 1fr auto"] {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }

  /* Inline-styled big top padding hero sections — reduce on phones */
  section[style*="padding-top:140px"],
  section[style*="padding-top: 140px"],
  section[style*="padding-top:130px"],
  section[style*="padding-top: 130px"] {
    padding-top: 96px !important;
    padding-bottom: 36px !important;
  }

  /* Team page wide hero figure — 21:9 too tall on phones */
  section figure[style*="aspect-ratio:21/9"],
  section figure[style*="aspect-ratio: 21/9"] {
    aspect-ratio: 16 / 10 !important;
  }

  /* Inline H1 clamp tweaks for very small viewports */
  h1[style*="clamp(2.4rem"], h1[style*="clamp(2.8rem"] {
    font-size: 2rem !important;
    line-height: 1.1 !important;
  }
  h2[style*="clamp(1.7rem"],
  h2[style*="clamp(1.6rem"] {
    font-size: 1.5rem !important;
  }
}

/* Phone (≤480px) — tighten further */
@media (max-width: 480px) {
  :root { --section-v: 44px; }
  .wrap { padding: 0 16px; }

  /* Brand smaller so it doesn't crowd the burger */
  .brand { font-size: 1rem; }

  .hero-left { padding: 88px 16px 40px; }
  .hero-headline { font-size: 1.85rem; }
  .hero-sub { font-size: 0.94rem; }
  .hero-meta { gap: 18px 22px; }
  .hero-meta-item strong { font-size: 1.3rem; }
  .hero-meta-item span { font-size: 0.7rem; }
  .hero-right { height: 240px; }

  .btn { padding: 12px 20px; font-size: 0.82rem; }

  .quote-block p { font-size: 1rem; }

  .level-row { padding: 22px 0; grid-template-columns: 36px 1fr; }
  .level-num { font-size: 1.6rem; }
  .level-tags { gap: 6px; }
  .tag { font-size: 0.66rem; padding: 3px 8px; }

  .track-card { padding: 28px 18px; }
  .track-num { font-size: 2.6rem; }
  .track-card h3 { font-size: 1.1rem; }

  .pkg-price { font-size: 1.7rem; }
  .pkg-card { padding: 24px 20px; }
  .class-card { padding: 20px 18px; }

  .cta-band { padding: 44px 0; }
  .cta-band h2 { font-size: 1.5rem; line-height: 1.2; }
  .cta-band p { font-size: 0.92rem; }

  .footer { padding: 32px 0 24px; }
  .footer-social a { display: inline-block; margin-right: 14px; padding: 6px 0; }

  /* Inline mobile shrink for bio header rows */
  [style*="grid-template-columns:2fr 1fr 1fr"],
  [style*="grid-template-columns: 2fr 1fr 1fr"] {
    gap: 16px !important;
  }

  /* Smaller inline H2s on tiny screens */
  h2[style*="font-size:1.6rem"],
  h2[style*="font-size: 1.6rem"] {
    font-size: 1.25rem !important;
  }
}

/* Tablet refinements (between mobile and desktop) */
@media (min-width: 769px) and (max-width: 1020px) {
  .hero-left { padding: 120px 32px 60px; }
  .hero-meta { gap: 28px; }
  .level-row { grid-template-columns: 56px 1fr; gap: 0 28px; }
  .tracks-grid { grid-template-columns: 1fr; }
}
