/* Black and white palette with typography inspired by Rachel Suffian. */
:root {
  color-scheme: dark;
  --bg: #000;
  --bg-elevated: #111;
  --bg-subtle: #000;
  --text: #fff;
  --text-muted: #ccc;
  --accent: #fff;
  --accent-hover: #e0e0e0;
  --border: #333;
  --nav-height: 72px;
  --gutter: clamp(20px, 4vw, 48px);
  --ease: cubic-bezier(.4, 0, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-height); -webkit-font-smoothing: antialiased; }
body { background: var(--bg); color: var(--text); font-family: 'Inter', sans-serif; line-height: 1.7; }
body.photo-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
button, a { -webkit-tap-highlight-color: transparent; }
button:disabled { cursor: default; }
a:focus-visible, button:focus-visible, [tabindex]:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; }
section[tabindex="-1"]:focus { outline: none; }
iframe { display: block; border: 0; }
.container { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: var(--gutter); }
.section-label { font-family: 'DM Sans', sans-serif; font-size: clamp(1.75rem, 3vw, 2rem); font-weight: 600; line-height: 1.25; }
.section-label::after { content: ''; display: block; width: 40px; height: 2px; background: var(--accent); margin-top: 14px; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 300; padding: 12px 20px; background: var(--bg); color: var(--accent); transform: translateY(-150%); }
.skip-link:focus { transform: none; }

