/* ==========================================================================
   Raptortron — Lutron-style design system
   Structure, spacing, type scale and components follow lutron.com;
   neutrals are Lutron's, the accent is Raptortron's warm bronze.
   WEB-T04a (owner 2026-11-21): colours / type of the 2027 brochure - navy #1A214F,
   bronze-gold #B68B4D (decorative; #8E6A35 for text and buttons, WCAG AA on white),
   warm light surface #F7F5F4, Montserrat (text) + Teko (figures / labels).
   ========================================================================== */

:root {
  --font: "Montserrat", Helvetica, Arial, sans-serif;
  --font-display: "Teko", "Montserrat", Helvetica, Arial, sans-serif;

  /* Text */
  --c-text: #2b2f45;
  --c-text-2: #5d6075;
  --c-title: #1a214f;
  --c-reverse: #ffffff;

  /* Surfaces */
  --s-1: #ffffff;
  --s-2: #f7f5f4;
  --s-3: #ece7e3;
  --d-1: #1a214f;
  --d-2: #2a3366;
  --d-3: #121735;

  /* Lines */
  --c-border: #ece7e3;
  --c-border-2: #d2d2d2;

  /* Accent (Raptortron bronze) */
  --c-accent: #8e6a35;
  --c-gold: #b68b4d;
  --c-accent-hover: #6f5229;
  --c-accent-soft: #f7f1e7;
  --c-error: #cc0000;

  /* Type scale (Lutron clamp scale) */
  --fs-d900: clamp(3rem, 1.9437rem + 4.507vw, 6rem);
  --fs-h700: clamp(2.25rem, 1.7218rem + 2.2535vw, 3.75rem);
  --fs-h600: clamp(2rem, 1.6479rem + 1.5023vw, 3rem);
  --fs-h500: clamp(1.75rem, 1.4859rem + 1.1268vw, 2.5rem);
  --fs-h400: clamp(1.5rem, 1.3239rem + 0.7512vw, 2rem);
  --fs-h300: clamp(1.25rem, 1.162rem + 0.3756vw, 1.5rem);
  --fs-h200: clamp(1.125rem, 1.081rem + 0.1878vw, 1.25rem);
  --fs-p150: clamp(1rem, 0.9536rem + 0.1905vw, 1.125rem);
  --fs-p100: 1rem;
  --fs-p090: 0.875rem;
  --fs-p080: 0.75rem;

  /* Space */
  --sp-1: 0.5rem;
  --sp-2: 1rem;
  --sp-3: 1.5rem;
  --sp-4: 2rem;
  --sp-5: 3rem;
  --sp-6: 4rem;
  --sp-7: 6rem;

  --container: 85rem;
  --gutter: 1.5rem;
  --radius: 0.25rem;
  --radius-pill: 1.5rem;
  --header-h: 4.5rem;
  --utility-h: 2.5rem;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

@media (min-width: 64rem) { :root { --gutter: 2rem; } }

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; overflow-x: clip; }
/* Anchor jumps land below the sticky header (desktop: utility bar + main bar; mobile: main bar only) */
[id] { scroll-margin-top: calc(var(--header-h) + var(--utility-h) + 1rem); }
body {
  margin: 0;
  font-family: var(--font);
  font-weight: 300;
  font-size: var(--fs-p100);
  line-height: 1.5;
  color: var(--c-text);
  background: var(--s-1);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 300; color: var(--c-title); letter-spacing: -0.01em; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 3px; }
[hidden] { display: none !important; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: var(--sp-2); top: -4rem; z-index: 1000;
  padding: 0.5rem 1rem; background: var(--c-accent); color: #fff; border-radius: var(--radius);
  transition: top .2s;
}
.skip-link:focus { top: var(--sp-2); }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Type helpers ---------- */
.display { font-size: var(--fs-h700); line-height: 1.1; }
.h-600 { font-size: var(--fs-h600); line-height: 1.15; }
.h-500 { font-size: var(--fs-h500); line-height: 1.2; }
.h-400 { font-size: var(--fs-h400); line-height: 1.25; }
.h-300 { font-size: var(--fs-h300); line-height: 1.33; }
.lede { font-size: var(--fs-p150); color: var(--c-text-2); max-width: 40rem; }
.eyebrow {
  font-size: var(--fs-p080); font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--c-text-2); margin-bottom: 0.75rem;
}
.eyebrow--accent { color: var(--c-accent); }

