/* ============================================================
   GRUPO ZENIT — Corporate layer
   Extends assets/styles.css with the corporate components and the
   motion system (scroll-linked reveals, marquee, counters, page
   transitions). Loaded after styles.css on every page.
   ============================================================ */

:root {
  --ease-out:  cubic-bezier(.16, 1, .3, 1);     /* settle */
  --ease-io:   cubic-bezier(.65, 0, .35, 1);    /* symmetric */
  --dur-fast:  .32s;
  --dur:       .62s;
  --dur-slow:  1.1s;
}

/* ============================================================
   PAGE TRANSITION — fade the document in, fade it out on nav
   ============================================================ */
/* opacity only — never transform <body>: a transform on it turns the
   fixed nav and slide chrome into absolutely positioned elements */
@media (prefers-reduced-motion: no-preference) {
  body { animation: pageIn .5s ease both; }
  @keyframes pageIn { from { opacity: 0; } to { opacity: 1; } }
  html.is-leaving body { opacity: 0; transition: opacity .24s ease; animation: none; }
}

/* ============================================================
   NAV — scroll progress + link underline + refined shell
   ============================================================ */
.nav-progress {
  position: absolute; left: 0; bottom: -1px; height: 2px; width: 100%;
  transform: scaleX(0); transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--teal-2), var(--sage-2));
  opacity: 0; transition: opacity .45s var(--ease);
}
.nav.scrolled .nav-progress { opacity: 1; }

.nav-links a { position: relative; }
.nav-links a::after {
  content: ""; position: absolute; left: 11px; right: 11px; bottom: 5px; height: 1.5px;
  border-radius: 2px; background: currentColor; opacity: .8;
  transform: scaleX(0); transform-origin: 0 50%;
  transition: transform .5s var(--ease-out);
}
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }
.nav-links a.active::after { background: var(--teal-2); opacity: 1; }

/* ============================================================
   LANGUAGE SWITCH
   ============================================================ */
.lang-switch { display: inline-flex; align-items: center; padding: 3px; gap: 2px; border: 1px solid var(--line); border-radius: 100px; }
.lang-switch button {
  appearance: none; border: 0; cursor: pointer; background: transparent;
  font-family: var(--font); font-size: 12px; font-weight: 700; letter-spacing: .06em;
  color: var(--t-low); padding: 6px 11px; border-radius: 100px;
  transition: color .3s var(--ease), background .3s var(--ease);
}
.lang-switch button:hover { color: var(--t-hi); }
.lang-switch button.active { background: rgba(244,244,236,.12); color: var(--t-hi); }
@media (max-width: 1120px) { .lang-switch { order: -1; } }

/* ============================================================
   BREADCRUMBS — corporate wayfinding on inner pages
   ============================================================ */
.crumbs { display: flex; align-items: center; gap: 9px; font-size: 12.5px; color: var(--t-low); margin-bottom: 18px; flex-wrap: wrap; }
.crumbs a { transition: color .3s; }
.crumbs a:hover { color: var(--t-hi); }
.crumbs svg { width: 12px; height: 12px; opacity: .55; }
.crumbs b { color: var(--t-mid); font-weight: 500; }
.panel-light .crumbs { color: var(--t-ink-low); }
.panel-light .crumbs b { color: var(--t-ink-mid); }

/* ============================================================
   MOTION PRIMITIVES
   Driven by shared.js (adds .is-in when the element enters view).
   They work in both normal scroll and presentation-slides mode.
   ============================================================ */
