/* Mack Wrapped: a gallery catalog for cars.
   Black and white editorial chrome; the cars carry the color.
   MW blue appears only on the booking buttons. */

:root {
  --ink: #0b0b0b;
  --paper: #ffffff;
  --mist: #f3f3f1;
  --gray: #6b6b6b;
  --rule: #d9d9d6;
  --rule-dark: #2c2c2c;
  --blue: #1565d8;
  --blue-ink: #0d4fb0;

  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --text: "Newsreader", Georgia, serif;

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1360px;
  --section: clamp(88px, 12vw, 176px);
  --ease: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.125rem/1.6 var(--text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 800; font-stretch: 112%; letter-spacing: -0.03em; line-height: .95; }
p { margin: 0; }
::selection { background: var(--ink); color: var(--paper); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--ink); color: var(--paper); padding: 8px 12px; }

/* type utilities */
.kicker {
  font: 700 .75rem/1 var(--display); font-stretch: 125%;
  text-transform: uppercase; letter-spacing: .16em; color: var(--gray);
}
.dark .kicker { color: #9a9a9a; }
.muted { color: var(--gray); }
.handle { font-family: var(--display); font-weight: 700; font-stretch: 100%; letter-spacing: 0; }
.link {
  font: 600 1rem/1.4 var(--display); text-decoration: none;
  border-bottom: 1px solid currentColor; padding-bottom: 2px;
  transition: opacity .2s;
}
.link:hover { opacity: .6; }

/* buttons: square, invert on hover */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 26px;
  font: 700 .8125rem/1 var(--display); font-stretch: 118%;
  text-transform: uppercase; letter-spacing: .12em; text-decoration: none;
  border: 1.5px solid var(--ink); border-radius: 0;
  transition: background .2s, color .2s, border-color .2s;
  white-space: nowrap;
}
.btn--sm { min-height: 40px; padding: 0 16px; font-size: .6875rem; }
.btn--lg { min-height: 64px; padding: 0 40px; font-size: .9375rem; }
.btn--ink { background: var(--ink); color: var(--paper); }
.btn--ink:hover { background: var(--paper); color: var(--ink); }
.btn--line { background: transparent; color: var(--ink); }
.btn--line:hover { background: var(--ink); color: var(--paper); }
.btn--blue { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn--blue:hover { background: var(--paper); color: var(--blue-ink); border-color: var(--paper); }
.band .btn--blue:hover, .book .btn--blue:hover { border-color: var(--paper); }
.hero .btn--blue:hover { border-color: var(--blue); }

@media (max-width: 520px) {
  .btn { white-space: normal; text-align: center; line-height: 1.25; }
  .btn--lg { width: 100%; padding: 18px 20px; font-size: .8125rem; }
}

/* header */
.top {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.94);
  -webkit-backdrop-filter: saturate(1.4) blur(8px); backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--rule);
}
.top__in {
  max-width: var(--max); margin: 0 auto; padding: 12px var(--gutter);
  display: flex; align-items: center; gap: 24px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.brand img { width: 40px; height: 40px; }
.brand span {
  font: 800 .875rem/1 var(--display); font-stretch: 125%;
  text-transform: uppercase; letter-spacing: .14em;
}
.nav { display: flex; gap: 28px; }
.nav a {
  font: 600 .8125rem/1 var(--display); font-stretch: 110%;
  text-transform: uppercase; letter-spacing: .1em; text-decoration: none;
  padding: 6px 0; border-bottom: 1px solid transparent; transition: border-color .2s; white-space: nowrap;
}
.nav a:hover { border-color: var(--ink); }
@media (max-width: 860px) { .nav { display: none; } }
/* up to the widest iPhones (Plus / Pro Max are 428 to 430): logo only, so the button stays on one line */
@media (max-width: 440px) { .brand span { display: none; } }

/* hero */
.hero { border-bottom: 1px solid var(--rule); overflow-x: clip; }
/* the headline sits over the top left of the studio stage */
.hero__text { position: absolute; z-index: 2; top: clamp(20px, 4vh, 44px); left: var(--gutter); max-width: calc(100% - 2 * var(--gutter) - 290px); color: var(--paper); }
.hero__text .kicker { color: #b4b4b4; }
.hero__title {
  margin-top: 14px;
  font-size: clamp(2.4rem, 5.6vw, 5.75rem);
  font-weight: 850; font-stretch: 118%; letter-spacing: -0.045em; line-height: .86;
}
.hero__title span { display: block; }
.hero__foot {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px 64px; align-items: end;
  padding-top: clamp(20px, 3vw, 40px); padding-bottom: clamp(40px, 5vw, 64px);
}
.lede { font-size: clamp(1.1875rem, 1.6vw, 1.4375rem); line-height: 1.5; max-width: 34em; }
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; }
/* stack the lede over the buttons up to tablet width, or the buttons squeeze it to one word a line */
@media (max-width: 1100px) { .hero__foot { grid-template-columns: 1fr; } }
@media (max-width: 760px) {
  .hero__cta .btn { flex: 1 1 auto; }
  /* one line on a phone: the three crafts only, sized to the screen width */
  .hero .kicker { letter-spacing: .09em; font-size: min(.6875rem, 2.75vw); white-space: nowrap; }
  .kicker__place { display: none; }
}

/* load choreography: words rise */
.load { opacity: 0; transform: translateY(18px); animation: rise .9s var(--ease) forwards; animation-delay: calc(var(--d) * 90ms + 80ms); }
@keyframes rise { to { opacity: 1; transform: none; } }

/* sections */
.section { padding: var(--section) 0; }
.dark { background: var(--ink); color: var(--paper); }
.head { max-width: 860px; margin-bottom: clamp(48px, 6vw, 88px); border-top: 2px solid currentColor; padding-top: 18px; }
.head h2 { margin-top: 18px; font-size: clamp(2.4rem, 5.6vw, 5rem); }
.head__note { margin-top: 22px; font-size: 1.1875rem; color: var(--gray); max-width: 36em; }
.dark .head__note { color: #a8a8a8; }

/* wall label: the caption in the lightbox */
.label {
  display: grid; grid-template-columns: auto 1fr; column-gap: 16px; row-gap: 2px;
  margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--rule);
}
.dark .label { border-color: var(--rule-dark); }
.label__no {
  grid-row: span 2; font: 700 .6875rem/1.9 var(--display); font-stretch: 112%;
  text-transform: uppercase; letter-spacing: .12em; color: var(--gray); font-variant-numeric: tabular-nums;
}
.label__title { font: 700 1.0625rem/1.25 var(--display); font-stretch: 108%; letter-spacing: -0.01em; }
.label__medium { font-size: 1rem; color: var(--gray); }
.dark .label__medium, .dark .label__no { color: #9a9a9a; }
.label:not(:has(.label__no)) { grid-template-columns: 1fr; }

.more { margin-top: clamp(56px, 7vw, 96px); text-align: center; }

/* centered contrast band */
.band {
  background: var(--ink); color: var(--paper); text-align: center;
  padding: clamp(80px, 11vw, 150px) var(--gutter);
  display: flex; flex-direction: column; align-items: center; gap: 36px;
}
.band__line {
  font: 800 clamp(1.9rem, 4.6vw, 4rem)/1.02 var(--display); font-stretch: 112%; letter-spacing: -0.035em;
  max-width: 17em; text-wrap: balance;
}


/* services */
.menus { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); }
.menu__title {
  font: 700 .75rem/1 var(--display); font-stretch: 125%; text-transform: uppercase; letter-spacing: .16em;
  padding-bottom: 16px; border-bottom: 2px solid var(--ink);
}
.menu__list { list-style: none; margin: 0; padding: 0; }
.menu__list li {
  display: flex; align-items: baseline; gap: 18px;
  padding: 18px 0; border-bottom: 1px solid var(--rule);
  font: 800 clamp(1.5rem, 2.8vw, 2.5rem)/1.05 var(--display); font-stretch: 112%; letter-spacing: -0.03em;
}
.menu__no {
  font: 600 .75rem/1 var(--display); font-stretch: 100%; letter-spacing: .04em; color: var(--gray);
  font-variant-numeric: tabular-nums; min-width: 1.8em;
}
/* each service lettered in its own finish; textures are Mack's builds (scripts/build_type_textures.py) */
.t { -webkit-background-clip: text; background-clip: text; color: transparent; background-size: cover; background-position: center; }
.t--vinyl { background-image: linear-gradient(112deg, #141414 0 40%, #8c8c8c 48%, #141414 56%); }   /* satin film, one sheen */
.t--liquid { background-image: linear-gradient(176deg, #6e0510 0%, #d0112b 34%, #ff9a9a 47%, #d0112b 58%, #7d0612 100%); }   /* candy apple red: deep at the edges, a wet shine through the middle */
.t--pearl { background-image: linear-gradient(100deg, #8f7fb0, #4f9f99 30%, #c27c9c 56%, #6f8dc4 80%, #a8957a); }
.t--camo { background-color: #111; background-image: url(../img/type/camo.webp); background-size: 2.2em auto; background-repeat: repeat; }   /* tiled at letter scale so every stroke gets pattern */
.t--gloss { background-image: linear-gradient(172deg, #000 0 44%, #a6a6a6 49%, #000 54%); }       /* a hard mirror highlight */
.t--matte { color: #555; }                                                                        /* flat, no sheen */
.t--satin { background-image: linear-gradient(172deg, #1c1c1c 0 26%, #707070 50%, #1c1c1c 74%); } /* a soft wide one */
.t--hand { font-family: "Kaushan Script", cursive; font-weight: 400; font-stretch: 100%; letter-spacing: 0; font-size: 1.08em; color: var(--ink); }
.t--murals { font-family: "Rubik Spray Paint", var(--display); font-weight: 400; font-stretch: 100%; letter-spacing: 0;
  background-image: linear-gradient(90deg, #d7332b, #e89a12 30%, #2d8a54 62%, #2a5fc4); }
.t--stripes { background-image: linear-gradient(180deg, var(--ink) 0 45%, #c8102e 45% 51%, var(--ink) 51% 55%, #c8102e 55% 61%, var(--ink) 61%); }
.t--marble { background-color: #222; background-image: url(../img/type/marble.webp); }
.t--floral { background-color: #161616; background-image: url(../img/type/floral.webp); background-size: auto 150%; background-position: 45% 50%; }
.t--abstract { background-image: conic-gradient(from 25deg at 38% 58%, #e63946 0 22%, #1d3557 0 47%, #f2a516 0 70%, #2a9d8f 0 86%, #111 0); }
/* a browser that cannot clip a background to type keeps plain ink */
@supports not ((background-clip: text) or (-webkit-background-clip: text)) { .t { color: var(--ink); background: none; } }
.menu__note { margin-top: 28px; font-size: 1.0625rem; color: var(--gray); }
.menu__note strong { color: var(--ink); font-weight: 500; }
@media (max-width: 760px) { .menus { grid-template-columns: 1fr; } }

/* process */
.diptych { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(16px, 2vw, 28px); align-items: end; }
.steps {
  list-style: none; margin: clamp(40px, 5vw, 72px) 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  border-top: 1px solid var(--rule-dark);
}
.steps li { padding: 28px 28px 0 0; }
.steps li + li { padding-left: 28px; border-left: 1px solid var(--rule-dark); }
.steps__no { font: 600 .75rem/1 var(--display); color: #9a9a9a; font-variant-numeric: tabular-nums; letter-spacing: .06em; }
.steps h3 { margin: 22px 0 12px; font-size: clamp(1.5rem, 2.2vw, 2rem); }
.steps p { font-size: 1.0625rem; color: #bdbdbd; }
@media (max-width: 860px) {
  .diptych { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .steps li, .steps li + li { padding: 24px 16px 28px 0; border-left: 0; border-bottom: 1px solid var(--rule-dark); }
  .steps li:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--rule-dark); }
}
@media (max-width: 480px) {
  .steps { grid-template-columns: 1fr; }
  .steps li:nth-child(even) { padding-left: 0; border-left: 0; }
}

/* artist */
.artist__grid { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(40px, 7vw, 112px); align-items: center; }
.artist__photo { margin: 0; aspect-ratio: 4/5; overflow: hidden; background: var(--mist); }
.artist__photo img { width: 100%; height: 100%; object-fit: cover; }
.artist__text h2 { margin: 18px 0 32px; font-size: clamp(2.4rem, 5vw, 4.5rem); }
.story { margin: 0 0 36px; padding: 0; }
.story p { font-size: clamp(1.25rem, 1.9vw, 1.625rem); line-height: 1.45; }
.story footer { margin-top: 18px; font: 700 .75rem/1 var(--display); font-stretch: 125%; text-transform: uppercase; letter-spacing: .16em; color: var(--gray); }
.stats {
  margin: clamp(72px, 9vw, 128px) 0 0; display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 2px solid var(--ink);
}
.stats > div { padding: 22px 20px 0 0; display: flex; flex-direction: column; justify-content: space-between; }
.stats > div + div { padding-left: 20px; border-left: 1px solid var(--rule); }
.stats dt { font: 600 .75rem/1.3 var(--display); font-stretch: 112%; text-transform: uppercase; letter-spacing: .12em; color: var(--gray); }
.stats dd { margin: 14px 0 0; font: 850 clamp(2.4rem, 5.4vw, 5rem)/1 var(--display); font-stretch: 112%; letter-spacing: -0.045em; font-variant-numeric: tabular-nums; }
.stats dd span { color: var(--gray); font-weight: 600; }
@media (max-width: 860px) {
  .artist__grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stats > div, .stats > div + div { padding: 20px 12px 24px 0; border-left: 0; border-bottom: 1px solid var(--rule); }
  .stats > div:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--rule); }
}

/* testimonials */
.words { background: var(--mist); }
.quotes { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
.quote { margin: 0; }
.quote blockquote { margin: 0; }
.quote p { font-size: clamp(1.25rem, 1.7vw, 1.5rem); line-height: 1.5; }
.quote--lead p { font-size: clamp(1.375rem, 2.2vw, 1.875rem); line-height: 1.42; }
.quote figcaption {
  margin-top: 24px; padding-top: 14px; border-top: 1px solid var(--rule);
  font: 700 .9375rem/1.4 var(--display); display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px;
}
.quote .muted { font-weight: 500; }
.stars { letter-spacing: .12em; font-size: .8125rem; }
@media (max-width: 860px) { .quotes { grid-template-columns: 1fr; } }

/* faq */
.faq__grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq .head { margin-bottom: 0; position: sticky; top: 104px; }
.qa { border-top: 2px solid var(--ink); }
.qa details { border-bottom: 1px solid var(--rule); }
.qa summary {
  list-style: none; cursor: pointer; position: relative;
  padding: 24px 48px 24px 0;
  font: 700 clamp(1.125rem, 1.6vw, 1.375rem)/1.3 var(--display); font-stretch: 105%; letter-spacing: -0.01em;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after {
  content: ""; position: absolute; right: 4px; top: 50%; width: 16px; height: 16px; margin-top: -8px;
  background:
    linear-gradient(currentColor, currentColor) center / 16px 2px no-repeat,
    linear-gradient(currentColor, currentColor) center / 2px 16px no-repeat;
  transition: transform .3s var(--ease);
}
.qa details[open] summary::after { transform: rotate(45deg); }
.qa details p { padding: 0 48px 28px 0; color: #3a3a3a; }
@media (max-width: 860px) { .faq__grid { grid-template-columns: 1fr; } .faq .head { position: static; } }

/* book */
.book { padding: clamp(96px, 13vw, 184px) 0 40px; text-align: center; }
.book__title {
  font-size: clamp(2.8rem, 8.4vw, 8rem); font-weight: 850; font-stretch: 118%; letter-spacing: -0.045em; line-height: .9;
  max-width: 11em; margin: 0 auto 48px; text-wrap: balance;
}
.contact {
  margin-top: clamp(80px, 10vw, 136px); text-align: left;
  display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--rule-dark);
}
.contact > div { padding: 24px 20px 24px 0; display: flex; flex-direction: column; gap: 6px; }
.contact > div + div { padding-left: 20px; border-left: 1px solid var(--rule-dark); }
.contact h3 { font: 600 .75rem/1 var(--display); font-stretch: 112%; text-transform: uppercase; letter-spacing: .14em; color: #9a9a9a; margin-bottom: 8px; }
.contact a { font: 600 1rem/1.45 var(--display); text-decoration: none; overflow-wrap: anywhere; }
.contact a:hover { text-decoration: underline; text-underline-offset: 4px; }
.foot {
  margin-top: 56px; padding-top: 20px; border-top: 1px solid var(--rule-dark);
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  font: 500 .8125rem/1.4 var(--display); color: #8a8a8a;
}
.foot a { color: #cfcfcf; }
@media (max-width: 860px) {
  .contact { grid-template-columns: 1fr 1fr; }
  .contact > div, .contact > div + div { padding: 20px 12px 20px 0; border-left: 0; border-bottom: 1px solid var(--rule-dark); }
  .contact > div:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--rule-dark); }
}
@media (max-width: 480px) {
  .contact { grid-template-columns: 1fr; }
  .contact > div:nth-child(even) { padding-left: 0; border-left: 0; }
}

/* lightbox */
.lightbox {
  width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: rgba(8,8,8,.97); color: var(--paper);
}
.lightbox[open] { display: grid; grid-template-columns: 64px 1fr 64px; align-items: center; }
.lightbox::backdrop { background: rgba(0,0,0,.6); }
.lightbox figure { margin: 0; grid-column: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100dvh; padding: 64px 0 24px; }
.lightbox img { max-width: 100%; max-height: calc(100dvh - 170px); width: auto; height: auto; object-fit: contain; }
.lightbox .label { width: min(100%, 560px); border-color: var(--rule-dark); }
.lightbox .label__medium, .lightbox .label__no { color: #9a9a9a; }
.lightbox__close {
  position: absolute; top: 16px; right: 16px; z-index: 2;
  background: none; color: inherit; border: 1.5px solid #555; padding: 10px 16px; cursor: pointer;
  font: 700 .6875rem/1 var(--display); text-transform: uppercase; letter-spacing: .14em;
}
.lightbox__close:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.lightbox__nav { background: none; border: 0; color: inherit; font: 400 1.75rem/1 var(--display); height: 100%; cursor: pointer; opacity: .6; }
.lightbox__nav:hover { opacity: 1; }
.lightbox__prev { grid-column: 1; grid-row: 1; }
.lightbox__next { grid-column: 3; grid-row: 1; }
.lightbox figure { grid-row: 1; }
@media (max-width: 600px) {
  .lightbox[open] { grid-template-columns: 40px 1fr 40px; }
}

/* the studio: the hero stage; site.js plays each finish going on, on a loop */
.studio { position: relative; background: #070707; color: var(--paper); }
.studio__pin { position: relative; height: calc(100svh - 64px - 112px); min-height: 560px; max-height: 62vw; overflow: hidden; }
.studio .ch { bottom: clamp(28px, 6%, 64px); }
.studio .ch__line { font-size: clamp(2.2rem, 4.6vw, 4.75rem); }
.studio .ch__note { margin-top: 12px; font-size: clamp(.9375rem, 1.1vw, 1.125rem); }
.studio__poster, .studio__canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.studio__canvas { opacity: 0; transition: opacity .4s; }
.studio.is-live .studio__canvas { opacity: 1; }
/* once the canvas runs it draws its own frame; on a phone the poster would peek out under the band */
.studio.is-live .studio__poster { opacity: 0; transition: opacity .4s .4s; }
.studio__shade {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(0,0,0,.72) 0%, rgba(0,0,0,.25) 38%, rgba(0,0,0,0) 60%),
    linear-gradient(0deg, rgba(0,0,0,.7) 0%, rgba(0,0,0,0) 34%),
    linear-gradient(180deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,0) 22%);
}

.studio__chapters { list-style: none; margin: 0; padding: 0; }
.ch {
  position: absolute; left: var(--gutter); bottom: clamp(56px, 10vh, 112px); width: min(560px, calc(100% - 2 * var(--gutter)));
  opacity: 0; transform: translateY(24px); transition: opacity .5s var(--ease), transform .7s var(--ease); pointer-events: none;
}
.ch.is-on { opacity: 1; transform: none; pointer-events: auto; }
.ch__line { margin-top: 18px; font-size: clamp(2.6rem, 6.4vw, 6rem); font-weight: 850; font-stretch: 118%; letter-spacing: -0.045em; line-height: .9; }
.ch__note { margin-top: 16px; font-size: clamp(1.0625rem, 1.3vw, 1.25rem); line-height: 1.5; color: #cfcfcf; max-width: 30em; }
.ch__cta { margin-top: 26px; }
.btn--paper { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn--paper:hover { background: transparent; color: var(--paper); }

/* headline words rise out of a mask, one after another; <em> words take the accent */
.ch__line .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.ch__line .w > span { display: inline-block; transform: translateY(108%); transition: transform .8s var(--ease); transition-delay: calc(var(--i) * 60ms); }
.ch.is-on .ch__line .w > span { transform: none; transition-delay: calc(var(--i) * 60ms + 120ms); }
.ch__line .acc { color: var(--acc, var(--paper)); }
.ch[data-ch="2"] .acc { color: transparent; -webkit-text-stroke: 1.5px var(--paper); }
.ch[data-ch="4"] .acc > span {
  background: linear-gradient(100deg, #9b5cff, #2ad1d1 55%, #3ee07a); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.ch .chip, .ch .ch__note, .ch .ch__cta { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease) .25s, transform .8s var(--ease) .25s; }
.ch.is-on .chip, .ch.is-on .ch__note, .ch.is-on .ch__cta { opacity: 1; transform: none; }
.ch { transform: none; transition: opacity .45s var(--ease); }

/* HUD: live readout, top right of the stage */
.hud {
  position: absolute; top: clamp(16px, 3vh, 32px); right: var(--gutter); width: 250px;
  padding: 14px 16px 12px; background: rgba(10,10,12,.5); border: 1px solid rgba(127,178,255,.22);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  font: 600 .6875rem/1 var(--display); font-stretch: 118%; text-transform: uppercase; letter-spacing: .14em;
}
.hud__row { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; color: #8a8a8a; }
.hud__row b { color: var(--paper); font-weight: 700; letter-spacing: .06em; font-variant-numeric: tabular-nums; }
.hud__cov { color: #9cc4ff !important; }
.hud__bar { display: block; height: 2px; margin: 2px 0 6px; background: rgba(255,255,255,.12); overflow: hidden; }
.hud__bar i { display: block; height: 100%; background: linear-gradient(90deg, #3d7dff, #b9d6ff); box-shadow: 0 0 10px #4d8dff; transform: scaleX(0); transform-origin: left; }
@media (max-width: 760px) {
  .hud { top: 16px; bottom: auto; right: var(--gutter); left: auto; width: 168px; padding: 6px 10px 4px; font-size: .5625rem; }
  .hud__row { padding: 4px 0; }
  .hud__row:has(.hud__finish), .hud__row:has(.hud__panels) { display: none; }
}

/* without JS the studio is a still with its first chapter's copy */
html:not(.js) .ch[data-ch="0"], html:not(.js) .ch[data-ch="0"] .chip, html:not(.js) .ch[data-ch="0"] .ch__note { opacity: 1; transform: none; }
html:not(.js) .hud, html:not(.js) .studio__methods { display: none; }

/* wall label as a chip: swatch + finish name */
.chip {
  display: inline-flex; align-items: center; gap: 12px; padding: 8px 16px 8px 8px;
  background: rgba(10,10,10,.55); border: 1px solid rgba(255,255,255,.16);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  font: 700 .9375rem/1.15 var(--display); font-stretch: 108%;
}
.chip small { display: block; font: 600 .625rem/1.4 var(--display); font-stretch: 125%; text-transform: uppercase; letter-spacing: .16em; color: #9a9a9a; }
.chip__sw { width: 30px; height: 30px; background: var(--sw); box-shadow: inset 0 0 0 1px rgba(255,255,255,.25); }
.chip__sw--line { background: transparent; box-shadow: inset 0 0 0 1.5px var(--paper); }
.chip__sw--shift { background: linear-gradient(135deg, #5c1f8c, #0d7380 55%, #1a8c40); }

/* finish buttons under the stage: each starts its finish; the playing one fills as it runs */
.studio__methods { padding: 18px var(--gutter) 22px; border-top: 1px solid rgba(255,255,255,.1); }
.studio__ask { font: 600 .6875rem/1 var(--display); font-stretch: 118%; text-transform: uppercase; letter-spacing: .14em; color: #8a8a8a; margin-bottom: 12px; }
.studio__btns { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
@media (max-width: 1100px) { .studio__btns { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.method {
  position: relative; display: flex; align-items: center; gap: 10px; padding: 10px 12px 12px; overflow: hidden;
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.14); color: var(--paper); cursor: pointer; text-align: left;
  font: 700 .875rem/1.15 var(--display); font-stretch: 108%; transition: border-color .2s, background .2s;
}
.method small { display: block; font: 600 .5625rem/1.4 var(--display); font-stretch: 125%; text-transform: uppercase; letter-spacing: .16em; color: #9a9a9a; }
.method:hover { background: rgba(255,255,255,.08); }
.method[aria-pressed="true"] { border-color: rgba(255,255,255,.7); background: rgba(255,255,255,.08); }
.method__sw { flex: none; width: 24px; height: 24px; background: var(--sw); box-shadow: inset 0 0 0 1px rgba(255,255,255,.25); }
.method__sw--line { background: transparent; box-shadow: inset 0 0 0 1.5px var(--paper); }
.method i { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: linear-gradient(90deg, #3d7dff, #b9d6ff); box-shadow: 0 0 8px #4d8dff; transform: scaleX(var(--f, 0)); transform-origin: left; }
.studio__note { margin-top: 12px; font: 500 .75rem/1.4 var(--display); color: #8a8a8a; }
@media (max-width: 760px) {
  .studio__poster {
    inset: 18% 0 auto; height: 44%; object-position: 50% 50%;
    /* soft top and bottom, like the live canvas band, while it loads or without JS */
    -webkit-mask-image: linear-gradient(transparent, #000 22%, #000 78%, transparent);
    mask-image: linear-gradient(transparent, #000 22%, #000 78%, transparent);
  }
  .studio__shade { background: linear-gradient(0deg, rgba(0,0,0,.86) 0%, rgba(0,0,0,.35) 46%, rgba(0,0,0,0) 62%), linear-gradient(180deg, rgba(0,0,0,.6) 0%, rgba(0,0,0,0) 22%); }
  /* the whole opening screen under the header: the car gets the room between headline and copy */
  .studio__pin { height: calc(100svh - 65px); min-height: 520px; max-height: none; }
  /* up in the black block above the car */
  .hero__text { max-width: none; right: var(--gutter); top: 18px; }
  .hero__title { font-size: clamp(2.2rem, 10vw, 3rem); }
  .studio .hud { display: none; }
  .ch { bottom: 28px; }
  /* two even columns: every label fits on its line, every button the same size */
  .studio__btns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .method { padding: 11px 12px 13px; gap: 11px; font-size: .8125rem; }
  .method small { letter-spacing: .12em; }
  .method__sw { width: 20px; height: 20px; }
  .studio__note { font-size: .6875rem; }
}

/* scroll reveal (JS adds .js to <html>; without JS everything is visible) */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .load { animation: none; opacity: 1; transform: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .piece__img img { transition: none; }
  .ch, .ch__line .w > span, .ch .chip, .ch .ch__note, .ch .ch__cta { transition: none; }
}
.lightbox__src { color: var(--gray); }

/* collection: one studio photo of the real builds; tap one for its own studio shot */
.lineup__stage { position: relative; background: #0b0c0e; overflow: hidden; }
.lineup__img { display: block; width: 100%; height: auto; }
.lineup__spot { position: absolute; left: var(--x); top: var(--y); width: var(--w); height: var(--h); padding: 0; background: none; border: 0; cursor: pointer; }
.lineup__spot::after { content: ""; position: absolute; inset: 0; border: 1px solid rgba(255,255,255,0); transition: border-color .25s; }
.lineup__spot:hover::after, .lineup__spot:focus-visible::after { border-color: rgba(255,255,255,.6); }
.lineup__spot[aria-current="true"]::after { border-color: var(--paper); }
.lineup__spot:focus-visible { outline: none; }
.lineup__tag {
  position: absolute; left: 50%; bottom: 100%; transform: translate(-50%, 6px); opacity: 0; pointer-events: none; white-space: nowrap;
  padding: 7px 11px; background: rgba(10,11,14,.78); border: 1px solid rgba(255,255,255,.25); color: var(--paper);
  font: 600 .6875rem/1 var(--display); font-stretch: 108%; letter-spacing: .1em; text-transform: uppercase; transition: opacity .25s, transform .25s;
}
.lineup__spot:hover .lineup__tag, .lineup__spot:focus-visible .lineup__tag { opacity: 1; transform: translate(-50%, -6px); }
.lineup__note { position: absolute; right: 14px; bottom: 10px; margin: 0; font-size: .6875rem; color: rgba(255,255,255,.55); }
.lineup__cars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 20px; border-top: 1px solid var(--rule); border-left: 1px solid var(--rule); }
.lineup__car { font: 600 .75rem/1.2 var(--display); font-stretch: 108%; letter-spacing: .06em; text-transform: uppercase; text-align: left;
  padding: 14px 12px; background: none; border: 0; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); color: var(--ink); cursor: pointer; transition: background .2s, color .2s; }
.lineup__car small { display: block; margin-top: 5px; font: 400 .875rem/1.3 var(--text); letter-spacing: 0; text-transform: none; color: var(--gray); }
.lineup__car[aria-pressed="true"] small { color: rgba(255,255,255,.7); }
.lineup__car:hover { background: rgba(0,0,0,.04); }
.lineup__car[aria-pressed="true"] { background: var(--ink); color: var(--paper); }

.lineup__detail { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(280px, 1fr); gap: clamp(24px, 4vw, 56px); margin-top: clamp(28px, 4vw, 48px); align-items: start; scroll-margin-top: 84px; }
.lineup__detail[hidden] { display: none; }
/* sized to each studio shot (--arn = width / height, set in JS), never taller than the screen allows */
.lineup__view { position: relative; aspect-ratio: var(--arn, 1.333); width: min(100%, calc(min(78vh, 760px) * var(--arn, 1.333))); margin-inline: auto 0; background: #101113; overflow: hidden; }
.lineup__shot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; display: block; }
.lineup__view.is-loading::after { content: ""; position: absolute; left: 0; top: 0; height: 2px; width: 30%; background: var(--paper); animation: lineup-load 1s ease-in-out infinite; }
@keyframes lineup-load { from { transform: translateX(-100%); } to { transform: translateX(340%); } }
.lineup__step {
  position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; display: grid; place-items: center;
  background: rgba(10,11,14,.6); border: 1px solid rgba(255,255,255,.3); color: var(--paper); cursor: pointer; font-size: 1.25rem; line-height: 1;
}
.lineup__step:hover { background: rgba(10,11,14,.85); }
.lineup__step--prev { left: 12px; }
.lineup__step--next { right: 12px; }
.lineup__view .lineup__note { right: 14px; }
.lineup__count { font: 600 .75rem/1 var(--display); font-stretch: 118%; letter-spacing: .14em; text-transform: uppercase; color: var(--gray); }
.lineup__name { margin-top: 12px; font-size: clamp(2rem, 3.4vw, 3.25rem); font-weight: 850; font-stretch: 118%; letter-spacing: -0.035em; line-height: .95; }
.nowrap { white-space: nowrap; }
.lineup__medium { margin-top: 10px; font: 600 .75rem/1.2 var(--display); font-stretch: 108%; letter-spacing: .1em; text-transform: uppercase; color: var(--gray); }
.lineup__desc { margin-top: 16px; font-size: 1.125rem; line-height: 1.55; color: #333; }
.lineup__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
@media (max-width: 900px) {
  .lineup__stage, .lineup__view { margin: 0 calc(-1 * var(--gutter)); }
  .lineup__view { width: auto; }
  .lineup__stage > .lineup__note { position: static; padding: 8px var(--gutter) 10px; }
  .lineup__cars { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lineup__car:last-child:nth-child(odd) { grid-column: span 2; }
  .lineup__detail { grid-template-columns: 1fr; }
  .lineup__step { width: 38px; height: 38px; }
}
@media (prefers-reduced-motion: reduce) { .lineup__view.is-loading::after { animation: none; } }