/* ---------- Buttons & links ---------- */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-width: 7.5rem; padding: 0.625rem 1.5rem;
  border: 0.125rem solid transparent; border-radius: var(--radius-pill);
  font-weight: 500; font-size: var(--fs-p100); line-height: 1.5;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.button:hover { transform: translateY(-1px); }
.button--primary { background: var(--c-accent); color: #fff; }
.button--primary:hover { background: var(--c-accent-hover); }
.button--secondary { border-color: currentColor; color: var(--c-accent); }
.button--on-dark { background: #fff; color: var(--c-text); }
.button--on-dark:hover { background: var(--s-3); }
.button--small { font-size: var(--fs-p090); padding: 0.5rem 1.25rem; min-width: 0; }

.text-link {
  display: inline-flex; align-items: center; gap: 0.35rem;
  font-weight: 500; color: var(--c-accent); margin-top: var(--sp-2);
}
.text-link--light { color: #fff; }
.text-link .arrow { transition: transform .25s var(--ease); }
.text-link:hover .arrow, a:hover > .text-link .arrow { transform: translateX(4px); }
.text-link:hover { text-decoration: underline; text-underline-offset: 3px; }

.arrow {
  display: inline-block; width: 1em; height: 1em; flex: none;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M5 12h14M13 6l6 6-6 6'/></svg>") center / contain no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M5 12h14M13 6l6 6-6 6'/></svg>") center / contain no-repeat;
}

.badge {
  position: absolute; top: 1rem; left: 1rem; z-index: 2;
  padding: 0.25rem 0.75rem; border-radius: var(--radius-pill);
  background: rgba(255,255,255,.92); color: var(--c-text);
  font-size: var(--fs-p080); font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase;
}

.link-indicator {
  position: absolute; right: 1rem; bottom: 1rem; z-index: 2;
  width: 2rem; height: 2rem; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(38,38,38,.5); color: #fff;
  transition: background .2s, transform .25s var(--ease);
}
.link-indicator .arrow { width: 1rem; height: 1rem; }
a:hover > .link-indicator { background: var(--c-accent); transform: translateX(2px); }

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--s-1);
  transition: box-shadow .25s;
}
.site-header.is-scrolled { box-shadow: 0 1px 0 var(--c-border), 0 8px 24px rgba(0,0,0,.06); }

.utility-bar {
  background: var(--s-2); border-bottom: 1px solid var(--c-border);
  font-size: var(--fs-p090); height: var(--utility-h);
}
.utility-bar__inner { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.utility-links { display: flex; gap: var(--sp-3); }
.utility-links a { display: inline-block; padding: 0.5rem 0; color: var(--c-text-2); transition: color .2s; } /* tablets in landscape use this bar with fingers */
.utility-links a:hover { color: var(--c-text); }
.utility-region { display: inline-flex; gap: 0.5rem; }
.utility-sep { color: var(--c-border-2); }

.main-bar { border-bottom: 1px solid var(--c-border); }
.main-bar__inner { display: flex; align-items: center; gap: var(--sp-4); height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: 0.6rem; flex: none; }
.brand img { width: 2.25rem; height: 2.25rem; object-fit: contain; }
.brand__word { font-weight: 500; letter-spacing: 0.22em; font-size: 0.95rem; color: var(--c-title); white-space: nowrap; }
/* 320px-class phones (iPhone SE, Galaxy S9+): logo + wordmark + two 44px buttons must fit in 320 - 2*24 */
@media (max-width: 22.5rem) { .brand__word { font-size: 0.85rem; letter-spacing: 0.14em; } }

.header-actions { margin-left: auto; display: flex; align-items: center; gap: 0.25rem; }
.icon-btn {
  width: 2.75rem; height: 2.75rem; display: grid; place-items: center;
  border-radius: 50%; color: var(--c-text); transition: background .2s;
}
.icon-btn:hover { background: var(--s-2); }

.menu-toggle { display: none; flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
.menu-toggle__bar { width: 20px; height: 2px; background: currentColor; transition: transform .25s, opacity .2s; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Primary nav (desktop) */
.nav-list { display: flex; align-items: center; gap: 0.25rem; height: 100%; }
.nav-item { position: static; height: 100%; }
.nav-link {
  position: relative; display: inline-flex; align-items: center; height: var(--header-h);
  padding: 0 0.9rem; font-size: var(--fs-p100); font-weight: 400; white-space: nowrap;
  color: var(--c-text); transition: color .2s;
}
.nav-link::after {
  content: ""; position: absolute; left: 0.9rem; right: 0.9rem; bottom: 0;
  height: 2px; background: var(--c-accent); transform: scaleX(0); transform-origin: left;
  transition: transform .25s var(--ease);
}
.nav-link:hover::after, .nav-link[aria-expanded="true"]::after { transform: scaleX(1); }
.nav-link[aria-expanded="true"] { color: var(--c-title); }

.mega {
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--s-1); border-top: 1px solid var(--c-border);
  box-shadow: 0 24px 40px rgba(0,0,0,.08);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .2s, transform .25s var(--ease), visibility 0s linear .25s;
}
.nav-item.is-open > .mega { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }

.mega__inner {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)) minmax(0, 1.4fr);
  gap: var(--sp-5); padding-block: var(--sp-5);
}
.mega__inner--4 { grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 1.2fr); }
.mega__inner--list { display: block; padding-block: var(--sp-3); }
.mega__inner--list ul { display: flex; gap: var(--sp-4); }
.mega__inner--list a { font-weight: 400; }
.mega__heading { font-size: var(--fs-p080); font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--c-text-2); margin-bottom: var(--sp-2); }
.mega__col li { margin-bottom: 0.65rem; }
.mega__col a:not(.text-link) { font-size: var(--fs-p100); font-weight: 300; color: var(--c-text); transition: color .2s; }
.mega__col a:not(.text-link):hover { color: var(--c-accent); }
.mega__col .text-link { margin-top: var(--sp-2); }

