/* ==========================================================================
   OREGON — site.css
   Layout / type / components for the 12-slide tender-credibility deck.
   Mobile-first (375px baseline), scaling up via min-width breakpoints.
   Transforms & opacity only for animated properties — no layout thrash.
   ========================================================================== */

/* ---------------------------------------------------------------------- */
/* Reset                                                                   */
/* ---------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html {
  background: var(--ink);
  scroll-behavior: auto; /* JS drives smooth scroll deliberately; avoid double-smoothing */
}
body {
  background: var(--ink);
  color: var(--offwhite);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p, figure { margin: 0; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

/* ---------------------------------------------------------------------- */
/* Scroll-snap deck root                                                   */
/* proximity on desktop (gentle), mandatory feel on mobile (§3-B)          */
/* ---------------------------------------------------------------------- */
.deck {
  scroll-snap-type: y proximity;
}
@media (max-width: 640px) {
  .deck { scroll-snap-type: y mandatory; }
}
.reduced-motion .deck {
  scroll-snap-type: y proximity; /* keep framing, drop the motion, not the snap */
}

/* ---------------------------------------------------------------------- */
/* Slide base                                                              */
/* min-height (not height) so §3-A/C/D pinned sections can grow taller     */
/* than 100svh later without a CSS change (see js/deck.js data-pin skip).  */
/* ---------------------------------------------------------------------- */
.slide {
  position: relative;
  min-height: 100svh;
  width: 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  display: flex;
  flex-direction: column;
  justify-content: center;
  /* `safe center`: when a slide's content is taller than the viewport
     (e.g. the product grid at 1440×900) plain centring spills it
     equally above and below, pushing the head up under the fixed logo.
     `safe` falls back to start-alignment in that case; browsers without
     the keyword keep the plain `center` above. */
  justify-content: safe center;
  padding: var(--space-6) var(--margin);
  /* P8: never let a slide's content run up under the fixed logo. */
  padding-top: max(var(--space-6), var(--chrome-top));
  overflow: hidden;
}
/* P9 item C (Tan, verbatim: "It looks like the font is behind the filter
   when it should be white and bright"): the deck used to dim the WHOLE
   slide (opacity 0.6 + scale) whenever it left its `top 40%…bottom 40%`
   active window. With `scroll-snap-type: y proximity` the user often
   rests slightly off the snap point and reads copy at 60% opacity. Type
   is never dimmed now — `.is-dimmed` only darkens the photography behind
   it (every real photo on the site sits in a `.media img/video`
   wrapper), and only that image gets the transition/will-change cost.
   The class itself keeps being toggled by js/deck.js for dot/keyboard
   active-state tracking; nothing else keys off it. */
.slide.is-dimmed .media img,
.slide.is-dimmed .media video {
  filter: brightness(0.8);
}
.reduced-motion .slide.is-dimmed .media img,
.reduced-motion .slide.is-dimmed .media video {
  filter: none;
}
.slide--panel { background: var(--panel); }
.slide--ink { background: var(--ink); }

/* Stub sections future phases will pin — must tolerate > 100svh content. */
.slide[data-pin="true"] {
  min-height: 100svh;
}

/* ---------------------------------------------------------------------- */
/* Grid                                                                    */
/* ---------------------------------------------------------------------- */
.grid {
  display: grid;
  grid-template-columns: repeat(var(--grid-columns), 1fr);
  gap: var(--gutter);
  width: 100%;
}
.slide__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 90rem;
  margin: 0 auto;
}

/* ---------------------------------------------------------------------- */
/* Typography                                                              */
/* ---------------------------------------------------------------------- */
.eyebrow {
  font-family: var(--font-display);
  font-variation-settings: "wdth" var(--wdth-label);
  font-size: var(--fs-eyebrow);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--steel);
}
.display {
  font-family: var(--font-display);
  font-variation-settings: "wdth" var(--wdth-display);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--offwhite);
}
.display--hero { font-size: var(--fs-hero); }
.display--h1 { font-size: var(--fs-h1); }
.display--h2 { font-size: var(--fs-h2); }
/* P8: on phones the type floors can't always fit the longest expanded
   display words inside the margins ("ENGINEERED" ≈ 8.6em at wdth 125,
   "ARCHITECTURAL" ≈ 11em, "CONTRACTOR." ≈ 10em) — the slide's
   overflow:hidden would clip the last letters. Cap by viewport width
   so the widest word always fits; min() leaves the token untouched
   wherever it already fits. */