@media (prefers-reduced-motion: no-preference) {
  .m-up   { opacity: 0; transform: translateY(24px); transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out); }
  .m-fade { opacity: 0; transition: opacity var(--dur) ease; }
  .m-line { transform: scaleX(0); transform-origin: 0 50%; transition: transform .9s var(--ease-out); }
  .m-up.is-in, .m-fade.is-in { opacity: 1; transform: none; }
  .m-line.is-in { transform: scaleX(1); }

  /* image reveal — the frame stays put, the photo settles into it */
  .m-media { overflow: hidden; }
  .m-media > img, .m-media > .m-media-in {
    transform: scale(1.14); opacity: 0;
    transition: transform var(--dur-slow) var(--ease-out), opacity .8s ease;
  }
  .m-media.is-in > img, .m-media.is-in > .m-media-in { transform: none; opacity: 1; }

  /* slow ambient drift for hero photography */
  .kb { animation: kenburns 22s var(--ease-io) infinite alternate; }
  @keyframes kenburns { from { transform: scale(1.04); } to { transform: scale(1.15); } }
}

/* stagger helper — set on a container, children animate in sequence */
.m-stagger > * { transition-delay: calc(var(--i, 0) * 70ms); }

/* ============================================================
   BRAND MARQUEE — the group's companies, running strip
   ============================================================ */
.marquee {
  position: relative; overflow: hidden; padding-block: 4px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.marquee-track { display: flex; align-items: center; gap: clamp(30px, 4.4vw, 68px); width: max-content; }
@media (prefers-reduced-motion: no-preference) {
  .marquee-track { animation: mq-run 46s linear infinite; }
  .marquee:hover .marquee-track { animation-play-state: paused; }
  @keyframes mq-run { to { transform: translateX(-50%); } }
}
.marquee-item { flex: none; display: grid; place-items: center; }
.marquee-item img {
  height: clamp(19px, 2.1vw, 27px); width: auto; max-width: 168px; object-fit: contain;
  filter: brightness(0) invert(1); opacity: .40;
  transition: opacity .45s var(--ease), filter .45s var(--ease);
}
.marquee-item:hover img { opacity: .96; }
/* portrait-format marks need more height to read at the same optical weight */
.marquee-item--tall img { height: clamp(30px, 3.4vw, 44px); }
.panel-light .marquee-item img { filter: brightness(0); opacity: .34; }
.panel-light .marquee-item:hover img { opacity: .8; }
.marquee-label {
  font-size: 11px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
  color: var(--t-low); margin-bottom: 18px;
}
.marquee-wrap { margin-bottom: clamp(30px, 4.4vw, 60px); padding-bottom: clamp(26px, 3.6vw, 46px); border-bottom: 1px solid var(--line); }
.panel-light .marquee-wrap { border-bottom-color: var(--line-ink); }
.panel-light .marquee-label { color: var(--t-ink-low); }

/* ============================================================
   HERO — editorial split with real photography
   ============================================================ */
.hero-shell { display: grid; grid-template-columns: minmax(0, 1.06fr) minmax(0, .94fr); gap: clamp(30px, 4.6vw, 74px); align-items: center; }
.hero-shell > * { min-width: 0; }

.hero-mosaic {
  display: grid; grid-template-columns: repeat(2, 1fr); grid-template-rows: repeat(3, 1fr);
  gap: 12px; aspect-ratio: 1 / 1.04;
}
.hm { position: relative; overflow: hidden; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--ink-2); }
.hm img { width: 100%; height: 100%; object-fit: cover; }
.hm::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(31,34,27,.06) 40%, rgba(31,34,27,.74) 100%); pointer-events: none; }
.hm figcaption {
  position: absolute; left: 14px; bottom: 12px; z-index: 2;
  font-size: 11.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--t-hi); text-shadow: 0 2px 14px rgba(0,0,0,.55);
}
.hm-a { grid-column: 1; grid-row: 1 / 3; }
.hm-b { grid-column: 2; grid-row: 1 / 2; }
.hm-c { grid-column: 2; grid-row: 2 / 4; }
.hm-d { grid-column: 1; grid-row: 3 / 4; }
@media (max-width: 980px) {
  .hero-shell { grid-template-columns: 1fr; }
  .hero-mosaic { aspect-ratio: 16 / 10; grid-template-rows: repeat(2, 1fr); grid-template-columns: repeat(3, 1fr); }
  .hm-a { grid-column: 1 / 2; grid-row: 1 / 3; }
  .hm-b { grid-column: 2; grid-row: 1; }
  .hm-c { grid-column: 3; grid-row: 1 / 3; }
  .hm-d { grid-column: 2; grid-row: 2; }
}
@media (max-width: 620px) { .hero-mosaic { display: none; } }