.mega__feature {
  position: relative; display: block; overflow: hidden; border-radius: var(--radius);
  aspect-ratio: 16 / 9; background: var(--s-2);
}
.mega__feature img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.mega__feature--product img { object-fit: contain; padding: 1.5rem; }
.mega__feature:hover img { transform: scale(1.03); }
.mega__feature-title {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 1.25rem;
  color: #fff; font-size: var(--fs-h200); font-weight: 300;
  background: linear-gradient(to top, rgba(0,0,0,.65), transparent);
}
.mega__feature--product .mega__feature-title { color: var(--c-text); background: linear-gradient(to top, rgba(248,248,248,.95), transparent); }

.nav-mobile-utility { display: none; }
.nav-backdrop { position: fixed; inset: 0; z-index: 90; background: rgba(0,0,0,.35); touch-action: none; }

/* Touch screens: no lift/zoom effects that would stick after a tap */
@media (hover: none) {
  /* tablets in landscape get the desktop mega menu but tap it: widen the hit area */
  .mega__col li { margin-bottom: 0.2rem; }
  .mega__col a:not(.text-link) { display: inline-block; padding: 0.35rem 0; }
  .button:hover, .product-card:hover, .split-card:hover { transform: none; }
  .product-card:hover .product-card__media img, .mega__feature:hover img, .feature__media:hover img,
  .tile:hover img, .case:hover .case__media img, .blade:hover .blade__img { transform: none; }
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero { padding-block: var(--sp-5) var(--sp-6); background: var(--s-1); }
.hero__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--sp-3); margin-bottom: var(--sp-4); }

