/* RIEC · Infinity Engineering — round 3.
   Primary: white + Apple greys. Secondary: maroon (only on primary actions, links and the active state).
   Spacing: one 8-point scale. Glass: only on the floating layer (top bar, tab bar, search sheet). */

:root {
  /* colour */
  --bg: #ffffff;
  --bg-alt: #f5f5f7;
  --bg-sunk: #ececf0;
  --card: #ffffff;
  --ink: #1d1d1f;            /* 16.8:1 on white */
  --ink-2: #4b4b50;          /* 8.7:1 on white */
  --ink-3: #6e6e73;          /* 5.1:1 on white, 4.7:1 on #f5f5f7 */
  --line: #d2d2d7;
  --hair: #e6e6eb;
  --brand: #7a1f2b;          /* maroon: white text on it 10.2:1 */
  --brand-hover: #63182a;
  --brand-tint: #f6ecee;
  --brand-soft: rgba(122, 31, 43, .10);
  --ok: #1a7f37;
  --focus: #7a1f2b;

  /* 8-point spacing scale */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px;
  --section: clamp(64px, 8vw, 96px);
  --head-gap: clamp(32px, 4vw, 48px);
  --gap: clamp(16px, 2vw, 24px);

  /* layout */
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --nav-off: 96px;           /* space the floating bar takes at the top */

  /* shape */
  --r-sm: 12px; --r-md: 16px; --r-lg: 24px; --r-xl: 32px;
  --shadow-1: 0 1px 2px rgba(0,0,0,.04), 0 4px 16px rgba(0,0,0,.05);
  --shadow-2: 0 2px 8px rgba(0,0,0,.06), 0 24px 48px rgba(0,0,0,.10);

  /* type */
  --fs-display: clamp(2.5rem, 1.4rem + 4vw, 4.5rem);
  --fs-h1: clamp(2.25rem, 1.5rem + 2.6vw, 3.5rem);
  --fs-h2: clamp(1.75rem, 1.2rem + 2vw, 3rem);
  --fs-lead: clamp(1.0625rem, 1rem + .4vw, 1.3125rem);

  /* motion */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --spring: cubic-bezier(.34, 1.45, .64, 1);
  --spring-soft: cubic-bezier(.3, 1.2, .5, 1);

  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--nav-off); }
body { margin: 0; background: var(--bg); color: var(--ink); overflow-x: clip;
  font: 17px/1.5 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: var(--s4); top: -64px; background: var(--ink); color: #fff; padding: var(--s3) var(--s4); border-radius: var(--r-sm); z-index: 200; }
.skip:focus { top: var(--s3); }

/* ---------- Layout primitives ---------- */
.wrap { max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding-inline: var(--gutter); }
main { padding-top: var(--nav-off); }
body[data-page="home"] main { padding-top: 0; }
.section { padding-block: var(--section); background: var(--bg); position: relative; }
.section.alt { background: var(--bg-alt); }
.sec-head { display: flex; align-items: end; justify-content: space-between; gap: var(--s5); margin-bottom: var(--head-gap); flex-wrap: wrap; }
.sec-head > div { max-width: 680px; }
.sec-head p { margin: var(--s3) 0 0; color: var(--ink-2); }

.eyebrow { font-size: 15px; font-weight: 600; color: var(--brand); margin: 0 0 var(--s3); letter-spacing: 0; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
h1 { font-size: var(--fs-h1); font-weight: 700; letter-spacing: -0.028em; line-height: 1.06; }
h2 { font-size: var(--fs-h2); font-weight: 700; letter-spacing: -0.024em; line-height: 1.08; }
h3 { font-size: 19px; font-weight: 600; letter-spacing: -0.012em; line-height: 1.3; }
.lead { font-size: var(--fs-lead); line-height: 1.45; color: var(--ink-2); margin: var(--s4) 0 0; max-width: 60ch; }
.muted { color: var(--ink-3); }
p { text-wrap: pretty; }
.link-more { color: var(--brand); font-weight: 600; font-size: 17px; white-space: nowrap; display: inline-flex; align-items: center; gap: var(--s1); min-height: 44px; }
@media (hover: hover) and (pointer: fine) { .link-more:hover { text-decoration: underline; text-underline-offset: 3px; } }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--s2); min-height: 44px; padding: 0 var(--s5);
  border-radius: 999px; border: 1px solid transparent; font-weight: 600; font-size: 16px; cursor: pointer; white-space: nowrap;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease, transform 160ms var(--ease-out); }
.btn:active { transform: scale(.97); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-secondary { background: var(--card); border-color: var(--line); color: var(--ink); }
.btn-ghost { background: transparent; color: var(--brand); }
.btn-wa { background: #25d366; color: #052e12; }
.btn-lg { min-height: 52px; padding: 0 var(--s6); font-size: 17px; }
.btn-sm { min-height: 40px; padding: 0 var(--s4); font-size: 15px; }
.btn-block { width: 100%; }
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { background: var(--brand-hover); }
  .btn-secondary:hover { border-color: var(--ink-3); }
  .btn-wa:hover { background: #1fbd5a; }
}

/* ============ Floating Liquid Glass top bar ============ */
.glass-surface { background: rgba(255,255,255,.58); border: 1px solid rgba(255,255,255,.7);
  box-shadow: 0 1px 0 rgba(255,255,255,.9) inset, 0 -1px 0 rgba(0,0,0,.04) inset, 0 8px 32px rgba(0,0,0,.10), 0 1px 3px rgba(0,0,0,.06);
  -webkit-backdrop-filter: blur(14px) saturate(1.6); backdrop-filter: blur(14px) saturate(1.6); }
/* where liquidGlass() applies the refraction filter, it sets backdrop-filter inline */
.glass-surface.glass { background: rgba(255,255,255,.62); }

.topbar { position: fixed; z-index: 60; top: var(--s3); left: 0; right: 0; pointer-events: none;
  transition: transform .5s var(--spring-soft); }
.topbar-in { max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding-inline: var(--gutter);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: var(--s3); }
.topbar-in > * { pointer-events: auto; }

.brand-pill { justify-self: start; display: inline-flex; align-items: center; gap: var(--s2); height: 56px; padding: 0 var(--s5) 0 var(--s4); border-radius: 999px; }
.brand-pill img { height: 34px; width: auto; max-width: 150px; object-fit: contain; }
.brand-pill .bn { display: none; flex-direction: column; line-height: 1.1; }
.brand-pill .bn b { font-size: 16px; letter-spacing: -0.01em; }
.brand-pill .bn span { font-size: 12px; color: var(--ink-3); }
.brand-pill.no-logo .bn { display: flex; }

.navpill { position: relative; display: flex; align-items: center; height: 56px; padding: 4px; border-radius: 999px; isolation: isolate; overflow: hidden; }
.navpill a { position: relative; z-index: 2; display: grid; place-items: center; height: 46px; padding: 0 var(--s4); border-radius: 999px;
  font-size: 15px; font-weight: 500; color: var(--ink-2); transition: color .25s ease; white-space: nowrap; }
.navpill a[aria-current="page"] { color: var(--brand); font-weight: 600; }
.navpill a.is-hot { color: var(--ink); }
.navpill a[aria-current="page"].is-hot { color: var(--brand); }
/* the lens: slides between items on a spring, squashes while moving */
.lens { position: absolute; z-index: 1; top: 4px; left: 0; height: 46px; width: 80px; border-radius: 999px; pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,.95), rgba(255,255,255,.7));
  box-shadow: 0 1px 0 #fff inset, 0 0 0 1px rgba(122,31,43,.10), 0 4px 14px rgba(122,31,43,.14), 0 1px 2px rgba(0,0,0,.06);
  transition: transform .6s var(--spring), width .6s var(--spring), opacity .2s ease; opacity: 0; }
