/* =========================================================================
   JUZUR — Atelier design system
   Header, footer and homepage (classes prefixed `at-`), plus the approved
   palette applied to main.css tokens so inner pages match.
   Desktop-first (1440, works from 1280); tablet ≤1100; phone ≤640.
   ========================================================================= */

:root {
  /* Approved palette */
  --at-ivory: #F4EFE7;
  --at-limestone: #E8E1D6;
  --at-walnut: #5A3E2B;
  --at-walnut-deep: #47301F;
  --at-ink: #141311;
  --at-forest: #1F3A2E;
  --at-gold: #B08D57;
  --at-gold-soft: #CDB48A;
  --at-muted: #6B6158;
  --at-line: rgba(20, 19, 17, 0.12);
  --at-line-strong: rgba(20, 19, 17, 0.26);
  --at-on-dark: rgba(244, 239, 231, 0.92);
  --at-on-dark-muted: rgba(244, 239, 231, 0.68);

  --at-serif: var(--wp--preset--font-family--display, "Cormorant Garamond", Georgia, "Times New Roman", serif);
  --at-sans: var(--wp--preset--font-family--body, Poppins, system-ui, -apple-system, "Segoe UI", sans-serif);
  --at-pad: clamp(20px, 4.45vw, 64px);
  --at-gap: clamp(20px, 2.3vw, 32px);
  --at-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --at-header-h: 84px;
  --at-admin: var(--wp-admin--admin-bar--height, 0px);

  /* main.css tokens mapped to the approved palette (inner pages) */
  --cream: var(--at-ivory);
  --cream-2: #EDE6DB;
  --ivory: var(--at-ivory);
  --limestone: var(--at-limestone);
  --card: #FAF7F2;
  --ink: #1B1916;
  --walnut: var(--at-walnut);
  --gold: var(--at-gold);
  --gold-light: var(--at-gold-soft);
  --gold-deep: #8E6F40;
  --forest: var(--at-forest);
  --forest-black: var(--at-ink);
  --craft-black: var(--at-ink);
  --footer-black: var(--at-ink);
  --header-h: var(--at-header-h);
}

/* The canvas and body match the dark footer and hero; the ivory page colour lives on <main>.
   Safari 26 on iPhone tints the status-bar and toolbar areas from the body background, so an
   ivory body showed as a light strip above the hero and below the footer. The body fills the
   viewport so the footer always meets its bottom edge. */
html { background: var(--at-ink); }
body.atelier { display: flex; flex-direction: column; min-height: calc(100vh - var(--at-admin)); min-height: calc(100svh - var(--at-admin)); background: var(--at-ink); color: var(--at-ink); }
body.atelier > .site-main { flex: 1 0 auto; background: var(--at-ivory); }
.atelier :focus-visible { outline: 2px solid var(--at-gold); outline-offset: 3px; }
.at-bespoke :focus-visible, .at-footer :focus-visible, .at-final :focus-visible, .at-hero :focus-visible, .at-mega-dark :focus-visible { outline-color: var(--at-gold-soft); }
.at-container { width: 100%; max-width: 1440px; margin: 0 auto; padding: 0 var(--at-pad); position: relative; z-index: 2; }
.at-muted { color: var(--at-muted); }
.at-anchor { position: absolute; top: 0; }
[id="signature"], [id="rooms"], [id="bespoke"], [id="journey"], [id="craft"], [id="story"], [id="reviews"], [id="collections"] { scroll-margin-top: calc(var(--at-header-h) + var(--at-admin) + 8px); }
@media (prefers-reduced-motion: no-preference) { html:has(body.atelier) { scroll-behavior: smooth; } }

/* svg icons share one stroke style */
.at-header svg, .at-section svg, .at-bespoke svg, .at-hero svg, .at-final svg, .at-mega svg, .at-mobile-nav svg, .at-label svg, .at-toast svg, .at-book svg { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

/* ------------------------------------------------------------ type + controls */
.at-label { display: inline-flex; align-items: center; gap: 10px; margin: 0; font-size: 12px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--at-walnut); }
.at-label svg { width: 17px; height: 17px; flex: none; }
.at-label-light { color: var(--at-gold-soft); }
.at-label-gold { color: var(--at-gold); }
.at-label-walnut { color: var(--at-walnut); }
.at-h2 { font-family: var(--at-serif); font-weight: 400; font-size: clamp(40px, 5vw, 72px); line-height: 1; letter-spacing: -0.012em; margin: 20px 0 0; }
.at-h2-light { color: var(--at-ivory); }

.at-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 24px; font-family: var(--at-sans); font-size: 12.5px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; text-decoration: none; border: 1px solid transparent; border-radius: 0; cursor: pointer; transition: background-color .25s, color .25s, border-color .25s; white-space: nowrap; }
.at-btn-ink { background: var(--at-ink); color: var(--at-ivory); }
.at-btn-ink:hover, .at-btn-ink:focus-visible { background: var(--at-walnut); color: var(--at-ivory); }
.at-btn-walnut { background: var(--at-walnut); color: var(--at-ivory); }
.at-btn-outline-walnut { border-color: var(--at-walnut); color: var(--at-walnut); min-height: 42px; padding: 0 18px; }
.at-btn-outline-walnut:hover { background: var(--at-walnut); color: var(--at-ivory); }
.at-btn-gold { background: var(--at-gold); color: var(--at-ink); }
.at-btn-gold:hover { background: var(--at-gold-soft); color: var(--at-ink); }
.at-btn-outline-ivory { border-color: rgba(244, 239, 231, 0.55); color: var(--at-ivory); }
.at-btn-outline-ivory:hover { background: var(--at-ivory); color: var(--at-ink); }
.at-btn-block { display: flex; width: 100%; }
.at-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.at-link-arrow { display: inline-flex; align-items: center; gap: 10px; font-size: 12.5px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; text-decoration: none; color: inherit; padding-bottom: 6px; border-bottom: 1px solid currentColor; transition: gap .3s var(--at-ease); }
.at-link-arrow:hover { gap: 16px; }
.at-link-arrow-light { color: var(--at-on-dark); }