.segmented {
  display: inline-flex; padding: 0.25rem; gap: 0.25rem;
  background: var(--s-3); border-radius: var(--radius-pill);
  /* never wider than its container: on narrow phones the row scrolls sideways instead of widening the page */
  max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.segmented::-webkit-scrollbar { display: none; }
.segmented__btn { white-space: nowrap; flex: none; }
.segmented__btn {
  padding: 0.5rem 1.25rem; border-radius: var(--radius-pill);
  font-weight: 500; font-size: var(--fs-p090); color: var(--c-text-2);
  transition: background .2s, color .2s, box-shadow .2s;
}
.segmented__btn:hover { color: var(--c-text); }
.segmented__btn.is-active { background: #fff; color: var(--c-title); box-shadow: 0 1px 3px rgba(0,0,0,.12); }

.hero__panels { padding-inline: var(--gutter); max-width: var(--container); margin-inline: auto; }
.hero__panel { animation: fadeIn .4s var(--ease); }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.blades { display: flex; gap: 0.5rem; height: clamp(28rem, 72vh, 42rem); }
.blade {
  position: relative; flex: 1 1 0; min-width: 0; overflow: hidden;
  border-radius: var(--radius); color: #fff; background: var(--d-2);
  transition: flex .6s var(--ease);
  isolation: isolate;
}
.blade__img {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .8s var(--ease);
}
.blade::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to top, rgba(0,0,0,.72) 0%, rgba(0,0,0,.28) 45%, rgba(0,0,0,.08) 100%);
}
.blades:hover .blade { flex: 0.8 1 0; }
.blades .blade:hover { flex: 1.9 1 0; }
.blade:hover .blade__img { transform: scale(1.04); }
.blade__content {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: clamp(1.25rem, 3vw, 2.5rem);
}
.blade__content .eyebrow { color: rgba(255,255,255,.75); }
.blade__title { color: #fff; font-size: var(--fs-h400); line-height: 1.2; max-width: 16ch; }
.blade__text {
  max-width: 34ch; margin-top: 0.75rem; color: rgba(255,255,255,.88);
  opacity: 0; max-height: 0; overflow: hidden; transition: opacity .35s .15s, max-height .5s var(--ease);
}
.blade:hover .blade__text, .blade:focus-visible .blade__text { opacity: 1; max-height: 8rem; }
.blade .text-link { margin-top: 1rem; }

/* ==========================================================================
   SECTIONS
   ========================================================================== */
.section { padding-block: var(--sp-7); }
.section--grey { background: var(--s-2); }
.section--dark { background: var(--d-1); color: rgba(255,255,255,.82); }
.section--dark h2, .section--dark h3 { color: #fff; }
.section--dark .eyebrow { color: rgba(255,255,255,.6); }
.section--dark .lede { color: rgba(255,255,255,.72); }

.section__head { margin-bottom: var(--sp-5); max-width: 52rem; }
.section__head .lede { margin-top: var(--sp-2); }
.section__head--split {
  max-width: none; display: grid; gap: var(--sp-3); align-items: end;
}
@media (min-width: 64rem) {
  .section__head--split { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: var(--sp-6); }
  .section__head--split .lede { margin-top: 0; justify-self: end; }
}

/* Feature (large image + copy) */
.feature {
  display: grid; gap: var(--sp-4); align-items: center;
  margin-bottom: var(--sp-4);
}
@media (min-width: 64rem) { .feature { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: var(--sp-6); } }
.feature__media { position: relative; display: block; overflow: hidden; border-radius: var(--radius); aspect-ratio: 16 / 9; }
.feature__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.feature__media:hover img { transform: scale(1.03); }
.feature__body p:not(.eyebrow) { margin-top: var(--sp-2); color: var(--c-text-2); font-size: var(--fs-p150); }

/* Tiles (image-over-title) */
.tiles { display: grid; gap: 0.75rem; }
.tiles--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tiles--2 { grid-template-columns: 1fr; margin-top: var(--sp-4); }
@media (min-width: 48rem) {
  .tiles--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .tiles--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.tile {
  position: relative; display: block; overflow: hidden; border-radius: var(--radius);
  aspect-ratio: 4 / 5; background: var(--d-2); color: #fff; isolation: isolate;
}
.tile--wide { aspect-ratio: 16 / 10; }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); z-index: -1; }
.tile:hover img { transform: scale(1.04); }
.tile::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(to top, rgba(0,0,0,.72), rgba(0,0,0,.05) 60%);
}
.tile__label {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 1;
  padding: 1.25rem 3.25rem 1.25rem 1.25rem;
  font-size: var(--fs-h200); font-weight: 300; line-height: 1.3;
}
.tile--wide .tile__label { font-size: var(--fs-h300); padding: 1.5rem 3.5rem 1.5rem 1.5rem; }
.tile__eyebrow {
  display: block; margin-bottom: 0.35rem;
  font-size: var(--fs-p080); font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,.72);
}
.tile__text { display: block; margin-top: 0.4rem; font-size: var(--fs-p090); color: rgba(255,255,255,.8); }
.tile__time {
  position: absolute; top: 1rem; right: 1rem; z-index: 1;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: var(--fs-p080); letter-spacing: 0.08em; padding: 0.2rem 0.6rem;
  border-radius: var(--radius-pill); background: rgba(0,0,0,.4); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}