.lens.on { opacity: 1; }
.lens.moving { animation: lens-squash .45s var(--ease-out); }
@keyframes lens-squash { 0% { scale: 1 1; } 35% { scale: 1.08 .86; } 70% { scale: .98 1.03; } 100% { scale: 1 1; } }
/* light that follows the pointer across the glass */
.trail::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 3;
  background: radial-gradient(120px circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,.55), transparent 70%);
  opacity: 0; transition: opacity .3s ease; mix-blend-mode: soft-light; }
.trail:hover::after { opacity: 1; }

.top-actions { justify-self: end; display: flex; align-items: center; gap: var(--s2); }
.icon-pill { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; padding: 0; color: var(--ink);
  transition: transform 160ms var(--ease-out); }
.icon-pill svg { width: 20px; height: 20px; }
.icon-pill:active { transform: scale(.94); }
.quote-pill { height: 56px; padding: 4px; border-radius: 999px; display: flex; align-items: center; }
.quote-pill .btn { min-height: 46px; padding: 0 var(--s5); font-size: 15px; box-shadow: 0 4px 14px rgba(122,31,43,.28); }

.topbar.is-scrolled { transform: translateY(-4px); }

@media (max-width: 1060px) { .navpill a { padding: 0 var(--s3); font-size: 14px; } }
@media (max-width: 900px) {
  :root { --nav-off: 84px; }
  .navpill { display: none; }
  .topbar-in { grid-template-columns: 1fr auto; }
  .brand-pill, .icon-pill, .quote-pill { height: 52px; }
  .icon-pill { width: 52px; }
  .quote-pill .btn { min-height: 44px; padding: 0 var(--s4); }
}
@media (max-width: 380px) { .brand-pill img { max-width: 110px; } .quote-pill .btn { padding: 0 var(--s3); } }

/* ============ Phone tab bar (glass) ============ */
.tabbar { display: none; }
@media (max-width: 900px) {
  .tabbar { display: flex; position: fixed; z-index: 60; left: 50%; bottom: calc(var(--s3) + env(safe-area-inset-bottom));
    width: min(100% - 24px, 440px); height: 64px; padding: 4px; border-radius: 999px; translate: -50% 0; isolation: isolate; overflow: hidden;
    transition: height .45s var(--spring-soft), width .45s var(--spring-soft); }
  .tabbar a { position: relative; z-index: 2; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
    border-radius: 999px; color: var(--ink-2); font-size: 11px; font-weight: 600; min-width: 0; transition: color .25s ease; }
  .tabbar a svg { width: 22px; height: 22px; transition: transform .45s var(--spring); }
  .tabbar a[aria-current="page"] { color: var(--brand); }
  .tabbar a span { transition: opacity .2s ease; white-space: nowrap; }
  .tabbar .lens { top: 4px; height: 56px; }
  .tabbar.is-min { height: 52px; width: min(100% - 72px, 360px); }
  .tabbar.is-min a span { opacity: 0; height: 0; overflow: hidden; }
  .tabbar.is-min .lens { height: 44px; }
  body { padding-bottom: calc(88px + env(safe-area-inset-bottom)); }
}

/* ============ Search sheet (glass) ============ */
dialog.search-sheet { border: 0; padding: 0; margin: var(--s3) auto auto; width: min(680px, calc(100% - 24px)); max-height: calc(100dvh - 24px);
  border-radius: var(--r-xl); color: var(--ink); overflow: auto; }
