/* ============================================================
   Connor McDonald — Session & Touring Guitarist
   Dark stage cinematic design system
   ============================================================ */

:root {
  /* Type scale */
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.2rem + 2.5vw, 3.5rem);
  --text-3xl: clamp(2.5rem, 1rem + 4vw, 5rem);
  --text-hero: clamp(3rem, 0.5rem + 7vw, 7.5rem);

  /* Spacing */
  --space-1: 0.25rem; --space-2: 0.5rem; --space-3: 0.75rem;
  --space-4: 1rem; --space-5: 1.25rem; --space-6: 1.5rem;
  --space-8: 2rem; --space-10: 2.5rem; --space-12: 3rem;
  --space-16: 4rem; --space-20: 5rem; --space-24: 6rem; --space-32: 8rem;

  --radius-sm: 4px; --radius-md: 8px; --radius-lg: 14px;

  --font-display: 'Clash Display', 'Satoshi', sans-serif;
  --font-body: 'Satoshi', 'Inter', -apple-system, sans-serif;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --container: 1200px;
  --container-narrow: 720px;
}

/* Dark (default) — neutral stage black, amber spotlight accent */
:root, [data-theme='dark'] {
  --color-bg: #0b0b0d;
  --color-surface: #131316;
  --color-surface-2: #1a1a1f;
  --color-border: rgba(235, 235, 240, 0.12);
  --color-divider: rgba(235, 235, 240, 0.07);
  --color-text: #f2f2f0;
  --color-text-muted: #a3a3a8;
  --color-text-faint: #64646b;
  --color-accent: #e3a44f;
  --color-accent-hover: #eeb96f;
  --color-accent-ink: #121006;
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.55);
  color-scheme: dark;
}

[data-theme='light'] {
  --color-bg: #f5f5f4;
  --color-surface: #fcfcfb;
  --color-surface-2: #ebebe9;
  --color-border: rgba(24, 24, 28, 0.16);
  --color-divider: rgba(24, 24, 28, 0.09);
  --color-text: #1b1b1e;
  --color-text-muted: #5f5f66;
  --color-text-faint: #9a9aa1;
  --color-accent: #96600f;
  --color-accent-hover: #744a06;
  --color-accent-ink: #fdfdfc;
  --shadow-lg: 0 24px 60px rgba(60, 45, 20, 0.18);
  color-scheme: light;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background 0.4s var(--ease), color 0.4s var(--ease);
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.08; }
p { margin: 0 0 var(--space-4); }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--color-accent); color: var(--color-accent-ink);
  padding: var(--space-3) var(--space-5); font-weight: 600;
}
.skip-link:focus { left: 0; }

:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: 2px;
}

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

.container { max-width: var(--container); margin-inline: auto; padding-inline: clamp(var(--space-5), 5vw, var(--space-10)); }
.container--narrow { max-width: var(--container-narrow); }

/* Subtle film grain */
body::after {
  content: '';
  position: fixed; inset: 0; z-index: 90;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--color-bg) 82%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--color-divider);
  transition: transform 0.3s var(--ease);
}
.site-header.is-hidden { transform: translateY(-100%); }
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-6);
  padding-block: var(--space-4);
}
.brand {
  display: inline-flex; align-items: center; gap: var(--space-3);
  text-decoration: none; font-family: var(--font-display);
  font-weight: 600; font-size: var(--text-base);
  letter-spacing: 0.06em; text-transform: uppercase;
}
.brand svg { flex-shrink: 0; }

.site-nav { display: flex; align-items: center; gap: clamp(var(--space-4), 3vw, var(--space-8)); }
.site-nav a {
  text-decoration: none; font-size: var(--text-sm); font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--color-text-muted);
  padding: var(--space-2) 0;
  border-bottom: 1px solid transparent;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.site-nav a:hover { color: var(--color-text); }
.site-nav a[aria-current='page'] { color: var(--color-text); border-bottom-color: var(--color-accent); }