/* ------------------------------------------------------------ header */
/* No backdrop-filter here: it would make the header the containing block of the fixed mobile drawer. */
.at-header { position: sticky; top: var(--at-admin); z-index: 60; background: var(--at-ivory); border-bottom: 1px solid var(--at-line); }
.at-header-inner { max-width: 1440px; margin: 0 auto; padding: 0 var(--at-pad); height: var(--at-header-h); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; transition: height .35s var(--at-ease); }
.at-header.is-condensed .at-header-inner { height: 66px; }
.at-brand { display: inline-flex; align-items: center; gap: 14px; color: var(--at-walnut); text-decoration: none; justify-self: start; }
.at-brand-mark { display: inline-flex; }
.at-brand-mark svg { height: 38px; width: auto; fill: currentColor; stroke: none; transition: height .35s var(--at-ease); }
.at-header.is-condensed .at-brand-mark svg { height: 32px; }
.at-brand-custom { max-height: 40px; width: auto; }
.at-brand-word { font-family: var(--at-serif); font-size: 27px; font-weight: 500; letter-spacing: 0.34em; color: var(--at-ink); }
.at-nav ul { display: flex; gap: clamp(24px, 3vw, 44px); margin: 0; padding: 0; list-style: none; }
.at-nav-link { display: inline-flex; align-items: center; gap: 7px; font: 500 12.5px/1 var(--at-sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--at-ink); text-decoration: none; background: none; border: 0; padding: 12px 0; cursor: pointer; position: relative; }
.at-nav-link::after { content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .35s var(--at-ease); }
.at-nav-link:hover::after, .at-nav-link[aria-expanded="true"]::after { transform: scaleX(1); }
.at-chev { width: 9px; height: 6px; transition: transform .25s; }
.at-nav-link[aria-expanded="true"] .at-chev { transform: rotate(180deg); }
.at-tools { display: flex; align-items: center; gap: 2px; justify-self: end; }
.at-icon-btn, .at-tools .header-cart { width: 44px; height: 44px; display: inline-grid; place-items: center; position: relative; color: var(--at-ink); background: none; border: 0; cursor: pointer; text-decoration: none; }
.at-icon-btn svg, .at-tools .header-cart svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.at-tools .header-cart .cart-count { position: absolute; top: 6px; right: 4px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--at-walnut); color: var(--at-ivory); font-size: 10px; line-height: 17px; text-align: center; }
.at-tools .header-cart .cart-count[data-count="0"] { background: transparent; color: transparent; }
.at-header-cta { margin-left: 10px; }
.at-menu-toggle { display: none; }

/* Over a full-bleed hero (homepage) the header starts transparent and settles to ivory once
   atelier.js adds .is-condensed on scroll, or while a mega menu, search or the drawer is open.
   Pure CSS; without :has() support the header simply stays ivory. */
.at-header { transition: background-color .35s var(--at-ease), border-color .35s var(--at-ease), box-shadow .35s var(--at-ease); }
.at-header.is-condensed { box-shadow: 0 12px 28px -22px rgba(20, 19, 17, 0.32); }
.at-header::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(rgba(20, 19, 17, 0.42), rgba(20, 19, 17, 0)); opacity: 0; transition: opacity .35s var(--at-ease); }
.at-brand, .at-brand-word, .at-nav-link, .at-icon-btn, .at-tools .header-cart { transition: color .35s var(--at-ease); }
.atelier:has(.at-hero) .at-header:not(.is-condensed):not(:has([aria-expanded="true"])) { background-color: transparent; border-bottom-color: transparent; }
.atelier:has(.at-hero) .at-header:not(.is-condensed):not(:has([aria-expanded="true"]))::before { opacity: 1; }
.atelier:has(.at-hero) .at-header:not(.is-condensed):not(:has([aria-expanded="true"])) :is(.at-brand-word, .at-nav-link, .at-icon-btn, .header-cart) { color: var(--at-ivory); }
.atelier:has(.at-hero) .at-header:not(.is-condensed):not(:has([aria-expanded="true"])) .at-brand { color: var(--at-gold-soft); }
.atelier:has(.at-hero) .at-header:not(.is-condensed):not(:has([aria-expanded="true"])) .at-header-cta { border-color: rgba(244, 239, 231, 0.72); color: var(--at-ivory); }
.atelier:has(.at-hero) .at-header:not(.is-condensed):not(:has([aria-expanded="true"])) .at-header-cta:hover { background: var(--at-ivory); border-color: var(--at-ivory); color: var(--at-ink); }

.at-search { border-top: 1px solid var(--at-line); background: var(--at-ivory); }
.at-search-form { max-width: 1440px; margin: 0 auto; padding: 18px var(--at-pad); display: flex; gap: 12px; }
.at-search-form input[type="search"] { flex: 1; min-height: 48px; border: 1px solid var(--at-line-strong); background: #fff; padding: 0 16px; font: 400 16px var(--at-sans); color: var(--at-ink); border-radius: 0; }

/* mega menus */
.at-mega { position: absolute; left: 0; right: 0; top: 100%; background: var(--at-ivory); border-top: 1px solid var(--at-line); box-shadow: 0 30px 60px rgba(20, 19, 17, 0.12); }
.at-mega-dark { background: var(--at-ink); color: var(--at-on-dark); border-top-color: rgba(244, 239, 231, 0.1); }
.at-mega-inner { max-width: 1440px; margin: 0 auto; padding: 44px var(--at-pad) 52px; display: grid; grid-template-columns: 1.2fr 1.2fr 1fr; gap: 48px; }
.at-mega-links { margin: 18px 0 0; padding: 0; list-style: none; }
.at-mega-links a { display: inline-flex; align-items: baseline; gap: 10px; font-family: var(--at-serif); font-size: 25px; line-height: 1.55; color: inherit; text-decoration: none; transition: color .2s, transform .3s var(--at-ease); }
.at-mega-links a:hover { color: var(--at-walnut); transform: translateX(4px); }
.at-mega-dark .at-mega-links a:hover { color: var(--at-gold-soft); }
.at-count { font-family: var(--at-sans); font-size: 12px; color: var(--at-muted); }
.at-mega-note p { font-size: 15px; color: var(--at-muted); margin: 16px 0 20px; max-width: 320px; }
.at-mega-dark .at-mega-note p { color: var(--at-on-dark-muted); }
.at-mega-feature { position: relative; overflow: hidden; display: block; color: var(--at-ivory); }
.at-mega-feature img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .8s var(--at-ease); }
.at-mega-feature:hover img { transform: scale(1.03); }
.at-mega-feature-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 56px 20px 18px; background: linear-gradient(rgba(20, 19, 17, 0), rgba(20, 19, 17, 0.82)); font-family: var(--at-serif); font-size: 26px; }