.search-sheet.glass-surface { background: rgba(255,255,255,.86); }
dialog.search-sheet::backdrop { background: rgba(245,245,247,.55); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
dialog.search-sheet[open] { animation: drop-in 320ms var(--spring-soft); }
.search-sheet .ss-in { padding: var(--s4); display: grid; gap: var(--s3); }
.search-sheet .ss-top { display: flex; align-items: center; justify-content: space-between; padding: 0 var(--s2); }
.search-sheet .ss-top b { font-size: 15px; color: var(--ink-3); font-weight: 600; }
.search-sheet .chips { margin-top: 0; padding: 0 var(--s2) var(--s2); }
.search-sheet .suggest { position: static; box-shadow: none; border: 0; padding: 0; margin-top: var(--s2); background: transparent; }
@keyframes drop-in { from { opacity: 0; transform: translateY(-16px) scale(.98); } to { opacity: 1; transform: none; } }

/* ---------- Search field ---------- */
.search-wrap { position: relative; }
.search-field { display: flex; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 999px; height: 52px; padding: 0 6px 0 var(--s4);
  transition: border-color .15s ease, box-shadow .15s ease; }
.search-field:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.search-field svg { width: 18px; height: 18px; color: var(--ink-3); flex: none; }
.search-field input { flex: 1; border: 0; background: transparent; height: 100%; padding: 0 var(--s3); outline: none; font-size: 17px; min-width: 0; }
.search-field input::-webkit-search-cancel-button { display: none; }
.search-field button { height: 40px; padding: 0 var(--s4); border: 0; border-radius: 999px; background: var(--brand); color: #fff; font-weight: 600; font-size: 15px; cursor: pointer; flex: none; }
.suggest { position: absolute; top: calc(100% + var(--s2)); left: 0; right: 0; background: var(--card); border: 1px solid var(--hair); border-radius: var(--r-md); box-shadow: var(--shadow-2);
  padding: var(--s2); display: none; z-index: 70; max-height: 420px; overflow: auto; }
.suggest.open { display: block; }
.suggest a { display: flex; align-items: center; gap: var(--s3); padding: var(--s2); border-radius: var(--r-sm); }
.suggest a:hover, .suggest a.active { background: var(--bg-alt); }
.suggest img, .suggest .ph { width: 40px; height: 40px; border-radius: 8px; object-fit: contain; background: #fff; flex: none; }
.suggest .s-t { font-size: 15px; font-weight: 500; }
.suggest .s-c { font-size: 13px; color: var(--ink-3); }
.suggest .s-h { font-size: 12px; font-weight: 600; color: var(--ink-3); padding: var(--s2) var(--s2) var(--s1); text-transform: uppercase; letter-spacing: .04em; }

/* ---------- Chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s4); }
.chip { display: inline-flex; align-items: center; min-height: 36px; padding: 0 var(--s4); border-radius: 999px; background: var(--bg-alt); border: 1px solid transparent;
  font-size: 14px; font-weight: 500; color: var(--ink-2); cursor: pointer; transition: background-color .15s ease, color .15s ease, transform 160ms var(--ease-out); }
.chip:active { transform: scale(.97); }
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; }
@media (hover: hover) and (pointer: fine) { .chip:hover { background: var(--bg-sunk); color: var(--ink); } .chip[aria-pressed="true"]:hover { background: var(--ink); color: #fff; } }
.hero .chip { background: rgba(255,255,255,.75); border-color: var(--hair); }

/* ============ Hero: photo with white fade, sticky so the page slides over it ============ */
.hero { position: sticky; top: 0; z-index: 0; min-height: min(100svh, 880px); display: flex; align-items: center; overflow: hidden;
  padding: calc(var(--nav-off) + var(--s6)) 0 calc(var(--s8) + var(--r-xl)); background: var(--bg-alt); }
.hero > .wrap { width: 100%; }
.hero-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.hero-bg img { position: absolute; inset: -6% -4%; width: 108%; height: 112%; max-width: none; object-fit: cover; object-position: 70% center;
  transform: translate3d(0, var(--py, 0px), 0) scale(var(--ps, 1)); will-change: transform; animation: drift 24s ease-in-out infinite alternate; }
@keyframes drift { from { translate: 0 0; } to { translate: -2% 1%; } }
.hero-bg::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(255,255,255,.97) 0%, rgba(255,255,255,.92) 34%, rgba(255,255,255,.55) 56%, rgba(255,255,255,0) 74%),
              linear-gradient(0deg, rgba(255,255,255,.6), rgba(255,255,255,0) 30%); }
.hero-copy { max-width: 600px; }
.hero h1 { font-size: var(--fs-display); letter-spacing: -0.032em; line-height: 1.04; max-width: 14ch; }
.hero h1 span { color: var(--brand); }
.hero .lead { max-width: 520px; }
.hero-search { margin-top: var(--s6); max-width: 560px; }
.hero-search .search-field { height: 60px; box-shadow: var(--shadow-1); border-color: var(--hair); padding-right: var(--s2); }
.hero-search .search-field button { height: 44px; padding: 0 var(--s5); }
.hero-cta { display: flex; gap: var(--s3); flex-wrap: wrap; margin-top: var(--s5); }
.hero-stats { display: flex; gap: var(--s6); margin-top: var(--s7); flex-wrap: wrap; }
.hero-stats b { display: block; font-size: 28px; letter-spacing: -0.02em; line-height: 1.2; font-variant-numeric: tabular-nums; }
.hero-stats span { font-size: 14px; color: var(--ink-3); }
@media (max-width: 760px) {
  .hero { min-height: 0; align-items: flex-start; padding-bottom: calc(var(--s7) + var(--r-xl)); }
  .hero-bg img { object-position: 62% center; }
  .hero-bg::after { background: linear-gradient(180deg, rgba(255,255,255,.88) 0%, rgba(255,255,255,.94) 55%, rgba(255,255,255,.98) 100%); }
  .hero-stats { gap: var(--s5); margin-top: var(--s6); }
  .hero-stats b { font-size: 22px; }
  .hero-search .search-field { height: 56px; }
  .hero-search .search-field button { padding: 0 var(--s4); }
  .hero-cta .btn { flex: 1 1 auto; }
}
/* the rest of the page is a sheet that slides over the hero */
.sheet-over { position: relative; z-index: 1; background: var(--bg); border-radius: var(--r-xl) var(--r-xl) 0 0; margin-top: calc(var(--r-xl) * -1);
  box-shadow: 0 -12px 40px rgba(0,0,0,.08); overflow: clip; }

/* ---------- Page heads (inner pages) ---------- */
.page-head { padding: var(--s6) 0 var(--s7); background: var(--bg); }
.page-head h1 { font-size: var(--fs-h1); }
.page-head .lead { margin-top: var(--s3); }
.crumbs { font-size: 14px; color: var(--ink-3); display: flex; gap: var(--s2); flex-wrap: wrap; margin-bottom: var(--s4); align-items: center; }
@media (hover: hover) and (pointer: fine) { .crumbs a:hover { color: var(--brand); } }
.page-head-photo { position: relative; margin-top: calc(var(--nav-off) * -1); padding: calc(var(--nav-off) + var(--s8)) 0 var(--s8); overflow: hidden;
  background: linear-gradient(90deg, rgba(255,255,255,.97) 0%, rgba(255,255,255,.9) 40%, rgba(255,255,255,.35) 72%, rgba(255,255,255,.1) 100%), var(--img, none) center / cover no-repeat, var(--bg-alt); }
@media (max-width: 760px) { .page-head-photo { background: linear-gradient(rgba(255,255,255,.9), rgba(255,255,255,.94)), var(--img, none) center / cover no-repeat, var(--bg-alt); } }

/* ---------- Category tiles ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--s4); }
.cat-tile { display: flex; flex-direction: column; gap: var(--s3); padding: var(--s5); border-radius: var(--r-lg); background: var(--card); min-height: 168px;
  transition: transform .3s var(--ease-out), box-shadow .3s ease; }
.cat-tile:active { transform: scale(.97); }
.cat-ic { width: 44px; height: 44px; border-radius: var(--r-sm); background: var(--brand-tint); color: var(--brand); display: grid; place-items: center; }
.cat-ic svg { width: 24px; height: 24px; }
.cat-tile b { font-size: 16px; font-weight: 600; line-height: 1.3; }
.cat-tile span { font-size: 14px; color: var(--ink-3); margin-top: auto; font-variant-numeric: tabular-nums; }
@media (hover: hover) and (pointer: fine) { .cat-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); } }
@media (max-width: 1100px) { .cat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 760px) { .cat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s3); } }
@media (max-width: 560px) { .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .cat-tile { padding: var(--s4); min-height: 144px; } }

/* ---------- Product cards ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(248px, 1fr)); gap: var(--gap); }
.card { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--hair); border-radius: var(--r-lg); overflow: hidden;
  transition: box-shadow .3s ease, transform .3s var(--ease-out); }
.alt .card { border-color: transparent; }
.card .thumb { aspect-ratio: 4 / 3; background: #fff; display: grid; place-items: center; position: relative; overflow: hidden; }
.card .thumb img { width: 100%; height: 100%; object-fit: contain; padding: var(--s4); transition: transform .5s var(--ease-out); }
.card .tag { position: absolute; top: var(--s3); left: var(--s3); font-size: 12px; font-weight: 600; background: var(--brand-tint); color: var(--brand); padding: var(--s1) var(--s2); border-radius: 999px; }
.card .body { padding: var(--s4) var(--s5) var(--s5); display: flex; flex-direction: column; gap: var(--s2); flex: 1; border-top: 1px solid var(--hair); }
.card .cat { font-size: 13px; color: var(--ink-3); }
.card h3 { font-size: 17px; }
.card .specs { list-style: none; padding: 0; margin: 0; font-size: 14px; color: var(--ink-2); display: grid; gap: 2px; }
.card .specs li { display: flex; gap: 6px; } .card .specs li span { color: var(--ink-3); }
.card .actions { display: flex; gap: var(--s2); margin-top: auto; padding-top: var(--s3); }
.card .actions .btn { flex: 1; padding: 0 var(--s3); }
.card .actions .btn-icon { flex: none; width: 40px; padding: 0; }
@media (hover: hover) and (pointer: fine) {
  .card:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }
  .card:hover .thumb img { transform: scale(1.04); }
  .card h3 a:hover { color: var(--brand); }
}
.ph { display: grid; place-items: center; color: var(--ink-3); width: 100%; height: 100%; background: var(--bg-alt); }
.ph svg { width: 40%; height: 40%; opacity: .5; }
.grid.list { grid-template-columns: 1fr; }
.grid.list .card { flex-direction: row; }
.grid.list .card .thumb { width: 220px; flex: none; aspect-ratio: auto; }
.grid.list .card .body { border-top: 0; border-left: 1px solid var(--hair); }
.grid.list .card .actions { max-width: 360px; }
@media (max-width: 600px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s3); }
  .grid.list .card .thumb { width: 120px; }
  .card .body { padding: var(--s3); }
  .card h3 { font-size: 15px; }
  .card .specs, .card .actions .btn-icon { display: none; }
  .card .actions .btn { font-size: 14px; }
}

/* ---------- Catalogue ---------- */
.catalog { display: grid; grid-template-columns: 248px minmax(0, 1fr); gap: var(--s6); padding-bottom: var(--s9); align-items: start; }
.catalog > * { min-width: 0; }
.side { position: sticky; top: calc(var(--nav-off) + var(--s2)); }
.side h2 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); margin: 0 0 var(--s2) var(--s3); font-weight: 600; }
.side nav { display: flex; flex-direction: column; gap: 2px; }
.side a { display: flex; justify-content: space-between; align-items: center; gap: var(--s3); padding: 0 var(--s3); min-height: 40px; border-radius: var(--r-sm); font-size: 15px; color: var(--ink-2); }
.side a[aria-current="true"] { background: var(--brand-tint); color: var(--brand); font-weight: 600; }
.side a small { font-size: 13px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
@media (hover: hover) and (pointer: fine) { .side a:hover { background: var(--bg-alt); color: var(--ink); } .side a[aria-current="true"]:hover { background: var(--brand-tint); color: var(--brand); } }
.side-cta { margin-top: var(--s5); padding: var(--s5); border-radius: var(--r-lg); background: var(--bg-alt); }
.side-cta p { margin: var(--s1) 0 var(--s4); font-size: 14px; color: var(--ink-2); }
.toolbar { display: flex; gap: var(--s3); align-items: center; margin-bottom: var(--s4); flex-wrap: wrap; }
.toolbar .search-field { height: 44px; background: var(--bg-alt); border-color: transparent; }
.toolbar .search-field:focus-within { background: var(--card); border-color: var(--brand); }
.toolbar select { height: 44px; border-radius: 999px; border: 0; background-color: var(--bg-alt); padding: 0 40px 0 var(--s4); font-size: 15px; appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%236e6e73' stroke-width='1.8'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right var(--s4) center; }
.seg { display: inline-flex; background: var(--bg-alt); border-radius: 999px; padding: var(--s1); }
.seg button { width: 44px; height: 36px; border: 0; background: transparent; border-radius: 999px; cursor: pointer; color: var(--ink-3); display: grid; place-items: center; transition: background-color .2s ease, color .2s ease; }
.seg button svg { width: 18px; height: 18px; }
.seg button[aria-pressed="true"] { background: var(--card); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.result-meta { font-size: 15px; color: var(--ink-3); margin: 0 0 var(--s4); }
.cat-intro { margin: 0 0 var(--s5); color: var(--ink-2); max-width: 65ch; }
.cat-scroller { display: none; }
.empty { text-align: center; padding: var(--s8) var(--s4); background: var(--bg-alt); border-radius: var(--r-lg); }
.empty h3 { margin-bottom: var(--s2); }
.empty p { margin: 0 0 var(--s5); }
@media (max-width: 960px) {
  .catalog { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .side { display: none; }
  .cat-scroller { display: flex; gap: var(--s2); overflow-x: auto; padding-bottom: var(--s4); margin-bottom: var(--s2); scrollbar-width: none; }
  .cat-scroller::-webkit-scrollbar { display: none; }
  .cat-scroller .chip { flex: none; }
}

/* ---------- Product detail ---------- */
.pd { display: grid; grid-template-columns: 1.05fr 1fr; gap: var(--s7); padding-top: var(--s5); padding-bottom: var(--s8); align-items: start; }
.pd > * { min-width: 0; }
.gallery .main { aspect-ratio: 1; background: #fff; border-radius: var(--r-xl); border: 1px solid var(--hair); overflow: hidden; display: grid; place-items: center; }
.gallery .main img { width: 100%; height: 100%; object-fit: contain; padding: var(--s5); }
.gallery .thumbs { display: flex; gap: var(--s2); margin-top: var(--s3); flex-wrap: wrap; }
.gallery .thumbs button { width: 72px; height: 72px; border-radius: var(--r-sm); border: 2px solid var(--hair); background: #fff; padding: var(--s1); cursor: pointer; transition: border-color .15s ease; }
.gallery .thumbs button[aria-current="true"] { border-color: var(--brand); }
.gallery .thumbs img { width: 100%; height: 100%; object-fit: contain; }
.pd-info h1 { font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem); }
.price-row { display: flex; align-items: baseline; gap: var(--s3); margin: var(--s5) 0; padding: var(--s4) var(--s5); background: var(--bg-alt); border-radius: var(--r-md); flex-wrap: wrap; }
.price-row b { font-size: 21px; }
.price-row span { color: var(--ink-3); font-size: 15px; }
.spec-table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 0 0 var(--s5); }
.spec-table th, .spec-table td { text-align: left; padding: var(--s3) 0; border-bottom: 1px solid var(--hair); vertical-align: top; }
.spec-table th { width: 42%; color: var(--ink-3); font-weight: 500; padding-right: var(--s4); }
.pd-actions { display: flex; gap: var(--s2); flex-wrap: wrap; }
.pd-actions .btn { flex: 1 1 160px; min-height: 52px; font-size: 17px; }
.seller { margin-top: var(--s5); padding: var(--s5); background: var(--bg-alt); border-radius: var(--r-lg); display: grid; gap: var(--s4); }
.seller-top { display: flex; gap: var(--s3); align-items: center; }
.seller-top img { width: 52px; height: 52px; object-fit: contain; border-radius: var(--r-sm); background: #fff; padding: var(--s1); }
.seller-top b { display: block; font-size: 17px; }
.seller-top span { font-size: 14px; color: var(--ink-3); }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s2); font-size: 15px; color: var(--ink-2); }
.ticks li { display: flex; gap: var(--s3); align-items: flex-start; }
.ticks svg { width: 18px; height: 18px; color: var(--brand); flex: none; margin-top: 3px; }
.pd-desc { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: var(--s7); padding-bottom: var(--s8); align-items: start; }
.pd-desc > * { min-width: 0; }
.pd-desc h2 { font-size: 28px; margin-bottom: var(--s3); }
.pd-desc p { color: var(--ink-2); max-width: 65ch; }
.inline-form { padding: var(--s5); border-radius: var(--r-xl); background: var(--bg-alt); position: sticky; top: calc(var(--nav-off) + var(--s2)); }
.inline-form h3 { font-size: 21px; margin-bottom: var(--s1); }
@media (max-width: 900px) { .pd, .pd-desc { grid-template-columns: minmax(0, 1fr); gap: var(--s6); } .inline-form { position: static; } }

/* ---------- Forms ---------- */
.form { display: grid; gap: var(--s4); }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s4); }
.form .row > * { min-width: 0; }
@media (max-width: 560px) { .form .row { grid-template-columns: 1fr; } }
.field { display: grid; gap: var(--s2); }
.field label { font-size: 14px; font-weight: 600; color: var(--ink-2); }
.field label .opt { font-weight: 400; color: var(--ink-3); }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; padding: var(--s3) var(--s4); border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--card);
  font-size: 16px; transition: border-color .15s ease, box-shadow .15s ease; }
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.field .err { font-size: 13px; color: #b3261e; display: none; }
.field.invalid input, .field.invalid textarea { border-color: #b3261e; }
.field.invalid .err { display: block; }
.phone-in { display: flex; align-items: stretch; }
.phone-in span { display: grid; place-items: center; padding: 0 var(--s3); border: 1px solid var(--line); border-right: 0; border-radius: var(--r-sm) 0 0 var(--r-sm); background: var(--bg-alt); font-size: 15px; color: var(--ink-2); }
.phone-in input { border-radius: 0 var(--r-sm) var(--r-sm) 0 !important; }
.form-note { font-size: 13px; color: var(--ink-3); margin: 0; }
.success { text-align: center; padding: var(--s4) 0 var(--s1); }
.success .ok-ic { width: 56px; height: 56px; border-radius: 50%; background: rgba(26,127,55,.12); color: var(--ok); display: grid; place-items: center; margin: 0 auto var(--s3); }
.success .ok-ic svg { width: 28px; height: 28px; }
.success p { color: var(--ink-2); margin: var(--s2) 0 var(--s5); }
.success .btn + .btn { margin-top: var(--s2); }

/* ---------- Enquiry sheet ---------- */
dialog.sheet { border: 0; padding: 0; width: min(560px, calc(100% - 32px)); border-radius: var(--r-xl); background: var(--card); color: var(--ink); box-shadow: var(--shadow-2); max-height: calc(100dvh - 32px); }
dialog.sheet::backdrop { background: rgba(0,0,0,.4); }
.sheet-head { display: flex; gap: var(--s3); align-items: center; padding: var(--s5) var(--s5) var(--s4); border-bottom: 1px solid var(--hair); position: sticky; top: 0; background: var(--card); z-index: 1; }
.sheet-head img, .sheet-head .ph { width: 56px; height: 56px; border-radius: var(--r-sm); object-fit: contain; background: #fff; border: 1px solid var(--hair); flex: none; }
.sheet-head h2 { font-size: 19px; letter-spacing: -0.01em; }
.sheet-head p { margin: 2px 0 0; font-size: 14px; color: var(--ink-3); }
.sheet-close { margin-left: auto; width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--bg-alt); cursor: pointer; display: grid; place-items: center; flex: none; align-self: flex-start; }
.sheet-close svg { width: 16px; height: 16px; }
.sheet-body { padding: var(--s5); }
dialog.sheet[open] { animation: sheet-in 280ms var(--ease-out); }
dialog.sheet[open]::backdrop { animation: fade-in 200ms ease; }
dialog.sheet.closing { animation: sheet-out 160ms ease-in forwards; }
@keyframes sheet-in { from { opacity: 0; transform: translateY(12px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes sheet-out { to { opacity: 0; transform: translateY(8px) scale(.98); } }
@keyframes fade-in { from { opacity: 0; } }
@media (max-width: 600px) {
  dialog.sheet { width: 100%; max-width: 100%; margin: auto 0 0; border-radius: var(--r-xl) var(--r-xl) 0 0; max-height: 92dvh; }
  @keyframes sheet-in { from { transform: translateY(100%); } to { transform: none; } }
  @keyframes sheet-out { to { transform: translateY(100%); } }
}

/* ---------- Services ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: var(--gap); }
@media (max-width: 400px) { .svc-grid { grid-template-columns: 1fr; } }
.svc { background: var(--card); border: 1px solid var(--hair); border-radius: var(--r-lg); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .3s ease, transform .3s var(--ease-out); }
.alt .svc { border-color: transparent; }
.svc img { aspect-ratio: 16/10; object-fit: cover; width: 100%; background: var(--bg-alt); }
.svc .body { padding: var(--s5); display: grid; gap: var(--s3); align-content: start; }
.svc p { margin: 0; color: var(--ink-2); font-size: 15px; }
.svc ul { margin: 0; padding-left: 18px; color: var(--ink-2); font-size: 15px; display: grid; gap: var(--s1); }
.svc .btn { justify-self: start; margin-top: var(--s2); }
@media (hover: hover) and (pointer: fine) { a.svc:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); } }

/* ---------- Why tiles ---------- */
.why { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); }
.why > div { padding: var(--s5); background: var(--bg-alt); border-radius: var(--r-lg); }
.alt .why > div { background: var(--card); }
.w-ic { width: 44px; height: 44px; border-radius: var(--r-sm); background: var(--brand-tint); color: var(--brand); display: grid; place-items: center; margin-bottom: var(--s4); flex: none; }
.w-ic svg { width: 22px; height: 22px; }
.why h3 { font-size: 17px; margin-bottom: var(--s2); }
.why p { margin: 0; font-size: 15px; color: var(--ink-2); }
@media (max-width: 900px) { .why { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .why { grid-template-columns: 1fr; } }

/* ---------- Split, banner, clients, FAQ ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s8); align-items: center; }
.split > * { min-width: 0; }
.split img { border-radius: var(--r-xl); width: 100%; aspect-ratio: 5 / 4; object-fit: cover; background: var(--bg-sunk); }
.split .btn { margin-top: var(--s5); }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: var(--s6); } }

.banner { position: relative; border-radius: var(--r-xl); overflow: hidden; min-height: 320px; display: flex; align-items: flex-end; padding: clamp(24px, 4vw, 48px); color: #fff; margin-bottom: var(--s8);
  background: linear-gradient(0deg, rgba(20,8,10,.82), rgba(20,8,10,.1) 72%), var(--img, none) center / cover no-repeat, #2a1216; }
.banner h2 { color: #fff; }
.banner p { color: rgba(255,255,255,.86); max-width: 60ch; margin: var(--s3) 0 0; }
.banner .eyebrow { color: #f2c6cc; }
.banner .link-more { color: #fff; margin-top: var(--s2); }

.clients { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: var(--s3); }
.clients div { aspect-ratio: 3/2; background: var(--card); border: 1px solid var(--hair); border-radius: var(--r-md); display: grid; place-items: center; padding: var(--s3); min-width: 0; overflow: hidden; font-size: 13px; text-align: center; }
.alt .clients div { border-color: transparent; }
.clients img { max-height: 100%; object-fit: contain; filter: grayscale(1); opacity: .75; transition: filter .3s ease, opacity .3s ease; }
@media (hover: hover) and (pointer: fine) { .clients div:hover img { filter: none; opacity: 1; } }
@media (max-width: 900px) { .clients { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.faq { max-width: 760px; }
.faq details { border-bottom: 1px solid var(--hair); }
.faq summary { list-style: none; cursor: pointer; padding: var(--s5) 0; font-weight: 600; font-size: 18px; display: flex; justify-content: space-between; gap: var(--s4); align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; width: 10px; height: 10px; border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3); transform: rotate(45deg); transition: transform .3s var(--spring); flex: none; margin-top: -5px; }
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: 5px; }
.faq details p { margin: 0 0 var(--s5); color: var(--ink-2); max-width: 65ch; }

/* ---------- Requirement block ---------- */
.req { background: var(--card); border-radius: var(--r-xl); padding: clamp(24px, 5vw, 64px); display: grid; grid-template-columns: 1fr 1.1fr; gap: var(--s7); align-items: center; box-shadow: var(--shadow-1); }
.req > * { min-width: 0; }
.section:not(.alt) .req { background: var(--bg-alt); box-shadow: none; }
.req .form-card { background: var(--card); border-radius: var(--r-lg); padding: var(--s5); border: 1px solid var(--hair); }
.steps { list-style: none; padding: 0; margin: var(--s6) 0 0; display: grid; gap: var(--s4); }
.steps li { display: flex; gap: var(--s3); align-items: center; color: var(--ink-2); }
.steps b { width: 32px; height: 32px; border-radius: 50%; background: var(--brand-tint); color: var(--brand); display: grid; place-items: center; font-size: 14px; flex: none; }
@media (max-width: 900px) { .req { grid-template-columns: 1fr; gap: var(--s6); } }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: var(--s7); padding-bottom: var(--s9); align-items: start; }
.contact-grid > * { min-width: 0; }
#contact-cards { display: grid; gap: var(--s3); }
.c-card { padding: var(--s5); background: var(--bg-alt); border-radius: var(--r-lg); display: flex; gap: var(--s4); }
.c-card .w-ic { margin: 0; background: var(--card); }
.c-card b { display: block; margin-bottom: var(--s1); }
.c-card p, .c-card a { margin: 0; color: var(--ink-2); font-size: 15px; }
@media (hover: hover) and (pointer: fine) { .c-card a:hover { color: var(--brand); } }
.form-panel { padding: var(--s6); border-radius: var(--r-xl); border: 1px solid var(--hair); }
.form-panel h2 { font-size: 24px; margin-bottom: var(--s5); }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } .form-panel { padding: var(--s5); } }

/* ---------- Footer (light, Apple-style) ---------- */
.footer { background: var(--bg-alt); color: var(--ink-2); padding: var(--s8) 0 var(--s6); font-size: 14px; border-top: 1px solid var(--hair); position: relative; z-index: 1; }
.footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: var(--s6); }
.footer h4 { color: var(--ink); font-size: 14px; margin: 0 0 var(--s4); font-weight: 600; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s3); }
@media (hover: hover) and (pointer: fine) { .footer a:hover { color: var(--brand); } }
.footer .f-brand img { height: 44px; width: auto; margin-bottom: var(--s4); }
.footer .f-brand p { margin: 0; max-width: 320px; }
.footer .bottom { border-top: 1px solid var(--line); margin-top: var(--s7); padding-top: var(--s5); display: flex; justify-content: space-between; gap: var(--s4); flex-wrap: wrap; font-size: 13px; color: var(--ink-3); }
@media (max-width: 860px) { .footer .cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer .cols { grid-template-columns: 1fr; } }

