/* ==========================================================================
   BAZA PRODUCTION - Direction pages (/film /3d /sound /developers /promotion)
   One system, five characters: every page sets --dir from body[data-dir]
   and composes the blocks below in its own order.
   ========================================================================== */

body[data-dir="film"] { --dir: var(--c-film); }
body[data-dir="3d"] { --dir: var(--c-3d); }
body[data-dir="sound"] { --dir: var(--c-sound); }
body[data-dir="developers"] { --dir: var(--c-developers); }
body[data-dir="promotion"] { --dir: var(--c-promotion); }

.d-label {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: var(--tracking-mono);
  text-transform: uppercase;
  color: var(--dir);
}
.d-label::before { content: ""; width: 7px; height: 7px; background: var(--dir); transform: rotate(45deg); }
.d-h2 { font-size: var(--fs-2xl); }
.d-section { position: relative; padding-block: var(--space-xl); }
.d-head { display: grid; gap: 24px; margin-bottom: var(--space-head); }
.d-head__lead { max-width: 40ch; }
@media (min-width: 900px) {
  .d-head { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: end; }
  .d-head > .d-label { grid-column: 1 / span 3; align-self: start; margin-top: 1em; }
  .d-head > .d-h2 { grid-column: 4 / span 9; }
  .d-head > .d-head__lead { grid-column: 4 / span 6; }
}

/* ==========================================================================
   HERO - copy left, the discipline object right (same loop as the home column)
   ========================================================================== */
.d-hero {
  position: relative;
  min-height: 100svh;
  padding-top: calc(var(--header-h) + clamp(24px, 4vh, 56px));
  padding-bottom: clamp(32px, 5vh, 72px);
  overflow: clip;
  isolation: isolate;
}
.d-hero::before {                       /* discipline light */
  content: "";
  position: absolute; inset: 0;
  z-index: -1;
  background:
    radial-gradient(50% 60% at 78% 45%, color-mix(in srgb, var(--dir) 20%, transparent), transparent 70%),
    radial-gradient(30% 40% at 8% 100%, color-mix(in srgb, var(--dir) 8%, transparent), transparent 70%);
}
.d-hero__canvas { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; opacity: 0.9; }
.d-hero__grid { display: grid; gap: clamp(28px, 4vw, 48px); min-height: calc(100svh - var(--header-h) - 12vh); }
.d-crumbs {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: var(--tracking-mono);
  text-transform: uppercase;
  color: var(--c-fg-3);
}
.d-crumbs a { display: inline-flex; align-items: center; gap: 10px; color: var(--c-fg-2); transition: color var(--dur-1) ease; }
.d-crumbs a:hover { color: var(--c-fg); }
.d-crumbs a svg { width: 9px; fill: var(--dir, var(--c-accent)); }
.d-crumbs span[aria-current] { color: var(--dir); }
.d-hero__copy { display: flex; flex-direction: column; justify-content: flex-end; gap: clamp(20px, 2.4vw, 36px); }
.d-hero__title {
  font-size: clamp(2.6rem, 1.2rem + 5.4vw, 7.6rem);
  font-weight: 600;
  line-height: 0.93;
  letter-spacing: -0.045em;
  text-transform: uppercase;
  text-wrap: balance;
}
.d-hero__lede { max-width: 52ch; color: var(--c-fg-2); font-size: var(--fs-md); line-height: 1.5; }
.d-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.d-hero__actions .btn--primary { --btn-bg: var(--dir); --btn-bd: var(--dir); }

@media (min-width: 900px) {
  .d-hero__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: stretch; }
  .d-hero__copy { grid-column: 1 / span 10; order: 0; padding-bottom: clamp(8px, 2vh, 24px); }
}

/* ==========================================================================
   INTRO - statement + body + one fact
   ========================================================================== */
.d-intro__grid { display: grid; gap: clamp(28px, 3vw, 48px); }
.d-intro__title { font-size: var(--fs-xl); font-weight: 500; line-height: 1.06; letter-spacing: -0.035em; text-wrap: balance; }
.d-intro__body { display: grid; gap: 20px; color: var(--c-fg-2); font-size: var(--fs-md); line-height: 1.55; max-width: 62ch; }
.d-fact { display: grid; gap: 10px; padding-top: 20px; border-top: 1px solid var(--c-line); max-width: 34ch; }
.d-fact__num { font-size: clamp(3.5rem, 7vw, 7rem); font-weight: 600; letter-spacing: -0.05em; line-height: 0.9; color: var(--dir); }
.d-fact p { color: var(--c-fg-2); font-size: var(--fs-sm); }
@media (min-width: 900px) {
  .d-intro__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); }
  .d-intro__grid > .d-label { grid-column: 1 / span 3; align-self: start; margin-top: 0.8em; }
  .d-intro__title { grid-column: 4 / span 9; }
  .d-intro__body { grid-column: 4 / span 5; }
  .d-fact { grid-column: 10 / span 3; align-self: end; }
}

/* ==========================================================================
   FULL-BLEED MEDIA
   ========================================================================== */
.d-bleed { position: relative; }
.d-bleed__frame { position: relative; aspect-ratio: 21 / 9; overflow: hidden; background: var(--c-surface); }
.d-bleed__frame picture, .d-bleed__frame video { position: absolute; inset: 0; }
.d-bleed__frame img, .d-bleed__frame video { position: absolute; left: 0; top: -8%; width: 100%; height: 116%; object-fit: cover; }
.d-bleed__cap {
  display: flex; justify-content: space-between; gap: 16px;
  padding-top: 14px;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: var(--tracking-mono);
  text-transform: uppercase;
  color: var(--c-fg-3);
}
@media (max-width: 699px) { .d-bleed__frame { aspect-ratio: 4 / 3; } }
/* Pair of full frames (3D process shots): native 3:2, no crop, the second
   one set lower for a quiet editorial stagger. */
.d-pair { display: grid; gap: clamp(12px, 1.4vw, 28px); }
.d-pair__f { margin: 0; overflow: hidden; aspect-ratio: 3 / 2; background: var(--c-surface); }
.d-pair__f picture { display: block; height: 100%; transition: transform 1.8s cubic-bezier(0.16, 1, 0.3, 1); }
.d-pair__f img { display: block; width: 100%; height: 100%; object-fit: cover; }
@media (hover: hover) and (pointer: fine) { .d-pair__f:hover picture { transform: scale(1.02); } }
@media (min-width: 700px) {
  .d-pair { grid-template-columns: 1fr 1fr; align-items: start; }
  .d-pair__f:nth-child(2) { margin-top: clamp(32px, 6vw, 140px); }
}

/* ==========================================================================
   LIST (services) - numbered rows, two columns on desktop
   ========================================================================== */
.d-list { display: grid; border-top: 1px solid var(--c-line); }
.d-list li {
  display: grid; grid-template-columns: 3.2rem 1fr auto; align-items: baseline; gap: 12px;
  padding-block: var(--space-xs);
  border-bottom: 1px solid var(--c-line);
  font-size: var(--fs-lg);
  letter-spacing: -0.02em;
  line-height: 1.15;
  transition: color 0.5s var(--ease-out), padding 0.7s var(--ease-out);
}
.d-list li > span:first-child { font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: var(--tracking-mono); color: var(--c-fg-3); }
.d-list li small { font-size: var(--fs-sm); color: var(--c-fg-3); letter-spacing: 0; }
@media (hover: hover) {
  .d-list li:hover { color: var(--dir); padding-left: 12px; }
}
@media (min-width: 900px) {
  .d-list--2 { grid-template-columns: 1fr 1fr; column-gap: var(--gap); }
}

