/* ==========================================================================
   Aaina Furnitures — Responsive System Layer (v1, 2026-09-26)
   Additive only. Loaded AFTER site.css. Single source of truth for
   breakpoints, containers, header, hero, grids, shop-the-look, cards,
   filters, PDP, modals/drawers, footer, media, motion, CLS.
   Breakpoints: 320 / 360 / 375 / 390 / 414 / 480 / 576 / 768 /
                820 / 900 / 1024 / 1100 / 1200 / 1280 / 1366 /
                1440 / 1536 / 1920+
   System tiers: <576 mobile · 576-767 large mobile · 768-991 tablet ·
                 992-1199 small desktop · 1200-1399 desktop · 1400+ large
   Never uses body{overflow-x:hidden} as a fix; root cause: every
   scroll-container uses overflow-x:auto/clip locally, all media is
   constrained with max-width:100%.
   ========================================================================== */
:root {
  --container-max: 1440px;
  --container-max-wide: 1800px;
  --gutter: clamp(16px, 4vw, 48px);
  --grid-gap: clamp(12px, 2vw, 28px);
}

/* ---------- container system (unifies .wrap) ---------- */
.wrap,
.site-utility__inner,
.category-navigation__inner {
  width: min(100% - 32px, var(--container-max));
  margin-inline: auto;
}
.site-header .header-inner,
.site-header .site-header__inner {
  width: min(100% - 32px, var(--container-max-wide));
}
@media (min-width: 768px) {
  .wrap, .site-utility__inner, .category-navigation__inner,
  .site-header .header-inner, .site-header .site-header__inner { width: min(100% - 48px, var(--container-max)); }
  .site-header .header-inner, .site-header .site-header__inner { width: min(100% - 48px, var(--container-max-wide)); }
}
@media (min-width: 1200px) {
  .wrap, .site-utility__inner, .category-navigation__inner { width: min(100% - 64px, var(--container-max)); }
}
@media (min-width: 1400px) {
  :root { --gutter: clamp(20px, 4vw, 48px); }
}

/* media can never drive page overflow (root-cause guard, not a hack:
   each offender is constrained, page itself never clipped globally) */
img, video, iframe, svg, canvas, table { max-width: 100%; }
img, video { height: auto; }
picture { display: contents; }

/* ---------- header system ----------
   Row heights live in site.css V10 (:root --utility-h/--main-h/--catnav-h);
   --header-h is ALWAYS their exact sum, so the fixed header box and every
   hero/sticky offset derived from it stay truthful. This file only adjusts
   row internals per breakpoint — never the total out from under them. */
@media (max-width: 760px) { :root { --header-h: 68px; } }

.site-header { height: var(--header-h); }
.site-header .header-inner,
.site-header .site-header__inner {
  display: grid;
  grid-template-columns: minmax(150px, 220px) minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(12px, 2vw, 40px);
  min-width: 0;
}
/* search must shrink before nav does */
.header-search { min-width: 0; width: clamp(200px, 20vw, 300px); max-width: 100%; flex: 0 1 auto; }
.header-search input { min-width: 0; }
/* category strip: local horizontal scroll, never page scroll */
.category-navigation { overflow: clip; border-top: 1px solid rgba(200,181,145,.22); }
.category-navigation__inner {
  display: flex; overflow-x: auto; white-space: nowrap;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
  padding-block: 2px;
}
.category-navigation__inner::-webkit-scrollbar { display: none; }
.category-navigation__inner a { flex: 0 0 auto; padding: 10px 14px; font-size: .78rem; }
/* utility bar: message collapses first */
.site-utility__inner { display: grid; grid-template-columns: 1fr auto auto; gap: 16px; align-items: center; overflow: hidden; }
.site-utility p, .site-utility a { overflow: hidden; text-overflow: ellipsis; }

