/* VERRANO layer — motion + UI finishing, shared by verrano.nz and the AU site.
   Flavour: VERRANO (derived from the house Signature Motion System)
   scale 1.25 · primary ease build · accent bronze · no loader, cursor, scramble or grid.
   Everything here is additive: with JS off or motion off the page is complete. */

:root {
  --ease-draft: cubic-bezier(.65, 0, .35, 1);
  --ease-build: cubic-bezier(.16, 1, .3, 1);
  --ease-snap: cubic-bezier(.7, 0, .15, 1);
  --ease-press: cubic-bezier(.3, 1.4, .5, 1);
  --motion-scale: 1.25;
  --t-micro: 160ms;
  --t-ui: calc(280ms * var(--motion-scale));
  --t-reveal: calc(640ms * var(--motion-scale));
  --t-scene: calc(900ms * var(--motion-scale));
  --t-draw: calc(1200ms * var(--motion-scale));
  --stagger: 60ms;
  /* text-safe bronze: >= 4.7:1 on every ivory/beige band (brand #8b7155 is 3.65:1 on beige) */
  --bronze-text: #735e45;
}

/* ---------- UI fixes ---------- */
.eyebrow { color: var(--bronze-text); font-size: max(11px, 1em * .7); }
.eyebrow { font-size: 11px; }
.hero .eyebrow { font-size: 11px; }
.closing .eyebrow { color: #bda48a; }
.footer-top .eyebrow { font-size: 11px; }
.footer-bottom { font-size: 11px; }
.comparison-labels span { font-size: 10px; }
.header-phone { color: var(--bronze-text); font-weight: 500; }
.text-link:hover, .navigation > a:not(.button):hover, .service-links > a:hover { color: var(--bronze-text); }
.area-group h2 { color: var(--bronze-text); }
/* CMS login doesn't belong in the public footer */
.footer-bottom a[href$="/studio"] { display: none; }
:focus-visible { outline: 2px solid var(--bronze-text); outline-offset: 3px; }
footer :focus-visible, .closing :focus-visible { outline-color: #bda48a; }

/* ---------- Header: settles on scroll ---------- */
.site-header { transition: box-shadow var(--t-ui) var(--ease-build), background-color var(--t-ui) var(--ease-build); }
html.vm-scrolled .site-header {
  background: rgba(244, 241, 235, .9);
  -webkit-backdrop-filter: saturate(1.2) blur(10px);
  backdrop-filter: saturate(1.2) blur(10px);
  box-shadow: 0 10px 30px -24px rgba(37, 39, 36, .5);
}

/* ---------- Micro-interactions ---------- */
/* M02 pen-line: bronze line draws over the resting rule */
.text-link { position: relative; }
.text-link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
  background: var(--carbon); transform: scaleX(0); transform-origin: right;
  transition: transform var(--t-reveal) var(--ease-draft);
}
.text-link:hover::after, .text-link:focus-visible::after { transform: scaleX(1); transform-origin: left; }
.closing .text-link::after, footer .text-link::after { background: #bda48a; }
.text-link > span[aria-hidden] { transition: transform var(--t-ui) var(--ease-build); }
.text-link:hover > span[aria-hidden] { transform: translate(3px, -3px); }

/* M01 button: fill wipes up from the base, press feedback */
.button { position: relative; isolation: isolate; overflow: hidden;
  transition: color var(--t-ui) var(--ease-build), border-color var(--t-ui) var(--ease-build), transform var(--t-micro) var(--ease-press); }
.button::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--bronze-text);
  transform: scaleY(0); transform-origin: bottom; transition: transform var(--t-ui) var(--ease-snap);
}
.button:hover { background: var(--carbon); border-color: var(--bronze-text); }
.button:hover::before { transform: scaleY(1); }
.button:hover, .navigation .button:hover, .button:focus-visible { color: #fff; }
.button.light:hover { background: var(--ivory); color: #fff; }
.button:active { transform: scale(.97); }
.button > span[aria-hidden], .button > span:last-child { transition: transform var(--t-ui) var(--ease-build); }
.button:hover > span:last-child { transform: translate(3px, -3px); }

/* S6 services stack: rule draws, name shifts, arrow turns */
.service-links > a { position: relative; transition: color var(--t-ui) var(--ease-build); }
.service-links > a:hover { padding-left: 0; }
.service-links > a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--bronze);
  transform: scaleX(0); transform-origin: left; transition: transform var(--t-reveal) var(--ease-draft);
}
.service-links > a > span:nth-child(2) { transition: transform var(--t-reveal) var(--ease-build); }
.service-links > a > span:last-child { transition: transform var(--t-reveal) var(--ease-build); justify-self: end; }
.service-links > a:hover::after, .service-links > a:focus-visible::after { transform: scaleX(1); }
.service-links > a:hover > span:nth-child(2) { transform: translateX(14px); }
.service-links > a:hover > span:last-child { transform: rotate(45deg); }

/* Images settle on hover */
.finish-picture, .editorial-image { overflow: hidden; }
.finish-picture img, .editorial-image img { transition: transform var(--t-draw) var(--ease-build); }
.finish-card:hover .finish-picture img, .editorial-image:hover img { transform: scale(1.035); }