.two-col { display: grid; gap: var(--sp-4); margin-top: var(--sp-6); }
@media (min-width: 48rem) { .two-col { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-6); } }
.two-col p { margin-top: 0.75rem; color: var(--c-text-2); }

/* Products */
.products { display: grid; gap: var(--sp-3); }
@media (min-width: 48rem) { .products { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.product-card {
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--s-1); border: 1px solid var(--c-border); border-radius: var(--radius);
  transition: box-shadow .3s, transform .3s var(--ease);
}
.product-card:hover { box-shadow: 0 16px 40px rgba(0,0,0,.08); transform: translateY(-2px); }
.product-card__media { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: linear-gradient(180deg, #fff, var(--s-2)); }
.product-card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 2.5rem; transition: transform .6s var(--ease); }
.product-card__body { flex: 1; }
.product-card:hover .product-card__media img { transform: scale(1.04); }
.product-card__body { padding: var(--sp-3); border-top: 1px solid var(--c-border); }
.product-card__meta { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.product-card__meta .eyebrow { margin: 0; }
.sku {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--c-text-2);
  padding: 0.2rem 0.55rem; border: 1px solid var(--c-border-2); border-radius: var(--radius-pill);
}
.product-card__body h3 { margin-top: 0.75rem; }
.product-card__body p { margin-top: 0.5rem; color: var(--c-text-2); }

/* Split cards (dark system band) */
.split-cards { display: grid; gap: var(--sp-3); }
@media (min-width: 48rem) { .split-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.split-card {
  display: flex; flex-direction: column; overflow: hidden; border-radius: var(--radius);
  background: var(--d-2); transition: transform .3s var(--ease), box-shadow .3s;
}
.split-card:hover { transform: translateY(-3px); box-shadow: 0 20px 48px rgba(0,0,0,.3); }
.split-card img { aspect-ratio: 16 / 9; width: 100%; object-fit: cover; }
.split-card__body { padding: var(--sp-4); }
.split-card__body p:not(.eyebrow) { margin-top: 0.75rem; color: rgba(255,255,255,.75); }

/* Editorial (full-bleed image + card) */
.editorial { position: relative; min-height: 36rem; display: flex; align-items: center; isolation: isolate; overflow: hidden; }
.editorial__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: right center; z-index: -1; }
.editorial::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(0,0,0,.35), rgba(0,0,0,0) 70%); }
.editorial__inner { padding-block: var(--sp-7); }
.editorial__card {
  max-width: 34rem; padding: clamp(1.5rem, 4vw, 3rem);
  background: rgba(255,255,255,.94); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border-radius: var(--radius);
}
.editorial__card p:not(.eyebrow) { margin-top: var(--sp-2); color: var(--c-text-2); font-size: var(--fs-p150); }
.editorial__card .button { margin-top: var(--sp-3); }