.theme-toggle, .nav-toggle {
  background: none; border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  color: var(--color-text-muted);
  width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.theme-toggle:hover, .nav-toggle:hover { color: var(--color-text); border-color: var(--color-text-faint); }
.theme-toggle .icon-sun { display: none; }
[data-theme='light'] .theme-toggle .icon-sun { display: block; }
[data-theme='light'] .theme-toggle .icon-moon { display: none; }

.nav-toggle { display: none; }

@media (max-width: 820px) {
  /* backdrop-filter on the header would become the containing block
     for the fixed nav overlay, so use a near-solid background instead */
  .site-header {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: color-mix(in srgb, var(--color-bg) 97%, transparent);
  }
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: fixed; inset: 0; top: 0;
    flex-direction: column; justify-content: center; align-items: center;
    gap: var(--space-8);
    background: var(--color-bg);
    transform: translateY(-100%);
    visibility: hidden;
    transition: transform 0.4s var(--ease), visibility 0.4s;
    z-index: 60;
  }
  .site-nav.is-open { transform: translateY(0); visibility: visible; }
  .site-nav a { font-size: var(--text-lg); }
  .nav-close {
    position: absolute; top: var(--space-5); right: var(--space-5);
    background: none; border: 1px solid var(--color-border);
    border-radius: var(--radius-sm); color: var(--color-text);
    width: 44px; height: 44px; cursor: pointer;
  }
}
@media (min-width: 821px) { .nav-close { display: none; } }

/* ---------- Hero (home) ---------- */
.hero {
  position: relative;
  min-height: min(92vh, 900px);
  display: flex; align-items: flex-end;
  isolation: isolate;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: -2;
}
.hero-bg img {
  width: 100%; height: 100%; object-fit: cover;
  object-position: center 30%;
}
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to top, var(--color-bg) 4%, rgba(10, 10, 12, 0.55) 45%, rgba(10, 10, 12, 0.25) 100%);
}
/* The hero stays cinematic-dark in both themes so the cream text and
   ghost button always sit on a dark wash. */
[data-theme='light'] .hero::before {
  background: linear-gradient(to top, rgba(12, 12, 14, 0.94) 4%, rgba(12, 12, 14, 0.55) 45%, rgba(12, 12, 14, 0.28) 100%);
}
.hero-content {
  width: 100%;
  padding-block: clamp(var(--space-16), 10vh, var(--space-24));
  color: #f2f2f0;
}
.hero-kicker {
  font-size: var(--text-sm); font-weight: 500;
  letter-spacing: 0.28em; text-transform: uppercase;
  color: #e3a44f;
  margin-bottom: var(--space-4);
}
.hero-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-hero);
  text-transform: uppercase;
  letter-spacing: 0.01em;
  max-width: 12ch;
}
.hero-sub {
  margin-top: var(--space-5);
  font-size: var(--text-lg);
  color: rgba(240, 240, 238, 0.82);
  max-width: 46ch;
  line-height: 1.5;
}
.hero-actions { margin-top: var(--space-8); display: flex; flex-wrap: wrap; gap: var(--space-4); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  min-height: 44px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: var(--text-sm); font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  text-decoration: none; cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--color-accent); color: var(--color-accent-ink); }
.btn--primary:hover { background: var(--color-accent-hover); }
.btn--ghost { border-color: var(--color-border); color: var(--color-text); background: transparent; }
.btn--ghost:hover { border-color: var(--color-text-muted); }
.hero .btn--ghost { color: #f2f2f0; border-color: rgba(240, 240, 238, 0.35); }
.hero .btn--ghost:hover { border-color: rgba(240, 240, 238, 0.7); }

/* ---------- Sections ---------- */
.section { padding-block: clamp(var(--space-16), 9vw, var(--space-32)); }
.section--tight { padding-block: clamp(var(--space-12), 6vw, var(--space-20)); }
.section-kicker {
  font-size: var(--text-xs); font-weight: 600;
  letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-3);
}
.section-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-xl);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: var(--space-6);
}
.section-intro { color: var(--color-text-muted); max-width: 58ch; }

/* ---------- Credits wall ---------- */
.credits {
  border-top: 1px solid var(--color-divider);
  border-bottom: 1px solid var(--color-divider);
  background: var(--color-surface);
}
.credits-list {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap;
  column-gap: clamp(var(--space-6), 4vw, var(--space-12));
  row-gap: var(--space-2);
  align-items: baseline;
}
.credits-list li {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--text-xl);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--color-text);
  transition: color 0.3s var(--ease);
}
.credits-list li span { color: var(--color-text-faint); font-size: var(--text-sm); font-family: var(--font-body); letter-spacing: 0.12em; margin-left: var(--space-2); }
.credits-note { margin-top: var(--space-6); color: var(--color-text-muted); font-size: var(--text-sm); max-width: 60ch; }