@media (max-width: 1280px) {
  .site-header .header-inner, .site-header .site-header__inner { gap: clamp(10px, 1.6vw, 24px); }
}
@media (max-width: 1100px) {
  /* compact header BEFORE overlap: full nav moves into the mobile menu,
     row keeps logo + search/actions + burger — height unchanged (166px) */
  .site-header .header-inner, .site-header .site-header__inner { grid-template-columns: minmax(0,1fr) auto auto; }
  .site-header .nav, .site-header .site-navigation { display: none; }
  .site-header .burger { display: block; }
  .header-search { max-width: 220px; }
}
@media (max-width: 900px) {
  .site-utility p.utility-message { display: none; }
  .site-utility__inner { grid-template-columns: 1fr auto; }
}
@media (max-width: 767px) {
  .header-search { flex-basis: 160px; max-width: 180px; height: 40px; }
  .header-search input { font-size: .8rem; }
  .header-ctas .btn-book, .site-header__actions .btn-book { display: none !important; }
  .h-wa-t { display: none; }
  .h-wa { padding: 10px 6px; }
  .category-navigation__inner a { padding: 9px 12px; font-size: .74rem; }
}
@media (max-width: 480px) {
  .header-search { display: none; } /* search lives in mobile menu + category pages */
  .site-header .header-inner, .site-header .site-header__inner { gap: 10px; }
  .brand, .site-logo { max-width: 150px; }
  .site-utility .utility-links { display: none; }
  .site-utility__inner { grid-template-columns: 1fr; text-align: center; }
}
@media (max-width: 360px) {
  .brand, .site-logo { max-width: 132px; }
  .h-wa { font-size: .72rem; }
}

/* mobile menu: correct viewport, scroll lock handled in JS, accordion */
.mmenu { padding-top: calc(var(--header-h) + env(safe-area-inset-top, 0px) + 16px); }
.mmenu nav { max-width: 620px; }
.mmenu a.m-link { min-height: 56px; touch-action: manipulation; }
.mmenu-sub { display: flex; gap: 10px; flex-wrap: wrap; max-width: 620px; margin: 14px auto 0; width: 100%; }
.mmenu-sub a { flex: 1 1 140px; text-align: center; padding: 12px; border: 1px solid rgba(247,242,233,.2); border-radius: 4px; text-decoration: none; font-size: .82rem; font-weight: 600; min-height: 48px; display: inline-flex; align-items: center; justify-content: center; }
.mmenu details.m-acc { border-bottom: 1px solid rgba(247,242,233,.1); }
.mmenu details.m-acc summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 16px; padding: 13px 0; font-family: var(--serif); font-size: clamp(1.4rem, 5.5vw, 2.1rem); min-height: 56px; }
.mmenu details.m-acc summary::-webkit-details-marker { display: none; }
.mmenu details.m-acc summary .m-plus { margin-left: auto; font-size: 1.2rem; color: var(--sand); }
.mmenu details.m-acc .m-sub { display: grid; gap: 2px; padding: 0 0 12px 40px; }
.mmenu details.m-acc summary.m-link { cursor: pointer; }
.mmenu details.m-acc summary.m-link .m-plus { margin-left: auto; font-family: var(--sans); font-size: 1.3rem; color: var(--sand); }
.mmenu details.m-acc summary.m-link::-webkit-details-marker { display: none; }
.mmenu details.m-acc .m-sub a { font-size: .95rem; padding: 10px 0; min-height: 44px; display: flex; align-items: center; }

