/* ==========================================================================
   MEBRIX: dark editorial theme
   Order: fonts, tokens, base, buttons, header + menu + search, hero slider,
          sections, form, footer, motion, reduced motion, print
   ========================================================================== */

/* ---------- Fonts: Inter + Inter Display, self-hosted (SIL OFL, see /assets/fonts/LICENSE-Inter.txt) ---------- */
@font-face { font-family: "Inter"; src: url("/assets/fonts/inter-light.woff") format("woff"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/assets/fonts/inter-regular.woff") format("woff"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/assets/fonts/inter-medium.woff") format("woff"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/assets/fonts/inter-semibold.woff") format("woff"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter Display"; src: url("/assets/fonts/interdisplay-light.woff") format("woff"); font-weight: 300; font-style: normal; font-display: swap; }

/* ---------- Tokens ---------- */
:root {
  /* Surfaces: warm charcoal, taken from the hero photography */
  --bg: #0B0A09;
  --bg-alt: #100E0C;
  --surface: #161411;
  --surface-2: #1E1B17;
  --line: rgba(237, 231, 221, .10);
  --line-strong: rgba(237, 231, 221, .22);

  /* Text */
  --text: #EDE7DD;           /* 16:1 on --bg */
  --soft: #CFC7BA;
  --muted: #A9A194;          /* 7.6:1 on --bg, 7.1:1 on --surface */

  /* Accents */
  --gold: #D9A862;           /* warm light from the hero; 9:1 on --bg */
  --yellow: #FEDE40;         /* the logo's top bar, used for primary actions */
  --tri-y: #FEDE40;
  --tri-r: #E93B4B;
  --tri-c: #5EC6DF;
  --wa: #25D366;

  --error: #FF8A7A;
  --error-bg: rgba(255, 138, 122, .08);
  --success: #8EDCA8;
  --success-bg: rgba(142, 220, 168, .08);

  /* Type */
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --display: "Inter Display", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --fs-h2: clamp(2.25rem, 1.45rem + 3.2vw, 4rem);
  --fs-h3: clamp(1.3rem, 1.18rem + .5vw, 1.625rem);
  --fs-lead: clamp(1.0625rem, 1rem + .35vw, 1.3125rem);

  /* Layout */
  --gx: clamp(1.25rem, .5rem + 3.4vw, 4rem);           /* page gutter */
  --container: 77.5rem;
  --section-y: clamp(5.5rem, 3rem + 9vw, 10.5rem);
  --bar: 72px;                                          /* compact header height */
  --radius: 6px;

  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --focus: 0 0 0 2px var(--bg), 0 0 0 4px var(--gold);

  /* Theme tokens (dark values). Ivory overrides these further down. */
  --faint: #8F887C;
  --fine: #948C80;
  --faint-2: #8A8276;
  --primary-bg: var(--yellow);
  --primary-ink: #0B0A09;
  --primary-hover: #FFE96F;
  --outline-border: rgba(237, 231, 221, .85);
  --outline-bg: rgba(11, 10, 9, .18);
  --header-bg: rgba(11, 10, 9, .78);
  --header-bg-solid: rgba(11, 10, 9, .95);
  --menu-glow: rgba(217, 168, 98, .12);
  --overlay: rgba(5, 4, 3, .72);
  --panel-shadow: 0 40px 120px -40px rgba(0, 0, 0, .8);
  --pore: rgba(237, 231, 221, .06);
  --field-hover: rgba(237, 231, 221, .45);
  --pending-bg: rgba(217, 168, 98, .08);
  --footer-bg: #070605;
  --wa-bg: rgba(22, 20, 17, .82);
  --step-dim: rgba(217, 168, 98, .35);
  --scroll-thumb: #3B362F;
  /* Preview theme panel (never re-scoped, so it always follows the page palette) */
  --panel-bg: #161411;
  --panel-text: #EDE7DD;
  --panel-muted: #A9A194;
  --panel-line: rgba(237, 231, 221, .14);
  --panel-accent: #D9A862;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
/* Phones: no blue/grey flash on tap (keyboard focus rings are unaffected), no double-tap zoom delay */
html { -webkit-tap-highlight-color: transparent; }
a, button, summary, label, select, input, textarea, [role="button"] { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--bar) + 16px);
  background: var(--bg);
  color-scheme: dark;
  scrollbar-color: var(--scroll-thumb) var(--bg);
}
html.is-locked { overflow: hidden; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--muted);
  background: var(--bg);
  font-feature-settings: "kern", "calt";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img, picture, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3 { margin: 0; color: var(--text); font-weight: 300; }
h2 { font-family: var(--display); font-size: var(--fs-h2); line-height: 1.04; letter-spacing: -.028em; }
h3 { font-family: var(--display); font-size: var(--fs-h3); line-height: 1.22; letter-spacing: -.012em; }
p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }
a { color: var(--gold); text-decoration-thickness: 1px; text-underline-offset: 4px; }
a:hover { color: var(--text); }
ul, ol { margin: 0; padding: 0; }
figure { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
::selection { background: var(--gold); color: var(--bg); }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 4px; }

.container { width: min(100% - 2 * var(--gx), var(--container)); margin-inline: auto; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
[hidden] { display: none !important; }   /* the hidden attribute always wins over component display rules */
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; left: 1rem; top: -100px; z-index: 100;
  background: var(--yellow); color: #0B0A09; padding: .8rem 1.1rem; border-radius: var(--radius);
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 1rem; }

/* Section label: small spaced capitals, echoing the tagline in the logo */
.label {
  display: flex; align-items: center; gap: .9rem; margin: 0;
  font-size: .75rem; font-weight: 500; line-height: 1; letter-spacing: .26em; text-transform: uppercase;
  color: var(--gold);
}
/* The logo's three-bar "E", used as the section mark */
.tri {
  flex: none; width: 24px; height: 11px;
  background-image: linear-gradient(var(--tri-y), var(--tri-y)), linear-gradient(var(--tri-r), var(--tri-r)), linear-gradient(var(--tri-c), var(--tri-c));
  background-repeat: no-repeat;
  background-position: 0 0, 0 4px, 0 8px;
  background-size: 24px 3px, 19px 3px, 24px 3px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .85rem;
  min-height: 56px; padding: 0 1.6rem;
  border: 1.5px solid transparent; border-radius: var(--radius);
  font-size: .875rem; font-weight: 500; line-height: 1; letter-spacing: .14em; text-transform: uppercase;
  text-decoration: none; white-space: nowrap;
  transition: background-color .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease), transform .35s var(--ease-out);
}
.btn .icon { width: 24px; height: 24px; flex: none; }
.arrow { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: transform .5s var(--ease-out); }
.btn:hover .arrow, .text-link:hover .arrow { transform: translateX(5px); }
/* A soft press instead of the tap flash */
.btn:active, .icon-btn:active, .nav-toggle:active, .slide-tab:active, .slide-pause:active, .wa-float:active { transform: scale(.97); transition-duration: .12s; }
.text-link:active, .footer-links a:active, .menu-links a:active { opacity: .65; }
.btn-outline { color: var(--text); border-color: var(--outline-border); background: var(--outline-bg); }
.btn-outline:hover { background: var(--text); color: var(--bg); border-color: var(--text); }
.btn-gold { background: var(--primary-bg); color: var(--primary-ink); border-color: var(--primary-bg); }
.btn-gold:hover { background: var(--primary-hover); border-color: var(--primary-hover); color: var(--primary-ink); transform: translateY(-1px); }
.btn-ghost { color: var(--text); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--wa); color: var(--text); }
.btn-ghost .icon { color: var(--wa); }
.btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; }
.btn-gold[disabled] { opacity: 1; background: transparent; border-color: var(--line-strong); color: var(--faint-2); }
@media (max-width: 480px) {
  .btn { white-space: normal; text-align: left; line-height: 1.35; padding-block: .85rem; }
}