@media (max-width: 640px) {
  .display--h1 { font-size: min(var(--fs-h1), 10vw); }
  .display--h2 { font-size: min(var(--fs-h2), 7.8vw); }
}

.lede {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  color: var(--offwhite-60);
  max-width: 38em;
}
.location {
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  color: var(--steel);
  letter-spacing: 0.04em;
}

/* Mono spec-line — the signature device. One reusable class, used
   everywhere numbers appear: area · scope · architect · consultant · year. */
.spec-line {
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  color: var(--steel);
  letter-spacing: 0.01em;
  line-height: 1.6;
}
/* P8: 0.9rem/1.05rem floor rendered ~16.8px at 1920 — under the 18px type
   floor (GOAL.md P8 item 2). Raised so it clears 18px at every width down
   to mobile, while staying visibly smaller than the display headline above it. */
.spec-line--lg { font-size: clamp(1.15rem, 0.5vw + 0.85rem, 1.5rem); color: var(--offwhite-60); }
.spec-line em { color: var(--accent); font-style: normal; }
/* A short line (facts not yet confirmed by the client) still reads as a
   deliberate design choice, not a broken/empty one. */
.spec-line--pending {
  font-style: italic;
  color: var(--steel);
  opacity: 0.85;
}

/* ---------------------------------------------------------------------- */
/* Hairline rule — draws in on slide entry (§3-F)                          */
/* ---------------------------------------------------------------------- */
.hr {
  height: var(--rule);
  width: 100%;
  background: var(--steel-35);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.9s var(--ease-out);
}
.hr.is-drawn { transform: scaleX(1); }
.reduced-motion .hr { transform: scaleX(1); transition: none; }

/* ---------------------------------------------------------------------- */
/* Entrance animation hooks (rise + fade, driven by js/deck.js)            */
/* ---------------------------------------------------------------------- */
[data-animate] {
  opacity: 0;
  transform: translateY(40px);
}
.reduced-motion [data-animate] {
  opacity: 1;
  transform: none;
}
/* Static (non-deck-animated) stub sections: always visible. */
[data-pin="true"] [data-animate] {
  opacity: 1;
  transform: none;
}

/* ---------------------------------------------------------------------- */
/* Media / image placeholders (".ph")                                     */
/* Every <img>/<video> sits in a .media.ph wrapper. Until the asset pipe   */
/* lands a real file, onerror flips .is-missing and the placeholder shows. */
/* ---------------------------------------------------------------------- */
.media {
  position: relative;
  overflow: hidden;
  width: 100%;
  background: var(--panel);
}
.media.ph {
  background: linear-gradient(135deg, #1c1e22 0%, #23262b 45%, #1a1c20 100%);
  border: 1px solid var(--steel-20);
}
.media.ph::after {
  content: attr(data-file);
  position: absolute;
  left: 0.75rem;
  bottom: 0.75rem;
  font-family: var(--font-mono);
  font-size: var(--fs-small); /* P8: 12px floor fixed — nothing under 18px at 1920 */
  color: var(--steel);
  letter-spacing: 0.02em;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-fast) ease;
}
.media.ph.is-missing::after { opacity: 0.85; }
.media.ph.is-missing img,
.media.ph.is-missing video { opacity: 0; }
.media img,
.media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity var(--dur-fast) ease, filter var(--dur-med) var(--ease-out);
}
.media--16-9 { aspect-ratio: 16 / 9; }
.media--3-2 { aspect-ratio: 3 / 2; }
.media--cover { position: absolute; inset: 0; width: 100%; height: 100%; }
.media--cover img,
.media--cover video { position: absolute; inset: 0; }

.scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, var(--ink-70) 0%, rgba(14,15,17,0.35) 35%, var(--ink-85) 100%);
  pointer-events: none;
}

/* ---------------------------------------------------------------------- */
/* Global chrome — wordmark + progress dots + skip link                   */
/* ---------------------------------------------------------------------- */
/* P8: real logo replaces the type-set "OREGON" wordmark (GOAL.md P8 item
   "this is the logo. Use the real logo on the site."). Source raster is
   360x174 — capped well under that so it's never upscaled. A drop-shadow
   (not the old text-shadow, which only applied to text) keeps the mark's
   teal wordmark legible over the bright hero sky and any photograph. */
.logo {
  position: fixed;
  top: var(--space-3);
  left: var(--margin);
  z-index: 50;
  width: 170px;
  filter: drop-shadow(0 1px 3px rgba(14, 15, 17, 0.6)) drop-shadow(0 2px 16px rgba(14, 15, 17, 0.45));
}
.logo img {
  display: block;
  width: 100%;
  height: auto;
}
@media (max-width: 640px) {
  .logo { width: 104px; }
  :root { --chrome-top: calc(var(--space-3) + 50px + 0.75rem); }
}

.progress-dots {
  position: fixed;
  right: var(--space-3);
  top: 50%;
  transform: translateY(-50%);
  z-index: 50;
  display: none;
  flex-direction: column;
  gap: 0.65rem;
}
@media (min-width: 900px) {
  .progress-dots { display: flex; }
}
.progress-dots__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--steel-35);
  transition: background var(--dur-fast) ease, transform var(--dur-fast) ease;
}
.progress-dots__dot:hover { background: var(--steel); }
.progress-dots__dot.is-active {
  background: var(--accent);
  transform: scale(1.4);
}

.skip-link {
  position: fixed;
  left: var(--space-2);
  /* P8: --fs-small's raised type floor made this element taller (padding
     scales with its own em-based font-size), so the old -3rem hidden
     offset no longer cleared its box — a sliver of the off-white
     background was bleeding into the top-left corner of every slide.
     -6rem clears the tallest case (1.35rem font, 1.5 line-height, 0.6em
     vertical padding ≈ 58px) with margin to spare. */
  top: -6rem;
  z-index: 100;
  background: var(--offwhite);
  color: var(--ink);
  padding: 0.6em 1em;
  font-family: var(--font-mono);
  font-size: var(--fs-small);
  transition: top var(--dur-fast) ease;
}
.skip-link:focus { top: var(--space-2); }

/* ---------------------------------------------------------------------- */
/* Scroll cue — thin animated line, not a bouncing arrow (§3-F)            */
/* ---------------------------------------------------------------------- */
.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: var(--space-4);
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}
.scroll-cue__label {
  font-family: var(--font-mono);
  font-size: var(--fs-small); /* P8: 11px floor fixed — nothing under 18px at 1920 */
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--steel);
}
.scroll-cue__line {
  width: 1px;
  height: 40px;
  background: var(--steel-20);
  position: relative;
  overflow: hidden;
}
.scroll-cue__line::after {
  content: "";
  position: absolute;
  left: 0;
  top: -100%;
  width: 100%;
  height: 100%;
  background: var(--offwhite);
  animation: cue-run 1.8s ease-in-out infinite;
}
@keyframes cue-run {
  0% { top: -100%; }
  60% { top: 100%; }
  100% { top: 100%; }
}
.reduced-motion .scroll-cue__line::after { animation: none; top: 0; }

/* ==========================================================================
   SLIDE 1 — HERO  (data-phase="P3" — knockout sequence built later)
   ========================================================================== */
.hero {
  padding: 0;
  justify-content: flex-end;
  background: var(--ink);
}
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__content {
  position: relative;
  z-index: 2;
  padding: var(--space-6) var(--margin);
  width: 100%;
  display: flex;
}
/* Golden-hour still: tower left-of-centre, sky to the right — the
   headline sits over sky, right-aligned, per client direction. */