/* ---------- Video (lite embed) ---------- */
.yt-lite {
  position: relative;
  display: block; width: 100%;
  aspect-ratio: 16 / 9;
  background-color: var(--color-surface-2);
  background-size: cover; background-position: center;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  border: 1px solid var(--color-divider);
  padding: 0;
}
.yt-lite::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.45), transparent 45%);
  transition: opacity 0.3s var(--ease);
}
.yt-lite .yt-play {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 64px; height: 44px; z-index: 2;
  border-radius: 10px;
  background: rgba(10, 10, 12, 0.75);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.25s var(--ease), transform 0.25s var(--ease);
}
.yt-lite:hover .yt-play, .yt-lite:focus-visible .yt-play {
  background: var(--color-accent);
  transform: translate(-50%, -50%) scale(1.06);
}
.yt-lite .yt-play svg path { transition: fill 0.25s var(--ease); }
.yt-lite:hover .yt-play svg path, .yt-lite:focus-visible .yt-play svg path { fill: #121006; }
.yt-lite iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%; border: 0;
}

.featured-video { max-width: 920px; margin-inline: auto; }
.featured-video .yt-lite { box-shadow: var(--shadow-lg); }
.video-caption {
  display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-4);
  align-items: baseline;
  margin-top: var(--space-4);
}
.video-caption strong { font-family: var(--font-display); font-weight: 500; font-size: var(--text-lg); text-transform: uppercase; letter-spacing: 0.02em; }
.video-caption span { color: var(--color-text-muted); font-size: var(--text-sm); }

/* ---------- Video grid ---------- */
.filter-bar {
  display: flex; flex-wrap: wrap; gap: var(--space-2);
  margin-bottom: var(--space-10);
}
.filter-chip {
  background: none;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  color: var(--color-text-muted);
  font-family: var(--font-body);
  font-size: var(--text-xs); font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: var(--space-2) var(--space-4);
  min-height: 36px;
  cursor: pointer;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease), background 0.25s var(--ease);
}
.filter-chip:hover { color: var(--color-text); }
.filter-chip.is-active {
  background: var(--color-accent); border-color: var(--color-accent);
  color: var(--color-accent-ink);
}
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr));
  gap: var(--space-8) var(--space-6);
}
.video-card { content-visibility: auto; contain-intrinsic-size: 320px; }
.video-card figcaption { margin-top: var(--space-3); }
.video-card .vc-artist {
  font-size: var(--text-xs); font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--color-accent);
}
.video-card .vc-title { font-weight: 600; font-size: var(--text-base); margin-top: 2px; }
.video-card .vc-context { color: var(--color-text-muted); font-size: var(--text-sm); margin-top: 2px; }

/* ---------- Editorial split ---------- */
.split {
  display: grid; gap: clamp(var(--space-8), 5vw, var(--space-16));
  align-items: center;
}
@media (min-width: 860px) {
  .split { grid-template-columns: 5fr 6fr; }
  .split--flip .split-media { order: 2; }
}
.split-media img {
  border-radius: var(--radius-md);
  border: 1px solid var(--color-divider);
  width: 100%;
}
.split-body .lede { font-size: var(--text-lg); line-height: 1.55; color: var(--color-text); }
.split-body p { color: var(--color-text-muted); }

/* ---------- Full bleed image ---------- */
.bleed { position: relative; }
.bleed img { width: 100%; max-height: 72vh; object-fit: cover; object-position: center 35%; }
.bleed figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: var(--space-10) 0 var(--space-6);
  background: linear-gradient(to top, rgba(10, 8, 6, 0.75), transparent);
  color: rgba(240, 240, 238, 0.85);
  font-size: var(--text-sm);
  letter-spacing: 0.08em; text-transform: uppercase;
}

/* ---------- Photo grid ---------- */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 180px;
  gap: var(--space-3);
}
.photo-grid figure { margin: 0; overflow: hidden; border-radius: var(--radius-sm); }
.photo-grid img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s var(--ease), opacity 0.6s var(--ease);
}
.photo-grid figure:hover img { transform: scale(1.04); }
.pg-wide { grid-column: span 2; }
.pg-tall { grid-row: span 2; }
@media (max-width: 720px) {
  .photo-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; }
}

/* ---------- Gear ---------- */
.gear-list {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: var(--space-1);
}
.gear-list li {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-3);
  padding: var(--space-5) 0;
  border-bottom: 1px solid var(--color-divider);
}
.gear-list li:first-child { border-top: 1px solid var(--color-divider); }
.gear-name {
  font-family: var(--font-display); font-weight: 500;
  font-size: var(--text-lg); text-transform: uppercase; letter-spacing: 0.03em;
}
.gear-desc { color: var(--color-text-muted); font-size: var(--text-sm); }
.gear-list a { color: var(--color-text-muted); font-size: var(--text-sm); margin-left: auto; }
.gear-list a:hover { color: var(--color-accent); }