.text-link {
  display: inline-flex; align-items: center; gap: .6rem; padding: .5rem 0;
  font-size: .78rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold); text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size .5s var(--ease-out), color .3s;
}
.text-link .arrow { width: 16px; height: 16px; }
.text-link:hover { color: var(--text); background-size: 100% 1px; }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  --logo-w: clamp(176px, 26vw, 440px);
  --logo-top: clamp(18px, 2.2vw, 34px);
  position: fixed; inset: 0 0 auto 0; z-index: 60; height: var(--bar);
  transition: background-color .5s var(--ease), border-color .5s var(--ease), -webkit-backdrop-filter .5s, backdrop-filter .5s;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: var(--header-bg);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  backdrop-filter: blur(18px) saturate(1.3);
  border-bottom-color: var(--line);
}
html.menu-open .site-header { background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; border-bottom-color: transparent; }

/* Logo: full lockup over the hero, wordmark in the compact bar (cross-fade while resizing) */
.brand {
  position: absolute; left: 50%; top: var(--logo-top); margin-left: calc(var(--logo-w) / -2);
  width: var(--logo-w); aspect-ratio: 699 / 154;
  transition: width .7s var(--ease-out), top .7s var(--ease-out), margin-left .7s var(--ease-out);
}
.brand picture { position: absolute; left: 0; top: 0; width: 100%; transition: opacity .5s var(--ease); }
.brand img { width: 100%; height: auto; }
.brand-mark { opacity: 0; }
.brand-c { display: none; }
.is-scrolled .brand { width: clamp(150px, 14vw, 196px); top: calc((var(--bar) - clamp(150px, 14vw, 196px) * 70 / 695) / 2); aspect-ratio: 695 / 70; margin-left: calc(clamp(150px, 14vw, 196px) / -2); }
.is-scrolled .brand-full { opacity: 0; }
.is-scrolled .brand-mark { opacity: 1; }

/* Search and theme on the left, menu on the right; the row spans the bar, so clicks pass through to the logo */
.header-actions {
  position: absolute; left: calc(var(--gx) - 10px); right: calc(var(--gx) - 10px);
  top: calc(var(--logo-top) + var(--logo-w) * 70 / 699 / 2 - 22px);
  display: flex; align-items: center; gap: .25rem; pointer-events: none;
  transition: top .7s var(--ease-out);
}
.header-actions > * { pointer-events: auto; }
.header-actions .nav-toggle { margin-left: auto; }
.is-scrolled .header-actions { top: calc((var(--bar) - 44px) / 2); }

.icon-btn, .nav-toggle {
  display: inline-grid; place-items: center; width: 48px; height: 44px; padding: 0;
  background: none; border: 0; border-radius: var(--radius); color: var(--text);
}
.icon-btn svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; transition: transform .4s var(--ease-out); }
.icon-btn:hover svg { transform: scale(1.08); }