.toast { position: fixed; left: 50%; bottom: 104px; transform: translateX(-50%) translateY(16px); background: var(--ink); color: #fff; padding: var(--s3) var(--s5); border-radius: 999px; font-size: 15px; opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .3s var(--ease-out); z-index: 90; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- Scroll reveal: content moves under the glass ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .8s var(--ease-out); transition-delay: var(--d, 0ms); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Accessibility fallbacks ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
  .hero { position: relative; }
  .hero-bg img { transform: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .glass-surface, .glass-surface.glass { background: #fff !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; border-color: var(--line); }
  dialog.search-sheet::backdrop { background: rgba(0,0,0,.4); backdrop-filter: none; }
}
@media (prefers-contrast: more) {
  :root { --ink-2: #1d1d1f; --ink-3: #3a3a3c; --hair: #b0b0b5; --line: #8e8e93; }
  .glass-surface { background: #fff !important; }
}

/* ===================== Round 4: pre-launch polish ===================== */

/* Scroll edge: content fades and softens before it meets the glass bar */
.scroll-edge { position: fixed; z-index: 55; top: 0; left: 0; right: 0; height: calc(var(--nav-off) + var(--s4)); pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,.96) 0%, rgba(255,255,255,.82) 45%, rgba(255,255,255,0) 100%);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent); mask-image: linear-gradient(180deg, #000 55%, transparent);
  opacity: 0; transition: opacity .3s ease; }
html.scrolled .scroll-edge { opacity: 1; }

/* Buttons: pop on hover, press in on tap, liquid-glass shine that follows the pointer */
.btn, .chip, .icon-pill, .seg button { position: relative; isolation: isolate; overflow: hidden; }
.btn { transition: transform .45s var(--spring), box-shadow .3s ease, background-color .2s ease, border-color .2s ease, color .2s ease; }
.btn::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: -1;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.28), inset 0 -1px 0 rgba(0,0,0,.08); }
.btn::after, .chip::after, .icon-pill::after, .seg button::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(90px circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,.5), rgba(255,255,255,0) 70%);
  opacity: 0; transition: opacity .25s ease; }