/* mobile navigation drawer */
.at-mobile-nav { position: fixed; z-index: 59; left: 0; right: 0; top: calc(var(--at-header-h) + var(--at-admin)); bottom: 0; overflow-y: auto; background: var(--at-ivory); border-top: 1px solid var(--at-line); padding: 28px var(--at-pad) 40px; }
.at-mobile-links { list-style: none; margin: 12px 0 28px; padding: 0; }
.at-mobile-links a { display: block; font-family: var(--at-serif); font-size: 26px; line-height: 1.5; color: var(--at-ink); text-decoration: none; }
.at-mobile-links-sm a { font-family: var(--at-sans); font-size: 15px; line-height: 2.2; }
body.at-nav-open { overflow: hidden; }

/* ------------------------------------------------------------ hero */
.at-hero { position: relative; height: clamp(640px, calc(100vh - var(--at-header-h) - var(--at-admin)), 860px); color: var(--at-ivory); }
.at-hero-media, .at-hero-media picture, .at-hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; }
.at-hero-media img { object-fit: cover; object-position: 50% 58%; }
.at-hero::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(20, 19, 17, 0.72) 0%, rgba(20, 19, 17, 0.34) 38%, rgba(20, 19, 17, 0) 62%), linear-gradient(0deg, rgba(20, 19, 17, 0.55) 0%, rgba(20, 19, 17, 0) 42%); }
/* Image and scrim reach up behind the sticky header (header height + its 1px border); the hero box itself is unchanged. */
.at-hero-media, .at-hero::before { top: calc(-1 * (var(--at-header-h) + 1px)); }
/* The image keeps its bottom edge on the hero's, like the scrim: a fixed 100% height would stop it a header-height short and leave the scrim over the ivory page as a grey band. */
.at-hero-media { height: auto; }
.at-hero-content { position: absolute; z-index: 3; left: calc(var(--at-pad) + 76px); bottom: 220px; max-width: 660px; }
.at-hero-title { font-family: var(--at-serif); font-weight: 400; font-size: clamp(54px, 7.2vw, 104px); line-height: 0.94; letter-spacing: -0.015em; margin: 22px 0 26px; color: var(--at-ivory); }
.at-hero-title em { font-style: normal; color: #E7D6BC; }
.at-hero-lead { font-size: 18px; line-height: 1.6; color: rgba(244, 239, 231, 0.86); max-width: 440px; margin: 0; }
.at-paths { position: absolute; z-index: 4; right: var(--at-pad); bottom: -72px; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); width: min(784px, calc(100% - 2 * var(--at-pad))); }
.at-path { position: relative; display: flex; flex-direction: column; min-height: 196px; padding: 28px 32px; text-decoration: none; transition: transform .45s var(--at-ease), box-shadow .45s var(--at-ease); }
.at-path:hover { transform: translateY(-6px); box-shadow: 0 24px 48px rgba(20, 19, 17, 0.22); }
.at-path-shop { background: var(--at-ivory); color: var(--at-ink); }
.at-path-bespoke { background: var(--at-walnut); color: var(--at-ivory); }
.at-path-num { font-size: 11px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--at-walnut); }
.at-path-bespoke .at-path-num, .at-final-path-bespoke .at-path-num { color: var(--at-gold-soft); }
.at-path-title { font-family: var(--at-serif); font-size: 34px; line-height: 1.05; margin: 14px 0 10px; max-width: 280px; }
.at-path-meta { font-size: 13px; color: var(--at-muted); margin-top: auto; padding-right: 32px; }
.at-path-bespoke .at-path-meta, .at-final-path-bespoke .at-path-meta { color: var(--at-on-dark-muted); }
.at-path-icon { position: absolute; top: 26px; right: 28px; }
.at-path-icon svg { width: 22px; height: 22px; }
.at-path-arrow { position: absolute; right: 30px; bottom: 24px; font-size: 22px; transition: transform .35s var(--at-ease); }
.at-path:hover .at-path-arrow { transform: translateX(6px); }

/* ------------------------------------------------------------ sections */
.at-section { position: relative; padding: clamp(88px, 11vw, 160px) 0 clamp(80px, 9.5vw, 136px); }
.at-section-head { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--at-gap); align-items: end; margin-bottom: clamp(36px, 4.5vw, 64px); }
.at-section-head-main { grid-column: 1 / span 7; }
.at-section-head-side { grid-column: 8 / -1; justify-self: end; display: flex; flex-direction: column; align-items: flex-end; gap: 22px; }