/* photographic hero backdrop for the division pages */
.svc-hero--photo { isolation: isolate; }
.svc-hero-photo { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.svc-hero-photo img { width: 100%; height: 100%; object-fit: cover; }

/* rotating hero backdrop — stacked frames cross-faded by shared.js */
[data-hero-slider] { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
[data-hero-slider] > img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity 1.5s var(--ease-io);
}
[data-hero-slider] > img.is-on { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  [data-hero-slider] > img { transition: none; }
}
/* stagger the ken-burns drift so the frames never move in lockstep */
[data-hero-slider] > img:nth-child(2) { animation-delay: -7s; }
[data-hero-slider] > img:nth-child(3) { animation-delay: -14s; }

/* progress pips for the hero slider */
.hero-pips { position: absolute; left: var(--gutter); bottom: clamp(20px, 3vh, 34px); z-index: 3; display: flex; gap: 8px; }
.hero-pips button {
  width: 26px; height: 3px; padding: 0; border: 0; border-radius: 3px; cursor: pointer;
  background: rgba(244,244,236,.28); transition: background .4s var(--ease), width .4s var(--ease);
}
.hero-pips button.active { background: var(--accent-2, var(--teal-2)); width: 40px; }
@media (max-width: 720px) { .hero-pips { display: none; } }
.svc-hero-photo::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(92deg, rgba(31,34,27,.96) 0%, rgba(31,34,27,.86) 46%, rgba(31,34,27,.52) 100%),
    linear-gradient(180deg, rgba(31,34,27,.62) 0%, rgba(31,34,27,.26) 38%, rgba(31,34,27,.90) 100%);
}
.svc-hero--photo .svc-hero-iso { opacity: .30; }
@media (max-width: 860px) {
  .svc-hero-photo::after { background: linear-gradient(180deg, rgba(31,34,27,.80) 0%, rgba(31,34,27,.84) 55%, rgba(31,34,27,.95) 100%); }
}

/* ============================================================
   STATS — animated counters
   ============================================================ */
.stat b, .rstat b { font-variant-numeric: tabular-nums; }
.stat { position: relative; transition: background .5s var(--ease); }
.stat::before {
  content: ""; position: absolute; left: 0; top: 0; height: 2px; width: 100%;
  background: var(--accent-2, var(--teal-2)); transform: scaleX(0); transform-origin: 0 50%;
  transition: transform .8s var(--ease-out);
}
.stat.is-in::before { transform: scaleX(1); }
.stat:hover { background: color-mix(in oklab, var(--teal) 10%, var(--ink-2)); }

/* ============================================================
   TRUST BAND — capabilities / credentials, corporate proof
   ============================================================ */
.trust { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; background: var(--ink-2); }
.trust-item { padding: clamp(20px, 2.4vw, 28px); border-left: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.trust-item:first-child { border-left: 0; }
.trust-item .ti-ico { width: 34px; height: 34px; color: var(--accent-2, var(--teal-2)); }
.trust-item .ti-ico svg { width: 100%; height: 100%; }
.trust-item b { font-family: var(--font-display); font-size: 16.5px; font-weight: 700; }
.trust-item span { color: var(--t-mid); font-size: 14px; line-height: 1.45; }
.panel-light .trust { background: var(--paper-2); border-color: var(--line-ink); }
.panel-light .trust-item { border-left-color: var(--line-ink); }
.panel-light .trust-item span { color: var(--t-ink-mid); }
@media (max-width: 720px) { .trust-item { border-left: 0; border-top: 1px solid var(--line); } .trust-item:first-child { border-top: 0; } }

/* ============================================================
   PROCESS STEPS — how the group works
   ============================================================ */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.step {
  position: relative; overflow: hidden; padding: clamp(20px, 2.4vw, 28px);
  border: 1px solid var(--line); border-radius: var(--r-md); background: var(--ink-2);
  transition: transform .5s var(--ease-out), border-color .5s, background .5s;
}
.step::before {
  content: ""; position: absolute; left: 0; top: 0; height: 2px; width: 100%;
  background: var(--accent-2, var(--teal-2)); transform: scaleX(0); transform-origin: 0 50%;
  transition: transform .9s var(--ease-out);
}
.step.is-in::before { transform: scaleX(1); }
.step:hover { transform: translateY(-5px); border-color: color-mix(in oklab, var(--teal) 50%, transparent); }
.step .sn { font-family: var(--font-display); font-weight: 700; font-size: 12.5px; letter-spacing: .16em; color: var(--accent-2, var(--teal-2)); }
.step h4 { font-size: 19px; margin: 14px 0 8px; }
.step p { color: var(--t-mid); font-size: 14.5px; line-height: 1.5; }
.panel-light .step { background: var(--paper-2); border-color: var(--line-ink); }
.panel-light .step p { color: var(--t-ink-mid); }
.panel-light .step .sn { color: var(--teal); }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .steps { grid-template-columns: 1fr; } }