/* M05 measured input: bronze rule draws on focus */
.form-field input, .form-field select, .form-field textarea, .directory-tools input {
  transition: border-color var(--t-ui) var(--ease-build), box-shadow var(--t-reveal) var(--ease-draft);
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus, .directory-tools input:focus {
  outline: none; border-color: var(--bronze-text); box-shadow: inset 0 -2px 0 var(--bronze-text);
}

/* ---------- Hero load (CSS-only, runs once; no hidden end state) ---------- */
@keyframes vm-rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes vm-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes vm-plate { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes vm-settle { from { transform: scale(1.08); } to { transform: scale(1); } }
@keyframes vm-rule { from { transform: scaleX(0); } to { transform: scaleX(1); } }

html.vm-js:not(.vm-off) :is(.hero, .page-heading, .service-hero, .case-heading) .eyebrow { animation: vm-fade var(--t-reveal) var(--ease-build) 120ms both; }
html.vm-js:not(.vm-off) :is(.hero, .page-heading, .service-hero, .case-heading) h1 { animation: vm-rise var(--t-scene) var(--ease-build) 200ms both; }
html.vm-js:not(.vm-off) :is(.hero, .page-heading, .service-hero, .case-heading) h1 em { display: inline-block; animation: vm-rise var(--t-scene) var(--ease-build) 330ms both; }
html.vm-js:not(.vm-off) :is(.hero-description, .page-heading > p:not(.eyebrow), .service-hero p:not(.eyebrow)) { animation: vm-rise var(--t-reveal) var(--ease-build) 420ms both; }
html.vm-js:not(.vm-off) :is(.hero-actions, .page-heading .button, .service-hero .button) { animation: vm-rise var(--t-reveal) var(--ease-build) 500ms both; }
html.vm-js:not(.vm-off) .hero-foot { animation: vm-fade var(--t-scene) var(--ease-build) 700ms both; }
html.vm-js:not(.vm-off) .hero-image { animation: vm-plate var(--t-draw) var(--ease-draft) 60ms both; }
html.vm-js:not(.vm-off) .hero-image > img { animation: vm-settle calc(var(--t-draw) * 1.6) var(--ease-build) 60ms both; }

/* ---------- Scroll reveals (classes added by JS only to below-fold content) ---------- */
html.vm-js .vm-r { opacity: 0; transform: translateY(24px); }
html.vm-js .vm-r.vm-in {
  opacity: 1; transform: none;
  transition: opacity var(--t-reveal) var(--ease-build) var(--vm-d, 0ms), transform var(--t-reveal) var(--ease-build) var(--vm-d, 0ms);
}
html.vm-js .vm-w { clip-path: inset(0 100% 0 0); }
html.vm-js .vm-w.vm-in { clip-path: inset(0 0 0 0); transition: clip-path var(--t-scene) var(--ease-snap) var(--vm-d, 0ms); }
html.vm-js .vm-img { clip-path: inset(0 0 100% 0); }
html.vm-js .vm-img.vm-in { clip-path: inset(0 0 0 0); transition: clip-path var(--t-draw) var(--ease-draft) var(--vm-d, 0ms); }

/* ---------- Before → After (drag + scroll scrub) ---------- */
.vm-compare {
  --p: 1; position: relative; display: block; width: 100%; margin-inline: auto; overflow: hidden;
  background: var(--paper); touch-action: pan-y; cursor: ew-resize; user-select: none; -webkit-user-select: none;
  -webkit-user-drag: none;
}
.vm-compare .vm-layer { position: absolute; inset: 0; background-repeat: no-repeat; pointer-events: none; }
/* side-by-side composite: each layer shows one half, edge-to-edge (slight overscan hides the seam) */
.vm-compare .vm-before { background-size: 200.6% 100%; background-position: 0 50%; }
.vm-compare .vm-after { background-size: 200.6% 100%; background-position: 100% 50%; }
/* stacked composite: top half before, bottom half after */
.vm-compare.vm-stacked .vm-before { background-size: 100% 201.2%; background-position: 50% 0; }
.vm-compare.vm-stacked .vm-after { background-size: 100% 201.2%; background-position: 50% 100%; }
/* separate before/after files */
.vm-compare.vm-split .vm-layer { background-size: cover; background-position: 50% 50%; }
.vm-compare .vm-before { clip-path: inset(0 calc((1 - var(--p)) * 100%) 0 0); }
.vm-compare .vm-line {
  position: absolute; top: 0; bottom: 0; left: calc(var(--p) * 100%); width: 2px; margin-left: -1px; background: #fff;
  box-shadow: 0 0 0 .5px rgba(37, 39, 36, .3); pointer-events: none;
}
.vm-compare .vm-handle {
  position: absolute; top: 50%; left: calc(var(--p) * 100%); width: 48px; height: 48px; margin: -24px 0 0 -24px;
  border-radius: 50%; background: rgba(250, 248, 244, .95); border: 1px solid rgba(37, 39, 36, .18);
  box-shadow: 0 6px 20px -8px rgba(37, 39, 36, .45);
  display: grid; place-items: center; color: var(--carbon); pointer-events: none;
  transition: transform var(--t-micro) var(--ease-press);
}
.vm-compare:hover .vm-handle { transform: scale(1.06); }
.vm-compare.vm-dragging { cursor: grabbing; }
.vm-compare.vm-dragging .vm-handle { transform: scale(.94); }
.vm-compare .vm-range { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; margin: 0; }
.vm-compare.vm-focus .vm-handle { outline: 2px solid var(--bronze-text); outline-offset: 3px; }
.vm-has-compare { position: relative; display: block; -webkit-user-drag: none; }
.vm-has-compare > img { display: none; }
.vm-has-compare { background: transparent; }
.vm-compare .comparison-labels {
  position: absolute; inset: 14px 14px auto; z-index: 2; pointer-events: none;
  display: flex !important; justify-content: space-between; gap: 12px;
}
.vm-compare .comparison-labels span, .vm-compare .comparison-labels span + span { position: static !important; }
.vm-has-compare .project-expand { z-index: 3; }

/* ---------- S8 footer wordmark fill ---------- */
.vm-wordmark {
  --p: 0; position: relative; margin: 56px 0 0; line-height: .8; user-select: none; pointer-events: none;
  font-family: var(--sans); font-weight: 500; letter-spacing: .14em; font-size: 12vw;
  text-transform: uppercase; white-space: nowrap; overflow: hidden;
}
.vm-wordmark span { display: inline-block; margin-right: -.14em; color: transparent; -webkit-text-stroke: 1px rgba(189, 164, 138, .35); }
.vm-wordmark span + span {
  position: absolute; left: 0; top: 0; -webkit-text-stroke: 0; color: #8b7155;
  clip-path: inset(calc((1 - var(--p)) * 100%) 0 0 0);
}

/* ---------- Motion switch ---------- */
.vm-switch {
  display: inline-flex; align-items: center; gap: 10px; background: none; border: 0; padding: 0; color: inherit;
  font: inherit; cursor: pointer; letter-spacing: .04em;
}
.vm-switch i { position: relative; width: 26px; height: 14px; border: 1px solid #6c6f66; display: inline-block; }
.vm-switch i::after {
  content: ""; position: absolute; top: 2px; left: 2px; width: 8px; height: 8px; background: #bda48a;
  transition: transform var(--t-ui) var(--ease-snap);
}
.vm-switch[aria-checked="true"] i::after { transform: translateX(12px); }

/* ---------- Reduced motion: complete, static page ---------- */
@media (prefers-reduced-motion: reduce) {
  html.vm-js *, html.vm-js *::before, html.vm-js *::after { animation: none !important; transition-duration: 1ms !important; }
  html.vm-js .vm-r, html.vm-js .vm-w, html.vm-js .vm-img { opacity: 1; transform: none; clip-path: none; }
}
html.vm-off *, html.vm-off *::before, html.vm-off *::after { animation: none !important; transition-duration: 1ms !important; }
html.vm-off .vm-r, html.vm-off .vm-w, html.vm-off .vm-img { opacity: 1 !important; transform: none !important; clip-path: none !important; }

/* ---------- Illustrative imagery sections ---------- */
.vm-figure-section { padding-bottom: 0; }
.page-heading + .vm-figure-section { padding-top: 56px; }
.vm-figure { margin: 0; }
.vm-figure > img { display: block; width: 100%; height: auto; object-fit: cover; background: var(--paper); }
.vm-ratio-wide .vm-figure > img { aspect-ratio: 16 / 8; }
.vm-ratio-guide .vm-figure > img { aspect-ratio: 2 / 1; }
.vm-figure figcaption {
  margin-top: 12px; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
}
.vm-illustration .project-image-link > img { width: 100%; height: auto; }
@media (max-width: 760px) {
  .page-heading + .vm-figure-section { padding-top: 32px; }
  .vm-ratio-wide .vm-figure > img { aspect-ratio: 3 / 2; }
}

/* =====================================================================
   Style refresh — inspired by coverstyl.com (Nov 2026)
   Principles borrowed, not identity: a heavy condensed display face in caps for
   headlines, bold sentence-case statements, calm grotesk body, warm cream and deep
   ink, one accent (VERRANO bronze), pill buttons, softly rounded photos with one
   sweeping corner, a full-bleed hero, dot labels, split statement headings, quick motion.
   Display face: Archivo (variable wght 100–900, wdth 62–125), SIL OFL, self-hosted.
   ===================================================================== */
@font-face {
  font-family: "Archivo";
  src: url("/verrano-layer/fonts/archivo-variable.woff2") format("woff2");
  font-weight: 100 900; font-stretch: 62% 125%; font-style: normal; font-display: swap;
}
:root {
  --display: "Archivo", "DM Sans", Arial, sans-serif;
  --ivory: #f1ece1;          /* a touch warmer */
  --carbon: #1e1f1d;         /* a touch deeper */
  --ink-soft: #3a3b37;
  --r-img: 20px 20px 72px 20px;   /* soft corners, one sweeping corner */
  --r-hero: 0 0 clamp(44px, 6vw, 104px) 0;
  --motion-scale: 1;               /* quicker, Cover Styl-like pace */
}
.site-header { background: rgba(241, 236, 225, .95); }
html.vm-scrolled .site-header { background: rgba(241, 236, 225, .9); }

/* ---- Type ---- */
h1, h2, h3 { font-family: var(--display); }
h1 {
  font-stretch: 62%; font-weight: 860; text-transform: uppercase;
  letter-spacing: -.012em; line-height: .88;
}
h1 em, h2 em {
  font-family: var(--serif); font-style: italic; font-weight: 400; font-stretch: 100%;
  text-transform: none; letter-spacing: -.015em;
}
h1 em { display: inline-block; font-size: .64em; line-height: 1.05; margin-top: .14em; color: var(--bronze); }
h2 { font-stretch: 100%; font-weight: 700; letter-spacing: -.022em; line-height: 1.06; font-size: clamp(32px, 3.5vw, 54px); }
h2 em { font-size: 1.06em; color: var(--bronze-text); }
h3 { font-stretch: 100%; font-weight: 650; letter-spacing: -.012em; }
.page-heading h1, .case-heading h1, .legal h1 { font-size: clamp(52px, 7vw, 112px); }
.service-hero h1 { font-size: clamp(50px, 5.6vw, 96px); }
.introduction h2 { font-size: clamp(38px, 4.6vw, 74px); }
.section-heading h2 { font-size: clamp(32px, 3.4vw, 52px); }
.closing h2 {
  font-stretch: 62%; font-weight: 860; text-transform: uppercase; line-height: .9; letter-spacing: -.01em;
  font-size: clamp(52px, 6.6vw, 112px);
}
.project-caption h3, .finish-card h3, .inspiration-grid h2, .guide-grid h3 {
  font-family: var(--display); font-weight: 700; font-stretch: 100%; letter-spacing: -.02em;
  font-size: clamp(26px, 2.4vw, 36px);
}
.step-number, .confidence-list article > span {
  font-family: var(--display); font-stretch: 62%; font-weight: 820; font-size: 46px; line-height: 1; color: var(--bronze);
}

/* ---- Dot labels instead of tracked caps ---- */
.eyebrow {
  text-transform: none; letter-spacing: 0; font-size: 13.5px; font-weight: 500; color: var(--ink-soft);
}
.eyebrow::before {
  content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--bronze);
  margin-right: 10px; vertical-align: .12em;
}
.eyebrow .fine-line { display: none; }
.closing .eyebrow, footer .eyebrow { color: #cbbda9; }
.hero .eyebrow { font-size: 14px; }

/* ---- Pill buttons ---- */
.button {
  border-radius: 999px; letter-spacing: 0; font-size: 14px; font-weight: 500;
  padding: 15px 24px; min-height: 50px; gap: 18px;
}
.button.small, .navigation .button { padding: 11px 18px; min-height: 42px; font-size: 13px; }
.button span { font-size: 16px; }

/* ---- Statement strip ---- */
.statement-strip { text-transform: none; letter-spacing: 0; font-size: 14px; font-weight: 500; color: var(--ink-soft); }
.statement-strip span::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--bronze); margin-right: 10px; vertical-align: .1em; }

/* ---- Split statement headings: label left, statement right ---- */
@media (min-width: 961px) {
  .section-heading > div { display: grid; grid-template-columns: minmax(170px, .3fr) 1fr; column-gap: 5%; align-items: start; }
  .section-heading > div > .eyebrow { margin: .55em 0 0; }
}

/* ---- Rounded photography ---- */
.vm-compare, .project-image-link:not(.vm-has-compare), .finish-picture, .editorial-image, .inspiration-photo,
.vm-figure > img, .case-image-section figure > a:not(.vm-has-compare), .related-project img, .service-hero figure {
  border-radius: var(--r-img); overflow: hidden;
}
.finish-picture img, .editorial-image img { border-radius: 0; }

/* ---- Full-bleed hero (home) ---- */
.hero {
  position: relative; display: grid; grid-template-columns: 1fr; align-items: end;
  margin: 0 clamp(8px, 1.1vw, 18px); border-radius: var(--r-hero); overflow: hidden;
  height: calc(100svh - 106px); min-height: 620px; max-height: 920px; isolation: isolate;
}
.hero-image { position: absolute; inset: 0; height: auto; z-index: -1; }
.hero-image > img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; }
.hero-image::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(20, 21, 19, .08) 30%, rgba(20, 21, 19, .58) 72%, rgba(20, 21, 19, .78) 100%),
              linear-gradient(90deg, rgba(20, 21, 19, .35) 0%, rgba(20, 21, 19, 0) 55%);
}
.hero-image > .photo-credit { top: 18px; bottom: auto; left: auto; right: 18px; }
.hero-image > .image-index {
  position: absolute; top: 18px; left: 18px; right: auto; bottom: auto; z-index: 2; border-radius: 999px;
  padding: 10px 16px; gap: 14px; background: rgba(241, 236, 225, .14); color: #f1ece1;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); font-size: 11px;
}
.hero-image > .image-index span { font-size: 15px; }
.hero-copy {
  position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr);
  column-gap: 6%; align-items: end; padding: 0 5% clamp(36px, 5vw, 64px); color: #f1ece1;
}
.hero .eyebrow { grid-column: 1; color: rgba(241, 236, 225, .86); margin-bottom: 18px; }
.hero .eyebrow::before { background: #d9bf9f; }
.hero h1 {
  grid-column: 1; grid-row: 2 / span 2; align-self: end; margin: 0; color: #f6f1e7;
  font-size: clamp(64px, 8.6vw, 148px);
}
.hero h1 em { color: #e7d2b8; }
.hero-description { grid-column: 2; grid-row: 2; align-self: end; max-width: 420px; color: rgba(241, 236, 225, .88); font-size: 16.5px; line-height: 1.6; margin: 0 0 22px; }
.hero-actions { grid-column: 2; grid-row: 3; margin: 0; }
.hero-foot { display: none; }
.hero .button { background: #f1ece1; border-color: #f1ece1; color: var(--carbon); }
.hero .button:hover { color: #fff; border-color: var(--bronze-text); }
.hero .text-link { color: #f1ece1; border-bottom-color: rgba(241, 236, 225, .6); }
.hero .text-link::after { background: #f1ece1; }
@media (max-width: 960px) {
  .hero { height: auto; min-height: 78svh; max-height: none; margin: 0; border-radius: 0 0 48px 0; }
  .hero-image { height: auto !important; }
  .hero-copy { grid-template-columns: 1fr; padding: 120px 7% 40px; }
  .hero .eyebrow, .hero h1, .hero-description, .hero-actions { grid-column: 1; grid-row: auto; }
  .hero h1 { font-size: clamp(50px, 14vw, 84px); margin-bottom: 20px; }
  .hero-description { font-size: 15px; }
  .page-heading h1, .case-heading h1 { font-size: clamp(44px, 12vw, 64px); }
  .closing h2 { font-size: clamp(44px, 12vw, 64px); }
}
/* the hero is now an image backdrop: no clip-plate intro, just a gentle settle */
html.vm-js:not(.vm-off) .hero-image { animation: vm-fade var(--t-scene) var(--ease-build) 0ms both; }

/* ---- Footer wordmark in the display face ---- */
.vm-wordmark { font-family: var(--display); font-stretch: 62%; font-weight: 880; letter-spacing: -.005em; }
h1, .closing h2, .vm-wordmark { word-spacing: .06em; }
.hero h1 em { margin-top: .04em; }
.region-tags a, .filter-chips a, .finish-filters button { border-radius: 999px; padding-left: 16px; padding-right: 16px; }
@media (max-width: 960px) { .hero-image > .image-index { display: none; } }

/* =====================================================================
   Stocked finish explorer (finishes page, #stocked-range)
   Progressive enhancement: without JS the chart image and links remain.
   ===================================================================== */
.vm-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.stocked-guide.fx-on > a.button[href*="/downloads/"],
.stocked-guide.fx-on > p:has(> a[href*="/downloads/"]),
.stocked-guide.fx-on > a[href*="/downloads/"]:has(img) { display: none; }
.fx { --fx-gap: clamp(16px, 2.2vw, 32px); margin: clamp(28px, 4vw, 52px) 0 clamp(20px, 3vw, 36px); text-align: left; }
.fx button { font: inherit; color: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.fx :focus-visible { outline: 2px solid var(--bronze); outline-offset: 3px; }

/* toolbar */
.fx-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 20px; margin-bottom: var(--fx-gap); }
.fx-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.fx-pill {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 15px; border-radius: 999px;
  border: 1px solid var(--line); background: transparent; font-size: 13.5px; font-weight: 500;
  transition: background-color var(--t-ui) var(--ease-out, ease), color var(--t-ui), border-color var(--t-ui), transform 160ms ease;
}
.fx-pill small { font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; transition: color var(--t-ui); }
.fx-pill:hover { border-color: var(--carbon); }
.fx-pill:active { transform: scale(.96); }
.fx-pill[aria-pressed="true"] { background: var(--carbon); border-color: var(--carbon); color: #f1ece1; }
.fx-pill[aria-pressed="true"] small { color: #cbbda9; }
.fx-search { position: relative; flex: 0 1 280px; }
.fx-search svg { position: absolute; left: 15px; top: 50%; width: 17px; height: 17px; transform: translateY(-50%); fill: none; stroke: var(--muted); stroke-width: 1.6; stroke-linecap: round; pointer-events: none; }
.fx-search input {
  width: 100%; height: 44px; padding: 0 16px 0 42px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--paper, #faf8f4); font: inherit; font-size: 14px; color: var(--carbon);
  transition: border-color var(--t-ui), box-shadow var(--t-ui);
}
.fx-search input:focus { outline: none; border-color: var(--bronze); box-shadow: 0 0 0 4px rgba(139, 113, 85, .14); }

/* body */
.fx-body { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); gap: var(--fx-gap); align-items: start; }
.fx-stage { position: sticky; top: 124px; display: grid; gap: 14px; }
.fx-views { display: inline-flex; justify-self: start; gap: 4px; padding: 4px; border-radius: 999px; background: rgba(30, 31, 29, .06); }
.fx-view { height: 36px; padding: 0 16px; border: 0; border-radius: 999px; background: transparent; font-size: 13px; font-weight: 500; color: var(--ink-soft, #3a3b37); transition: background-color var(--t-ui), color var(--t-ui), box-shadow var(--t-ui); }
.fx-view[aria-pressed="true"] { background: #fff; color: var(--carbon); box-shadow: 0 1px 2px rgba(0,0,0,.08), 0 4px 14px rgba(0,0,0,.06); }

/* scene */
.fx-scene {
  position: relative; aspect-ratio: 5 / 4; overflow: hidden; border-radius: var(--r-img); touch-action: pan-y;
  background: #e6dfd2; isolation: isolate; user-select: none;
}
.fx-layer { position: absolute; inset: 0; --tex: none; --hex: #ccc; }
.fx-layer.fx-next { clip-path: inset(0 100% 0 0); }
.fx-scene.fx-wipe .fx-layer.fx-next { animation: fx-wrap 600ms cubic-bezier(.65, 0, .25, 1) both; }
.fx-edge { position: absolute; top: 0; bottom: 0; left: 0; width: 2px; background: linear-gradient(#e7d2b8, var(--bronze)); box-shadow: 0 0 18px rgba(231, 210, 184, .9); opacity: 0; z-index: 5; pointer-events: none; }
.fx-scene.fx-wipe .fx-edge { animation: fx-edge 600ms cubic-bezier(.65, 0, .25, 1) both; }
@keyframes fx-wrap { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes fx-edge { 0% { left: 0; opacity: 1; } 92% { opacity: 1; } 100% { left: 100%; opacity: 0; } }
.fx-note { position: absolute; left: 14px; bottom: 12px; z-index: 6; margin: 0; padding: 6px 11px; border-radius: 999px; font-size: 11px; background: rgba(241, 236, 225, .82); color: var(--ink-soft, #3a3b37); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }

/* shared surface: the film */
.fx-d, .fx-leaf, .fx-panel, .fx-kick {
  background-color: var(--hex); background-image: linear-gradient(115deg, rgba(255,255,255,.16), rgba(255,255,255,0) 38%, rgba(0,0,0,.08)), var(--tex);
  background-size: 100% 100%, 168px 84px; background-repeat: no-repeat, repeat;
}
.fx-room { position: absolute; inset: 0; background: linear-gradient(180deg, #ece6da 0 72%, #d9d0c1 72% 100%); }
.fx-room::after { content: ""; position: absolute; left: 0; right: 0; top: 72%; height: 28%; background: linear-gradient(180deg, rgba(0,0,0,.08), rgba(0,0,0,0) 40%); }
.fx-cab, .fx-door, .fx-panel { position: absolute; opacity: 0; transform: translateY(10px) scale(.985); transition: opacity 420ms ease, transform 520ms cubic-bezier(.2, .7, .2, 1); }
.fx-scene[data-view="cabinet"] .fx-cab, .fx-scene[data-view="door"] .fx-door, .fx-scene[data-view="panel"] .fx-panel { opacity: 1; transform: none; }

/* cabinetry: benchtop, three doors, kickboard */
.fx-cab { left: 9%; right: 9%; top: 36%; bottom: 17%; display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: 9% 1fr 7%; column-gap: 3px; filter: drop-shadow(0 18px 22px rgba(30, 24, 16, .22)); }
.fx-cab i { display: block; }
.fx-top { grid-column: 1 / -1; background: linear-gradient(180deg, #f7f4ee, #e3ddd2); border-radius: 3px 3px 0 0; box-shadow: 0 2px 0 rgba(0,0,0,.08); }
.fx-d { position: relative; box-shadow: inset 0 0 0 1px rgba(0,0,0,.06); }
.fx-d::after { content: ""; position: absolute; top: 10%; right: 11%; width: 3px; height: 26%; border-radius: 2px; background: linear-gradient(90deg, #8f8a82, #d7d2ca); box-shadow: 1px 1px 2px rgba(0,0,0,.25); }
.fx-d:nth-child(4)::after { right: auto; left: 11%; }
.fx-kick { grid-column: 1 / -1; filter: brightness(.62); }
.fx-layer[data-grain="v"] .fx-d { background-size: 100% 100%, 84px 168px; }

/* door in a wall */
.fx-door { left: 33%; right: 33%; top: 9%; bottom: 17%; }
.fx-arch { position: absolute; inset: -12px -12px 0; background: #f6f2ea; border-radius: 3px 3px 0 0; box-shadow: 0 10px 24px rgba(30, 24, 16, .14); }
.fx-leaf { position: absolute; inset: 0; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08), inset -14px 0 22px rgba(0,0,0,.06); }
.fx-handle { position: absolute; right: 9%; top: 52%; width: 24%; height: 5px; border-radius: 3px; background: linear-gradient(180deg, #d9d4cc, #8f8a82); box-shadow: 0 2px 3px rgba(0,0,0,.28); }
.fx-handle::before { content: ""; position: absolute; right: -4px; top: -4px; width: 13px; height: 13px; border-radius: 50%; background: #b3aea6; }

/* close-up: the film edge-to-edge, larger repeat */
.fx-panel { inset: 0; background-size: 100% 100%, 300px 150px; }
.fx-layer[data-grain="v"] .fx-panel { background-size: 100% 100%, 300px 150px; }

/* info row */
.fx-info { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "meta step" "acts acts"; gap: 14px 16px; align-items: end; }
.fx-meta { grid-area: meta; min-width: 0; }
.fx-code { margin: 0; font-family: var(--display); font-stretch: 62%; font-weight: 860; font-size: clamp(44px, 4.6vw, 72px); line-height: .9; letter-spacing: -.005em; }
.fx-name { margin: 6px 0 0; font-family: var(--display); font-weight: 650; font-size: 20px; letter-spacing: -.012em; }
.fx-fam { margin: 4px 0 0; font-size: 13px; color: var(--muted); }
.fx-tick { animation: fx-tick 420ms cubic-bezier(.2, .7, .2, 1) both; }
.fx-name.fx-tick { animation-delay: 50ms; }
@keyframes fx-tick { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.fx-step { grid-area: step; display: flex; gap: 8px; }
.fx-arrow { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: transparent; font-size: 17px; transition: background-color var(--t-ui), color var(--t-ui), border-color var(--t-ui), transform 160ms ease; }
.fx-arrow:hover { background: var(--carbon); border-color: var(--carbon); color: #f1ece1; }
.fx-arrow:active { transform: scale(.92); }
.fx-actions { grid-area: acts; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.fx-save { display: inline-flex; align-items: center; gap: 9px; height: 42px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--carbon); background: transparent; font-size: 13px; font-weight: 500; transition: background-color var(--t-ui), color var(--t-ui), transform 160ms ease; }
.fx-save svg { width: 17px; height: 17px; fill: transparent; stroke: currentColor; stroke-width: 1.6; transition: fill var(--t-ui), transform 260ms cubic-bezier(.3, 1.6, .5, 1); }
.fx-save:hover { background: rgba(30, 31, 29, .06); }
.fx-save:active { transform: scale(.96); }
.fx-save[aria-pressed="true"] { background: var(--carbon); color: #f1ece1; }
.fx-save[aria-pressed="true"] svg { fill: #d9bf9f; stroke: #d9bf9f; }
.fx-save.fx-pop svg { animation: fx-pop 420ms cubic-bezier(.3, 1.6, .5, 1); }
@keyframes fx-pop { 0% { transform: scale(1); } 40% { transform: scale(1.35); } 100% { transform: scale(1); } }
.fx-sample { min-height: 42px; }

/* swatch grid */
.fx-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; }
.fx-chip {
  position: relative; display: grid; gap: 8px; padding: 6px 6px 10px; border: 1px solid transparent; border-radius: 16px 16px 30px 16px;
  background: transparent; text-align: left;
  transition: background-color var(--t-ui), border-color var(--t-ui), transform 220ms cubic-bezier(.2, .7, .2, 1), box-shadow var(--t-ui);
}
.fx-chip .fx-sw { display: block; aspect-ratio: 4 / 3; border-radius: 11px 11px 24px 11px; background-size: 120px 60px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.07); transition: transform 360ms cubic-bezier(.2, .7, .2, 1); }
.fx-ct { display: grid; gap: 1px; padding: 0 4px; line-height: 1.25; }
.fx-ct b { font-family: var(--display); font-weight: 700; font-size: 14px; letter-spacing: -.01em; }
.fx-ct span { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fx-dot { position: absolute; top: 12px; right: 12px; width: 18px; height: 18px; border-radius: 50%; background: #f1ece1; opacity: 0; transform: scale(.4); transition: opacity 200ms, transform 300ms cubic-bezier(.3, 1.6, .5, 1); }
.fx-dot::after { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: var(--bronze); }
.fx-chip.fx-saved .fx-dot { opacity: 1; transform: none; }
@media (hover: hover) {
  .fx-chip:hover { background: rgba(255, 255, 255, .55); transform: translateY(-3px); box-shadow: 0 10px 24px rgba(30, 24, 16, .08); }
  .fx-chip:hover .fx-sw { transform: scale(1.025); }
}
.fx-chip:active { transform: scale(.97); }
.fx-chip[aria-selected="true"] { background: #fff; border-color: var(--carbon); box-shadow: 0 10px 26px rgba(30, 24, 16, .1); }
.fx-chip[hidden] { display: none; }
.fx-chip.fx-in { animation: fx-in 380ms cubic-bezier(.2, .7, .2, 1) both; }
@keyframes fx-in { from { opacity: 0; transform: translateY(8px) scale(.97); } to { opacity: 1; transform: none; } }
.fx-empty { grid-column: 1 / -1; margin: 0; padding: 26px; border: 1px dashed var(--line); border-radius: 16px; color: var(--muted); font-size: 14px; }

/* footer: shortlist + downloads */
.fx-foot { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); gap: var(--fx-gap); margin-top: clamp(26px, 3.4vw, 44px); padding-top: clamp(22px, 2.6vw, 32px); border-top: 1px solid var(--line); }
.fx-tray-h, .fx-dl-h { display: flex; align-items: baseline; gap: 10px; margin: 0 0 12px; font-family: var(--display); font-weight: 650; font-size: 18px; letter-spacing: -.01em; }
.fx-tray-h b { font-family: var(--sans, inherit); font-size: 12px; font-weight: 500; color: var(--muted); font-variant-numeric: tabular-nums; }
.fx-tray-empty { margin: 0; font-size: 14px; color: var(--muted); max-width: 420px; }
.fx-tray-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; padding: 0; list-style: none; }
.fx-tray-list li { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.5); animation: fx-in 320ms cubic-bezier(.2, .7, .2, 1) both; }
.fx-tchip { display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 4px 0 5px; border: 0; background: transparent; font-size: 13px; }
.fx-tchip .fx-sw { width: 28px; height: 28px; border-radius: 50%; background-size: 60px 30px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }
.fx-x { width: 32px; height: 38px; border: 0; background: transparent; font-size: 17px; color: var(--muted); border-radius: 0 999px 999px 0; transition: color var(--t-ui); }
.fx-x:hover { color: var(--carbon); }
.fx-tray-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.fx-clear { border: 0; background: none; padding: 6px 0; font-size: 13px; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.fx-file {
  display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 14px; padding: 14px 16px; margin-bottom: 8px;
  border: 1px solid var(--line); border-radius: 16px 16px 28px 16px; background: rgba(255,255,255,.45); text-decoration: none; color: var(--carbon);
  transition: background-color var(--t-ui), border-color var(--t-ui), transform 220ms cubic-bezier(.2, .7, .2, 1);
}
.fx-ftype { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--carbon); color: #f1ece1; font-size: 11px; font-weight: 600; letter-spacing: .04em; }
.fx-flabel { font-size: 14.5px; font-weight: 500; }
.fx-fsize { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.fx-fgo { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); transition: background-color var(--t-ui), color var(--t-ui), transform 260ms cubic-bezier(.2, .7, .2, 1); }
.fx-file:hover { background: #fff; border-color: var(--carbon); transform: translateY(-2px); }
.fx-file:hover .fx-fgo { background: var(--bronze); border-color: var(--bronze); color: #fff; transform: translateY(2px); }
.fx-file:active { transform: scale(.985); }
.fx-file:first-of-type .fx-ftype { background: var(--bronze); }

/* tablet / mobile */
@media (max-width: 960px) {
  .fx-bar { display: grid; grid-template-columns: 1fr; }
  .fx-filters { flex-wrap: nowrap; overflow-x: auto; margin: 0 -7vw; padding: 2px 7vw 6px; scrollbar-width: none; scroll-snap-type: x proximity; }
  .fx-filters::-webkit-scrollbar { display: none; }
  .fx-pill { flex: 0 0 auto; scroll-snap-align: start; height: 42px; }
  .fx-search { flex: none; }
  .fx-body, .fx-foot { grid-template-columns: 1fr; }
  .fx-stage { top: 88px; z-index: 4; margin: 0 -7vw; padding: 10px 7vw 12px; background: var(--ivory); box-shadow: 0 10px 18px -16px rgba(0,0,0,.4); gap: 10px; }
  .fx-views { order: 2; justify-self: stretch; display: grid; grid-template-columns: repeat(3, 1fr); }
  .fx-view { height: 38px; }
  .fx-scene { order: 1; aspect-ratio: auto; height: min(34svh, 300px); border-radius: 18px 18px 52px 18px; }
  .fx-info { order: 3; grid-template-columns: 1fr auto; grid-template-areas: "meta step" "acts acts"; gap: 10px; }
  .fx-code { font-size: 38px; }
  .fx-name { font-size: 16px; margin-top: 3px; }
  .fx-fam { display: none; }
  .fx-arrow { width: 44px; height: 44px; }
  .fx-actions { display: grid; grid-template-columns: auto 1fr; }
  .fx-save, .fx-sample { height: 44px; min-height: 44px; justify-content: center; }
  .fx-sample { padding: 0 14px; font-size: 13px; }
  .fx-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .fx-chip { padding: 4px 4px 8px; }
  .fx-ct span { font-size: 11px; }
  .fx-cab { left: 6%; right: 6%; top: 30%; bottom: 14%; }
  .fx-door { left: 30%; right: 30%; top: 8%; bottom: 16%; }
}
@media (max-width: 380px) { .fx-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* motion switch / reduced motion */
html.vm-off .fx *, html.vm-off .fx *::before, html.vm-off .fx *::after { animation: none !important; transition: none !important; }
@media (prefers-reduced-motion: reduce) { .fx *, .fx *::before, .fx *::after { animation: none !important; transition-duration: 1ms !important; } }
@media (min-width: 961px) {
  .fx-scene { aspect-ratio: auto; height: clamp(300px, calc(100svh - 430px), 520px); }
  .fx-stage { top: 122px; }
  .fx-bar { flex-wrap: nowrap; align-items: center; }
  .fx-filters { flex: 1 1 auto; }
  .fx-search { flex: 0 0 240px; }
}
@media (min-width: 961px) and (max-width: 1240px) { .fx-bar { flex-wrap: wrap; } }
.fx-code, .fx-name, .fx-tray-h, .fx-dl-h { color: var(--carbon); }
@media (max-width: 960px) {
  .fx-filters { scroll-padding-left: 7vw; }
  .fx-stage { gap: 8px; padding: 8px 7vw 10px; }
  .fx-scene { height: min(25svh, 210px); }
  .fx-note { font-size: 10px; left: 10px; bottom: 8px; padding: 4px 9px; }
  .fx-views { padding: 3px; }
  .fx-view { height: 32px; font-size: 12.5px; }
  .fx-info { grid-template-columns: minmax(0, 1fr) auto auto; grid-template-areas: "meta save sample"; align-items: center; gap: 8px; }
  .fx-step { display: none; }
  .fx-actions { display: contents; }
  .fx-save { grid-area: save; width: 44px; padding: 0; gap: 0; }
  .fx-save span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .fx-sample { grid-area: sample; padding: 0 16px; }
  .fx-sample .fx-long { display: none; }
  .fx-meta { display: flex; align-items: baseline; gap: 10px; min-width: 0; }
  .fx-code { font-size: 30px; flex: none; }
  .fx-name { margin: 0; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}
.fx-short { display: none; }
@media (min-width: 961px) { .fx-stage { top: calc(var(--fx-top, 106px) + 16px); } }
@media (max-width: 960px) { .fx-stage { top: var(--fx-top, 88px); } .fx-short { display: inline; } }

/* ---- finish explorer: micro-interactions (v4) ---- */
.fx-has-thumb { position: relative; isolation: isolate; }
.fx-thumb { position: absolute; left: 0; top: 0; z-index: -1; border-radius: 999px; pointer-events: none; transform-origin: 0 0; }
.fx-ready .fx-thumb { transition: transform 420ms cubic-bezier(.3, 1.25, .45, 1), width 420ms cubic-bezier(.3, 1.25, .45, 1), height 260ms ease; }
.fx-filters > .fx-thumb { background: var(--carbon); }
.fx-filters.fx-has-thumb .fx-pill[aria-pressed="true"] { background: transparent; border-color: transparent; }
.fx-views > .fx-thumb { background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.08), 0 4px 14px rgba(0,0,0,.06); }
.fx-views.fx-has-thumb .fx-view[aria-pressed="true"] { background: transparent; box-shadow: none; }
.fx-pill, .fx-view { position: relative; }

.fx-pdf {
  display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 8px 0 6px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--paper, #faf8f4); color: var(--carbon); font-size: 13.5px; font-weight: 500; text-decoration: none;
  transition: border-color var(--t-ui), background-color var(--t-ui), transform 160ms ease;
}
.fx-pdf-i { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--bronze); color: #fff; font-size: 9.5px; font-weight: 700; letter-spacing: .04em; }
.fx-pdf-a { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line); transition: transform 260ms cubic-bezier(.3, 1.4, .5, 1), background-color var(--t-ui), color var(--t-ui); }
.fx-pdf:hover { border-color: var(--carbon); background: #fff; }
.fx-pdf:hover .fx-pdf-a { transform: translateY(3px); background: var(--carbon); color: #f1ece1; border-color: var(--carbon); }
.fx-pdf:active { transform: scale(.97); }
.fx-pdf:focus-visible, .fx-pill:focus-visible, .fx-view:focus-visible, .fx-chip:focus-visible { outline: 2px solid var(--bronze); outline-offset: 3px; }

/* preview tilt + light */
.fx-scene { perspective: 900px; }
.fx-scene .fx-layer { transition: transform 600ms cubic-bezier(.2, .7, .2, 1); transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) scale(1.012); }
.fx-scene.fx-tilt .fx-layer { transition-duration: 160ms; }
.fx-scene::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 3; opacity: 0; transition: opacity 400ms ease;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 40%), rgba(255, 255, 255, .16), transparent 60%);
}
.fx-scene.fx-tilt::after { opacity: 1; }

/* grid entrance + selection */
.fx-chip.fx-wait { opacity: 0; }
.fx-chip { position: relative; }
.fx-chip::after {
  content: "✓"; position: absolute; top: 9px; left: 9px; width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center; background: var(--carbon); color: #f1ece1; font-size: 11px; line-height: 1;
  opacity: 0; transform: scale(.4); transition: opacity 200ms ease, transform 320ms cubic-bezier(.3, 1.6, .5, 1); pointer-events: none;
}
.fx-chip[aria-selected="true"]::after { opacity: 1; transform: none; }
.fx-chip.fx-picked .fx-sw { animation: fx-press 420ms cubic-bezier(.3, 1.4, .5, 1); }
@keyframes fx-press { 0% { transform: scale(1); } 35% { transform: scale(.94); } 100% { transform: scale(1); } }

/* desktop: shortlist sits under the preview, always in view */
@media (min-width: 961px) {
  .fx-stage .fx-tray { margin-top: 6px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 18px 18px 40px 18px; background: rgba(255, 255, 255, .45); }
  .fx-stage .fx-tray-empty { margin: 4px 0 0; font-size: 13px; }
  .fx-foot { grid-template-columns: 1fr; }
  .fx-foot .fx-dl { display: grid; grid-template-columns: auto 1fr 1fr; align-items: center; gap: 12px; }
  .fx-foot .fx-dl-h { margin: 0 12px 0 0; }
  .fx-scene { height: clamp(280px, calc(100svh - 520px), 480px); }
}
/* mobile: bigger targets, PDF link full width, name readable */
@media (max-width: 960px) {
  .fx-pdf { justify-content: space-between; width: 100%; }
  .fx-pdf > span:nth-child(2) { flex: 1; }
  .fx-chip { min-height: 44px; }
  .fx-chip::after { top: 8px; left: 8px; width: 20px; height: 20px; }
  .fx-scene .fx-layer { transform: none; }
}
.fx-pdf { white-space: nowrap; }
@media (min-width: 961px) {
  .fx-bar { display: grid; grid-template-columns: minmax(0, 340px) 1fr auto; gap: 14px 16px; }
  .fx-bar .fx-filters { grid-column: 1 / -1; flex-wrap: wrap; }
  .fx-bar .fx-search { grid-column: 1; flex: none; }
  .fx-bar .fx-pdf { grid-column: 3; padding-right: 7px; }
  .fx-scene { height: clamp(250px, calc(100svh - 590px), 460px); }
  .fx-code { font-size: 54px; }
}
@media (max-width: 960px) {
  .fx-meta { display: grid; gap: 1px; align-items: start; }
  .fx-code { font-size: 26px; line-height: 1; }
  .fx-name { font-size: 13px; white-space: normal; overflow: visible; line-height: 1.25; }
}
@media (min-width: 961px) {
  .fx-code { font-size: 44px; }
  .fx-stage { gap: 12px; }
  .fx-scene { height: clamp(240px, calc(100svh - 620px), 440px); }
  .fx-stage .fx-tray { padding: 12px 16px; }
}
@media (max-width: 960px) { .fx-view { height: 40px; } }
@media (min-width: 961px) {
  .fx-stage .fx-tray { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
  .fx-stage .fx-tray-h { margin: 0; }
  .fx-stage .fx-tray-list { margin: 0; flex: 1 1 auto; }
  .fx-stage .fx-tray-acts { flex: 1 0 100%; margin: 0; }
  .fx-stage .fx-tray-empty { flex: 1 0 100%; }
  .fx-scene { height: clamp(220px, calc(100svh - 650px), 440px); }
}
.photo-credit:empty { display: none; }
@media (max-width: 960px) { .fx-views { grid-template-columns: repeat(2, 1fr); } }
/* image labels sit inside the photo, never over copy */
.inspiration-photo, .finish-picture, .editorial-image, .case-image-section figure, .service-hero figure { position: relative; }
.inspiration-photo > .photo-credit, .finish-picture > .photo-credit, .editorial-image > .photo-credit { top: 14px; bottom: auto; left: 14px; border-radius: 999px; padding: 5px 11px; }