/* ------------------------------------------------------------ signature */
.at-signature { padding-top: clamp(140px, 14.5vw, 208px); }
.at-tabs { display: flex; gap: 30px; }
.at-tabs button { font: 500 14px var(--at-sans); color: var(--at-muted); background: none; border: 0; border-bottom: 1px solid transparent; padding: 0 0 8px; cursor: pointer; transition: color .2s, border-color .2s; }
.at-tabs button[aria-selected="true"] { color: var(--at-ink); border-color: var(--at-ink); }
.at-tabs button:hover { color: var(--at-ink); }
.at-products { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--at-gap); align-items: start; }
.at-products > .at-product-lead { grid-column: 1 / span 6; }
.at-products-single > .at-product-lead { grid-column: 1 / span 7; }
.at-product-grid { grid-column: 7 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 48px var(--at-gap); }
.at-product-media { position: relative; display: block; overflow: hidden; background: var(--at-limestone); aspect-ratio: 4 / 5; }
.at-product-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--at-ease); }
.at-product-media:hover img { transform: scale(1.035); }
.at-tag { position: absolute; top: 14px; left: 14px; font-size: 10px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; padding: 5px 9px; }
.at-tag-sale { background: var(--at-walnut); color: var(--at-ivory); }
.at-tag-stock { left: auto; right: 14px; background: var(--at-ink); color: var(--at-ivory); }
.at-product-cat { font-size: 11.5px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--at-muted); margin: 20px 0 6px; }
.at-product-body > .at-product-name:first-child, .at-product-body > .at-product-title-row:first-child { margin-top: 20px; }
.at-product-name { font-family: var(--at-serif); font-weight: 500; font-size: 27px; line-height: 1.1; margin: 0; }
.at-product-name a { color: inherit; text-decoration: none; }
.at-product-name a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.at-product-lead .at-product-name { font-size: clamp(32px, 3.1vw, 44px); font-weight: 400; }
.at-product-title-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; }
.at-price { margin: 0; font-size: 16px; font-weight: 500; font-variant-numeric: tabular-nums; }
.at-price del { color: var(--at-muted); font-weight: 400; margin-right: 6px; }
.at-price ins { text-decoration: none; color: var(--at-walnut); }
.at-product-lead .at-price { font-size: 21px; text-align: right; }
.at-stock { font-size: 13.5px; margin: 16px 0 0; display: flex; align-items: center; gap: 8px; }
.at-stock-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--at-forest); }
.at-stock[data-status="outofstock"] .at-stock-dot { background: var(--at-muted); }
.at-product-excerpt { font-size: 14.5px; color: var(--at-muted); margin: 8px 0 0; }
.at-product-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 24px 30px; margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--at-line); }
.at-product-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 12px; min-height: 40px; }
.at-add { width: 40px; height: 40px; flex: none; display: inline-grid; place-items: center; border: 1px solid var(--at-line-strong); color: var(--at-ink); text-decoration: none; transition: background-color .2s, color .2s, border-color .2s; }
.at-add svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.at-add:hover { background: var(--at-ink); color: var(--at-ivory); border-color: var(--at-ink); }
.at-add.loading, .at-btn.loading { opacity: .55; pointer-events: none; }
.at-add.added { background: var(--at-forest); border-color: var(--at-forest); color: var(--at-ivory); }
.at-btn.added { background: var(--at-forest); }
/* WooCommerce appends a "View cart" link after an AJAX add; the header count and toast cover it on cards. */
.at-product-foot .added_to_cart, .at-rail-item .added_to_cart { display: none; }
.at-product-actions .added_to_cart { font-size: 12.5px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--at-forest); }
.at-choose { font-size: 11.5px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--at-ink); text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 3px; white-space: nowrap; }
.at-invite { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--at-gap); align-items: end; padding-top: 36px; border-top: 1px solid var(--at-line); }
.at-invite-text { grid-column: 1 / span 7; font-family: var(--at-serif); font-size: clamp(24px, 2.4vw, 34px); line-height: 1.3; margin: 0; }
.at-invite .at-btn { grid-column: 10 / -1; justify-self: end; }

/* ------------------------------------------------------------ rooms */
.at-rooms { background: var(--at-limestone); overflow: hidden; }
.at-rooms-intro { margin-bottom: clamp(56px, 6.6vw, 96px); }
.at-room { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--at-gap); align-items: center; }
.at-room + .at-room { margin-top: clamp(88px, 10.5vw, 152px); }
.at-room-media { position: relative; overflow: hidden; }
.at-room-media picture, .at-room-media picture img { display: block; width: 100%; height: 100%; }
.at-room-media picture img { object-fit: cover; }
.at-room-living .at-room-media { grid-column: 1 / span 7; aspect-ratio: 4 / 4.9; }
.at-room-living .at-room-copy { grid-column: 9 / -1; }
.at-room-bedroom .at-room-copy { grid-column: 1 / span 4; grid-row: 1; align-self: end; padding-bottom: 40px; }
.at-room-bedroom .at-room-media { grid-column: 6 / -1; grid-row: 1; aspect-ratio: 7 / 6; overflow: visible; }
.at-room-bedroom .at-room-media picture { overflow: hidden; }
.at-room-bedroom .at-room-media picture img { object-position: 50% 62%; }
.at-room-num { font-family: var(--at-serif); font-weight: 300; font-size: clamp(88px, 8.9vw, 128px); line-height: 0.8; color: var(--at-gold); margin: 0; }
.at-room-title { font-family: var(--at-serif); font-weight: 400; font-size: clamp(42px, 4.4vw, 64px); line-height: 1; margin: 22px 0 18px; }
.at-room-lead { font-size: 17px; color: var(--at-muted); max-width: 380px; margin: 0 0 32px; }
.at-chips { display: flex; flex-wrap: wrap; gap: 10px; margin: -8px 0 32px; padding: 0; list-style: none; }
.at-chips a { display: inline-block; font-size: 13px; padding: 8px 15px; border: 1px solid var(--at-line-strong); color: var(--at-ink); text-decoration: none; transition: background-color .2s, color .2s, border-color .2s; }
.at-chips a:hover { background: var(--at-ink); color: var(--at-ivory); border-color: var(--at-ink); }
.at-rail { list-style: none; margin: 0 0 36px; padding: 0; }
.at-rail-item { display: grid; grid-template-columns: 64px 1fr auto 40px; align-items: center; gap: 18px; padding: 14px 0; border-top: 1px solid var(--at-line-strong); }
.at-rail-item:last-child { border-bottom: 1px solid var(--at-line-strong); }
.at-rail-img img { width: 64px; height: 80px; object-fit: cover; background: var(--at-ivory); }
.at-rail-name { font-family: var(--at-serif); font-size: 21px; line-height: 1.15; color: var(--at-ink); text-decoration: none; }
.at-rail-price { font-size: 14px; font-variant-numeric: tabular-nums; }
.at-rail-price del { color: var(--at-muted); }
.at-rail-price ins { text-decoration: none; }
.at-inset { position: absolute; left: -112px; bottom: -64px; width: 232px; background: var(--at-ivory); padding: 10px; margin: 0; box-shadow: 0 24px 48px rgba(20, 19, 17, 0.14); z-index: 2; }
.at-inset img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.at-inset figcaption { display: flex; flex-direction: column; gap: 2px; padding: 12px 4px 4px; font-size: 13px; }
.at-inset figcaption span:first-child { font-family: var(--at-serif); font-size: 19px; }