.hero__content .slide__inner {
  margin-left: auto;
  max-width: 36rem;
  text-align: right;
}
.hero__headline { display: flex; flex-direction: column; align-items: flex-end; gap: 0.1em; }
.hero__sub {
  margin-top: var(--space-3);
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  color: var(--steel);
  max-width: 30em;
}

/* P5 fix: `.hero__content`'s bottom padding pins the sub-line's own
   bottom edge a fixed distance above the hero's bottom edge, regardless
   of how many lines it wraps to — but the fixed-position `.scroll-cue`
   (bottom offset + its own label/line height ≈ 105px) is taller than
   that 96px clearance everywhere. On desktop this never reads as a
   collision because the sub-line is short and right-aligned while the
   cue sits centred, so the two don't share any horizontal space. Below
   ~768px the sub-line's 30em max-width exceeds the available column and
   it wraps to fill nearly the full width instead, putting its last line
   directly behind the centred scroll cue — confirmed overlapping at
   320/375/390px. Mobile-only: give the content more headroom above the
   cue; this shifts the whole headline+sub block up slightly but keeps
   the same right-aligned, over-the-sky composition the design calls for. */
@media (max-width: 767px) {
  .hero__content {
    padding-bottom: 9.5rem;
  }
}

/* Low-quality placeholder behind the hero still — no flash before the
   full image decodes. Sized up slightly to hide its own soft edges. */
.hero__lqip {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url("../assets/img/hero-tower-blur.webp");
  background-size: cover;
  background-position: center;
  transform: scale(1.08);
}
.hero__media picture { display: contents; }
.hero__media .media--cover img { position: absolute; inset: 0; z-index: 1; }

/* Ken Burns drift on the hero still (no video in this build — §3-A's
   full pinned knockout sequence is a later phase; this keeps the hero
   from feeling static in the meantime). */
.hero__still {
  animation: hero-ken-burns 18s ease-in-out infinite alternate;
  transform-origin: 60% 50%;
}
@keyframes hero-ken-burns {
  from { transform: scale(1); }
  to { transform: scale(1.06); }
}
.reduced-motion .hero__still { animation: none; }

/* ==========================================================================
   SLIDE 2 — SCALE (stat bar)
   ========================================================================== */
.stats {
  background: var(--ink);
}
.stats__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-5) var(--gutter);
  padding-top: var(--space-4);
  padding-bottom: var(--space-4);
}
@media (min-width: 720px) {
  .stats__grid { grid-template-columns: repeat(4, 1fr); }
}
.stat__value {
  font-family: var(--font-mono);
  font-size: clamp(1.6rem, 3vw + 1rem, 3.25rem);
  color: var(--offwhite);
  letter-spacing: -0.01em;
}
.stat__label {
  margin-top: 0.5rem;
  font-family: var(--font-body);
  font-size: var(--fs-small);
  color: var(--steel);
}
.stats__footnote {
  margin-top: var(--space-4);
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  color: var(--steel);
}

/* ==========================================================================
   SLIDES 3–7 — FLAGSHIP PROJECTS
   ========================================================================== */
.project {
  padding: 0;
  justify-content: flex-end;
}
.project__media { position: absolute; inset: 0; z-index: 0; }
.project__content {
  position: relative;
  z-index: 2;
  padding: var(--space-6) var(--margin);
}
.project__location { margin-bottom: var(--space-1); }
.project__spec { margin-top: var(--space-2); }

/* ==========================================================================
   SLIDE 8 — PRODUCTS (data-phase="P4b" — scrub carousel built later)
   Static grid for now: real copy, no scrub interaction.
   ========================================================================== */