/* Case studies */
.cases { display: grid; gap: var(--sp-4) var(--sp-3); }
@media (min-width: 40rem) { .cases { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 64rem) { .cases { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.case { display: block; }
.case__media { overflow: hidden; border-radius: var(--radius); aspect-ratio: 4 / 3; background: var(--s-2); }
.case__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.case:hover .case__media img { transform: scale(1.04); }
.case__body { padding-top: var(--sp-2); }
.case__body .eyebrow { margin-bottom: 0.35rem; }
.case__body h3 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.5rem; }
.case__tag { font-size: var(--fs-p080); font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--c-accent); }
.case__body p:not(.eyebrow) { margin-top: 0.5rem; color: var(--c-text-2); font-size: var(--fs-p090); }
.case:hover h3 { color: var(--c-accent); }

/* Media + text */
.media-text { display: grid; gap: var(--sp-4); align-items: center; }
@media (min-width: 64rem) { .media-text { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: var(--sp-7); } }
.media-text__media { overflow: hidden; border-radius: var(--radius); aspect-ratio: 4 / 3; }
.media-text__media img { width: 100%; height: 100%; object-fit: cover; }
.media-text__body .lede { margin-top: var(--sp-2); }
.checklist { margin-top: var(--sp-4); display: grid; gap: var(--sp-2); }
.checklist li { position: relative; padding-left: 1.75rem; color: var(--c-text-2); }
.checklist li strong { font-weight: 500; color: var(--c-text); }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 0.45em; width: 0.9rem; height: 0.9rem; border-radius: 50%;
  background: var(--c-accent);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><circle cx='12' cy='12' r='12' fill='black'/><path d='M7 12.5l3 3 7-7' fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/></svg>") center / contain no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><circle cx='12' cy='12' r='12' fill='black'/><path d='M7 12.5l3 3 7-7' fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/></svg>") center / contain no-repeat;
}

/* Contact */
.contact { display: grid; gap: var(--sp-5); }
@media (min-width: 64rem) { .contact { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: var(--sp-7); } }
.contact__info .lede { margin-top: var(--sp-2); }
.contact__details { margin: var(--sp-5) 0 0; display: grid; gap: var(--sp-3); grid-template-columns: repeat(2, minmax(0, 1fr)); }
.contact__details div { padding-top: var(--sp-2); border-top: 1px solid var(--c-border); }
.contact__details dt { font-size: var(--fs-p080); font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--c-text-2); }
.contact__details dd { margin: 0.35rem 0 0; overflow-wrap: anywhere; }
@media (max-width: 30rem) { .contact__details { grid-template-columns: 1fr; } }
.contact__details a { display: inline-block; padding: 0.3rem 0; }
.contact__details a:hover { color: var(--c-accent); text-decoration: underline; text-underline-offset: 3px; }