/* ============================================================
   DIVISION CARDS — real photography behind the brand mark
   ============================================================ */
.dcard .dph {
  position: absolute; inset: 0; z-index: -3;
  background-size: cover; background-position: center;
  opacity: .30; transform: scale(1.04);
  filter: grayscale(.6) contrast(1.04);
  transition: transform 1s var(--ease-out), opacity .55s var(--ease), filter .55s var(--ease);
}
.dcard:hover .dph { opacity: .46; transform: scale(1.12); filter: grayscale(0) contrast(1.02); }
.dcard.has-photo .wm { opacity: .30; }
.dcard.has-photo:hover .wm { opacity: .42; }

/* ============================================================
   EDITORIAL PHOTO STRIP — captioned tiles, reusable
   ============================================================ */
.pstrip { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.pshot { position: relative; overflow: hidden; margin: 0; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--ink-2); aspect-ratio: 4 / 3; }
.pshot img { width: 100%; height: 100%; object-fit: cover; transition: transform .85s var(--ease-out); }
.pshot:hover img { transform: scale(1.07); }
.pshot::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 46%, rgba(31,34,27,.82) 100%); pointer-events: none; }
.pshot figcaption {
  position: absolute; left: 15px; right: 15px; bottom: 13px; z-index: 1;
  font-size: 12.5px; font-weight: 600; letter-spacing: .02em; color: var(--t-hi);
  text-shadow: 0 2px 16px rgba(0,0,0,.5);
}
.panel-light .pshot { border-color: var(--line-ink); }

/* ============================================================
   INLINE RESULTS BAND
   The stats used to occupy a whole slide on their own. Dropped
   inside a content section they read as evidence for that section
   instead of as a standalone screen.
   ============================================================ */
.results-inline {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden;
  background: var(--ink-2); margin-top: clamp(20px, 3vw, 40px);
}
.results-inline .rstat { padding: clamp(20px, 2.6vw, 34px) clamp(18px, 2.2vw, 28px); border-left: 1px solid var(--line); border-top: 0; }
.results-inline .rstat:first-child { border-left: 0; }
.results-inline .rstat b { font-size: clamp(30px, 3.6vw, 50px); }
.results-inline .rstat span { font-size: 13.5px; margin-top: 9px; }
.panel-light .results-inline { background: var(--paper-2); border-color: var(--line-ink); }
.panel-light .results-inline .rstat { border-left-color: var(--line-ink); }
.panel-light .results-inline .rstat b { color: var(--t-ink-hi); }
.panel-light .results-inline .rstat span { color: var(--t-ink-mid); }
@media (max-width: 680px) {
  .results-inline { grid-template-columns: repeat(2, 1fr); }
  .results-inline .rstat { border-top: 1px solid var(--line); }
  .results-inline .rstat:nth-child(-n+2) { border-top: 0; }
  .results-inline .rstat:nth-child(odd) { border-left: 0; }
}