.btn-secondary::after, .chip::after, .icon-pill::after, .seg button::after { background: radial-gradient(90px circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,.95), rgba(255,255,255,0) 70%); }
.btn:active, .chip:active, .icon-pill:active { transform: scale(.95); transition-duration: .12s; }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { transform: translateY(-2px) scale(1.04); }
  .btn-primary:hover { box-shadow: 0 10px 24px rgba(122,31,43,.30), 0 2px 6px rgba(122,31,43,.2); }
  .btn-secondary:hover { background: rgba(255,255,255,.55); border-color: rgba(255,255,255,.9);
    -webkit-backdrop-filter: blur(10px) saturate(1.6); backdrop-filter: blur(10px) saturate(1.6);
    box-shadow: 0 10px 24px rgba(0,0,0,.10), inset 0 1px 0 #fff, 0 0 0 1px rgba(0,0,0,.06); }
  .btn-wa:hover { box-shadow: 0 10px 24px rgba(37,211,102,.32); }
  .chip { transition: transform .45s var(--spring), background-color .2s ease, color .2s ease, box-shadow .3s ease; }
  .chip:hover { transform: translateY(-2px) scale(1.05); box-shadow: 0 6px 16px rgba(0,0,0,.08); }
  .icon-pill { transition: transform .45s var(--spring); }
  .icon-pill:hover { transform: scale(1.08); }
  .btn:hover::after, .chip:hover::after, .icon-pill:hover::after, .seg button:hover::after { opacity: 1; }
}
.card .actions .btn:hover { transform: translateY(-1px) scale(1.03); }

