/* Magic Garden Mastering, link page (v3 = v2 + music-service chooser, 1-track default, 3 wall rows on phones)
   Layout: the v1 hero, unchanged (headline + rate calculator beside the cover wall).
   Colours and type: Claude Design concepts v2 · "05 The Wall" (vermilion, warm black, cream, Archivo condensed).
   Booking form: the Stillroom demo's booking section, revealed by "Get your official quote". */

/* ---------- Font (self-hosted, SIL OFL) ---------- */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url(../fonts/archivo-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Tokens ---------- */
:root {
  --ink: #141010;
  --line: #4a403a;
  --line-soft: #2e2725;
  --cream: #f7efe4;
  --mute: #cfc4b6;
  --mute-2: #9d9187;
  --verm: #e5401d;
  --on-verm: #141010;
  --on-verm-soft: rgba(20, 16, 16, .78);

  --sans: 'Archivo', ui-sans-serif, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --gutter: clamp(20px, 5vw, 72px);
  --header-h: 76px;
  --pill: 12px;   /* one shape everywhere: rounded rectangles, like the artist-type options */
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; min-width: 320px;
  background: var(--ink); color: var(--cream);
  font: 400 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, p, figure, ul, ol { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--verm); outline-offset: 3px; border-radius: 2px; }
.hero__main :focus-visible { outline-color: var(--ink); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--cream); color: var(--ink); padding: 12px 18px; border-radius: 8px; font-weight: 700; text-decoration: none; transition: top .2s; }
.skip:focus { top: 12px; }

.eyebrow { font: 700 12px/1.3 var(--sans); letter-spacing: .12em; text-transform: uppercase; }
.eyebrow--accent { color: var(--verm); }
.display {
  font: 900 clamp(40px, 3.6vw + 10px, 72px)/.86 var(--sans);
  font-stretch: 62%; letter-spacing: -.005em; text-transform: uppercase;
}
.display em { font-style: normal; color: var(--cream); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 52px; padding: 0 26px; border-radius: var(--pill); border: 2px solid transparent;
  font: 800 15px/1 var(--sans); letter-spacing: .01em; text-decoration: none; white-space: nowrap;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s var(--ease);
}
.btn span[aria-hidden] { font-size: 17px; transition: transform .2s var(--ease); }
.btn:hover span[aria-hidden] { transform: translateX(3px); }
.btn--cta { background: var(--verm); color: var(--ink); border-color: var(--verm); }
.btn--cta:hover { background: var(--cream); border-color: var(--cream); }
.btn:active { transform: translateY(1px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 0 var(--gutter); background: var(--ink);
  border-bottom: 2px solid transparent; transition: border-color .3s;
}
.site-header.is-scrolled { border-bottom-color: var(--line-soft); }
.wordmark { font: 900 22px/1 var(--sans); font-stretch: 62%; letter-spacing: .01em; text-transform: uppercase; text-decoration: none; white-space: nowrap; }
.site-header .btn { min-height: 44px; padding: 0 20px; gap: 0; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; }

/* ---------- Hero ---------- */
.hero {
  display: grid; grid-template-columns: minmax(0, 720px) minmax(0, 1fr);
  min-height: calc(100svh - var(--header-h));
}
.hero__main {
  display: flex; flex-direction: column; gap: 16px;
  padding: clamp(22px, 3.4vh, 44px) clamp(28px, 3.2vw, 56px) clamp(22px, 3.2vh, 40px) var(--gutter);
  background: var(--verm); color: var(--on-verm);
}
.hero__lede { font-size: 15.5px; line-height: 1.5; font-weight: 500; color: var(--on-verm-soft); max-width: 56ch; }
.hero__title { margin-top: 2px; }

/* ---------- Calculator ---------- */
.calc {
  background: var(--ink); color: var(--cream); border-radius: 16px;
  padding: 20px 24px 18px; display: grid; gap: 14px;
  box-shadow: 0 30px 70px rgba(20, 16, 16, .35);
}
.calc__head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.calc__title { font: 900 30px/1 var(--sans); font-stretch: 62%; text-transform: uppercase; }
.calc__asof { font: 700 10.5px/1.2 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--mute-2); }
.calc__currency select {
  appearance: none; -webkit-appearance: none; cursor: pointer;
  min-height: 34px; padding: 0 30px 0 12px; border: 2px solid var(--line); border-radius: var(--pill);
  background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23cfc4b6' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 11px center;
  color: var(--cream); font: 700 12.5px/1 var(--sans); letter-spacing: .06em;
}
.calc__currency select:hover { border-color: var(--cream); }
.calc__currency select option { color: #141010; background: #f7efe4; }
.calc__usd { display: block; margin-top: 3px; font-size: 12.5px; color: var(--mute-2); }
.calc fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.calc__label { display: block; margin-bottom: 9px; font: 700 10.5px/1.2 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--mute-2); }
.seg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.seg__opt { position: relative; display: block; }
.seg__opt input { position: absolute; inset: 0; opacity: 0; cursor: pointer; margin: 0; }
.seg__opt span {
  display: flex; flex-direction: column; gap: 2px; padding: 8px 12px 7px; border-radius: 12px;
  border: 2px solid var(--line); transition: background-color .18s, border-color .18s, color .18s;
}
.seg__opt b { font-weight: 700; font-size: 14.5px; line-height: 1.2; }
.seg__opt small { font-size: 12px; line-height: 1.25; color: var(--mute); }
.seg__opt:hover span { border-color: var(--cream); }
.seg__opt input:checked + span { background: var(--verm); border-color: var(--verm); color: var(--ink); }
.seg__opt input:checked + span small { color: var(--on-verm-soft); }
.seg__opt input:focus-visible + span { outline: 2px solid var(--cream); outline-offset: 2px; }

