:root {
  --graphite: #1C1D1F;
  --panel: #25272A;
  --line: #34373B;
  --text: #E8E6E1;
  --dim: #80848A;
  --soft: #BFC2C6;
  --amber: #FFB000;
  --amber-ink: #1A1300;

  --wrap: 1280px;
  --gutter: clamp(16px, 4vw, 48px);
  --section-y: clamp(72px, 10vw, 128px);

  --display: "Archivo", system-ui, sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--graphite);
  color: var(--text);
  font-family: var(--display);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; }
[hidden] { display: none !important; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section-y) 0; }

.skip {
  position: absolute; left: 12px; top: -48px; z-index: 50;
  background: var(--amber); color: var(--amber-ink); padding: 10px 14px; border-radius: 4px;
  font-weight: 700; text-decoration: none;
}
.skip:focus { top: 12px; }

/* Buttons */
.btn {
  display: inline-block;
  background: var(--amber); color: var(--amber-ink);
  font-weight: 700; font-size: 16px; text-decoration: none;
  padding: 15px 26px; border-radius: 4px;
  transition: filter .15s;
}
.btn:hover { filter: brightness(1.08); }
.btn-small { padding: 9px 16px; font-size: 15px; }

/* Nav */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 20;
  background: linear-gradient(180deg, rgba(28, 29, 31, .75), rgba(28, 29, 31, 0));
  transition: background-color .25s;
}
.nav.is-solid { background: rgba(28, 29, 31, .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.nav-inner { display: flex; align-items: center; gap: 32px; height: 64px; }
.wordmark {
  font-weight: 800; font-stretch: 75%; font-size: 22px; letter-spacing: .02em; text-decoration: none;
  margin-right: auto; display: inline-flex; align-items: center; gap: 10px;
}
.wordmark::before {
  content: ""; width: 9px; height: 9px; border-radius: 50%;
  background: var(--amber); box-shadow: 0 0 10px var(--amber);
}
.nav ul { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav ul a { text-decoration: none; color: #D2D4D7; font-size: 15px; }
.nav ul a:hover { color: var(--text); }

/* Hero */
.hero {
  position: relative; isolation: isolate;
  min-height: 100svh; display: flex; align-items: flex-end;
  padding: 120px 0 clamp(40px, 6vw, 72px);
}
/* Photos sit inside page margins so nothing shows larger than its real resolution. */
.hero-media {
  position: absolute; z-index: -1;
  inset: 76px var(--gutter) 0;
  max-width: calc(var(--wrap) + 160px); margin: 0 auto;
  display: grid;
}
.hero-cell { position: relative; overflow: hidden; background: var(--panel); }
.hero-slide {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: 0; transition: opacity 1.2s ease;
}
.hero-slide.is-current { opacity: 1; }
.hero-photo, .hero-slide img, .hero-slide video {
  width: 100%; height: 100%; object-fit: cover; object-position: center 40%;
}
/* Collages show clips and small photos at about their native size, so nothing is stretched. */
.hero-collage, .hero-photos { display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(2, 1fr); gap: 6px; }
.hero-collage video, .hero-photos img { min-height: 0; min-width: 0; }
.layout-ppp img { grid-row: span 2; }
.layout-p4 img:first-child { grid-row: span 2; }
.layout-w4 img:first-child { grid-column: span 2; }
/* Focus video fills the panel; the tall frame is cropped to the band with Sam's head and hands. */
/* Focus slide: tall videos side by side, each about as wide as the video itself. */
.hero-focus { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; }
.hero-focus video { min-width: 0; }
/* Darken the bottom-left behind the intro text, and fade the panel into the page. */
.hero-media::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(28, 29, 31, 0) 45%, rgba(28, 29, 31, .7) 80%, var(--graphite) 100%),
    linear-gradient(90deg, rgba(28, 29, 31, .6) 0%, rgba(28, 29, 31, 0) 50%);
}

.hero-copy { width: 100%; display: flex; justify-content: flex-end; align-items: flex-end; gap: 40px; }
/* The page heading is for search engines and screen readers only. */
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.hero-side { max-width: 360px; padding-bottom: 8px; }
.hero-side p { margin: 0 0 22px; font-size: 18px; color: #DCDDDF; text-shadow: 0 1px 12px rgba(0, 0, 0, .6); }

/* Section headings */
.section h2 {
  margin: 0 0 20px;
  font-weight: 800; font-stretch: 70%;
  font-size: clamp(44px, 6vw, 72px); line-height: .95;
  text-transform: uppercase;
}
.lede { color: var(--soft); font-size: 18px; max-width: 60ch; margin: 0 0 32px; }

/* About */
.about { border-top: 1px solid var(--line); }
.about-inner { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.about-photo { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }
.about-text { max-width: 56ch; }
.about-text p { color: var(--soft); font-size: 19px; line-height: 1.6; margin: 0 0 18px; }

/* Credits */
.credits { position: relative; isolation: isolate; overflow: hidden; }
.credits-collage {
  position: absolute; inset: -60px; z-index: -2;
  display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px;
  opacity: .15; filter: grayscale(1);
}
.credits-collage img, .credits-collage video { width: 100%; aspect-ratio: 1; object-fit: cover; }
.credits-collage.is-drifting { animation: drift 60s linear infinite alternate; }
@keyframes drift { from { transform: translate(0, 0); } to { transform: translate(-50px, -40px); } }
.credits::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, var(--graphite) 0%, rgba(28, 29, 31, .7) 18%, rgba(28, 29, 31, .7) 82%, var(--graphite) 100%);
}
.credits-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 28px; }
.credits-head .lede { margin: 0; }
.credits-stats { margin: 0 0 14px; color: var(--soft); font-size: 18px; }
.credits-stats b { color: var(--text); font-weight: 800; font-stretch: 75%; font-size: 26px; margin-right: 6px; }
.credits-stats span { white-space: nowrap; margin-right: 22px; }
.slider-arrows { display: flex; gap: 10px; flex: none; }
.arrow {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--panel); color: var(--text); border: 1px solid var(--line);
  font-size: 20px; cursor: pointer;
}
.arrow:hover:not(:disabled) { border-color: var(--amber); color: var(--amber); }
.arrow:disabled { opacity: .35; cursor: default; }