.products { background: var(--panel); }
.products__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
  margin-top: var(--space-4);
}
@media (min-width: 640px) {
  .products__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1100px) {
  .products__grid { grid-template-columns: repeat(4, 1fr); }
}
.product-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.product-card__title {
  font-family: var(--font-display);
  font-variation-settings: "wdth" var(--wdth-label);
  font-size: var(--fs-body); /* P8: 1.05rem (16.8px) floor fixed — overridden by products.css anyway, kept in sync */
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.product-card__promise {
  font-size: var(--fs-small);
  color: var(--offwhite-60);
}
.product-card__spec { color: var(--steel); }

/* ==========================================================================
   SLIDE 9 — CRAFT (macro material section)
   ========================================================================== */
.craft { background: var(--ink); }
.craft__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--gutter);
  margin-top: var(--space-4);
}
@media (min-width: 900px) {
  .craft__grid { grid-template-columns: repeat(4, 1fr); }
}
.craft__claims {
  margin-top: var(--space-5);
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
}
@media (min-width: 720px) {
  .craft__claims { grid-template-columns: repeat(3, 1fr); }
}
.claim__mono {
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  /* P5 contrast fix: --accent measures ~4.37:1 on --ink here (13px mono
     text, flat ground) — under WCAG AA's 4.5:1 for normal text. See
     --accent-text in tokens.css. */
  color: var(--accent-text);
  margin-bottom: 0.4rem;
}
.claim__text { color: var(--offwhite-60); font-size: var(--fs-small); }

/* ==========================================================================
   SLIDE 10 — HOW WE BUILD (data-phase="P4d" — pinned card stack built later)
   Static ordered list for now: real copy, no stack/pin interaction.
   ========================================================================== */
.build { background: var(--panel); }
.build__layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}
@media (min-width: 900px) {
  .build__layout { grid-template-columns: 0.9fr 1.1fr; align-items: start; }
}
.build__cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
}
.build-card {
  border: 1px solid var(--steel-20);
  background: var(--ink);
  padding: var(--space-3);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-3);
  align-items: start;
}
.build-card__index {
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  color: var(--accent);
}
.build-card__title {
  font-family: var(--font-display);
  font-variation-settings: "wdth" var(--wdth-label);
  text-transform: uppercase;
  font-size: var(--fs-body); /* P8: 1rem (16px) floor fixed — overridden by build.css anyway, kept in sync */
  letter-spacing: 0.02em;
  margin-bottom: 0.35rem;
}
.build-card__text { color: var(--offwhite-60); font-size: var(--fs-small); }
.build-card__spec { margin-top: 0.5rem; }

/* ==========================================================================
   SLIDE 11 — PROOF WALL
   ========================================================================== */
.proof { background: var(--ink); text-align: left; }
.proof__list {
  margin-top: var(--space-3);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5em 1.4em;
  font-family: var(--font-display);
  font-variation-settings: "wdth" var(--wdth-label);
  font-size: clamp(1.1rem, 1.4vw + 0.8rem, 1.6rem);
  text-transform: uppercase;
  color: var(--offwhite-60);
}
.proof__list li::after {
  content: "\00b7";
  margin-left: 1.4em;
  color: var(--steel);
}
.proof__list li:last-child::after { content: ""; margin: 0; }
.proof__sectors {
  margin-top: var(--space-5);
}
.proof__lede { margin-top: var(--space-3); }

/* ==========================================================================
   SLIDE 12 — CLOSE / CONTACT
   ========================================================================== */
.close {
  background: var(--ink);
  align-items: center;
  text-align: center;
}
/* P8: the giant knockout "OREGON" word moved to a dedicated slide (built
   by another agent); the close no longer carries a knockout word at all.
   New composition: real logo, legible company line, big phone/email
   "money lines", mono address, mono capability-statement link. */
.close__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.close__logo {
  display: block;
  width: 150px;
}
.close__logo img { display: block; width: 100%; height: auto; }

.close__company {
  margin-top: var(--space-4);
  color: var(--offwhite);
  max-width: 24em;
}

.close__money {
  margin-top: var(--space-5);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3em;
}
.close__money-link {
  font-family: var(--font-mono);
  /* P8: "money lines" — 48–64px at 1920 per the client's request that
     phone/email read as the loudest thing on the slide. */
  font-size: clamp(1.75rem, 2vw + 1.15rem, 4rem);
  letter-spacing: -0.01em;
  color: var(--offwhite);
  /* P5 tap-target fix carried over: padding enlarges the invisible tap
     area without adding to the flex column's visible gap. */
  padding: 0.5rem 0;
}
.close__money-link:hover { color: var(--accent); }