/* Menu button: the three bars of the logo's "E"; they fold into a cross when open */
.bars { position: relative; width: 34px; height: 22px; }
.bars span {
  position: absolute; left: 0; height: 3.5px; width: 34px; border-radius: 1px;
  transition: transform .6s var(--ease-out), opacity .3s, width .5s var(--ease-out);
}
.bars span:nth-child(1) { top: 0; background: var(--tri-y); }
.bars span:nth-child(2) { top: 9.25px; width: 28px; background: var(--tri-r); }
.bars span:nth-child(3) { top: 18.5px; background: var(--tri-c); }
.nav-toggle:hover .bars span:nth-child(2) { width: 34px; }
.nav-toggle[aria-expanded="true"] .bars span:nth-child(1) { transform: translateY(9.25px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars span:nth-child(2) { opacity: 0; transform: scaleX(.2); }
.nav-toggle[aria-expanded="true"] .bars span:nth-child(3) { transform: translateY(-9.25px) rotate(-45deg); }

@media (max-width: 600px) {
  .site-header { --logo-w: clamp(158px, 46vw, 220px); --logo-top: 18px; }
  .bars { width: 30px; }
  .bars span { width: 30px; }
  .bars span:nth-child(2) { width: 24px; }
}

/* ==========================================================================
   Menu overlay
   ========================================================================== */
.menu {
  position: fixed; inset: 0; z-index: 55; overflow-y: auto; overscroll-behavior: contain;
  background:
    radial-gradient(120% 80% at 85% 0%, var(--menu-glow), transparent 55%),
    var(--bg);
  visibility: hidden; opacity: 0;
  transition: opacity .6s var(--ease), visibility 0s linear .6s;
}
.menu.is-open { visibility: visible; opacity: 1; transition: opacity .6s var(--ease), visibility 0s; }
.menu-inner {
  min-height: 100%;
  display: grid; grid-template-columns: 1.5fr 1fr; align-items: end; gap: 3rem;
  padding: calc(var(--bar) + clamp(3rem, 9vh, 6rem)) var(--gx) clamp(2.5rem, 6vh, 4.5rem);
}
.menu-links { list-style: none; }
.menu-links li { overflow: hidden; }
.menu-links a {
  display: inline-block; padding: .08em 0;
  font-family: var(--display); font-weight: 300; font-size: min(clamp(2.4rem, 1.3rem + 4.4vw, 5.5rem), 7.6vh); line-height: 1.06; letter-spacing: -.03em;
  color: var(--text); text-decoration: none;
  transform: translateY(105%);
  transition: transform .9s var(--ease-out), color .3s;
  transition-delay: calc(var(--i, 0) * 55ms);
}
.menu.is-open .menu-links a { transform: none; }
.menu-links a:hover { color: var(--gold); }
.menu-links a[aria-current="true"] { color: var(--gold); }
.menu-aside {
  padding-bottom: .6rem;
  opacity: 0; transform: translateY(24px);
  transition: opacity .8s var(--ease-out) .35s, transform .9s var(--ease-out) .35s;
}
.menu.is-open .menu-aside { opacity: 1; transform: none; }
.menu-contact { list-style: none; margin: 1.4rem 0 2rem; display: grid; gap: .55rem; }
.menu-contact a { color: var(--soft); text-decoration: none; font-size: 1.125rem; }
.menu-contact a:hover { color: var(--gold); }
.menu-ctas { display: grid; gap: .75rem; max-width: 22rem; }
@media (max-width: 860px) {
  .menu-inner { grid-template-columns: minmax(0, 1fr); align-items: start; gap: 2.5rem; padding-top: calc(var(--bar) + 3.5rem); }
}

/* ==========================================================================
   Search overlay
   ========================================================================== */
.search {
  position: fixed; inset: 0; z-index: 80;
  display: flex; justify-content: center; align-items: flex-start;
  padding: clamp(5rem, 14vh, 9rem) 1rem 1rem;
  background: var(--overlay);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  opacity: 0; transition: opacity .35s var(--ease);
}
.search[hidden] { display: none; }
.search.is-open { opacity: 1; }
.search-panel {
  width: min(100%, 720px); max-height: calc(100svh - 7rem); display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: 12px; overflow: hidden;
  box-shadow: var(--panel-shadow);
  transform: translateY(-14px) scale(.985); transition: transform .5s var(--ease-out);
}
.search.is-open .search-panel { transform: none; }
.search-field { display: flex; align-items: center; gap: .85rem; padding: 0 .9rem 0 1.2rem; border-bottom: 1px solid var(--line); }
.search-field:focus-within { border-bottom-color: var(--gold); }
.search-field > svg { width: 22px; height: 22px; flex: none; fill: none; stroke: var(--muted); stroke-width: 1.7; stroke-linecap: round; }
.search-field input {
  flex: 1; min-width: 0; height: 66px; border: 0; background: none; outline: none;
  font-size: 1.1875rem; color: var(--text);
}
.search-field input:focus-visible { box-shadow: none; }
.search-field input::placeholder { color: var(--faint-2); }
.search-field input::-webkit-search-cancel-button { display: none; }
.search-close {
  flex: none; padding: .5rem .75rem; border: 1px solid var(--line-strong); border-radius: 4px; background: none;
  font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted);
}
.search-close:hover { color: var(--text); border-color: var(--text); }
.search-results { list-style: none; overflow-y: auto; padding: .4rem 0; }
.search-results li {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  padding: .85rem 1.25rem; cursor: pointer; border-left: 2px solid transparent;
}
.search-results li[aria-selected="true"] { background: var(--surface-2); border-left-color: var(--gold); }
.search-results .r-title { color: var(--text); }
.search-results li[aria-selected="true"] .r-title { color: var(--gold); }
.search-results .r-meta { flex: none; font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; color: var(--faint-2); }
.search-results mark { background: none; color: var(--gold); }
.search-empty { padding: 1.25rem; margin: 0; color: var(--muted); }

/* ==========================================================================
   Hero slider
   ========================================================================== */
.hero {
  position: relative; height: 100vh; height: 100svh; min-height: 560px; max-height: 1440px;
  overflow: hidden; background: #000; isolation: isolate;
}
.slides, .slide { position: absolute; inset: 0; }
.slide { opacity: 0; transition: opacity 1.8s var(--ease-io); }
.slide.is-active { opacity: 1; z-index: 1; }
.slide picture, .slide img { width: 100%; height: 100%; }
.slide img { object-fit: cover; }
.pos-studio { object-position: 64% 50%; }
.pos-gold { object-position: 62% 50%; }
.pos-export { object-position: 38% 50%; }
@media (max-aspect-ratio: 4/5) { .slide img { object-position: 50% 50%; } }

/* Legibility: soft shade at the top (header) and bottom-left (buttons) */
.hero::before, .hero::after { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.slide-dim::after { content: ""; position: absolute; inset: 0; background: rgba(8, 7, 6, .24); }
.hero::after {
  background:
    linear-gradient(0deg, rgba(5, 4, 3, .82) 0%, rgba(5, 4, 3, .35) 26%, rgba(5, 4, 3, 0) 48%),
    linear-gradient(90deg, rgba(5, 4, 3, .38) 0%, rgba(5, 4, 3, 0) 45%);
}

.hero-content {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem;
  padding: 0 var(--gx) clamp(1.75rem, 6vh, 4.5rem);
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.hero-ctas .btn { min-height: clamp(54px, 4.2vw, 62px); padding: 0 clamp(1.4rem, 1.8vw, 1.9rem); font-size: clamp(.8125rem, .74rem + .2vw, .9375rem); }
.hero-ctas .btn-gold .icon { width: 28px; height: 28px; }

.hero-controls { display: flex; align-items: center; gap: 1.25rem; color: var(--soft); }
.slide-caption {
  margin: 0; max-width: 18rem; text-align: right;
  font-size: .7rem; letter-spacing: .22em; text-transform: uppercase; line-height: 1.5; color: rgba(237, 231, 221, .8);
  transition: opacity .5s var(--ease);
}
.slide-caption.is-changing { opacity: 0; }
.slide-tabs { display: flex; gap: .5rem; }
.slide-tab { position: relative; width: 44px; height: 32px; padding: 0; background: none; border: 0; }
.slide-tab span { position: absolute; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px; background: rgba(237, 231, 221, .28); overflow: hidden; }
.slide-tab span::after {
  content: ""; position: absolute; inset: 0; background: var(--text);
  transform: scaleX(0); transform-origin: left;
}
.slide-tab.is-done span::after { transform: scaleX(1); }
.slide-tab.is-active span::after { transform: scaleX(1); }
.slide-tab:hover span { background: rgba(237, 231, 221, .55); }
.slide-pause {
  display: grid; place-items: center; width: 40px; height: 40px; padding: 0;
  border: 1px solid rgba(237, 231, 221, .4); border-radius: 50%; background: rgba(11, 10, 9, .25); color: var(--text);
  transition: border-color .3s, background-color .3s;
}
.slide-pause:hover { border-color: var(--text); background: rgba(11, 10, 9, .5); }
.slide-pause svg { width: 16px; height: 16px; fill: currentColor; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.slide-pause .i-pause { fill: none; }
.slide-pause .i-play { display: none; stroke-width: 1; stroke-linejoin: round; }
.slide-pause[aria-pressed="true"] .i-pause { display: none; }
.slide-pause[aria-pressed="true"] .i-play { display: block; }

/* keep the two buttons on one line on tablets in landscape */
@media (max-width: 1400px) { .slide-caption { max-width: 13rem; } }
@media (max-width: 860px) {
  .hero-content { flex-direction: column; align-items: stretch; gap: 1.5rem; }
  .hero-ctas { flex-direction: column; gap: .75rem; }
  .hero-ctas .btn { width: 100%; justify-content: space-between; }
  .hero-ctas .btn-gold .arrow { margin-left: auto; }
  .hero-controls { justify-content: space-between; }
  .slide-caption { display: none; }
}
@media (max-height: 520px) and (orientation: landscape) {
  .hero { min-height: 420px; }
  .hero-content { flex-direction: row; align-items: flex-end; }
  .hero-ctas { flex-direction: row; }
  .hero-ctas .btn { width: auto; }
  .slide-caption { display: none; }
}

/* ==========================================================================
   Sections (shared)
   ========================================================================== */
.section { position: relative; padding-block: var(--section-y); }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 46rem; margin-bottom: clamp(3rem, 2rem + 3vw, 5rem); }
.section-head h2 { margin-top: 1.5rem; }
.section-head > p:not(.label) { margin-top: 1.5rem; font-size: var(--fs-lead); font-weight: 300; line-height: 1.6; color: var(--muted); }
.section-note { margin-top: clamp(2.5rem, 4vw, 3.5rem); font-size: .875rem; color: var(--faint); max-width: 46rem; }
.lead { font-family: var(--display); font-size: clamp(1.25rem, 1.05rem + .8vw, 1.75rem); font-weight: 300; line-height: 1.42; letter-spacing: -.01em; color: var(--text); }
.fine { font-size: .8125rem; color: var(--fine); margin-top: .75rem; }
figcaption { margin-top: .9rem; font-size: .75rem; letter-spacing: .04em; color: var(--faint); }

/* ---------- Products ---------- */
.product-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(1rem, 1.6vw, 1.75rem); }
.product {
  position: relative; grid-column: span 2;
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: 4px; overflow: hidden;
  transition: border-color .5s var(--ease);
}
.product:hover { border-color: var(--line-strong); }
.product::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px; z-index: 2;
  background: linear-gradient(90deg, var(--tri-y) 0 33.4%, var(--tri-r) 33.4% 66.7%, var(--tri-c) 66.7%);
  transform: scaleX(0); transform-origin: left; transition: transform .8s var(--ease-out);
}
.product:hover::before, .product:focus-within::before { transform: scaleX(1); }
.product-media { position: relative; overflow: hidden; aspect-ratio: 4 / 3; background: #000; }
.product-media picture, .product-media img { width: 100%; height: 100%; }
.product-media img { object-fit: cover; transition: transform 1.6s var(--ease-out); }
.product:hover .product-media img { transform: scale(1.06); }
.product-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(22, 20, 17, .55), rgba(22, 20, 17, 0) 40%); pointer-events: none; }
.product-body { display: flex; flex-direction: column; flex: 1; padding: clamp(1.4rem, 1rem + 1vw, 2rem); }
.product-body h3 + p { margin-top: .75rem; font-size: .975rem; flex-grow: 1; }
.spec-line { margin: 1.4rem 0 1.1rem; padding: .9rem 0; border-block: 1px solid var(--line); display: grid; gap: .45rem; font-size: .875rem; }
.spec-line div { display: grid; grid-template-columns: 7.5rem 1fr; gap: 1rem; }
.spec-line dt { color: var(--faint); }
.spec-line dd { margin: 0; color: var(--soft); }
.product .text-link { align-self: flex-start; }