/* ==========================================================================
   HORIZONTAL SCROLL (pinned by hscroll.js on every screen; swipe with reduced motion)
   ========================================================================== */
.hscroll { position: relative; overflow: hidden; }
.hscroll__track {
  display: flex; gap: var(--gap);
  padding-inline: var(--pad);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--pad);
  scrollbar-width: none;
}
.hscroll__track::-webkit-scrollbar { display: none; }
/* trailing gutter: flex overflow ignores padding-right, so the last slide would touch the edge */
.hscroll__track::after { content: ""; flex: 0 0 max(1px, calc(var(--pad) - var(--gap))); }
.hscroll__track > * { scroll-snap-align: start; flex: none; }
.hscroll.is-pinned { overflow: visible; }
.hscroll__stick { position: sticky; top: 0; overflow: hidden; }
.hscroll.is-pinned .hscroll__track { overflow: visible; will-change: transform; }
.hscroll__progress { height: 1px; margin: var(--space-s) var(--pad) 0; background: var(--c-line); }
.hscroll__progress i { display: block; height: 100%; background: var(--dir); transform-origin: left; transform: scaleX(0); }

/* Process (film): one hairline, nine points - drawn by scroll in process.js */
.process { position: relative; }
.process__list { position: relative; display: grid; gap: 0; }
.process__line { position: absolute; left: 5px; top: 8px; bottom: 8px; width: 1px; background: var(--c-line-2); }
.process__line i { position: absolute; inset: 0; background: var(--dir); transform-origin: top; transform: scaleY(0); }
.process__step {
  position: relative;
  display: grid; grid-template-columns: 11px 3rem 1fr; align-items: baseline; column-gap: 18px;
  padding-block: 16px;
}
.process__num { grid-column: 2; font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: var(--tracking-mono); color: var(--c-fg-3); transition: color 0.6s var(--ease-out); }
.process__dot {
  grid-column: 1; grid-row: 1;
  width: 11px; height: 11px;
  align-self: center;
  border: 1px solid var(--c-line-2);
  background: var(--c-bg);
  transform: rotate(45deg) scale(0.75);
  transition: background-color 0.6s var(--ease-out), border-color 0.6s var(--ease-out), transform 0.8s var(--ease-out);
}
.process__name {
  grid-column: 3;
  font-size: var(--fs-lg);
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--c-fg-3);
  transition: color 0.6s var(--ease-out);
}
.process__step.is-on .process__dot { background: var(--dir); border-color: var(--dir); transform: rotate(45deg) scale(1); }
.process__step.is-on .process__name { color: var(--c-fg); }
.process__step.is-on .process__num { color: var(--dir); }
.process__step--end.is-on .process__dot { box-shadow: 0 0 0 6px color-mix(in srgb, var(--dir) 18%, transparent); }
html:not(.motion) .process__step .process__dot { background: var(--dir); border-color: var(--dir); }
html:not(.motion) .process__step .process__name { color: var(--c-fg); }
html:not(.motion) .process__line i { transform: none; }
@media (min-width: 1100px) {
  .process__list { grid-template-columns: repeat(9, minmax(0, 1fr)); column-gap: var(--gap); }
  .process__line { left: 0; right: 0; top: calc(var(--fs-xs) * 1.4 + 22px); bottom: auto; width: auto; height: 1px; }
  .process__line i { transform-origin: left; transform: scaleX(0); }
  .process__step { grid-template-columns: 1fr; row-gap: 16px; padding-block: 0; align-items: start; align-content: start; }
  .process__num, .process__dot, .process__name { grid-column: 1; grid-row: auto; }
  .process__dot { align-self: start; }
  .process__name { font-size: clamp(0.95rem, 0.3rem + 0.78vw, 1.4rem); hyphens: manual; text-wrap: balance; }
}

/* Media slides (3D) */
/* Slides share one height; width follows each frame's own ratio (--ar,
   set inline), so renders are shown whole instead of cropped to 3:2. */
.hscroll { --sh: min(58vw, 46svh); }
@media (min-width: 900px) { .hscroll { --sh: min(62svh, 40vw); } }
.slide { width: auto; }
.slide__frame { position: relative; height: var(--sh); width: calc(var(--sh) * var(--ar, 1.5)); overflow: hidden; background: var(--c-surface); }
.slide__frame img, .slide__frame video { width: 100%; height: 100%; object-fit: cover; }
.slide__cap { display: flex; gap: 14px; padding-top: 12px; font-size: var(--fs-sm); color: var(--c-fg-2); }
.slide__cap span { font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--dir); }

/* Two-row run after the smoke video (3D aerospace). Rows share the video's
   total height: row = (frame height - one caption - row gap) / 2. */
.hscroll { --cap: 34px; --rgap: clamp(10px, 1vw, 20px); }
.slide__cap { box-sizing: border-box; height: var(--cap); padding-top: 10px; }
.slide-rows { display: flex; flex-direction: column; gap: var(--rgap); flex: none;
  --rh: calc((var(--sh) - var(--cap) - var(--rgap)) / 2); }
.slide-row { display: flex; gap: var(--gap); }
.slide-row--lag { padding-left: calc(var(--rh) * var(--lag)); }
.slide-rows .slide__frame { height: var(--rh); width: calc(var(--rh) * var(--ar, 1.5)); }
.slide-rows .slide { scroll-snap-align: none; }
@media (max-width: 599px) {
  /* phones: half the video would be too small, rows get their own height */
  .slide-rows { --rh: calc(var(--sh) * 0.72); }
}

/* ==========================================================================
   MEDIA STRIP (behind the scenes) - drifting row of photos
   ========================================================================== */
.strip { overflow: hidden; }
.strip__row { display: flex; gap: var(--gap); width: max-content; will-change: transform; }
.strip__row figure { flex: none; height: clamp(220px, 26vw, 440px); overflow: hidden; background: var(--c-surface); }
.strip__row picture { display: block; height: 100%; }
.strip__row img { display: block; height: 100%; width: auto; max-width: none; object-fit: contain; filter: grayscale(0.25); transition: filter 0.8s var(--ease-out), transform 1.2s var(--ease-out); }
.strip__row figure:hover img { filter: none; transform: scale(1.04); }
.strip + .strip { margin-top: var(--gap); }

/* ==========================================================================
   MOMENTS (Film) - a short contact sheet from the BAZA archive.
   Three justified rows: inside a row every frame is shown whole at one
   shared height (flex-grow = aspect ratio), and the rows step down in scale
   (large, medium, small) for rhythm. Hairline gutters, square corners, one
   calm hover: the frame you point at comes forward, the rest go quiet.
   Phones: one wide frame and a 2-column sheet of six.
   ========================================================================== */