/* Client logos: centred, full colour, tilt toward the pointer, flip open */
.clients { perspective: 900px; }
.client { appearance: none; border: 1px solid var(--hair); background: var(--card); border-radius: var(--r-md); padding: 0; cursor: pointer;
  aspect-ratio: 3 / 2; min-width: 0; display: block; color: var(--ink); font: inherit; }
.alt .client { border-color: transparent; }
.client-in { position: relative; display: grid; place-items: center; width: 100%; height: 100%; padding: var(--s4); border-radius: inherit; overflow: hidden;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transform-style: preserve-3d; transition: transform .6s var(--spring), box-shadow .3s ease; }
.client.tilt .client-in { transition: transform .12s linear, box-shadow .3s ease; box-shadow: 0 16px 32px rgba(0,0,0,.10); }
.client-in::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s ease;
  background: radial-gradient(160px circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,.7), transparent 70%); mix-blend-mode: soft-light; }
.client.tilt .client-in::after { opacity: 1; }
.client img { width: 100%; height: 100%; object-fit: contain; object-position: center; filter: none; opacity: 1; transform: translateZ(24px); }
.client b { font-size: 14px; text-align: center; }
.client:active .client-in { transform: scale(.96); }
@media (max-width: 900px) { .clients { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 480px) { .clients { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.client-stage { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: var(--s5); perspective: 1400px; cursor: zoom-out;
  background: rgba(245,245,247,0); -webkit-backdrop-filter: blur(0); backdrop-filter: blur(0); transition: background-color .45s ease, backdrop-filter .45s ease; outline: none; }
.client-stage.open { background: rgba(245,245,247,.72); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.client-flip { position: relative; width: min(560px, 100%); aspect-ratio: 3 / 2; transform-origin: 0 0; transform-style: preserve-3d;
  transition: transform .75s cubic-bezier(.3, 1.15, .5, 1); }
.client-flip .face { position: absolute; inset: 0; border-radius: var(--r-xl); background: #fff; box-shadow: var(--shadow-2), 0 0 0 1px rgba(0,0,0,.04);
  display: grid; place-items: center; padding: var(--s6); -webkit-backface-visibility: hidden; backface-visibility: hidden; transition: transform .75s cubic-bezier(.3, 1.15, .5, 1); }
.client-flip .face img { width: 100%; height: 100%; object-fit: contain; }
.client-flip .back { transform: rotateX(180deg); grid-template-rows: 1fr auto auto auto; gap: var(--s2); text-align: center; }
.client-flip .back img { max-height: 100%; min-height: 0; }
.client-flip .back b { font-size: 24px; letter-spacing: -0.02em; }
.client-flip .back span { color: var(--ink-2); font-size: 15px; }
.client-flip .back small { color: var(--ink-3); font-size: 13px; }
.client-flip.flipped .front { transform: rotateX(-180deg); }
.client-flip.flipped .back { transform: rotateX(0deg); }
@media (max-width: 600px) { .client-flip .face { padding: var(--s5); } .client-flip .back b { font-size: 20px; } }

/* Service cards: the whole card opens the details page */
.svc { position: relative; }
.svc-img { overflow: hidden; background: var(--bg-alt); aspect-ratio: 16 / 10; }
.svc-img img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: auto; transition: transform .6s var(--ease-out); }
.svc .stretch::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.svc .stretch:focus-visible { outline: none; }
.svc:has(.stretch:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.svc-more { display: inline-flex; align-items: center; gap: var(--s1); color: var(--brand); font-weight: 600; font-size: 15px; margin-top: var(--s1); }
.svc-more svg { width: 16px; height: 16px; transition: transform .45s var(--spring); }
@media (hover: hover) and (pointer: fine) {
  .svc:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }
  .svc:hover .svc-img img { transform: scale(1.05); }
  .svc:hover .svc-more svg { transform: translateX(4px); }
}

/* Service details page */
.sv-head { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s7); align-items: center; padding: var(--s5) 0 var(--s8); }
.sv-head > * { min-width: 0; }
.sv-head h1 { font-size: var(--fs-h1); }
.sv-actions { display: flex; gap: var(--s3); flex-wrap: wrap; margin-top: var(--s5); }
.sv-img { border-radius: var(--r-xl); overflow: hidden; aspect-ratio: 1; background: var(--bg-alt); }
.sv-img img { width: 100%; height: 100%; object-fit: cover; }
.sv-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); counter-reset: none; }
.sv-steps li { background: var(--bg-alt); border-radius: var(--r-lg); padding: var(--s5); display: grid; gap: var(--s4); align-content: start; }
.sv-steps b { width: 36px; height: 36px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-size: 15px; }
.sv-steps h3 { font-size: 17px; margin-bottom: var(--s2); }
.sv-steps p { margin: 0; font-size: 15px; color: var(--ink-2); }
#sv-points .w-ic { margin-bottom: var(--s3); }
#sv-points h3 { font-size: 17px; margin: 0; }
@media (max-width: 900px) { .sv-head { grid-template-columns: 1fr; gap: var(--s6); padding-bottom: var(--s7); } .sv-img { aspect-ratio: 4 / 3; } .sv-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .sv-steps { grid-template-columns: 1fr; } .sv-actions .btn { flex: 1 1 auto; } }