.product-wide { grid-column: span 3; flex-direction: row; }
.product-wide .product-media { flex: 0 0 44%; aspect-ratio: auto; min-height: 100%; }
.product-wide .spec-line div { grid-template-columns: 6.25rem 1fr; }
.product-wide .product-media::after { background: linear-gradient(270deg, rgba(22, 20, 17, .5), rgba(22, 20, 17, 0) 40%); }

@media (max-width: 1100px) {
  .product-wide { flex-direction: column; }
  /* min-height: 0 undoes the side-by-side stretch, so the text is never pushed out of the card */
  .product-wide .product-media { flex: none; aspect-ratio: 4 / 3; min-height: 0; }
  .product-wide .product-media::after { background: linear-gradient(0deg, rgba(22, 20, 17, .55), rgba(22, 20, 17, 0) 40%); }
}
@media (max-width: 960px) {
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product, .product-wide { grid-column: span 1; }
  .product-grid > :last-child { grid-column: span 2; flex-direction: row; }
  .product-grid > :last-child .product-media { flex: 0 0 50%; aspect-ratio: auto; min-height: 100%; }
}
@media (max-width: 640px) {
  .product-grid { grid-template-columns: minmax(0, 1fr); }
  .product, .product-wide, .product-grid > :last-child { grid-column: auto; flex-direction: column; }
  .product-grid > :last-child .product-media { flex: none; aspect-ratio: 4 / 3; min-height: 0; }
}

/* ---------- Applications ---------- */
.apps-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(3rem, 6vw, 7rem); align-items: start; }
.apps-intro { position: sticky; top: calc(var(--bar) + 2rem); }
.apps-intro .section-head { margin-bottom: 2.5rem; }
.apps-media { position: relative; }
.apps-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 4px; }
.app-list { list-style: none; border-top: 1px solid var(--line-strong); }
.app {
  display: grid; grid-template-columns: 56px 1fr; gap: 1.6rem;
  padding: clamp(1.8rem, 1.2rem + 1.5vw, 2.6rem) 0; border-bottom: 1px solid var(--line);
}
.app-icon { width: 46px; height: 46px; fill: none; stroke: var(--gold); stroke-width: 1.25; stroke-linejoin: round; stroke-linecap: round; transition: transform .6s var(--ease-out); }
.app:hover .app-icon { transform: translateY(-3px); }
.app h3 + p { margin-top: .7rem; }
.app-forms { margin: .9rem 0 .35rem; font-size: .875rem; color: var(--soft); }
.app-forms span { margin-right: .75rem; font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--faint); }
@media (max-width: 960px) {
  .apps-grid { grid-template-columns: minmax(0, 1fr); gap: 3rem; }
  .apps-intro { position: static; }
  .apps-media img { aspect-ratio: 16 / 10; }
}
@media (max-width: 560px) { .app { grid-template-columns: minmax(0, 1fr); gap: 1rem; } }