.moments { --mo-gap: clamp(6px, 0.7vw, 12px); }
.mo__head {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px 32px;
  margin-bottom: var(--space-s);
  padding-bottom: var(--space-xs);
  border-bottom: 1px solid var(--c-line);
}
.mo__title { font-size: clamp(2.6rem, 1.4rem + 5vw, 7rem); font-weight: 600; line-height: 0.86; letter-spacing: -0.045em; text-transform: uppercase; }
.mo__sub { font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: var(--tracking-mono); text-transform: uppercase; color: var(--c-fg-2); }
.mo { display: grid; gap: var(--mo-gap); }
.mo__row { display: flex; gap: var(--mo-gap); }
.mo__fig { flex: var(--ar) 1 0; min-width: 0; margin: 0; }
.mo__frame { position: relative; aspect-ratio: var(--ar); overflow: hidden; background: var(--c-surface); }
.mo__frame picture { position: absolute; inset: 0; }
.mo__frame img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.2s var(--ease-out), filter 0.7s var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .mo:has(.mo__fig:hover) .mo__fig:not(:hover) img { filter: brightness(0.5) saturate(0.7); }
  .mo__fig:hover img { transform: scale(1.035); }
}
@media (max-width: 759px) {
  .mo { grid-template-columns: 1fr 1fr; }
  .mo__row { display: contents; }
  .mo__frame { aspect-ratio: 4 / 5; }
  .mo__row:first-child .mo__fig:first-child { grid-column: 1 / -1; }   /* only the opening frame is wide: the rest pair up, no empty cell */
  .mo__row:first-child .mo__fig:first-child .mo__frame { aspect-ratio: 16 / 10; }
  .mo__fig--desk { display: none; }
}

/* AI clips (3D) */
.d-clips { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--gap); }
.d-clips figure { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--c-surface); }
.d-clips video { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 900px) { .d-clips { grid-template-columns: repeat(4, 1fr); } .d-clips figure:nth-child(even) { transform: translateY(12%); } }



/* ==========================================================================
   CHIPS (capabilities, clients)
   ========================================================================== */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips li {
  padding: 12px 18px;
  border: 1px solid var(--c-line-2);
  border-radius: 999px;
  font-size: var(--fs-base);
  transition: border-color 0.4s var(--ease-out), background-color 0.4s var(--ease-out), color 0.4s var(--ease-out);
}
.chips li:hover { border-color: var(--dir); color: var(--dir); }
.chips--lg li { font-size: var(--fs-md); padding: 14px 22px; }

/* ==========================================================================
   STUDIO ROOMS (sound) - sticky copy, scrolling photographs
   ========================================================================== */
.room { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(28px, 3vw, 48px); padding-block: var(--space-l); border-top: 1px solid var(--c-line); }
.room__info { display: grid; gap: 22px; align-content: start; }
.room__num { font-family: var(--font-mono); font-size: var(--fs-sm); color: var(--dir); }
.room__name { font-size: clamp(3rem, 7vw, 8.5rem); font-weight: 600; letter-spacing: -0.05em; line-height: 0.88; text-transform: uppercase; }
.room__text { color: var(--c-fg-2); font-size: var(--fs-md); line-height: 1.55; max-width: 40ch; }
.room__tags { font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: var(--tracking-mono); text-transform: uppercase; color: var(--c-fg-3); }
.room__media { display: grid; gap: var(--gap); grid-template-columns: 1fr 1fr; }
.room__media figure { overflow: hidden; background: var(--c-surface); }
.room__media img { width: 100%; height: 100%; object-fit: cover; }
.room__media .wide { grid-column: 1 / -1; aspect-ratio: 3 / 2; }
.room__media .tall { aspect-ratio: 4 / 5; }
.room__media .half { aspect-ratio: 3 / 2; }
@media (min-width: 900px) {
  .room { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); }
  /* photographs lead: 8 of 12 columns, copy stays pinned in the narrower column */
  .room__info { grid-column: 1 / span 4; position: sticky; top: calc(var(--header-h) + 40px); align-self: start; }
  .room__name { font-size: clamp(3rem, 5.6vw, 7.5rem); }
  .room__media { grid-column: 5 / span 8; }
}

/* ==========================================================================
   PRODUCT CASE (developers)
   ========================================================================== */
.case {
  position: relative;
  display: grid; gap: clamp(40px, 5vw, 80px);
  grid-template-columns: minmax(0, 1fr);
  padding: clamp(24px, 4vw, 72px);
  border: 1px solid var(--c-line);
  background:
    radial-gradient(60% 50% at 90% 0%, color-mix(in srgb, var(--dir) 12%, transparent), transparent 70%),
    var(--c-bg-2);
  overflow: hidden;
}
.case__top { display: grid; gap: 24px; }
.case__body { display: grid; gap: 36px; }                 /* phones: air between the list and the calendar */
.case > *, .case__top > *, .case__body > * { min-width: 0; }
.case__title { font-size: clamp(2.4rem, 5.4vw, 6rem); font-weight: 600; letter-spacing: -0.05em; line-height: 0.9; text-transform: uppercase; }
.case__tagline { font-size: var(--fs-lg); letter-spacing: -0.02em; line-height: 1.2; max-width: 26ch; }
.case__desc { color: var(--c-fg-2); max-width: 56ch; line-height: 1.6; }
.case__features { display: grid; gap: 1px; background: var(--c-line); border: 1px solid var(--c-line); }
.feature { display: grid; gap: 10px; align-content: start; padding: clamp(20px, 2vw, 32px); background: var(--c-bg-2); }
.feature__num { font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--dir); }
.feature__title { font-size: var(--fs-md); font-weight: 550; letter-spacing: -0.01em; }
.feature p { color: var(--c-fg-2); font-size: var(--fs-sm); line-height: 1.55; }
.case__why { display: grid; gap: 14px; }
.case__why li { display: grid; grid-template-columns: 1.2rem 1fr; gap: 12px; color: var(--c-fg-2); line-height: 1.5; }
.case__why li::before { content: ""; width: 7px; height: 7px; margin-top: 0.55em; background: var(--dir); transform: rotate(45deg); }
.case__why b { color: var(--c-fg); font-weight: 550; }
.case__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.case__soon { font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: var(--tracking-mono); text-transform: uppercase; color: var(--c-fg-3); }
.ticker { overflow: hidden; border-block: 1px solid var(--c-line); padding-block: 16px; }
.ticker .strip__row { gap: 44px; font-family: var(--font-mono); font-size: var(--fs-sm); letter-spacing: var(--tracking-mono); text-transform: uppercase; color: var(--c-fg-2); }
@media (min-width: 700px) { .case__features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) {
  .case__top { grid-template-columns: 1.1fr 1fr; align-items: end; }
  .case__features { grid-template-columns: repeat(3, 1fr); }
  .case__body { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(40px, 5vw, 80px); align-items: start; }
}

.products { display: grid; gap: var(--gap); }
.product {
  display: grid; gap: 14px; align-content: space-between;
  min-height: 220px;
  padding: clamp(20px, 2vw, 32px);
  border: 1px solid var(--c-line);
  transition: border-color 0.5s var(--ease-out), background-color 0.5s var(--ease-out);
}
.product:hover { border-color: var(--dir); background: color-mix(in srgb, var(--dir) 5%, transparent); }
.product__name { font-size: var(--fs-lg); font-weight: 550; letter-spacing: -0.02em; }
.product p { color: var(--c-fg-2); font-size: var(--fs-sm); }
.product__tag { font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: var(--tracking-mono); text-transform: uppercase; color: var(--dir); }
@media (min-width: 900px) { .products { grid-template-columns: repeat(3, 1fr); } }