/* Navigation */
.nav { position: fixed; inset: 0 0 auto; z-index: 100; height: var(--nav-height); background: rgba(0,0,0,.97); border-bottom: 1px solid var(--border); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.nav-brand { font-family: 'DM Sans', sans-serif; font-weight: 600; letter-spacing: .035em; white-space: nowrap; }
.nav-brand:hover { color: var(--accent); }
.nav-links { display: flex; gap: 24px; align-items: center; }
.nav-links a { display: flex; align-items: center; min-height: 44px; font-size: .75rem; font-weight: 500; letter-spacing: .13em; text-transform: uppercase; color: var(--text-muted); border-bottom: 2px solid transparent; padding-top: 2px; transition: color .2s, border-color .2s; }
.nav-links a:hover, .nav-links a[aria-current] { color: var(--text); border-color: var(--accent); }
.nav-links .nav-contact { color: var(--accent-hover); gap: 6px; }
.nav-hamburger { display: none; justify-content: center; align-items: center; flex-direction: column; gap: 5px; width: 44px; height: 44px; padding: 12px; border: 0; background: transparent; }
.nav-hamburger span { display: block; width: 20px; height: 2px; background: var(--text); transition: transform .2s, opacity .2s; }
.nav-hamburger[aria-expanded="true"] span:first-child { transform: translateY(7px) rotate(45deg); }
.nav-hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-hamburger[aria-expanded="true"] span:last-child { transform: translateY(-7px) rotate(-45deg); }

/* Keep the full portrait visible, with the introduction beside it. */
.hero { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 40px; min-height: 640px; padding: calc(var(--nav-height) + 32px) max(var(--gutter), calc((100vw - 1200px) / 2)) 80px; color: #fff; background: var(--bg); }
.hero-image { grid-column: 2; grid-row: 1; justify-self: center; width: 100%; height: min(760px, calc(100svh - var(--nav-height) - 112px)); min-height: 420px; object-fit: contain; }
.hero-content { grid-column: 1; grid-row: 1; animation: hero-enter .7s var(--ease) both; }
.hero-title { font-family: 'DM Sans', sans-serif; font-size: clamp(2.25rem, 5vw, 3.75rem); font-weight: 600; letter-spacing: .035em; line-height: 1.1; text-wrap: balance; }
.hero-subtitle { margin-top: 18px; font-size: clamp(.8rem, 1.3vw, .95rem); font-weight: 400; letter-spacing: .17em; text-transform: uppercase; color: rgba(255,255,255,.92); }
.hero-email { display: inline-flex; align-items: center; min-height: 44px; margin-top: 10px; font-size: .875rem; color: rgba(255,255,255,.88); overflow-wrap: anywhere; }
.hero-email:hover { color: #fff; text-decoration: underline; text-underline-offset: 5px; }
.hero :focus-visible { outline-color: #fff; }
.hero-scroll { position: absolute; bottom: 24px; left: calc(50% - 22px); width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; }
.hero-scroll-arrows { display: flex; flex-direction: column; gap: 2px; }
.hero-scroll-arrows span { display: block; width: 9px; height: 9px; border-right: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(45deg); }
.hero-scroll-arrows span:nth-child(2) { opacity: .6; }
.hero-scroll-arrows span:nth-child(3) { opacity: .3; }
@keyframes hero-enter { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

/* Biography */
.about { padding-block: clamp(48px, 6vw, 80px); }
.about-inner { max-width: 740px; margin-inline: auto; text-align: center; }
.about-inner .section-label::after { margin-inline: auto; }
.about-bio { margin-top: 28px; }
.about-bio p { font-size: clamp(1rem, 1.3vw, 1.1rem); line-height: 1.85; }
.about-bio p + p { margin-top: 20px; }
.about-bio a { color: var(--accent-hover); text-decoration: underline; text-decoration-color: var(--border); text-underline-offset: 4px; overflow-wrap: anywhere; }
.about-bio a:hover { text-decoration-color: currentColor; }

/* Music */
.music { background: var(--bg-subtle); padding-block: clamp(48px, 6vw, 72px); }
.music-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; margin-top: 32px; }
.music-card { min-width: 0; }
.music-card h3 { font-family: 'DM Sans', sans-serif; font-size: 1.375rem; font-weight: 600; line-height: 1.3; }
.music-card h3 a { display: flex; align-items: center; justify-content: space-between; min-height: 44px; }
.music-card h3 a:hover { color: var(--accent); }
.music-card h3 span { color: var(--accent); font-size: 1rem; }
.band-role { font-size: .875rem; color: var(--text-muted); margin: 2px 0 20px; }
.music-card iframe { width: 100%; height: 390px; background: var(--bg-elevated); border: 1px solid var(--border); border-radius: 6px; }
.bandcamp-link { display: inline-flex; align-items: center; min-height: 44px; color: var(--accent-hover); font-size: .875rem; font-weight: 500; margin-top: 8px; }
.bandcamp-link:hover { text-decoration: underline; text-underline-offset: 4px; }

/* A glimpse of the next image makes the horizontal gallery discoverable. */
.onstage { padding-block: clamp(48px, 6vw, 72px) 32px; }
.photos-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 28px; }
.slider-controls { display: flex; gap: 8px; flex-shrink: 0; }
.slider-btn { display: inline-flex; justify-content: center; align-items: center; width: 44px; height: 44px; background: var(--bg-elevated); border: 1px solid var(--border); border-radius: 50%; font-size: 1.25rem; transition: background .2s, color .2s; }
.slider-btn:enabled:hover { background: var(--accent); color: #000; border-color: var(--accent); }
.slider-btn:disabled { opacity: .35; }
.photo-grid { display: flex; position: relative; overflow-x: auto; scroll-snap-type: x mandatory; gap: 8px; padding-inline: max(var(--gutter), calc((100% - 1200px) / 2 + var(--gutter))); scroll-padding-inline: max(var(--gutter), calc((100% - 1200px) / 2 + var(--gutter))); scrollbar-width: none; overscroll-behavior-x: contain; }
.photo-grid::-webkit-scrollbar { display: none; }
.photo-item { display: block; flex: 0 0 clamp(260px, 30vw, 400px); height: clamp(360px, 40vw, 500px); scroll-snap-align: start; border-radius: 3px; background: var(--bg-subtle); overflow: hidden; cursor: zoom-in; }
.photo-item img { width: 100%; height: 100%; object-fit: cover; object-position: center top; transition: transform .4s var(--ease); }
.photo-item:last-child img { object-position: 60% center; }
.photo-item:focus-visible { outline-offset: -6px; }
@media (hover: hover) { .photo-item:hover img { transform: scale(1.025); } }
.carousel-meta { display: flex; justify-content: space-between; gap: 16px; align-items: center; margin-top: 16px; font-size: .75rem; color: var(--text-muted); }
.carousel-count { font-variant-numeric: tabular-nums; white-space: nowrap; }
.footer { padding: 32px var(--gutter); border-top: 1px solid var(--border); text-align: center; }
.footer-email { display: inline-flex; align-items: center; min-height: 44px; color: var(--accent-hover); font-size: .875rem; overflow-wrap: anywhere; }
.footer-email:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer-copy { margin-top: 8px; color: var(--text-muted); font-size: .75rem; }

/* Native dialog supplies focus containment, Escape, and return-to-trigger. */
.lightbox { position: fixed; inset: 0; width: 100%; height: 100%; height: 100dvh; max-width: none; max-height: none; margin: 0; border: 0; padding: 72px 72px 84px; background: transparent; color: #fff; }
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox::backdrop { background: rgba(0,0,0,.97); }
.lightbox img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.lightbox-close { position: absolute; top: max(16px, env(safe-area-inset-top)); right: 20px; width: 44px; height: 44px; border: 1px solid #626665; border-radius: 50%; background: transparent; color: #fff; font-size: 1.75rem; line-height: 1; }
.lightbox-controls { position: absolute; bottom: max(20px, env(safe-area-inset-bottom)); left: 0; right: 0; display: flex; justify-content: center; align-items: center; gap: 24px; }
.lightbox-controls .slider-btn { background: transparent; color: #fff; border-color: #626665; }
.lightbox-count { font-size: .875rem; min-width: 50px; text-align: center; font-variant-numeric: tabular-nums; }
.lightbox :focus-visible { outline-color: #fff; }

@media (max-width: 767px) {
  :root { --nav-height: 64px; }
  .nav-hamburger { display: flex; }
  .nav-links { display: none; }
  .nav-links.open { position: absolute; top: var(--nav-height); left: 0; right: 0; display: flex; flex-direction: column; align-items: stretch; gap: 0; max-height: calc(100svh - var(--nav-height)); overflow-y: auto; padding: 12px var(--gutter) 20px; background: var(--bg); border-bottom: 1px solid var(--border); box-shadow: 0 12px 20px rgba(0,0,0,.05); }
  .nav-links a { min-height: 48px; font-size: .8rem; }
  .hero { grid-template-columns: minmax(0, 1fr); gap: 28px; min-height: 0; padding: var(--nav-height) 0 80px; text-align: center; }
  .hero-image { grid-column: 1; grid-row: 1; width: 100%; height: auto; max-height: 65svh; min-height: 0; object-fit: contain; }
  .hero-content { grid-column: 1; grid-row: 2; padding-inline: var(--gutter); }
  .hero-title { font-size: clamp(2rem, 8.6vw, 3rem); letter-spacing: .02em; }
  .hero-subtitle { margin-top: 16px; letter-spacing: .14em; }
  .hero-subtitle-location { display: block; margin-top: 6px; }
  .hero-subtitle-dash { display: none; }
  .hero-email { font-size: .8125rem; }
  .about-bio { text-align: left; }
  .music-grid { grid-template-columns: 1fr; gap: 28px; }
  .photo-item { flex-basis: 82%; height: auto; aspect-ratio: 4 / 5; }
  .lightbox { padding: 72px 16px 88px; }
}
@media (max-width: 360px) {
  .hero-title { font-size: 2rem; }
  .hero-subtitle { font-size: .75rem; letter-spacing: .1em; }
  .carousel-meta { font-size: .6875rem; }
}
@media (max-height: 500px) and (orientation: landscape) {
  .hero-image { max-height: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media (scripting: none) {
  .nav { position: sticky; height: auto; }
  .nav-inner { flex-wrap: wrap; padding-block: 12px; gap: 8px; }
  .nav-hamburger, .slider-controls { display: none; }
  .nav-links { display: flex; flex-wrap: wrap; gap: 12px; }
  .carousel-count { display: none; }
}