.credit-track {
  --cols: 6; --gap: 20px;
  display: flex; gap: var(--gap);
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  padding: 6px 0;
}
.credit-track::-webkit-scrollbar { display: none; }
.credit-page {
  flex: 0 0 100%; scroll-snap-align: start;
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); align-content: start;
  gap: 28px var(--gap);
}
.tile { cursor: default; outline-offset: 4px; }
.tile-media { position: relative; aspect-ratio: 1; overflow: hidden; background: var(--panel); }
.tile-media img, .tile-media video {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(.9) brightness(.72); transition: filter .35s ease;
}
.tile-roles {
  position: absolute; inset: auto 0 0 0; padding: 44px 12px 12px;
  display: flex; flex-direction: column; gap: 2px;
  background: linear-gradient(180deg, rgba(20, 20, 22, 0), rgba(20, 20, 22, .92));
  font-weight: 700; font-size: 15px; line-height: 1.3;
  opacity: 0; transform: translateY(6px); transition: opacity .3s ease, transform .3s ease;
}
.tile:focus-visible img, .tile:focus-visible video, .tile.is-active img, .tile.is-active video { filter: none; }
.tile:focus-visible .tile-roles, .tile.is-active .tile-roles { opacity: 1; transform: none; }
/* Touch screens keep :hover after a tap, so hover only applies where there's a real pointer. */
@media (hover: hover) {
  .tile:hover img, .tile:hover video { filter: none; }
  .tile:hover .tile-roles { opacity: 1; transform: none; }
}
.tile-label { margin: 10px 0 0; font-size: 15px; line-height: 1.35; }
.tile-label b { display: block; font-weight: 700; }
.tile-label span { color: var(--dim); }

/* Listen */
.listen { padding-top: 0; }
.listen-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: clamp(24px, 5vw, 72px); align-items: start; }
.spotify { width: 100%; height: 452px; border: 0; border-radius: 12px; background: var(--panel); }