/* Website gallery (developers) */
/* ==========================================================================
   CAPABILITY CARDS (developers, promotion) - bordered bento
   ========================================================================== */
.caps { display: grid; gap: 1px; background: var(--c-line); border: 1px solid var(--c-line); }
.cap {
  position: relative;
  display: grid; gap: 14px; align-content: start;
  min-height: 260px;
  padding: clamp(22px, 2.2vw, 36px);
  background: var(--c-bg);
  overflow: hidden;
  transition: background-color 0.6s var(--ease-out);
}
.cap:hover { background: var(--c-bg-2); }
.cap__num { font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--dir); }
.cap__title { font-size: var(--fs-lg); font-weight: 550; letter-spacing: -0.02em; line-height: 1.12; }
.cap p { color: var(--c-fg-2); font-size: var(--fs-sm); line-height: 1.6; max-width: 44ch; }
.cap--media { padding: 0; min-height: 320px; }
.cap--media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.8; transition: transform 1.4s var(--ease-out), opacity 0.8s ease; }
.cap--media:hover img { transform: scale(1.04); opacity: 1; }
@media (min-width: 700px) { .caps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) {
  .caps { grid-template-columns: repeat(3, 1fr); }
  .caps--bento .cap--media:first-child { grid-row: span 2; }
}

/* ==========================================================================
   STEPS (promotion approach) - sticky stage, scroll-driven
   ========================================================================== */
.steps { display: grid; gap: clamp(40px, 5vw, 80px); }
.steps__stage { display: none; }
.steps__list { display: grid; gap: 0; }
.steps__item { padding-block: var(--space-s); border-top: 1px solid var(--c-line); display: grid; gap: 12px; opacity: 0.35; transition: opacity 0.6s var(--ease-out); }
.steps__item.is-active, html:not(.motion) .steps__item { opacity: 1; }
.steps__num { font-family: var(--font-mono); font-size: var(--fs-sm); color: var(--dir); }
.steps__name { font-size: clamp(2rem, 4vw, 4.4rem); font-weight: 600; letter-spacing: -0.045em; line-height: 0.95; text-transform: uppercase; }
.steps__item p { color: var(--c-fg-2); font-size: var(--fs-md); max-width: 36ch; }
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); }
  .steps__stage {
    display: grid; align-content: center;
    grid-column: 1 / span 5;
    position: sticky; top: calc(var(--header-h) + 5vh);
    height: 70vh;
    align-self: start;
  }
  .steps__list { grid-column: 7 / span 6; }
  .steps__item { min-height: 46vh; align-content: center; }
  .steps__big {
    font-size: clamp(10rem, 22vw, 24rem);
    font-weight: 700;
    line-height: 0.8;
    letter-spacing: -0.07em;
    color: var(--dir);
    font-variant-numeric: tabular-nums;
  }
  .steps__bar { height: 2px; margin-top: 32px; background: var(--c-line); }
  .steps__bar i { display: block; height: 100%; width: 100%; background: var(--dir); transform-origin: left; transform: scaleX(0.1666); transition: transform 0.8s var(--ease-out); }
}

/* ==========================================================================
   FLOW (promotion x production)
   ========================================================================== */
.flow { display: grid; gap: 16px; align-items: center; }
.flow__in { display: flex; flex-wrap: wrap; gap: 10px; }
.flow__in li {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 18px;
  border: 1px solid var(--c-line-2);
  border-radius: 999px;
  font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: var(--tracking-mono); text-transform: uppercase;
}
.flow__in li i { width: 7px; height: 7px; background: var(--dot); transform: rotate(45deg); }
.flow__arrow { width: 56px; height: 1px; background: var(--c-line-2); position: relative; }
.flow__arrow::after { content: ""; position: absolute; right: 0; top: -4px; width: 9px; height: 9px; border-top: 1px solid var(--c-fg-3); border-right: 1px solid var(--c-fg-3); transform: rotate(45deg); }
.flow__out {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 18px 26px;
  border-radius: 999px;
  background: var(--dir);
  color: #0a0a0b;
  font-weight: 650; letter-spacing: 0.02em; text-transform: uppercase;
}
@media (min-width: 900px) { .flow { grid-template-columns: auto auto auto; justify-content: start; } }

/* ==========================================================================
   NEXT DIRECTION
   ========================================================================== */
.next { position: relative; border-top: 1px solid var(--c-line); overflow: clip; }
/* Next direction: a typographic hand-off, no picture and no disc. A hairline
   rail carries the five directions as small diamonds; the stretch from this
   page to the next draws itself in the next colour when the block arrives
   (data-reveal="rule"). Under it, the next name at full scale. Hover moves
   the name forward in the next colour and extends the arrow. */
.next__link {
  --n: var(--c-accent);
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end;
  row-gap: clamp(28px, 3.4vw, 56px);
  padding-block: var(--space-l) var(--space-m);
}
.next__top { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 24px; }
.next__label, .next__count { font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: var(--tracking-mono); text-transform: uppercase; color: var(--c-fg-3); }
.next__count { color: var(--n); }
.next__rail { grid-column: 1 / -1; position: relative; height: 12px; }
.next__rail::before {                               /* the whole system, quiet */
  content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--c-line);
}
.next__run {                                        /* this page -> next page */
  position: absolute; top: 50%; height: 1px; margin-top: -0.5px;
  left: calc(var(--a) * 100%); width: calc((var(--b) - var(--a)) * 100%);
  background: var(--n);
}
.next__rail i {
  position: absolute; top: 50%; left: calc(var(--x) * 100%);
  width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px;
  border: 1px solid var(--c-line-2); background: var(--c-bg);
  transform: rotate(45deg);
  transition: transform 0.7s var(--ease-out), background-color 0.6s var(--ease-out), border-color 0.6s var(--ease-out);
}
.next__rail i:first-of-type { margin-left: 0; }
.next__rail i:last-of-type { margin-left: -7px; }
.next__rail i.is-here { background: var(--dot); border-color: var(--dot); }
.next__rail i.is-next { border-color: var(--dot); }
.next__name {
  font-size: clamp(3.4rem, 12vw, 13.5rem);
  font-weight: 650;
  line-height: 0.82;
  letter-spacing: -0.06em;
  text-transform: uppercase;
  transition: color 0.8s var(--ease-out), transform 0.9s var(--ease-out);
}
.next__go {
  display: flex; align-items: center; justify-content: flex-end;
  width: clamp(72px, 8vw, 140px); height: clamp(20px, 2vw, 28px);
  color: var(--c-fg-2);
  transition: color 0.6s var(--ease-out);
}
.next__go::before {                                  /* the arrow's shaft, extends on hover */
  content: ""; flex: 1; height: 1px; margin-right: -2px; background: currentColor;
  transform-origin: right center; transform: scaleX(0.35);
  transition: transform 0.8s var(--ease-out);
}
.next__go svg { width: clamp(16px, 1.5vw, 22px); height: auto; flex: none; }
@media (hover: hover) {
  .next__link:hover .next__name { color: var(--n); transform: translateX(0.04em); }
  .next__link:hover .next__go { color: var(--n); }
  .next__link:hover .next__go::before { transform: scaleX(1); }
  .next__link:hover .next__rail i.is-next { background: var(--dot); transform: rotate(45deg) scale(1.3); }
}
@media (max-width: 699px) {
  .next__go { width: 56px; }
}

