main > section + section { margin-top: var(--gap-section); }

/* services: a picture of the studio on one side, fading into the room; text on the other.
   Held in a centred frame so text and picture stay together on wide screens. */
.service { position: relative; display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; align-items: center;
  width: min(100% - 2 * var(--margin), 1360px); margin-inline: auto; }
.service:first-of-type { margin-top: 88px; }
.service-media { position: relative; z-index: 0; isolation: isolate; grid-row: 1; overflow: clip; }
.service-media picture, .service-media img, .service-media video { display: block; width: 100%; height: auto; }
.service-media picture { height: 100%; }  /* the picture fills its frame whatever its own proportions */
/* every picture has the same large 16:10 frame, on the right or mirrored on the left */
.service.right .service-media { grid-column: 5 / -1; aspect-ratio: 16 / 10; }
.service.right .service-media img { height: 100%; object-fit: cover; object-position: 50% 12%; }
.service.left .service-media { grid-column: 1 / span 8; aspect-ratio: 16 / 10; }
.service.left .service-media video { height: 100%; object-fit: cover; }
.service.left .service-media img { height: 100%; object-fit: cover; object-position: 50% 12%; }
/* the picture dissolves into the room on every side, most towards the text: a mask, not a painted
   gradient, so the glow and the sound line behind it show through and no edge of the frame is seen */
.service-media::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0.12;
  background: url("../img/grain.png") 0 0 / 128px 128px; }