/* ---------- hero ---------- */
.ch-hero, .ch-slides { min-height: 88svh; }
.ch-content { padding-bottom: clamp(120px, 18vh, 170px); }
.ch-title { font-size: clamp(2.4rem, 6vw + 1rem, 6.8rem); max-width: 16ch; text-wrap: balance; }
.ch-sub { max-width: 56ch; text-wrap: pretty; }
@media (max-width: 1024px) {
  .ch-hero, .ch-slides { min-height: 78svh; }
  .ch-copy { max-width: 720px; }
  .ch-ctas { gap: 12px; margin-top: 28px; }
}
@media (max-width: 767px) {
  .ch-hero, .ch-slides { min-height: 92svh; }
  .ch-bg { object-position: 62% center; } /* keep subject right, text left safe */
  .ch-shade { background: linear-gradient(to top, rgba(10,7,4,.88) 0%, rgba(10,7,4,.5) 42%, rgba(10,7,4,.12) 68%, rgba(10,7,4,.3) 100%), linear-gradient(100deg, rgba(12,8,4,.78) 0%, rgba(12,8,4,.3) 55%, transparent 80%); }
  .ch-content { padding-top: calc(var(--header-h) + 28px); }
  .ch-title { font-size: clamp(2.2rem, 11vw, 3.4rem); }
  .ch-sub { font-size: 1rem; }
  .ch-ctas .btn { flex: 1 1 100%; justify-content: center; text-align: center; }
  .ch-ui { bottom: 62px; }
  .ch-ui-inner { flex-direction: column; align-items: flex-start; gap: 10px; }
  .ch-ctrl { flex-wrap: wrap; gap: 10px; }
  .ch-count { font-size: .68rem; }
  .ch-dots button { width: 40px; }
  .ch-arrows button { width: 44px; height: 44px; }
  .ch-meta-inner { font-size: .76rem; }
  .ch-meta-inner > * { padding: 0 10px; }
  .ch-meta-scroll { display: none; }
}
@media (max-width: 390px) {
  .ch-title { font-size: clamp(2rem, 12vw, 2.7rem); }
  .ch-eyebrow { font-size: .62rem; letter-spacing: .22em; }
}
@media (min-width: 1536px) {
  .ch-copy { max-width: 1100px; }
}
@media (min-width: 1920px) {
  .ch-hero, .ch-slides { min-height: 92svh; }
}

/* page hero */
.page-hero { overflow: clip; }
.page-hero h1 { text-wrap: balance; max-width: 16em; }
@media (max-width: 767px) { .page-hero { padding-top: calc(var(--header-h) + 40px); } }

/* ---------- typography per-section (no orphans) ---------- */
h1, .ch-title, .page-hero h1 { text-wrap: balance; }
p, .lede, .ch-sub, .sec-sub { text-wrap: pretty; }
.card-body strong, .card-price { overflow-wrap: break-word; }

/* ---------- grids ---------- */
.cards { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: var(--grid-gap); }
@media (max-width: 1100px) { .cards { grid-template-columns: repeat(3, minmax(0,1fr)); } .card.featured { grid-column: span 2; } }
@media (max-width: 820px) { .cards { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 380px) { .cards { grid-template-columns: 1fr; } .card.featured { grid-column: auto; } }
.disc-grid { display: grid; grid-template-columns: repeat(6, minmax(0,1fr)); gap: 18px; }
@media (max-width: 1100px) { .disc-grid { grid-template-columns: repeat(3, minmax(0,1fr)); } }
@media (max-width: 767px) { .disc-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; } }
.coll-row { min-width: 0; }
@media (max-width: 767px) {
  .coll-row { grid-template-columns: 48px 1fr auto; gap: 14px; padding: 18px 4px; }
  .coll-name { font-size: clamp(1.4rem, 6vw, 1.9rem); }
}

/* ---------- product cards ---------- */
.card-img, .card-img img, .look-product-media img { aspect-ratio: 4/5; }
.card-img { aspect-ratio: 4/5; overflow: hidden; background: var(--linen); }
.card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-body { min-width: 0; }
.card-body strong { display: block; font-size: clamp(.95rem, 1.2vw + .8rem, 1.1rem); }

/* ---------- shop the look ---------- */
.look-experience { grid-template-columns: 1.65fr 1fr; }
@media (max-width: 1023px) {
  .look-experience { grid-template-columns: 1fr; }
  .look-viewport { height: clamp(420px, 92vw, 600px); min-height: 420px; }
}
@media (max-width: 767px) {
  .look-viewport { height: min(78svh, 560px); min-height: 400px; }
  .look-hotspot { width: 48px; height: 48px; margin: -24px 0 0 -24px; } /* 44px+ touch */
  .look-tag { font-size: .66rem; max-width: calc(100vw - 120px); overflow: hidden; text-overflow: ellipsis; }
  .look-product-panel { box-shadow: var(--sh-sm); }
  .look-ui { padding: 12px; }
  .look-prev, .look-next { width: 48px; height: 48px; }
}
.look-tilt, .look-depth-layer, .look-hotspots { will-change: transform; }
@media (max-width: 767px) {
  /* lighter mobile: kill 3D tilt, keep fade */
  .look-tilt { transform: none !important; }
  .look-depth-layer, .ch-slide.on .ch-bg { animation: none !important; }
}