.calc__tracks { display: grid; grid-template-columns: 64px auto 1fr; align-items: center; gap: 10px 14px; }
.calc__tracks .calc__label { margin-bottom: 0; }
.stepper { display: inline-flex; align-items: center; gap: 2px; border: 2px solid var(--line); border-radius: var(--pill); padding: 2px; }
.stepper button { width: 38px; height: 38px; border-radius: 8px; border: 0; background: transparent; font-size: 20px; line-height: 1; display: grid; place-items: center; transition: background-color .15s; }
.stepper button:hover { background: rgba(247, 239, 228, .1); }
.stepper button:disabled { opacity: .3; cursor: default; background: transparent; }
.stepper input { width: 3ch; border: 0; background: transparent; text-align: center; font: 900 26px/1 var(--sans); font-stretch: 75%; padding: 0; -moz-appearance: textfield; appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper--sm button { width: 32px; height: 32px; font-size: 17px; }
.stepper--sm input { font-size: 20px; width: 2.4ch; }
.calc__rate { font-size: 14px; color: var(--mute); line-height: 1.35; }
.calc__rate b { color: var(--cream); font-weight: 700; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { position: relative; }
.chip input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.chip span {
  display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 0 11px 0 9px;
  border: 2px solid var(--line); border-radius: var(--pill); font-size: 12.5px; font-weight: 600; white-space: nowrap;
  transition: background-color .18s, border-color .18s, color .18s;
}
.chip span::before { content: '+'; font-size: 15px; line-height: 1; width: 10px; text-align: center; color: var(--mute-2); }
.chip:hover span { border-color: var(--cream); }
.chip input:checked + span { background: var(--cream); border-color: var(--cream); color: var(--ink); }
.chip input:checked + span::before { content: '✓'; color: var(--ink); font-size: 12px; }
.chip input:focus-visible + span { outline: 2px solid var(--verm); outline-offset: 2px; }
.calc__alts { display: flex; align-items: center; gap: 12px; margin-top: 10px; font-size: 13.5px; color: var(--mute); }
.calc__alts small { font-size: 12px; color: var(--mute-2); line-height: 1.3; }

.calc__out { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 12px 18px; border-top: 2px solid var(--line-soft); padding-top: 14px; }
.calc__out .calc__label { margin-bottom: 4px; }
.calc__total output { display: block; font: 900 clamp(40px, 3.4vw, 54px)/1 var(--sans); font-stretch: 62%; letter-spacing: -.005em; font-variant-numeric: lining-nums; }
.calc__total output.is-personal { font-size: clamp(28px, 2.6vw, 34px); line-height: 1; font-stretch: 75%; }
.calc__breakdown { margin-top: 7px; font-size: 12.5px; line-height: 1.45; color: var(--mute); }
.calc__breakdown span { white-space: nowrap; }
.calc__actions { display: flex; flex-direction: column; align-items: flex-end; gap: 9px; }
.calc__mail { font-size: 12.5px; color: var(--mute); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
.calc__mail:hover { color: var(--cream); text-decoration-color: var(--cream); }
.calc__fine { font-size: 11.5px; line-height: 1.5; color: var(--mute-2); }

/* ---------- Cover wall ---------- */
.wall { position: relative; overflow: hidden; min-height: 560px; background: var(--ink); isolation: isolate; }
.wall__lanes { position: absolute; inset: 0 10px; display: grid; grid-template-columns: repeat(var(--lanes, 3), minmax(0, 1fr)); gap: 10px; }
.lane { overflow: hidden; }
.lane:nth-child(even) { margin-top: -90px; }
.lane__track { display: flex; flex-direction: column; animation: lane-y var(--dur, 80s) linear infinite; animation-direction: var(--dir, normal); will-change: transform; }
.wall.is-paused .lane__track, .wall.is-offscreen .lane__track, .wall__lanes:focus-within .lane__track { animation-play-state: paused; }
@media (hover: hover) { .wall__lanes:hover .lane__track { animation-play-state: paused; } }  /* the strip only, never the bar; touch screens keep drifting */
@keyframes lane-y { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(0, -50%, 0); } }
@keyframes lane-x { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-50%, 0, 0); } }
.cover { position: relative; display: block; aspect-ratio: 1; margin: 0 0 10px; background: #2a2320; overflow: hidden; transition: filter .3s, opacity .3s, transform .35s var(--ease); }
.cover img { width: 100%; height: 100%; object-fit: cover; }
.wall.has-focus .cover:not(.is-active) { filter: grayscale(1) brightness(.5); }
.cover.is-active { transform: scale(1.02); z-index: 1; box-shadow: 0 18px 40px rgba(0, 0, 0, .6); }
.wall__bar {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 14px 20px;
  padding: 90px clamp(18px, 2.4vw, 32px) clamp(18px, 2.6vh, 28px);
  background: linear-gradient(to bottom, rgba(20, 16, 16, 0) 0%, rgba(20, 16, 16, .9) 48%, var(--ink) 100%);
  pointer-events: none;
}
.wall__bar > * { pointer-events: auto; }
.wall__filters { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 7px; }
.wall__filters button {
  display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 0 15px;
  border-radius: var(--pill); border: 2px solid var(--line); background: rgba(20, 16, 16, .75);
  font-size: 13px; font-weight: 700; white-space: nowrap; transition: background-color .18s, color .18s, border-color .18s;
}
.wall__filters button span { font-weight: 600; color: var(--mute); font-variant-numeric: tabular-nums; }
.wall__filters button:hover { border-color: var(--cream); }
.wall__filters button[aria-pressed="true"] { background: var(--cream); color: var(--ink); border-color: var(--cream); }
.wall__filters button[aria-pressed="true"] span { color: #6b5f56; }
.wall__caption { display: flex; flex-direction: column; gap: 6px; min-height: 58px; justify-content: flex-end; }
.wall__caption .eyebrow { color: var(--verm); }
.wall__now { font: 900 26px/1 var(--sans); font-stretch: 70%; text-transform: uppercase; }
.wall__now small { display: block; margin-top: 5px; font: 500 14px/1.3 var(--sans); font-stretch: 100%; text-transform: none; color: var(--mute); }
.wall__pause { justify-self: end; align-self: end; min-height: 36px; padding: 0 14px; border-radius: var(--pill); border: 2px solid var(--line); background: rgba(20, 16, 16, .75); font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); }
.wall__pause:hover { color: var(--cream); border-color: var(--cream); }
.wall__service { grid-column: 1; font-size: 13px; color: var(--mute); }
.wall__service b { color: var(--cream); font-weight: 700; }
.wall__service button { border: 0; background: none; padding: 0; color: var(--cream); font-size: 13px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.chooser { position: absolute; inset: 0; z-index: 4; display: grid; place-items: center; padding: 20px; }
.chooser__backdrop { position: absolute; inset: 0; background: rgba(20, 16, 16, .74); }
.chooser__panel { position: relative; width: min(100%, 360px); background: var(--cream); color: var(--ink); border-radius: 12px; padding: 22px 22px 18px; display: grid; gap: 10px; box-shadow: 0 30px 70px rgba(0, 0, 0, .55); }
.chooser__panel .eyebrow { margin-right: 36px; }
.chooser__title { font: 900 26px/1 var(--sans); font-stretch: 70%; text-transform: uppercase; margin-right: 36px; }
.chooser__artist { font-size: 14px; color: #5b524b; }
.chooser__services { display: grid; gap: 8px; margin-top: 6px; }
.chooser__services a { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 50px; padding: 0 16px; border: 2px solid var(--ink); border-radius: 12px; font-weight: 700; font-size: 15px; text-decoration: none; transition: background-color .15s, color .15s; }
.chooser__services a:hover, .chooser__services a:focus-visible { background: var(--ink); color: var(--cream); outline: none; }
.chooser__services a small { font-weight: 500; font-size: 12px; opacity: .65; }
.chooser__remember { display: flex; align-items: center; gap: 9px; font-size: 13.5px; margin-top: 4px; cursor: pointer; }
.chooser__remember input { width: 17px; height: 17px; margin: 0; accent-color: var(--verm); }
.chooser__close { position: absolute; top: 10px; right: 10px; width: 36px; height: 36px; border: 0; background: transparent; border-radius: 8px; font-size: 16px; line-height: 1; }
.chooser__close:hover { background: rgba(20, 16, 16, .08); }
.wall__fallback { position: absolute; inset: 0 10px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; align-content: start; overflow: hidden; }

/* ---------- Booking ---------- */
.booking {
  display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(40px, 7vw, 110px);
  padding: clamp(72px, 10vw, 120px) var(--gutter); border-top: 2px solid var(--line-soft);
  scroll-margin-top: var(--header-h);
}
.booking__intro { display: flex; flex-direction: column; gap: 22px; }
.booking__intro .display { font-size: clamp(44px, 4vw + 8px, 84px); }
.booking__intro p { max-width: 36ch; color: var(--mute); line-height: 1.65; }
.booking__estimate { font-weight: 700; color: var(--cream) !important; border-top: 2px solid var(--line-soft); padding-top: 18px; }
.booking-form { display: grid; grid-template-columns: 1fr 1fr; gap: 19px; align-content: start; }
.field { display: flex; flex-direction: column; gap: 9px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 14.5px; font-weight: 700; }
.field label span { font-weight: 500; color: var(--mute-2); }
.field input, .field textarea {
  width: 100%; border: 2px solid var(--line); background: transparent; color: var(--cream);
  border-radius: 12px; padding: 14px 16px; font-size: 16px; transition: border-color .15s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--verm); }
.field input::placeholder, .field textarea::placeholder { color: var(--mute-2); }
.field textarea { min-height: 104px; resize: vertical; }
.form-footer { grid-column: 1 / -1; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 4px; }
.form-footer p { color: var(--mute); font-size: 13px; max-width: 30ch; line-height: 1.45; }
.confirmation { grid-column: 1 / -1; border: 2px solid var(--verm); border-radius: 12px; padding: 18px 22px; line-height: 1.55; font-size: 15px; }
.confirmation a { color: var(--verm); font-weight: 700; text-underline-offset: 3px; }
.confirmation a:hover { color: var(--cream); }

/* ---------- Footer ---------- */
.site-footer { border-top: 2px solid var(--line-soft); padding: 26px var(--gutter) 30px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px 32px; font-size: 13px; color: var(--mute); }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--cream); }
.site-footer span + span { display: inline-flex; gap: 22px; flex-wrap: wrap; }

