/* /marsp: the line-up. Brand tokens come from _marsp/marsp.css. */
:root {
  /* Brushed stainless for the opening; everything on it is engraved in one colour. */
  --v-steel-1: #a9b0b7;
  --v-steel-2: #e8ebee;
  --v-steel-3: #bfc5cb;
  --v-steel-4: #e2e6e9;
  --v-steel-5: #a7aeb5;
  --v-engrave: #333d47;
  --v-engrave-soft: #46515c;
  --v-engrave-shadow: 0 1px 0 rgba(255, 255, 255, .8), 0 -1px 1px rgba(0, 0, 0, .35);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: #fff;
  color: var(--m-ink);
  font: 400 17px/1.6 var(--m-font);
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
a:focus-visible { outline: 3px solid var(--m-mid); outline-offset: 3px; }
/* On ink (top bar, line-up) the mid-blue ring falls under 3:1, so it is white; on steel it is ink.
   These selectors also beat .m-btn:focus-visible from marsp.css. */
.v-top a:focus-visible, .v-line a:focus-visible { outline-color: #fff; }
.v-hero a:focus-visible { outline-color: var(--m-ink); }

.v-wrap { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 32px; }

/* Top bar: its own ink band above the steel opening; scrolls away with the page. */
.v-top { background: var(--m-ink); }
.v-top__bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 80px; }
.v-top__brand img { width: 160px; height: auto; }
.v-top__nav { display: flex; align-items: center; gap: 32px; }
.v-top__nav a:not(.m-btn) { color: #fff; text-decoration: none; font: 500 15px/1 var(--m-font); opacity: .85; }
.v-top__nav a:not(.m-btn):hover { opacity: 1; }
.v-top__cta { padding: 10px 18px; font-size: 15px; }

/* Opening. */
.v-hero {
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .10) 0 1px, rgba(0, 0, 0, .035) 1px 3px),
    linear-gradient(100deg, var(--v-steel-1) 0%, var(--v-steel-2) 26%, var(--v-steel-3) 50%, var(--v-steel-4) 72%, var(--v-steel-5) 100%);
  color: var(--v-engrave);
  padding: 64px 0 96px;
  overflow: hidden;
  /* Bevel where the steel meets the ink line-up: light line above a dark one. */
  border-bottom: 1px solid #4a535c;
  /* Top: a light lip under the ink band, so the change of material reads as an edge. */
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7), inset 0 -1px 0 rgba(255, 255, 255, .85);
}
.v-hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); align-items: center; gap: 24px; }
.v-hero h1 { font: 800 56px/1.06 var(--m-font); letter-spacing: -.02em; max-width: 13em; color: var(--v-engrave); text-shadow: var(--v-engrave-shadow); }
.v-hero p { margin-top: 24px; max-width: 34em; color: var(--v-engrave-soft); text-shadow: var(--v-engrave-shadow); }
.v-hero .m-btn { margin-top: 32px; }
/* Machine slot: the line-up still (three machines to scale), sized by the column width, never cropped.
   It bleeds a little into the right gutter. */
.v-hero__machine { display: flex; align-items: center; justify-content: center; align-self: center; margin-right: -32px; }
.v-hero__machine picture { display: block; width: 100%; }
.v-hero__machine img { width: 100%; height: auto; max-height: 620px; object-fit: contain; }
/* Below 1081 px the stacked still is a tight line-up crop; its box edges melt into the steel. */
.v-hero__machine { position: relative; }
.v-hero__machine img {
  -webkit-mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent), linear-gradient(to bottom, transparent, #000 7%, #000 93%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent), linear-gradient(to bottom, transparent, #000 7%, #000 93%, transparent);
  mask-composite: intersect;
}

