/* HAVICO — havicof.com */
:root {
  --mist: #e3e7e4;
  --mist-2: #d6dcd8;
  --paper: #f5f6f4;
  --ink: #1e2824;
  --moss: #586a61;
  --line: #c9d0cc;
  --blue: #07529d;
  --blue-ink: #053d75;
  --wide: "wdth" 125;
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1440px;
  --r: 6px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/1.6 "Archivo", system-ui, sans-serif;
  font-variation-settings: "wdth" 100;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* type */
.display, h1, h2, h3 { font-variation-settings: var(--wide); letter-spacing: -0.02em; font-weight: 700; margin: 0; }
h2 { font-size: clamp(30px, 4.2vw, 60px); line-height: 1.02; }
h3 { font-size: 20px; line-height: 1.2; letter-spacing: -0.01em; }
p { margin: 0; }
.lead { font-size: clamp(17px, 1.4vw, 20px); line-height: 1.55; color: var(--moss); max-width: 46ch; }
.muted { color: var(--moss); }

/* buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  height: 48px; padding: 0 22px; border-radius: 999px;
  font-weight: 600; font-size: 15px; text-decoration: none; cursor: pointer;
  border: 1px solid var(--ink); background: transparent;
  transition: background .2s, color .2s, border-color .2s;
}
.btn:hover { background: var(--ink); color: var(--paper); }
.btn-solid { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn-solid:hover { background: var(--blue-ink); border-color: var(--blue-ink); }
.link { font-weight: 600; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }

/* header */
.nav {
  position: absolute; inset: 0 0 auto 0; z-index: 20;
  display: flex; align-items: center; gap: 32px;
  padding: 20px var(--gutter);
}
.nav-solid { position: sticky; top: 0; background: rgba(245,246,244,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav .logo img { display: block; height: 40px; width: auto; }
.nav ul { display: flex; gap: 28px; list-style: none; margin: 0 auto 0 24px; padding: 0; }
.nav ul a { text-decoration: none; font-size: 15px; font-weight: 500; }
.nav ul a:hover, .nav ul a[aria-current] { text-decoration: underline; text-underline-offset: 6px; }
.nav .btn { height: 42px; }
.menu-btn { display: none; margin-left: auto; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; }
.menu-btn span { display: block; height: 2px; background: var(--ink); margin: 6px 10px; }

/* hero */
.hero {
  position: relative; overflow: hidden;
  min-height: min(100svh, 980px);
  background: var(--mist);
  display: grid; grid-template-rows: 1fr auto;
}
.hero-stage { position: relative; display: grid; place-items: center; padding-top: 80px; }
.wordmark {
  position: absolute; left: 50%; top: 36%; transform: translate(-50%, -50%);
  margin: 0; width: 100%; text-align: center;
  font-size: clamp(96px, 23vw, 360px); line-height: .8; font-weight: 800;
  font-variation-settings: var(--wide); letter-spacing: -0.045em;
  color: #fff; user-select: none;
}
.hero-product {
  position: relative; z-index: 2;
  width: min(64vw, 900px); margin-top: 16vh;
  filter: drop-shadow(0 36px 28px rgba(30,40,36,.16));
}
/* fluted glass: vertical ribs that refract what sits behind them */
.flute {
  position: absolute; z-index: 3; top: 0; right: 0; bottom: 0; width: 50%;
  backdrop-filter: blur(7px) saturate(1.1);
  -webkit-backdrop-filter: blur(7px) saturate(1.1);
  background:
    repeating-linear-gradient(90deg,
      rgba(255,255,255,.34) 0 2px,
      rgba(255,255,255,.06) 6px,
      rgba(30,40,36,.07) 14px,
      rgba(255,255,255,.22) 18px);
  background-size: 18px 100%;
  border-left: 1px solid rgba(255,255,255,.55);
}
.flute-card {
  position: absolute; z-index: 4; right: var(--gutter); bottom: 120px;
  width: 260px; padding: 14px; border-radius: var(--r);
  background: rgba(245,246,244,.9); text-decoration: none;
  display: grid; grid-template-columns: 76px 1fr; gap: 14px; align-items: center;
}
.flute-card img { width: 76px; height: 76px; object-fit: contain; background: var(--mist); border-radius: 4px; }
.flute-card b { display: block; font-size: 15px; line-height: 1.25; }
.flute-card span { font-size: 13px; color: var(--moss); }
.hero-foot {
  position: relative; z-index: 5;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px;
  padding: 0 var(--gutter) 32px;
}
.hero-foot p { max-width: 34ch; font-size: 17px; }
.hero-foot .actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* sections */
section { padding: clamp(64px, 9vw, 128px) 0; }
.sec-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 40px; flex-wrap: wrap; }

/* categories */
.cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.cat {
  display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: 8px; text-decoration: none;
  background: var(--mist); border-radius: var(--r); padding: 16px; aspect-ratio: 4 / 5;
  transition: background .2s;
}
.cat:hover { background: var(--mist-2); }
.cat img { width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.cat b { font-size: 16px; }
.cat span { color: var(--moss); font-size: 14px; margin-left: 6px; }

/* product cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); gap: 32px 16px; }
.card { text-decoration: none; display: block; }
.card .ph {
  position: relative; aspect-ratio: 1; background: var(--mist); border-radius: var(--r);
  display: grid; place-items: center; padding: 10%; overflow: hidden;
}
.card .ph img { width: 100%; height: 100%; object-fit: contain; transition: opacity .25s; mix-blend-mode: multiply; }
.card .ph.photo { padding: 0; }
.card .ph.photo img { object-fit: cover; mix-blend-mode: normal; }
.card .ph.photo img.alt { inset: 0; width: 100%; height: 100%; }
.card .ph img.alt { position: absolute; inset: 10%; width: 80%; height: 80%; opacity: 0; }
.card:hover .ph img.alt { opacity: 1; }
.card:hover .ph img.has-alt { opacity: 0; }
.card .meta { display: flex; justify-content: space-between; gap: 12px; margin-top: 12px; }
.card h3 { font-size: 16px; letter-spacing: 0; font-variation-settings: "wdth" 100; font-weight: 600; }
.card .code { font-size: 13px; color: var(--moss); white-space: nowrap; }
.card .sub { font-size: 14px; color: var(--moss); margin-top: 2px; }
.swatches { display: flex; gap: 6px; margin-top: 8px; }
.sw { width: 14px; height: 14px; border-radius: 50%; border: 1px solid rgba(30,40,36,.25); }

/* craft */
.craft { background: var(--ink); color: var(--paper); }
.craft .lead { color: #b9c4be; }
.craft-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.craft-img { border-radius: var(--r); overflow: hidden; aspect-ratio: 4 / 5; }
.craft-img img { width: 100%; height: 100%; object-fit: cover; }
.points { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 32px; margin-top: 40px; }
.points h3 { font-size: 17px; margin-bottom: 6px; }
.points p { color: #b9c4be; font-size: 15px; }
.checks { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 40px; padding: 0; list-style: none; }
.checks li { border: 1px solid #3b4943; border-radius: 999px; padding: 6px 14px; font-size: 14px; color: #d8dfdb; }

/* interiors strip */
.strip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(280px, 34%); gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; }
.strip figure { margin: 0; scroll-snap-align: start; }
.strip img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r); }
.strip figcaption { font-size: 14px; color: var(--moss); margin-top: 8px; }

/* factory */
.factory-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.factory-grid .big { grid-row: span 2; }
.factory-grid img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--r); }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0; margin-top: 48px; border-top: 1px solid var(--line); }
.facts div { padding: 20px 20px 20px 0; border-bottom: 1px solid var(--line); }
.facts b { display: block; font-size: 22px; font-variation-settings: var(--wide); letter-spacing: -0.01em; }
.facts span { color: var(--moss); font-size: 15px; }