/* ---------- Responsive ---------- */
@media (max-width: 1023px) {
  :root { --header-h: 64px; }
  .wordmark { font-size: 19px; }
  .hero { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .hero__main { padding-right: var(--gutter); padding-bottom: 28px; }
  .calc { max-width: 640px; }
  .wall { min-height: 0; height: auto; display: flex; flex-direction: column; }
  .wall__lanes { position: relative; inset: auto; height: 444px; padding: 12px 0; display: flex; flex-direction: column; gap: 10px; }
  .lane { height: 140px; }
  .lane:nth-child(even) { margin-top: 0; margin-left: -60px; }
  .lane__track { flex-direction: row; width: max-content; height: 100%; animation-name: lane-x; }
  .lane__track .cover { height: 100%; width: auto; flex: none; margin: 0 10px 0 0; }
  .wall__bar { position: relative; padding: 16px var(--gutter) 22px; background: var(--ink); }
  .wall__fallback { position: relative; inset: auto; padding: 12px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .booking { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 640px) {
  .site-header { gap: 12px; }
  .site-header .btn { padding: 0 16px; font-size: 12px; }
  .hero__main { gap: 18px; padding-top: 24px; }
  .hero__lede { font-size: 15px; }
  .calc { padding: 20px 16px 18px; }
  .calc__head { flex-wrap: wrap; gap: 6px 16px; }
  .calc__title { font-size: 26px; }
  .seg { grid-template-columns: 1fr; }
  .seg__opt span { flex-direction: row; justify-content: space-between; align-items: baseline; padding: 11px 14px; }
  .calc__tracks { grid-template-columns: auto 1fr; }
  .calc__tracks .stepper { justify-self: end; }
  .calc__tracks .calc__rate { grid-column: 1 / -1; }
  .calc__out { grid-template-columns: 1fr; }
  .calc__actions { align-items: stretch; }
  .calc__actions .btn { width: 100%; }
  .calc__mail { text-align: center; }
  .wall__lanes { height: 378px; }
  .lane { height: 118px; }
  .chooser { padding: 14px; align-items: end; }
  .wall__bar { grid-template-columns: 1fr; }
  .wall__pause { justify-self: start; }
  .wall__filters { flex-wrap: nowrap; overflow-x: auto; margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter) 4px; scrollbar-width: none; }
  .booking-form { grid-template-columns: 1fr; }
  .field--full, .form-footer, .confirmation { grid-column: 1; }
  .form-footer .btn { width: 100%; }
  .site-footer { flex-direction: column; }
}

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
  .lane__track { animation: none !important; }
}