/* ============================================================
   CLOSING SLIDE — statement + call to action on one screen
   ============================================================ */
.closing-stack { display: grid; gap: clamp(22px, 3.2vw, 44px); }
.closing-stack .quote p { max-width: 24ch; }
.closing-stack .cta-band { padding: clamp(32px, 4.6vw, 64px); }
@media (min-width: 861px) {
  html.slides .closing-stack { gap: clamp(16px, 2.6vh, 40px); }
  html.slides .closing-stack .quote p { font-size: clamp(20px, 3.6vh, 44px); }
  html.slides .closing-stack .quote .by { margin-top: clamp(10px, 1.6vh, 22px); }
  html.slides .closing-stack .cta-band { padding: clamp(20px, 3vh, 56px); }
  html.slides .results-inline .rstat { padding: clamp(13px, 2.2vh, 34px) clamp(16px, 2vw, 28px); }
  html.slides .results-inline .rstat b { font-size: clamp(24px, 4.4vh, 50px); }
  html.slides .results-inline .rstat span { margin-top: 6px; }
}

/* ============================================================
   BUSINESS UNIT SLIDE — one screen per company in a division
   ============================================================ */
.unit { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr); gap: clamp(28px, 4.4vw, 72px); align-items: center; }
.unit.flip .unit-media { order: -1; }
.unit-index { font-family: var(--font-display); font-weight: 700; font-size: 12.5px; letter-spacing: .18em; color: var(--t-low); }
.unit h2 { font-size: clamp(30px, 4.2vw, 58px); letter-spacing: -.03em; line-height: 1; margin-top: 14px; }
.unit .lead { margin-top: clamp(14px, 1.8vw, 22px); max-width: 46ch; }
.unit-caps { display: grid; margin-top: clamp(18px, 2.4vw, 30px); border-top: 1px solid var(--line); }
.unit-cap { display: grid; grid-template-columns: 24px 1fr; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.unit-cap b { font-family: var(--font-display); font-weight: 700; font-size: 12.5px; color: var(--accent-2, var(--teal-2)); line-height: 1.7; }
.unit-cap span { color: var(--t-mid); font-size: 15px; line-height: 1.5; }
.panel-light .unit-caps, .panel-light .unit-cap { border-color: var(--line-ink); }
.panel-light .unit-cap span { color: var(--t-ink-mid); }
.panel-light .unit-cap b { color: var(--teal); }
.panel-light .unit-index { color: var(--t-ink-low); }

.unit-media { position: relative; overflow: hidden; border-radius: var(--r-lg); border: 1px solid var(--line); aspect-ratio: 4 / 3.3; background: var(--ink-2); }
/* :not(.unit-logo) — the overlaid mark is also a direct child and must
   keep its own intrinsic size, not stretch to fill the frame */
.unit-media > img:not(.unit-logo) { width: 100%; height: 100%; object-fit: cover; }
.unit-media.media-geo svg { width: 52%; }
.unit-logo {
  position: absolute; left: 18px; top: 16px; z-index: 2;
  height: clamp(18px, 1.7vw, 25px); width: auto; max-width: 48%;
  object-fit: contain; object-position: left center;
  box-sizing: content-box; padding: 9px 13px; border-radius: 100px;
  background: rgba(244,244,236,.94); backdrop-filter: blur(10px) saturate(140%);
  box-shadow: 0 10px 30px -16px rgba(0,0,0,.8);
}
.panel-light .unit-media { border-color: var(--line-ink); }
@media (max-width: 900px) { .unit { grid-template-columns: 1fr; } .unit.flip .unit-media { order: 0; } }
@media (min-width: 861px) {
  html.slides .unit { gap: clamp(22px, 3.6vw, 64px); }
  html.slides .unit h2 { font-size: clamp(24px, 5.2vh, 56px); margin-top: clamp(8px, 1.4vh, 14px); }
  html.slides .unit .lead { margin-top: clamp(10px, 1.8vh, 22px); font-size: clamp(15px, 2vh, 20px); }
  html.slides .unit-caps { margin-top: clamp(12px, 2vh, 30px); }
  html.slides .unit-cap { padding-block: clamp(8px, 1.4vh, 13px); }
  html.slides .unit-cap span { font-size: clamp(13.5px, 1.9vh, 15px); }
  html.slides .unit-media { aspect-ratio: auto; height: clamp(220px, 56vh, 560px); }
}

/* ============================================================
   TESTIMONIAL / STATEMENT with portrait
   ============================================================ */
.testi { display: grid; grid-template-columns: minmax(0, .38fr) minmax(0, 1fr); gap: clamp(26px, 4vw, 60px); align-items: center; }
.testi-photo { position: relative; overflow: hidden; border-radius: var(--r-lg); border: 1px solid var(--line); aspect-ratio: 4 / 5; background: var(--ink-2); }
.testi-photo img { width: 100%; height: 100%; object-fit: cover; }
.testi q { display: block; quotes: none; font-family: var(--font-display); font-weight: 600; font-size: clamp(22px, 2.9vw, 40px); line-height: 1.14; letter-spacing: -.025em; text-wrap: pretty; }
.testi .by { margin-top: 22px; color: var(--accent-2, var(--teal-2)); font-weight: 600; font-size: 14.5px; letter-spacing: .03em; }
.panel-light .testi-photo { border-color: var(--line-ink); }
.panel-light .testi .by { color: var(--teal); }
@media (max-width: 820px) { .testi { grid-template-columns: 1fr; } .testi-photo { aspect-ratio: 16 / 10; } }

/* ============================================================
   BUTTONS — light sweep on the primary action
   ============================================================ */
.btn-primary { position: relative; overflow: hidden; }
.btn-primary::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 32%, rgba(244,244,236,.26) 50%, transparent 68%);
  transform: translateX(-130%);
}
@media (prefers-reduced-motion: no-preference) {
  .btn-primary:hover::before { transition: transform .85s var(--ease-out); transform: translateX(130%); }
}
.btn-primary > * { position: relative; }