/* ---------- collection filters ---------- */
.filter-sticky { position: sticky; top: calc(var(--header-h) + 8px); z-index: 40; }
.filter-rail { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.filter-drawer-btn { display: none; }
@media (max-width: 767px) {
  .filter-drawer-btn { display: inline-flex; }
}
/* slide-in filter drawer (progressive enhancement; backend filtering preserved) */
.filter-veil { position: fixed; inset: 0; z-index: 140; background: rgba(14,12,10,.55); opacity: 0; visibility: hidden; transition: opacity .35s var(--ease), visibility 0s .35s; }
.filter-veil.open { opacity: 1; visibility: visible; transition: opacity .35s var(--ease); }
.filter-drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 141; width: min(360px, calc(100vw - 48px)); background: var(--card); box-shadow: var(--sh-lg); transform: translateX(102%); transition: transform .45s var(--ease); display: flex; flex-direction: column; max-height: 100dvh; }
.filter-veil.open + .filter-drawer, .filter-drawer.open { transform: none; }
.filter-drawer__head, .filter-drawer__foot { padding: 16px 20px; border-bottom: 1px solid var(--line-soft); display: flex; align-items: center; gap: 12px; }
.filter-drawer__foot { border-bottom: 0; border-top: 1px solid var(--line-soft); margin-top: auto; }
.filter-drawer__body { overflow-y: auto; padding: 16px 20px; flex: 1; }

/* ---------- product page ---------- */
.pdp { grid-template-columns: 1.08fr .92fr; }
.gal { position: sticky; top: calc(var(--header-h) + 8px); min-width: 0; }
.gal-main { aspect-ratio: 4/5; }
.gal-main img { width: 100%; height: 100%; object-fit: cover; }
.gal-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 10px; }
@media (max-width: 900px) {
  .pdp { grid-template-columns: 1fr; }
  .gal { position: static; }
  .pdp-info { position: static; }
}
.spec-table { width: 100%; table-layout: fixed; }
.spec-table th, .spec-table td { overflow-wrap: break-word; }
/* sticky mobile CTA (never covers content: body gets padding via JS class) */
.pdp-sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: none; gap: 8px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px)); background: rgba(255,253,248,.96); backdrop-filter: blur(12px); border-top: 1px solid var(--line); }
.pdp-sticky-cta a, .pdp-sticky-cta button { flex: 1; min-height: 48px; display: inline-flex; align-items: center; justify-content: center; }
@media (max-width: 900px) { .pdp-sticky-cta.on { display: flex; } body.has-pdp-cta { padding-bottom: 76px; } }
@media (max-width: 767px) { body.has-pdp-cta { padding-bottom: 150px; } /* float-bar + cta */ }

/* ---------- forms / modals / drawers ---------- */
.modal-veil { padding: 16px; }
.modal { width: min(920px, 100%); max-width: 100%; max-height: calc(100dvh - 32px); overflow-y: auto; -webkit-overflow-scrolling: touch; }
.modal.enq-modal, .modal.book-modal, .modal.lead-modal { width: min(700px, calc(100vw - 32px)); }
.qv-grid { display: grid; grid-template-columns: 1fr 1fr; }
@media (max-width: 700px) {
  .qv-grid, .book-grid { grid-template-columns: 1fr; }
  .qv-media { aspect-ratio: 4/3; }
  .qv-media img { width: 100%; height: 100%; object-fit: cover; }
  .modal { border-radius: 8px 8px 0 0; align-self: flex-end; max-height: calc(100dvh - 24px); }
  .modal-veil { padding: 12px 8px 8px; align-items: flex-end; }
  /* lead popup ("Free design help") stays centered on every screen size */
  #lead-veil { align-items: center; padding: 16px 12px; }
  #lead-veil .modal { align-self: center; border-radius: 4px; max-height: calc(100dvh - 32px); }
}
@media (max-width: 360px) {
  .modal-veil { padding: 8px 8px calc(8px + env(safe-area-inset-bottom, 0px)); }
  .enq-steps, .wnav { flex-wrap: wrap; }
}
.field input, .field textarea, .field select { width: 100%; max-width: 100%; font-size: 16px; } /* no iOS zoom */
@media (max-width: 640px) {
  .form-2col { grid-template-columns: 1fr; }
  input, textarea, select { min-width: 0; max-width: 100%; }
}
#wa-guide { width: min(360px, calc(100vw - 28px)); max-height: calc(100dvh - 140px); overflow-y: auto; }