/* ------------------------------------------------------------ bespoke (dark chapter) */
.at-bespoke { position: relative; background: var(--at-ink); color: var(--at-on-dark); padding-top: clamp(96px, 11.6vw, 168px); }
.at-bespoke-head { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--at-gap); align-items: end; }
.at-bespoke-head > div:first-child { grid-column: 1 / span 7; }
.at-bespoke-side { grid-column: 9 / -1; }
.at-bespoke-lead { font-size: 17px; color: var(--at-on-dark-muted); max-width: 400px; margin: 0; }
.at-bespoke-side .at-actions { margin: 30px 0 26px; }
.at-bespoke-gallery { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--at-gap); margin-top: clamp(64px, 7.2vw, 104px); margin-bottom: -136px; position: relative; z-index: 3; }
.at-bespoke-tile { position: relative; overflow: hidden; display: block; color: var(--at-ivory); text-decoration: none; }
.at-bespoke-tile picture, .at-bespoke-tile img { display: block; width: 100%; height: 100%; }
.at-bespoke-tile img { object-fit: cover; transition: transform 1.1s var(--at-ease); }
.at-bespoke-tile:hover img { transform: scale(1.03); }
.at-bespoke-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(20, 19, 17, 0.74) 0%, rgba(20, 19, 17, 0) 40%); }
.at-bespoke-tile-kitchen { grid-column: 1 / span 7; height: clamp(520px, 54vw, 780px); }
.at-bespoke-tile-dressing { grid-column: 8 / -1; height: clamp(440px, 44.5vw, 640px); margin-top: clamp(80px, 9.7vw, 140px); }
.at-bespoke-cap { position: absolute; z-index: 2; left: 34px; right: 34px; bottom: 30px; display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; }
.at-bespoke-cap-title { font-family: var(--at-serif); font-size: clamp(38px, 3.5vw, 50px); line-height: 1; }
.at-bespoke-cap-meta { font-size: 11.5px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--at-gold-soft); white-space: nowrap; padding-bottom: 6px; }
.at-journey { position: relative; background: linear-gradient(180deg, var(--at-walnut-deep) 0%, #4F3624 100%); padding: 248px 0 clamp(88px, 8.9vw, 128px); }
.at-journey-head { margin-bottom: 56px; }
.at-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 56px; margin: 0; padding: 0; list-style: none; }
.at-step { position: relative; border-top: 1px solid rgba(205, 180, 138, 0.55); padding-top: 30px; }
.at-step::before { content: ""; position: absolute; top: -4px; left: 0; width: 7px; height: 7px; border-radius: 50%; background: var(--at-gold); }
.at-step-num { display: block; font-family: var(--at-serif); font-weight: 300; font-size: 64px; line-height: 1; color: var(--at-gold-soft); }
.at-step-title { font-family: var(--at-serif); font-weight: 400; font-size: 32px; color: var(--at-ivory); margin: 18px 0 10px; }
.at-step p { font-size: 15.5px; color: var(--at-on-dark-muted); max-width: 340px; margin: 0; }

/* ------------------------------------------------------------ craft */
.at-craft-top { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--at-gap); align-items: center; }
.at-craft-hero { grid-column: 1 / span 7; position: relative; overflow: hidden; aspect-ratio: 3 / 2; margin: 0; }
.at-craft-hero picture, .at-craft-hero img { display: block; width: 100%; height: 100%; object-fit: cover; }
.at-craft-copy { grid-column: 9 / -1; }
.at-craft-lead { font-size: 17px; color: var(--at-muted); margin: 22px 0 0; max-width: 380px; }
.at-craft-details { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--at-gap); margin: clamp(64px, 7.2vw, 104px) 0 0; padding: 0; list-style: none; }
.at-craft-detail-media img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.at-craft-detail-title { font-family: var(--at-serif); font-weight: 400; font-size: 30px; margin: 22px 0 6px; }
.at-craft-detail p { font-size: 15px; color: var(--at-muted); max-width: 340px; margin: 0; }

/* ------------------------------------------------------------ story */
.at-story { position: relative; border-top: 1px solid var(--at-line); padding: clamp(80px, 8.3vw, 120px) 0 clamp(88px, 8.9vw, 128px); }
.at-story-inner { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--at-gap); }
.at-story-inner .at-label { grid-column: 1 / span 2; align-self: start; padding-top: 18px; }
.at-story-statement { grid-column: 3 / span 9; font-family: var(--at-serif); font-weight: 400; font-size: clamp(34px, 3.9vw, 56px); line-height: 1.12; margin: 0; }

/* ------------------------------------------------------------ reviews */
.at-reviews { background: var(--at-limestone); }
.at-review-layout { display: grid; grid-template-columns: repeat(12, 1fr); grid-template-rows: auto auto; gap: var(--at-gap); }
.at-review { position: relative; grid-column: 8 / -1; margin: 0; border: 1px solid var(--at-line-strong); padding: 40px 44px; background: rgba(244, 239, 231, 0.55); display: flex; flex-direction: column; gap: 18px; }
.at-review-lead { grid-column: 1 / span 7; grid-row: 1 / span 2; padding: 56px 64px; }
.at-quote-mark { font-family: var(--at-serif); font-size: 160px; line-height: 0.55; color: var(--at-gold); height: 70px; }
.at-review-text { margin: 0; font-family: var(--at-serif); font-size: 22px; line-height: 1.4; }
.at-review-lead .at-review-text { font-size: clamp(26px, 2.4vw, 34px); line-height: 1.3; }
.at-review-text p { margin: 0; }
.at-review-foot { margin-top: auto; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 16px; font-size: 14px; }
.at-stars { color: var(--at-gold); letter-spacing: 0.2em; font-size: 17px; }
.at-review-who { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; }
.at-review-author { font-weight: 500; }
.at-review-verified { font-size: 12px; color: var(--at-forest); }
.at-review-product { color: var(--at-muted); }