/* Spam trap, hidden from people and screen readers */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Phone polish */
@media (max-width: 600px) {
  .section { padding-block: var(--s8); }
  .sec-head { margin-bottom: var(--s5); }
  .hero h1 { font-size: clamp(2.25rem, 9.5vw, 2.75rem); }
  .hero .lead { font-size: 17px; }
  .hero-search { margin-top: var(--s5); }
  .hero .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
  .hero .chips::-webkit-scrollbar { display: none; }
  .hero .chip { flex: none; }
  .hero-stats { justify-content: space-between; gap: var(--s4); }
  .page-head { padding: var(--s4) 0 var(--s6); }
  .banner { min-height: 260px; margin-bottom: var(--s7); }
  .split { gap: var(--s5); }
  .req { padding: var(--s5); border-radius: var(--r-lg); }
  .req .form-card { padding: var(--s4); }
  .faq summary { font-size: 17px; padding: var(--s4) 0; }
  .footer { padding-top: var(--s7); }
  .toast { bottom: calc(96px + env(safe-area-inset-bottom)); }
  .pd-actions .btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) { .client-in, .client-flip, .client-flip .face { transition: none !important; } }
/* client logo files are square canvases: crop the empty top and bottom so the mark fills the card */
.client { aspect-ratio: 4 / 3; }
.client-in { padding: 0; }
.client img { position: absolute; inset: var(--s2); width: calc(100% - 16px); height: calc(100% - 16px); object-fit: cover; }
.client-flip .front { padding: var(--s4); }
.client-flip .front img { object-fit: cover; }