/* ---------- footer ---------- */
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: clamp(20px, 3vw, 44px); }
@media (max-width: 1024px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 576px) { .footer-grid { grid-template-columns: 1fr; gap: 22px; } .foot-base { flex-direction: column; gap: 8px; } }

/* ---------- images / video / CLS ---------- */
.img-frame, .card-img, .coll-thumb, .gal-main, .look-product-media { background: var(--linen); }
.img-frame { aspect-ratio: auto; }
.hero-media img, .ch-bg, .cat-hero__bg img, .page-hero-bg { width: 100%; height: 100%; object-fit: cover; }
video { width: 100%; height: auto; display: block; }
.cat-hero, .ch-hero, .look-viewport { content-visibility: auto; }
/* skeleton while product images load */
.card-img .ph, .look-product-ph { min-height: 200px; }

/* ---------- tables: page never scrolls, container does ---------- */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line-soft); border-radius: 6px; background: #fff; }
.table-scroll table { min-width: 640px; }
@media (max-width: 640px) {
  .cards-stack-mobile .table-scroll table, .table-scroll.stack table { min-width: 0; }
}

/* ---------- motion: calm on mobile + reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .ch-slide.on .ch-bg, .marquee-track, .look-tilt { animation: none !important; }
  #cursor { display: none !important; }
}
@media (max-width: 767px) {
  .marquee-track { animation-duration: 45s; }
}

/* ---------- reduced motion = reduced, not removed ----------
   The rules above (and site.css) keep every MOVEMENT off under reduce:
   Ken Burns zoom, marquees, translate/scale entrances, parallax, tilt,
   deck deal, cursor. This allowlist restores the gentle OPACITY-only
   fades so the site is not frozen for visitors whose OS reports reduce
   (e.g. Windows "Adjust for best performance"). html.calm is set by
   site.js, so without JS none of this applies and content stays visible. */