/* Services */
.rates { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid var(--line); margin-bottom: 28px; }
.rate { padding: clamp(24px, 3vw, 40px); }
.rate + .rate { border-left: 1px solid var(--line); }
.rate h3 { margin: 0 0 12px; font-size: 20px; font-weight: 700; }
.price { margin: 0; font-weight: 900; font-stretch: 62%; font-size: clamp(72px, 9vw, 112px); line-height: .9; }
.price small { font-size: 24px; font-stretch: 100%; font-weight: 500; color: var(--dim); margin-left: 6px; }
.rate p:last-child { color: var(--soft); margin: 18px 0 0; max-width: 42ch; }
.session-types { list-style: none; margin: 0 0 clamp(56px, 7vw, 88px); padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; color: var(--soft); }
.session-types b { display: block; color: var(--text); font-size: 18px; margin-bottom: 4px; }
.steps-title { margin: 0 0 24px; font-weight: 800; font-stretch: 75%; font-size: 32px; text-transform: uppercase; }
.steps { list-style: none; margin: 0 0 40px; padding: 0; counter-reset: step; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.steps li { counter-increment: step; border-top: 1px solid var(--line); padding-top: 18px; }
.steps li::before { content: counter(step); display: block; font-weight: 900; font-stretch: 62%; font-size: 48px; line-height: 1; color: var(--amber); margin-bottom: 12px; }
.steps h4 { margin: 0 0 8px; font-size: 19px; }
.steps p { margin: 0 0 10px; color: var(--soft); }
.steps .note { color: var(--dim); font-size: 15px; }

/* Beats: the BeatStars player scrolls inside its own frame */
.btn-quiet { background: var(--panel); color: var(--text); border: 1px solid var(--line); }
.btn-quiet:hover { border-color: var(--amber); filter: none; }
.beatstars { display: block; width: 100%; height: clamp(560px, 85vh, 860px); border: 1px solid var(--line); border-radius: 12px; background: var(--graphite); }
.beats-more { margin: 14px 0 0; font-size: 14px; }
.beats-more a { color: var(--soft); text-underline-offset: 3px; }
.beats-more a:hover { color: var(--text); }

/* Contact */
.contact { border-top: 1px solid var(--line); }
.contact-inner { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.reveal {
  flex-basis: 100%; text-align: left; padding: 6px 0 0; cursor: pointer;
  font: inherit; font-size: 15px; color: var(--soft); background: none; border: 0;
  text-decoration: underline; text-underline-offset: 3px;
}
.reveal:hover { color: var(--text); }
.contact-details { flex-basis: 100%; }
.contact-details p { margin: 6px 0 0; color: var(--soft); }
.contact-details code { font-family: inherit; color: var(--text); font-weight: 700; }
.copy {
  font: inherit; font-size: 14px; margin-left: 8px; padding: 4px 10px; cursor: pointer;
  color: var(--text); background: var(--panel); border: 1px solid var(--line); border-radius: 4px;
}
.copy:hover { border-color: var(--amber); }
.contact-alt { margin: 28px 0 14px; color: var(--soft); }

/* Booking form. Choices are console keys: an unlit panel key whose LED lights amber when selected. */
.book, .book-done { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: clamp(20px, 3vw, 36px); }
.book-meter { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 12px; }
.book-meter span { height: 4px; border-radius: 2px; background: var(--line); transition: background-color .25s; }
.book-meter span:first-child, .book[data-at="2"] .book-meter span:nth-child(2),
.book[data-at="3"] .book-meter span { background: var(--amber); }
.book-progress { margin: 0 0 20px; font-size: 14px; color: var(--dim); }
.book-step { border: 0; margin: 0; padding: 0; min-width: 0; }
.book-title { padding: 0; margin: 0 0 18px; font-weight: 800; font-stretch: 75%; font-size: 30px; line-height: 1.05; text-transform: uppercase; }
.book-title:focus { outline: none; }
.field { margin: 0 0 20px; }
.label { display: block; margin: 0 0 8px; font-size: 15px; font-weight: 700; }
.label i { font-style: normal; font-weight: 400; color: var(--dim); margin-left: 4px; }
.hint { margin: 8px 0 0; font-size: 14px; color: var(--dim); }
.book-step > .hint { margin: -6px 0 20px; }

.keys { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.keys-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.keys-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.keys-times { grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); }
.keys-times:empty { display: none; }
.key { position: relative; display: block; cursor: pointer; }
.key input { position: absolute; opacity: 0; pointer-events: none; }
.key span {
  display: block; height: 100%; padding: 12px 12px 12px 30px;
  background: var(--graphite); border: 1px solid var(--line); border-radius: 4px;
  font-weight: 700; font-size: 15px; line-height: 1.25;
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .35);
  transition: border-color .15s, background-color .15s;
}
.key span::before {
  content: ""; position: absolute; left: 12px; top: 17px; width: 8px; height: 8px; border-radius: 50%;
  background: #3E4146; transition: background-color .15s, box-shadow .15s;
}
.key small { display: block; margin-top: 3px; font-weight: 400; font-size: 13px; color: var(--dim); }
@media (hover: hover) { .key:hover span { border-color: #4A4E54; } }
.key input:checked + span { border-color: var(--amber); background: #2C2A24; }
.key input:checked + span::before { background: var(--amber); box-shadow: 0 0 8px 1px rgba(255, 176, 0, .7); }
.key input:focus-visible + span { outline: 2px solid var(--amber); outline-offset: 2px; }
.key input:disabled + span { opacity: .35; cursor: not-allowed; }
.key-time span { padding: 9px 8px 9px 24px; font-size: 14px; white-space: nowrap; }
/* Multi-select keys get a square LED, so "pick several" reads differently from "pick one". */
.key-check span::before { border-radius: 2px; }
.key-time span::before { left: 9px; top: 14px; width: 7px; height: 7px; }
.longer { margin-top: 12px; padding: 14px; border: 1px solid var(--line); border-left: 3px solid var(--amber); border-radius: 4px; background: var(--graphite); }
.longer input { max-width: 140px; }
.option { margin: 0 0 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.option-title { margin: 0 0 12px; font-size: 18px; font-weight: 800; }
.date-row { display: flex; gap: 8px; }
.date-row select { flex: 1; min-width: 0; }
.cal-toggle {
  flex: none; font: inherit; font-size: 15px; font-weight: 700; color: var(--text); cursor: pointer;
  background: var(--graphite); border: 1px solid var(--line); border-radius: 4px; padding: 0 16px;
}
.cal-toggle[aria-expanded="true"] { border-color: var(--amber); }
@media (hover: hover) { .cal-toggle:hover { border-color: #4A4E54; } }
.label-times { margin-top: 16px; }
.cal { margin-top: 10px; padding: 14px; max-width: 360px; background: var(--graphite); border: 1px solid var(--line); border-radius: 6px; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.cal-head p { margin: 0; font-weight: 800; }
.cal-head button, .cal-grid button {
  font: inherit; color: var(--text); background: none; border: 1px solid transparent; border-radius: 4px; cursor: pointer;
}
.cal-head button { width: 36px; height: 36px; font-size: 18px; }
.cal-head button:disabled { visibility: hidden; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.cal-grid abbr { text-align: center; font-size: 12px; color: var(--dim); text-decoration: none; padding: 4px 0; }
.cal-grid button { aspect-ratio: 1; font-size: 15px; font-weight: 700; }
@media (hover: hover) { .cal-grid button:not(:disabled):hover { border-color: #4A4E54; } }
.cal-grid button:disabled { color: #4A4E54; font-weight: 400; cursor: default; }
.cal-grid button[aria-pressed="true"] { background: var(--amber); color: var(--amber-ink); }
.cal .hint { margin-top: 8px; }
.book-estimate { margin: 4px 0 0; min-height: 1.55em; color: var(--text); font-weight: 700; }

.book select, .book input:not([type="radio"]), .book textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--text);
  background: var(--graphite); border: 1px solid var(--line); border-radius: 4px; padding: 11px 12px;
}
.book select:hover, .book input:not([type="radio"]):hover, .book textarea:hover { border-color: #4A4E54; }
.book select:focus-visible, .book input:focus-visible, .book textarea:focus-visible { outline: 2px solid var(--amber); outline-offset: 1px; }
.book textarea { resize: vertical; min-height: 110px; }
.book textarea::placeholder { color: var(--dim); }
.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; }

.book-error { margin: 0 0 14px; color: var(--amber); font-weight: 700; }
.book-nav { display: flex; align-items: center; gap: 18px; margin-top: 8px; }
.book-nav .btn { border: 0; cursor: pointer; font-family: inherit; }
.book-nav .btn:disabled { opacity: .6; cursor: progress; }
.back { font: inherit; font-size: 15px; color: var(--soft); background: none; border: 0; padding: 6px 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.back:hover { color: var(--text); }
.book-done h3 { margin: 0 0 10px; font-weight: 800; font-stretch: 75%; font-size: 30px; text-transform: uppercase; }
.book-done p { margin: 0; color: var(--soft); }
.book-copy { margin-top: 18px; }
.book-copy pre { margin: 0 0 10px; padding: 14px; white-space: pre-wrap; font: inherit; font-size: 15px; color: var(--text); background: var(--graphite); border: 1px solid var(--line); border-radius: 4px; }
.book-copy .copy { margin-left: 0; }
.book-done:focus { outline: none; }

.footer { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--dim); font-size: 14px; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.footer p { margin: 0; }
.socials { list-style: none; margin: 0; padding: 0; display: flex; gap: 22px; flex-wrap: wrap; }
.socials a { color: var(--soft); text-decoration: none; }
.socials a:hover { color: var(--text); }

@media (max-width: 860px) {
  .nav ul { display: none; }
  .hero-copy { flex-direction: column; align-items: flex-start; gap: 24px; }
  .hero-side { max-width: 520px; padding-bottom: 0; }
  .about-inner { grid-template-columns: 1fr; }
  .credit-track { --cols: 3; }
  .listen-inner { grid-template-columns: 1fr; }
  .steps, .session-types { grid-template-columns: 1fr; }
  .contact-inner { grid-template-columns: 1fr; align-items: start; }
  .spotify { height: 380px; }
}
@media (max-width: 600px) {
  .rates { grid-template-columns: 1fr; }
  .rate + .rate { border-left: 0; border-top: 1px solid var(--line); }
  .credit-track { --cols: 2; --gap: 14px; }
  .credits-head { flex-direction: column; align-items: flex-start; }
  .tile-roles { font-size: 13px; padding: 36px 10px 10px; }
  .keys, .keys-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .keys-2, .pair { grid-template-columns: 1fr; }
  .book-title, .book-done h3 { font-size: 26px; }
}
@media (max-width: 767px) {
  .hero-media { inset: 0; }
  .hero-photo, .hero-slide img { object-position: center 30%; }
  .hero-side p { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-slide { transition: none; }
}