.next__bar {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px 32px;
  padding-block: 22px;
  border-top: 1px solid var(--c-line);
}
.next__home { display: inline-flex; align-items: center; gap: 12px; font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: var(--tracking-mono); text-transform: uppercase; color: var(--c-fg-2); }
.next__home svg { width: 10px; fill: var(--c-accent); }
.next__home:hover { color: var(--c-fg); }
.next__all { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.next__all a { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: var(--tracking-mono); text-transform: uppercase; color: var(--c-fg-3); }
.next__all a i { width: 6px; height: 6px; background: var(--dot); transform: rotate(45deg); }
.next__all a:hover, .next__all a[aria-current="page"] { color: var(--c-fg); }

/* Cyrillic runs wider */
:lang(ru) .d-hero__title, :lang(uk) .d-hero__title { font-size: clamp(2.2rem, 0.9rem + 4.6vw, 6.4rem); }
:lang(ru) .room__name, :lang(uk) .room__name { font-size: clamp(2.6rem, 6vw, 7.4rem); }
:lang(ru) .steps__name, :lang(uk) .steps__name { font-size: clamp(1.8rem, 3.4vw, 3.8rem); }

/* Entrance start states (only when JS + motion are on) */
.js.motion .d-hero__title { visibility: hidden; }
.js.motion [data-hero-fade] { opacity: 0; transform: translateY(16px); }
.case .btn--primary, .d-section .btn--primary, .menu__foot .btn--primary { --btn-bg: var(--dir); --btn-bd: var(--dir); }

/* Long Cyrillic words on narrow screens: hyphenate display type instead of overflowing */
.d-hero__grid > *, .d-head > *, .d-intro__grid > * { min-width: 0; }
@media (max-width: 899px) {
  :lang(ru) .d-hero__title, :lang(uk) .d-hero__title,
  :lang(ru) .d-h2, :lang(uk) .d-h2,
  :lang(ru) .d-intro__title, :lang(uk) .d-intro__title,
  :lang(ru) .room__name, :lang(uk) .room__name,
  :lang(ru) .steps__name, :lang(uk) .steps__name { hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word; }
}

/* ==========================================================================
   INLINE SHOWREEL (film, 3d) - right under the hero, plays on its own
   ========================================================================== */
.d-reel { position: relative; padding-top: clamp(8px, 2vw, 32px); padding-bottom: var(--space-l); }
.d-reel__frame {                         /* cinema 2.39:1 - trims the letterbox baked into the reels */
  position: relative;
  aspect-ratio: 2.39 / 1;
  overflow: hidden;
  background: #000;
  box-shadow: 0 80px 160px -60px color-mix(in srgb, var(--dir) 35%, transparent);
}
.d-reel__frame::before { content: ""; position: absolute; inset: 0 0 auto; height: 2px; background: var(--dir); z-index: 2; }
.d-reel__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.d-reel__ui {
  position: absolute; left: 0; right: 0; bottom: 0;
  z-index: 1;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
  padding: clamp(14px, 2vw, 28px);
  background: linear-gradient(180deg, transparent, rgb(0 0 0 / 0.55));
}
.d-reel__tag { font-size: var(--fs-xs); color: var(--c-fg-2); }
.d-reel__btns { display: flex; gap: 8px; }
.d-reel__btn {
  padding: 10px 16px;
  border: 1px solid rgb(255 255 255 / 0.22);
  border-radius: 999px;
  background: rgb(10 10 11 / 0.45);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: var(--tracking-mono);
  text-transform: uppercase;
  color: var(--c-fg);
  transition: background-color 0.4s var(--ease-out), border-color 0.4s var(--ease-out), color 0.4s var(--ease-out);
}
.d-reel__btn:hover, .d-reel__btn[aria-pressed="true"] { background: var(--dir); border-color: var(--dir); color: #0a0a0b; }
.d-reel__frame:fullscreen { aspect-ratio: auto; }
.d-reel__frame:fullscreen .d-reel__video { object-fit: contain; }
.d-reel__cap { display: grid; gap: 16px; margin-top: var(--space-s); }
.d-reel__title { font-size: var(--fs-lg); font-weight: 550; letter-spacing: -0.02em; line-height: 1.12; }
.d-reel__lead { color: var(--c-fg-2); max-width: 52ch; }
@media (min-width: 900px) {
  .d-reel__cap { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: start; }
  .d-reel__cap .d-label { grid-column: 1 / span 3; margin-top: 0.5em; }
  .d-reel__title { grid-column: 4 / span 4; }
  .d-reel__lead { grid-column: 8 / span 5; }
}
@media (max-width: 599px) {
  .d-reel__tag { display: none; }
  .d-reel__ui { justify-content: flex-end; padding: 10px; background: none; }
  .d-reel__btn { padding: 7px 11px; font-size: 9.5px; }
}

/* ==========================================================================
   10-SEAT JET (3D). Hero lounge, then the cabin plan held in place while
   the interior views pass beside it. Every frame at its native ratio.
   ========================================================================== */
.jet { --j-gap: clamp(12px, 1.4vw, 28px); display: grid; gap: var(--j-gap); margin-top: var(--space-m); }
.jet__f { position: relative; margin: 0; overflow: hidden; aspect-ratio: var(--ar); background: var(--c-surface); }
.jet__f picture { display: block; height: 100%; transition: transform 1.8s cubic-bezier(0.16, 1, 0.3, 1); }
.jet__f img { display: block; width: 100%; height: 100%; object-fit: cover; }
@media (hover: hover) and (pointer: fine) { .jet__f:hover picture { transform: scale(1.02); } }
.jet__split { display: flex; flex-direction: column; gap: var(--j-gap); }
.jet__plan .jet__f { background: #fff; width: 64%; }
.jet__views { display: grid; gap: var(--j-gap); }
.jet__pair { display: flex; gap: var(--j-gap); }
.jet__pair .jet__f { flex: var(--ar) 1 0; min-width: 0; }   /* widths follow ratio, heights match */
@media (min-width: 700px) {
  .jet__split { flex-direction: row; align-items: flex-start; margin-top: clamp(24px, 4vw, 96px); }
  .jet__plan { flex: none; width: min(26%, calc((100svh - 160px) * 0.4285)); position: sticky; top: 110px; }
  .jet__plan .jet__f { width: 100%; }
  .jet__views { flex: 1; min-width: 0; }
}

/* ==========================================================================
   ARCHITECTURE & INTERIORS (3D). One row height, row length set by its
   frames (--k), native ratios, a soft shared grade so warm interiors,
   daylight exteriors and the colourful kids room read as one set.
   ========================================================================== */
.space { --g: clamp(10px, 1.1vw, 22px); display: flex; flex-direction: column; gap: var(--g); margin-top: var(--space-m); }
.space__row { display: flex; gap: var(--g); }
.space__f { position: relative; margin: 0; overflow: hidden; aspect-ratio: var(--ar); background: var(--c-surface); }
.space__f picture { display: block; height: 100%; transition: transform 1.8s cubic-bezier(0.16, 1, 0.3, 1); }
.space__f img { display: block; width: 100%; height: 100%; object-fit: cover;
  filter: saturate(0.8) contrast(1.04) brightness(0.95) sepia(0.07); }
@media (hover: hover) and (pointer: fine) { .space__f:hover picture { transform: scale(1.02); } }

@media (min-width: 900px) {
  /* width = first-row frame width scaled by --k, plus this row's own gaps */
  .space__row { width: calc((100% - 2 * var(--g)) * var(--k) + (var(--n) - 1) * var(--g)); max-width: 100%; }
  .space__row:nth-child(2) { margin-left: auto; }
  .space__f { flex: var(--ar) 1 0; min-width: 0; }
}

/* Smaller screens: rows dissolve into one justified flow. Basis and growth
   both follow the ratio, so every frame on a line shares one height. */
@media (max-width: 899px) {
  .space { flex-direction: row; flex-wrap: wrap; --h0: clamp(120px, 26vw, 220px); }
  .space__row { display: contents; }
  .space__f { flex: var(--ar) 1 calc(var(--ar) * var(--h0)); }
}

/* ==========================================================================
   DESIGN (developers) - showcase on /developers/ and the /developers/design/ page.
   One project at a time on a stage: the primary screen and two details as
   layers at their own ratios (never cropped, never wider than their source),
   over a horizontal index of every project.
   Motion, three principles only:
   1. directional masks - the next work wipes in from the side the cursor moves to,
      layers staggered by depth; the outgoing work steps back and fades first;
   2. depth - layers lean toward the cursor by different amounts (design-stage.js, rAF);
   3. type - the title changes line by line inside a mask.
   ========================================================================== */
.dz .d-label::before, .dz-hero .d-label::before, .dz-what .d-label::before { background: var(--c-accent); }

.dzs { --g: clamp(10px, 1.1vw, 20px); --ease: cubic-bezier(0.19, 1, 0.22, 1); }
.dzs__stage { position: relative; aspect-ratio: 2.2; max-height: min(72svh, 800px); width: 100%; container-type: size; }
.dzs__frame { position: absolute; inset: 0; display: none; }
.dzs__frame.is-primed, .dzs__frame.is-active, .dzs__frame.is-leaving { display: block; }
.dzs__frame.is-active { z-index: 2; }
.dzs__frame.is-leaving { z-index: 1; }

.dzs__canvas {                                   /* the collage's own box, fitted into the stage */
  position: absolute; inset: 0; margin: auto; display: block;
  width: min(100cqw, calc(100cqh * 2.2)); aspect-ratio: 2.2;
}
.dzs__l {
  position: absolute; margin: 0; aspect-ratio: var(--ar); overflow: hidden; background: var(--c-bg-2);
  left: var(--x); top: var(--y); width: min(var(--w), var(--srcw));        /* collage cell from build.py */
  translate: var(--dx, 0) var(--dy, 0);                                    /* depth, from design-stage.js */
  clip-path: inset(0 0 0 100%); opacity: 1;
}
.dzs__l picture { display: block; width: 100%; height: 100%; }
.dzs__l img { display: block; width: 100%; height: 100%; object-fit: cover; scale: 1.06; }

/* Variant B (?dz=b) - the even editorial grid: lead column + justified rows, all edges aligned */
.dzs--b .dzs__l { left: var(--bx); top: var(--by); width: min(var(--bw), var(--srcw)); }

/* WAITING (not shown): parked at the far side with no transition, so a frame
   that has just left snaps back out of sight instead of re-playing a wipe. */
.dzs__frame:not(.is-active):not(.is-leaving) .dzs__l { transition: none; opacity: 0; }
.dzs__frame:not(.is-active):not(.is-leaving) .dzs__l img { transition: none; }
.dzs[data-dir="-1"] .dzs__frame:not(.is-active):not(.is-leaving) .dzs__l { clip-path: inset(0 100% 0 0); }
/* ENTERING / SHOWN: the wipe runs from the side the cursor travels to, one image after another */
.dzs__frame.is-active .dzs__l {
  clip-path: inset(0 0 0 0); opacity: 1;
  transition: clip-path 0.75s var(--ease) calc(min(var(--i), 6) * 0.045s), opacity 0s;
}
.dzs__frame.is-active .dzs__l img { scale: 1; transition: scale 1.1s var(--ease) calc(min(var(--i), 6) * 0.045s); }
/* LEAVING: holds its shape and fades, nothing else moves */
.dzs__frame.is-leaving .dzs__l { clip-path: inset(0 0 0 0); opacity: 0; transition: opacity 0.16s linear; }

/* the bar under the stage: count, title (masked), kind / year, the link on */
.dzs__bar {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: end; gap: 8px var(--gap);
  margin-top: clamp(20px, 2.2vw, 36px); padding-bottom: var(--space-xs); border-bottom: 1px solid var(--c-line);
}
.dzs__count { font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: var(--tracking-mono); color: var(--c-fg-3); padding-bottom: 0.5em; }
.dzs__cur { color: var(--c-accent); margin-right: 0.6em; }
.dzs__title {
  position: relative; height: 1.05em; overflow: hidden;
  font-size: clamp(1.75rem, 1rem + 2.6vw, 4.25rem); font-weight: 600; letter-spacing: -0.035em; line-height: 1.05; text-transform: uppercase;
}
.dzs__title { container-type: inline-size; }
.dzs__t {
  position: absolute; left: 0; bottom: 0; white-space: nowrap; translate: 0 105%; transition: translate 0.6s var(--ease);
  font-size: min(1em, calc(100cqi / (var(--len, 10) * 0.66)));   /* long names shrink to the line, short ones stay large */
}
.dzs[data-dir="-1"] .dzs__t:not(.is-active):not(.is-leaving) { translate: 0 -105%; }
.dzs__t.is-active { translate: 0 0; }
.dzs__t:not(.is-active):not(.is-leaving) { transition: none; }   /* parks out of sight without crossing the line */
.dzs__t.is-leaving { translate: 0 -105%; }
.dzs[data-dir="-1"] .dzs__t.is-leaving { translate: 0 105%; }
.dzs__meta { grid-column: 2; position: relative; height: 1.4em; overflow: hidden; }
.dzs__m { position: absolute; left: 0; top: 0; display: flex; gap: 0 0.9em; white-space: nowrap; opacity: 0; transition: opacity 0.3s ease;
  font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: var(--tracking-mono); text-transform: uppercase; color: var(--c-fg-3); }
.dzs__m span + span::before { content: "/"; margin-right: 0.9em; opacity: 0.5; }
.dzs__m.is-active { opacity: 1; transition-delay: 0.1s; }
.dzs__bar .dz__more { grid-column: 3; grid-row: 1 / span 2; align-self: end; margin: 0 0 0.3em; }

/* the index: every project in one quiet line, a yellow rule under the active one */
.dzs__index { position: relative; display: flex; flex-wrap: wrap; gap: 4px clamp(14px, 1.6vw, 30px); padding-top: clamp(14px, 1.4vw, 22px); }
.dzs__btn {
  position: relative; padding: 6px 0; font-size: clamp(0.8rem, 0.72rem + 0.22vw, 0.95rem); font-weight: 500; letter-spacing: 0.01em;
  color: var(--c-fg-3); transition: color 0.25s ease;
}
.dzs__btn:hover, .dzs__btn.is-active { color: var(--c-fg); }
.dzs__btn:focus-visible { outline: 1px solid var(--c-accent); outline-offset: 4px; }
.dzs__ind { position: absolute; left: 0; top: 0; height: 1px; width: 1px; background: var(--c-accent); pointer-events: none;
  transform-origin: left; transition: transform 0.55s var(--ease); }

.dz__more {
  display: inline-flex; align-items: center; gap: 12px; padding-bottom: 6px; white-space: nowrap;
  font-family: var(--font-mono); font-size: var(--fs-sm); letter-spacing: var(--tracking-mono); text-transform: uppercase;
  color: var(--c-fg); background: linear-gradient(var(--c-accent), var(--c-accent)) left bottom / 0% 1px no-repeat;
  transition: background-size 0.6s var(--ease-out), color 0.3s ease;
}
.dz__more .btn__arrow { width: 12px; height: 12px; transition: transform 0.4s var(--ease-out); }
.dz__more:hover { background-size: 100% 1px; color: var(--c-accent); }
.dz__more:hover .btn__arrow { transform: translateX(4px); }

/* phones and small tablets: a taller stage, primary on top, the two details below;
   the index becomes one swipeable line */
@media (max-width: 899px) {
  .dzs__stage { aspect-ratio: 0.8; max-height: none; }
  .dzs__canvas { width: min(100cqw, calc(100cqh * 0.8)); aspect-ratio: 0.8; }
  .dzs__l { left: var(--mx); top: var(--my); width: min(var(--mw), var(--srcw)); }
  .dzs--b .dzs__l { left: var(--bmx); top: var(--bmy); width: min(var(--bmw), var(--srcw)); }
  .dzs__bar { grid-template-columns: auto minmax(0, 1fr); }
  .dzs__bar .dz__more { grid-column: 1 / -1; grid-row: auto; justify-self: start; margin-top: 8px; }
  .dzs__index { flex-wrap: nowrap; overflow-x: auto; scroll-snap-type: x proximity; scroll-padding-inline: var(--pad); scrollbar-width: none; margin-inline: calc(var(--pad) * -1); padding-inline: var(--pad); }
  .dzs__index::-webkit-scrollbar { display: none; }
  .dzs__index li { flex: none; scroll-snap-align: start; }
}

/* ---------- /developers/design/ */
.dz-hero { padding-top: calc(var(--header-h) + clamp(56px, 9vw, 170px)); padding-bottom: var(--space-head); }
.dz-hero .d-crumbs { margin-bottom: var(--space-m); }
.dz-hero__title { margin-top: 22px; max-width: 15ch; font-size: var(--fs-2xl); font-weight: 600; letter-spacing: var(--tracking-display); line-height: var(--lh-tight); }
.dz-hero__lede { margin-top: 28px; max-width: 46ch; font-size: var(--fs-md); line-height: 1.55; color: var(--c-fg-2); }

.dz-what { border-top: 1px solid var(--c-line); padding-block: var(--space-m); }
.dz-what .container { display: grid; gap: 20px; }
.dz-what__list { display: flex; flex-wrap: wrap; row-gap: 10px; font-size: var(--fs-md); color: var(--c-fg-2); }
.dz-what__list li:not(:last-child)::after { content: "/"; margin-inline: 0.65em; color: var(--c-fg-3); opacity: 0.6; }
@media (min-width: 900px) {
  .dz-what .container { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); }
  .dz-what .d-label { grid-column: 1 / span 3; margin-top: 0.35em; }
  .dz-what__list { grid-column: 4 / span 9; }
}

.dz-cases { padding-block: var(--space-l) var(--space-head); }
.dz-cases .container { display: grid; gap: clamp(96px, 11vw, 220px); }
.dcase__head { display: grid; gap: 10px 16px; align-items: end; padding-top: 22px; margin-bottom: var(--space-s); border-top: 1px solid var(--c-line); }
.dcase__num { font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: var(--tracking-mono); color: var(--c-accent); }
.dcase__name { font-size: clamp(2.5rem, 1rem + 6.4vw, 9rem); font-weight: 600; letter-spacing: -0.05em; line-height: 0.9; }
.dcase__media { display: grid; gap: var(--gap); }
.dcase__f { position: relative; margin: 0; overflow: hidden; aspect-ratio: var(--ar); background: var(--c-surface); }
.dcase__f picture { display: block; height: 100%; transition: transform 1.8s var(--ease-out); }
.dcase__f img { display: block; width: 100%; height: 100%; object-fit: cover; }   /* box = frame ratio, so nothing is cut */
@media (hover: hover) and (pointer: fine) { .dcase__f:hover picture { transform: scale(1.02); } }
/* the lead frame never grows taller than the screen; alternate cases sit right */
.dcase__lead { width: min(100%, calc(86svh * var(--ar)), var(--srcw, 100%)); }   /* never wider than its source */
.dcase--alt .dcase__lead { justify-self: end; }
.dcase__row { display: flex; gap: var(--gap); }
.dcase__row .dcase__f { flex: var(--ar) 1 0; min-width: 0; }
.dcase__row { max-width: 100%; align-items: flex-start; }   /* a capped frame keeps its own height */
.dcase__row .dcase__f { max-width: var(--srcw, 100%); }
.dcase__row .dcase__f:only-child { flex: none; width: min(64%, calc(66svh * var(--ar))); margin-left: auto; }
.dcase--alt .dcase__row .dcase__f:only-child { margin-left: 0; }
.dz-note { margin-top: clamp(-80px, -5vw, -40px); font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: var(--tracking-mono); color: var(--c-fg-3); max-width: 60ch; }
@media (min-width: 900px) {
  .dcase__head { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); }
  .dcase__num { grid-column: 1 / span 1; align-self: start; padding-top: 0.6em; }
  .dcase__name { grid-column: 2 / span 8; }
  .dcase__meta { grid-column: 10 / span 3; justify-content: flex-end; padding-bottom: 0.6em; }
}
@media (max-width: 699px) {
  .dcase__row { flex-direction: column; }
  .dcase__row .dcase__f, .dcase__row .dcase__f:only-child { flex: none; width: 100%; margin-left: 0; }
}

/* Own products: external cards carry an arrow, "soon" cards are quiet and not clickable */
.product { position: relative; }
.product__go { position: absolute; top: clamp(20px, 2vw, 32px); right: clamp(20px, 2vw, 32px); width: 14px; height: 14px; color: var(--c-fg-2); transition: transform 0.5s var(--ease-out), color 0.5s var(--ease-out); }
a.product:hover .product__go, a.product:focus-visible .product__go { color: var(--dir); transform: translate(3px, -3px); }
.product--soon .product__tag { color: var(--c-fg-2); }
.product--off:hover { border-color: var(--c-line); background: none; }
@media (min-width: 900px) and (max-width: 1279px) { .products { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1280px) { .products { grid-template-columns: repeat(4, 1fr); } }
/* products as a list: one full-width row each, thin */
.products { grid-template-columns: 1fr !important; gap: 10px; }
.product { min-height: 0; gap: 6px; padding: 18px clamp(20px, 2vw, 32px); }
@media (min-width: 900px) {
  .product { grid-template-columns: 11rem 1fr; align-items: center; padding-right: 64px; }
  .product > div { display: grid; grid-template-columns: minmax(16rem, 1fr) 1.4fr; gap: var(--gap); align-items: baseline; }
  .product__go { top: 50%; margin-top: -7px; }
}

/* ==========================================================================
   FILM > IN ROTATION - released work, kept quiet: a typographic index near
   the end of the page. On a fine pointer the cover floats by the cursor
   (rotation.js); on phones each line carries a small cover. Every line opens
   YouTube in a new tab - no players on the page.
   ========================================================================== */
.rot__head { display: grid; gap: 14px 32px; align-items: end; margin-bottom: clamp(20px, 2.4vw, 36px); }
.rot__title { font-size: var(--fs-xl); font-weight: 600; line-height: 0.95; letter-spacing: -0.035em; text-transform: uppercase; }
.rot__sub { max-width: 46ch; color: var(--c-fg-2); font-size: var(--fs-sm); }
@media (min-width: 900px) {
  .rot__head { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .rot__head .d-label { grid-column: 1 / -1; }
  .rot__title { grid-column: 1 / span 6; }
  .rot__sub { grid-column: 8 / span 5; justify-self: end; text-align: right; }
}

.rot__list { border-top: 1px solid var(--c-line); }
.rot__row {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto 12px; align-items: center; gap: 20px;
  padding: clamp(14px, 1.4vw, 20px) 0; border-bottom: 1px solid var(--c-line);
  transition: opacity 0.45s var(--ease-out), padding 0.6s var(--ease-out);
}
.rot__row::after { content: ""; position: absolute; left: 0; bottom: -1px; height: 1px; width: 100%; background: var(--dir); transform: scaleX(0); transform-origin: left; transition: transform 0.8s var(--ease-out); }
.rot__thumb { display: none; }
.rot__name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--fs-md); line-height: 1.2; letter-spacing: -0.01em; }
.rot__name b { font-weight: 600; text-transform: uppercase; }
.rot__name span { color: var(--c-fg-2); transition: color 0.4s var(--ease-out); }
.rot__kind { font-size: var(--fs-xs); letter-spacing: var(--tracking-mono); text-transform: uppercase; color: var(--c-fg-3); white-space: nowrap; }
.rot__go { width: 12px; height: 12px; color: var(--c-fg-3); transition: transform 0.5s var(--ease-out), color 0.3s var(--ease-out); }
.rot__row:focus-visible { outline: 1px solid var(--dir); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) {
  .rot__list:hover .rot__row:not(:hover) { opacity: 0.32; }
  .rot__row:hover { padding-left: 14px; }
  .rot__row:hover::after { transform: scaleX(1); }
  .rot__row:hover .rot__name span { color: var(--c-fg); }
  .rot__row:hover .rot__go { transform: translate(3px, -3px); color: var(--dir); }
  .rot__row:hover .rot__kind { color: var(--dir); }
}

/* the floating cover */
.rot__peek {
  position: fixed; left: 0; top: 0; z-index: 30; pointer-events: none;
  width: clamp(240px, 24vw, 380px); aspect-ratio: 16 / 9; margin: calc(clamp(240px, 24vw, 380px) * -0.5625 - 18px) 0 0 28px;
  opacity: 0; transition: opacity 0.35s var(--ease-out);
  will-change: transform;
}
.rot.is-peek .rot__peek { opacity: 1; }
.rot__cover { position: absolute; inset: 0; overflow: hidden; opacity: 0; clip-path: inset(0 0 0 100%); box-shadow: 0 24px 60px rgb(0 0 0 / 0.5); transition: clip-path 0.6s var(--ease-out), opacity 0s linear 0.6s; }
.rot__cover.is-prev { opacity: 1; clip-path: inset(0); transition: none; z-index: 1; }
.rot__cover.is-active { opacity: 1; clip-path: inset(0); z-index: 2; transition: clip-path 0.6s var(--ease-out), opacity 0s; }
.rot__cover picture, .rot__cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
.rot__cover img { transform: scale(1.12); transition: transform 1.1s var(--ease-out); }
.rot__cover.is-active img { transform: scale(1); }
@media (hover: none), (pointer: coarse), (max-width: 899px) { .rot__peek { display: none; } }

/* phones and tablets: a small cover in each line */
@media (max-width: 899px) {
  .rot__row { grid-template-columns: 104px minmax(0, 1fr) 12px; column-gap: 14px; row-gap: 3px; }
  .rot__thumb { display: block; grid-row: span 2; aspect-ratio: 16 / 9; overflow: hidden; background: #050506; }
  .rot__thumb picture, .rot__thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
  .rot__name { white-space: normal; display: grid; gap: 2px; font-size: var(--fs-base); }
  .rot__kind { grid-column: 2; }
  .rot__go { grid-column: 3; grid-row: 1 / span 2; }
}
@media (prefers-reduced-motion: reduce) { .rot__row { transition: none; } .rot__row:hover { padding-left: 0; } }

/* Sound: the general partner under the label fact - a small label and the logo */
.d-partner { display: grid; gap: 12px; justify-items: start; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--c-line); }
.d-partner__label { font-size: var(--fs-xs); letter-spacing: var(--tracking-mono); text-transform: uppercase; color: var(--c-fg-3); }
.d-partner__logo { display: block; height: clamp(4.6rem, 9vw, 9.2rem); width: auto; opacity: 0.95; }   /* a little larger than "& Co." so its outline letters stay readable */
/* narrow phones: a long kind ("Plateforme de divertissement") shrinks instead of being cut */
@media (max-width: 420px) { .dzs__m { font-size: clamp(9px, 2.9vw, 11px); gap: 0 0.6em; } .dzs__m span + span::before { margin-right: 0.6em; } }
/* the cabin plan: upright next to the views on desktop, turned sideways
   (nose to the right) and full width on phones; tablets keep the upright layout */
.jet__plan .jet__f--h { display: none; }
@media (max-width: 699px) {
  .jet__plan .jet__f--v { display: none; }
  .jet__plan .jet__f--h { display: block; width: 100%; }
}

/* Sound rooms: a soft tint - slightly desaturated and a touch darker, full
   colour under the mouse or after a tap (tint.js); always a slow, even fade */
.room__media[data-component="tint"] img {
  filter: grayscale(0.82) brightness(0.96) contrast(0.96);
  transition: filter 1.1s cubic-bezier(0.22, 0.61, 0.36, 1);
}
@media (hover: hover) and (pointer: fine) {
  .room__media[data-component="tint"] figure:hover img { filter: none; }
}
.room__media[data-component="tint"] figure.is-color img { filter: none; }
@media (prefers-reduced-motion: reduce) { .room__media[data-component="tint"] img { transition: none; } }