@media (prefers-reduced-motion: reduce) {
  /* hero crossfade (slides already transform:none under reduce) */
  html.calm.js .ch-slide { transition: opacity 1.2s ease, visibility 0s 1.2s !important; }
  html.calm.js .ch-slide.on { transition: opacity 1.2s ease !important; }
  /* <=900px the hero swaps display + fades in via the opacity-only `chin` keyframe */
  @media (max-width: 900px) {
    html.calm.js .ch-slide.on { animation: chin .8s ease !important; }
  }

  /* scroll reveals: fade in place, never slide */
  html.calm.js section, html.calm.js .sec, html.calm.js .card, html.calm.js .cat-card,
  html.calm.js .product-card, html.calm.js .site-footer, html.calm.js .faq-item,
  html.calm.js .review-card, html.calm.js .footer-col, html.calm.js .coll-card,
  html.calm.js .rv, html.calm.js .reveal, html.calm.js .reveal-up, html.calm.js .reveal-left,
  html.calm.js [data-reveal], html.calm.js [data-stagger] > .stagger-item,
  html.calm.js [data-feat-reveal] {
    transform: none !important;
    transition-property: opacity !important;
    transition-duration: .6s !important;
  }
  html.calm.js .rv:not(.in), html.calm.js .reveal:not(.in), html.calm.js .reveal-up:not(.in),
  html.calm.js .reveal-left:not(.in), html.calm.js [data-reveal]:not(.in),
  html.calm.js [data-stagger]:not(.in) > .stagger-item,
  html.calm.js [data-feat-reveal]:not(.in) { opacity: 0 !important; }
  /* first-paint snap must still win over the fade above */
  html.calm.js .rv-snap.rv-snap, html.calm.js .rv-snap.rv-snap * { transition: none !important; }

  /* carousels + image swaps: opacity crossfades only */
  html.calm.js .quote, html.calm.js .img-fade,
  html.calm.js .story-media img, html.calm.js .mani-media img,
  html.calm.js .feat-ed__main, html.calm.js .feat-ed__media img[data-feat-main-img],
  html.calm.js .look-room--transition,
  html.calm.js .look-product-media img, html.calm.js .look-product-media .look-pimg,
  html.calm.js .look-product-content .card-cat, html.calm.js .look-product-content .look-product-title,
  html.calm.js .look-product-content .look-product-description,
  html.calm.js .look-product-content .look-product-price,
  html.calm.js .look-product-content .look-product-actions {
    transform: none !important;
    transition-property: opacity !important;
    transition-duration: .5s !important;
  }

  /* card deck: restore the ORIGINAL throw under reduced motion —
     one-shot scroll-triggered deal, no tilt/parallax/looping.
     Declarations mirror the base .deck-card rules in site.css so they
     out-specify the reduce block that forces dealt/no-transition. */
  html.calm.js .deck-card {
    opacity: 0 !important;
    transform: translate(-50%, -50%) translate3d(0, 120px, 0) rotateX(14deg) rotateY(-8deg) rotate(var(--rz0, 4deg)) scale(.92) !important;
  }
  html.calm.js .deck-card:first-child { opacity: .92 !important; }
  /* transition must live on the dealt selector: the site.css reduce block's
     transition:none !important on .is-dealt .deck-card is (0,4,0) */
  html.calm.js [data-deck-section].is-dealt .deck-card {
    opacity: 1 !important;
    transform: translate(-50%, -50%) translate3d(var(--dx, 0px), calc(var(--dy, 0px) + var(--par, 0px) + var(--lift, 0px)), 0) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)) rotate(var(--rz, 0deg)) scale(1) !important;
    transition: transform 950ms cubic-bezier(.22, 1.28, .36, 1), opacity 550ms ease, box-shadow .45s ease !important;
    transition-delay: var(--d, 0ms) !important;
  }
  html.calm.js [data-deck-section].is-dealt.is-settled .deck-card {
    transition: transform .5s cubic-bezier(.22, 1, .36, 1), opacity .4s ease, box-shadow .45s ease !important;
    transition-delay: 0ms !important;
  }
  html.calm.js [data-deck-section].is-dealt .deck-card__body>* {
    animation: deck-rise .7s var(--ease) both !important;
    animation-delay: calc(var(--d, 0ms) + 320ms) !important;
  }
  html.calm.js [data-deck-section].is-dealt.is-settled .deck-card__body>* { animation: none !important; }
  html.calm.js [data-deck-section].is-settled .deck-card:hover,
  html.calm.js [data-deck-section].is-settled .deck-card:focus-visible {
    transform: translate(-50%, -50%) translate3d(var(--dx, 0px), calc(var(--dy, 0px) + var(--par, 0px) + var(--lift, 0px)), 0) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)) rotate(var(--rz, 0deg)) scale(1.02) !important;
  }
  html.calm.js [data-deck-section].is-settled .deck-card:hover { --lift: -12px; }

  /* <=1024px the deck is a horizontal scroll row — no throw in any mode,
     just reveal cards as they enter (or on deal). */
  @media (max-width: 1024px) {
    html.calm.js .deck-card { transform: none !important; }
    html.calm.js .deck-card:first-child { opacity: .92 !important; }
    html.calm.js .deck-card.in { opacity: 1 !important; }
    html.calm.js [data-deck-section].is-dealt .deck-card {
      opacity: 1 !important;
      transform: none !important;
      transition: none !important;
      transition-delay: 0ms !important;
    }
  }

  /* two-column grid reveal: opacity-only under reduce */
  html.calm.js [data-gr] > [data-gr-col] { transform: none !important; transition: opacity .85s ease !important; }
  html.calm.js [data-gr] > [data-gr-col="r"] { transition-delay: .12s !important; }

  /* modals, mobile menu, dropdown: fade instead of slide/wipe */
  html.calm.js .modal-veil { transition: opacity .3s ease, visibility 0s .3s !important; }
  html.calm.js .modal-veil.open { transition: opacity .3s ease !important; }
  html.calm.js .modal { transform: none !important; }
  html.calm.js .mmenu { clip-path: none !important; opacity: 0; transition: opacity .3s ease, visibility 0s .3s !important; }
  html.calm.js body.menu-open .mmenu { opacity: 1; transition: opacity .3s ease !important; }
  html.calm.js .mmenu a.m-link { transform: none !important; transition-property: opacity !important; transition-duration: .3s !important; }
  html.calm.js .mega, html.calm.js .has-mega:hover .mega, html.calm.js .has-mega:focus-within .mega {
    transform: translate(-50%, 6px) !important;
    transition: opacity .25s ease !important;
  }
}