.close__address {
  margin-top: var(--space-3);
  max-width: 32em;
  /* P8: "too small" (Tan) — mono floor raised to ≥22px at 1920, well
     clear of the 18px global floor. */
  font-size: clamp(1.15rem, 0.5vw + 0.95rem, 1.5rem);
  color: var(--steel);
}

.close__cap-link {
  margin-top: var(--space-4);
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--font-mono);
  font-size: clamp(1.15rem, 0.5vw + 0.95rem, 1.5rem); /* P8: ≥22px at 1920, matches .close__address */
  color: var(--offwhite);
  border-bottom: 1px solid var(--steel-35);
  padding-bottom: 0.15em;
}

/* ---------------------------------------------------------------------- */
/* Metal-sheen link hover sweep (§3-F) — cheap, CSS-only, always on        */
/* ---------------------------------------------------------------------- */
.sheen {
  position: relative;
  display: inline-block;
  overflow: hidden;
}
.sheen::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(45deg, transparent 30%, var(--steel-35) 48%, var(--offwhite-60) 50%, var(--steel-35) 52%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.6s var(--ease-out);
  pointer-events: none;
}
.sheen:hover::before,
.sheen:focus-visible::before { transform: translateX(120%); }
.reduced-motion .sheen::before { display: none; }

/* ---------------------------------------------------------------------- */
/* Utility                                                                 */
/* ---------------------------------------------------------------------- */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; border: 0; padding: 0;
  clip: rect(0 0 0 0);
  overflow: hidden;
  white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
  .slide, .hr, [data-animate], .scroll-cue__line::after, .sheen::before, .media img, .media video {
    transition: none !important;
    animation: none !important;
  }
  .slide.is-dimmed .media img,
  .slide.is-dimmed .media video { filter: none; }
  [data-animate] { opacity: 1; transform: none; }
}

/* P8: keep a standards triplet on one line inside a display headline */
@media (min-width: 900px) { .nowrap { white-space: nowrap; } }

/* P8: short laptop viewports (1366×768, 1536×864). The 18px-at-1080p type
   floors are tuned for 1080-tall screens; on ≤880px-tall desktops the
   build headline and the 4×2 product strip no longer share one viewport
   with their content. Step that headline to the h2 scale and slim the
   product thumbnails there; every other size is untouched. (Specificity
   beats the later products.css rule.) P9: the proof heading is already
   --fs-h2 by default (build.css) — its own ledger-specific shrink for
   this breakpoint lives there, next to the rest of the ledger sizing. */
@media (min-width: 900px) and (max-height: 880px) {
  .build .display--h1 { font-size: var(--fs-h2); }
  .products-lines .line-card__media { height: clamp(3rem, 3.6vw, 5rem); margin-bottom: var(--space-1); }
  /* Craft photo grid: cap the tiles by viewport height (object-fit: cover
     keeps the crops full-bleed) so the section stays one screen tall. */
  .craft .craft__hero { max-height: 36vh; }
  .craft .craft__support-item { max-height: 17vh; }
  /* About (pinned to exactly one viewport): the right column runs ~130px
     past a 768-tall screen. Trim the headline cap, body scale/leading and
     the stat values; the footnote sentence (repeated on why-3/why-5) goes. */
  .about .about__headline { font-size: min(var(--fs-h2), 3.4vw); }
  .about .about__body { font-size: var(--fs-small); line-height: 1.4; }
  .about .about__stats .stat__value:not(.stat__value--compact) { font-size: clamp(1.4rem, 2vw + 0.6rem, 2.4rem); }
  .about .about__footnote { display: none; }
  /* Product strip: tighter row gap + bottom padding so all eight lines
     sit inside one screen. */
  .products-lines.slide { padding-bottom: var(--space-2); }
  .products-lines .products-lines__grid { row-gap: var(--space-2); }
  .products-lines .products-lines__head { margin-bottom: var(--space-2); }
}