/* partner + contact */
.partner { background: var(--mist); }
.partner-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(32px, 6vw, 96px); }
.contact-list { display: grid; gap: 22px; }
.contact-list dt { font-size: 14px; color: var(--moss); }
.contact-list dd { margin: 2px 0 0; font-size: 17px; }
.contact-list a { text-decoration: none; }
.contact-list a:hover { text-decoration: underline; }

footer { padding: 40px 0 56px; font-size: 14px; color: var(--moss); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 40px; justify-content: space-between; align-items: center; }
.social { display: flex; gap: 8px; }
.social a { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; }
.social svg { width: 18px; height: 18px; fill: var(--ink); }

/* catalogue page */
.page-head { padding: 56px 0 24px; }
.page-head h1 { font-size: clamp(40px, 7vw, 104px); line-height: .9; letter-spacing: -0.035em; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 32px 0 40px; }
.chip {
  height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line);
  background: transparent; cursor: pointer; font-size: 15px;
}
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.chip small { color: inherit; opacity: .6; margin-left: 4px; }

/* product page */
.pdp { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(24px, 4vw, 72px); padding: 32px 0 80px; align-items: start; }
.gallery-main { background: var(--mist); border-radius: var(--r); aspect-ratio: 1; display: grid; place-items: center; padding: 8%; }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.gallery-main.photo { padding: 0; overflow: hidden; }
.gallery-main.photo img { object-fit: cover; mix-blend-mode: normal; }
.cat img, .thumbs img { mix-blend-mode: multiply; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 8px; margin-top: 8px; }
.thumbs button { padding: 6px; background: var(--mist); border: 1px solid transparent; border-radius: 4px; cursor: pointer; aspect-ratio: 1; }
.thumbs button[aria-current="true"] { border-color: var(--ink); }
.thumbs img { width: 100%; height: 100%; object-fit: contain; }
.pdp-info { position: sticky; top: 96px; }
.crumbs { font-size: 14px; color: var(--moss); margin-bottom: 16px; }
.crumbs a { text-decoration: none; }
.pdp-info h1 { font-size: clamp(32px, 3.6vw, 52px); line-height: 1; letter-spacing: -0.03em; }
.pdp-info .code { color: var(--moss); margin-top: 10px; }
.pdp-info .desc { margin-top: 24px; max-width: 52ch; }
.opts { margin-top: 28px; }
.opts p { font-size: 14px; color: var(--moss); margin-bottom: 8px; }
.opts .chip { height: 38px; }
.pdp-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 32px; }
.specs { margin-top: 32px; border-top: 1px solid var(--line); }
.specs div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.specs dt { color: var(--moss); }
.specs dd { margin: 0; text-align: right; }
.scenes { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); gap: 12px; }
.scenes img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r); }