/* Back to top: glass circle under the top bar, appears once you scroll */
.to-top { position: fixed; z-index: 58; right: var(--s5); bottom: calc(var(--s5) + env(safe-area-inset-bottom));
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; padding: 0; cursor: pointer; color: var(--ink);
  opacity: 0; transform: translateY(8px) scale(.9); pointer-events: none; transition: opacity .25s ease, transform .45s var(--spring); overflow: hidden; isolation: isolate; }
.to-top svg { width: 20px; height: 20px; }
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:active { transform: scale(.92); }
.to-top::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .25s ease;
  background: radial-gradient(60px circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,.95), rgba(255,255,255,0) 70%); }
@media (hover: hover) and (pointer: fine) { .to-top.show:hover { transform: scale(1.08); } .to-top:hover::after { opacity: 1; } }
@media (max-width: 900px) { .to-top { width: 44px; height: 44px; right: var(--gutter); bottom: calc(88px + env(safe-area-inset-bottom)); } }

/* Contact cards: the whole card is the action */
a.c-card { align-items: center; color: inherit; transition: transform .45s var(--spring), box-shadow .3s ease, background-color .2s ease; }
a.c-card p { margin: 0; color: var(--ink-2); font-size: 15px; }
.c-card .c-go { margin-left: auto; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: var(--brand); flex: none; transition: transform .45s var(--spring); }
.c-card .c-go svg { width: 18px; height: 18px; }
a.c-card:active { transform: scale(.98); transition-duration: .12s; }
@media (hover: hover) and (pointer: fine) {
  a.c-card:hover { background: var(--card); box-shadow: var(--shadow-2), 0 0 0 1px var(--hair); transform: translateY(-2px); }
  a.c-card:hover .c-go { transform: translateX(4px); }
}