/* ------------------------------------------------------------ final */
.at-final { position: relative; height: 700px; color: var(--at-ivory); }
.at-final-media, .at-final-media picture, .at-final-media img { position: absolute; inset: 0; width: 100%; height: 100%; }
/* The image may zoom in as it is revealed; keep that inside its own frame. */
.at-final-media, .at-hero-media { overflow: hidden; }
.at-final-media img { object-fit: cover; object-position: 55% 60%; }
.at-final::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(20, 19, 17, 0.62) 0%, rgba(20, 19, 17, 0) 46%), linear-gradient(0deg, rgba(20, 19, 17, 0.72) 0%, rgba(20, 19, 17, 0.08) 58%); }
.at-final-inner { height: 100%; display: flex; flex-direction: column; justify-content: flex-end; }
.at-final-title { font-family: var(--at-serif); font-weight: 400; font-size: clamp(48px, 5.3vw, 76px); line-height: 1; max-width: 560px; margin: 0 0 110px; color: var(--at-ivory); }
.at-final-paths { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); transform: translateY(80px); position: relative; z-index: 3; }
.at-final-path { position: relative; display: flex; flex-direction: column; padding: 40px 48px 44px; min-height: 220px; text-decoration: none; transition: transform .45s var(--at-ease); }
.at-final-path:hover { transform: translateY(-6px); }
.at-final-path-shop { background: var(--at-ivory); color: var(--at-ink); }
.at-final-path-bespoke { background: var(--at-walnut); color: var(--at-ivory); }
.at-final-path-title { font-family: var(--at-serif); font-size: clamp(36px, 3.5vw, 50px); line-height: 1.02; margin: 16px 0 12px; }
.at-final-path .at-path-meta { margin-top: auto; }
.at-final-arrow { position: absolute; right: 44px; bottom: 38px; font-size: 30px; transition: transform .35s var(--at-ease); }
.at-final-path:hover .at-final-arrow { transform: translateX(8px); }