/* responsive */
@media (max-width: 960px) {
  .nav ul, .nav .btn { display: none; }
  .menu-btn { display: block; }
  .nav.open { background: var(--paper); flex-wrap: wrap; }
  .nav.open ul { display: flex; flex-direction: column; gap: 4px; width: 100%; margin: 12px 0 0; }
  .nav.open ul a { display: block; padding: 10px 0; font-size: 18px; }
  .nav.open .btn { display: inline-flex; }
  .flute { width: 38%; }
  .flute-card { display: none; }
  .hero-product { width: 92vw; margin-top: 18vh; }
  .hero-foot { flex-direction: column; align-items: flex-start; }
  .craft-grid, .partner-grid, .pdp { grid-template-columns: 1fr; }
  .points { grid-template-columns: 1fr; }
  .pdp-info { position: static; }
  .strip { grid-auto-columns: 78%; }
  .factory-grid { grid-template-columns: 1fr; }
  .factory-grid .big { grid-row: auto; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* ---------- motion ---------- */
:root { --ease: cubic-bezier(.16,1,.3,1); }

/* hero load sequence: wordmark rises, sofa settles, glass slides in */
.wordmark .ch { display: inline-block; animation: rise 1.5s var(--ease) both; animation-delay: calc(var(--i) * 80ms + 150ms); }
.wordmark { overflow-x: visible; overflow-y: clip; padding-bottom: .04em; white-space: nowrap; font-size: clamp(56px, 19.5vw, 300px) !important; }
.hero-product { animation: settle 1.9s var(--ease) .5s both; }
.flute { animation: slide-in 1.8s var(--ease) .8s both; }
.flute-card { animation: fade-up 1.2s var(--ease) 1.5s both; }
.hero-foot > * { animation: fade-up 1.2s var(--ease) 1.3s both; }
.nav:not(.nav-solid) > * { animation: fade-in .8s ease .2s both; }
@keyframes rise { from { transform: translateY(105%); } to { transform: none; } }
@keyframes settle { from { opacity: 0; transform: translateY(60px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes slide-in { from { transform: translateX(100%); } to { transform: none; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

/* parallax + pointer refraction (values set by motion.js) */
.hero-stage { --py: 0px; --fx: 0px; }
.wordmark { translate: calc(var(--tx, 0) * -48px) calc(var(--py) * .35 + var(--ty, 0) * -18px); }
.hero-product { translate: calc(var(--tx, 0) * 28px) calc(var(--py) * -.12 + var(--ty, 0) * 14px); rotate: y calc(var(--tx, 0) * 16deg); }
.hero-stage { perspective: 1400px; }
.flute { background-position: calc(var(--tx, 0) * -60px) 0; }

/* scroll reveal: only when motion.js is running */
.reveal-on [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 1.2s var(--ease), transform 1.4s var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
.reveal-on [data-reveal].in { opacity: 1; transform: none; }

/* cards: a quiet lift of the photo on hover */
.card .ph img { transition: opacity .3s, transform .6s var(--ease); }
.card:hover .ph img { transform: scale(1.035); }
.cat img { transition: transform .6s var(--ease); }
.cat:hover img { transform: scale(1.05); }
.grid.swap { animation: fade-up .45s var(--ease) both; }

/* product gallery crossfade */
.gallery-main { position: relative; cursor: zoom-in; overflow: hidden; }
.gallery-main img { transition: opacity .35s ease; }
.gallery-main img.out { opacity: 0; }
.pdp-info .opts p, .pdp-info .desc { transition: opacity .3s; }

/* ---------- UX ---------- */
/* home header sticks once the hero is passed */
.nav.is-stuck {
  position: fixed; background: rgba(245,246,244,.92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line); padding-top: 12px; padding-bottom: 12px;
  animation: drop .45s var(--ease) both;
}
@keyframes drop { from { transform: translateY(-100%); } to { transform: none; } }

/* catalogue filters stay in reach */
.filters-bar { position: sticky; top: 83px; z-index: 10; background: var(--paper); margin: 0 calc(var(--gutter) * -1); padding: 12px var(--gutter); }
.filters-bar .filters { margin: 0; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.filters-bar .filters::-webkit-scrollbar { display: none; }
.chip { flex: none; transition: background .2s, color .2s, border-color .2s; }
.chip:hover { border-color: var(--ink); }

/* strip arrows */
.strip-nav { display: flex; gap: 8px; }
.round {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: transparent;
  display: grid; place-items: center; cursor: pointer; transition: background .2s, border-color .2s;
}
.round:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.round svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }

/* lightbox */
.lb { position: fixed; inset: 0; z-index: 100; background: rgba(30,40,36,.94); display: grid; grid-template-columns: 64px 1fr 64px; align-items: center; animation: fade-in .25s ease both; }
.lb img { max-width: 100%; max-height: 88vh; margin: auto; object-fit: contain; background: var(--mist); border-radius: var(--r); }
.lb .round { color: #fff; border-color: rgba(255,255,255,.3); margin: auto; }
.lb .close { position: absolute; top: 16px; right: 16px; }
.lb .count { position: absolute; bottom: 20px; left: 0; right: 0; text-align: center; color: #c9d0cc; font-size: 14px; }

/* quick contact */
.quick { position: fixed; right: 16px; bottom: 16px; z-index: 30; display: grid; gap: 8px; transition: transform .3s var(--ease); }
.quick a { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: #fff; box-shadow: 0 6px 20px rgba(30,40,36,.25); }
.quick a:hover { background: var(--blue); }
.quick svg { width: 22px; height: 22px; fill: currentColor; }

/* product page: quote bar on phones */
.quote-bar { display: none; }
@media (max-width: 960px) {
  .quote-bar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    align-items: center; justify-content: space-between; gap: 12px;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--paper); border-top: 1px solid var(--line);
    transform: translateY(110%); transition: transform .35s var(--ease);
  }
  .quote-bar.show { transform: none; }
  .quote-bar b { font-size: 15px; line-height: 1.2; }
  .quote-bar .btn { height: 44px; flex: none; }
  body:has(.quote-bar.show) .quick { transform: translateY(-72px); }
  .filters-bar { top: 85px; }
  .lb { grid-template-columns: 1fr; }
  .lb .prev, .lb .next { position: absolute; bottom: 12px; }
  .lb .prev { left: 16px; } .lb .next { right: 16px; }
}

/* Windows "Animation effects" off (common on office PCs) reports reduced motion:
   keep the fades, drop everything that moves. */
@media (prefers-reduced-motion: reduce) {

  .wordmark .ch, .hero-product, .flute, .flute-card, .hero-foot > *, .grid.swap, .nav.is-stuck { animation-name: fade-in !important; }  .reveal-on [data-reveal] { transform: none; }
  .card:hover .ph img, .cat:hover img { transform: none; }
}

/* anchors land below the sticky header */
section[id] { scroll-margin-top: 72px; }

/* phones: two products per row so the range can be scanned */
@media (max-width: 600px) {
  .grid { grid-template-columns: 1fr 1fr; gap: 24px 10px; }
  .card h3 { font-size: 14px; }
  .card .meta { flex-direction: column; gap: 2px; }
  .card .sub { font-size: 13px; }
  .quick a { width: 44px; height: 44px; }
  .nav .logo img { height: 32px; }
  .filters-bar { top: 85px; }
}

/* ---------- pointer ---------- */
/* soft ring that trails the cursor; becomes a label over products */
.cursor {
  position: fixed; left: 0; top: 0; z-index: 200; pointer-events: none;
  width: 0; height: 0; display: grid; place-items: center;
}
.cursor span {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid rgba(30,40,36,.45); margin: -17px 0 0 -17px;
  font-size: 13px; font-weight: 600; color: #fff; letter-spacing: .01em;
  transition: width .5s var(--ease), height .5s var(--ease), margin .5s var(--ease), background .4s, border-color .4s, opacity .3s, scale .3s var(--ease);
}
.cursor.is-hot span { width: 54px; height: 54px; margin: -27px 0 0 -27px; border-color: rgba(7,82,157,.5); background: rgba(7,82,157,.06); }
.cursor.is-view span, .cursor.is-zoom span { width: 84px; height: 84px; margin: -42px 0 0 -42px; background: var(--ink); border-color: var(--ink); }
.cursor.is-down span { scale: .85; }
.craft .cursor span, .lb ~ .cursor span { border-color: rgba(255,255,255,.5); }

/* photos drift toward the pointer inside their tile */
.card .ph img, .cat img { translate: calc(var(--mx, 0) * 14px) calc(var(--my, 0) * 10px); transition: opacity .3s, transform .9s var(--ease), translate .9s var(--ease); }

/* magnetic buttons ease back when the pointer leaves */
.btn-solid, .round, .quick a { transition: background .2s, color .2s, border-color .2s, translate .6s var(--ease); }

/* Lenis smooth scroll */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

@media (hover: none) { .cursor { display: none; } }

/* every product photo is now a normalised cut-out (same box, same baseline, own shadow) */
.card .ph, .card .ph.photo { padding: 0; }
.card .ph img, .card .ph.photo img { object-fit: contain; mix-blend-mode: normal; }
.card .ph img.alt, .card .ph.photo img.alt { inset: 0; width: 100%; height: 100%; }
.gallery-main, .gallery-main.photo { padding: 0; }
.gallery-main img, .gallery-main.photo img { object-fit: contain; mix-blend-mode: normal; }
.cat img, .thumbs img { mix-blend-mode: normal; }
.thumbs button { padding: 0; }

/* glass panel: covers the right half; when the pointer enters the hero it draws back
   to the right edge so the product shows clearly, and slides back out on leave */
@media (hover: hover) and (pointer: fine) {
  .flute { transition: width 1.6s var(--ease); }
  .hero:hover .flute { width: 12%; }
}
/* touch screens have no hover: the glass slides in, then pulls back to the edge by itself */
@media (hover: none), (pointer: coarse) {
  .flute { animation: slide-in 1.8s var(--ease) .8s both, retract 1.6s var(--ease) 3s both; }
  @keyframes retract { to { width: 12%; } }
  @media (prefers-reduced-motion: reduce) { .flute { width: 12%; } }
}

/* ---------- manufacturer sections ---------- */
.hero-title { font-size: clamp(22px, 2.2vw, 30px); line-height: 1.15; letter-spacing: -0.015em; margin-bottom: 8px; max-width: 22ch; }
.hero-foot p { color: var(--moss); }

.trust { background: var(--paper); border-bottom: 1px solid var(--line); }
.trust .facts { margin: 0; border-top: 0; }
.trust .facts div { border-bottom: 0; padding: 28px 20px 28px 0; }

.why { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.why div { background: var(--paper); padding: 28px; transition: background .4s; }
.why div:hover { background: var(--mist); }
.why h3 { margin-bottom: 8px; }
.why p { color: var(--moss); font-size: 15px; }

.steps-title { margin: 72px 0 24px; font-size: clamp(22px, 2vw, 28px); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); counter-reset: s; }
.steps li { counter-increment: s; padding: 0 24px 0 0; position: relative; }
.steps li::before {
  content: counter(s, decimal-leading-zero); display: block; font-variation-settings: var(--wide); font-weight: 700;
  font-size: 14px; color: var(--blue); padding-bottom: 14px; margin-bottom: 14px; border-bottom: 1px solid var(--ink);
}
.steps b { display: block; font-size: 17px; margin-bottom: 6px; }
.steps span { color: var(--moss); font-size: 15px; }


.cert-grid { display: grid; grid-template-columns: 1fr 1fr 1.3fr; gap: 12px; }
.cert-grid > div { background: var(--mist); border-radius: var(--r); padding: 28px; }
.cert-grid h3 { margin-bottom: 8px; }
.cert-grid p { color: var(--moss); font-size: 15px; }
.badges { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 8px; }
.badges img { height: 44px; width: auto; mix-blend-mode: multiply; }
.partners { margin-top: 48px; }
.partners h3 { font-size: 14px; font-weight: 400; color: var(--moss); margin-bottom: 8px; }
/* logos are pre-trimmed onto equal 2:1 tiles, so an even grid keeps them balanced */
.logos { display: grid; grid-template-columns: repeat(9, 1fr); gap: 8px 24px; align-items: center; }
.logos img { display: block; width: 100%; height: auto; aspect-ratio: 2; filter: grayscale(1); opacity: .7; mix-blend-mode: multiply; transition: filter .4s, opacity .4s; }
.logos img:hover { filter: none; opacity: 1; }
@media (max-width: 960px) { .logos { grid-template-columns: repeat(3, 1fr); gap: 4px 28px; } }

.cat-band { background: var(--blue); color: #fff; padding: 64px 0; }
.cat-band .lead { color: #c7d7ee; margin-top: 12px; }
.cat-band-in { display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; }
.cat-band .btn-solid { background: #fff; color: var(--blue); border-color: #fff; }
.cat-band .btn-solid:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

@media (max-width: 960px) {
  .why { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; gap: 24px; }
  .cert-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) { .why { grid-template-columns: 1fr; } }

/* ---------- loading screen (first visit in a session) ---------- */
.loader {
  position: fixed; inset: 0; z-index: 300; background: var(--mist);
  display: grid; place-items: center; align-content: center; gap: 28px;
  animation: loader-out .01s linear 3.2s forwards; /* safety: never stays if scripts fail */
}
.loader img { width: 132px; height: auto; animation: fade-up .9s var(--ease) both; }
.loader .bar { width: 168px; height: 2px; background: rgba(30,40,36,.12); overflow: hidden; border-radius: 2px; }
.loader .bar i { display: block; height: 100%; width: 100%; background: var(--blue); transform-origin: left; transform: scaleX(var(--p, .08)); transition: transform .5s var(--ease); }
.loader .pct { font-size: 13px; color: var(--moss); font-variant-numeric: tabular-nums; margin-top: -14px; }
.loader.done { transform: translateY(-100%); transition: transform 1.1s cubic-bezier(.76,0,.24,1); }
.loader.done img, .loader.done .bar, .loader.done .pct { opacity: 0; transition: opacity .3s; }
html.seen .loader { display: none; }
@keyframes loader-out { to { visibility: hidden; } }
/* hold the hero intro until the loader has lifted */
html.is-loading .hero * , html.is-loading .nav > * { animation-play-state: paused !important; }
@media (prefers-reduced-motion: reduce) {
  .loader.done { transform: none; opacity: 0; transition: opacity .6s; }
}