/* The line-up: one dark stage, four models standing on the same floor. */
.v-line { background: var(--m-ink); color: #fff; padding: 32px 0 80px; border-top: 1px solid rgba(255, 255, 255, .08); }
.v-line__head { display: flex; align-items: baseline; justify-content: space-between; gap: 32px; padding-top: 48px; padding-bottom: 48px; }
.v-line__head h2 { font: 800 34px/1.15 var(--m-font); flex: none; }
.v-line__head p { max-width: 34em; color: var(--m-steel); font-size: 16px; }

.v-line__track {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) repeat(3, minmax(0, 1fr));
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}
.v-model { position: relative; padding: 0 24px; }
.v-model + .v-model { border-left: 1px solid rgba(255, 255, 255, .08); }
.v-model:first-child { padding-left: 0; }
.v-model:last-child { padding-right: 0; }
/* Desktop/tablet: three big cards on the first row, the two teasers below. */
@media (min-width: 761px) {
  .v-line__track { grid-template-columns: repeat(6, minmax(0, 1fr)) !important; row-gap: 72px; }
  .v-model--live { grid-column: span 2; }
  .v-model--soon { grid-column: span 3; }
  .v-model--soon:nth-child(4) { border-left: 0; padding-left: 0; }
  .v-model--live:nth-child(3) { padding-right: 0; }
  .v-line__head { padding-bottom: 80px; }
}
/* 22K render has a bluer studio than the page ink: fade its edges into the page instead of showing a box. */
.v-model--still .v-model__stage { margin-top: 0; height: 320px; }
.v-model--still .v-model__stage img {
  -webkit-mask-image: radial-gradient(ellipse 50% 46% at 50% 50%, #000 62%, transparent 100%);
          mask-image: radial-gradient(ellipse 50% 46% at 50% 50%, #000 62%, transparent 100%);
}

/* Stage: every image sits on the floor line, so the row reads as one showroom. */
.v-model__stage {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  height: 320px;
  border-bottom: 1px solid rgba(198, 205, 212, .28);
  margin-bottom: 24px;
}
.v-model__stage img { width: 100%; height: 100%; object-fit: contain; object-position: center bottom; }
.v-model--live .v-model__stage { height: 380px; margin-top: -60px; background: var(--m-ink); }
.v-model--soon .v-model__stage img { width: 100%; height: 86%; }
/* The render is 4:3 with the machine above its shadow pool: crop the empty sides and drop the pool
   below the floor line so the machine stands on the same line as the silhouettes. */
.v-model--live .v-model__stage { overflow: hidden; --v-drop: 20%; }
.v-model--live .v-model__stage img { flex: none; width: 125%; max-width: none; height: auto; transform: translateY(var(--v-drop)); }
.v-model--small .v-model__stage img { height: 56%; }

.v-model__code { font-size: 13px; color: var(--m-steel); margin-bottom: 8px; }
.v-model__soon { display: inline-block; margin-bottom: 8px; padding: 2px 10px; border: 1px solid rgba(198, 205, 212, .35); border-radius: var(--m-r-pill); color: var(--m-steel); font: 600 12px/1.6 var(--m-font); letter-spacing: .02em; }
.v-model__name { font: 700 22px/1.3 var(--m-font); }
.v-model--live .v-model__name { font: 800 34px/1.15 var(--m-font); }
.v-model__line { margin-top: 8px; color: var(--m-steel); font-size: 15px; line-height: 1.5; max-width: 30em; }
.v-model--soon .v-model__name, .v-model--soon .v-model__line { opacity: .82; }

.v-model__link { display: block; color: inherit; text-decoration: none; }
.v-model__go { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; font: 600 16px/1.4 var(--m-font); color: #fff; }
.v-model__go::after { content: "\2192"; transition: transform .15s; }
.v-model__link:hover .v-model__go::after { transform: translateX(4px); }
.v-model__link:hover .v-model__go { text-decoration: underline; text-underline-offset: 4px; }
.v-model--live img { transition: transform .4s ease; transform-origin: center bottom; }
.v-model__link:hover img { transform: translateY(var(--v-drop)) scale(1.02); }

/* Partnership: running text, no twin cards. */
.v-part { background: var(--m-fog); padding: 80px 0; }
.v-part__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.v-part h2 { font: 800 34px/1.15 var(--m-font); max-width: 13em; }
.v-part__text p { font-size: 19px; line-height: 1.6; }
.v-part__text p + p { margin-top: 16px; }
.v-part__text strong { font-weight: 700; color: var(--m-navy); }
/* Special projects: same grammar as the partnership, on white; the button is the quiet one (orange stays on the quote). */
.v-part--plain { background: #fff; }
.v-part--plain a:focus-visible { outline-color: var(--m-ink); }
.v-part__text .m-btn { margin-top: 32px; }

/* Proposal + signature. */
.v-ask { background: #fff; padding: 80px 0 0; }
.v-ask__row { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; padding-bottom: 48px; }
.v-ask h2 { font: 800 34px/1.15 var(--m-font); }
.v-ask p { margin-top: 12px; color: var(--m-slate); max-width: 32em; }
.v-ask__act { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.v-ask__mail { font-size: 14px; color: var(--m-slate); }
.v-ask .m-sign { align-items: center; padding: 32px 0 40px; }
.v-ask .m-sign img { width: 120px; height: auto; margin-right: auto; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}

/* Large screens: the line-up image grows into the right side, keeping the h1 column. */
@media (min-width: 1081px) {
  /* Wide screens: the machines are the hero's backdrop. Still and tour video share one full-bleed
     layer (same render frame, same cover/position), the scene sits right and dissolves to the left
     under the text, so it reads as part of the steel, not a picture on it. The tour (hero-tour.js)
     fades in over the still once it can play through and hands back to the still on its last frame. */
  .v-hero { position: relative; min-height: 610px; }
  .v-hero__grid { position: static; grid-template-columns: minmax(0, 520px); }
  .v-hero__text { position: relative; z-index: 1; }
  .v-hero__machine { position: absolute; inset: 0; margin: 0; display: block; align-self: stretch; justify-self: stretch; pointer-events: none; }
  .v-hero__machine picture { width: 100%; height: 100%; }
  .v-hero__machine img, .v-hero__tour {
    position: absolute; inset: 0; width: 100%; height: 100%; max-height: none;
    object-fit: cover; object-position: 70% 50%;
    -webkit-mask-image: linear-gradient(to right, transparent 28%, #000 48%);
    mask-image: linear-gradient(to right, transparent 28%, #000 48%);
    -webkit-mask-composite: source-over; mask-composite: add;
  }
  .v-hero__machine img { transition: opacity .35s ease-out; }
  .v-touring .v-hero__machine img { opacity: 0; }
  .v-hero__tour { opacity: 0; transition: opacity .35s ease-out; }
  .v-hero__tour.is-on { opacity: 1; }
}

/* Tablet. */
@media (max-width: 1080px) {
  .v-hero h1 { font-size: 46px; }
  .v-hero__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
  .v-line__track { grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); }
  .v-model__stage { height: 240px; }
  .v-model--live .v-model__stage { height: 300px; }
}

/* Phone: the line-up scrolls sideways inside its own track, never the page. */
@media (max-width: 760px) {
  .v-wrap { padding: 0 16px; }
  .v-top__bar { height: 64px; }
  .v-top__brand img { width: 120px; }
  .v-top__nav { gap: 16px; }
  .v-top__nav a:not(.m-btn) { display: none; }
  .v-top__cta { padding: 8px 14px; font-size: 14px; }

  .v-hero { padding: 48px 0 56px; }
  .v-hero__grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .v-hero h1 { font-size: 34px; line-height: 1.1; }
  .v-hero p { font-size: 16px; }
  .v-hero__machine { margin: 0 -16px; }
  .v-hero__machine img { max-height: 420px; }

  .v-line { padding-bottom: 56px; }
  .v-line__head { display: block; padding-top: 32px; padding-bottom: 32px; }
  .v-line__head p { margin-top: 12px; }
  .v-line__track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 0 16px 8px;
    scroll-padding: 0 16px;
    gap: 0;
  }
  .v-model { flex: 0 0 72%; scroll-snap-align: start; padding: 0 16px; }
  .v-model--live { flex-basis: 86%; }
  .v-model:first-child { padding-left: 0; }
  .v-model__stage { height: 200px; }
  .v-model--live .v-model__stage { height: 240px; margin-top: 0; }
  .v-model--live .v-model__name { font-size: 28px; }

  .v-part { padding: 56px 0; }
  .v-part__grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .v-part h2, .v-ask h2, .v-line__head h2 { font-size: 28px; }
  .v-part__text p { font-size: 17px; }

  .v-ask { padding-top: 56px; }
  .v-ask__row { display: block; padding-bottom: 32px; }
  .v-ask__act { align-items: flex-start; margin-top: 24px; }
  .v-ask .m-sign { display: grid; gap: 8px; }
}

/* Services band */
.v-svc { background: #fff; }
.v-svc__lead { font-size: 19px; line-height: 1.6; margin-top: 16px; max-width: 38em; }
.v-svc__list { list-style: none; margin: 32px 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.v-svc__item { display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 14px 16px; background: var(--m-fog); border-radius: 8px; color: var(--m-navy); text-decoration: none; font: 600 16px/1.3 var(--m-font); }
.v-svc__item:hover { background: #e6edf3; }
.v-svc__ico { flex: none; width: 28px; height: 28px; }
@media (max-width: 1080px) { .v-svc__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px) {
  .v-svc__list { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .v-svc__lead { font-size: 17px; }
}