/* ------------------------------------------------------------ footer */
.at-footer { position: relative; background: var(--at-ink); color: var(--at-on-dark); padding: clamp(150px, 12.8vw, 184px) 0 44px; }
.at-final + .at-footer, main + .at-footer { margin-top: 0; }
.site-main:not(:has(.at-final)) + .at-footer { padding-top: clamp(72px, 7vw, 104px); }
.at-footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 32px 48px; padding-bottom: 64px; border-bottom: 1px solid rgba(244, 239, 231, 0.12); }
.at-footer-word { display: flex; align-items: center; gap: 30px; margin: 0; font-family: var(--at-serif); font-weight: 400; font-size: clamp(64px, 10.3vw, 148px); line-height: 0.8; letter-spacing: 0.2em; color: var(--at-ivory); }
.at-footer-mark { color: var(--at-gold); display: inline-flex; }
.at-footer-mark svg { height: clamp(56px, 7.5vw, 108px); width: auto; fill: currentColor; stroke: none; }
.at-footer-tagline { max-width: 360px; margin: 0; font-size: 15px; color: var(--at-on-dark-muted); }
.at-footer-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: var(--at-gap); padding-top: 64px; }
.at-footer-h { font: 500 11.5px var(--at-sans); letter-spacing: 0.18em; text-transform: uppercase; color: var(--at-gold); margin: 0 0 20px; }
.at-footer-menu { list-style: none; margin: 0; padding: 0; }
.at-footer-menu li { font-size: 15px; line-height: 2.1; color: var(--at-on-dark-muted); }
.at-footer-menu a { color: var(--at-on-dark-muted); text-decoration: none; transition: color .2s; }
.at-footer-menu a:hover { color: var(--at-ivory); }
.at-footer-roots { position: relative; height: 60px; margin: 64px 0 24px; }
.at-footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px 24px; font-size: 13px; color: rgba(244, 239, 231, 0.58); }
.at-footer-bottom p { margin: 0; }
.at-footer-bottom a { color: rgba(244, 239, 231, 0.75); }
.at-credit { display: inline-flex; align-items: center; gap: 10px; }
/* Two classes so WooCommerce's `.woocommerce-page img { height: auto }` cannot restore the natural size. */
.at-credit .at-credit-logo { width: 40px; height: auto; display: block; }
.at-credit-name { color: var(--at-on-dark); font-weight: 500; letter-spacing: 0.02em; }
/* NexGeZ wordmark: brand colours scoped to the credit only (not part of the JUZUR palette). */
.at-credit-word { display: inline-flex; font-size: 14px; font-weight: 700; font-style: italic; letter-spacing: 0.04em; line-height: 1; }
.at-credit-nex { color: #FFFFFF; }
.at-credit-gez { color: #7B2CFF; background: linear-gradient(90deg, #00D4FF 0%, #2F6DFF 35%, #7B2CFF 65%, #FF2D9A 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; padding-right: 0.08em; }

/* ------------------------------------------------------------ service chooser (booking) */
/* Opened by generic "Book a design visit" / "Request a quotation" links; the customer picks the service. */
.at-book { width: min(560px, calc(100% - 32px)); max-width: none; max-height: calc(100% - 32px); margin: auto; padding: 0; border: 0; background: var(--at-ivory); color: var(--at-ink); box-shadow: 0 30px 80px rgba(20, 19, 17, 0.35); overflow: auto; }
.at-book::backdrop { background: rgba(20, 19, 17, 0.62); }
.at-book-inner { position: relative; padding: 40px 36px 32px; }
.at-book-close { position: absolute; top: 12px; right: 12px; display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; background: transparent; color: var(--at-ink); cursor: pointer; }
.at-book-close svg { width: 20px; height: 20px; }
.at-book-title { font-family: var(--at-serif); font-weight: 400; font-size: clamp(32px, 4vw, 44px); line-height: 1.05; margin: 16px 0 10px; }
.at-book-lead { margin: 0 0 24px; color: var(--at-muted); }
.at-book-options { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.at-book-option { position: relative; display: block; padding: 20px 56px 20px 22px; border: 1px solid var(--at-line-strong); color: inherit; text-decoration: none; transition: border-color .25s, background-color .25s; }
.at-book-option:hover, .at-book-option:focus-visible { border-color: var(--at-walnut); background: var(--at-limestone); }
.at-book-option-title { display: block; font-family: var(--at-serif); font-size: 26px; line-height: 1.1; }
.at-book-option-text { display: block; margin-top: 6px; font-size: 14px; line-height: 1.5; color: var(--at-muted); }
.at-book-option-arrow { position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font-size: 22px; color: var(--at-walnut); }
.at-book-note { margin: 20px 0 0; font-size: 13px; line-height: 1.55; color: var(--at-muted); }
.at-book[data-mode="visit"] [data-for="quote"], .at-book[data-mode="quote"] [data-for="visit"] { display: none; }
body.at-book-open { overflow: hidden; }
@media (max-width: 640px) { .at-book-inner { padding: 36px 20px 24px; } .at-book-option { padding: 18px 48px 18px 18px; } .at-book-option-title { font-size: 23px; } .at-book-option-arrow { right: 18px; } }

/* ------------------------------------------------------------ toast */
.at-toast { position: fixed; z-index: 80; left: 50%; bottom: calc(28px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); display: flex; align-items: center; gap: 18px; background: var(--at-ink); color: var(--at-ivory); font-size: 14px; padding: 14px 22px; border-left: 3px solid var(--at-gold); box-shadow: 0 18px 40px rgba(20, 19, 17, 0.3); max-width: calc(100% - 32px); }
.at-toast a { color: var(--at-gold-soft); white-space: nowrap; }

/* ------------------------------------------------------------ thread (scroll-drawn root line) */
.at-thread { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; overflow: visible; }
.at-hero .at-thread { z-index: 2; }
.at-final .at-thread { z-index: 2; }
.at-thread path { fill: none; stroke: var(--at-gold); stroke-width: 1.25; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1 1; stroke-dashoffset: 1; opacity: .85; }
.at-thread .at-thread-fine { stroke-width: 1; opacity: .55; }
.at-thread circle { fill: var(--at-gold); opacity: 0; transition: opacity .4s var(--at-ease); }
.at-thread circle.is-lit { opacity: .95; }
.at-thread-static path { stroke-dashoffset: 0; }
.at-thread-static circle { opacity: .95; }

/* ------------------------------------------------------------ narrower desktops */
@media (max-width: 1360px) {
  .at-hero-content { bottom: 236px; }
}

/* ------------------------------------------------------------ tablet and phone (≤1100) */
@media (max-width: 1100px) {
  :root { --at-header-h: 68px; }
  .at-header-inner { grid-template-columns: 1fr auto; }
  .at-nav, .at-header-cta, .at-hide-sm { display: none; }
  .at-menu-toggle { display: inline-grid; }
  .at-mega { display: none !important; }
  .at-brand-word { font-size: 22px; letter-spacing: 0.3em; }
  .at-brand-mark svg { height: 32px; }

  .at-hero { height: auto; min-height: 0; display: flex; flex-direction: column; }
  .at-hero-media { position: relative; inset: auto; height: min(78svh, 640px); }
  .at-hero-media picture, .at-hero-media img { position: absolute; inset: 0; }
  .at-hero::before { bottom: auto; height: min(78svh, 640px); }
  .at-hero-media { top: auto; margin-top: calc(-1 * (var(--at-header-h) + 1px)); height: calc(min(78svh, 640px) + var(--at-header-h) + 1px); }
  .at-hero::before { height: calc(min(78svh, 640px) + var(--at-header-h) + 1px); }
  .at-hero-content { left: var(--at-pad); right: var(--at-pad); bottom: auto; top: calc(min(78svh, 640px) - 32px); transform: translateY(-100%); }
  .at-paths { position: relative; right: auto; bottom: auto; width: 100%; grid-auto-flow: row; grid-auto-columns: auto; }
  .at-path { min-height: 0; padding: 24px var(--at-pad); }
  .at-path-title { font-size: 30px; }
  .at-signature { padding-top: clamp(72px, 10vw, 104px); }

  .at-section-head, .at-products, .at-room, .at-bespoke-head, .at-bespoke-gallery, .at-craft-top, .at-story-inner, .at-review-layout, .at-invite { display: block; }
  .at-section-head-side { align-items: flex-start; margin-top: 24px; }
  .at-product-grid { margin-top: 48px; grid-template-columns: 1fr 1fr; gap: 40px 20px; }
  .at-room + .at-room { margin-top: 88px; }
  .at-room-media { margin-bottom: 36px; }
  .at-room-living .at-room-media { aspect-ratio: 4 / 4.4; }
  .at-room-bedroom .at-room-media { aspect-ratio: 4 / 3.6; }
  .at-inset { display: none; }
  .at-room-bedroom .at-room-copy { padding-bottom: 0; }
  .at-bespoke-side { margin-top: 28px; }
  .at-bespoke-gallery { margin-bottom: -96px; }
  .at-bespoke-tile-kitchen, .at-bespoke-tile-dressing { height: clamp(380px, 70vw, 560px); margin-top: 24px; }
  .at-journey { padding-top: 168px; }
  .at-steps { grid-template-columns: 1fr; gap: 40px; }
  .at-craft-copy { margin-top: 36px; }
  .at-craft-details { grid-template-columns: 1fr 1fr; }
  .at-story-statement { margin-top: 20px; }
  .at-review { margin-top: var(--at-gap); }
  .at-review-lead { padding: 40px 32px; }
  .at-invite .at-btn { margin-top: 28px; }
  .at-final { height: auto; min-height: 560px; display: flex; flex-direction: column; justify-content: flex-end; }
  .at-final-inner { height: auto; padding-top: 220px; }
  .at-final-title { margin-bottom: 40px; }
  .at-final-paths { grid-auto-flow: row; transform: none; margin: 0 calc(-1 * var(--at-pad)); }
  .at-final-path { min-height: 0; padding: 32px calc(var(--at-pad) + 44px) 36px var(--at-pad); }
  .at-final-arrow { right: var(--at-pad); bottom: 34px; }
  .at-final-media img { object-position: 30% 60%; }
  .at-final::before { background: linear-gradient(0deg, rgba(20, 19, 17, 0.86) 0%, rgba(20, 19, 17, 0.55) 55%, rgba(20, 19, 17, 0.25) 100%); }
  .at-footer { padding-top: 72px; }
}

/* ------------------------------------------------------------ phone (≤640) */
/* Tablet: the stacked room images go landscape so each fits within a tablet viewport. */
@media (min-width: 641px) and (max-width: 1100px) {
  .at-room-living .at-room-media, .at-room-bedroom .at-room-media { aspect-ratio: 4 / 3; }
}

@media (max-width: 640px) {
  .at-hero-media, .at-hero::before { height: calc(74svh + var(--at-header-h) + 1px); }
  .at-hero-content { top: calc(74svh - 24px); }
  .at-hero-title { font-size: 50px; margin: 16px 0 16px; }
  .at-hero-lead { font-size: 16px; }
  .at-h2 { font-size: 42px; }
  .at-product-grid { grid-template-columns: 1fr 1fr; gap: 32px 14px; }
  .at-product-name { font-size: 21px; }
  .at-product-title-row { flex-direction: column; align-items: flex-start; gap: 10px; }
  .at-product-lead .at-price { text-align: left; }
  .at-tabs { gap: 20px; overflow-x: auto; }
  .at-rail-item { grid-template-columns: 56px 1fr 40px; }
  .at-rail-price { grid-column: 2; grid-row: 2; }
  .at-rail-item > .at-add, .at-rail-item > .at-choose { grid-column: 3; grid-row: 1 / span 2; }
  .at-rail-img { grid-row: 1 / span 2; }
  .at-rail-img img { width: 56px; height: 70px; }
  .at-bespoke-cap { left: 22px; right: 22px; bottom: 22px; flex-direction: column; align-items: flex-start; gap: 10px; }
  .at-craft-details { grid-template-columns: 1fr; }
  .at-quote-mark { font-size: 120px; height: 50px; }
  .at-footer-word { gap: 16px; letter-spacing: 0.14em; }
  .at-footer-cols { grid-template-columns: 1fr 1fr; }
  .at-footer-bottom { flex-direction: column; align-items: flex-start; }
  .at-credit .at-credit-logo { width: 34px; }
}

/* ------------------------------------------------------------ motion
   One language across the homepage: opacity and a short rise for text,
   clip-path reveals for selected images, a horizontal drift for the room
   compositions. The hero plays on load with CSS alone. Everything else is
   revealed once by atelier.js (IntersectionObserver), which only marks
   elements that are still below the fold, so nothing depends on JS to be
   visible. Durations and stagger delays come from atelier.js (--rv-dur,
   --rv-delay). Elements the root thread measures only ever fade or clip.
   Clickable tiles never clip (the clipped part would ignore the pointer):
   atelier.js fades them, and the hero paths fade on load. */
:root { --rv-rise: 28px; --rv-drift: 40px; --rv-ease: cubic-bezier(0.22, 1, 0.36, 1); }
@media (max-width: 640px) { :root { --rv-rise: 18px; --rv-drift: 18px; } }

@keyframes at-rv-up { from { opacity: 0; transform: translate3d(0, var(--rv-rise), 0); } to { opacity: 1; transform: none; } }
@keyframes at-rv-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes at-rv-left { from { opacity: 0; transform: translate3d(calc(-1 * var(--rv-drift)), 0, 0); } to { opacity: 1; transform: none; } }
@keyframes at-rv-right { from { opacity: 0; transform: translate3d(var(--rv-drift), 0, 0); } to { opacity: 1; transform: none; } }
@keyframes at-rv-mask { from { opacity: 0; clip-path: inset(100% 0 0 0); } to { opacity: 1; clip-path: inset(0 0 0 0); } }
@keyframes at-rv-clip-up { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes at-rv-clip-ltr { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes at-rv-clip-rtl { from { clip-path: inset(0 0 0 100%); } to { clip-path: inset(0 0 0 0); } }
@keyframes at-rv-section { from { clip-path: inset(56px 3.5% 0 3.5%); } to { clip-path: inset(0 0 0 0); } }
@keyframes at-rv-zoom { from { transform: scale(1.08); } to { transform: none; } }
@keyframes at-rv-hero-zoom { from { transform: scale(1.06); } to { transform: none; } }

/* Pending: set by atelier.js on elements below the fold, never in markup. */
.rv.rv-fade, .rv.rv-up, .rv.rv-left, .rv.rv-right, .rv.rv-mask { opacity: 0; }
.rv.rv-clip-up { clip-path: inset(100% 0 0 0); }
.rv.rv-clip-ltr { clip-path: inset(0 100% 0 0); }
.rv.rv-clip-rtl { clip-path: inset(0 0 0 100%); }
.rv.rv-section { clip-path: inset(56px 3.5% 0 3.5%); }
.rv.rv-zoom img { transform: scale(1.08); }

/* Revealing: `backwards` holds the start state through the stagger delay and
   hands control back to the element's own styles (hover transforms) after. */
.rv-in { animation-duration: var(--rv-dur, 900ms); animation-timing-function: var(--rv-ease); animation-delay: var(--rv-delay, 0ms); animation-fill-mode: backwards; }
.rv-in.rv-up { animation-name: at-rv-up; }
.rv-in.rv-fade { animation-name: at-rv-fade; }
.rv-in.rv-left { animation-name: at-rv-left; }
.rv-in.rv-right { animation-name: at-rv-right; }
.rv-in.rv-mask { animation-name: at-rv-mask; }
.rv-in.rv-clip-up { animation-name: at-rv-clip-up; }
.rv-in.rv-clip-ltr { animation-name: at-rv-clip-ltr; }
.rv-in.rv-clip-rtl { animation-name: at-rv-clip-rtl; }
.rv-in.rv-section { animation-name: at-rv-section; }
.rv-in:is(.rv-clip-up, .rv-clip-ltr, .rv-clip-rtl, .rv-zoom) img { animation: at-rv-zoom var(--rv-dur, 1200ms) var(--rv-ease) var(--rv-delay, 0ms) backwards; }

/* Hero: plays on first paint without JS; text is readable within ~1s. */
.at-hero-line { display: inline-block; }
@media (prefers-reduced-motion: no-preference) {
  .at-hero-media img { animation: at-rv-hero-zoom 2.4s var(--rv-ease) both; }
  .at-hero-content > .at-label { animation: at-rv-up 0.9s var(--rv-ease) 0.12s backwards; }
  .at-hero-line { animation: at-rv-up 1s var(--rv-ease) 0.24s backwards; }
  .at-hero-line + br + .at-hero-line { animation-delay: 0.38s; }
  .at-hero-lead { animation: at-rv-up 0.9s var(--rv-ease) 0.56s backwards; }
  .at-path { animation: at-rv-fade 1.1s var(--rv-ease) 0.72s backwards; }
  .at-path + .at-path { animation-delay: 0.84s; }
}

/* Never leave anything hidden for reduced motion or print. */
@media (prefers-reduced-motion: reduce) { .rv { opacity: 1 !important; clip-path: none !important; } .rv img { transform: none !important; } }
@media print { .rv { opacity: 1 !important; clip-path: none !important; } .rv img { transform: none !important; } .rv-in, .rv-in img { animation: none !important; } }

@media (prefers-reduced-motion: reduce) {
  .atelier *, .atelier *::before, .atelier *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