/* ============================================================
   PRESENTATION-MODE COMPACTION for the new components
   Every top-level <section> is a viewport-tall slide, so the
   corporate blocks shrink with viewport height like the rest.
   ============================================================ */
@media (min-width: 861px) {
  html.slides .hero-shell { gap: clamp(22px, 3.4vw, 62px); }
  html.slides .hero-mosaic { aspect-ratio: auto; height: clamp(280px, 60vh, 640px); gap: clamp(8px, 1vh, 12px); }
  html.slides .marquee-label { margin-bottom: clamp(8px, 1.4vh, 18px); }
  html.slides .steps { gap: clamp(9px, 1.2vw, 14px); margin-top: clamp(16px, 2.4vh, 44px); }
  html.slides .step { padding: clamp(13px, 2vh, 28px); }
  html.slides .step h4 { font-size: clamp(16px, 2vh, 19px); margin: clamp(8px, 1.4vh, 14px) 0 6px; }
  html.slides .step p { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  html.slides .trust-item { padding: clamp(13px, 2vh, 28px); }
  html.slides .pstrip { gap: clamp(8px, 1.1vw, 12px); margin-top: clamp(14px, 2.2vh, 38px); }
  html.slides .pshot { aspect-ratio: auto; height: clamp(120px, 24vh, 260px); }
  html.slides .testi-photo { aspect-ratio: auto; height: clamp(200px, 46vh, 460px); }
  html.slides .testi q { font-size: clamp(19px, 3.4vh, 40px); }
}

/* presentation mode neutralises .reveal — keep the motion primitives
   alive there, they are observed independently by shared.js */
html.slides .m-up,
html.slides .m-fade,
html.slides .m-media > img,
html.slides .m-line { /* no override: shared.js drives .is-in per element */ }

@media (prefers-reduced-motion: reduce) {
  .m-up, .m-fade, .m-media > img, .m-media > .m-media-in { opacity: 1 !important; transform: none !important; }
  .m-line { transform: none !important; }
  .marquee-track { animation: none !important; }
}