/* ---------- Service blocks ---------- */
.service-flow { display: grid; gap: var(--space-6); max-width: 760px; }
.service-step {
  display: grid; grid-template-columns: auto 1fr; gap: var(--space-5);
  padding: var(--space-6);
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-md);
}
.service-step .step-num {
  font-family: var(--font-display); font-weight: 600;
  font-size: var(--text-xl); color: var(--color-accent);
  line-height: 1;
}
.service-step h3 { font-size: var(--text-lg); font-weight: 600; margin-bottom: var(--space-2); }
.service-step p { color: var(--color-text-muted); margin: 0; font-size: var(--text-base); }

.note-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  padding: clamp(var(--space-6), 4vw, var(--space-10));
}
.note-card h3 { font-family: var(--font-display); font-weight: 600; font-size: var(--text-lg); text-transform: uppercase; letter-spacing: 0.03em; margin-bottom: var(--space-3); }
.note-card p { color: var(--color-text-muted); }
.note-card p:last-child { margin-bottom: 0; }

/* ---------- CTA band ---------- */
.cta-band {
  border-top: 1px solid var(--color-divider);
  background:
    radial-gradient(ellipse 70% 120% at 50% 130%, color-mix(in srgb, var(--color-accent) 6%, transparent), transparent),
    var(--color-surface);
  text-align: center;
}
.cta-band .section-title { margin-bottom: var(--space-4); }
.cta-band p { color: var(--color-text-muted); max-width: 52ch; margin-inline: auto; }
.cta-band .btn { margin-top: var(--space-6); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: clamp(var(--space-10), 6vw, var(--space-20)); }
@media (min-width: 860px) { .contact-grid { grid-template-columns: 5fr 7fr; } }
.contact-aside h2 { font-size: var(--text-lg); font-weight: 600; margin-bottom: var(--space-3); }
.contact-aside p { color: var(--color-text-muted); }
.contact-aside a { color: var(--color-text); }
.contact-aside a:hover { color: var(--color-accent); }
.contact-links { list-style: none; padding: 0; margin: var(--space-6) 0 0; display: grid; gap: var(--space-3); }
.contact-links a { display: inline-flex; align-items: center; gap: var(--space-3); text-decoration: none; color: var(--color-text-muted); min-height: 44px; }
.contact-links a:hover { color: var(--color-text); }

.form-grid { display: grid; gap: var(--space-5); }
.form-row { display: grid; gap: var(--space-5); }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }
.field label {
  display: block;
  font-size: var(--text-xs); font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--space-2);
}
.field input, .field select, .field textarea {
  width: 100%;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--text-base);
  padding: var(--space-3) var(--space-4);
  min-height: 48px;
  transition: border-color 0.25s var(--ease);
}
.field textarea { min-height: 160px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--color-accent);
}
.form-status { font-size: var(--text-sm); min-height: 1.4em; }
.form-status.is-error { color: #d4694f; }
.form-status.is-success { color: var(--color-accent); }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--color-divider);
  padding-block: var(--space-12) var(--space-10);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
.footer-grid { display: flex; flex-wrap: wrap; gap: var(--space-8); justify-content: space-between; align-items: flex-start; }
.footer-brand { display: flex; align-items: center; gap: var(--space-3); font-family: var(--font-display); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--color-text); }
.footer-nav { display: flex; flex-wrap: wrap; gap: var(--space-5); list-style: none; margin: 0; padding: 0; }
.footer-nav a { color: var(--color-text-muted); text-decoration: none; letter-spacing: 0.08em; text-transform: uppercase; font-size: var(--text-xs); }
.footer-nav a:hover { color: var(--color-text); }
.footer-meta { width: 100%; margin-top: var(--space-6); padding-top: var(--space-6); border-top: 1px solid var(--color-divider); display: flex; flex-wrap: wrap; gap: var(--space-4); justify-content: space-between; font-size: var(--text-xs); color: var(--color-text-faint); }
.footer-meta a { color: inherit; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ---------- Page hero (interior) ---------- */
.page-hero { padding-block: clamp(var(--space-16), 9vw, var(--space-24)) clamp(var(--space-8), 4vw, var(--space-12)); }
.page-hero h1 {
  font-family: var(--font-display); font-weight: 600;
  font-size: var(--text-2xl); text-transform: uppercase; letter-spacing: 0.02em;
  max-width: 16ch;
}
.page-hero .page-intro { margin-top: var(--space-5); color: var(--color-text-muted); max-width: 56ch; font-size: var(--text-lg); line-height: 1.55; }