/* ---------- fine-tune exact widths ---------- */
@media (max-width: 320px) {
  .wrap { width: calc(100% - 24px); }
  .ch-ctas .btn { font-size: .85rem; padding: 13px 16px; }
  .mmenu a.m-link { font-size: 1.3rem; }
}
@media (min-width: 1536px) { .wrap { width: min(100% - 64px, 1500px); } }
@media (min-width: 1920px) { .wrap { width: min(100% - 96px, 1600px); } }

/* ---------- global two-column grid reveal ----------
   site.js marks genuine two-column layouts [data-gr] and their columns
   [data-gr-col="l"|"r"]: left slides from -60px, right from +60px, 850ms
   premium ease, right column staggers 150ms. Stacked layouts (gr-y) fade
   up instead. JS-gated so no-JS/JS-fail always shows content. */
.js [data-gr] > [data-gr-col] {
  opacity: 0;
  transition: opacity .85s cubic-bezier(.22, 1, .36, 1), transform .85s cubic-bezier(.22, 1, .36, 1);
  will-change: opacity, transform
}

.js [data-gr] > [data-gr-col="l"] { transform: translate3d(-60px, 0, 0) }

.js [data-gr] > [data-gr-col="r"] { transform: translate3d(60px, 0, 0); transition-delay: .15s }

.js [data-gr].gr-y > [data-gr-col] { transform: translate3d(0, 26px, 0) }

.js [data-gr].gr-y > [data-gr-col="r"] { transition-delay: .1s }

.js [data-gr].gr-in > [data-gr-col] { opacity: 1; transform: translate3d(0, 0, 0) }

@media (max-width: 1100px) {
  .js [data-gr] > [data-gr-col="l"] { transform: translate3d(-34px, 0, 0) }
  .js [data-gr] > [data-gr-col="r"] { transform: translate3d(34px, 0, 0) }
  .js [data-gr].gr-y > [data-gr-col] { transform: translate3d(0, 22px, 0) }
}

/* ---------- story steps: compact spacing on tablet/mobile ----------
   The 44vh min-height + clamp padding is for the desktop scroll-scrub
   layout; once .story-sticky collapses to one column it leaves huge gaps. */
@media (max-width: 900px) {
  .story-steps article { min-height: 0; padding: 30px 0; }
  .story-steps h3 { font-size: clamp(1.5rem, 6vw, 2.1rem); }
  .story-steps .n { margin-bottom: 14px; }
}

/* ---------- cursor parallax layer ----------
   pointerFX writes --px/--py (grid cols, cards, media), --hx/--hy (hero
   copy) and --fx/--fy/--fr (deck fan) as CSS vars; standalone
   translate/rotate compose WITH existing transforms instead of
   overriding them. Vars stay 0 under reduced-motion/touch/no-JS. */
.js [data-pf] { translate: var(--px, 0px) var(--py, 0px) }

.js .ch-slide .ch-content { translate: var(--hx, 0px) var(--hy, 0px) }

.js [data-deck-section].is-settled .deck-card {
  translate: calc(var(--fx, 0px) * var(--fdepth, 1)) calc(var(--fy, 0px) * var(--fdepth, 1));
  rotate: calc(var(--fr, 0deg) * var(--fdepth, 1))
}