.contact__form { display: grid; gap: var(--sp-3); padding: clamp(1.5rem, 3vw, 2.5rem); background: var(--s-2); border-radius: var(--radius); }
.form-row { display: grid; gap: var(--sp-3); }
@media (min-width: 40rem) { .form-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.field { display: grid; gap: 0.4rem; }
.field label { font-size: var(--fs-p090); font-weight: 500; color: var(--c-text); }
.optional { font-weight: 300; color: var(--c-text-2); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 3rem; padding: 0.75rem 1rem;
  background: #fff; border: 1px solid var(--c-border-2); border-radius: var(--radius);
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 7rem; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--c-accent); box-shadow: 0 0 0 3px rgba(138,122,90,.18); }
.field.is-invalid input, .field.is-invalid select { border-color: var(--c-error); }
.form-note { font-size: var(--fs-p080); color: var(--c-text-2); }
.contact__form .button { justify-self: start; }
.form-status { min-height: 1.5rem; font-size: var(--fs-p090); color: var(--c-accent-hover); }
.form-status.is-error { color: var(--c-error); }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer { background: var(--d-1); color: rgba(255,255,255,.75); font-size: var(--fs-p090); overflow-wrap: anywhere; }
.footer__top { display: grid; gap: var(--sp-6); padding-block: var(--sp-6); }
@media (min-width: 64rem) { .footer__top { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: var(--sp-7); } }
.footer__cols { display: grid; gap: var(--sp-4); grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 48rem) { .footer__cols { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.footer__heading { font-size: var(--fs-p080); font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: #fff; margin-bottom: var(--sp-2); }
.footer__col li { margin-bottom: 0.6rem; }
.footer__col a { transition: color .2s; }
.footer__col a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.footer__news p:not(.footer__heading) { max-width: 30ch; }
.news-form { display: flex; gap: 0.5rem; margin-top: var(--sp-2); }
.news-form input {
  flex: 1; min-width: 0; min-height: 2.75rem; padding: 0.5rem 1rem; color: #fff;
  background: var(--d-2); border: 1px solid rgba(255,255,255,.15); border-radius: var(--radius-pill);
}
.news-form input::placeholder { color: rgba(255,255,255,.5); }
.news-form input:focus { outline: none; border-color: rgba(255,255,255,.6); }

.footer__bottom { border-top: 1px solid rgba(255,255,255,.12); padding-block: var(--sp-3); }
.footer__bottom-inner { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2) var(--sp-4); }
.brand--footer .brand__word { color: #fff; }
.footer__tagline { color: rgba(255,255,255,.55); }
.footer__legal { margin-left: auto; display: flex; flex-wrap: wrap; gap: var(--sp-3); font-size: var(--fs-p080); }
.footer__legal a:hover { color: #fff; }

/* ==========================================================================
   Reveal on scroll
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ==========================================================================
   MOBILE NAVIGATION  (< 64rem)
   ========================================================================== */
@media (max-width: 63.98rem) {
  .utility-bar { display: none; }
  .menu-toggle { display: flex; }
  [id] { scroll-margin-top: calc(var(--header-h) + 1rem); }
  .main-bar__inner { gap: var(--sp-2); }

  .primary-nav {
    position: fixed; top: var(--header-h); right: 0; bottom: 0; z-index: 95;
    width: min(26rem, 100%); overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
    background: var(--s-1); border-left: 1px solid var(--c-border);
    transform: translateX(100%); transition: transform .35s var(--ease);
    /* extra bottom room so the last items clear Safari's bottom toolbar / home indicator */
    padding: var(--sp-2) 0 calc(var(--sp-6) + env(safe-area-inset-bottom, 0px));
  }
  .primary-nav.is-open { transform: none; }
  /* iOS Safari ignores body overflow:hidden; the backdrop's touch-action:none and the drawer's
     overscroll-behavior:contain stop the page behind from scrolling there. */
  body.nav-open { overflow: hidden; }

  .nav-list { flex-direction: column; align-items: stretch; gap: 0; height: auto; }
  .nav-item { height: auto; border-bottom: 1px solid var(--c-border); }
  .nav-link {
    width: 100%; height: auto; padding: 1rem var(--gutter); justify-content: space-between;
    font-size: var(--fs-h200);
  }
  .nav-link::after { display: none; }
  .nav-link::before {
    content: ""; order: 2; width: 1rem; height: 1rem; background: currentColor;
    -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M6 9l6 6 6-6'/></svg>") center / contain no-repeat;
            mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M6 9l6 6 6-6'/></svg>") center / contain no-repeat;
    transition: transform .25s;
  }
  .nav-link[aria-expanded="true"]::before { transform: rotate(180deg); }

  .mega {
    position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0;
    display: none; background: var(--s-2);
  }
  .nav-item.is-open > .mega { display: block; }
  .mega__inner, .mega__inner--4 { display: grid; grid-template-columns: 1fr; gap: var(--sp-3); padding-block: var(--sp-3); }
  .mega__feature { display: none; }
  .mega__inner--list ul { flex-direction: column; gap: 0.75rem; }

  .nav-mobile-utility { display: grid; gap: 0.25rem; padding: var(--sp-3) var(--gutter) 0; color: var(--c-text-2); }
  .nav-mobile-utility a { display: inline-block; padding: 0.5rem 0; }
  /* Drawer and footer links are tap targets on touch screens: give them >= 32px of height */
  .mega__col li { margin-bottom: 0.15rem; }
  .mega__col a:not(.text-link) { display: inline-block; padding: 0.4rem 0; }
  .footer__col li { margin-bottom: 0.1rem; }
  .footer__col a { display: inline-block; padding: 0.45rem 0; }
  .footer__legal a { display: inline-block; padding: 0.5rem 0; }
  .chip--sm { min-height: 2rem; padding-block: 0.3rem; }

  .blades { flex-direction: column; height: auto; }
  .blade { min-height: 16rem; flex: none; }
  .blades:hover .blade, .blades .blade:hover { flex: none; }
  .blade__text { opacity: 1; max-height: none; }
}

/* ---------- WEB-T04a brochure accents ---------- */
h1, h2, .display { letter-spacing: -0.01em; }
.eyebrow { letter-spacing: 0.18em; }
.stat__value, .kpi__value, .figure { font-family: var(--font-display); font-weight: 500; letter-spacing: 0.02em; }
.section--dark .eyebrow, .site-footer a:hover { color: var(--c-gold); }

/* ---------- WEB-T04b brochure hero + values ---------- */
.brand-hero { position: relative; min-height: min(78vh, 46rem); display: flex; align-items: flex-end; color: #fff; overflow: hidden; }
.brand-hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.brand-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(18,23,53,.78) 0%, rgba(18,23,53,.45) 38%, rgba(18,23,53,0) 68%), linear-gradient(180deg, rgba(18,23,53,0) 55%, rgba(18,23,53,.55) 100%); }
@media (max-width: 47.99rem) { .brand-hero::after { background: linear-gradient(180deg, rgba(18,23,53,.25) 0%, rgba(18,23,53,.78) 100%); } }
.brand-hero__inner { position: relative; z-index: 1; padding-block: var(--sp-7) var(--sp-6); }
.brand-hero__eyebrow { color: var(--c-gold); }
.brand-hero__title { color: #fff; font-weight: 300; max-width: 16ch; }
.brand-hero__title span { display: block; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: #e9d3ad; }
.brand-hero__lede { font-size: var(--fs-h300); font-weight: 300; margin-top: var(--sp-2); max-width: 36ch; }
.brand-hero__actions { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-top: var(--sp-4); }
.values__quote { max-width: 30ch; color: var(--c-title); font-weight: 300; }
.values__grid { display: grid; gap: var(--sp-4); margin-top: var(--sp-5); grid-template-columns: 1fr; }
@media (min-width: 48rem) { .values__grid { grid-template-columns: repeat(3, 1fr); } }
.values__item { border-top: 1px solid var(--c-gold); padding-top: var(--sp-2); }

/* ---------- Dark theme (owner 2026-11-22): header toggle, choice kept in localStorage ---------- */
:root[data-theme="dark"] {
  color-scheme: dark;
  --c-text: #dcdcdc;
  --c-text-2: #a8a8a8;
  --c-title: #f4efe7;
  --s-1: #0a0a0a;
  --s-2: #121212;
  --s-3: #1c1c1c;
  --d-1: #050505;
  --d-2: #1a1a1a;
  --d-3: #000000;
  --c-border: #262626;
  --c-border-2: #3a3a3a;
  --c-accent: #d0a466;
  --c-gold: #d0a466;
  --c-accent-hover: #e6c08a;
  --c-accent-soft: #2a2416;
  --c-error: #ff8a80;
}
:root[data-theme="dark"] .skip-link,
:root[data-theme="dark"] .button--primary { color: #0a0a0a; }
:root[data-theme="dark"] .button--on-dark { background: var(--c-title); color: #0a0a0a; }
:root[data-theme="dark"] .badge { background: rgba(10,10,10,.88); color: var(--c-text); }
:root[data-theme="dark"] .segmented__btn.is-active { background: var(--s-3); color: var(--c-title); }
:root[data-theme="dark"] .editorial__card { background: rgba(10,10,10,.92); }
:root[data-theme="dark"] .field input,
:root[data-theme="dark"] .field select,
:root[data-theme="dark"] .field textarea { background: var(--s-1); color: var(--c-text); }
/* product photos are shot on white: keep their stage light */
:root[data-theme="dark"] .product-card__media { background: linear-gradient(180deg, #f4f2ef, #dcd8d2); }
:root[data-theme="dark"] .site-footer { background: var(--d-3); }
.theme-toggle .theme-toggle__sun { display: none; }
:root[data-theme="dark"] .theme-toggle .theme-toggle__sun { display: block; }
:root[data-theme="dark"] .theme-toggle .theme-toggle__moon { display: none; }
:root[data-theme="dark"] .brand-hero::after { background: linear-gradient(90deg, rgba(0,0,0,.78) 0%, rgba(0,0,0,.45) 38%, rgba(0,0,0,0) 68%), linear-gradient(180deg, rgba(0,0,0,0) 55%, rgba(0,0,0,.55) 100%); }
@media (max-width: 47.99rem) { :root[data-theme="dark"] .brand-hero::after { background: linear-gradient(180deg, rgba(0,0,0,.25) 0%, rgba(0,0,0,.78) 100%); } }