.fade-left, .fade-right { -webkit-mask-composite: source-in; mask-composite: intersect; }
.fade-left { -webkit-mask-image: var(--fade-x-left), var(--fade-edge-r), var(--fade-b), var(--fade-t); mask-image: var(--fade-x-left), var(--fade-edge-r), var(--fade-b), var(--fade-t); }
.fade-right { -webkit-mask-image: var(--fade-x-right), var(--fade-edge-l), var(--fade-b), var(--fade-t); mask-image: var(--fade-x-right), var(--fade-edge-l), var(--fade-b), var(--fade-t); }
.service-media {
  --fade-x-left: linear-gradient(90deg, transparent 0%, rgba(0,0,0,0.4) 14%, #000 40%);
  --fade-x-right: linear-gradient(270deg, transparent 0%, rgba(0,0,0,0.4) 14%, #000 40%);
  --fade-edge-r: linear-gradient(270deg, transparent 0%, #000 12%);
  --fade-edge-l: linear-gradient(90deg, transparent 0%, #000 12%);
  --fade-b: linear-gradient(0deg, transparent 0%, rgba(0,0,0,0.5) 14%, #000 34%);
  --fade-t: linear-gradient(180deg, transparent 0%, #000 12%);
}

.service-text { position: relative; z-index: 2; grid-row: 1; display: grid; gap: 28px; max-width: 640px; }
.service.right .service-text { grid-column: 1 / span 7; }
.service.left .service-text { grid-column: 7 / -1; justify-self: end; width: 100%; max-width: 560px; }  /* fixed width: content never moves the column */
.service h1, .service h2 { font-size: clamp(2.4rem, 1.2rem + 3vw, 4.2rem); line-height: 0.98; letter-spacing: -0.035em; font-weight: 650; }
.lead { font-size: clamp(1.125rem, 1rem + 0.4vw, 1.3rem); line-height: 1.5; max-width: 44ch; }
/* what you get, then the deal: price, time and the action together */
.detail { display: grid; gap: 40px; margin-top: 18px; }
/* what you get: each line led by a small lamp, like the status light on a piece of gear */
.gets { display: grid; gap: 12px; color: var(--muted); }
.gets li { position: relative; padding-left: 22px; }
.gets li::before { content: ""; position: absolute; left: 2px; top: calc(0.75em - 3px); width: 6px; height: 6px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.55); }
.deal { display: flex; align-items: center; gap: 48px; flex-wrap: wrap; }
.deal p { display: grid; gap: 6px; line-height: 1.1; }
.deal b { font-size: clamp(1.6rem, 1.2rem + 1vw, 2.1rem); font-weight: 650; font-stretch: 112%; letter-spacing: -0.02em; }
.deal span { color: var(--muted); font-size: 1rem; }
.terms { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; margin-top: 8px; }
.terms span { font-size: 1.125rem; color: var(--muted); }
.terms b { color: var(--ink); font-size: clamp(1.6rem, 1.2rem + 1vw, 2.1rem); font-weight: 650; font-stretch: 112%; letter-spacing: -0.02em; }

/* the two services without pictures: heading on one side, body on the other */
.steps { display: grid; gap: 18px; counter-reset: s; }
.steps li { display: grid; grid-template-columns: 180px 1fr; gap: 20px; color: var(--muted); }
.steps b { color: var(--ink); font-weight: 600; }

/* the price note: one quiet centred aside under the services, under a short accent rule */
.price-note { width: min(100% - 2 * var(--margin), 62ch); margin-inline: auto; padding-top: 28px; text-align: center; color: var(--muted); font-size: 1rem; line-height: 1.7;
  background: linear-gradient(var(--accent), var(--accent)) top center / 48px 2px no-repeat; }
main > .price-note { margin-top: clamp(72px, 8vw, 120px); margin-bottom: var(--gap-section); }
.price-note .star { font-size: 1em; vertical-align: baseline; margin: 0; }
.price-note a { white-space: nowrap; }
.price-note a { color: var(--ink); text-decoration-color: rgba(255, 255, 255, 0.35); text-underline-offset: 4px; }
.star { color: var(--accent); font-size: 0.55em; vertical-align: super; margin-left: 2px; }

/* process: horizontal accordion, dark to light */
.process { width: min(100% - 2 * var(--margin), 1360px); margin-inline: auto; }
.process-intro { display: grid; justify-items: center; text-align: center; gap: 20px; }
.process-intro h2 { font-size: clamp(2.25rem, 1.2rem + 2.6vw, 3.75rem); line-height: 1; letter-spacing: -0.03em; font-weight: 650; }
.process-intro p { font-size: 1.125rem; max-width: 52ch; }
/* steps open as the pointer passes over them (and on focus or tap); one hue, dark to light */
.strip { margin-top: 64px; display: flex; height: 440px; gap: 6px; }
.stage { position: relative; flex: 1 1 0; min-width: 0; background: var(--tone); overflow: hidden; cursor: default; outline-offset: -4px;
  transition: flex-grow 560ms cubic-bezier(0.33, 1, 0.68, 1); }
.stage.open { flex-grow: 4.2; }
.stage-num { position: absolute; top: 18px; left: calc(100% - 22px); translate: -100% 0; font-size: clamp(3rem, 2rem + 3vw, 5.5rem); line-height: 1; font-weight: 700; font-stretch: 125%; color: rgba(255, 255, 255, 0.14); transition: color 400ms, transform 700ms var(--ease-out); }
.stage-icon { position: absolute; top: 28px; left: 24px; width: 34px; height: 34px; color: var(--ink); transition: transform 700ms var(--ease-out); }
.stage-name { position: absolute; left: 22px; bottom: 26px; writing-mode: vertical-rl; transform: rotate(180deg); font-weight: 650; font-size: 1.25rem; white-space: nowrap; transition: opacity 300ms; }
.stage-body { position: absolute; left: 0; bottom: 0; width: min(560px, 60vw); padding: 32px; display: grid; gap: 14px; opacity: 0; transform: translateY(16px); visibility: hidden;
  transition: opacity 300ms, transform 500ms var(--ease-out), visibility 0s 300ms; }
.stage-body h3 { font-size: clamp(1.9rem, 1.4rem + 1.2vw, 2.6rem); line-height: 1; letter-spacing: -0.02em; font-weight: 650; }
.stage-body p { max-width: 38ch; font-size: 1.0625rem; }
.stage.open .stage-name { opacity: 0; }
.stage.open .stage-num { color: rgba(255, 255, 255, 0.28); }
.stage.open .stage-icon { transform: scale(1.15); transform-origin: 0 0; }
.stage.open .stage-body { opacity: 1; transform: none; visibility: visible; transition: opacity 350ms 180ms, transform 450ms 180ms var(--ease-out), visibility 0s; }

/* faq: wide heading, indented questions */
.faq { width: min(100% - 2 * var(--margin), 1360px); margin-inline: auto; }
.faq h2 { font-size: clamp(2.25rem, 1.2rem + 2.6vw, 3.75rem); line-height: 1; letter-spacing: -0.03em; font-weight: 650; text-align: center; }
.questions { margin: 56px auto 0; max-width: 860px; display: grid; }
.questions details { padding: 22px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.questions details:first-child { border-top: 1px solid rgba(255, 255, 255, 0.08); }
.questions summary { transition: color 200ms; }
.questions details[open] summary, .questions summary:hover { color: #fff; }
.questions summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 24px; font-size: clamp(1.2rem, 1rem + 0.5vw, 1.45rem); }
.questions summary::-webkit-details-marker { display: none; }
.questions summary::after { content: ""; width: 12px; height: 12px; margin-top: 8px; flex: none; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(45deg); transition: transform 250ms var(--ease-out); }
.questions details[open] summary::after { transform: rotate(225deg); margin-top: 14px; }
.questions details p { margin-top: 14px; max-width: 52ch; font-size: 1.0625rem; color: var(--muted); }
.questions details[open] p { animation: answer-in 400ms var(--ease-out); }
@keyframes answer-in { from { opacity: 0; transform: translateY(-6px); } }

/* contact: one centred invitation under the violet light of the wall */
.contact { position: relative; width: min(100% - 2 * var(--margin), 1360px); margin-inline: auto; padding: clamp(56px, 7vw, 96px) 24px;
  display: grid; justify-items: center; text-align: center; gap: 24px; isolation: isolate; }
.contact::before { content: ""; position: absolute; inset: 0; z-index: -1; filter: blur(60px);
  background: radial-gradient(50% 60% at 50% 55%, rgba(84, 30, 170, 0.55), rgba(84, 30, 170, 0)); } /* taste-skill-ignore: wall light */
.contact h2 { font-size: clamp(2.2rem, 1.2rem + 2.6vw, 3.75rem); line-height: 1; letter-spacing: -0.035em; font-weight: 650; }
.contact p { font-size: 1.1875rem; color: var(--muted); max-width: 48ch; }
main > section.contact { margin-top: clamp(56px, 6vw, 96px); }
.button.big { margin-top: 12px; min-height: 60px; padding: 18px 32px; font-size: 1.125rem; }
.button .tg-icon { width: 1.2em; height: 1.2em; }


@media (max-width: 760px) {
  .service { display: block; width: auto; margin-inline: 16px; }
  .service:first-of-type { padding-top: 0; }
  .service-media { margin: 0 -16px -8svh; }
  .service.left .service-text { justify-self: start; }
  .fade-left, .fade-right { -webkit-mask-image: linear-gradient(0deg, transparent 0%, rgba(0,0,0,0.3) 30%, #000 65%), linear-gradient(180deg, transparent 0%, #000 18%); mask-image: linear-gradient(0deg, transparent 0%, rgba(0,0,0,0.3) 30%, #000 65%), linear-gradient(180deg, transparent 0%, #000 18%); }
  .service-text { gap: 22px; }
  .service h1, .service h2 { font-size: 10.5vw; }
  .lead { font-size: 1.125rem; }
  .steps li { grid-template-columns: 1fr; gap: 4px; }
  .process, .faq { width: auto; margin-inline: 16px; }
  .strip { flex-direction: column; height: auto; margin-top: 40px; gap: 4px; }
  /* on a phone every step is open: a short list read top to bottom, nothing to tap and no height
     animation (it shifted the page under the thumb). Each step slides in as it scrolls into view. */
  .stage { flex: none; transition: none; }
  .stage-icon { top: 22px; left: 16px; width: 28px; height: 28px; }
  .stage-num, .stage.open .stage-num { top: 14px; left: auto; right: 16px; translate: none; font-size: 2.6rem; color: rgba(255, 255, 255, 0.14); }
  .stage-name { display: none; }
  .stage-body, .stage.open .stage-body { position: relative; display: grid; gap: 10px; width: auto; padding: 72px 16px 24px; opacity: 1; visibility: visible; transform: none; transition: none; }
  .stage.open .stage-icon { transform: none; }
  @supports (animation-timeline: view()) {
    @media (prefers-reduced-motion: no-preference) {
      .stage { animation: stage-in linear both; animation-timeline: view(); animation-range: entry 0% entry 70%; }
    }
  }
  .stage-body h3 { font-size: 1.75rem; }
  .questions { margin-left: 0; margin-top: 40px; }
  .questions details { padding: 18px 0; }
  .contact { width: auto; margin-inline: 16px; padding: 88px 0; }
}


/* tablet: the two text services stack, heading over body */
@media (min-width: 761px) and (max-width: 1000px) {
}

@keyframes stage-in { from { opacity: 0; transform: translateY(40px); } }

/* the beat catalogue photo: a wide short frame (the section has no list), the photo zoomed to fill it, no drift; the
   usual long fades of the other sections dissolve its grainy edges into the room */
#beats .service-media { aspect-ratio: 2.4 / 1; --fade-edge-l: linear-gradient(90deg, transparent 0%, #000 9%); }
#beats .service-media img { object-fit: cover; object-position: 50% 45%; scale: 1; translate: -12% 0; animation: none; }
@media (max-width: 760px) { #beats .service-media img { translate: none; } }
@media (max-width: 760px) {
  #beats .service-media { aspect-ratio: 16 / 9; margin-bottom: 24px;
    -webkit-mask-image: linear-gradient(0deg, transparent 0%, #000 30%), linear-gradient(180deg, transparent 0%, #000 18%);
    mask-image: linear-gradient(0deg, transparent 0%, #000 30%), linear-gradient(180deg, transparent 0%, #000 18%); }
}