/* ---------- Quality ---------- */
.section-pores::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .55;
  background-image: radial-gradient(var(--pore) 1px, transparent 1.5px);
  background-size: 24px 24px;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 20%, #000 80%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 20%, #000 80%, transparent);
}
.section-pores > .container { position: relative; }
.quality-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(3rem, 6vw, 7rem); align-items: start; }
.steps { list-style: none; counter-reset: step; position: relative; margin-bottom: 3rem; }
.steps::before, .steps::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 1px; }
.steps::before { background: var(--line-strong); }
.steps::after {
  width: 2px; left: -.5px;
  background: linear-gradient(var(--tri-y), var(--tri-r) 55%, var(--tri-c));
  transform-origin: top; transform: scaleY(var(--p, 1)); transition: transform .25s linear;
}
.steps li { counter-increment: step; position: relative; padding: 1.75rem 0 1.75rem 5rem; border-bottom: 1px solid var(--line); }
.steps li:first-child { padding-top: .5rem; }
.steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute; left: 1.75rem; top: 1.95rem;
  font-size: .8125rem; font-weight: 500; letter-spacing: .1em; font-variant-numeric: tabular-nums;
  color: var(--gold); transition: color .5s var(--ease);
}
.steps li:first-child::before { top: .75rem; }
.steps h3 { font-size: clamp(1.2rem, 1.1rem + .4vw, 1.45rem); }
.steps p { margin-top: .5rem; }
.quality-media { position: sticky; top: calc(var(--bar) + 2rem); }
.quality-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 45%; border-radius: 4px; }
@media (max-width: 960px) {
  .quality-grid { grid-template-columns: minmax(0, 1fr); gap: 3rem; }
  .quality-media { position: static; }
  .quality-media img { aspect-ratio: 4 / 3; }
}

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(3rem, 6vw, 7rem); align-items: center; }
.about-copy h2 { margin: 1.5rem 0 2rem; max-width: 15ch; }
.about-copy .lead { margin-bottom: 1.5rem; }
.about-copy p:not(.lead):not(.label) { max-width: 36rem; }
.about-media { position: relative; }
.about-media picture { position: relative; isolation: isolate; }
.about-media picture::after {
  content: ""; position: absolute; inset: 0; z-index: -1; border: 1px solid var(--line-strong); border-radius: 4px;
  transform: translate(16px, 16px);
}
.about-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 4px; }
.about-media figcaption { margin-top: 1.75rem; }
.strengths {
  list-style: none; margin-top: clamp(4rem, 8vw, 7rem);
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line-strong);
}
.strengths li { padding: 2rem 2rem 2rem 0; border-bottom: 1px solid var(--line); }
.strengths li:not(:nth-child(3n + 1)) { padding-left: 2rem; border-left: 1px solid var(--line); }
.strengths h3 { font-size: 1.3rem; }
.strengths p { margin-top: .5rem; font-size: .95rem; }
@media (max-width: 960px) {
  .about-grid { grid-template-columns: minmax(0, 1fr); gap: 3.5rem; }
  .about-media img { aspect-ratio: 3 / 2; }
  .about-media { max-width: 40rem; }
  .strengths { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .strengths li:not(:nth-child(3n + 1)) { padding-left: 0; border-left: 0; }
  .strengths li:nth-child(even) { padding-left: 2rem; border-left: 1px solid var(--line); }
}
@media (max-width: 600px) {
  .strengths { grid-template-columns: minmax(0, 1fr); }
  .strengths li, .strengths li:nth-child(even) { padding: 1.5rem 0; border-left: 0; }
  .about-media picture::after { transform: translate(10px, 10px); }
}

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(3rem, 6vw, 7rem); align-items: start; }
.faq-grid .section-head { position: sticky; top: calc(var(--bar) + 2rem); margin-bottom: 0; }
.faq-list { border-top: 1px solid var(--line-strong); }
.faq-list details { border-bottom: 1px solid var(--line); overflow: hidden; }
.faq-list summary { list-style: none; position: relative; cursor: pointer; padding: 1.6rem 3rem 1.6rem 0; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary h3 { font-family: var(--font); font-size: 1.0625rem; font-weight: 400; letter-spacing: 0; color: var(--text); transition: color .3s; }
.faq-list summary:hover h3 { color: var(--gold); }
.faq-list summary::before, .faq-list summary::after {
  content: ""; position: absolute; right: .35rem; top: 50%; width: 16px; height: 1.5px; background: var(--gold);
  transition: transform .5s var(--ease-out);
}
.faq-list summary::after { transform: rotate(90deg); }
.faq-list details[open] summary::after { transform: rotate(0deg); }
.faq-list details[open] summary::before { transform: rotate(180deg); }
.faq-list details p { padding: 0 3rem 1.75rem 0; max-width: 44rem; }
@media (max-width: 960px) {
  .faq-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .faq-grid .section-head { position: static; margin-bottom: 3rem; }
}

/* ---------- Contact & form ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(3rem, 6vw, 7rem); align-items: start; }
.contact-info h2 { margin: 1.5rem 0 1.75rem; }
.contact-info .lead { font-size: clamp(1.125rem, 1rem + .5vw, 1.375rem); color: var(--muted); }
.contact-list { margin: 2.5rem 0; border-top: 1px solid var(--line-strong); }
.contact-list div { display: grid; grid-template-columns: 6.5rem 1fr; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.contact-list dt { font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--faint); padding-top: .35rem; }
.contact-list dd { margin: 0; overflow-wrap: anywhere; }
.contact-list a { color: var(--text); text-decoration: none; }
.contact-list a:hover { color: var(--gold); }

.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: clamp(1.5rem, 1rem + 2.5vw, 3.25rem); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 2rem; }
.field { margin-bottom: 1.85rem; min-width: 0; }
.field label { display: block; margin-bottom: .35rem; font-size: .7rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--soft); }
.field label span[aria-hidden] { color: var(--gold); }
.optional { font-weight: 400; letter-spacing: .08em; text-transform: none; color: var(--faint); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: .7rem 0;
  background: transparent; border: 0; border-bottom: 1px solid var(--line-strong); border-radius: 0;
  font-size: 1.0625rem; line-height: 1.4; color: var(--text);
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.field textarea { resize: vertical; min-height: 130px; }
.field input::placeholder, .field textarea::placeholder { color: var(--faint); }
.field input:hover, .field select:hover, .field textarea:hover { border-bottom-color: var(--field-hover); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible {
  border-bottom-color: var(--gold); box-shadow: 0 1px 0 0 var(--gold); border-radius: 0;
}
.field select {
  appearance: none; padding-right: 2rem; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%), linear-gradient(135deg, var(--gold) 50%, transparent 50%);
  background-position: calc(100% - 12px) 55%, calc(100% - 6px) 55%; background-size: 6px 6px; background-repeat: no-repeat;
}
.field select option { background: var(--surface); color: var(--text); }
.field input:-webkit-autofill { -webkit-text-fill-color: var(--text); box-shadow: 0 0 0 100px var(--surface) inset; caret-color: var(--text); }
.field [aria-invalid="true"] { border-bottom-color: var(--error); box-shadow: 0 1px 0 0 var(--error); }
.field-error { margin: .45rem 0 0; font-size: .875rem; color: var(--error); }
.field-error:empty { display: none; }
.field-error::before { content: "! "; font-weight: 600; }

.form-summary { padding: 1rem 1.1rem; margin-bottom: 1.75rem; border-left: 2px solid var(--error); background: var(--error-bg); color: var(--error); font-size: .9rem; }
.form-summary ul { margin: .5rem 0 0 1.2rem; }
.form-summary a { color: var(--error); }
.form-status { margin-top: 1.5rem; padding: 1rem 1.1rem; font-size: .9375rem; border-left: 2px solid; }
.form-status.is-success { border-color: var(--success); background: var(--success-bg); color: var(--success); }
.form-status.is-error { border-color: var(--error); background: var(--error-bg); color: var(--error); }
.form-status.is-error a { color: var(--error); }
.form-status-pending { margin: 0 0 2rem; border-color: var(--gold); background: var(--pending-bg); color: var(--soft); }
.form-status strong { display: block; margin-bottom: .2rem; color: var(--text); font-weight: 500; }

.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.turnstile-slot:not(:empty) { margin-bottom: 1.75rem; min-height: 65px; }
.btn-submit { width: 100%; margin-top: .5rem; }

@media (max-width: 960px) { .contact-grid { grid-template-columns: minmax(0, 1fr); gap: 3.5rem; } }
@media (max-width: 600px) { .field-row { grid-template-columns: minmax(0, 1fr); } .contact-list div { grid-template-columns: 5.5rem 1fr; } }

/* ---------- Contact info: telephone, email, address (icons in hairline circles) ---------- */
.contact-info-title {
  margin-top: 2.75rem; font-family: var(--font); font-size: .75rem; font-weight: 500;
  letter-spacing: .26em; text-transform: uppercase; color: var(--gold);
}
.contact-list.contact-cards { margin: 1rem 0 2.5rem; }
.contact-cards > div { display: block; position: relative; padding: 1.2rem 0 1.2rem 4rem; min-height: 5.25rem; }
.contact-cards dt { padding-top: .1rem; }
.contact-cards dd { margin-top: .35rem; font-size: 1.0625rem; line-height: 1.55; color: var(--text); }
.contact-cards address { font-style: normal; color: var(--soft); }
.contact-cards dd .text-link { margin-top: .35rem; padding: .35rem 0; color: var(--gold); }
.contact-cards dd .text-link:hover { color: var(--text); }
.nowrap { white-space: nowrap; }
.ci-icon {
  position: absolute; left: 0; top: 1.15rem; width: 46px; height: 46px; padding: 11px;
  border: 1px solid var(--line-strong); border-radius: 50%;
  fill: none; stroke: var(--gold); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
  transition: border-color .4s var(--ease), transform .5s var(--ease-out);
}
.contact-cards > div:hover .ci-icon { border-color: var(--gold); transform: translateY(-2px); }
@media (max-width: 600px) { .contact-cards > div { grid-template-columns: none; padding-left: 3.6rem; } .ci-icon { width: 42px; height: 42px; padding: 10px; } }

/* ---------- Map (Google Maps embed, loads lazily) ---------- */
.contact-map { margin-top: clamp(3.5rem, 7vw, 6rem); }
.map-frame {
  /* a fixed height, not aspect-ratio + min-height (that combination would force extra width on narrow screens) */
  position: relative; height: clamp(300px, 34vw, 460px); overflow: hidden;
  border: 1px solid var(--line); border-radius: 6px; background: var(--surface-2);
}
.map-frame iframe {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0;
  filter: grayscale(.25) sepia(.06); transition: filter .6s var(--ease);
}
.map-frame:hover iframe, .map-frame:focus-within iframe { filter: none; }
.contact-map .map-caption {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 2rem;
  margin-top: 1.1rem; font-size: .9375rem; letter-spacing: 0; color: var(--muted);
}
.map-links { display: flex; flex-wrap: wrap; gap: .25rem 1.75rem; }
@media (max-width: 760px) { .map-frame { height: clamp(260px, 72vw, 380px); } }

/* ---------- About: closing line ---------- */
.about-copy .about-signoff {
  margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid var(--line-strong); max-width: 36rem;
  font-family: var(--display); font-size: clamp(1.1rem, 1rem + .45vw, 1.375rem); font-weight: 300;
  letter-spacing: -.005em; color: var(--text);
}
.about-signoff span { font-family: var(--font); font-size: .82em; font-weight: 500; letter-spacing: .2em; }

/* ---------- Footer ---------- */
.site-footer { background: var(--footer-bg); border-top: 1px solid var(--line); padding: clamp(4rem, 8vw, 6.5rem) 0 2rem; font-size: .9375rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 3rem; padding-bottom: 3rem; border-bottom: 1px solid var(--line); }
.footer-brand img { width: clamp(200px, 22vw, 280px); }
.footer-brand .footer-tagline {
  margin: 1.6rem 0 0; font-size: .78rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--text);
}
.footer-brand .fine { margin-top: .55rem; max-width: 24rem; }
.footer-address { margin-top: 1.1rem; font-style: normal; font-size: .875rem; line-height: 1.6; color: var(--muted); max-width: 22rem; }
.footer-links { list-style: none; display: grid; gap: .6rem; margin-top: 1.25rem; }
.site-footer a { color: var(--soft); text-decoration: none; overflow-wrap: anywhere; }
.site-footer a:hover { color: var(--gold); }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding-top: 1.75rem; font-size: .8125rem; color: var(--faint-2); }
.footer-base p { margin: 0; }
.footer-credit { padding-top: 1.25rem; font-size: .75rem; letter-spacing: .04em; color: var(--faint-2); }
.footer-credit p { margin: 0; }
.footer-credit a { color: var(--muted); text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .45s var(--ease-out), color .3s; }
.footer-credit a:hover { color: var(--gold); background-size: 100% 1px; }
.footer-credit .heart { display: inline-block; color: #E93B4B; line-height: 1; transform-origin: 50% 60%; }
@keyframes mx-heart { 0%, 100% { transform: scale(1); } 30% { transform: scale(1.3); } 60% { transform: scale(.92); } }
@media (prefers-reduced-motion: no-preference) {
  .footer-credit p:hover .heart { animation: mx-heart .9s var(--ease-out); }
}
/* tablets: logo on its own row, links and contact side by side, so emails never break mid-word */
@media (max-width: 1000px) {
  .footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) { .footer-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Floating WhatsApp ---------- */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 40;
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  background: var(--wa-bg); border: 1px solid var(--line-strong); color: var(--wa);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  transition: opacity .5s var(--ease), transform .6s var(--ease-out), visibility 0s, border-color .3s;
}
.wa-float:hover { border-color: var(--wa); color: var(--wa); }
.wa-float .icon { width: 28px; height: 28px; }
.wa-float.is-hidden { opacity: 0; transform: translateY(16px) scale(.9); visibility: hidden; pointer-events: none; transition: opacity .4s, transform .5s, visibility 0s linear .5s; }
.wa-float:focus-visible { border-radius: 50%; }

/* ==========================================================================
   Motion (only when the visitor has not asked for reduced motion)
   ========================================================================== */
@keyframes mx-kenburns { from { transform: scale(1.1); } to { transform: scale(1); } }
@keyframes mx-fade { from { opacity: 0; } }
@keyframes mx-fade-up { from { opacity: 0; transform: translateY(22px); } }
@keyframes mx-logo-in { from { opacity: 0; transform: translateY(-10px); } }
@keyframes mx-tab { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes mx-tri {
  0%   { background-size: 0 3px, 0 3px, 0 3px; }
  40%  { background-size: 24px 3px, 0 3px, 0 3px; }
  70%  { background-size: 24px 3px, 19px 3px, 0 3px; }
  100% { background-size: 24px 3px, 19px 3px, 24px 3px; }
}

@media (prefers-reduced-motion: no-preference) {
  /* Hero: slow settle on each slide; content arrives once on load */
  .slide.is-active img { animation: mx-kenburns 9s var(--ease-out) both; }
  .brand { animation: mx-logo-in 1.4s var(--ease-out) .15s backwards; }
  .header-actions { animation: mx-fade 1.2s var(--ease) .5s backwards; }
  .hero-ctas .btn { animation: mx-fade-up 1.1s var(--ease-out) .55s backwards; }
  .hero-ctas .btn + .btn { animation-delay: .68s; }
  .hero-controls { animation: mx-fade 1.2s var(--ease) 1s backwards; }
  .slide:first-child { animation: mx-fade 1.6s var(--ease) backwards; }

  /* Progress line on the active slide tab (paused with the slideshow) */
  .slider-running .slide-tab.is-active span::after { animation: mx-tab var(--slide-ms, 7000ms) linear both; }
  .slider-paused .slide-tab.is-active span::after { animation-play-state: paused; }

  /* Scroll reveals: main.js adds .motion-ready to <html> and .is-in to each element */
  .motion-ready [data-reveal],
  .motion-ready [data-stagger] > * {
    opacity: 0; transform: translateY(42px);
    transition: opacity 1.2s var(--ease-out) var(--d, 0s), transform 1.3s var(--ease-out) var(--d, 0s);
  }
  .motion-ready [data-reveal].is-in,
  .motion-ready [data-stagger] > .is-in { opacity: 1; transform: none; }

  .motion-ready [data-reveal] .tri { background-size: 0 3px, 0 3px, 0 3px; }
  .motion-ready [data-reveal].is-in .tri { animation: mx-tri 1s var(--ease-out) .3s both; }

  .motion-ready .product .product-media { clip-path: inset(100% 0 0 0); transition: clip-path 1.3s var(--ease-out) var(--d, 0s); }
  .motion-ready .product.is-in .product-media { clip-path: inset(0 0 0 0); }
  .motion-ready .product .product-media img { transform: scale(1.14); }
  .motion-ready .product.is-in .product-media img { transform: scale(1); transition: transform 2s var(--ease-out) var(--d, 0s); }
  .motion-ready .product.is-in:hover .product-media img { transform: scale(1.06); transition-delay: 0s; transition-duration: 1.6s; }

  .motion-ready .app-icon > * { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.6s var(--ease-out) calc(var(--d, 0s) + .25s); }
  .motion-ready .app.is-in .app-icon > * { stroke-dashoffset: 0; }

  .motion-ready .steps li::before { color: var(--step-dim); }
  .motion-ready .steps li.is-active::before { color: var(--gold); }

  .motion-ready figure[data-reveal] img { transform: scale(1.08); transition: transform 2.2s var(--ease-out); }
  .motion-ready figure[data-reveal].is-in img { transform: scale(1); }
  .motion-ready figure[data-reveal] picture, .motion-ready .apps-media picture { overflow: hidden; border-radius: 4px; }

  .motion-ready img[loading="lazy"] { opacity: 0; transition: opacity .9s var(--ease), transform 2.2s var(--ease-out); }
  .motion-ready img[loading="lazy"].is-loaded { opacity: 1; }
}

/* ==========================================================================
   Reduced motion: everything still works, nothing moves on its own
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  .slide { transition: none; }
}

/* ==========================================================================
   Print
   ========================================================================== */
@media print {
  .site-header, .menu, .search, .wa-float, .hero-controls, .hero-ctas, #enquiry-form { display: none !important; }
  body, .section-alt, .site-footer { background: #fff; color: #222; }
  h2, h3, .lead { color: #000; }
  .hero { height: auto; min-height: 0; }
  .slide:not(:first-child) { display: none; }
  .slide, .slides { position: static; opacity: 1; }
}

/* ---------- 404 page ---------- */
.notfound { min-height: 100vh; display: flex; align-items: center; }
.notfound-logo { display: inline-block; margin-bottom: 4rem; }
.notfound-logo img { width: clamp(180px, 24vw, 300px); }

/* ==========================================================================
   THEMES
   html[data-theme]   1, 2 or 3 (set by assets/js/theme.js before first paint)
   html[data-palette] dark (default) | ivory
   html[data-layout]  slider (default) | single
   ========================================================================== */

/* ---------- Palette: ivory (theme 2) ---------- */
html[data-palette="ivory"] {
  --bg: #F7F2EA;
  --bg-alt: #F0E9DD;
  --surface: #FFFDF9;
  --surface-2: #F2EBDF;
  --line: rgba(38, 33, 26, .12);
  --line-strong: rgba(38, 33, 26, .24);
  --text: #1E2733;            /* navy ink from the logo family */
  --soft: #383E46;
  --muted: #55524D;
  --gold: #87601F;            /* bronze, readable on ivory */
  --faint: #6A655D;
  --fine: #6A655D;
  --faint-2: #6A655D;
  --error: #B42318;
  --error-bg: rgba(180, 35, 24, .06);
  --success: #1E6B3E;
  --success-bg: rgba(30, 107, 62, .07);
  --primary-bg: #1E2733;
  --primary-ink: #F7F2EA;
  --primary-hover: #87601F;
  --outline-border: rgba(30, 39, 51, .7);
  --outline-bg: transparent;
  --header-bg: rgba(247, 242, 234, .82);
  --header-bg-solid: rgba(247, 242, 234, .97);
  --menu-glow: rgba(135, 96, 31, .10);
  --overlay: rgba(40, 33, 24, .28);
  --panel-shadow: 0 40px 100px -40px rgba(60, 45, 25, .35);
  --pore: rgba(30, 39, 51, .07);
  --field-hover: rgba(30, 39, 51, .45);
  --pending-bg: rgba(135, 96, 31, .07);
  --footer-bg: #EDE5D7;
  --wa-bg: rgba(255, 253, 249, .9);
  --step-dim: rgba(135, 96, 31, .35);
  --scroll-thumb: #CDBFA9;
  --focus: 0 0 0 2px var(--bg), 0 0 0 4px var(--gold);
  --panel-bg: #FFFDF9;
  --panel-text: #1E2733;
  --panel-muted: #55524D;
  --panel-line: rgba(38, 33, 26, .14);
  --panel-accent: #87601F;
  color-scheme: light;
}

/* The hero photography is always dark, so the hero and the header over it keep the dark ink */
html[data-palette="ivory"] .hero,
html[data-palette="ivory"] .site-header:not(.is-scrolled) {
  --bg: #0B0A09;
  --text: #EDE7DD;
  --soft: #CFC7BA;
  --muted: #A9A194;
  --gold: #D9A862;
  --line: rgba(237, 231, 221, .10);
  --line-strong: rgba(237, 231, 221, .22);
  --primary-bg: #FEDE40;
  --primary-ink: #0B0A09;
  --primary-hover: #FFE96F;
  --outline-border: rgba(237, 231, 221, .85);
  --outline-bg: rgba(11, 10, 9, .18);
}
/* Scrolled but the photo is still behind the bar: dark glass, white wordmark. It turns ivory as the pages arrive. */
html[data-palette="ivory"]:not(.menu-open) .site-header.is-scrolled.is-over-hero {
  --bg: #0B0A09;
  --text: #EDE7DD;
  --soft: #CFC7BA;
  --muted: #A9A194;
  --gold: #D9A862;
  --line: rgba(237, 231, 221, .10);
  --line-strong: rgba(237, 231, 221, .22);
  --header-bg: rgba(11, 10, 9, .78);
  --header-bg-solid: rgba(11, 10, 9, .95);
}
html[data-palette="ivory"]:not(.menu-open) .site-header.is-scrolled.is-over-hero .brand-mark { opacity: 1; }
html[data-palette="ivory"]:not(.menu-open) .site-header.is-scrolled.is-over-hero .brand-mark-c { opacity: 0; }
/* Section links land with the section's top edge at the top of the screen, so the bar sits over ivory
   (light bar, colour logo) instead of over the last strip of the dark photo */
html[data-palette="ivory"] main > .section[id] { scroll-margin-top: calc(-1 * (var(--bar) + 16px)); }

/* ...except when the ivory menu is open behind the header */
html[data-palette="ivory"].menu-open .site-header {
  --bg: #F7F2EA;
  --text: #1E2733;
  --soft: #383E46;
  --muted: #55524D;
  --gold: #87601F;
}

/* Logos: white over the hero, original colours on ivory */
html[data-palette="ivory"] .brand-c { display: block; }
html[data-palette="ivory"] .brand picture { opacity: 0; }
html[data-palette="ivory"] .site-header:not(.is-scrolled) .brand-full { opacity: 1; }
html[data-palette="ivory"] .site-header.is-scrolled .brand-mark-c { opacity: 1; }
html[data-palette="ivory"].menu-open .site-header:not(.is-scrolled) .brand-full { opacity: 0; }
html[data-palette="ivory"].menu-open .site-header:not(.is-scrolled) .brand-full-c { opacity: 1; }
.logo-c { display: none; }
html[data-palette="ivory"] .logo-c { display: block; }
html[data-palette="ivory"] .logo-w { display: none; }

/* Ivory surfaces */
html[data-palette="ivory"] .product-media::after { display: none; }
html[data-palette="ivory"] .product { transition: border-color .5s var(--ease), box-shadow .6s var(--ease), transform .6s var(--ease-out); }
html[data-palette="ivory"] .product:hover { box-shadow: 0 34px 70px -44px rgba(60, 45, 25, .45); }
html[data-palette="ivory"] .form-card { box-shadow: 0 30px 80px -60px rgba(60, 45, 25, .35); }
html[data-palette="ivory"] .site-footer { border-top-color: var(--line); }

/* ---------- Every theme: the logo sits top-centre, so the top shade is centred too ---------- */
.hero::before {
  background:
    radial-gradient(60% 34% at 50% 0%, rgba(0, 0, 0, .62), rgba(0, 0, 0, 0) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, .55) 0%, rgba(0, 0, 0, 0) 28%);
}
@media (max-width: 600px) {
  .site-header { --logo-w: clamp(146px, 41vw, 200px); }
}

/* ---------- Layout: one hero picture with centred buttons (theme 3) ---------- */
html[data-layout="single"] .slide:not(:first-child),
html[data-layout="single"] .hero-controls { display: none; }
html[data-layout="single"] .hero-content { justify-content: center; }
html[data-layout="single"] .hero-ctas { justify-content: center; }
html[data-layout="single"] .hero::after {
  background:
    radial-gradient(70% 45% at 50% 100%, rgba(5, 4, 3, .55), rgba(5, 4, 3, 0) 100%),
    linear-gradient(0deg, rgba(5, 4, 3, .78) 0%, rgba(5, 4, 3, .3) 26%, rgba(5, 4, 3, 0) 48%);
}

/* ==========================================================================
   Theme preview switcher (preview only: config.js THEME_SWITCHER)
   ========================================================================== */
.theme-switch { position: relative; }
.theme-btn { display: inline-flex; align-items: center; width: auto; gap: .5rem; padding: 0 .65rem; }
.theme-btn svg { width: 22px; height: 22px; stroke-width: 1.5; }
.theme-btn-label { font-size: .68rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; }
.theme-panel {
  position: absolute; top: calc(100% + 12px); left: 0; z-index: 70; width: 290px;
  padding: .9rem; border-radius: 10px;
  background: var(--panel-bg); color: var(--panel-text); border: 1px solid var(--panel-line);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .55);
  transform-origin: top left;
  opacity: 0; transform: translateY(-6px) scale(.97); visibility: hidden;
  transition: opacity .3s var(--ease), transform .45s var(--ease-out), visibility 0s linear .45s;
}
.theme-panel.is-open { opacity: 1; transform: none; visibility: visible; transition: opacity .3s var(--ease), transform .45s var(--ease-out); }
.theme-panel .label { color: var(--panel-accent); padding: .35rem .4rem .8rem; }
.theme-opt {
  display: flex; align-items: center; gap: .9rem; width: 100%; padding: .7rem .6rem; margin: 0;
  background: none; border: 1px solid transparent; border-radius: 7px; text-align: left; color: var(--panel-text);
  transition: background-color .25s, border-color .25s;
}
.theme-opt:hover { background: rgba(127, 127, 127, .08); }
.theme-opt[aria-pressed="true"] { border-color: var(--panel-line); background: rgba(127, 127, 127, .1); }
.theme-opt strong { display: block; font-weight: 500; font-size: .95rem; line-height: 1.3; }
.theme-opt small { display: block; font-size: .78rem; line-height: 1.35; color: var(--panel-muted); }
.theme-opt .tick { margin-left: auto; width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; opacity: 0; }
.theme-opt[aria-pressed="true"] .tick { opacity: 1; }
.swatch { position: relative; flex: none; width: 46px; height: 34px; border-radius: 5px; overflow: hidden; border: 1px solid rgba(127, 127, 127, .35); }
.swatch::before, .swatch::after { content: ""; position: absolute; }
.sw-dark { background: linear-gradient(135deg, #0B0A09 55%, #3a2c1a); }
.sw-dark::before { left: 6px; top: 7px; width: 16px; height: 2px; background: #EDE7DD; box-shadow: 0 4px 0 #EDE7DD; }
.sw-dark::after { left: 6px; bottom: 7px; width: 14px; height: 6px; background: #FEDE40; border-radius: 1px; }
.sw-ivory { background: linear-gradient(180deg, #2a2118 0 38%, #F7F2EA 38%); }
.sw-ivory::before { left: 6px; top: 18px; width: 22px; height: 2px; background: #1E2733; box-shadow: 0 5px 0 #1E2733; }
.sw-ivory::after { left: 6px; top: 6px; width: 12px; height: 2px; background: #EDE7DD; }
.sw-centred { background: radial-gradient(70% 70% at 50% 60%, #4a3720, #0B0A09); }
.sw-centred::before { left: 50%; top: 6px; width: 18px; margin-left: -9px; height: 2px; background: #EDE7DD; }
.sw-centred::after { left: 50%; bottom: 7px; width: 22px; margin-left: -11px; height: 6px; background: #FEDE40; border-radius: 1px; }
.theme-hint { margin: .8rem .4rem .2rem; font-size: .72rem; line-height: 1.45; color: var(--panel-muted); }
@media (max-width: 860px) {
  .theme-btn-label { display: none; }
  .theme-btn { width: 40px; padding: 0; }
}
@media (max-width: 420px) {
  .theme-panel { width: min(290px, calc(100vw - 2 * var(--gx))); }
}

/* Scroll progress: a hairline in the logo's colours under the compact header */
.scroll-progress {
  position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; pointer-events: none;
  background: linear-gradient(90deg, var(--tri-y), var(--tri-r) 55%, var(--tri-c));
  transform-origin: left; transform: scaleX(0); opacity: 0; transition: opacity .4s var(--ease);
}
.site-header.is-scrolled .scroll-progress { opacity: 1; }
html.menu-open .scroll-progress { opacity: 0; }

/* Smoother on touch devices: no live blur behind fixed elements while scrolling */
@media (hover: none) {
  .site-header.is-scrolled { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--header-bg-solid); }
  .wa-float { -webkit-backdrop-filter: none; backdrop-filter: none; }
}

/* ==========================================================================
   Enhanced motion (reduced-motion visitors get none of this)
   ========================================================================== */
@keyframes mx-breathe { from { transform: scale(1); } to { transform: scale(1.06); } }

@media (prefers-reduced-motion: no-preference) {
  .slide.is-active img { will-change: transform; }
  html[data-layout="single"] .slide.is-active img { animation: mx-kenburns 3.2s var(--ease-out) both, mx-breathe 20s ease-in-out 3.2s infinite alternate; }

  /* Hero scroll-out: the picture drifts slower than the page and the buttons fade (driven by main.js) */
  .slides, .hero-content { will-change: transform; }

  /* Headings rise word by word (main.js wraps the words) */
  .motion-ready .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
  .motion-ready .w > span { display: inline-block; transform: translateY(108%); transition: transform 1.15s var(--ease-out); transition-delay: calc(var(--wi, 0) * 42ms + .08s); }
  .motion-ready .is-in .w > span { transform: none; }
  .motion-ready [data-reveal]:has(.w) { transform: none; }

  /* Menu opens as a curtain from the top */
  .menu { clip-path: inset(0 0 100% 0); transition: clip-path .85s var(--ease-io), opacity .6s var(--ease), visibility 0s linear .85s; }
  .menu.is-open { clip-path: inset(0 0 0 0); transition: clip-path .85s var(--ease-io), opacity .4s var(--ease), visibility 0s; }

  /* Primary buttons: a soft light sweep on hover */
  .btn { position: relative; overflow: hidden; isolation: isolate; }
  .btn-gold::after {
    content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .38) 50%, transparent 70%);
    transform: translateX(-120%); transition: transform .9s var(--ease-out);
  }
  .btn-gold:hover::after { transform: translateX(120%); }

  /* Ivory cards lift slightly */
  html[data-palette="ivory"] .product:hover { transform: translateY(-4px); }

  /* Theme change cross-fade (browsers with View Transitions) */
  ::view-transition-old(root), ::view-transition-new(root) { animation-duration: .65s; animation-timing-function: cubic-bezier(.65, 0, .35, 1); }
}
