/* ==========================================================================
   Kerr — app.css  (shared design system)
   Design tokens from ARCHITECTURE §13. Never add colours or fonts not listed there.
   ========================================================================== */

/* ── Reset ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { overflow-x: hidden; scroll-behavior: smooth; }
img  { max-width: 100%; display: block; }
a    { color: inherit; text-decoration: none; }

/* ── Tokens ──
   Black & gold storefront theme. Warm near-black surfaces, champagne-gold
   accents, warm off-white text. Legacy blue/navy token names are aliased onto
   the new palette so the whole storefront inherits the theme; a handful of
   components are hand-tuned further below. The admin panel keeps the original
   light palette via the override block right after this one. */
:root {
  /* Fonts */
  --font-serif: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  --font-sans:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Core palette */
  --bg:        #141210;   /* page background (warm near-black) */
  --surface:   #1c1a17;   /* cards / content sections */
  --surface-2: #24211d;   /* raised elements / inputs */
  --hairline:  rgba(226,207,173,.18);  /* gold-tinted borders & dividers */

  --text:      #f4f0e7;   /* warm off-white body text */
  --text-mid:  #cfc8ba;   /* secondary text */
  --text-gray: #a29a8b;   /* captions / muted */

  --gold:        #e2cfad;  /* champagne — lead accent (links, labels, prices) */
  --gold-strong: #c8a15f;  /* richer gold — buttons / emphasis */
  --gold-hover:  #d8b978;  /* hover state */
  --gold-ink:    #161412;  /* text sitting on a gold fill */

  --success:   #5cc99a;

  /* Legacy aliases → new palette (storefront inherits automatically) */
  --navy:      var(--surface);
  --navy-dark: #161412;
  --blue:      var(--gold);
  --blue-dark: var(--gold-hover);
  --blue-soft: var(--gold);
  --bg-light:  var(--surface);
  --card-bg:   var(--surface-2);
  --border:    var(--hairline);
  --white:     var(--surface);
}

/* ── Admin panel stays on the original light theme ──
   Every legacy token is pinned back to its old value inside the admin
   containers, so admin views render exactly as before while the storefront
   goes dark. --surface is pinned white because admin cards were converted
   from literal #fff to var(--surface). */
.admin-wrapper, .admin-guest {
  --navy:      #162847;
  --navy-dark: #0f1c32;
  --blue:      #2563EB;
  --blue-dark: #1D4ED8;
  --blue-soft: #4A90E2;
  --text:      #111827;
  --text-mid:  #374151;
  --text-gray: #6B7280;
  --bg-light:  #F6F6F6;
  --card-bg:   #EFEFEF;
  --border:    #E5E7EB;
  --white:     #FFFFFF;
  --success:   #10B981;
  --surface:   #FFFFFF;
  --surface-2: #FFFFFF;
  --hairline:  #E5E7EB;
  color: var(--text);
}

/* ── Body ── */
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

/* ==========================================================================
   NAVBAR
   ========================================================================== */
#site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  background: transparent;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 56px;
  height: 72px;
  transition: background 0.35s ease, backdrop-filter 0.35s ease;
}
#site-nav.scrolled, #site-nav.solid {
  background: var(--surface);
  box-shadow: 0 1px 0 rgba(17,24,39,.06);
}

.nav-logo { display: flex; align-items: center; flex: 0 0 auto; }
.nav-logo img { height: 54px; width: auto; }
/* Show the white logo over the transparent nav; swap to the blue logo once the
   nav bar turns white (scrolled or solid pages). */
/* Dark theme: the white logo works on both the transparent and the dark
   scrolled/solid nav, so keep it shown throughout and never swap in the blue one. */
.nav-logo .nav-logo-dark { display: none; }
#site-nav.scrolled .nav-logo-light, #site-nav.solid .nav-logo-light { display: flex; }
#site-nav.scrolled .nav-logo-dark, #site-nav.solid .nav-logo-dark { display: none; }

/* Nav menu (links + search + icons) */
.nav-menu { display: flex; align-items: center; gap: 28px; flex: 1; justify-content: flex-end; min-width: 0; }

.nav-links {
  list-style: none;
  display: flex; align-items: center; gap: 28px;
  flex: 0 0 auto;
}

.nav-link {
  background: none; border: none; cursor: pointer;
  font-family: inherit; font-size: 0.88rem; font-weight: 500;
  color: rgba(255,255,255,0.9);
  letter-spacing: 0.3px;
  text-decoration: none;
  transition: color 0.2s;
  padding: 0;
}
.nav-link:hover, .nav-link.active { color: #fff; }
#site-nav.scrolled .nav-link, #site-nav.solid .nav-link { color: var(--text-mid); }
#site-nav.scrolled .nav-link:hover, #site-nav.solid .nav-link:hover,
#site-nav.scrolled .nav-link.active, #site-nav.solid .nav-link.active { color: var(--text); }

/* Inline search bar */
.nav-search {
  display: flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.15);
  border-radius: 24px; padding: 8px 16px;
  flex: 0 1 300px; min-width: 0;
  transition: background .2s;
}
#site-nav.scrolled .nav-search, #site-nav.solid .nav-search { background: var(--bg-light); }
.nav-search-btn {
  background: none; border: none; padding: 0; margin: 0; cursor: pointer;
  display: flex; color: rgba(255,255,255,0.9); flex: 0 0 auto;
}
.nav-search-btn svg { width: 18px; height: 18px; }
#site-nav.scrolled .nav-search-btn, #site-nav.solid .nav-search-btn { color: var(--text-gray); }
.nav-search input {
  border: none; background: none; outline: none; width: 100%; min-width: 0;
  font-family: inherit; font-size: 0.85rem; color: rgba(255,255,255,0.95);
}
.nav-search input::placeholder { color: rgba(255,255,255,0.7); }
#site-nav.scrolled .nav-search input, #site-nav.solid .nav-search input { color: var(--text); }
#site-nav.scrolled .nav-search input::placeholder, #site-nav.solid .nav-search input::placeholder { color: var(--text-gray); }

/* Icon buttons (cart / account) */
.nav-icons { display: flex; align-items: center; gap: 18px; flex: 0 0 auto; }
.nav-icon-btn { display: flex; color: rgba(255,255,255,0.9); transition: color .2s; }
.nav-icon-btn svg { width: 22px; height: 22px; }
.nav-icon-btn:hover, .nav-icon-btn.active { color: #fff; }
#site-nav.scrolled .nav-icon-btn, #site-nav.solid .nav-icon-btn { color: var(--text-mid); }
#site-nav.scrolled .nav-icon-btn:hover, #site-nav.solid .nav-icon-btn:hover,
#site-nav.scrolled .nav-icon-btn.active, #site-nav.solid .nav-icon-btn.active { color: var(--blue); }

.nav-cart-btn { position: relative; }
.nav-cart-badge {
  position: absolute; top: -8px; right: -10px;
  min-width: 16px; height: 16px; padding: 0 4px; border-radius: 10px;
  background: var(--gold-strong); color: var(--gold-ink); font-size: 0.62rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center; line-height: 1;
}

/* Contact link uses .nav-link styling; kept as plain text like IKEA's top-level items */

/* Categories mega menu */
.nav-has-dropdown { position: relative; }

.nav-dropdown-btn { display: flex; align-items: center; gap: 6px; }
.nav-caret { font-size: 0.6rem; transition: transform 0.2s; }
.nav-has-dropdown.open .nav-caret { transform: rotate(180deg); }

.nav-mega {
  display: none;
  position: absolute; top: calc(100% + 12px); left: 50%;
  transform: translateX(-50%);
  background: var(--surface); border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,.18);
  padding: 28px 32px;
  width: min(880px, 86vw);
  z-index: 300;
}
.nav-has-mega.open .nav-mega { display: block; }

/* Simple (non-mega) dropdown — e.g. the temporary "Pages" preview-links menu */
.nav-simple-menu {
  display: none;
  position: absolute; top: calc(100% + 12px); left: 50%; transform: translateX(-50%);
  background: var(--surface); border-radius: 12px; list-style: none;
  box-shadow: 0 20px 60px rgba(0,0,0,.18);
  padding: 10px; min-width: 220px; z-index: 300;
}
.nav-has-dropdown.open .nav-simple-menu { display: block; }
.nav-simple-menu li a {
  display: block; padding: 10px 14px; border-radius: 8px;
  font-size: 0.86rem; color: var(--text-mid); transition: background .15s, color .15s;
}
.nav-simple-menu li a:hover { background: var(--bg-light); color: var(--text); }
.nav-mega-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 28px; }
.nav-mega-col { min-width: 0; }
.nav-mega-tile { display: block; }
.nav-mega-tile-img {
  display: block; aspect-ratio: 4/3; border-radius: 12px; overflow: hidden;
  background: var(--bg-light); margin-bottom: 10px;
}
.nav-mega-tile-img img { width: 100%; height: 100%; object-fit: cover; }
.nav-mega-tile-name { display: block; font-size: 0.92rem; font-weight: 700; color: var(--text); margin-bottom: 10px; }
.nav-mega-sublist { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.nav-mega-sublist a { font-size: 0.84rem; color: var(--text-mid); transition: color .15s; }
.nav-mega-sublist a:hover { color: var(--blue); }

/* Hamburger (hidden on desktop) */
.nav-hamburger {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  background: none; border: none; cursor: pointer;
  width: 32px; height: 32px; padding: 4px;
}
.nav-hamburger span {
  display: block; height: 2px; border-radius: 2px;
  background: rgba(255,255,255,0.9);
  transition: transform 0.25s, opacity 0.25s;
}
#site-nav.scrolled .nav-hamburger span, #site-nav.solid .nav-hamburger span { background: var(--text); }

/* ==========================================================================
   HERO (home page full-screen image hero)
   ========================================================================== */
#hero { position: relative; height: 100vh; height: 100dvh; overflow: hidden; }

#hero-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover; z-index: 0;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,.62) 35%, rgba(0,0,0,.18) 100%);
  z-index: 1;
}
.hero-content {
  position: relative; z-index: 2; height: 100%;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 0 56px 72px;
}
.hero-heading {
  font-size: 3rem; font-weight: 700; color: #fff;
  line-height: 1.08; letter-spacing: -1px; margin-bottom: 24px;
}
.hero-rule { width: 100%; height: 1px; background: rgba(255,255,255,.3); margin-bottom: 28px; }
.hero-bottom { display: flex; justify-content: space-between; align-items: flex-end; }
.hero-sub { color: rgba(255,255,255,.8); font-size: 0.95rem; max-width: 470px; line-height: 1.65; }

/* ==========================================================================
   PAGE HERO (About / Contact inner-page banner)
   ========================================================================== */
.page-hero {
  position: relative;
  min-height: 42vh;
  background-size: cover; background-position: center;
  display: flex; align-items: center; justify-content: center;
}
.page-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(20,18,16,.7) 0%, rgba(20,18,16,.55) 100%);
}
.page-hero-content {
  position: relative; z-index: 1;
  text-align: center; padding: 64px 56px;
}
.page-hero-title {
  font-size: 3rem; font-weight: 700; color: #fff;
  letter-spacing: -0.8px; margin-bottom: 12px;
}
.page-hero-sub {
  font-size: 1rem; color: rgba(255,255,255,.82); font-weight: 400;
}

/* ==========================================================================
   SHARED UTILITIES
   ========================================================================== */
.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;
}
.section-label {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 2.5px;
  text-transform: uppercase; color: var(--blue); margin-bottom: 12px;
  display: block;
}
.section-heading {
  font-size: 2.5rem; font-weight: 700; line-height: 1.15;
  letter-spacing: -0.6px; color: var(--text);
}

/* Buttons */
.btn-primary {
  display: inline-block; background: var(--gold-strong); color: var(--gold-ink);
  padding: 15px 36px; border-radius: 40px;
  font-size: 1rem; font-weight: 600;
  white-space: nowrap; border: none; cursor: pointer; transition: background .2s;
}
.btn-primary:hover { background: var(--gold-hover); }

.btn-secondary {
  display: inline-block; background: transparent; color: var(--gold);
  padding: 15px 36px; border-radius: 40px; border: 1px solid rgba(226,207,173,.42);
  font-family: inherit; font-size: 1rem; font-weight: 500;
  white-space: nowrap; cursor: pointer; transition: background .2s, border-color .2s;
}
.btn-secondary:hover { background: rgba(226,207,173,.08); border-color: var(--gold); }

.btn-submit {
  display: inline-flex; align-items: center; gap: 8px;
  align-self: flex-start; background: var(--gold-strong); color: var(--gold-ink);
  padding: 14px 42px; border-radius: 40px; border: none; cursor: pointer;
  font-family: inherit; font-size: 0.97rem; font-weight: 600; transition: background .2s;
}
.btn-submit:hover { background: var(--gold-hover); }

.btn-link {
  background: none; border: none; padding: 0; cursor: pointer;
  font-family: inherit; font-size: 0.85rem; font-weight: 500;
  color: var(--text-gray); text-decoration: underline; transition: color .2s;
}
.btn-link:hover { color: var(--blue); }
.btn-submit.loading, .btn-primary.loading { opacity: 0.75; pointer-events: none; }
.btn-submit.loading .btn-spinner, .btn-primary.loading .btn-spinner { display: inline-block; }
.btn-primary.loading .btn-spinner { margin-left: 8px; vertical-align: -2px; }

/* Spinner */
@keyframes btn-spin { to { transform: rotate(360deg); } }
.btn-spinner {
  display: none; flex-shrink: 0;
  width: 15px; height: 15px;
  border: 2px solid rgba(22,20,18,0.25);
  border-top-color: var(--gold-ink); border-radius: 50%;
  animation: btn-spin 0.65s linear infinite;
}

/* Cards */
.card-blue { background: var(--navy); color: #fff; padding: 28px 24px; border-radius: 16px; }
.card-blue h3 { font-size: 1rem; font-weight: 600; margin-bottom: 10px; }
.card-blue p  { font-size: 0.88rem; line-height: 1.62; color: rgba(255,255,255,.83); }

.card-white { background: var(--surface); padding: 28px 24px; border-radius: 16px; border: 1px solid var(--border); }
.card-white h3 { font-size: 1rem; font-weight: 600; margin-bottom: 10px; color: var(--text); }
.card-white p  { font-size: 0.88rem; line-height: 1.62; color: var(--text-gray); }

.stat-card { background: var(--bg-light); border-radius: 16px; padding: 30px; }
.stat-card .num { font-size: 3.2rem; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.stat-card h3   { font-size: 1.15rem; font-weight: 600; margin-bottom: 12px; }
.stat-card p    { font-size: 0.88rem; line-height: 1.62; color: var(--text-gray); }

/* Flash messages */
.flash { padding: 14px 20px; border-radius: 8px; margin: 16px 0; font-size: 0.9rem; }
.flash--success { background: #d1fae5; color: #065f46; }
.flash--error   { background: #fee2e2; color: #991b1b; }
.flash--info    { background: #dbeafe; color: #1e40af; }

/* ==========================================================================
   CONTACT FORM
   ========================================================================== */
.contact-form { display: flex; flex-direction: column; gap: 18px; }

.form-group label {
  display: block; font-size: 0.7rem; font-weight: 600;
  letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 8px; color: var(--text);
}
.form-group input,
.form-group textarea {
  width: 100%; padding: 13px 16px; border: 1px solid var(--border);
  border-radius: 8px; font-family: inherit; font-size: 0.93rem;
  color: var(--text); outline: none; background: var(--surface); transition: border-color .2s;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-gray); }
.form-group input:focus,
.form-group textarea:focus { border-color: var(--blue); }
.form-group textarea { resize: vertical; min-height: 130px; }
.form-error { font-size: 0.78rem; color: #DC2626; margin-top: 6px; }

/* ==========================================================================
   AUTH PAGES (login / register / OTP / password reset)
   ========================================================================== */
.auth-main {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: var(--bg); padding: 120px 24px 56px;
}
.auth-card {
  width: 100%; max-width: 440px; background: var(--surface); border-radius: 20px;
  border: 1px solid var(--border); padding: 44px 40px;
}
.auth-title { font-size: 1.6rem; font-weight: 700; letter-spacing: -0.4px; margin-bottom: 6px; }
.auth-sub { font-size: 0.9rem; color: var(--text-gray); margin-bottom: 28px; line-height: 1.5; }

.auth-form { display: flex; flex-direction: column; gap: 18px; }
.auth-form .btn-submit { align-self: stretch; justify-content: center; margin-top: 6px; }
.auth-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.auth-form-link-right { text-align: right; margin-top: -8px; }
.auth-form-link-right a { font-size: 0.82rem; color: var(--blue); }

.auth-footer-link { text-align: center; font-size: 0.88rem; color: var(--text-gray); margin-top: 24px; }
.auth-footer-link a { color: var(--blue); font-weight: 500; }

.auth-resend-form { margin: 0; }
.auth-resend-form .auth-footer-link { margin-top: 16px; }
.auth-link-btn {
  background: none; border: none; padding: 0; margin: 0; cursor: pointer;
  font-family: inherit; font-size: 0.88rem; color: var(--blue); font-weight: 500;
  text-decoration: underline;
}

.otp-input { letter-spacing: 8px; font-size: 1.3rem; font-weight: 600; text-align: center; }

/* ==========================================================================
   WHY CHOOSE US SECTION
   ========================================================================== */
#why-us { background: var(--bg-light); padding: 100px 56px; }

.why-header {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px;
  align-items: start; margin-bottom: 48px;
}
.why-header p { padding-top: 52px; color: var(--text-mid); line-height: 1.72; font-size: 0.97rem; }

.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: stretch; }
.why-img-left { border-radius: 16px; overflow: hidden; min-height: 420px; }
.why-right { display: flex; flex-direction: column; gap: 20px; }
.why-img-top { border-radius: 16px; overflow: hidden; height: 260px; flex-shrink: 0; }
.why-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.why-img-left img, .why-img-top img {
  width: 100%; height: 100%; object-fit: cover;
}

/* ==========================================================================
   SMART CURTAINS SECTION
   ========================================================================== */
#smart-curtains {
  padding: 100px 56px; background: var(--surface);
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center;
}
.curtains-img { border-radius: 20px; overflow: hidden; }
.curtains-img img { width: 100%; height: auto; object-fit: contain; }
.curtains-text .section-heading { font-size: 2.9rem; margin-bottom: 22px; }
.curtains-text p { color: var(--text-mid); line-height: 1.72; font-size: 0.97rem; margin-bottom: 16px; }

/* ==========================================================================
   ABOUT SECTION (home page)
   ========================================================================== */
#about { padding: 100px 56px; background: var(--surface); }

.about-header { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; margin-bottom: 48px; }
.about-header p { padding-top: 52px; color: var(--text-mid); line-height: 1.72; font-size: 0.97rem; }

.about-body { display: grid; grid-template-columns: 1.1fr 1fr 1.1fr; gap: 22px; align-items: stretch; min-height: 540px; }
.about-img-tall { border-radius: 16px; overflow: hidden; }
.about-col-mid  { display: flex; flex-direction: column; gap: 20px; }
.about-img-sm   { border-radius: 16px; overflow: hidden; flex: 1; min-height: 180px; }

.about-img-tall img, .about-img-sm img {
  width: 100%; height: 100%; object-fit: cover;
}

/* ==========================================================================
   ABOUT PAGE — dedicated sections
   ========================================================================== */
.about-section {
  padding: 100px 56px;
  background: var(--surface);
}

.about-section-inner-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
  margin-bottom: 56px;
}
.about-section-inner-header > .right-desc {
  padding-top: 60px;
  color: var(--text-mid); line-height: 1.72; font-size: 0.97rem;
}

/* Image grid below the header */
.about-body-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 24px;
  align-items: stretch;
  min-height: 480px;
}
.about-body-left {
  display: flex; flex-direction: column; gap: 20px;
}
.about-body-img-sm {
  border-radius: 16px; overflow: hidden; flex: 1; min-height: 220px;
}
.about-body-img-sm img {
  width: 100%; height: 100%; object-fit: cover;
}
.about-body-img-lg {
  border-radius: 16px; overflow: hidden;
}
.about-body-img-lg img {
  width: 100%; height: 100%; object-fit: cover;
}

/* ==========================================================================
   ABOUT PAGE — CATEGORIES SECTION
   ========================================================================== */
.about-categories {
  padding: 100px 56px;
  background: var(--bg-light);
}

.about-cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.about-cat-card {
  background: var(--surface);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: box-shadow 0.25s;
}
.about-cat-card:hover {
  box-shadow: 0 12px 40px rgba(0,0,0,.1);
}

.about-cat-link {
  display: block; color: inherit;
}

.about-cat-img {
  aspect-ratio: 4/3;
  overflow: hidden;
}
.about-cat-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.4s ease;
}
.about-cat-card:hover .about-cat-img img {
  transform: scale(1.04);
}

.about-cat-label {
  padding: 18px 24px 14px;
  font-size: 1.1rem; font-weight: 500; color: var(--text);
}

.about-cat-divider {
  height: 1px; background: var(--border); margin: 0 24px;
}

/* ==========================================================================
   ABOUT PAGE — dark testimonials variant
   ========================================================================== */
.about-testimonials {
  background: var(--surface);
}

.testi-card--dark {
  background: var(--navy) !important;
}
.testi-card--dark > p   { color: rgba(255,255,255,.82) !important; }
.testi-card--dark .testi-name { color: #fff !important; }

/* ==========================================================================
   CONTACT SECTION (home + contact page shared)
   ========================================================================== */
#contact-section { padding: 100px 56px; background: var(--surface); }
.contact-section-header { text-align: center; margin-bottom: 56px; }
.contact-layout { display: grid; grid-template-columns: 1fr 2fr; gap: 24px; align-items: start; }
.contact-info { display: flex; flex-direction: column; gap: 16px; }
.contact-info-card { background: var(--bg-light); border-radius: 16px; padding: 28px 24px; }

.contact-icon-wrap {
  width: 52px; height: 52px; background: var(--gold-strong); border-radius: 12px;
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.contact-icon-wrap svg { width: 22px; height: 22px; stroke: var(--gold-ink); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.contact-info-card h3 { font-size: 1.15rem; font-weight: 600; margin-bottom: 8px; color: var(--text); }
.contact-info-card p  { font-size: 0.9rem; color: var(--text-gray); line-height: 1.65; margin: 0; }
.contact-info-card p a { color: var(--text-gray); }
.contact-info-card p a:hover { color: var(--blue); }

.social-row { display: flex; align-items: center; justify-content: space-between; }
.social-row h3 { margin-bottom: 0; }
.social-btns { display: flex; gap: 10px; }

.social-btn {
  width: 38px; height: 38px; background: var(--gold-strong); border-radius: 8px;
  display: flex; align-items: center; justify-content: center; transition: background .2s;
}
.social-btn:hover { background: var(--gold-hover); }
.social-btn svg { width: 16px; height: 16px; stroke: var(--gold-ink); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.contact-form-card { background: var(--bg-light); border-radius: 20px; padding: 40px; }

/* ==========================================================================
   TESTIMONIALS
   ========================================================================== */
#testimonials { padding: 100px 56px; background: var(--surface); }
.testi-header  { text-align: center; margin-bottom: 56px; }
.testi-header .section-heading { max-width: 580px; margin: 0 auto; }
.testi-grid  { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }

.testi-card {
  background: var(--card-bg); border-radius: 16px; padding: 38px 32px;
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.testi-card > p { color: var(--text-gray); line-height: 1.72; font-size: 0.95rem; flex: 1; margin-bottom: 24px; }
.testi-divider  { width: 34px; height: 2px; background: var(--blue); margin-bottom: 18px; }
.testi-name     { font-size: 1.05rem; font-weight: 600; color: var(--blue); }

/* ==========================================================================
   CATEGORIES (legacy hidden block on home page)
   ========================================================================== */
.cat-card { position: relative; border-radius: 20px; overflow: hidden; aspect-ratio: 3/4; }
.cat-bg   { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; }
.cat-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(20,18,16,.92) 0%, transparent 55%); }
.cat-label { position: absolute; bottom: 0; left: 0; right: 0; color: #fff; font-size: 1.4rem; font-weight: 600; padding: 28px; }

/* ==========================================================================
   SCROLL ANIMATIONS
   ========================================================================== */
.anim {
  opacity: 0; transform: translateY(32px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--anim-delay, 0ms);
}
.anim.from-left  { transform: translateX(-48px); }
.anim.from-right { transform: translateX(48px); }
.anim.scale-up   { transform: translateY(20px) scale(0.97); }
.anim.in-view    { opacity: 1; transform: translate(0, 0) scale(1); }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer { border-top: 1px solid var(--border); background: var(--surface); }

.footer-top {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px;
  padding: 56px 56px 40px;
  align-items: start;
}

.footer-brand {}
.footer-logo-img { height: 54px; width: auto; margin-bottom: 16px; }
.footer-tagline { font-size: 0.95rem; font-weight: 500; color: var(--text); line-height: 1.5; }

.footer-col-heading {
  font-size: 0.88rem; font-weight: 600; color: var(--blue);
  letter-spacing: 0.5px; margin-bottom: 16px;
}
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer-links a { font-size: 0.9rem; color: var(--text-gray); transition: color 0.2s; }
.footer-links a:hover { color: var(--text); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 20px 56px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.footer-copy { font-size: 0.78rem; color: var(--text-gray); line-height: 1.5; }

.social-icons { display: flex; gap: 16px; }
.social-icon {
  width: 36px; height: 36px; background: var(--gold-strong); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; transition: background .2s;
}
.social-icon:hover { background: var(--gold-hover); }
.social-icon svg { width: 16px; height: 16px; fill: none; stroke: var(--gold-ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ==========================================================================
   CATALOG — shared (breadcrumb, grid, card, badges, pagination, empty state)
   ========================================================================== */
.page-hero--plain { background-color: var(--navy); }

.catalog-section { padding: 48px 56px 100px; }

.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 28px; font-size: 0.85rem; }
.breadcrumb-link { color: var(--text-gray); transition: color 0.2s; }
.breadcrumb-link:hover { color: var(--blue); }
.breadcrumb-sep { color: var(--border); }
.breadcrumb-current { color: var(--text); font-weight: 500; }

.catalog-toolbar {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  flex-wrap: wrap; margin-bottom: 32px;
}
.catalog-filter { display: flex; flex-wrap: wrap; gap: 10px; }
.catalog-filter-chip {
  padding: 9px 20px; border-radius: 30px; border: 1px solid var(--border);
  font-size: 0.85rem; font-weight: 500; color: var(--text-mid); transition: all 0.2s;
}
.catalog-filter-chip:hover { border-color: var(--blue); color: var(--blue); }
.catalog-filter-chip.active { background: var(--gold); border-color: var(--gold); color: var(--gold-ink); }

.catalog-sort { display: flex; align-items: center; gap: 10px; }
.catalog-sort label { font-size: 0.78rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; color: var(--text-gray); }
.catalog-sort select {
  padding: 10px 16px; border: 1px solid var(--border); border-radius: 8px;
  font-family: inherit; font-size: 0.88rem; color: var(--text); background: var(--surface); cursor: pointer;
}

.catalog-empty {
  padding: 80px 20px; text-align: center; color: var(--text-gray);
  background: var(--bg-light); border-radius: 16px;
}

/* ── Shop (all products) page ── */
.shop-layout { display: grid; grid-template-columns: 240px 1fr; gap: 40px; align-items: start; }

.shop-filters { background: none; border: none; }
.shop-filters-summary {
  display: none; cursor: pointer; font-weight: 600; font-size: 0.95rem; color: var(--text);
  list-style: none; padding: 14px 0;
}
.shop-filters-summary::-webkit-details-marker { display: none; }
.shop-filters-caret { font-size: 0.65rem; margin-left: 6px; transition: transform 0.2s; }
.shop-filters[open] .shop-filters-caret { transform: rotate(180deg); }

.shop-toolbar-controls { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }

.shop-search { display: flex; gap: 8px; }
.shop-search input {
  flex: 1; min-width: 0; padding: 11px 14px; border: 1px solid var(--border); border-radius: 8px;
  font-family: inherit; font-size: 0.88rem; outline: none; transition: border-color .2s;
}
.shop-search input:focus { border-color: var(--blue); }
.shop-search--inline input { width: 220px; }

.shop-filter-group h3 {
  font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1px;
  color: var(--text-gray); margin-bottom: 14px;
}
.shop-filter-list, .shop-filter-sublist { list-style: none; }
.shop-filter-list > li { margin-bottom: 4px; }
.shop-filter-list a {
  display: block; padding: 8px 0; font-size: 0.92rem; color: var(--text-mid); transition: color 0.15s;
}
.shop-filter-list a:hover { color: var(--blue); }
.shop-filter-list a.active { color: var(--blue); font-weight: 600; }
.shop-filter-sublist { padding-left: 16px; }
.shop-filter-sublist a { font-size: 0.87rem; padding: 6px 0; }

.shop-load-more { display: flex; justify-content: center; margin-top: 48px; }

@media (max-width: 1024px) {
  .shop-layout { grid-template-columns: 1fr; gap: 20px; }
  .shop-filters {
    border: 1px solid var(--border); border-radius: 12px; padding: 0 20px; margin-bottom: 8px;
  }
  .shop-filters-summary { display: flex; align-items: center; }
  .shop-filters:not([open]) .shop-filters-summary { border-bottom: none; }
  .shop-filters[open] .shop-filters-summary { border-bottom: 1px solid var(--border); }
  .shop-filters-body { padding: 20px 0; }
}

.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

.product-card { display: block; color: inherit; }
.product-card-img {
  position: relative; border-radius: 16px; overflow: hidden;
  aspect-ratio: 1/1; background: var(--bg-light); margin-bottom: 14px;
}
.product-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.product-card:hover .product-card-img img { transform: scale(1.05); }
.product-card-name { font-size: 0.95rem; font-weight: 500; color: var(--text); margin-bottom: 6px; line-height: 1.4; }
.product-card-price { font-size: 0.95rem; font-weight: 600; color: var(--blue); }

.img-placeholder {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  background: var(--navy); color: rgba(255,255,255,.5);
  font-size: 1rem; font-weight: 600; letter-spacing: 1px;
}
.img-placeholder-lg { border-radius: 20px; min-height: 460px; font-size: 1.4rem; }

.badge {
  position: absolute; top: 12px; left: 12px;
  padding: 5px 12px; border-radius: 20px;
  font-size: 0.68rem; font-weight: 600; letter-spacing: 0.5px; text-transform: uppercase;
}
.badge-oos { background: rgba(17,24,39,.85); color: #fff; }

.pagination { display: flex; align-items: center; justify-content: center; gap: 24px; margin-top: 56px; }
.pagination-link { font-size: 0.9rem; font-weight: 600; color: var(--blue); }
.pagination-link:hover { color: var(--blue-dark); }
.pagination-status { font-size: 0.85rem; color: var(--text-gray); }

/* Search */
.search-form { display: flex; gap: 12px; margin-bottom: 40px; max-width: 520px; }
.search-form input {
  flex: 1; padding: 13px 18px; border: 1px solid var(--border); border-radius: 30px;
  font-family: inherit; font-size: 0.93rem; outline: none; transition: border-color .2s;
}
.search-form input:focus { border-color: var(--blue); }
.search-result-count { color: var(--text-gray); font-size: 0.88rem; margin-bottom: 24px; }

/* ==========================================================================
   PRODUCT PAGE
   ========================================================================== */
.product-page { padding: 120px 56px 0; }

.product-layout { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; margin-bottom: 80px; }

.product-gallery { display: flex; align-items: flex-start; gap: 16px; }
.product-gallery-main {
  flex: 1; min-width: 0;
  border-radius: 20px; overflow: hidden; aspect-ratio: 1/1; background: var(--bg-light);
}
.product-gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.product-gallery-thumbs {
  display: flex; flex-direction: column; flex-wrap: nowrap; gap: 12px;
  flex: 0 0 76px; order: -1; margin-top: 0;
}
.gallery-thumb {
  width: 76px; height: 76px; border-radius: 10px; overflow: hidden;
  border: 2px solid transparent; background: none; cursor: pointer; padding: 0; opacity: 0.7; transition: all 0.2s;
}
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumb:hover { opacity: 1; }
.gallery-thumb.active { border-color: var(--blue); opacity: 1; }

.product-title { font-size: 2rem; font-weight: 700; letter-spacing: -0.5px; margin-bottom: 10px; }
.product-sku { font-size: 0.82rem; color: var(--text-gray); margin-bottom: 18px; }
.product-price { font-size: 1.6rem; font-weight: 700; color: var(--blue); margin-bottom: 4px; }
.product-price-tax-note { font-size: 0.78rem; color: var(--text-gray); margin-bottom: 16px; }

.product-rating { display: flex; align-items: center; gap: 8px; margin-bottom: 20px; }
.product-rating .stars { display: flex; gap: 2px; color: var(--border); }
.product-rating .stars svg { width: 16px; height: 16px; }
.product-rating .stars svg.filled { color: #F5A623; }
.product-rating .rating-count { font-size: 0.82rem; color: var(--text-gray); }

.delivery-block {
  display: flex; gap: 12px; align-items: flex-start;
  border: 1px solid var(--border); border-radius: 12px;
  padding: 14px 16px; margin-bottom: 22px;
}
.delivery-block svg { width: 20px; height: 20px; flex: 0 0 auto; color: var(--text-mid); margin-top: 2px; }
.delivery-block-title { font-size: 0.88rem; font-weight: 600; color: var(--text); margin-bottom: 2px; }
.delivery-block-sub { font-size: 0.8rem; color: var(--text-gray); }

.variant-axis { margin-bottom: 20px; }
.variant-axis-label {
  display: block; font-size: 0.72rem; font-weight: 600; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--text); margin-bottom: 10px;
}
.variant-options { display: flex; flex-wrap: wrap; gap: 10px; }
.variant-option {
  padding: 10px 20px; border: 1px solid var(--border); border-radius: 30px;
  font-family: inherit; font-size: 0.85rem; font-weight: 500; color: var(--text-mid);
  background: var(--surface); cursor: pointer; transition: all 0.2s;
}
.variant-option:hover:not(:disabled) { border-color: var(--blue); color: var(--blue); }
.variant-option.selected { background: var(--gold); border-color: var(--gold); color: var(--gold-ink); }
.variant-option:disabled { opacity: 0.35; cursor: not-allowed; text-decoration: line-through; }

.product-stock { font-size: 0.9rem; font-weight: 600; color: var(--success); margin-bottom: 24px; }
.product-stock.out-of-stock { color: #DC2626; }

#add-to-cart-form { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; }
.qty-selector {
  display: flex; align-items: center; flex: 0 0 auto;
  border: 1px solid var(--border); border-radius: 30px; overflow: hidden;
}
.qty-btn {
  width: 40px; height: 44px; border: none; background: none; cursor: pointer;
  font-size: 1.1rem; color: var(--text-mid); transition: background .15s;
}
.qty-btn:hover { background: var(--bg-light); }
.qty-selector input {
  width: 44px; height: 44px; padding: 0; border: none; border-left: 1px solid var(--border); border-right: 1px solid var(--border);
  font-family: inherit; font-size: 0.93rem; text-align: center; -moz-appearance: textfield;
}
.qty-selector input::-webkit-outer-spin-button, .qty-selector input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
#add-to-cart-btn { flex: 1; }
#add-to-cart-btn:disabled { opacity: 0.45; cursor: not-allowed; }

.product-short-desc { font-size: 0.95rem; color: var(--text-mid); line-height: 1.7; }

.product-description-section { padding-bottom: 80px; border-top: 1px solid var(--border); padding-top: 56px; }
.product-description-section .section-heading { margin-bottom: 24px; font-size: 1.8rem; }
.product-description { color: var(--text-mid); font-size: 0.95rem; line-height: 1.8; max-width: 820px; }
.product-description p { margin-bottom: 16px; }
.product-description ul, .product-description ol { padding-left: 22px; margin-bottom: 16px; }
.product-description li { margin-bottom: 6px; }
.product-description h3 { font-size: 1.2rem; font-weight: 700; color: var(--text); margin: 24px 0 10px; }
.product-description h3:first-child { margin-top: 0; }
.product-description h4 { font-size: 1.02rem; font-weight: 700; color: var(--text); margin: 18px 0 8px; }

/* Admin-authored rich content (description / tech specs) was written for the old
   light theme, with baked-in dark text and blue accents via inline styles. Force
   theme-appropriate colours so it stays readable on the dark surface. */
.product-description, .product-description * { color: var(--text-mid) !important; }
.product-description strong, .product-description b { color: var(--text) !important; }
.product-description h1, .product-description h2,
.product-description h3, .product-description h4 { color: var(--gold) !important; }
.product-description a { color: var(--gold) !important; text-decoration: underline; }

.related-section { padding-bottom: 100px; }
.related-section .section-heading { margin-bottom: 32px; font-size: 1.8rem; }

/* ==========================================================================
   CART PAGE
   ========================================================================== */
.cart-page { padding: 120px 56px 100px; }
.cart-page .section-heading { margin-bottom: 32px; }

.cart-layout { display: grid; grid-template-columns: 1fr 340px; gap: 40px; align-items: start; }

.cart-items { display: flex; flex-direction: column; gap: 20px; }
.cart-line {
  display: grid; grid-template-columns: 96px 1fr auto; gap: 20px; align-items: start;
  padding: 20px 0; border-bottom: 1px solid var(--border);
}
.cart-line-img {
  width: 96px; height: 96px; border-radius: 12px; overflow: hidden; background: var(--bg-light);
}
.cart-line-img img { width: 100%; height: 100%; object-fit: cover; }

.cart-line-name { font-size: 0.98rem; font-weight: 600; color: var(--text); margin-bottom: 4px; }
.cart-line-price { font-size: 0.85rem; color: var(--text-gray); margin-bottom: 10px; }
.cart-line-notice { font-size: 0.82rem; color: #B45309; margin-bottom: 10px; }

.cart-line-qty { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.cart-line-qty input {
  width: 64px; padding: 8px 10px; border: 1px solid var(--border); border-radius: 8px;
  font-family: inherit; font-size: 0.88rem; text-align: center;
}
.cart-line-qty .btn-secondary { padding: 8px 18px; font-size: 0.82rem; }

.cart-line-total { font-size: 1rem; font-weight: 700; color: var(--text); white-space: nowrap; }

.cart-summary {
  background: var(--bg-light); border-radius: 16px; padding: 28px; position: sticky; top: 100px;
}

.cart-coupon { margin-bottom: 24px; padding-bottom: 24px; border-bottom: 1px solid var(--border); }
.cart-coupon-form { display: flex; gap: 8px; }
.cart-coupon-form input {
  flex: 1; min-width: 0; padding: 11px 14px; border: 1px solid var(--border); border-radius: 8px;
  font-family: inherit; font-size: 0.88rem;
}
.cart-coupon-applied { font-size: 0.9rem; color: var(--text); margin-bottom: 8px; }

.cart-totals-row { display: flex; justify-content: space-between; font-size: 0.92rem; color: var(--text-mid); margin-bottom: 12px; }
.cart-totals-discount span:last-child { color: var(--success); }
.cart-totals-note { font-size: 0.78rem; color: var(--text-gray); margin: 8px 0 16px; }
.cart-totals-final {
  font-size: 1.15rem; font-weight: 700; color: var(--text);
  padding-top: 16px; border-top: 1px solid var(--border); margin-bottom: 24px;
}

.cart-checkout-btn { display: block; width: 100%; text-align: center; }

@media (max-width: 1024px) {
  .cart-layout { grid-template-columns: 1fr; }
  .cart-summary { position: static; }
}
@media (max-width: 640px) {
  .cart-page { padding: 100px 20px 64px; }
  .cart-line { grid-template-columns: 76px 1fr; }
  .cart-line-total { grid-column: 1 / -1; text-align: right; }
}

/* ==========================================================================
   CHECKOUT + ORDER CONFIRMATION
   ========================================================================== */
.checkout-page { padding: 120px 56px 100px; }
.checkout-page .section-heading { margin-bottom: 32px; }

.checkout-layout { display: grid; grid-template-columns: 1fr 340px; gap: 40px; align-items: start; }

.checkout-section { padding-bottom: 28px; margin-bottom: 28px; border-bottom: 1px solid var(--border); }
.checkout-section:last-of-type { border-bottom: none; }
.checkout-section-title { font-size: 1.1rem; font-weight: 700; color: var(--text); margin-bottom: 16px; }

.checkout-form label {
  display: block; font-size: 0.8rem; font-weight: 600; color: var(--text-mid);
  margin-bottom: 14px;
}
.checkout-form input[type="text"], .checkout-form input[type="email"] {
  display: block; width: 100%; margin-top: 6px; padding: 12px 14px;
  border: 1px solid var(--border); border-radius: 8px;
  font-family: inherit; font-size: 0.92rem; font-weight: 400; color: var(--text);
}
.checkout-form input:focus { outline: none; border-color: var(--blue); }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-row-3 { grid-template-columns: 1fr 1fr 1fr; }

.checkout-checkbox {
  display: flex !important; align-items: center; gap: 8px;
  font-weight: 500 !important; margin-bottom: 16px;
}
.checkout-checkbox input { margin: 0; }
.checkout-billing-fields { padding-top: 8px; }

.checkout-address-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; margin-bottom: 20px; }
.checkout-address-card {
  display: block; position: relative; background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; padding: 16px 16px 16px 40px; font-size: 0.85rem; line-height: 1.55;
  color: var(--text-mid); cursor: pointer; margin: 0; font-weight: 400; transition: border-color .15s;
}
.checkout-address-card input[type="radio"] { position: absolute; top: 18px; left: 16px; margin: 0; width: auto; }
.checkout-address-card:has(input:checked) { border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue); }
.checkout-address-card strong { display: block; color: var(--text); margin-bottom: 4px; }
.checkout-address-card .badge-default { position: absolute; top: 14px; right: 14px; }

.checkout-submit-btn { width: 100%; text-align: center; }

.checkout-summary-lines { margin-bottom: 20px; }
.checkout-summary-line {
  display: flex; justify-content: space-between; gap: 12px;
  font-size: 0.88rem; color: var(--text-mid); margin-bottom: 10px;
}

.checkout-pay { display: flex; justify-content: center; padding-top: 140px; }
.checkout-pay-card {
  text-align: center; max-width: 420px; background: var(--bg-light);
  border-radius: 16px; padding: 48px 40px;
}
.checkout-pay-amount { font-size: 2rem; font-weight: 700; color: var(--text); margin: 12px 0; }
.checkout-pay-note { font-size: 0.88rem; color: var(--text-gray); margin-bottom: 24px; }

.order-confirmation-header { margin-bottom: 32px; }
.order-confirmation-header p { font-size: 0.95rem; color: var(--text-mid); }
.order-confirmation-note { color: #B45309 !important; margin-top: 6px; }

.order-item-row {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 16px 0; border-bottom: 1px solid var(--border);
}

.status-badge {
  display: inline-block; padding: 3px 12px; border-radius: 20px;
  font-size: 0.75rem; font-weight: 600;
}
.status-badge--paid, .status-badge--delivered { background: #d1fae5; color: #065f46; }
.status-badge--pending, .status-badge--refunded { background: var(--card-bg); color: var(--text-gray); }
.status-badge--cancelled { background: #fee2e2; color: #991b1b; }
.status-badge--processing, .status-badge--shipped { background: #dbeafe; color: #1e40af; }

@media (max-width: 1024px) {
  .checkout-layout { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .checkout-page { padding: 100px 20px 64px; }
  .form-row, .form-row-3 { grid-template-columns: 1fr; }
  .checkout-pay { padding-top: 100px; }
}

/* ==========================================================================
   ERROR PAGES
   ========================================================================== */
.error-page {
  min-height: 80vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 40px 20px;
}
.error-code { font-size: 6rem; font-weight: 700; color: var(--border); line-height: 1; margin-bottom: 8px; }
.error-heading { font-size: 2rem; font-weight: 700; margin-bottom: 12px; }
.error-message { color: var(--text-gray); font-size: 1rem; margin-bottom: 32px; max-width: 460px; }

/* ==========================================================================
   GRID OVERFLOW GUARD
   ========================================================================== */
.why-header > *, .why-grid > *, .why-cards > *,
.about-header > *, .about-body > *,
.contact-layout > *, .testi-grid > *,
.footer-top > *, .about-cat-grid > *,
.about-body-grid > *, .about-section-inner-header > *,
.product-grid > *, .product-layout > *,
.pv2-hero > *, .pv2-gallery > *, .pv2-overview > *,
.pv2-recommended-grid > *, .hv2-work-grid > * { min-width: 0; }

/* ==========================================================================
   RESPONSIVE — Tablet (641px – 1024px)
   ========================================================================== */
@media (max-width: 1024px) {
  #site-nav { padding: 0 32px; }

  .hero-content { padding: 0 32px 56px; }
  .hero-heading { font-size: 2.4rem; }

  #why-us          { padding: 80px 32px; }
  #about           { padding: 80px 32px; }
  #smart-curtains  { padding: 80px 32px; gap: 48px; }
  #contact-section { padding: 80px 32px; }
  #testimonials    { padding: 80px 32px; }
  .about-section   { padding: 80px 32px; }
  .about-categories { padding: 80px 32px; }
  .about-testimonials { padding: 80px 32px; }

  .footer-top { grid-template-columns: 1fr 1fr; padding: 40px 32px 32px; }
  .footer-bottom { padding: 20px 32px; }

  .page-hero-content { padding: 56px 32px; }
  .page-hero-title { font-size: 2.4rem; }

  .about-body {
    grid-template-columns: 1fr 1fr;
    min-height: auto;
  }
  .about-body > div:last-child { grid-column: 1 / -1; }

  .testi-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-layout { grid-template-columns: 1fr 1.5fr; }

  .about-section-inner-header { gap: 40px; }
  .about-cat-grid { gap: 16px; }

  .catalog-section { padding: 40px 32px 80px; }
  .product-grid { grid-template-columns: repeat(3, 1fr); gap: 18px; }

  .product-page { padding: 112px 32px 0; }
  .product-layout { grid-template-columns: 1fr 1fr; gap: 36px; }
  .product-description-section, .related-section { padding-left: 0; padding-right: 0; }
}

/* ==========================================================================
   RESPONSIVE — Mobile (≤ 640px)
   ========================================================================== */
@media (max-width: 640px) {
  /* Nav */
  #site-nav { padding: 0 20px; height: 64px; }
  .nav-logo img { height: 44px; }
  .nav-hamburger { display: flex; }
  .nav-links { display: none; }

  .nav-menu {
    position: fixed; inset: 0; top: 64px;
    background: rgba(20, 18, 16, 0.97); backdrop-filter: blur(8px);
    flex-direction: column; align-items: stretch; justify-content: flex-start;
    padding: 32px 24px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    gap: 0;
    display: flex; /* always rendered, just hidden via transform */
    z-index: 150;
    overflow-y: auto;
  }
  .nav-menu.open { transform: translateX(0); }

  .nav-links {
    display: flex; flex-direction: column; align-items: flex-start; gap: 0;
  }
  .nav-links li { width: 100%; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .nav-link {
    display: block; padding: 16px 0; font-size: 1rem;
    width: 100%;
  }

  .nav-mega {
    position: static; transform: none; box-shadow: none; width: auto;
    background: rgba(255,255,255,0.05); border-radius: 8px; margin: 4px 0 8px; padding: 16px;
  }
  .nav-mega-grid { grid-template-columns: 1fr; gap: 20px; }
  .nav-mega-tile-name { color: #fff; }
  .nav-mega-sublist a { color: rgba(255,255,255,0.8); }

  .nav-simple-menu {
    position: static; transform: none; box-shadow: none; min-width: auto;
    background: rgba(255,255,255,0.05); border-radius: 8px; margin: 4px 0 8px; padding: 6px;
  }
  .nav-simple-menu li a { color: rgba(255,255,255,0.8); }
  .nav-simple-menu li a:hover { background: rgba(255,255,255,0.1); color: #fff; }

  .nav-search { margin-top: 20px; background: rgba(255,255,255,0.1); flex: none; }
  .nav-search input, .nav-search-btn { color: rgba(255,255,255,0.95); }
  .nav-search input::placeholder { color: rgba(255,255,255,0.6); }

  .nav-icons { margin-top: 20px; gap: 24px; }
  .nav-icon-btn { color: rgba(255,255,255,0.9); }

  /* Hero */
  .hero-content { padding: 0 20px 56px; }
  .hero-heading { font-size: 2rem; letter-spacing: -0.5px; margin-bottom: 18px; }
  .hero-bottom { flex-direction: column; align-items: flex-start; gap: 20px; }
  .hero-sub { max-width: 100%; font-size: 0.9rem; }

  .section-heading { font-size: 1.85rem; }

  /* Sections */
  #why-us, #about, #contact-section, #testimonials { padding: 64px 20px; }
  #smart-curtains { padding: 64px 20px; grid-template-columns: 1fr; gap: 32px; }
  .about-section { padding: 64px 20px; }
  .about-categories { padding: 64px 20px; }
  .about-testimonials { padding: 64px 20px; }

  /* Why Us */
  .why-header { grid-template-columns: 1fr; gap: 16px; }
  .why-header p { padding-top: 0; }
  .why-grid { grid-template-columns: 1fr; }
  .why-img-left { min-height: 260px; }
  .why-img-top { height: 200px; }
  .why-cards { grid-template-columns: 1fr; }

  /* About (home) */
  .about-header { grid-template-columns: 1fr; gap: 16px; }
  .about-header p { padding-top: 0; }
  .about-body { grid-template-columns: 1fr; min-height: auto; }
  .about-img-tall { min-height: 260px; }
  .about-img-sm { flex: none; height: 220px; }
  .about-body > div:last-child { grid-column: auto; }

  /* About page */
  .about-section-inner-header { grid-template-columns: 1fr; gap: 16px; }
  .about-section-inner-header > .right-desc { padding-top: 0; }
  .about-body-grid { grid-template-columns: 1fr; min-height: auto; }
  .about-body-img-sm { flex: none; height: 240px; }
  .about-cat-grid { grid-template-columns: 1fr; }

  /* Page hero */
  .page-hero { min-height: 35vh; }
  .page-hero-content { padding: 48px 20px; }
  .page-hero-title { font-size: 2rem; }

  /* Contact */
  .contact-layout { grid-template-columns: 1fr; }
  .contact-form-card { padding: 28px 20px; }

  /* Testimonials */
  .testi-grid { grid-template-columns: 1fr; }
  .curtains-text .section-heading { font-size: 1.85rem; }

  /* Footer */
  .footer-top { grid-template-columns: 1fr; gap: 32px; padding: 40px 20px 32px; }
  .footer-bottom { flex-direction: column; align-items: center; gap: 16px; padding: 20px; }
  .footer-copy { text-align: center; }

  /* Catalog / product page */
  .catalog-section { padding: 32px 20px 64px; }
  .catalog-toolbar { flex-direction: column; align-items: flex-start; }
  .shop-toolbar-controls { width: 100%; }
  .shop-search--inline { flex: 1; }
  .shop-search--inline input { width: auto; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }

  .auth-main { padding: 96px 16px 40px; }
  .auth-card { padding: 32px 24px; }
  .auth-form-row { grid-template-columns: 1fr; gap: 18px; }

  .product-page { padding: 96px 20px 0; }
  .product-layout { grid-template-columns: 1fr; gap: 28px; margin-bottom: 56px; }
  .product-gallery { flex-direction: column; }
  .product-gallery-thumbs { flex-direction: row; flex-wrap: wrap; order: 0; flex: none; margin-top: 14px; }
  .product-title { font-size: 1.6rem; }
  .product-description-section, .related-section { padding-left: 0; padding-right: 0; }
  .search-form { max-width: 100%; }
}

/* ==========================================================================
   ADMIN
   ========================================================================== */
.admin-guest {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: var(--bg-light); padding: 24px;
}
.admin-guest-card {
  width: 100%; max-width: 380px; background: var(--surface); border-radius: 16px;
  border: 1px solid var(--border); padding: 40px 36px;
}
.admin-guest-header { text-align: center; margin-bottom: 28px; }
.admin-guest-header p { color: var(--text-gray); font-size: 0.9rem; margin-top: 6px; }
.admin-login-form { display: flex; flex-direction: column; gap: 18px; }
.admin-login-form .btn-submit { align-self: stretch; justify-content: center; }

.admin-logo { font-size: 1.15rem; color: var(--navy); }
.admin-logo strong { color: var(--blue); }

.admin-wrapper { display: flex; min-height: 100vh; }
.admin-sidebar {
  width: 240px; flex-shrink: 0; background: var(--navy); color: #fff;
  display: flex; flex-direction: column; padding: 24px 0;
}
.admin-sidebar .admin-logo { padding: 0 24px 24px; color: #fff; }
.admin-nav { display: flex; flex-direction: column; flex: 1; }
.admin-nav a {
  padding: 12px 24px; font-size: 0.9rem; color: rgba(255,255,255,0.8); transition: background .15s, color .15s;
}
.admin-nav a:hover { background: rgba(255,255,255,0.08); color: #fff; }
.admin-logout-form { padding: 0 24px; }
.admin-logout-btn {
  width: 100%; padding: 10px 0; background: none; border: 1px solid rgba(255,255,255,0.25);
  border-radius: 8px; color: rgba(255,255,255,0.8); font-family: inherit; font-size: 0.85rem; cursor: pointer;
  transition: background .15s, color .15s;
}
.admin-logout-btn:hover { background: rgba(255,255,255,0.08); color: #fff; }

.admin-content { flex: 1; padding: 32px 40px; background: var(--bg-light); }
.admin-page-header { margin-bottom: 24px; }
.admin-page-header h1 { font-size: 1.5rem; font-weight: 700; color: var(--text); }
.admin-page-header p { color: var(--text-gray); font-size: 0.9rem; margin-top: 4px; }
.admin-page-header--row { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ── Cards / generic containers ── */
.admin-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
  padding: 28px; margin-bottom: 24px;
}
.admin-card-title { font-size: 1.05rem; font-weight: 700; color: var(--text); margin: 0 0 16px; }
.admin-card-title:not(:first-child) { margin-top: 28px; }

/* ── Dashboard stat cards ── */
.admin-stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 24px; }
.admin-stat-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
  padding: 20px 24px; display: flex; flex-direction: column; gap: 8px;
}
.admin-stat-label { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-gray); }
.admin-stat-value { font-size: 1.8rem; font-weight: 700; color: var(--text); }
@media (max-width: 1024px) { .admin-stats-grid { grid-template-columns: repeat(2, 1fr); } }
.admin-empty {
  background: var(--surface); border: 1px dashed var(--border); border-radius: 16px;
  padding: 48px 24px; text-align: center; color: var(--text-gray);
}
.admin-muted { color: var(--text-gray); font-size: 0.85rem; }
.admin-hint { color: var(--text-gray); font-size: 0.8rem; margin: -6px 0 10px; }

/* ── Filter bar / inputs shared across list pages ── */
.admin-filter-bar { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; flex-wrap: wrap; }
.admin-input {
  padding: 12px 16px; border: 1px solid var(--border); border-radius: 8px;
  font-family: inherit; font-size: 0.92rem; color: var(--text); background: var(--surface);
  transition: border-color .15s, box-shadow .15s;
}
.admin-input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(37,99,235,.14); }
select.admin-input { padding-right: 40px; }
.admin-link { color: var(--blue); font-size: 0.85rem; font-weight: 500; background: none; border: none; cursor: pointer; font-family: inherit; padding: 0; }
.admin-link:hover { color: var(--blue-dark); text-decoration: underline; }
.admin-link-muted { color: var(--text-gray); font-size: 0.85rem; }
.admin-link-muted:hover { color: var(--text); }
.admin-link--danger { color: #991b1b; }
.admin-link--danger:hover { color: #7a1616; }

/* ── Tables ── */
.admin-table-wrap { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; margin-bottom: 20px; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.admin-table th {
  text-align: left; padding: 14px 16px; background: var(--bg-light); color: var(--text-gray);
  font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px;
}
.admin-table td { padding: 14px 16px; border-top: 1px solid var(--border); vertical-align: middle; }
.admin-table-thumb img, .admin-thumb-placeholder {
  width: 44px; height: 44px; border-radius: 8px; object-fit: cover; background: var(--card-bg);
}
.admin-thumb-placeholder { display: flex; align-items: center; justify-content: center; font-size: 0.65rem; color: var(--text-gray); }
.admin-table-actions { display: flex; align-items: center; gap: 14px; white-space: nowrap; }

/* ── Badges ── */
.admin-badge {
  display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 0.72rem;
  font-weight: 600; margin-right: 4px; white-space: nowrap;
}
.admin-badge--success, .admin-badge--status-paid, .admin-badge--status-delivered { background: #d1fae5; color: #065f46; }
.admin-badge--muted, .admin-badge--status-pending, .admin-badge--status-refunded { background: var(--card-bg); color: var(--text-gray); }
.admin-badge--danger, .admin-badge--status-cancelled { background: #fee2e2; color: #991b1b; }
.admin-badge--info, .admin-badge--status-processing, .admin-badge--status-shipped { background: #dbeafe; color: #1e40af; }

/* ── Forms ── */
.admin-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.admin-form-span2 { grid-column: 1 / -1; }
.admin-form-grid .form-group textarea { min-height: 100px; }

/* ── Admin fields, unified ──
   `.form-group input/textarea` (shared with the storefront contact form,
   see line ~378) already sizes most admin fields, but a handful of raw
   inputs never picked up any class (variant option/spec rows, install/FAQ
   item rows, the generator's axis rows) and every <select> in the panel —
   including `.form-group select`, which the shared rule above doesn't
   cover — was falling back to the unstyled browser default. This block
   normalizes all of them to one bigger, cleaner, consistently-themed look
   and adds a shared focus ring, scoped to the admin panel only. */
.admin-wrapper .form-group select,
.admin-wrapper .variant-axis-row input,
.admin-wrapper .admin-item-row input[type="text"],
.admin-wrapper .admin-item-row textarea {
  width: 100%; padding: 13px 16px; border: 1px solid var(--border);
  border-radius: 8px; font-family: inherit; font-size: 0.93rem;
  color: var(--text); background: var(--surface); outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.admin-wrapper .variant-axis-row input::placeholder,
.admin-wrapper .admin-item-row input::placeholder,
.admin-wrapper .admin-item-row textarea::placeholder { color: var(--text-gray); }
.admin-wrapper .admin-item-row textarea { min-height: 48px; resize: vertical; }
.admin-wrapper .form-group input:focus,
.admin-wrapper .form-group select:focus,
.admin-wrapper .form-group textarea:focus,
.admin-wrapper .admin-input:focus,
.admin-wrapper .variant-axis-row input:focus,
.admin-wrapper .admin-item-row input:focus,
.admin-wrapper .admin-item-row textarea:focus {
  border-color: var(--blue); box-shadow: 0 0 0 3px rgba(37,99,235,.14);
}
.admin-wrapper .form-group select,
.admin-wrapper select.admin-input {
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 8l4.5 4.5L14.5 8' fill='none' stroke='%236B7280' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 18px;
  padding-right: 42px; cursor: pointer;
}

/* ── Rich text editor (contenteditable + execCommand, no library) ── */
.rte { border: 1px solid var(--border); border-radius: 8px; overflow: hidden; background: var(--surface); }
.rte-toolbar {
  display: flex; flex-wrap: wrap; gap: 4px; padding: 8px;
  background: var(--bg-light); border-bottom: 1px solid var(--border);
}
.rte-toolbar button {
  padding: 6px 12px; border: 1px solid transparent; border-radius: 6px; background: none;
  color: var(--text-mid); font-family: inherit; font-size: 0.82rem; font-weight: 500;
  cursor: pointer; transition: background .15s, border-color .15s;
}
.rte-toolbar button:hover { background: var(--surface); border-color: var(--border); }
.rte-editor {
  min-height: 180px; max-height: 480px; overflow-y: auto; padding: 14px 16px;
  font-family: inherit; font-size: 0.92rem; color: var(--text); line-height: 1.6; outline: none;
}
.rte-editor:focus { box-shadow: inset 0 0 0 2px rgba(37,99,235,.15); }
.rte-editor:empty::before { content: attr(data-placeholder); color: var(--text-gray); }
.rte-editor h3 { font-size: 1.15rem; font-weight: 700; margin: 8px 0 6px; color: var(--text); }
.rte-editor h4 { font-size: 1rem; font-weight: 700; margin: 8px 0 6px; color: var(--text); }
.rte-editor p { margin: 0 0 10px; }
.rte-editor p:last-child { margin-bottom: 0; }
.rte-editor ul, .rte-editor ol { margin: 0 0 10px 22px; }

.admin-toggle-row { display: flex; gap: 24px; flex-wrap: wrap; align-items: center; }
.admin-toggle { display: flex; align-items: center; gap: 9px; font-size: 0.9rem; color: var(--text-mid); cursor: pointer; font-weight: 400; text-transform: none; letter-spacing: 0; }
.admin-toggle input { width: 17px; height: 17px; accent-color: var(--blue); cursor: pointer; }
.admin-form-actions { display: flex; align-items: center; gap: 18px; margin-top: 24px; }

/* ── Images (product/category media manager) ── */
.admin-image-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; margin-bottom: 20px; }
.admin-image-card { position: relative; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: var(--bg-light); }
.admin-image-card img { width: 100%; height: 120px; object-fit: cover; }
.admin-image-card .admin-badge { position: absolute; top: 8px; left: 8px; }
.admin-image-actions { display: flex; flex-wrap: wrap; gap: 10px; padding: 10px; }
.admin-image-card--inline { max-width: 200px; margin-bottom: 12px; }
.admin-image-card--inline img { height: 100px; }
.admin-image-card--inline .admin-toggle { padding: 8px 10px; font-size: 0.78rem; }
.admin-upload-form { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.admin-upload-form input[type="file"] { font-size: 0.85rem; color: var(--text-gray); }
.admin-upload-form input[type="file"]::file-selector-button {
  padding: 8px 16px; border-radius: 20px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text); font-family: inherit;
  font-size: 0.82rem; font-weight: 500; cursor: pointer; margin-right: 10px;
  transition: background .15s;
}
.admin-upload-form input[type="file"]::file-selector-button:hover { background: var(--bg-light); }

/* ── Variant editor ── */
.admin-variant-card {
  border: 1px solid var(--border); border-radius: 12px; padding: 20px; margin-bottom: 12px; background: var(--bg-light);
}
.admin-variant-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 16px; }

.admin-variant-options {
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  padding: 16px 0; margin-bottom: 16px;
}
.admin-variant-options > label {
  display: block; font-size: 0.72rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.5px; color: var(--text-mid); margin-bottom: 10px;
}
.variant-axis-rows { display: flex; flex-direction: column; gap: 12px; margin-bottom: 12px; }
.variant-axis-row { display: flex; gap: 10px; align-items: center; }
.variant-axis-row input { flex: 1; }
.admin-row-remove {
  flex-shrink: 0; width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--border); background: var(--surface); color: #991b1b;
  font-size: 1.3rem; line-height: 1; cursor: pointer; display: flex;
  align-items: center; justify-content: center; padding: 0;
  transition: background .15s, border-color .15s;
}
.admin-row-remove:hover { background: #fee2e2; border-color: #991b1b; }

/* ── Product-page content sections (Installation Requirements / FAQ / Ecosystem) ── */
.admin-form-section {
  border-top: 1px solid var(--border); padding-top: 20px; margin-top: 20px;
}
.admin-form-section .admin-card-title { margin-top: 0; }
.admin-item-rows { display: flex; flex-direction: column; gap: 12px; margin: 12px 0; }
.admin-item-row { display: flex; gap: 10px; align-items: flex-start; }
.admin-item-row input[type="text"], .admin-item-row textarea { flex: 1; }
.admin-item-row--faq input[type="text"] { flex: 0 0 40%; }
.admin-link[disabled] { opacity: 0.4; cursor: not-allowed; text-decoration: none; }

.icon-picker { display: grid; grid-template-columns: repeat(auto-fill, 36px); gap: 8px; flex: 0 0 auto; max-width: 260px; }
.icon-picker-btn {
  width: 36px; height: 36px; border-radius: 8px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text-mid); cursor: pointer;
  display: flex; align-items: center; justify-content: center; padding: 0;
  transition: background .15s, border-color .15s, color .15s;
}
.icon-picker-btn svg { width: 18px; height: 18px; }
.icon-picker-btn:hover { border-color: var(--blue); color: var(--blue); }
.icon-picker-btn.selected { background: var(--blue); border-color: var(--blue); color: #fff; }

/* ── Variant combination generator ── */
.admin-variant-generator { margin-top: 8px; }
.admin-form-error { color: #991b1b; font-size: 0.85rem; margin: 8px 0 0; }
.admin-generator-preview:not(:empty) { margin-top: 20px; }
.admin-generator-table-wrap { margin: 12px 0 20px; }
.admin-generator-table-wrap .admin-input { width: 100%; min-width: 90px; padding: 7px 10px; font-size: 0.85rem; }
.admin-generator-table-wrap td { vertical-align: middle; }
.admin-generator-table-wrap input[type="checkbox"] { width: auto; }

.admin-variant-image { margin: 0 0 16px; }
.admin-variant-image > label {
  display: block; font-size: 0.72rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.5px; color: var(--text-mid); margin-bottom: 10px;
}
.admin-variant-image-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.admin-variant-image-row img { width: 60px; height: 60px; object-fit: cover; border-radius: 8px; }
.admin-variant-image-row input[type="file"] { font-size: 0.85rem; color: var(--text-gray); }
.admin-variant-image-row input[type="file"]::file-selector-button {
  padding: 8px 16px; border-radius: 20px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text); font-family: inherit;
  font-size: 0.82rem; font-weight: 500; cursor: pointer; margin-right: 10px;
  transition: background .15s;
}
.admin-variant-image-row input[type="file"]::file-selector-button:hover { background: var(--bg-light); }
.admin-variant-delete { text-align: right; margin: -4px 0 20px; }

/* ── Option/value chip builder (replaces the old comma-separated axis-values
   input) — used by both the first-time combination generator and the
   "current options" panel for adding a value to an existing axis. ── */
.opt-row {
  border: 1px solid var(--border); border-radius: 10px;
  padding: 16px 18px; margin-bottom: 14px; background: var(--bg-light);
}
.opt-row-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.opt-name-input {
  font-weight: 700; font-size: 0.95rem; color: var(--text);
  border: none; border-bottom: 2px solid transparent; background: none;
  outline: none; padding: 2px 1px; min-width: 60px; font-family: inherit;
}
.opt-name-input::placeholder { color: var(--text-gray); font-weight: 500; }
.opt-name-input:focus { border-bottom-color: var(--blue); }
.opt-row-remove {
  margin-left: auto; flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%;
  border: 1px solid var(--border); background: var(--surface); color: #991b1b;
  font-size: 1.05rem; line-height: 1; cursor: pointer; display: flex;
  align-items: center; justify-content: center; padding: 0;
  transition: background .15s, border-color .15s;
}
.opt-row-remove:hover { background: #fee2e2; border-color: #991b1b; }

.chip-box {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px;
  background: var(--surface); min-height: 46px; transition: border-color .15s, box-shadow .15s;
}
.chip-box:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(37,99,235,.14); }
.chip-box--readonly { background: var(--card-bg); }
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--card-bg); color: var(--text);
  padding: 6px 6px 6px 13px; border-radius: 20px;
  font-size: 0.85rem; font-weight: 500; white-space: nowrap;
}
.chip--new { background: #dbeafe; color: #1e40af; }
.chip--readonly { padding-right: 13px; background: var(--surface); border: 1px solid var(--border); }
.chip-remove {
  width: 17px; height: 17px; border-radius: 50%; border: none;
  background: rgba(17,24,39,.1); color: var(--text-gray);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.68rem; line-height: 1; cursor: pointer; padding: 0; flex-shrink: 0;
}
.chip-remove:hover { background: #fee2e2; color: #991b1b; }
.chip-input {
  flex: 1; min-width: 140px; border: none; outline: none; background: none;
  font-family: inherit; font-size: 0.9rem; color: var(--text); padding: 5px 2px;
}
.chip-input::placeholder { color: var(--text-gray); }
.chip-input:disabled { cursor: not-allowed; }

.suggest-row { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin-top: 10px; }
.suggest-label { font-size: 0.75rem; color: var(--text-gray); margin-right: 2px; }
.suggest-chip {
  border: 1px dashed var(--border); background: none; color: var(--text-mid);
  font-family: inherit; font-size: 0.8rem; font-weight: 500;
  padding: 4px 12px; border-radius: 20px; cursor: pointer;
  transition: border-color .15s, color .15s, background .15s;
}
.suggest-chip:hover { border-color: var(--blue); color: var(--blue); border-style: solid; background: rgba(37,99,235,.06); }
.suggest-chip:before { content: '+ '; }

.live-count {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.86rem; color: var(--text-mid);
  background: var(--bg-light); border: 1px solid var(--border); border-radius: 20px;
  padding: 9px 18px; margin: 4px 0 18px;
}
.live-count strong { color: var(--blue); font-size: 0.98rem; font-variant-numeric: tabular-nums; }

.new-pill {
  display: inline-block; background: #dbeafe; color: #1e40af;
  font-size: 0.64rem; font-weight: 700; letter-spacing: .4px; text-transform: uppercase;
  padding: 2px 8px; border-radius: 10px; margin-left: 8px; vertical-align: middle;
}

/* ── Variant image picker — a compact thumbnail button that opens a popover of
   the product's already-uploaded images, so a variant can reuse one instead
   of always requiring a fresh upload. Shared between the per-variant edit
   form and the bulk-generator preview table. ── */
.img-pick-btn {
  width: 44px; height: 44px; border-radius: 8px; padding: 0; cursor: pointer;
  border: 1px dashed var(--border); background: var(--surface); color: var(--text-gray);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
  transition: border-color .15s, color .15s;
}
.img-pick-btn:hover { border-color: var(--blue); color: var(--blue); }
.img-pick-btn.has-image { border-style: solid; padding: 0; }
.img-pick-btn img { width: 100%; height: 100%; object-fit: cover; display: block; }
.img-pick-btn svg { width: 18px; height: 18px; }

.img-pick-pop {
  position: fixed; z-index: 600; width: 220px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  box-shadow: 0 16px 40px rgba(0,0,0,.16); padding: 10px;
}
.img-pick-pop-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.img-pick-pop-thumb {
  aspect-ratio: 1/1; border-radius: 6px; overflow: hidden; padding: 0; cursor: pointer;
  border: 2px solid transparent; background: var(--bg-light);
}
.img-pick-pop-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.img-pick-pop-thumb.selected { border-color: var(--blue); }
.img-pick-pop-thumb:hover { border-color: var(--blue); }
.img-pick-pop-none {
  width: 100%; margin-top: 6px; padding: 7px; border-radius: 6px;
  border: 1px solid var(--border); background: none; color: var(--text-mid);
  font-family: inherit; font-size: 0.78rem; cursor: pointer;
}
.img-pick-pop-none:hover { border-color: #991b1b; color: #991b1b; }
.img-pick-pop-empty { font-size: 0.78rem; color: var(--text-gray); padding: 6px 2px; }

/* ── Order detail ── */
.admin-order-layout { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 20px; align-items: start; }
.admin-order-layout .admin-card { margin-bottom: 0; }
.admin-totals { width: 100%; margin-top: 16px; font-size: 0.88rem; }
.admin-totals td { padding: 4px 0; border: none; }
.admin-totals td:last-child { text-align: right; }
.admin-totals-final td { font-weight: 700; border-top: 1px solid var(--border) !important; padding-top: 10px !important; }
.admin-status-form { display: flex; align-items: center; gap: 12px; margin-top: 14px; }

@media (max-width: 1024px) {
  .admin-order-layout { grid-template-columns: 1fr; }
  .admin-form-grid, .admin-variant-grid { grid-template-columns: 1fr; }
}

/* ── Product wizard: step indicator ── */
.admin-steps { display: flex; align-items: center; gap: 4px; margin-bottom: 24px; flex-wrap: wrap; }
.admin-step {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px;
  border-radius: 20px; font-size: 0.85rem; font-weight: 500; color: var(--text-gray);
  text-decoration: none; background: var(--surface); border: 1px solid var(--border);
}
a.admin-step:hover { border-color: var(--blue); color: var(--text); }
.admin-step-num {
  width: 22px; height: 22px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.72rem; font-weight: 700; background: var(--card-bg); color: var(--text-gray);
}
.admin-step--done { color: var(--text); border-color: var(--border); }
.admin-step--done .admin-step-num { background: var(--success); color: #fff; }
.admin-step--current { color: var(--text); border-color: var(--blue); }
.admin-step--current .admin-step-num { background: var(--blue); color: #fff; }
.admin-step--todo .admin-step-num { background: var(--card-bg); color: var(--text-gray); }
.admin-step--locked { opacity: 0.5; cursor: not-allowed; }
.admin-step-connector { width: 24px; height: 1px; background: var(--border); flex-shrink: 0; }

/* ── Modal (variant prompt) ── */
.admin-modal-overlay {
  display: none; position: fixed; inset: 0; background: rgba(15,28,50,0.55);
  align-items: center; justify-content: center; z-index: 500; padding: 20px;
}
.admin-modal-overlay.is-open { display: flex; }
.admin-modal-card {
  background: var(--surface); border-radius: 16px; padding: 32px; max-width: 380px; width: 100%;
  box-shadow: 0 24px 60px rgba(0,0,0,.18); text-align: center;
}
.admin-modal-card h3 { font-size: 1.1rem; font-weight: 700; color: var(--text); margin-bottom: 10px; }
.admin-modal-card p { color: var(--text-gray); font-size: 0.88rem; margin-bottom: 24px; line-height: 1.5; }
.admin-modal-actions { display: flex; flex-direction: column; gap: 12px; align-items: center; }
.admin-modal-actions .btn-primary, .admin-modal-actions .btn-secondary { width: 100%; text-align: center; }

/* ── Help & Guides page ── */
.help-layout { display: grid; grid-template-columns: 280px 1fr; gap: 24px; align-items: start; }

.help-nav {
  position: sticky; top: 24px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
  padding: 16px; max-height: calc(100vh - 48px); overflow-y: auto;
}
.help-search {
  width: 100%; padding: 11px 16px; margin-bottom: 14px; border: 1px solid var(--border);
  border-radius: 20px; font-family: inherit; font-size: 0.88rem; color: var(--text);
  background: var(--bg-light); outline: none; transition: border-color .15s, box-shadow .15s, background .15s;
}
.help-search:focus { border-color: var(--blue); background: var(--surface); box-shadow: 0 0 0 3px rgba(37,99,235,.14); }
.help-search::placeholder { color: var(--text-gray); }

.help-nav-group { margin-bottom: 6px; }
.help-nav-group:last-child { margin-bottom: 0; }
.help-nav-group-label {
  font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.6px;
  color: var(--text-gray); padding: 10px 10px 6px;
}
.help-nav-link {
  display: block; padding: 8px 10px; border-radius: 8px;
  font-size: 0.86rem; color: var(--text-mid); line-height: 1.4;
  transition: background .15s, color .15s;
}
.help-nav-link:hover { background: var(--bg-light); color: var(--text); }
.help-nav-link.is-active { background: var(--blue); color: #fff; font-weight: 500; }
.help-nav-link.is-hidden { display: none; }
.help-nav-group.is-hidden { display: none; }
.help-nav-empty { font-size: 0.82rem; color: var(--text-gray); padding: 10px; line-height: 1.5; }

.help-content { min-height: 320px; }
.help-topic-eyebrow {
  display: block; font-size: 0.72rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 1px; color: var(--blue); margin-bottom: 8px;
}
.help-topic h2 { font-size: 1.3rem; font-weight: 700; color: var(--text); margin-bottom: 14px; }
.help-topic-intro { font-size: 0.95rem; color: var(--text-mid); line-height: 1.65; margin-bottom: 18px; }
.help-steps {
  counter-reset: help-step; list-style: none; display: flex; flex-direction: column; gap: 14px;
  margin-bottom: 20px;
}
.help-steps li {
  counter-increment: help-step; position: relative; padding-left: 38px;
  font-size: 0.92rem; color: var(--text-mid); line-height: 1.6;
}
.help-steps li::before {
  content: counter(help-step); position: absolute; left: 0; top: -1px;
  width: 26px; height: 26px; border-radius: 50%; background: var(--bg-light); color: var(--text);
  font-size: 0.8rem; font-weight: 700; display: flex; align-items: center; justify-content: center;
}
.help-steps li strong { color: var(--text); font-weight: 600; }
.help-steps li code {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 0.85em;
  background: var(--card-bg); padding: 1px 6px; border-radius: 4px; color: var(--text);
}
.help-tips { display: flex; flex-direction: column; gap: 10px; }
.help-tip {
  font-size: 0.87rem; color: var(--text-mid); line-height: 1.6;
  background: var(--bg-light); border-left: 3px solid var(--blue);
  padding: 10px 14px; border-radius: 0 8px 8px 0;
}
.help-tip strong { color: var(--text); font-weight: 600; }

@media (max-width: 900px) {
  .help-layout { grid-template-columns: 1fr; }
  .help-nav { position: static; max-height: none; }
}

/* ── Product card: wishlist heart overlay ── */
.product-card { position: relative; }
.product-card-link { display: block; color: inherit; }
.product-card-wishlist { position: absolute; top: 12px; right: 12px; z-index: 2; }
.wishlist-heart-btn {
  display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,.9); border: none; cursor: pointer;
  font-size: 1.05rem; color: var(--navy); line-height: 1;
  box-shadow: 0 4px 12px rgba(0,0,0,.15);
}
.wishlist-heart-btn:hover { color: var(--blue); }
.wishlist-heart-btn--login { position: absolute; top: 12px; right: 12px; z-index: 2; text-decoration: none; }
.product-wishlist-form { margin-top: 12px; }
.product-wishlist-link { font-size: 0.88rem; }

/* ── Account area ── */
.account-main { padding: 48px 56px 96px; }
.account-container { max-width: 1120px; margin: 0 auto; }
.account-header { margin-bottom: 32px; }
.account-sub { color: var(--text-gray); font-size: 0.92rem; margin-top: 4px; }
.account-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 24px; }
.account-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 24px;
}
.account-card--wide { grid-column: 1 / -1; }
.account-card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.account-card-header h2 { font-size: 1.05rem; font-weight: 700; color: var(--text); }
.account-empty { color: var(--text-gray); font-size: 0.9rem; }
.account-hint { color: var(--text-gray); font-size: 0.78rem; margin-top: 6px; }
.account-address { font-size: 0.9rem; line-height: 1.6; color: var(--text-mid); }
.account-list { display: flex; flex-direction: column; gap: 14px; }
.account-list-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding-bottom: 14px; border-bottom: 1px solid var(--border);
}
.account-list-row:last-child { border-bottom: none; padding-bottom: 0; }
.account-list-row a { display: flex; align-items: center; gap: 10px; }
.account-muted { color: var(--text-gray); font-size: 0.85rem; }
.account-form .form-group { margin-bottom: 16px; }

.address-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; margin-bottom: 24px; }
.address-card {
  position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
  padding: 20px; font-size: 0.88rem; line-height: 1.6; color: var(--text-mid);
}
.address-card-label { font-weight: 700; color: var(--text); margin-bottom: 4px; }
.address-card-actions { display: flex; align-items: center; gap: 16px; margin-top: 14px; }
.address-card--editing { border-color: var(--blue); }
.badge-default {
  position: absolute; top: 16px; right: 16px; background: var(--gold-strong); color: var(--gold-ink);
  font-size: 0.65rem; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase;
  padding: 4px 10px; border-radius: 20px;
}
.checkbox-label { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; color: var(--text-mid); margin: 12px 0 20px; }
.checkbox-label input { width: auto; }

.btn-link--danger { color: #DC2626; }
.btn-link--danger:hover { color: #991b1b; }

.wishlist-card-actions { display: flex; align-items: center; gap: 14px; margin-top: 10px; }

@media (max-width: 1024px) {
  .account-main { padding: 40px 32px 72px; }
  .account-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .account-main { padding: 32px 20px 56px; }
}

/* ==========================================================================
   LEGAL PAGES (privacy / terms / refund policy)
   ========================================================================== */
.legal-page { padding: 120px 56px 100px; max-width: 860px; margin: 0 auto; }
.legal-page .section-heading { margin-bottom: 24px; }
.legal-placeholder-notice {
  border: 1px dashed var(--blue); border-radius: 12px; padding: 16px 20px;
  margin-bottom: 28px; background: var(--bg-light); font-size: 0.9rem; color: var(--text-mid);
}
.legal-placeholder-notice strong { display: block; color: var(--text); margin-bottom: 4px; }
.legal-body { font-size: 0.92rem; line-height: 1.7; color: var(--text-mid); }

@media (max-width: 640px) {
  .legal-page { padding: 90px 20px 64px; }
}

/* ==========================================================================
   HOME V2 — faithful recreation of the KERR reference build
   (lumen-architects-suite.lovable.app). "hv2-" namespaced; only /home-v2 uses
   these. Uses the site's black & gold tokens; brass-soft = --gold, brass =
   --gold-strong, obsidian = --bg, ivory = --text.
   ========================================================================== */

/* ── Shared section shell ── */
.hv2-section { position: relative; padding: 128px 0; }
.hv2-section--darker { background: #100d0a; border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }
.hv2-section-inner { max-width: 1400px; margin: 0 auto; padding: 0 40px; }

/* ── Eyebrow (gold rule + uppercase label) ── */
.hv2-eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 0.69rem; font-weight: 500; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--gold);
}
.hv2-eyebrow-line { width: 24px; height: 1px; background: rgba(200,161,95,.6); flex-shrink: 0; }
.hv2-eyebrow--center { justify-content: center; }

/* ── Display headings ── */
.hv2-h2 {
  font-family: var(--font-serif); font-weight: 400; letter-spacing: 0;
  font-size: clamp(2.2rem, 5vw, 4.1rem); line-height: 1.03; color: var(--text);
  margin-top: 24px; max-width: 20ch;
}
.hv2-h2 em, .hv2-hero-heading em, .hv2-cta-heading em { font-style: italic; color: var(--gold); }

/* ── Buttons ── */
.hv2-btn {
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  background: var(--gold-strong); color: var(--gold-ink);
  border: 1px solid var(--gold-strong); border-radius: 40px;
  padding: 14px 28px; font-size: 0.9rem; font-weight: 500;
  transition: background .3s, border-color .3s, color .3s;
}
.hv2-btn:hover { background: var(--gold-hover); border-color: var(--gold-hover); }
.hv2-btn--ghost { background: transparent; color: var(--text); border-color: rgba(244,240,231,.25); }
.hv2-btn--ghost:hover { background: rgba(226,207,173,.06); border-color: var(--gold); color: var(--gold); }
.hv2-btn--sm { padding: 12px 22px; font-size: 0.85rem; }

/* ── Hero ── */
.hv2-hero { position: relative; min-height: 720px; height: 100svh; overflow: hidden; }
.hv2-hero-video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0;
  animation: hv2-ken 22s ease-out forwards;
}
@keyframes hv2-ken { from { transform: scale(1); } to { transform: scale(1.08); } }
@media (prefers-reduced-motion: reduce) { .hv2-hero-video { animation: none; } }
.hv2-hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(90deg, rgba(20,18,16,.72) 0%, rgba(20,18,16,.15) 55%, transparent 100%),
    linear-gradient(180deg, rgba(20,18,16,.65) 0%, rgba(20,18,16,.2) 40%, var(--bg) 100%);
}
.hv2-hero-content {
  position: relative; z-index: 2; height: 100%; max-width: 1400px; margin: 0 auto;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 160px 40px 128px;
}
.hv2-hero-heading {
  font-family: var(--font-serif); font-weight: 400; letter-spacing: 0;
  font-size: clamp(3rem, 8.5vw, 92px); line-height: 0.98; color: var(--text);
  max-width: 16ch; margin-top: 26px;
}
.hv2-hero-sub { color: rgba(244,240,231,.75); font-size: 1.08rem; max-width: 36rem; line-height: 1.65; margin-top: 30px; }
.hv2-hero-ctas { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 38px; }
.hv2-hero-scroll {
  position: absolute; left: 50%; bottom: 30px; transform: translateX(-50%); z-index: 2;
  font-size: 0.62rem; letter-spacing: 0.32em; text-transform: uppercase; color: rgba(244,240,231,.5);
}

/* ── Trust strip (marquee) ── */
.hv2-trust { background: var(--bg); padding: 64px 0; text-align: center; border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }
.hv2-trust-label { font-size: 0.69rem; font-weight: 500; letter-spacing: 0.32em; text-transform: uppercase; color: var(--text-gray); margin-bottom: 32px; }
.hv2-trust-marquee {
  overflow: hidden; width: 100%;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
}
.hv2-trust-track { display: flex; align-items: center; gap: 64px; width: max-content; padding-left: 64px; animation: hv2-marquee 40s linear infinite; }
.hv2-trust-item {
  font-family: var(--font-serif); font-weight: 400; font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: -0.01em; white-space: nowrap; color: rgba(244,240,231,.4); transition: color .3s ease;
}
.hv2-trust-item:hover { color: rgba(244,240,231,.85); }
@keyframes hv2-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .hv2-trust-track { animation: none; } }

/* ── Split section header (Solutions) ── */
.hv2-head-split { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: end; margin-bottom: 80px; }
.hv2-head-split .hv2-h2 { max-width: 46rem; }
.hv2-head-note { max-width: 22rem; color: var(--text-gray); font-size: 0.95rem; line-height: 1.6; }

/* Centered / lead headers */
.hv2-head { max-width: 48rem; margin-bottom: 72px; }
.hv2-head-lead { color: var(--text-gray); font-size: 1rem; line-height: 1.65; margin-top: 24px; max-width: 36rem; }
.hv2-head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; margin-bottom: 56px; }
.hv2-textlink { display: inline-flex; align-items: center; gap: 8px; font-size: 0.9rem; color: rgba(244,240,231,.8); transition: color .2s; }
.hv2-textlink svg { width: 16px; height: 16px; transition: transform .25s; }
.hv2-textlink:hover { color: var(--gold); }
.hv2-textlink:hover svg { transform: translate(2px, -2px); }

/* ── Solutions (three disciplines) ── */
.hv2-solutions-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.hv2-solution-card { display: block; color: inherit; }
.hv2-solution-img { position: relative; aspect-ratio: 4/5; border-radius: 20px; overflow: hidden; margin-bottom: 22px; background: var(--surface); }
.hv2-solution-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.hv2-solution-card:hover .hv2-solution-img img { transform: scale(1.05); }
.hv2-solution-label {
  position: absolute; left: 16px; bottom: 16px; z-index: 1;
  font-size: 0.66rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text);
  background: rgba(20,18,16,.55); backdrop-filter: blur(8px); border: 1px solid var(--hairline);
  padding: 6px 12px; border-radius: 20px;
}
.hv2-solution-arrow {
  position: absolute; top: 16px; right: 16px; z-index: 1;
  width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: rgba(20,18,16,.5); backdrop-filter: blur(8px); border: 1px solid var(--hairline);
  color: var(--gold); transition: background .3s, color .3s;
}
.hv2-solution-arrow svg { width: 16px; height: 16px; }
.hv2-solution-card:hover .hv2-solution-arrow { background: var(--gold); color: var(--gold-ink); border-color: var(--gold); }
.hv2-solution-tag { font-size: 0.8rem; letter-spacing: 0.03em; color: var(--gold); }
.hv2-solution-title { font-family: var(--font-serif); font-weight: 400; font-size: 1.9rem; line-height: 1.1; color: var(--text); margin: 10px 0 12px; }
.hv2-solution-body { color: var(--text-gray); font-size: 0.95rem; line-height: 1.62; }

/* ── Why KERR (bordered grid) ── */
.hv2-why-grid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px;
  background: var(--hairline); border: 1px solid var(--hairline); border-radius: 24px; overflow: hidden;
}
.hv2-why-item { background: #141210; padding: 40px 28px; }
.hv2-why-icon { color: var(--gold); margin-bottom: 22px; display: block; }
.hv2-why-icon svg { width: 26px; height: 26px; }
.hv2-why-item h3 { font-size: 1.05rem; font-weight: 500; color: var(--text); margin-bottom: 10px; }
.hv2-why-item p { font-size: 0.9rem; line-height: 1.6; color: var(--text-gray); }

/* ── Featured Work (12-col mosaic) ── */
.hv2-work-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 20px; }
.hv2-work-tile { position: relative; display: block; overflow: hidden; border-radius: 20px; aspect-ratio: var(--tile-ratio, 4/3); background: var(--surface); }
.hv2-work-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.hv2-work-tile:hover img { transform: scale(1.05); }
.hv2-work-overlay { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 28px; background: linear-gradient(to top, rgba(20,18,16,.92) 0%, transparent 62%); }
.hv2-work-meta { display: flex; align-items: center; gap: 10px; font-size: 0.66rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); margin-bottom: 10px; }
.hv2-work-dot { width: 3px; height: 3px; border-radius: 50%; background: currentColor; }
.hv2-work-title { font-family: var(--font-serif); font-weight: 400; font-size: 1.55rem; line-height: 1.15; color: var(--text); max-width: 22ch; }

/* ── Ecosystems ── */
.hv2-eco { overflow: hidden; }
.hv2-eco-glow { position: absolute; left: -160px; top: 50%; transform: translateY(-50%); width: 520px; height: 520px; border-radius: 50%; background: radial-gradient(circle, rgba(200,161,95,.30) 0%, transparent 60%); filter: blur(60px); opacity: .55; pointer-events: none; }
.hv2-eco .hv2-section-inner { position: relative; z-index: 1; }
.hv2-eco-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.hv2-eco-card { border: 1px solid var(--hairline); border-radius: 24px; padding: 40px 32px; background: rgba(226,207,173,.02); }
.hv2-eco-mark { display: block; font-family: var(--font-serif); font-weight: 400; font-size: 2rem; color: var(--text); margin-bottom: 16px; }
.hv2-eco-tagline { color: var(--text); font-size: 1rem; line-height: 1.4; margin-bottom: 12px; }
.hv2-eco-body { color: var(--text-gray); font-size: 0.92rem; line-height: 1.6; }

/* ── Instruments ── */
.hv2-instruments-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; align-items: center; }
.hv2-instruments-copy .hv2-btn { margin-top: 40px; }
.hv2-instruments-img { position: relative; border-radius: 24px; overflow: hidden; border: 1px solid var(--hairline); aspect-ratio: 16/11; }
.hv2-instruments-img img { width: 100%; height: 100%; object-fit: cover; }
.hv2-instruments-img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(20,18,16,.6), transparent 50%); }
.hv2-instruments-list { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.hv2-instruments-list li { display: inline-flex; align-items: center; gap: 8px; font-size: 0.85rem; color: var(--text-mid); border: 1px solid var(--hairline); border-radius: 20px; padding: 8px 16px; }
.hv2-chip-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); flex-shrink: 0; }

/* ── Studio (Architects & Developers) ── */
.hv2-studio { position: relative; overflow: hidden; padding: 128px 0; border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }
.hv2-studio-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.4; z-index: 0; }
.hv2-studio-overlay { position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, var(--bg) 0%, rgba(20,18,16,.85) 42%, rgba(20,18,16,.4) 100%); }
.hv2-studio .hv2-section-inner { position: relative; z-index: 2; }
.hv2-studio-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.hv2-studio-lead { color: var(--text-mid); font-size: 1.05rem; line-height: 1.72; margin: 24px 0 40px; max-width: 34rem; }
.hv2-studio-list { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--hairline); border: 1px solid var(--hairline); border-radius: 24px; overflow: hidden; }
.hv2-studio-list li { display: flex; gap: 14px; padding: 24px; background: rgba(20,18,16,.72); backdrop-filter: blur(8px); }
.hv2-studio-check { flex: 0 0 auto; width: 20px; height: 20px; color: var(--gold); margin-top: 2px; }
.hv2-studio-check svg { width: 20px; height: 20px; }
.hv2-studio-list strong { display: block; font-size: 0.95rem; font-weight: 500; color: var(--text); margin-bottom: 4px; }
.hv2-studio-list li span { font-size: 0.85rem; color: var(--text-gray); line-height: 1.5; }

/* ── Testimonials ── */
.hv2-quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 48px; }
.hv2-quote { display: flex; flex-direction: column; justify-content: space-between; border: 1px solid var(--hairline); border-radius: 24px; padding: 40px; background: var(--surface); }
.hv2-quote-mark { color: var(--gold); }
.hv2-quote-mark svg { width: 26px; height: 26px; }
.hv2-quote-text { font-family: var(--font-serif); font-weight: 400; font-size: 1.4rem; line-height: 1.3; color: var(--text); margin: 34px 0; }
.hv2-quote-by { font-size: 0.66rem; letter-spacing: 0.28em; text-transform: uppercase; color: var(--text-gray); }

/* ── CTA — Begin ── */
.hv2-cta { position: relative; overflow: hidden; padding: 160px 0; text-align: center; background: var(--bg); border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }
.hv2-cta-rule { position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(200,161,95,.6), transparent); }
.hv2-cta-glow { position: absolute; left: 50%; top: 50%; width: 720px; height: 720px; transform: translate(-50%,-50%); border-radius: 50%; background: radial-gradient(circle, rgba(200,161,95,.45) 0%, transparent 60%); filter: blur(80px); opacity: .22; pointer-events: none; }
.hv2-cta-inner { position: relative; z-index: 1; max-width: 900px; margin: 0 auto; padding: 0 24px; }
.hv2-cta-heading { font-family: var(--font-serif); font-weight: 400; letter-spacing: 0; font-size: clamp(3rem, 8vw, 104px); line-height: 0.98; color: var(--text); margin: 30px 0; }
.hv2-cta-sub { color: rgba(244,240,231,.75); font-size: 1.08rem; line-height: 1.6; max-width: 34rem; margin: 0 auto 48px; }
.hv2-cta-actions { display: flex; align-items: center; justify-content: center; gap: 24px; flex-wrap: wrap; }
.hv2-cta-mail { font-size: 0.9rem; color: rgba(244,240,231,.7); text-decoration: underline; text-underline-offset: 4px; transition: color .2s; }
.hv2-cta-mail:hover { color: var(--gold); }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .hv2-section { padding: 96px 0; }
  .hv2-instruments-grid, .hv2-studio-grid { grid-template-columns: 1fr; gap: 44px; }
  .hv2-why-grid { grid-template-columns: repeat(2, 1fr); }
  .hv2-quotes { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .hv2-solutions-grid, .hv2-eco-grid { grid-template-columns: 1fr; }
  .hv2-head-split { grid-template-columns: 1fr; align-items: start; }
  .hv2-work-tile { grid-column: span 12 !important; aspect-ratio: 4/3 !important; }
  .hv2-studio-list { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .hv2-section-inner { padding: 0 20px; }
  .hv2-hero-content { padding: 120px 20px 88px; }
  .hv2-cta { padding: 110px 0; }
  .hv2-why-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   SMART PAGE — /smart. Reuses HOME V2 (hv2-*), ABOUT (about-cat-*, stat-card)
   and PRODUCT V2 (pv2-faq*) components as-is.

   The source design (the Lovable "Kerr Intelligent Spaces" page this is
   modelled on) deliberately alternates light and dark sections — only this
   page needs that; the rest of the storefront is intentionally all-dark
   (see the token block at the top of this file). `.smart-light` re-pins the
   same custom properties every reused hv2-, about- and pv2- component already
   reads (var(--text), var(--surface), var(--hairline), var(--gold)...) back
   to light values for its subtree — the same technique `.admin-wrapper`
   uses above to keep the admin panel light. Wrap a section in it and every
   component inside re-themes automatically; no per-component overrides.
   ========================================================================== */
.smart-automate-grid { grid-template-columns: repeat(4, 1fr); }

/* Ecosystem protocol cards ("Smart Ecosystems We Engineer With") — matches
   the source exactly: 2-col grid, last card (PLC) spans both columns, each
   card has a mark badge + name + tagline, then a 2-col split of labelled
   bullet lists (labels vary per protocol — Ideal for/Features, Compatible
   with/Best for, etc.). */
.smart-proto-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.smart-proto-card--wide { grid-column: span 2; }
.smart-proto-card {
  background: var(--surface); border: 1px solid var(--hairline); border-radius: 20px; padding: 44px;
  transition: transform .5s ease, box-shadow .5s ease, border-color .5s ease;
}
.smart-proto-card:hover { transform: translateY(-4px); border-color: rgba(169,121,58,.45); box-shadow: 0 24px 50px -28px rgba(0,0,0,.18); }
.smart-proto-mark {
  display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px;
  border: 1px solid var(--hairline); border-radius: 10px;
  font-family: 'IBM Plex Mono', ui-monospace, monospace; font-size: 0.68rem; letter-spacing: 0.15em; color: var(--text-gray);
}
.smart-proto-name { margin-top: 22px; font-size: 1.5rem; font-weight: 600; color: var(--text); }
.smart-proto-tagline { margin-top: 14px; max-width: 36rem; font-size: 0.92rem; line-height: 1.6; color: var(--text-gray); }
.smart-proto-cols { margin-top: 34px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.smart-proto-label { font-size: 0.68rem; font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase; color: var(--text-gray); }
.smart-proto-list { list-style: none; margin-top: 14px; display: flex; flex-direction: column; gap: 10px; }
.smart-proto-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 0.88rem; color: var(--text-mid); }
.smart-proto-list .smart-check-dot { margin-top: 7px; }
@media (max-width: 900px) {
  .smart-proto-grid { grid-template-columns: 1fr; }
  .smart-proto-card--wide { grid-column: span 1; }
}
@media (max-width: 560px) {
  .smart-proto-card { padding: 32px 26px; }
  .smart-proto-cols { grid-template-columns: 1fr; gap: 20px; }
}

/* The hero's headline here is two short phrases rather than home.php's
   single punchy line, and .hv2-hero-heading's own 16ch max-width forces a
   3rd wrapped line at that size — scaled down and widened so it reads as
   the intended 2 lines instead of dominating the whole viewport. */
.smart-hero .hv2-hero-heading { font-size: clamp(2.2rem, 5.2vw, 4.4rem); max-width: 22ch; margin-top: 20px; }
.smart-hero .hv2-hero-sub { font-size: 1rem; }
.smart-hero .hv2-hero-content { padding-top: 140px; padding-bottom: 110px; }
.smart-hero .hv2-hero-video { transition: opacity 2.5s ease; }

/* Live "Active Scene" panel — JS-driven (see the <script> at the end of the
   hero section), values cycle on a timer purely for visual interest. */
.smart-scene-panel {
  margin-top: 56px; width: 100%; max-width: 26rem;
  border: 1px solid var(--hairline); border-radius: 16px; padding: 28px;
  background: rgba(20,18,16,.6); backdrop-filter: blur(20px);
}
@media (min-width: 1024px) {
  .smart-scene-panel { position: absolute; right: 64px; bottom: 96px; margin-top: 0; width: 22rem; }
}
.smart-scene-head { display: flex; align-items: center; justify-content: space-between; }
.smart-scene-eyebrow { color: var(--text-gray); }
.smart-scene-status { display: flex; align-items: center; gap: 8px; font-size: 0.78rem; color: var(--success); }
.smart-scene-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--success); animation: smart-scene-blink 2.4s ease-in-out infinite; }
@keyframes smart-scene-blink { 0%, 100% { opacity: .3; } 50% { opacity: 1; } }
.smart-scene-name { margin-top: 16px; font-family: var(--font-serif); font-size: 1.7rem; color: var(--text); }
.smart-scene-meters { margin-top: 28px; display: flex; flex-direction: column; gap: 20px; }
.smart-meter-row { display: flex; align-items: center; justify-content: space-between; font-size: 0.9rem; }
.smart-meter-label { color: var(--text-gray); }
.smart-meter-value { font-family: 'IBM Plex Mono', ui-monospace, monospace; color: var(--text); }
.smart-meter-track { margin-top: 8px; height: 1px; width: 100%; background: var(--hairline); }
.smart-meter-fill { height: 1px; background: var(--gold-strong); transition: width 1.6s var(--ease-lux, ease); }
.smart-scene-dots { margin-top: 28px; display: flex; gap: 6px; }
.smart-scene-dot-btn { height: 2px; flex: 1; border-radius: 2px; background: var(--hairline); border: none; padding: 0; cursor: pointer; transition: background .7s; }
.smart-scene-dot-btn.active { background: var(--gold-strong); }

.smart-light {
  --bg:        #fbfaf7;
  --surface:   #ffffff;
  --surface-2: #f1efe9;
  --hairline:  rgba(180,140,80,.22);
  --text:      #2e2a26;
  --text-mid:  #5b5347;
  --text-gray: #83786a;
  --gold:      #a9793a;
  --border:    var(--hairline);
  --bg-light:  var(--surface);
  background: var(--bg);
  color: var(--text);
}
/* .hv2-why-item's background is a hardcoded dark literal (by design, for
   the dark "What We Automate" grid) — the one override needed to reuse the
   same grid for a light section (Services, below). */
.smart-light .hv2-why-item { background: #ffffff; }

/* Simple divider checklist (Intro's 3-point list) */
.smart-check-list { margin-top: 40px; display: flex; flex-direction: column; gap: 20px; }
.smart-check-list li { display: flex; gap: 16px; border-top: 1px solid var(--hairline); padding-top: 20px; font-size: 0.92rem; line-height: 1.6; color: var(--text-mid); }
.smart-check-dot { flex: 0 0 auto; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); margin-top: 8px; }

/* Pills (Services → Industries tag cloud) */
.smart-pill-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.smart-pill { display: inline-block; border: 1px solid var(--hairline); border-radius: 40px; padding: 10px 20px; font-size: 0.85rem; color: var(--text-gray); background: var(--surface); }

/* Why-Kerr comparison cards — the "KERR" card stays dark on purpose even
   inside a .smart-light section (matching the source's split card), so it
   uses literal colours rather than the tokens above. */
.smart-compare-card { border-radius: 20px; padding: 44px 40px; height: 100%; }
.smart-compare-card--ink { background: #17140f; border: 1px solid rgba(226,207,173,.14); }
.smart-compare-card--ink .smart-compare-title { color: var(--gold-strong); }
.smart-compare-card--ink li { color: #f4f0e7; border-bottom: 1px solid rgba(226,207,173,.14); }
.smart-compare-card--light { background: var(--surface); border: 1px solid var(--hairline); }
.smart-compare-card--light .smart-compare-title { color: var(--text-gray); }
.smart-compare-card--light li { color: var(--text-mid); border-bottom: 1px solid var(--hairline); }
.smart-compare-title { font-family: var(--font-serif); font-size: 1.1rem; letter-spacing: 0.1em; }
.smart-compare-list { list-style: none; margin-top: 32px; }
.smart-compare-list li { display: flex; align-items: center; gap: 14px; padding: 14px 0; font-size: 0.92rem; }
.smart-compare-list svg { width: 16px; height: 16px; flex-shrink: 0; }
.smart-compare-card--ink .smart-compare-list svg { color: var(--gold-strong); }
.smart-compare-card--light .smart-compare-list svg { color: var(--text-gray); opacity: .6; }
.smart-compare-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }

@media (max-width: 900px) {
  .smart-compare-grid { grid-template-columns: 1fr; }
}

/* Intro — near-even two-column split (copy slightly wider than image),
   matching the source's 1.05fr/1fr grid rather than the site's own
   5fr/7fr .hv2-instruments-grid convention. */
.smart-intro-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: center; }
.smart-intro-media img { width: 100%; border-radius: 16px; object-fit: cover; box-shadow: 0 28px 60px -28px rgba(0,0,0,.28); }
@media (max-width: 1024px) { .smart-intro-grid { grid-template-columns: 1fr; gap: 44px; } }

/* Automate grid cards — hover state the source has (card lightens, icon
   lifts) that the site's own dark Why-Kerr grid never needed. Scoped to
   .smart-automate-item so home.php's grid is untouched. */
.smart-automate-item { transition: background .5s ease; }
.smart-automate-item:hover { background: #201c17; }
.smart-light .smart-automate-item:hover { background: var(--surface-2); }
.smart-automate-item:hover .hv2-why-icon { transform: translateY(-2px); }
.hv2-why-icon { transition: transform .5s ease; }

/* Networking vendor cards — chip row for the stack list */
/* Vendor logo on the networking cards — white SVG, sits above the name.
   Per-brand height because the two marks have very different proportions. */
.smart-net-logo { display: block; width: auto; margin-bottom: 22px; opacity: .9; }
.smart-net-logo--cisco { height: 44px; }
.smart-net-logo--ubiquiti { height: 40px; }
.smart-chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 36px; }
.smart-chip { border: 1px solid var(--hairline); border-radius: 40px; padding: 6px 14px; font-size: 0.75rem; color: var(--text-gray); }

/* "Why Networking Matters" infographic */
.smart-flow-panel { margin-top: 96px; border: 1px solid var(--hairline); border-radius: 20px; padding: 40px; background: rgba(20,18,16,.4); backdrop-filter: blur(20px); }
.smart-flow-heading { margin-top: 20px; max-width: 42rem; font-family: var(--font-sans); font-weight: 700; letter-spacing: -0.02em; font-size: clamp(1.9rem, 3.4vw, 2.6rem); line-height: 1.12; color: var(--text); }
.smart-flow-chain { margin-top: 48px; list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px 40px; }
.smart-flow-chain li { display: flex; align-items: center; gap: 20px; padding: 12px 0; }
.smart-flow-num { font-family: 'IBM Plex Mono', ui-monospace, monospace; font-size: 0.68rem; color: rgba(162,154,139,.7); }
.smart-flow-track { position: relative; width: 1px; height: 40px; background: var(--hairline); overflow: hidden; flex-shrink: 0; }
.smart-flow-dot { position: absolute; left: 0; right: 0; height: 50%; background: var(--gold-strong); animation: smart-flow-down 2.6s linear infinite; }
@keyframes smart-flow-down { 0% { transform: translateY(-100%); opacity: 0; } 30% { opacity: 1; } 100% { transform: translateY(100%); opacity: 0; } }
.smart-flow-label { font-size: 1rem; color: var(--text); }
.smart-flow-note { margin-top: 40px; max-width: 48rem; border-top: 1px solid var(--hairline); padding-top: 32px; font-size: 0.88rem; line-height: 1.6; color: var(--text-gray); }
@media (max-width: 700px) { .smart-flow-chain { grid-template-columns: 1fr; } }

/* Industries pills — hover state the source has */
.smart-pill { transition: border-color .5s ease, color .5s ease; }
.smart-pill:hover { border-color: rgba(46,42,38,.4); color: var(--text); }

/* Process — horizontal connected timeline (dot + line per step, scrolls if
   it overflows), not a wrapped chip list. Dot turns gold on hover. */
.smart-process-scroll { margin-top: 64px; overflow-x: auto; padding-bottom: 8px; }
.smart-process-track { display: flex; align-items: stretch; gap: 0; margin: 0 auto; max-width: 1400px; min-width: max-content; padding: 0 40px; list-style: none; }
.smart-process-step { position: relative; width: 224px; flex-shrink: 0; padding-right: 24px; }
.smart-process-line-row { display: flex; align-items: center; }
.smart-process-dot { width: 10px; height: 10px; border-radius: 50%; border: 1px solid var(--hairline); background: var(--bg); flex-shrink: 0; transition: background .5s ease, border-color .5s ease; }
.smart-process-line { height: 1px; flex: 1; background: var(--hairline); }
.smart-process-step:hover .smart-process-dot { background: var(--gold-strong); border-color: var(--gold-strong); }
.smart-process-num { margin-top: 24px; font-family: 'IBM Plex Mono', ui-monospace, monospace; font-size: 0.68rem; color: var(--text-gray); }
.smart-process-label { margin-top: 8px; padding-right: 16px; font-size: 1rem; line-height: 1.3; color: var(--text); }
@media (max-width: 640px) { .smart-process-track { padding: 0 20px; } }

/* Flat section header — plain gray eyebrow (no gold dash) + bold sans
   display heading, used by Featured Categories and FAQ. Distinct from
   .hv2-eyebrow/.hv2-h2's gold-accented serif treatment used everywhere
   else on this page — these two sections use the source's plainer look. */
.smart-flat-eyebrow { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--text-gray); }
.smart-flat-heading { margin-top: 18px; font-family: var(--font-sans); font-weight: 700; letter-spacing: -0.02em; font-size: clamp(2.1rem, 4.2vw, 3.4rem); line-height: 1.05; color: var(--text); max-width: 16ch; }
.smart-flat-lead { margin-top: 20px; color: var(--text-gray); font-size: 1rem; line-height: 1.6; max-width: 34rem; }

/* Featured Product Categories — plain numbered cards, no imagery. Prev/next
   arrows stay for visual parity with the source but are always disabled:
   only 3 fixed categories, nothing to page through. */
.smart-carousel-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; }
.smart-carousel-nav { display: flex; gap: 8px; }
.smart-carousel-btn { width: 44px; height: 44px; border: 1px solid var(--hairline); border-radius: 50%; display: flex; align-items: center; justify-content: center; background: transparent; color: var(--text); cursor: pointer; transition: border-color .3s ease, background .3s ease, opacity .3s ease; }
.smart-carousel-btn:hover { border-color: var(--gold-strong); background: rgba(169,121,58,.08); }
.smart-carousel-btn:disabled { opacity: .35; cursor: default; }
.smart-carousel-btn:disabled:hover { border-color: var(--hairline); background: transparent; }
.smart-carousel-btn svg { width: 18px; height: 18px; }
.smart-cat-grid { margin-top: 56px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 1180px) { .smart-cat-grid { grid-template-columns: repeat(2, 1fr); } }
.smart-cat-card {
  display: flex; flex-direction: column; justify-content: space-between; min-height: 320px;
  background: var(--surface); border: 1px solid var(--hairline); border-radius: 20px; padding: 40px 32px;
  transition: transform .5s ease, border-color .5s ease;
}
.smart-cat-card:hover { transform: translateY(-4px); border-color: rgba(169,121,58,.4); }
.smart-cat-num { font-family: 'IBM Plex Mono', ui-monospace, monospace; font-size: 0.72rem; letter-spacing: 0.08em; color: var(--text-gray); }
.smart-cat-title { font-size: 1.55rem; font-weight: 700; color: var(--text); }
.smart-cat-tagline { margin-top: 14px; font-size: 0.92rem; line-height: 1.55; color: var(--text-gray); }
@media (max-width: 900px) { .smart-cat-grid { grid-template-columns: 1fr; } }

/* FAQ — split layout: heading/lead pinned left, a single-column list of
   rows on the right (question + chevron, hairline divider under each),
   not a grid of boxed cards. Smooth single-open accordion (grid-rows
   collapse trick) via the toggle event in smart.php. */
.smart-faq-grid { display: grid; grid-template-columns: 0.85fr 1.4fr; gap: 64px; align-items: start; }
.smart-faq-head { position: sticky; top: 160px; }
.smart-faq-list { display: flex; flex-direction: column; }
.smart-faq-row { border-bottom: 1px solid var(--hairline); padding: 26px 0; }
.smart-faq-row summary {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  cursor: pointer; list-style: none; font-size: 1.05rem; font-weight: 600; color: var(--text);
}
.smart-faq-row summary::-webkit-details-marker { display: none; }
.smart-faq-chevron { width: 20px; height: 20px; flex-shrink: 0; color: var(--text-gray); transition: transform .3s ease; }
.smart-faq-row[open] .smart-faq-chevron { transform: rotate(180deg); }
.smart-faq-row .smart-faq-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .4s ease; margin-top: 0; }
.smart-faq-row[open] .smart-faq-body { grid-template-rows: 1fr; margin-top: 16px; }
.smart-faq-row .smart-faq-body > p { overflow: hidden; font-size: 0.92rem; line-height: 1.65; color: var(--text-mid); }
@media (max-width: 900px) {
  .smart-faq-grid { grid-template-columns: 1fr; gap: 32px; }
  .smart-faq-head { position: static; }
}

/* Final CTA — floating rounded glow card on a light section, not a
   full-bleed dark band. Re-pins --text/--gold back to their dark-theme
   values locally (same trick .smart-light itself uses) so every reused
   hv2-* component inside (heading, ghost button, eyebrow) reads correctly
   against this card's dark background instead of the ancestor .smart-light
   section's light-theme text colour. */
.smart-final-cta {
  --text: #f4f0e7;
  --gold: #e2cfad;
  position: relative; overflow: hidden; border-radius: 24px; background: #17140f; padding: 96px 40px; text-align: center;
}
.smart-final-cta-glow { position: absolute; left: 50%; top: 0; transform: translateX(-50%); width: 130%; height: 100%; background: radial-gradient(ellipse at 50% 0%, rgba(200,161,95,.22), transparent 65%); pointer-events: none; }
@media (max-width: 640px) { .smart-final-cta { padding: 64px 24px; } }

/* ==========================================================================
   PRODUCT V2 — single-product page preview (/smart-curtain-system), "pv2-" namespaced
   so it cannot affect the live /product/{slug} template.
   ========================================================================== */

.pv2-page { max-width: 1240px; margin: 0 auto; }

/* ── Hero ── */
.pv2-hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; margin-bottom: 88px; }

/* align-items:flex-start stops the main image being stretched vertically to
   match a tall thumbnail column, so aspect-ratio:1/1 stays a true square. The
   thumb strip is capped to the image height (via JS) and scrolls. */
.pv2-gallery { display: flex; flex-direction: row; gap: 14px; align-items: flex-start; }
.pv2-gallery-thumbs { display: flex; flex-direction: column; gap: 10px; width: 72px; flex-shrink: 0; overflow-y: auto; scrollbar-width: none; -ms-overflow-style: none; }
.pv2-gallery-thumbs::-webkit-scrollbar { display: none; width: 0; }
.pv2-thumb {
  aspect-ratio: 1; flex-shrink: 0; border-radius: 10px; overflow: hidden; background: var(--bg-light);
  border: 2px solid transparent; padding: 0; cursor: pointer; transition: border-color .2s;
}
.pv2-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pv2-thumb.active, .pv2-thumb:hover { border-color: var(--blue); }

.pv2-gallery-main {
  position: relative; flex: 1; min-width: 0; aspect-ratio: 1/1; border-radius: 16px; overflow: hidden;
  background: var(--bg-light); border: 1px solid var(--border);
}
.pv2-gallery-main img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.pv2-badge-new {
  position: absolute; top: 16px; left: 16px; z-index: 1;
  background: var(--gold-strong); color: var(--gold-ink); font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.5px; text-transform: uppercase; padding: 5px 12px; border-radius: 20px;
}
.pv2-zoom-controls {
  position: absolute; bottom: 14px; right: 14px; z-index: 1;
  display: flex; background: var(--surface); border-radius: 20px; box-shadow: 0 4px 16px rgba(0,0,0,.12);
  overflow: hidden;
}
.pv2-zoom-controls button {
  width: 34px; height: 34px; border: none; background: none; cursor: pointer;
  font-size: 1.1rem; color: var(--text-mid); transition: background .15s, color .15s;
}
.pv2-zoom-controls button:hover { background: var(--bg-light); color: var(--blue); }
.pv2-zoom-controls button:first-child { border-right: 1px solid var(--border); }

.pv2-title { font-size: 2.1rem; font-weight: 700; letter-spacing: -0.5px; line-height: 1.15; margin-bottom: 12px; }
.pv2-desc { font-size: 0.95rem; color: var(--text-mid); line-height: 1.65; margin-bottom: 18px; max-width: 46ch; }

.pv2-eco-pills { display: flex; gap: 8px; margin-bottom: 22px; }
.pv2-pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.76rem; font-weight: 600; color: var(--gold); background: var(--surface-2);
  border: 1px solid var(--hairline); border-radius: 20px; padding: 5px 14px 5px 10px;
}
.pv2-pill-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.pv2-pill-dot--zigbee  { background: #7C3AED; }
.pv2-pill-dot--matter  { background: var(--blue); }
.pv2-pill-dot--dali    { background: #16A34A; }
.pv2-pill-dot--generic { background: var(--gold); }

.pv2-price-block { margin-bottom: 16px; }
.pv2-price-label { display: block; font-size: 0.8rem; color: var(--text-gray); margin-bottom: 2px; }
.pv2-price { font-size: 2rem; font-weight: 700; color: var(--text); }
.pv2-price-note { font-size: 0.8rem; color: var(--text-gray); margin-top: 4px; }

.pv2-rating { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; }
.pv2-rating .stars { display: flex; gap: 2px; color: var(--border); }
.pv2-rating .stars svg { width: 16px; height: 16px; }
.pv2-rating .stars svg.filled { color: #F5A623; }
.pv2-rating-count { font-size: 0.85rem; color: var(--text-gray); }

.pv2-workswith { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.pv2-workswith-chip {
  font-size: 0.76rem; font-weight: 500; color: var(--text-mid); background: var(--bg-light);
  border: 1px solid var(--border); border-radius: 20px; padding: 6px 12px;
}

.pv2-cta-row { display: flex; gap: 14px; margin-bottom: 18px; flex-wrap: wrap; }
.pv2-meta-links { display: flex; gap: 20px; }

/* ── Sticky add-to-cart bar (mobile-app style) ── */
.sticky-cart-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: flex; align-items: center; gap: 14px;
  padding: 10px 20px; background: var(--surface); border-top: 1px solid var(--hairline);
  box-shadow: 0 -8px 24px rgba(0,0,0,.25);
  transform: translateY(100%); opacity: 0; pointer-events: none;
  transition: transform .25s ease, opacity .25s ease;
}
.sticky-cart-bar.visible { transform: translateY(0); opacity: 1; pointer-events: auto; }
.sticky-cart-thumb { flex: 0 0 auto; width: 44px; height: 44px; border-radius: 8px; overflow: hidden; background: var(--bg-light); }
.sticky-cart-thumb img { width: 100%; height: 100%; object-fit: cover; }
.sticky-cart-info { flex: 0 1 auto; min-width: 0; }
.sticky-cart-name {
  font-size: 0.82rem; font-weight: 600; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 220px;
}
.sticky-cart-price { font-size: 0.85rem; font-weight: 700; color: var(--gold); }
.sticky-cart-variants { display: flex; gap: 8px; overflow-x: auto; flex: 1 1 auto; scrollbar-width: none; }
.sticky-cart-variants::-webkit-scrollbar { display: none; }
.sticky-cart-variants .variant-option { padding: 6px 14px; font-size: 0.75rem; white-space: nowrap; flex: 0 0 auto; }
.sticky-cart-qty {
  display: flex; align-items: center; gap: 8px; flex: 0 0 auto;
  border: 1px solid var(--border); border-radius: 20px; padding: 4px 6px;
}
.sticky-cart-qty .qty-btn { width: 26px; height: 26px; font-size: 0.95rem; }
.sticky-cart-qty span { min-width: 16px; text-align: center; font-size: 0.85rem; color: var(--text); }
.sticky-cart-btn { flex: 0 0 auto; padding: 10px 22px; font-size: 0.85rem; white-space: nowrap; }

@media (max-width: 720px) {
  .sticky-cart-info { display: none; }
  .sticky-cart-variants { order: 1; flex-basis: 100%; margin-top: 8px; }
  .sticky-cart-bar { flex-wrap: wrap; }
}

/* ── Why choose Kerr ── */
.pv2-why { padding: 72px 0; border-top: 1px solid var(--border); }
.pv2-why-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 24px; }
.pv2-why-item { text-align: center; }
.pv2-why-icon {
  width: 52px; height: 52px; margin: 0 auto 16px; border-radius: 14px;
  background: var(--bg-light); color: var(--blue);
  display: flex; align-items: center; justify-content: center;
}
.pv2-why-icon svg { width: 24px; height: 24px; }
.pv2-why-item h3 { font-size: 0.9rem; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.pv2-why-item p { font-size: 0.8rem; line-height: 1.5; color: var(--text-gray); }

/* ── Product overview ── */
.pv2-overview {
  display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 48px; align-items: center;
  padding: 72px 0; border-top: 1px solid var(--border);
}
.pv2-overview-text .section-heading { font-size: 2.1rem; margin-bottom: 16px; }
.pv2-overview-text p { color: var(--text-mid); line-height: 1.72; font-size: 0.97rem; }
.pv2-overview-img { border-radius: 16px; overflow: hidden; aspect-ratio: 16/9; }
.pv2-overview-img img { width: 100%; height: 100%; object-fit: cover; }

/* ── Ecosystem selector ── */
.pv2-ecosystem { padding: 72px 0; border-top: 1px solid var(--border); }
.pv2-ecosystem .section-heading { margin-bottom: 6px; }
.pv2-ecosystem-sub { color: var(--text-gray); font-size: 0.92rem; margin-bottom: 28px; }
.pv2-eco-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 18px; margin-bottom: 20px; }
.pv2-eco-card {
  position: relative; display: flex; flex-direction: column; gap: 6px;
  border: 1.5px solid var(--border); border-radius: 14px; padding: 20px 22px; cursor: pointer;
  transition: border-color .2s, background .2s;
}
.pv2-eco-card input { position: absolute; opacity: 0; }
.pv2-eco-icon {
  width: 36px; height: 36px; border-radius: 10px; background: var(--bg-light); color: var(--blue);
  display: flex; align-items: center; justify-content: center; margin-bottom: 4px;
}
.pv2-eco-icon svg { width: 19px; height: 19px; }
.pv2-eco-card strong { font-size: 1.05rem; color: var(--text); }
.pv2-eco-tag { font-size: 0.8rem; color: var(--text-gray); }
.pv2-eco-check {
  position: absolute; top: 16px; right: 16px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--gold-strong); color: var(--gold-ink); font-size: 0.7rem; display: flex; align-items: center; justify-content: center;
  opacity: 0; transform: scale(0.6); transition: opacity .15s, transform .15s;
}
.pv2-eco-card:has(input:checked) { border-color: var(--gold); background: var(--surface-2); }
.pv2-eco-card:has(input:checked) .pv2-eco-check { opacity: 1; transform: scale(1); }
.pv2-eco-card:has(input:checked) .pv2-eco-icon { background: var(--gold-strong); color: var(--gold-ink); }
.pv2-eco-help { font-size: 0.88rem; color: var(--text-gray); }
.pv2-eco-help a { color: var(--blue); font-weight: 500; }

/* ── Technical specifications ── */
.pv2-specs { padding: 72px 0; border-top: 1px solid var(--border); }
.pv2-specs-collapse summary {
  cursor: pointer; list-style: none; margin-bottom: 28px;
  display: flex; align-items: center; justify-content: space-between;
}
.pv2-specs-collapse summary::-webkit-details-marker { display: none; }
.pv2-specs-collapse summary::after {
  content: ''; width: 12px; height: 12px; flex-shrink: 0;
  border-right: 2px solid var(--text-gray); border-bottom: 2px solid var(--text-gray);
  transform: rotate(45deg); transition: transform .2s; margin-left: 16px;
}
.pv2-specs-collapse[open] summary::after { transform: rotate(-135deg); }
.pv2-specs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 48px; background: var(--bg-light); border-radius: 16px; padding: 8px 32px; }
.pv2-specs-empty { grid-column: 1 / -1; padding: 24px 0; color: var(--text-gray); font-size: 0.9rem; }
.pv2-specs-col div {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 15px 0; border-bottom: 1px solid var(--border);
}
.pv2-specs-col div:last-child { border-bottom: none; }
.pv2-specs-col dt { font-size: 0.88rem; color: var(--text-gray); }
.pv2-specs-col dd { font-size: 0.88rem; font-weight: 600; color: var(--text); text-align: right; }

/* ── Compatibility ── */
.pv2-compat { padding: 40px 0; border-top: 1px solid var(--border); }
.pv2-compat-heading {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 2px; text-transform: uppercase;
  color: var(--text-gray); margin-bottom: 18px;
}
.pv2-compat-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  background: var(--bg-light); border-radius: 14px; padding: 18px 24px;
}
.pv2-compat-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.pv2-compat-chip {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.85rem; font-weight: 500; color: var(--text-mid); background: var(--surface);
  border: 1px solid var(--border); border-radius: 20px; padding: 8px 18px;
}
.pv2-compat-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--blue); flex-shrink: 0; }
.pv2-compat-note { font-size: 0.76rem; color: var(--text-gray); white-space: nowrap; }

/* ── Recommended products ── */
.pv2-recommended { padding: 72px 0; border-top: 1px solid var(--border); }
.pv2-recommended .section-heading { margin-bottom: 28px; }
.pv2-recommended-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.pv2-rec-card {
  background: var(--bg-light); border-radius: 14px; padding: 26px 20px; text-align: center;
}
.pv2-rec-icon {
  width: 56px; height: 56px; margin: 0 auto 16px; border-radius: 12px; background: var(--surface);
  border: 1px solid var(--border); color: var(--blue);
  display: flex; align-items: center; justify-content: center;
}
.pv2-rec-icon svg { width: 26px; height: 26px; }
.pv2-rec-card h3 { font-size: 0.85rem; font-weight: 600; color: var(--text); line-height: 1.4; margin-bottom: 8px; min-height: 2.8em; }
.pv2-rec-price { font-size: 0.9rem; font-weight: 700; color: var(--blue); }

/* ── Installation requirements ── */
.pv2-install { padding: 72px 0; border-top: 1px solid var(--border); }
.pv2-install .section-heading { margin-bottom: 28px; }
.pv2-install-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 18px; }
.pv2-install-item {
  display: flex; flex-direction: column; align-items: flex-start; gap: 12px;
  background: var(--bg-light); border-radius: 14px; padding: 20px;
}
.pv2-install-item svg { width: 24px; height: 24px; color: var(--blue); }
.pv2-install-item strong { display: block; font-size: 0.86rem; color: var(--text); margin-bottom: 2px; }
.pv2-install-item span { font-size: 0.8rem; color: var(--text-gray); }

/* ── FAQ ── */
.pv2-faq { padding: 72px 0; border-top: 1px solid var(--border); }
.pv2-faq .section-heading { margin-bottom: 28px; }
.pv2-faq-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 14px 24px; }
.pv2-faq-item {
  border: 1px solid var(--border); border-radius: 12px; padding: 16px 20px; background: var(--surface);
}
.pv2-faq-item summary {
  cursor: pointer; font-size: 0.92rem; font-weight: 600; color: var(--text);
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.pv2-faq-item summary::-webkit-details-marker { display: none; }
.pv2-faq-item summary::after { content: '+'; font-size: 1.2rem; color: var(--blue); flex-shrink: 0; }
.pv2-faq-item[open] summary::after { content: '\2212'; }
.pv2-faq-item p { font-size: 0.86rem; color: var(--text-mid); line-height: 1.6; margin-top: 12px; }

/* ── Customer support ── */
.pv2-support { padding: 64px 0 88px; border-top: 1px solid var(--border); text-align: center; }
.pv2-support h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 8px; }
.pv2-support > p { color: var(--text-gray); font-size: 0.92rem; margin-bottom: 32px; }
.pv2-support-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.pv2-support-card {
  display: flex; align-items: center; gap: 14px; text-align: left;
  background: var(--bg-light); border-radius: 14px; padding: 20px 22px; transition: background .2s;
}
.pv2-support-card:hover { background: var(--surface-2); }
.pv2-support-card svg { width: 22px; height: 22px; color: var(--blue); flex-shrink: 0; }
.pv2-support-card strong { display: block; font-size: 0.9rem; color: var(--text); }
.pv2-support-card span { font-size: 0.8rem; color: var(--text-gray); }

@media (max-width: 1120px) {
  .pv2-hero { grid-template-columns: 1fr; gap: 32px; }
  .pv2-why-grid { grid-template-columns: repeat(3, 1fr); gap: 24px 16px; }
  .pv2-overview { grid-template-columns: 1fr; gap: 28px; }
  .pv2-recommended-grid, .pv2-install-grid { grid-template-columns: repeat(2, 1fr); }
  .pv2-eco-cards { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .pv2-gallery { flex-direction: column-reverse; }
  .pv2-gallery-thumbs { flex-direction: row; width: auto; }
  .pv2-thumb { flex: 1; }
  .pv2-compat-bar { flex-direction: column; align-items: flex-start; }
  .pv2-why-grid { grid-template-columns: repeat(2, 1fr); }
  .pv2-specs-grid { grid-template-columns: 1fr; }
  .pv2-recommended-grid, .pv2-install-grid, .pv2-faq-grid, .pv2-support-grid { grid-template-columns: 1fr; }
  .pv2-title { font-size: 1.7rem; }
  .pv2-price { font-size: 1.6rem; }
}

/* ==========================================================================
   DISPLAY TYPEFACE
   Instrument Serif for headings — the serif/sans pairing that gives the
   black-and-gold theme its architectural-luxury feel. Placed last so it wins
   over the weight/letter-spacing set in each heading's own rule. Body copy
   and UI text stay on Inter.
   ========================================================================== */
.hero-heading, .page-hero-title, .section-heading, .product-title,
.auth-title, .hv2-hero-heading, .hv2-heading-light, .hv2-cta h2,
.pv2-title, .error-code, .error-heading, .account-header h1 {
  font-family: var(--font-serif);
  font-weight: 400;
  letter-spacing: 0;
}

/* ==========================================================================
   SMART CURTAIN SYSTEM — /smart-curtain-system. A ported 1:1 design from an
   external reference build (colours, spacing, type scale, motion), not an
   original design here — every value below is a direct translation of that
   reference's tokens, not a judgement call. "kcs-" namespaced so nothing
   here can leak into the rest of the storefront. Own colour tokens (in
   oklch, matching the reference exactly) rather than reusing --gold/--bg/
   etc., because the reference's palette is numerically different from this
   site's own black-and-gold tokens, even though both read as "ink + gold".
   Headings/body intentionally stay on this site's own Instrument Serif /
   Inter (the reference uses Sora/Manrope) — a deliberate exception to the
   "exact port" rule, so this page still reads as part of the Kerr site.
   ========================================================================== */
.kcs-page {
  --kcs-radius: 0.25rem;
  --kcs-bg: oklch(0.985 0.004 90);
  --kcs-fg: oklch(0.17 0.006 60);
  --kcs-card: oklch(1 0 0);
  --kcs-muted: oklch(0.955 0.008 85);
  --kcs-muted-fg: oklch(0.52 0.012 70);
  --kcs-border: oklch(0.9 0.008 80);
  --kcs-ink: oklch(0.145 0.005 60);
  --kcs-ink-fg: oklch(0.97 0.004 88);
  --kcs-gold: oklch(0.78 0.078 82);
  --kcs-gold-fg: oklch(0.16 0.006 60);
  --kcs-hairline: oklch(0.89 0.008 80);
  --kcs-hairline-dark: oklch(1 0 0 / 12%);
  --kcs-sand: oklch(0.955 0.012 84);
  --kcs-gradient-gold: linear-gradient(100deg, oklch(0.72 0.07 76), oklch(0.9 0.05 88), oklch(0.76 0.08 80));
  --kcs-gradient-ink: linear-gradient(170deg, oklch(0.19 0.006 62), oklch(0.13 0.005 60));
  --kcs-shadow-lift: 0 24px 60px -28px oklch(0.16 0.006 60 / 45%);
  --kcs-shadow-gold: 0 20px 50px -24px oklch(0.78 0.078 82 / 55%);
  --kcs-ease: cubic-bezier(0.22, 1, 0.36, 1);
  background: var(--kcs-bg);
  color: var(--kcs-fg);
  font-family: var(--font-sans);
}
.kcs-page * { box-sizing: border-box; }

/* ── Layout / type primitives ── */
.kcs-shell { width: 100%; max-width: 84rem; margin-inline: auto; padding-inline: 1.5rem; }
@media (min-width: 1024px) { .kcs-shell { padding-inline: 3rem; } }
.kcs-heading { font-family: var(--font-serif); font-weight: 400; letter-spacing: -0.01em; color: inherit; margin: 0; }
.kcs-eyebrow { font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--kcs-muted-fg); }
.kcs-eyebrow--gold { color: var(--kcs-gold); font-size: 0.6875rem; }
.kcs-gold-text { background-image: var(--kcs-gradient-gold); -webkit-background-clip: text; background-clip: text; color: transparent; }
.kcs-gold-rule { display: block; height: 1px; width: 3.5rem; background-image: var(--kcs-gradient-gold); }
.kcs-section-head { max-width: 48rem; }
.kcs-section-head--center { margin-inline: auto; text-align: center; }
.kcs-section-title { margin-top: 1.25rem; line-height: 1.06; font-size: clamp(2.25rem, 4vw, 3rem); }
.kcs-section-title--light { color: var(--kcs-ink-fg); }
.kcs-section-lead { margin-top: 1.25rem; font-size: 1rem; line-height: 1.65; max-width: 36rem; color: var(--kcs-muted-fg); }
.kcs-section-lead--light { color: rgba(255,255,255,.55); }
.kcs-section-head--center .kcs-section-lead { margin-inline: auto; }

/* ── Buttons ── */
.kcs-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 1rem 1.75rem; border-radius: var(--kcs-radius); border: 1px solid transparent;
  transition: all .35s var(--kcs-ease); cursor: pointer; white-space: nowrap;
}
.kcs-btn-gold { background-image: var(--kcs-gradient-gold); color: var(--kcs-gold-fg); }
.kcs-btn-gold:hover { box-shadow: var(--kcs-shadow-gold); transform: translateY(-2px); }
.kcs-btn-ink { background: var(--kcs-ink); color: var(--kcs-ink-fg); }
.kcs-btn-ink:hover { box-shadow: var(--kcs-shadow-lift); transform: translateY(-2px); }
.kcs-btn-outline-light { border-color: rgba(255,255,255,.4); color: #fff; backdrop-filter: blur(6px); }
.kcs-btn-outline-light:hover { border-color: var(--kcs-gold); color: var(--kcs-gold); }
.kcs-btn-outline-ink { border-color: var(--kcs-hairline); color: var(--kcs-fg); }
.kcs-btn-outline-ink:hover { border-color: var(--kcs-gold); color: var(--kcs-gold-fg); background: var(--kcs-sand); }

/* ── Panels / selectors / fields ── */
.kcs-panel {
  background: var(--kcs-card); border: 1px solid var(--kcs-hairline);
  transition: border-color .4s var(--kcs-ease), box-shadow .4s var(--kcs-ease), transform .4s var(--kcs-ease);
}
.kcs-panel:hover { border-color: color-mix(in oklab, var(--kcs-gold) 55%, transparent); box-shadow: var(--kcs-shadow-lift); transform: translateY(-4px); }
.kcs-panel-dark { background: rgba(255,255,255,.04); border: 1px solid var(--kcs-hairline-dark); transition: all .4s var(--kcs-ease); }
.kcs-panel-dark:hover { border-color: color-mix(in oklab, var(--kcs-gold) 55%, transparent); background: rgba(255,255,255,.07); }
.kcs-selector {
  text-align: left; width: 100%; border: 1px solid var(--kcs-hairline); background: var(--kcs-card);
  padding: 1.25rem; border-radius: var(--kcs-radius); transition: all .35s var(--kcs-ease); cursor: pointer; font: inherit; color: inherit;
}
.kcs-selector:hover { border-color: color-mix(in oklab, var(--kcs-gold) 60%, transparent); }
.kcs-selector.is-active { border-color: var(--kcs-gold); box-shadow: inset 0 0 0 1px var(--kcs-gold); background: color-mix(in oklab, var(--kcs-gold) 10%, var(--kcs-card)); }
.kcs-selector-dark {
  text-align: left; width: 100%; border: 1px solid var(--kcs-hairline-dark); background: rgba(255,255,255,.03);
  padding: 1rem 1.125rem; border-radius: var(--kcs-radius); color: var(--kcs-ink-fg);
  transition: all .35s var(--kcs-ease); cursor: pointer; font: inherit;
}
.kcs-selector-dark:hover { border-color: color-mix(in oklab, var(--kcs-gold) 60%, transparent); background: rgba(255,255,255,.06); }
.kcs-selector-dark.is-active { border-color: var(--kcs-gold); box-shadow: inset 0 0 0 1px var(--kcs-gold); background: color-mix(in oklab, var(--kcs-gold) 14%, transparent); }
.kcs-selector-dark--auto { width: auto; padding-inline: 1.25rem; }
.kcs-field-dark {
  width: 100%; background: rgba(255,255,255,.04); border: 1px solid var(--kcs-hairline-dark); color: var(--kcs-ink-fg);
  padding: 0.9rem 1rem; border-radius: var(--kcs-radius); outline: none; font-family: inherit; font-size: 0.9rem;
  transition: border-color .3s var(--kcs-ease);
}
.kcs-field-dark:focus { border-color: var(--kcs-gold); }
.kcs-field-dark::placeholder { color: rgba(255,255,255,.35); }

/* ── Curtain draw animation (Runner section demo) ── */
@keyframes kcs-draw {
  0%, 8%   { transform: translateX(0); }
  46%, 58% { transform: translateX(var(--kcs-draw-x, -86%)); }
  96%, 100% { transform: translateX(0); }
}
.kcs-curtain-left  { animation: kcs-draw 9s var(--kcs-ease) infinite; --kcs-draw-x: -86%; }
.kcs-curtain-right { animation: kcs-draw 9s var(--kcs-ease) infinite; --kcs-draw-x: 86%; }

/* ── Section rhythm ── */
.kcs-section { padding: 96px 0; }
@media (min-width: 1024px) { .kcs-section { padding: 128px 0; } }
.kcs-section--bg { background: var(--kcs-bg); }
.kcs-section--sand { background: var(--kcs-sand); }
.kcs-section--ink { background: var(--kcs-ink); color: var(--kcs-ink-fg); }

/* ── Hero ── */
.kcs-hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; }
.kcs-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.kcs-hero-overlay-1 { position: absolute; inset: 0; background: linear-gradient(to top, oklch(0.145 0.005 60 / 95%), oklch(0.145 0.005 60 / 50%) 55%, transparent); }
.kcs-hero-overlay-2 { position: absolute; inset: 0; background: linear-gradient(to right, oklch(0.145 0.005 60 / 80%), transparent); }
.kcs-hero-inner { position: relative; z-index: 2; padding: 112px 0 56px; width: 100%; }
.kcs-breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 0.625rem; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(255,255,255,.6); }
.kcs-breadcrumb a { color: inherit; transition: color .2s; }
.kcs-breadcrumb a:hover { color: var(--kcs-gold); }
.kcs-breadcrumb svg { width: 11px; height: 11px; opacity: .5; }
.kcs-breadcrumb .kcs-current { color: var(--kcs-gold); }
/* Sized down from the reference so the headline stays two lines and the sub,
   CTAs and trust row all clear the first viewport on a laptop — same restraint
   as the home hero. */
.kcs-hero-h1 { color: var(--kcs-ink-fg); margin-top: 20px; max-width: 56rem; font-size: clamp(2.3rem, 4.4vw, 4.25rem); line-height: 0.98; font-weight: 300; }
.kcs-hero-h1 span { display: block; }
.kcs-hero-sub { color: rgba(255,255,255,.7); margin-top: 24px; max-width: 36rem; font-size: 1rem; line-height: 1.65; }
@media (min-width: 1024px) { .kcs-hero-sub { font-size: 1.125rem; } }
.kcs-hero-ctas { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 16px; }
.kcs-hero-trust { margin-top: 32px; display: grid; gap: 24px; border-top: 1px solid var(--kcs-hairline-dark); padding-top: 24px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .kcs-hero-trust { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .kcs-hero-trust { grid-template-columns: repeat(4, 1fr); } }
.kcs-hero-trust-item { display: flex; align-items: center; gap: 12px; }
.kcs-hero-trust-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--kcs-gold); flex-shrink: 0; }
.kcs-hero-trust-label { color: rgba(255,255,255,.7); font-size: 0.625rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; }

/* ── Intro + Exploded diagram ── */
.kcs-intro-grid { display: grid; gap: 64px; align-items: start; }
@media (min-width: 1024px) { .kcs-intro-grid { grid-template-columns: 1fr 1.05fr; } }
.kcs-intro-quote { margin-top: 32px; border-left: 1px solid var(--kcs-border); padding-left: 24px; font-size: 1.125rem; line-height: 1.65; font-weight: 300; font-style: italic; }
.kcs-parts-grid { margin-top: 40px; display: grid; gap: 16px 32px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .kcs-parts-grid { grid-template-columns: 1fr 1fr; } }
.kcs-parts-row { display: flex; align-items: center; gap: 12px; border-bottom: 1px solid var(--kcs-border); padding: 12px 0; }
.kcs-parts-row svg { color: var(--kcs-gold); flex-shrink: 0; width: 15px; height: 15px; }
.kcs-parts-row span { font-size: 0.875rem; }
.kcs-exploded { position: relative; overflow: hidden; background: var(--kcs-ink); padding: 32px; }
@media (min-width: 1024px) { .kcs-exploded { padding: 48px; } }
.kcs-exploded-bg { position: absolute; inset: 0; opacity: .25; background-image: var(--kcs-gradient-ink); }
.kcs-exploded-inner { position: relative; }
.kcs-exploded-list { margin-top: 32px; display: flex; flex-direction: column; gap: 8px; }
.kcs-exploded-item {
  display: flex; width: 100%; align-items: center; gap: 20px; border-left: 1px solid var(--kcs-hairline-dark);
  background: rgba(255,255,255,.02); padding: 16px 20px; text-align: left; cursor: pointer;
  transition: all .5s var(--kcs-ease); font: inherit; color: inherit;
}
.kcs-exploded-item.is-active { border-color: var(--kcs-gold); background: rgba(255,255,255,.06); transform: translateX(8px); }
.kcs-exploded-item:not(.is-active):hover { transform: translateX(4px); }
.kcs-exploded-num { font-size: 0.625rem; letter-spacing: 0.2em; color: rgba(255,255,255,.35); transition: color .3s; flex-shrink: 0; }
.kcs-exploded-item.is-active .kcs-exploded-num { color: var(--kcs-gold); }
.kcs-exploded-label { display: block; color: var(--kcs-ink-fg); font-size: 0.875rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }
.kcs-exploded-detail { display: block; overflow: hidden; max-height: 0; opacity: 0; color: rgba(255,255,255,.45); font-size: 0.75rem; transition: all .5s var(--kcs-ease); }
.kcs-exploded-item.is-active .kcs-exploded-detail { max-height: 40px; opacity: 1; margin-top: 6px; }

/* ── Choose System (A/B/C/D selectors) ── */
.kcs-choose-groups { margin-top: 64px; display: flex; flex-direction: column; gap: 56px; }
.kcs-motor-grid { margin-top: 20px; display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .kcs-motor-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1280px) { .kcs-motor-grid { grid-template-columns: repeat(4, 1fr); } }
.kcs-motor-head { display: flex; align-items: flex-start; justify-content: space-between; }
.kcs-motor-head span { font-size: 1rem; font-weight: 500; }
.kcs-motor-head svg { color: var(--kcs-gold); width: 15px; height: 15px; }
.kcs-motor-dl { margin-top: 20px; display: flex; flex-direction: column; gap: 10px; font-size: 0.75rem; }
.kcs-motor-dl dt { color: var(--kcs-muted-fg); font-size: 0.5625rem; letter-spacing: 0.18em; text-transform: uppercase; }
.kcs-motor-dl dd { margin-top: 2px; }
.kcs-bc-row { display: grid; gap: 56px; grid-template-columns: 1fr; }
@media (min-width: 1024px) { .kcs-bc-row { grid-template-columns: 1fr 1fr; } }
.kcs-opt-grid { margin-top: 20px; display: grid; gap: 16px; }
.kcs-opt-title { font-size: 0.875rem; font-weight: 500; }
.kcs-opt-title--sm { font-size: 0.9375rem; }
.kcs-opt-desc { margin-top: 8px; font-size: 0.75rem; line-height: 1.6; color: var(--kcs-muted-fg); }

/* ── Motor range cards ── */
.kcs-motor-cards { margin-top: 64px; display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .kcs-motor-cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1280px) { .kcs-motor-cards { grid-template-columns: repeat(4, 1fr); } }
.kcs-motor-card { display: flex; flex-direction: column; overflow: hidden; }
.kcs-motor-card-img { background: var(--kcs-ink); aspect-ratio: 4/3; overflow: hidden; }
.kcs-motor-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--kcs-ease); }
.kcs-motor-card:hover .kcs-motor-card-img img { transform: scale(1.05); }
.kcs-motor-card-body { display: flex; flex: 1; flex-direction: column; padding: 24px; }
.kcs-motor-card-body h3 { font-size: 1.125rem; line-height: 1.375; font-weight: 500; }
.kcs-motor-card-body > p { margin-top: 12px; font-size: 0.75rem; line-height: 1.6; color: var(--kcs-muted-fg); }
.kcs-motor-card-dl { margin-top: 24px; flex: 1; display: flex; flex-direction: column; gap: 12px; font-size: 0.75rem; }
.kcs-motor-card-dl > div { border-bottom: 1px solid var(--kcs-border); padding-bottom: 8px; }
.kcs-motor-card-dl dt { color: var(--kcs-muted-fg); font-size: 0.5625rem; letter-spacing: 0.18em; text-transform: uppercase; }
.kcs-motor-card-dl dd { margin-top: 4px; }
.kcs-motor-card-link { margin-top: 24px; display: inline-flex; align-items: center; gap: 8px; color: var(--kcs-gold-fg); font-size: 0.625rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; transition: color .2s; }
.kcs-motor-card-link:hover { color: var(--kcs-gold); }
.kcs-motor-card-link svg { width: 13px; height: 13px; }

/* ── Track comparison ── */
.kcs-track-grid { margin-top: 56px; display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 1024px) { .kcs-track-grid { grid-template-columns: 1fr 1fr; } }
.kcs-track-card { padding: 40px 32px; }
@media (min-width: 1024px) { .kcs-track-card { padding: 48px; } }
.kcs-track-card--dark { background: var(--kcs-ink); color: var(--kcs-ink-fg); }
.kcs-track-card h3 { font-size: 1.875rem; font-weight: 300; }
.kcs-track-card ul { margin-top: 32px; display: flex; flex-direction: column; gap: 16px; list-style: none; padding: 0; }
.kcs-track-card li { display: flex; align-items: flex-start; gap: 12px; font-size: 0.875rem; }
.kcs-track-card li svg { color: var(--kcs-gold); margin-top: 4px; flex-shrink: 0; width: 14px; height: 14px; }
.kcs-track-card--dark li span { color: rgba(255,255,255,.75); }
.kcs-track-card li span { color: var(--kcs-muted-fg); }
.kcs-track-cta { margin-top: 40px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; border-top: 1px solid var(--kcs-border); padding-top: 40px; }
.kcs-track-cta p { font-size: 1.25rem; font-weight: 300; }

/* ── Runner section + curtain animation ── */
.kcs-runner-grid { margin-top: 56px; display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 1024px) { .kcs-runner-grid { grid-template-columns: 1fr 1fr; } }
.kcs-runner-btn { position: relative; overflow: hidden; text-align: left; cursor: pointer; border: none; padding: 0; transition: all .5s var(--kcs-ease); opacity: .7; background: none; font: inherit; }
.kcs-runner-btn:hover, .kcs-runner-btn.is-active { opacity: 1; }
.kcs-runner-btn.is-active { box-shadow: inset 0 0 0 1px var(--kcs-gold); }
.kcs-runner-btn img { height: 420px; width: 100%; object-fit: cover; transition: transform 1.2s var(--kcs-ease); display: block; }
.kcs-runner-btn:hover img { transform: scale(1.05); }
.kcs-runner-overlay { position: absolute; inset: 0; background: linear-gradient(to top, oklch(0.145 0.005 60 / 90%), transparent); }
.kcs-runner-caption { position: absolute; inset-inline: 0; bottom: 0; padding: 32px; }
.kcs-runner-caption h3 { color: var(--kcs-ink-fg); font-size: 1.5rem; font-weight: 300; }
.kcs-runner-caption p { color: rgba(255,255,255,.65); margin-top: 8px; max-width: 24rem; font-size: 0.875rem; }
.kcs-runner-demo { background: var(--kcs-ink); margin-top: 24px; padding: 32px; }
@media (min-width: 1024px) { .kcs-runner-demo { padding: 48px; } }
.kcs-runner-demo-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.kcs-runner-demo-head .kcs-live { color: var(--kcs-gold); font-size: 0.625rem; font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase; }
.kcs-runner-demo-head .kcs-demo-note { color: rgba(255,255,255,.4); font-size: 0.625rem; letter-spacing: 0.2em; text-transform: uppercase; }
.kcs-curtain-stage { position: relative; margin-top: 32px; height: 288px; overflow: hidden; background: linear-gradient(to bottom, rgba(255,255,255,.12), rgba(255,255,255,.03)); }
.kcs-curtain-stage::before { content: ''; position: absolute; inset-inline: 0; top: 0; height: 1px; background: color-mix(in oklab, var(--kcs-gold) 50%, transparent); }
.kcs-curtain-half { position: relative; display: flex; height: 100%; width: 50%; }
.kcs-curtain-fold { height: 100%; flex: 1; background: linear-gradient(to right, rgba(255,255,255,.3), rgba(255,255,255,.05), rgba(255,255,255,.22)); }
.kcs-curtain-fold--ripple { background: linear-gradient(to right, rgba(255,255,255,.25), rgba(255,255,255,.08), rgba(255,255,255,.25)); border-radius: 0 0 40% 40%; }

/* ── How it works + scenes ── */
.kcs-flow-grid { margin-top: 64px; display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 1024px) { .kcs-flow-grid { grid-template-columns: repeat(6, 1fr); } }
.kcs-flow-item { position: relative; padding: 24px; }
.kcs-flow-item .kcs-num { color: var(--kcs-gold); font-size: 0.625rem; letter-spacing: 0.24em; }
.kcs-flow-item h3 { margin-top: 16px; font-size: 0.875rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }
.kcs-flow-item p { margin-top: 12px; font-size: 0.75rem; line-height: 1.6; color: rgba(255,255,255,.45); }
.kcs-flow-connector { position: absolute; left: 24px; bottom: -16px; width: 1px; height: 16px; background: color-mix(in oklab, var(--kcs-gold) 60%, transparent); }
@media (min-width: 1024px) { .kcs-flow-connector { left: auto; right: -16px; bottom: auto; top: 50%; width: 16px; height: 1px; } }
.kcs-scene-grid { margin-top: 64px; display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .kcs-scene-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .kcs-scene-grid { grid-template-columns: repeat(3, 1fr); } }
.kcs-scene-item { display: flex; align-items: center; gap: 16px; padding: 20px; }
.kcs-scene-item svg { color: var(--kcs-gold); width: 17px; height: 17px; flex-shrink: 0; }
.kcs-scene-item span { font-size: 0.875rem; }

/* ── Smart control ── */
.kcs-control-grid { margin-top: 56px; display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .kcs-control-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1280px) { .kcs-control-grid { grid-template-columns: repeat(4, 1fr); } }
.kcs-control-card { padding: 32px; }
.kcs-control-card svg { color: var(--kcs-gold); width: 20px; height: 20px; }
.kcs-control-card h3 { margin-top: 24px; font-size: 1.125rem; font-weight: 500; }
.kcs-control-card p { margin-top: 12px; font-size: 0.875rem; line-height: 1.6; color: var(--kcs-muted-fg); }
.kcs-control-current { background: var(--kcs-sand); border: 1px solid color-mix(in oklab, var(--kcs-gold) 30%, transparent); margin-top: 24px; padding: 32px; }
.kcs-control-current p { margin-top: 12px; font-size: 0.875rem; line-height: 1.6; }

/* ── Ecosystem table ── */
.kcs-eco-table-wrap { margin-top: 56px; overflow-x: auto; }
.kcs-eco-table { width: 100%; min-width: 48rem; border-collapse: collapse; text-align: left; }
.kcs-eco-table th, .kcs-eco-table td { padding: 16px; vertical-align: top; }
.kcs-eco-table thead th:first-child { width: 224px; }
.kcs-eco-table thead th { vertical-align: bottom; }
.kcs-eco-table tbody tr { border-top: 1px solid var(--kcs-border); }
.kcs-eco-table tbody th { color: var(--kcs-muted-fg); font-size: 0.625rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; }
.kcs-eco-table tbody td { font-size: 0.875rem; color: var(--kcs-muted-fg); }
.kcs-eco-table tbody td.is-active-col { color: var(--kcs-fg); }
.kcs-eco-col-btn { width: 100%; }
.kcs-eco-col-btn span { font-size: 1rem; font-weight: 500; }
.kcs-eco-col-btn p { margin-top: 8px; font-size: 0.75rem; line-height: 1.6; color: var(--kcs-muted-fg); }

/* ── Technical specs ── */
.kcs-specs-toggle {
  margin-top: 48px; display: flex; width: 100%; align-items: center; justify-content: space-between;
  border-top: 1px solid var(--kcs-border); border-bottom: 1px solid var(--kcs-border); padding: 24px 0;
  background: none; cursor: pointer; font: inherit; color: inherit;
}
.kcs-specs-toggle span { font-size: 0.875rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; }
.kcs-specs-toggle svg { color: var(--kcs-gold); width: 18px; height: 18px; transition: transform .5s var(--kcs-ease); }
.kcs-specs-toggle.is-open svg { transform: rotate(180deg); }
.kcs-specs-dl { display: grid; gap: 0 48px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .kcs-specs-dl { grid-template-columns: 1fr 1fr; } }
.kcs-specs-dl > div { display: flex; justify-content: space-between; gap: 32px; border-bottom: 1px solid var(--kcs-border); padding: 16px 0; }
.kcs-specs-dl dt { color: var(--kcs-muted-fg); font-size: 0.625rem; letter-spacing: 0.18em; text-transform: uppercase; }
.kcs-specs-dl dd { max-width: 60%; text-align: right; font-size: 0.875rem; }

/* ── Installation ── */
.kcs-install-grid { display: grid; gap: 64px; grid-template-columns: 1fr; }
@media (min-width: 1024px) { .kcs-install-grid { grid-template-columns: 1fr 1fr; } }
.kcs-install-notices { margin-top: 40px; display: flex; flex-direction: column; gap: 16px; }
.kcs-install-notice { display: flex; gap: 16px; padding: 20px; }
.kcs-install-notice svg { color: var(--kcs-gold); margin-top: 2px; flex-shrink: 0; width: 17px; height: 17px; }
.kcs-install-notice p:first-child { font-size: 0.875rem; }
.kcs-install-notice p:last-child { margin-top: 8px; font-size: 0.75rem; color: rgba(255,255,255,.45); }
.kcs-checklist-panel { border: 1px solid var(--kcs-hairline-dark); padding: 32px; }
@media (min-width: 1024px) { .kcs-checklist-panel { padding: 40px; } }
.kcs-checklist { margin-top: 32px; display: grid; gap: 12px; grid-template-columns: 1fr; list-style: none; padding: 0; }
@media (min-width: 640px) { .kcs-checklist { grid-template-columns: 1fr 1fr; } }
.kcs-checklist li { display: flex; align-items: center; gap: 16px; border: 1px solid var(--kcs-hairline-dark); background: rgba(255,255,255,.03); padding: 16px; }
.kcs-checklist .kcs-num { color: var(--kcs-gold); font-size: 0.625rem; letter-spacing: 0.2em; }
.kcs-checklist span:last-child { font-size: 0.875rem; }

/* ── Applications grid ── */
.kcs-apps-grid { margin-top: 56px; display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .kcs-apps-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .kcs-apps-grid { grid-template-columns: repeat(4, 1fr); } }
.kcs-app-tile { position: relative; overflow: hidden; }
.kcs-app-tile img { height: 224px; width: 100%; object-fit: cover; transition: transform 1.1s var(--kcs-ease); display: block; }
.kcs-app-tile:hover img { transform: scale(1.1); }
.kcs-app-tile-overlay { position: absolute; inset: 0; background: linear-gradient(to top, oklch(0.145 0.005 60 / 85%), transparent 60%); }
.kcs-app-tile-label { position: absolute; bottom: 20px; left: 20px; color: var(--kcs-ink-fg); font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; }

/* ── Why Kerr ── */
.kcs-why-grid { display: grid; gap: 64px; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 1024px) { .kcs-why-grid { grid-template-columns: 1fr 1.1fr; } }
.kcs-why-cards { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .kcs-why-cards { grid-template-columns: 1fr 1fr; } }
.kcs-why-card { display: flex; align-items: center; gap: 16px; padding: 20px; }
.kcs-why-card .kcs-num { color: var(--kcs-gold); font-size: 0.625rem; letter-spacing: 0.2em; }
.kcs-why-card span:last-child { font-size: 0.875rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; }

/* ── Projects ── */
.kcs-projects-grid { margin-top: 56px; display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .kcs-projects-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1280px) { .kcs-projects-grid { grid-template-columns: repeat(3, 1fr); } }
.kcs-project-card { overflow: hidden; }
.kcs-project-card-img { overflow: hidden; }
.kcs-project-card-img img { height: 240px; width: 100%; object-fit: cover; transition: transform 1.1s var(--kcs-ease); display: block; }
.kcs-project-card:hover .kcs-project-card-img img { transform: scale(1.05); }
.kcs-project-card-body { padding: 28px; }
.kcs-project-card-body h3 { font-size: 1.25rem; font-weight: 300; }
.kcs-project-card-dl { margin-top: 20px; display: flex; flex-direction: column; gap: 8px; }
.kcs-project-card-dl > div { display: flex; justify-content: space-between; gap: 16px; font-size: 0.75rem; }
.kcs-project-card-dl dt { color: var(--kcs-muted-fg); font-size: 0.5625rem; letter-spacing: 0.18em; text-transform: uppercase; }
.kcs-project-card-dl dd { text-align: right; }
.kcs-projects-more { margin-top: 48px; text-align: center; }

/* ── Buy or quote ── */
.kcs-buy-grid { margin-top: 56px; display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 1024px) { .kcs-buy-grid { grid-template-columns: 1fr 1fr; } }
.kcs-buy-card { display: flex; flex-direction: column; padding: 40px 32px; }
@media (min-width: 1024px) { .kcs-buy-card { padding: 48px; } }
.kcs-buy-card--dark { background: var(--kcs-ink); color: var(--kcs-ink-fg); }
.kcs-buy-card h3 { margin-top: 16px; font-size: 1.875rem; font-weight: 300; }
.kcs-buy-card > p { margin-top: 16px; flex: 1; font-size: 0.875rem; line-height: 1.65; color: var(--kcs-muted-fg); }
.kcs-buy-card--dark > p { color: rgba(255,255,255,.6); }
.kcs-buy-card .kcs-btn { margin-top: 32px; align-self: flex-start; }
.kcs-buy-card-actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }

/* ── FAQ ── */
.kcs-faq-grid { display: grid; gap: 64px; grid-template-columns: 1fr; }
@media (min-width: 1024px) { .kcs-faq-grid { grid-template-columns: 0.8fr 1.4fr; } }
.kcs-faq-row { border-bottom: 1px solid var(--kcs-border); }
.kcs-faq-row summary {
  display: flex; width: 100%; align-items: flex-start; justify-content: space-between; gap: 32px;
  padding: 24px 0; text-align: left; cursor: pointer; list-style: none;
}
.kcs-faq-row summary::-webkit-details-marker { display: none; }
.kcs-faq-row summary span { font-size: 1rem; font-weight: 500; }
.kcs-faq-row summary svg { margin-top: 4px; flex-shrink: 0; width: 16px; height: 16px; color: var(--kcs-muted-fg); }
.kcs-faq-row[open] summary svg { color: var(--kcs-gold); }
.kcs-faq-row .kcs-faq-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s var(--kcs-ease); margin-top: 0; }
.kcs-faq-row[open] .kcs-faq-body { grid-template-rows: 1fr; }
.kcs-faq-row .kcs-faq-body > p { overflow: hidden; padding-bottom: 24px; font-size: 0.875rem; line-height: 1.65; color: var(--kcs-muted-fg); }

/* ── Final CTA ── */
.kcs-final-cta { position: relative; overflow: hidden; }
.kcs-final-cta-img { height: 70vh; min-height: 520px; width: 100%; object-fit: cover; display: block; }
.kcs-final-cta-overlay { position: absolute; inset: 0; background: linear-gradient(to right, oklch(0.145 0.005 60 / 95%), oklch(0.145 0.005 60 / 60%) 55%, transparent); }
.kcs-final-cta-content { position: absolute; inset: 0; display: flex; align-items: center; }
.kcs-final-cta h2 { color: var(--kcs-ink-fg); max-width: 42rem; font-size: clamp(2.25rem, 5vw, 3.75rem); line-height: 1.04; font-weight: 300; }
.kcs-final-cta p { color: rgba(255,255,255,.65); margin-top: 24px; max-width: 36rem; font-size: 1rem; line-height: 1.65; }
.kcs-final-cta-ctas { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 16px; }

/* ── Sticky CTA ── */
.kcs-sticky-cta { position: fixed; right: 20px; bottom: 20px; z-index: 40; box-shadow: var(--kcs-shadow-lift); }
@media (min-width: 1024px) { .kcs-sticky-cta { right: 32px; bottom: 32px; } }

/* ── Configurator ── */
.kcs-configurator-head { max-width: 42rem; }
.kcs-configurator-head h2 { margin-top: 20px; font-size: clamp(2.25rem, 5vw, 3.75rem); line-height: 1.05; }
.kcs-configurator-head p { margin-top: 20px; font-size: 1rem; line-height: 1.65; color: rgba(255,255,255,.55); }
.kcs-progress-row { margin-top: 40px; display: flex; align-items: center; gap: 16px; }
.kcs-progress-track { height: 1px; flex: 1; overflow: hidden; background: var(--kcs-hairline-dark); }
.kcs-progress-fill { height: 1px; background-image: var(--kcs-gradient-gold); transition: width .7s var(--kcs-ease); }
.kcs-progress-row .kcs-progress-label { color: var(--kcs-gold); font-size: 0.625rem; letter-spacing: 0.24em; white-space: nowrap; }
.kcs-configurator-grid { margin-top: 56px; display: grid; gap: 56px; grid-template-columns: 1fr; }
@media (min-width: 1280px) { .kcs-configurator-grid { grid-template-columns: 1.55fr 1fr; } }
.kcs-step { border-top: 1px solid var(--kcs-hairline-dark); padding: 32px 0; display: grid; gap: 24px; grid-template-columns: 1fr; }
.kcs-step:first-child { border-top: none; padding-top: 0; }
@media (min-width: 1024px) { .kcs-step { grid-template-columns: 200px 1fr; } }
.kcs-step-num { color: var(--kcs-gold); font-size: 0.625rem; font-weight: 600; letter-spacing: 0.28em; }
.kcs-step-title { margin-top: 8px; font-size: 1.125rem; font-weight: 300; color: var(--kcs-ink-fg); }
.kcs-step-hint { margin-top: 8px; font-size: 0.75rem; line-height: 1.6; color: rgba(255,255,255,.45); }
.kcs-step-row { display: flex; flex-wrap: wrap; gap: 12px; }
.kcs-step-row .kcs-field-dark { max-width: 20rem; flex: 1; }
.kcs-unit-toggle { display: flex; gap: 8px; }
.kcs-weight-suffix { color: rgba(255,255,255,.45); font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase; align-self: center; }
.kcs-options-grid { display: grid; gap: 12px; }
.kcs-option-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.kcs-option-head span { font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; }
.kcs-option-head svg { color: var(--kcs-gold); width: 14px; height: 14px; flex-shrink: 0; }
.kcs-option-desc { margin-top: 8px; font-size: 0.75rem; line-height: 1.6; color: rgba(255,255,255,.45); }
.kcs-result-sticky { position: sticky; top: 112px; }
.kcs-result-card { border: 1px solid var(--kcs-hairline-dark); background: rgba(255,255,255,.03); padding: 32px; }
.kcs-result-card h3 { margin-top: 16px; font-size: 1.5rem; line-height: 1.3; font-weight: 300; }
.kcs-result-rows { margin-top: 28px; }
.kcs-result-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--kcs-hairline-dark); padding: 12px 0; }
.kcs-result-row:last-child { border-bottom: none; }
.kcs-result-row dt { color: rgba(255,255,255,.45); font-size: 0.625rem; letter-spacing: 0.2em; text-transform: uppercase; white-space: nowrap; }
.kcs-result-row dd { color: var(--kcs-ink-fg); text-align: right; font-size: 0.875rem; }
.kcs-result-reasons { margin-top: 32px; }
.kcs-result-reasons h4 { font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; }
.kcs-result-reasons ul { margin-top: 16px; display: flex; flex-direction: column; gap: 12px; list-style: none; padding: 0; }
.kcs-result-reasons li { display: flex; gap: 12px; font-size: 0.75rem; line-height: 1.6; color: rgba(255,255,255,.55); }
.kcs-result-reasons li svg { color: var(--kcs-gold); margin-top: 2px; flex-shrink: 0; width: 14px; height: 14px; }
.kcs-result-warning { display: none; margin-top: 32px; gap: 12px; border: 1px solid color-mix(in oklab, var(--kcs-gold) 40%, transparent); background: color-mix(in oklab, var(--kcs-gold) 10%, transparent); padding: 16px; }
.kcs-result-warning.is-visible { display: flex; }
.kcs-result-warning svg { color: var(--kcs-gold); margin-top: 2px; flex-shrink: 0; width: 16px; height: 16px; }
.kcs-result-warning p { font-size: 0.75rem; line-height: 1.6; color: rgba(255,255,255,.75); }
.kcs-result-actions { margin-top: 32px; display: grid; gap: 12px; }

@media (max-width: 640px) { .kcs-hero-inner { padding-top: 112px; } }

/* ==========================================================================
   PREMIUM LIGHTING — /premium. A ported 1:1 design from an external
   reference build ("Kerr Lighting Brilliance"), not an original design here
   — copy, layout, spacing, colours (as oklch, matching the reference
   exactly) and motion are translated directly from that source, the same
   approach used for /smart-curtain-system above. "prm-" namespaced so
   nothing here leaks into the rest of the storefront; own colour tokens
   because the reference's palette is numerically different from this
   site's own black-and-gold tokens even though both read as "ink + gold".
   Headings/body intentionally stay on this site's own Instrument Serif /
   Inter (the reference uses Cormorant Garamond / Jost / JetBrains Mono) —
   the one deliberate non-exact value, matching the kcs precedent. Real Kerr
   nav/footer (via layouts/shop.php) replace the reference's own mockup
   header/footer. Reveal-on-scroll reuses the site-wide .anim/.in-view
   mechanism (see NAVBAR script in layouts/shop.php) instead of a page-local
   equivalent, since it already does exactly what the reference's React
   Reveal component does. Accordions use native <details>/<summary>, same
   technique as the SMART PAGE FAQ above. ========================
   ========================================================================== */
.prm-page {
  --prm-radius:    0.125rem;
  --prm-ink:       oklch(0.11 0.004 90);
  --prm-surface:   oklch(0.155 0.005 80);
  --prm-surface-2: oklch(0.205 0.008 80);
  --prm-fg:        oklch(0.965 0.004 90);
  --prm-muted:     oklch(0.68 0.008 85);
  --prm-border:    oklch(1 0 0 / 12%);
  --prm-gold:      oklch(0.79 0.115 82);
  --prm-gold-soft: oklch(0.88 0.075 88);
  --prm-gold-deep: oklch(0.6 0.1 74);
  --prm-gold-fg:   oklch(0.12 0.005 90);
  --prm-gradient-gold: linear-gradient(100deg, var(--prm-gold-deep) 0%, var(--prm-gold) 42%, var(--prm-gold-soft) 62%, var(--prm-gold-deep) 100%);
  --prm-shadow-lift: 0 30px 80px -40px oklch(0 0 0 / 0.9);
  --prm-ease: cubic-bezier(0.16, 1, 0.3, 1);
  background: var(--prm-ink);
  color: var(--prm-fg);
  font-family: var(--font-sans);
  font-weight: 300;
  letter-spacing: 0.01em;
  overflow: hidden;
}
.prm-page * { box-sizing: border-box; }
.prm-page img { max-width: none; }
.prm-page section[id] { scroll-margin-top: 96px; }

/* ── Layout ── */
.prm-section { position: relative; width: 100%; overflow: hidden; padding: 112px 24px; background: var(--prm-ink); }
@media (min-width: 768px)  { .prm-section { padding: 160px 48px; } }
@media (min-width: 1024px) { .prm-section { padding-left: 80px; padding-right: 80px; } }
.prm-section--surface { background: var(--prm-surface); }
.prm-inner { max-width: 1440px; margin: 0 auto; width: 100%; }

/* ── Typography ── */
.prm-display { font-family: var(--font-serif); font-weight: 300; line-height: 1.02; letter-spacing: -0.015em; }
.prm-eyebrow { font-family: var(--font-sans); font-size: 0.65rem; letter-spacing: 0.42em; text-transform: uppercase; color: var(--prm-gold); }
.prm-gold-text, .prm-gold-em {
  background-image: var(--prm-gradient-gold);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.prm-gold-em { font-style: italic; }
.prm-hairline { height: 1px; width: 100%; background: linear-gradient(90deg, transparent, color-mix(in oklab, var(--prm-gold) 55%, transparent), transparent); }
.prm-muted { color: var(--prm-muted); }

/* ── Section head ── */
.prm-head { display: flex; flex-direction: column; gap: 24px; max-width: 56rem; }
.prm-head--center { margin: 0 auto; max-width: 48rem; text-align: center; align-items: center; }
.prm-head-top { display: flex; align-items: center; gap: 16px; }
.prm-head-index { font-family: var(--font-sans); font-size: 0.65rem; color: var(--prm-muted); }
.prm-head h2 { font-family: var(--font-serif); font-weight: 300; line-height: 1.02; letter-spacing: -0.015em; font-size: clamp(2.4rem, 5.4vw, 4.6rem); }
.prm-lead { max-width: 42rem; font-size: 1rem; line-height: 1.65; color: var(--prm-muted); }
@media (min-width: 768px) { .prm-lead { font-size: 1.125rem; } }

/* ── Buttons ── */
.prm-btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; overflow: hidden;
  padding: 16px 36px; font-family: var(--font-sans); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.28em;
  font-weight: 400; transition: all 0.7s var(--prm-ease); background-image: var(--prm-gradient-gold);
  color: var(--prm-gold-fg); border: none; cursor: pointer; text-decoration: none;
}
.prm-btn span { position: relative; z-index: 1; }
.prm-btn::after { content: ''; position: absolute; inset: 0; background: rgba(255,255,255,.25); transform: translateX(-100%); transition: transform 1s; }
.prm-btn:hover::after { transform: translateX(100%); }
.prm-btn--ghost { background-image: none; background: transparent; color: var(--prm-fg); border: 1px solid var(--prm-border); }
.prm-btn--ghost:hover { border-color: var(--prm-gold); color: var(--prm-gold); }

/* ── Panel / Figure ── */
.prm-panel {
  background-image: linear-gradient(160deg, color-mix(in oklab, var(--prm-surface-2) 85%, transparent), var(--prm-surface));
  border: 1px solid var(--prm-border);
  transition: border-color 0.6s var(--prm-ease), transform 0.6s var(--prm-ease), box-shadow 0.6s var(--prm-ease);
}
.prm-panel:hover { border-color: color-mix(in oklab, var(--prm-gold) 45%, transparent); box-shadow: var(--prm-shadow-lift); }
.prm-figure { position: relative; overflow: hidden; display: block; }
.prm-figure img { width: 100%; height: 100%; object-fit: cover; transition: transform 2.2s var(--prm-ease); display: block; }
.prm-figure:hover img { transform: scale(1.07); }
.prm-figure::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, color-mix(in oklab, var(--prm-ink) 85%, transparent), transparent 60%); pointer-events: none; }
.prm-figure-caption { position: absolute; bottom: 0; left: 0; width: 100%; padding: 24px; z-index: 1; }
.prm-figure-caption span { font-family: var(--font-sans); font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.3em; color: var(--prm-gold-soft); }
.prm-ratio-4-5  { aspect-ratio: 4/5; }
.prm-ratio-16-10 { aspect-ratio: 16/10; }
.prm-ratio-4-3  { aspect-ratio: 4/3; }
.prm-ratio-3-4  { aspect-ratio: 3/4; }

/* ── Hero ── */
.prm-hero { position: relative; min-height: 100svh; width: 100%; overflow: hidden; background: var(--prm-ink); }
.prm-hero-media { position: absolute; inset: 0; }
.prm-hero-media img { width: 100%; height: 100%; object-fit: cover; animation: prm-drift 34s ease-in-out infinite alternate; }
@keyframes prm-drift { 0% { transform: scale(1.06) translate3d(0,0,0); } 100% { transform: scale(1.16) translate3d(-1.5%,-1.5%,0); } }
.prm-hero-scrim { position: absolute; inset: 0; background: rgba(0,0,0,.3); }
.prm-hero-veil { position: absolute; inset: 0; background: linear-gradient(180deg, color-mix(in oklab, var(--prm-ink) 15%, transparent) 0%, color-mix(in oklab, var(--prm-ink) 55%, transparent) 45%, var(--prm-ink) 100%); }
.prm-hero-glow {
  position: absolute; left: 50%; top: 28%; height: 70vh; width: 70vw; transform: translate(-50%,-50%);
  border-radius: 50%; filter: blur(120px); pointer-events: none;
  background: radial-gradient(circle, color-mix(in oklab, var(--prm-gold) 45%, transparent) 0%, transparent 68%);
  animation: prm-breathe 11s ease-in-out infinite;
}
@keyframes prm-breathe { 0%, 100% { opacity: .42; } 50% { opacity: .78; } }
.prm-hero-sweep-wrap { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.prm-hero-sweep {
  position: absolute; top: -33%; height: 160%; width: 22vw; filter: blur(48px);
  background: linear-gradient(90deg, transparent, color-mix(in oklab, var(--prm-gold-soft) 22%, transparent), transparent);
  animation: prm-sweep 14s ease-in-out infinite;
}
@keyframes prm-sweep { 0% { transform: translateX(-30%) rotate(8deg); opacity: 0; } 40% { opacity: .55; } 100% { transform: translateX(130%) rotate(8deg); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .prm-hero-media img, .prm-hero-glow, .prm-hero-sweep { animation: none; } }
.prm-hero-content { position: relative; z-index: 2; display: flex; flex-direction: column; justify-content: flex-end; min-height: 100svh; padding: 120px 24px 88px; max-width: 1440px; margin: 0 auto; }
@media (min-width: 768px)  { .prm-hero-content { padding: 120px 48px 96px; } }
@media (min-width: 1024px) { .prm-hero-content { padding-left: 80px; padding-right: 80px; } }
/* Headline is two full sentences — sized down from the reference so the whole
   hero (sub, CTAs, tag row) clears the first viewport on a laptop, matching
   how the home hero behaves. */
.prm-hero-heading { margin-top: 20px; font-size: clamp(2.3rem, 4.5vw, 4.25rem); max-width: 50rem; }
.prm-hero-heading-2 { display: block; margin-top: 4px; font-style: italic; }
.prm-hero-body-row { margin-top: 28px; display: grid; gap: 40px; align-items: end; }
@media (min-width: 1024px) { .prm-hero-body-row { grid-template-columns: 1.1fr 0.9fr; } }
.prm-hero-sub { max-width: 42rem; font-size: 1rem; line-height: 1.65; color: rgba(244,240,231,.75); }
@media (min-width: 768px) { .prm-hero-sub { font-size: 1.125rem; } }
.prm-hero-ctas { display: flex; flex-wrap: wrap; gap: 16px; }
@media (min-width: 1024px) { .prm-hero-ctas { justify-content: flex-end; } }
.prm-hero-foot { margin-top: 32px; }
.prm-hero-tags { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 16px 48px; font-family: var(--font-sans); font-size: 0.6rem; text-transform: uppercase; letter-spacing: 0.3em; color: var(--prm-muted); }

/* ── 02 Boundaries ── */
.prm-boundaries-grid { display: grid; gap: 64px; }
@media (min-width: 1024px) { .prm-boundaries-grid { grid-template-columns: 0.95fr 1.05fr; gap: 96px; } }
.prm-cap-list { margin-top: 56px; border-top: 1px solid var(--prm-border); }
.prm-cap { display: flex; flex-direction: column; gap: 8px; padding: 28px 0; border-bottom: 1px solid var(--prm-border); }
@media (min-width: 768px) { .prm-cap { flex-direction: row; align-items: baseline; gap: 32px; } }
.prm-cap-k { font-family: var(--font-sans); font-size: 0.6rem; text-transform: uppercase; letter-spacing: 0.28em; color: var(--prm-gold); }
@media (min-width: 768px) { .prm-cap-k { width: 224px; flex-shrink: 0; } }
.prm-cap-v { font-size: 0.9rem; line-height: 1.65; color: var(--prm-muted); }
.prm-fig-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (min-width: 768px) { .prm-fig-grid { gap: 24px; } }
.prm-fig-span2 { grid-column: 1 / -1; }

/* ── 03 Collection ── */
.prm-collection-grid { margin-top: 64px; display: grid; gap: 16px; }
@media (min-width: 768px)  { .prm-collection-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1280px) { .prm-collection-grid { grid-template-columns: repeat(3, 1fr); } }
.prm-cat-card { position: relative; height: 100%; padding: 32px; cursor: pointer; }
.prm-cat-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.prm-cat-num { font-family: var(--font-sans); font-size: 0.58rem; letter-spacing: 0.3em; color: var(--prm-muted); }
.prm-cat-name { margin-top: 12px; font-family: var(--font-serif); font-size: 1.5rem; line-height: 1.15; }
.prm-cat-plus { margin-top: 4px; color: var(--prm-gold); transition: transform 0.7s var(--prm-ease); font-size: 1.3rem; line-height: 1; }
.prm-cat-card.is-open .prm-cat-plus { transform: rotate(45deg); }
.prm-cat-body { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows 0.7s var(--prm-ease), opacity 0.7s var(--prm-ease), margin-top 0.7s var(--prm-ease); }
.prm-cat-card.is-open .prm-cat-body { margin-top: 24px; grid-template-rows: 1fr; opacity: 1; }
.prm-cat-body-inner { overflow: hidden; }
.prm-cat-desc { font-size: 0.875rem; line-height: 1.65; color: var(--prm-muted); }
.prm-cat-meta { margin-top: 24px; display: flex; flex-direction: column; gap: 16px; }
.prm-cat-meta-label { font-family: var(--font-sans); font-size: 0.55rem; text-transform: uppercase; letter-spacing: 0.28em; color: var(--prm-gold); }
.prm-cat-meta-value { margin-top: 8px; font-size: 0.82rem; color: rgba(244,240,231,.8); }

/* ── 04 Smart / ecosystems ── */
.prm-eco-grid { margin-top: 64px; display: grid; gap: 16px; }
@media (min-width: 768px)  { .prm-eco-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1280px) { .prm-eco-grid { grid-template-columns: repeat(4, 1fr); } }
.prm-eco-card { height: 100%; padding: 36px; display: flex; flex-direction: column; }
.prm-eco-name { font-family: var(--font-serif); font-size: 2.25rem; }
.prm-eco-tagline { margin-top: 16px; font-size: 0.875rem; color: var(--prm-muted); }
.prm-eco-hr { margin: 28px 0; }
.prm-eco-points { list-style: none; display: flex; flex-direction: column; gap: 12px; padding: 0; margin: 0; }
.prm-eco-points li { display: flex; align-items: center; gap: 12px; font-size: 0.85rem; color: rgba(244,240,231,.8); }
.prm-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--prm-gold); flex-shrink: 0; }

/* ── 05 Workflow ── */
.prm-workflow-grid { display: grid; gap: 64px; }
@media (min-width: 1024px) { .prm-workflow-grid { grid-template-columns: 0.9fr 1.1fr; gap: 96px; } }
@media (min-width: 1024px) { .prm-workflow-sticky { position: sticky; top: 128px; align-self: flex-start; } }
.prm-workflow-list { position: relative; list-style: none; padding: 0; margin: 0; }
.prm-workflow-rail { position: absolute; left: 19px; top: 8px; bottom: 8px; width: 1px; background: linear-gradient(to bottom, color-mix(in oklab, var(--prm-gold) 60%, transparent), color-mix(in oklab, var(--prm-gold) 25%, transparent), transparent); }
.prm-workflow-item { position: relative; display: flex; gap: 32px; padding-bottom: 40px; }
.prm-workflow-item:last-child { padding-bottom: 0; }
.prm-workflow-num { position: relative; z-index: 1; display: flex; height: 40px; width: 40px; flex-shrink: 0; align-items: center; justify-content: center; border-radius: 50%; border: 1px solid color-mix(in oklab, var(--prm-gold) 40%, transparent); background: var(--prm-ink); font-family: var(--font-sans); font-size: 0.6rem; color: var(--prm-gold); }
.prm-workflow-label { padding-top: 8px; font-family: var(--font-serif); font-size: 1.5rem; }
@media (min-width: 768px) { .prm-workflow-label { font-size: 1.875rem; } }

/* ── 06 Engineering ── */
.prm-eng-top { display: grid; gap: 64px; align-items: center; }
@media (min-width: 1024px) { .prm-eng-top { grid-template-columns: 1fr 1fr; gap: 96px; } }
.prm-eng-grid { margin-top: 80px; display: grid; gap: 1px; overflow: hidden; border: 1px solid var(--prm-border); background: var(--prm-border); }
@media (min-width: 640px)  { .prm-eng-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .prm-eng-grid { grid-template-columns: repeat(3, 1fr); } }
.prm-eng-card { height: 100%; background: var(--prm-surface); padding: 36px; transition: background 0.7s; }
.prm-eng-card:hover { background: var(--prm-surface-2); }
.prm-eng-glyph { height: 40px; width: 40px; transition: transform 0.7s; }
.prm-eng-card:hover .prm-eng-glyph { transform: scale(1.1); }
.prm-eng-title { margin-top: 24px; font-family: var(--font-serif); font-size: 1.5rem; }
.prm-eng-note { margin-top: 12px; font-size: 0.875rem; line-height: 1.65; color: var(--prm-muted); }

/* ── 07 Optics / beams ── */
.prm-optics-grid { margin-top: 64px; display: grid; gap: 40px; }
@media (min-width: 1024px) { .prm-optics-grid { grid-template-columns: 0.8fr 1.2fr; gap: 80px; } }
.prm-beam-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--prm-border); }
.prm-beam-btn {
  display: flex; width: 100%; align-items: baseline; justify-content: space-between; border: none; border-bottom: 1px solid var(--prm-border);
  padding: 20px 0; background: none; text-align: left; cursor: pointer; color: var(--prm-muted); transition: color 0.5s; font-family: inherit;
}
.prm-beam-btn:hover { color: var(--prm-fg); }
.prm-beam-btn.is-active { color: var(--prm-gold); }
.prm-beam-angle { font-family: var(--font-serif); font-size: 1.5rem; }
@media (min-width: 768px) { .prm-beam-angle { font-size: 1.875rem; } }
.prm-beam-label { font-family: var(--font-sans); font-size: 0.58rem; text-transform: uppercase; letter-spacing: 0.24em; }
.prm-beam-panel { padding: 40px; display: flex; flex-direction: column; justify-content: space-between; }
.prm-beam-diagram-wrap { margin-top: 32px; }
.prm-beam-diagram { height: 176px; width: 100%; display: block; }
.prm-beam-detail { margin-top: 40px; border-top: 1px solid var(--prm-border); padding-top: 32px; }
.prm-beam-detail h3 { font-family: var(--font-serif); font-size: 2.25rem; }
.prm-beam-detail h3 em { font-style: italic; color: var(--prm-muted); }
.prm-beam-detail p { margin-top: 16px; max-width: 36rem; font-size: 0.875rem; line-height: 1.65; color: var(--prm-muted); }
.prm-beam-item { display: none; }
.prm-beam-item.is-active { display: block; }

/* ── 08 Lenses ── */
.prm-lens-grid { margin-top: 64px; display: grid; gap: 16px; }
@media (min-width: 640px)  { .prm-lens-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1280px) { .prm-lens-grid { grid-template-columns: repeat(4, 1fr); } }
.prm-lens-card { position: relative; height: 100%; overflow: hidden; padding: 32px; }
.prm-lens-glow { position: absolute; right: -40px; top: -40px; height: 128px; width: 128px; border-radius: 50%; opacity: .4; filter: blur(40px); background: radial-gradient(circle, color-mix(in oklab, var(--prm-gold) 55%, transparent), transparent 70%); transition: opacity 0.7s; }
.prm-lens-card:hover .prm-lens-glow { opacity: .9; }
.prm-lens-num { position: relative; font-family: var(--font-sans); font-size: 0.55rem; letter-spacing: 0.3em; color: var(--prm-muted); }
.prm-lens-name { position: relative; margin-top: 16px; font-family: var(--font-serif); font-size: 1.5rem; line-height: 1.2; }
.prm-lens-benefit { position: relative; margin-top: 16px; font-size: 0.875rem; line-height: 1.65; color: var(--prm-muted); }

/* ── 09 Crystal ── */
.prm-crystal { position: relative; width: 100%; overflow: hidden; background: var(--prm-ink); }
.prm-crystal-media { position: relative; width: 100%; height: 75vh; min-height: 520px; }
.prm-crystal-media img { width: 100%; height: 100%; object-fit: cover; }
.prm-crystal-scrim { position: absolute; inset: 0; background: rgba(0,0,0,.4); }
.prm-crystal-veil { position: absolute; inset: 0; background: linear-gradient(180deg, color-mix(in oklab, var(--prm-ink) 15%, transparent) 0%, color-mix(in oklab, var(--prm-ink) 55%, transparent) 45%, var(--prm-ink) 100%); }
.prm-crystal-content { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; max-width: 1440px; margin: 0 auto; padding: 0 24px 64px; }
@media (min-width: 768px)  { .prm-crystal-content { padding-left: 48px; padding-right: 48px; } }
@media (min-width: 1024px) { .prm-crystal-content { padding-left: 80px; padding-right: 80px; } }
.prm-crystal-content h2 { margin-top: 24px; max-width: 56rem; font-size: clamp(2.6rem, 6.4vw, 5.6rem); }
.prm-crystal-body { max-width: 1440px; margin: 0 auto; padding: 96px 24px; }
@media (min-width: 768px)  { .prm-crystal-body { padding: 128px 48px; } }
@media (min-width: 1024px) { .prm-crystal-body { padding-left: 80px; padding-right: 80px; } }
.prm-crystal-lead { max-width: 42rem; font-size: 1rem; line-height: 1.65; color: var(--prm-muted); }
@media (min-width: 768px) { .prm-crystal-lead { font-size: 1.125rem; } }
.prm-crystal-grid { margin-top: 64px; display: grid; gap: 1px; border: 1px solid var(--prm-border); background: var(--prm-border); }
@media (min-width: 640px)  { .prm-crystal-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .prm-crystal-grid { grid-template-columns: repeat(4, 1fr); } }
.prm-crystal-point { height: 100%; background: var(--prm-ink); padding: 32px; }
.prm-crystal-point h3 { font-family: var(--font-serif); font-size: 1.5rem; }
.prm-crystal-point p { margin-top: 12px; font-size: 0.875rem; line-height: 1.65; color: var(--prm-muted); }

/* ── 10 Custom ── */
.prm-custom-grid { display: grid; gap: 64px; align-items: center; }
@media (min-width: 1024px) { .prm-custom-grid { grid-template-columns: 1.05fr 0.95fr; gap: 96px; } }
.prm-chip-row { margin-top: 48px; display: flex; flex-wrap: wrap; gap: 12px; }
.prm-chip { border: 1px solid var(--prm-border); padding: 10px 20px; font-family: var(--font-sans); font-size: 0.6rem; text-transform: uppercase; letter-spacing: 0.24em; color: rgba(244,240,231,.75); transition: border-color 0.5s, color 0.5s; }
.prm-chip:hover { border-color: color-mix(in oklab, var(--prm-gold) 60%, transparent); color: var(--prm-gold); }

/* ── 11 Services ── */
.prm-services-grid { margin-top: 64px; display: grid; gap: 1px; border: 1px solid var(--prm-border); background: var(--prm-border); }
@media (min-width: 640px)  { .prm-services-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .prm-services-grid { grid-template-columns: repeat(3, 1fr); } }
.prm-service-card { display: flex; height: 100%; align-items: baseline; gap: 24px; background: var(--prm-ink); padding: 36px; transition: background 0.7s; }
.prm-service-card:hover { background: var(--prm-surface); }
.prm-service-num { font-family: var(--font-sans); font-size: 0.6rem; letter-spacing: 0.28em; color: var(--prm-gold); }
.prm-service-name { font-family: var(--font-serif); font-size: 1.5rem; }
@media (min-width: 768px) { .prm-service-name { font-size: 1.875rem; } }

/* ── 12 Applications ── */
.prm-app-grid { margin-top: 64px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (min-width: 768px)  { .prm-app-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .prm-app-grid { grid-template-columns: repeat(5, 1fr); } }
.prm-app-card { position: relative; aspect-ratio: 3/4; overflow: hidden; display: block; }
.prm-app-card img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(35%); transition: transform 1.6s var(--prm-ease), filter 1.6s var(--prm-ease); }
.prm-app-card:hover img { transform: scale(1.1); filter: grayscale(0); }
.prm-app-scrim { position: absolute; inset: 0; background: linear-gradient(to top, var(--prm-ink), color-mix(in oklab, var(--prm-ink) 25%, transparent), transparent); }
.prm-app-label { position: absolute; left: 0; right: 0; bottom: 0; padding: 20px; }
.prm-app-label span { font-family: var(--font-sans); font-size: 0.58rem; text-transform: uppercase; letter-spacing: 0.24em; color: rgba(244,240,231,.9); }

/* ── 13 Why Kerr ── */
.prm-why-grid { margin-top: 64px; display: grid; gap: 24px; }
@media (min-width: 1024px) { .prm-why-grid { grid-template-columns: 1fr 1fr; } }
.prm-why-card { height: 100%; padding: 40px; }
@media (min-width: 768px) { .prm-why-card { padding: 48px; } }
.prm-why-card--kerr  { border: 1px solid color-mix(in oklab, var(--prm-gold) 40%, transparent); background: var(--prm-surface); }
.prm-why-card--other { border: 1px solid var(--prm-border); background: var(--prm-ink); }
.prm-why-head { display: flex; align-items: baseline; justify-content: space-between; }
.prm-why-head h3 { font-family: var(--font-serif); font-size: 2.25rem; }
.prm-why-tag { font-family: var(--font-sans); font-size: 0.58rem; text-transform: uppercase; letter-spacing: 0.26em; }
.prm-why-hr { margin: 32px 0; }
.prm-why-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.prm-why-list li { display: flex; align-items: center; gap: 16px; font-size: 0.95rem; }
.prm-why-list svg { height: 14px; width: 14px; flex-shrink: 0; }

/* ── 14 Process ── */
.prm-process-grid { margin-top: 80px; display: grid; gap: 48px 32px; }
@media (min-width: 768px)  { .prm-process-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .prm-process-grid { grid-template-columns: repeat(3, 1fr); } }
.prm-process-step { position: relative; padding-left: 40px; }
.prm-process-dot { position: absolute; left: 0; top: 4px; height: 8px; width: 8px; border-radius: 50%; background: var(--prm-gold); }
.prm-process-rail { position: absolute; left: 3.5px; top: 16px; height: calc(100% + 24px); width: 1px; background: var(--prm-border); }
.prm-process-step:last-child .prm-process-rail { display: none; }
.prm-process-label-sm { font-family: var(--font-sans); font-size: 0.58rem; letter-spacing: 0.3em; color: var(--prm-muted); }
.prm-process-title { margin-top: 12px; font-family: var(--font-serif); font-size: 1.5rem; }
@media (min-width: 768px) { .prm-process-title { font-size: 1.875rem; } }

/* ── 15 Featured carousel ── */
.prm-featured-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 32px; }
.prm-carousel-arrows { display: flex; gap: 12px; }
.prm-carousel-arrow { display: flex; height: 48px; width: 48px; align-items: center; justify-content: center; border: 1px solid var(--prm-border); background: none; color: var(--prm-muted); cursor: pointer; transition: color 0.5s, border-color 0.5s; }
.prm-carousel-arrow:hover { border-color: var(--prm-gold); color: var(--prm-gold); }
.prm-carousel-track { margin-top: 56px; display: flex; gap: 20px; overflow-x: auto; padding-bottom: 24px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.prm-carousel-track::-webkit-scrollbar { display: none; }
.prm-carousel-item { position: relative; flex-shrink: 0; width: 78vw; scroll-snap-align: start; display: block; }
@media (min-width: 640px)  { .prm-carousel-item { width: 46vw; } }
@media (min-width: 1024px) { .prm-carousel-item { width: 30vw; } }
@media (min-width: 1280px) { .prm-carousel-item { width: 24vw; } }
.prm-carousel-media { position: relative; aspect-ratio: 4/5; overflow: hidden; background: var(--prm-surface); }
.prm-carousel-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.8s var(--prm-ease); }
.prm-carousel-item:hover .prm-carousel-media img { transform: scale(1.1); }
.prm-carousel-scrim { position: absolute; inset: 0; background: linear-gradient(to top, var(--prm-ink), color-mix(in oklab, var(--prm-ink) 20%, transparent), transparent); }
.prm-carousel-info { margin-top: 20px; display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.prm-carousel-info h3 { font-family: var(--font-serif); font-size: 1.5rem; }
.prm-carousel-meta { margin-top: 4px; font-family: var(--font-sans); font-size: 0.58rem; text-transform: uppercase; letter-spacing: 0.22em; color: var(--prm-muted); }
.prm-carousel-go { margin-top: 8px; color: var(--prm-gold); opacity: 0; transition: opacity 0.5s; }
.prm-carousel-item:hover .prm-carousel-go { opacity: 1; }

/* ── 16 FAQ ── */
.prm-faq-grid { margin-top: 64px; display: grid; gap: 0 64px; }
@media (min-width: 1024px) { .prm-faq-grid { grid-template-columns: 1fr 1fr; } }
.prm-faq-list { border-top: 1px solid var(--prm-border); }
.prm-faq-row { border-bottom: 1px solid var(--prm-border); }
.prm-faq-row summary { display: flex; width: 100%; align-items: flex-start; justify-content: space-between; gap: 24px; padding: 24px 0; cursor: pointer; list-style: none; color: rgba(244,240,231,.9); font-size: 0.98rem; }
.prm-faq-row summary::-webkit-details-marker { display: none; }
.prm-faq-row[open] summary { color: var(--prm-gold); }
.prm-faq-row summary .prm-faq-plus { margin-top: 4px; flex-shrink: 0; color: var(--prm-gold); transition: transform 0.7s var(--prm-ease); font-size: 1.1rem; line-height: 1; }
.prm-faq-row[open] summary .prm-faq-plus { transform: rotate(45deg); }
.prm-faq-row-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.7s var(--prm-ease); }
.prm-faq-row[open] .prm-faq-row-body { grid-template-rows: 1fr; }
.prm-faq-row-body-inner { overflow: hidden; }
.prm-faq-row-body p { max-width: 36rem; padding: 0 32px 28px 0; font-size: 0.875rem; line-height: 1.65; color: var(--prm-muted); }

/* ── 17 Trusted by ── */
.prm-trusted-grid { margin-top: 64px; display: grid; grid-template-columns: 1fr 1fr; gap: 1px; border: 1px solid var(--prm-border); background: var(--prm-border); }
@media (min-width: 768px)  { .prm-trusted-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .prm-trusted-grid { grid-template-columns: repeat(6, 1fr); } }
.prm-trusted-card { display: flex; height: 160px; flex-direction: column; align-items: center; justify-content: center; gap: 16px; background: var(--prm-ink); padding: 16px; text-align: center; transition: background 0.7s; }
.prm-trusted-card:hover { background: var(--prm-surface); }
.prm-trusted-card svg { height: 36px; width: 36px; }
.prm-trusted-card span { font-family: var(--font-sans); font-size: 0.58rem; text-transform: uppercase; letter-spacing: 0.24em; color: var(--prm-muted); }

/* ── 18 CTA ── */
.prm-cta { position: relative; width: 100%; overflow: hidden; }
.prm-cta-media { position: relative; min-height: 85vh; width: 100%; }
.prm-cta-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.prm-cta-scrim { position: absolute; inset: 0; background: rgba(0,0,0,.55); }
.prm-cta-veil { position: absolute; inset: 0; background: linear-gradient(180deg, color-mix(in oklab, var(--prm-ink) 15%, transparent) 0%, color-mix(in oklab, var(--prm-ink) 55%, transparent) 45%, var(--prm-ink) 100%); }
.prm-cta-content { position: relative; display: flex; min-height: 85vh; flex-direction: column; justify-content: center; max-width: 1440px; margin: 0 auto; padding: 112px 24px; }
@media (min-width: 768px)  { .prm-cta-content { padding: 112px 48px; } }
@media (min-width: 1024px) { .prm-cta-content { padding-left: 80px; padding-right: 80px; } }
.prm-cta-content h2 { margin-top: 32px; max-width: 52rem; font-size: clamp(2.5rem, 6.2vw, 5.4rem); }
.prm-cta-content p { margin-top: 32px; max-width: 42rem; font-size: 1rem; line-height: 1.65; color: rgba(244,240,231,.8); }
@media (min-width: 768px) { .prm-cta-content p { font-size: 1.125rem; } }
.prm-cta-actions { margin-top: 48px; display: flex; flex-wrap: wrap; gap: 16px; }

/* ── Responsive tightening ── */
@media (max-width: 640px) {
  .prm-section { padding-top: 88px; padding-bottom: 88px; }
  .prm-hero-content { padding-top: 120px; }
}

/* ==========================================================================
   FAÇADE LIGHTING PAGE  (/facade  →  app/Views/shop/facade.php)
   ==========================================================================
   Ported 1:1 from an external reference build ("Lumina Architecture" / KERR
   Façade Lighting, built in Lovable). "fac-" namespaced so nothing leaks
   into the rest of the storefront. Token VALUES are copied from the /premium
   page's --prm-* set (renamed --fac-*) — the two dark premium marketing
   pages deliberately share one palette. Headings/body stay on this site's
   own Instrument Serif / Inter (the reference uses Archivo / Manrope), the
   same deliberate exception used on /premium and /smart-curtain-system.
   Real Kerr nav/footer (layouts/shop.php) replace the reference's own mock
   header/footer. Reveal-on-scroll reuses the site-wide .anim/.in-view
   mechanism wired in layouts/shop.php. FAQ uses native <details>/<summary>.
   ========================================================================== */
.fac-page {
  --fac-ink:       oklch(0.11 0.004 90);
  --fac-surface:   oklch(0.155 0.005 80);
  --fac-surface-2: oklch(0.205 0.008 80);
  --fac-fg:        oklch(0.965 0.004 90);
  --fac-muted:     oklch(0.68 0.008 85);
  --fac-border:    oklch(1 0 0 / 12%);
  --fac-gold:      oklch(0.79 0.115 82);
  --fac-gold-soft: oklch(0.88 0.075 88);
  --fac-gold-deep: oklch(0.6 0.1 74);
  --fac-gold-fg:   oklch(0.12 0.005 90);
  --fac-gradient-gold: linear-gradient(100deg, var(--fac-gold-deep) 0%, var(--fac-gold) 42%, var(--fac-gold-soft) 62%, var(--fac-gold-deep) 100%);
  --fac-shadow-lift: 0 30px 80px -40px oklch(0 0 0 / 0.9);
  --fac-ease: cubic-bezier(0.16, 1, 0.3, 1);
  background: var(--fac-ink);
  color: var(--fac-fg);
  font-family: var(--font-sans);
  font-weight: 300;
  letter-spacing: 0.01em;
  overflow: hidden;
}
.fac-page * { box-sizing: border-box; }
.fac-page img { max-width: 100%; display: block; }
.fac-page section[id] { scroll-margin-top: 96px; }

/* ── Layout ── */
.fac-section { position: relative; width: 100%; overflow: hidden; padding: 112px 24px; background: var(--fac-ink); }
@media (min-width: 768px)  { .fac-section { padding: 160px 48px; } }
@media (min-width: 1024px) { .fac-section { padding-left: 80px; padding-right: 80px; } }
.fac-section--surface { background: var(--fac-surface); }
.fac-inner { max-width: 1400px; margin: 0 auto; width: 100%; }
.fac-inner--narrow { max-width: 1100px; }

/* ── Typography ── */
.fac-eyebrow { font-family: var(--font-sans); font-size: 0.6875rem; font-weight: 500; letter-spacing: 0.32em; text-transform: uppercase; color: var(--fac-gold); }
.fac-gold-text {
  background-image: var(--fac-gradient-gold);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.fac-h2, .fac-hero-h1, .fac-cta-h2 { font-family: var(--font-serif); font-weight: 400; line-height: 1.05; letter-spacing: -0.01em; }

/* ── Section head ── */
.fac-head { display: flex; flex-direction: column; max-width: 56rem; }
.fac-head--center { margin: 0 auto; max-width: 48rem; text-align: center; align-items: center; }
.fac-h2 { font-size: clamp(2.2rem, 5vw, 3.75rem); }
.fac-head .fac-h2 { margin-top: 24px; }
.fac-lead { margin-top: 24px; max-width: 42rem; font-size: 1rem; line-height: 1.65; color: var(--fac-muted); }
@media (min-width: 768px) { .fac-lead { font-size: 1.0625rem; } }
.fac-head--center .fac-lead { margin-left: auto; margin-right: auto; }

/* ── Buttons ── */
.fac-btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; overflow: hidden;
  padding: 16px 34px; font-family: var(--font-sans); font-size: 0.6875rem; text-transform: uppercase; letter-spacing: 0.28em;
  font-weight: 500; transition: all 0.6s var(--fac-ease); background-image: var(--fac-gradient-gold);
  color: var(--fac-gold-fg); border: none; cursor: pointer; text-decoration: none;
}
.fac-btn span { position: relative; z-index: 1; }
.fac-btn::after { content: ''; position: absolute; inset: 0; background: rgba(255,255,255,.25); transform: translateX(-100%); transition: transform 0.9s; }
.fac-btn:hover::after { transform: translateX(100%); }
.fac-btn--ghost { background-image: none; background: transparent; color: var(--fac-fg); border: 1px solid oklch(1 0 0 / 25%); }
.fac-btn--ghost:hover { border-color: var(--fac-gold); color: var(--fac-gold); }
.fac-btn--play {
  display: inline-flex; align-items: center; gap: 12px; padding: 16px 8px; text-decoration: none;
  font-family: var(--font-sans); font-size: 0.6875rem; text-transform: uppercase; letter-spacing: 0.28em;
  color: var(--fac-muted); transition: color 0.5s;
}
.fac-btn--play:hover { color: var(--fac-gold); }
.fac-btn-play-dot { display: inline-flex; height: 36px; width: 36px; align-items: center; justify-content: center; border-radius: 50%; border: 1px solid oklch(1 0 0 / 25%); font-size: 0.6rem; transition: border-color 0.5s; }
.fac-btn--play:hover .fac-btn-play-dot { border-color: var(--fac-gold); }

/* ── 01 Hero ── */
.fac-hero { position: relative; display: flex; align-items: flex-end; min-height: 100svh; width: 100%; overflow: hidden; background: var(--fac-ink); }
.fac-hero-media { position: absolute; inset: 0; }
.fac-hero-media img { width: 100%; height: 100%; object-fit: cover; animation: fac-drift 34s ease-in-out infinite alternate; }
@keyframes fac-drift { 0% { transform: scale(1.06); } 100% { transform: scale(1.16) translate3d(-1.5%,-1.5%,0); } }
.fac-hero-rgbw { position: absolute; inset: 0; mix-blend-mode: screen; animation: fac-rgbw 22s ease-in-out infinite; pointer-events: none; }
.fac-hero-veil { position: absolute; inset: 0; background: linear-gradient(to top, var(--fac-ink), color-mix(in oklab, var(--fac-ink) 60%, transparent) 45%, color-mix(in oklab, var(--fac-ink) 30%, transparent)); }
.fac-hero-scan { position: absolute; top: 0; bottom: 0; left: 25%; width: 1px; background: linear-gradient(to bottom, transparent, color-mix(in oklab, var(--fac-gold) 50%, transparent), transparent); animation: fac-scan 7s linear infinite; pointer-events: none; }
.fac-hero-content { position: relative; z-index: 2; width: 100%; max-width: 1400px; margin: 0 auto; padding: 160px 24px 80px; }
@media (min-width: 768px)  { .fac-hero-content { padding: 160px 48px 112px; } }
@media (min-width: 1024px) { .fac-hero-content { padding-left: 80px; padding-right: 80px; } }
.fac-hero-h1 { margin-top: 32px; font-size: clamp(2.75rem, 9vw, 6.5rem); line-height: 0.95; letter-spacing: -0.02em; }
/* background-clip:text paints only the line box; with line-height < 1 the
   descenders (g, y) fall outside it and vanish — pad the box, pull it back. */
.fac-hero-h1 .fac-gold-text { display: block; padding-bottom: 0.14em; margin-bottom: -0.14em; }
.fac-hero-sub { margin-top: 40px; max-width: 42rem; font-size: 1.0625rem; line-height: 1.6; font-weight: 300; color: color-mix(in oklab, var(--fac-fg) 85%, transparent); }
@media (min-width: 768px) { .fac-hero-sub { font-size: 1.25rem; } }
.fac-hero-support { margin-top: 24px; max-width: 48rem; font-size: 0.875rem; line-height: 1.65; color: var(--fac-muted); }
@media (min-width: 768px) { .fac-hero-support { font-size: 1rem; } }
.fac-hero-ctas { margin-top: 48px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }

/* ── 02 Trust bar ── */
.fac-trust { overflow: hidden; border-top: 1px solid var(--fac-border); border-bottom: 1px solid var(--fac-border); background: var(--fac-ink); padding: 24px 0; }
.fac-trust-row { display: flex; align-items: center; gap: 24px; padding: 0 24px; }
@media (min-width: 768px) { .fac-trust-row { padding: 0 48px; } }
.fac-trust-label { flex-shrink: 0; }
.fac-trust-viewport { position: relative; flex: 1; overflow: hidden; }
.fac-trust-track { display: flex; width: max-content; gap: 48px; white-space: nowrap; animation: fac-marquee 45s linear infinite; }
.fac-trust-item { font-size: 0.75rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--fac-muted); }

/* ── 03 Why Kerr ── */
.fac-why-grid { margin-top: 80px; display: grid; gap: 1px; background: var(--fac-border); }
@media (min-width: 768px)  { .fac-why-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .fac-why-grid { grid-template-columns: repeat(3, 1fr); } }
.fac-why-card { height: 100%; background: var(--fac-ink); padding: 32px; transition: background 0.5s; }
@media (min-width: 768px) { .fac-why-card { padding: 40px; } }
.fac-why-card:hover { background: var(--fac-surface); }
.fac-why-n { font-family: var(--font-serif); font-size: 0.75rem; letter-spacing: 0.3em; color: var(--fac-gold); }
.fac-why-t { margin-top: 24px; font-family: var(--font-serif); font-weight: 400; font-size: 1.5rem; line-height: 1.15; }
.fac-why-d { margin-top: 16px; font-size: 0.875rem; line-height: 1.65; color: var(--fac-muted); }
.fac-why-rule { display: block; margin-top: 32px; height: 1px; width: 40px; background: color-mix(in oklab, var(--fac-gold) 50%, transparent); transition: width 0.7s var(--fac-ease); }
.fac-why-card:hover .fac-why-rule { width: 100%; }

/* ── 04 Engineering excellence ── */
.fac-eng { position: relative; overflow: hidden; border-top: 1px solid var(--fac-border); border-bottom: 1px solid var(--fac-border); background: var(--fac-ink); padding: 112px 24px; }
@media (min-width: 768px)  { .fac-eng { padding: 160px 48px; } }
@media (min-width: 1024px) { .fac-eng { padding-left: 80px; padding-right: 80px; } }
.fac-eng-ring { position: absolute; border-radius: 50%; border: 1px solid color-mix(in oklab, var(--fac-gold) 15%, transparent); animation: fac-pulse-ring 4s ease-in-out infinite; pointer-events: none; }
.fac-eng-ring--1 { top: -10rem; right: -10rem; height: 36rem; width: 36rem; }
.fac-eng-ring--2 { bottom: -13rem; left: -8rem; height: 30rem; width: 30rem; border-color: color-mix(in oklab, var(--fac-gold) 10%, transparent); animation-delay: 1.4s; }
.fac-eng-grid { position: relative; display: grid; gap: 64px; align-items: center; }
@media (min-width: 1024px) { .fac-eng-grid { grid-template-columns: 1fr 1.1fr; gap: 96px; } }
.fac-eng-list { margin-top: 48px; display: grid; gap: 4px 32px; }
@media (min-width: 640px) { .fac-eng-list { grid-template-columns: 1fr 1fr; } }
.fac-eng-list li { display: flex; align-items: flex-start; gap: 12px; border-bottom: 1px solid var(--fac-border); padding: 12px 0; font-size: 0.875rem; color: var(--fac-muted); transition: color 0.3s; }
.fac-eng-list li:hover { color: var(--fac-fg); }
.fac-eng-tick { margin-top: 7px; height: 4px; width: 4px; flex-shrink: 0; border-radius: 999px; background: var(--fac-gold); transition: width 0.5s; }
.fac-eng-list li:hover .fac-eng-tick { width: 16px; }
.fac-eng-panel { position: relative; border: 1px solid var(--fac-border); background: linear-gradient(to bottom, oklch(1 0 0 / 4%), transparent); padding: 32px; }
.fac-eng-panel > img { width: 100%; height: auto; transition: transform 1.4s var(--fac-ease); }
.fac-eng-panel:hover > img { transform: scale(1.03); }
.fac-eng-tiles { margin-top: 32px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--fac-border); }
.fac-eng-tile { background: var(--fac-ink); padding: 20px; text-align: center; }
.fac-eng-tile-k { font-family: var(--font-serif); font-size: 1.125rem; color: var(--fac-gold); }
.fac-eng-tile-v { margin-top: 4px; font-size: 0.625rem; letter-spacing: 0.25em; text-transform: uppercase; color: var(--fac-muted); }

/* ── 05 RGBW ── */
.fac-ba-wrap { margin-top: 64px; }
.fac-ba { position: relative; aspect-ratio: 16 / 10; width: 100%; overflow: hidden; border: 1px solid var(--fac-border); cursor: ew-resize; user-select: none; touch-action: none; }
.fac-ba-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.fac-ba-clip { position: absolute; inset: 0; overflow: hidden; clip-path: inset(0 52% 0 0); }
.fac-ba-divider { position: absolute; top: 0; bottom: 0; left: 48%; width: 1px; background: var(--fac-gold); pointer-events: none; }
.fac-ba-handle { position: absolute; top: 50%; left: 50%; display: flex; height: 44px; width: 44px; transform: translate(-50%, -50%); align-items: center; justify-content: center; border-radius: 50%; border: 1px solid var(--fac-gold); background: color-mix(in oklab, var(--fac-ink) 70%, transparent); backdrop-filter: blur(6px); font-size: 0.625rem; letter-spacing: 0.2em; color: var(--fac-gold); }
.fac-ba-tag { position: absolute; bottom: 16px; font-family: var(--font-sans); font-size: 0.6875rem; font-weight: 500; letter-spacing: 0.32em; text-transform: uppercase; color: var(--fac-gold); background: color-mix(in oklab, var(--fac-ink) 50%, transparent); padding: 6px 12px; backdrop-filter: blur(4px); pointer-events: none; }
.fac-ba-tag--l { left: 16px; }
.fac-ba-tag--r { right: 16px; }
.fac-ba-caption { margin-top: 16px; font-size: 0.6875rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--fac-muted); }

.fac-stage { margin-top: 80px; display: grid; gap: 32px; }
@media (min-width: 1024px) { .fac-stage { grid-template-columns: 1.55fr 1fr; } }
.fac-stage-view { position: relative; aspect-ratio: 16 / 10; overflow: hidden; border: 1px solid var(--fac-border); }
.fac-stage-view > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.fac-stage-overlay { position: absolute; inset: 0; mix-blend-mode: screen; transition: background 2.2s var(--fac-ease); }
.fac-stage-cap { position: absolute; inset-inline: 0; bottom: 0; padding: 24px; padding-top: 96px; background: linear-gradient(to top, var(--fac-ink), transparent); }
.fac-stage-cap h4 { margin-top: 8px; font-family: var(--font-serif); font-weight: 400; font-size: 1.5rem; }
.fac-stage-note { margin-top: 4px; max-width: 28rem; font-size: 0.875rem; color: var(--fac-muted); }
.fac-stage-panel {
  display: flex; flex-direction: column; justify-content: space-between; gap: 32px; padding: 24px;
  border: 1px solid var(--fac-border);
  background: linear-gradient(160deg, oklch(1 0 0 / 6%), oklch(1 0 0 / 2%) 45%, oklch(1 0 0 / 0%));
  backdrop-filter: blur(14px);
}
.fac-stage-scenes { list-style: none; margin: 24px 0 0; padding: 0; }
.fac-stage-scene { display: flex; width: 100%; align-items: center; justify-content: space-between; border: none; border-bottom: 1px solid var(--fac-border); background: none; padding: 12px 0; text-align: left; font-family: inherit; font-size: 0.875rem; color: var(--fac-muted); cursor: pointer; transition: color 0.3s; }
.fac-stage-scene:hover { color: var(--fac-fg); }
.fac-stage-scene.is-active { color: var(--fac-gold); }
.fac-stage-scene-n { font-size: 0.625rem; letter-spacing: 0.25em; }
.fac-stage-channels { display: flex; flex-direction: column; gap: 12px; }
.fac-chan { display: flex; align-items: center; gap: 16px; }
.fac-chan-label { width: 16px; font-size: 0.75rem; color: var(--fac-muted); }
.fac-chan-track { height: 3px; flex: 1; background: oklch(1 0 0 / 10%); }
.fac-chan-fill { height: 100%; width: 0; transition: width 1.8s var(--fac-ease); }
.fac-chan-val { width: 36px; text-align: right; font-size: 0.6875rem; color: var(--fac-muted); font-variant-numeric: tabular-nums; }
.fac-stage-toggle { margin-top: 16px; width: 100%; border: 1px solid var(--fac-border); background: none; padding: 12px; font-family: inherit; font-size: 0.6875rem; letter-spacing: 0.28em; text-transform: uppercase; color: var(--fac-muted); cursor: pointer; transition: border-color 0.3s, color 0.3s; }
.fac-stage-toggle:hover { border-color: var(--fac-gold); color: var(--fac-gold); }

.fac-rgbw-cards { margin-top: 64px; display: grid; gap: 1px; background: var(--fac-border); }
@media (min-width: 768px) { .fac-rgbw-cards { grid-template-columns: repeat(3, 1fr); } }
.fac-rgbw-card { background: var(--fac-ink); padding: 32px; }
.fac-rgbw-card-t { font-family: var(--font-serif); font-weight: 400; font-size: 1.25rem; color: var(--fac-gold); }
.fac-rgbw-card-d { margin-top: 12px; font-size: 0.875rem; line-height: 1.65; color: var(--fac-muted); }

/* ── 06 Product range ── */
.fac-prod-grid { margin-top: 64px; display: grid; gap: 1px; background: var(--fac-border); }
@media (min-width: 640px)  { .fac-prod-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .fac-prod-grid { grid-template-columns: repeat(3, 1fr); } }
.fac-prod-card { position: relative; display: block; width: 100%; overflow: hidden; border: none; background: var(--fac-ink); text-align: left; padding: 0; cursor: pointer; color: inherit; font: inherit; }
.fac-prod-media { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; }
.fac-prod-media img { width: 100%; height: 100%; object-fit: cover; opacity: 0.55; transition: transform 1.2s var(--fac-ease), opacity 1.2s var(--fac-ease); }
.fac-prod-card:hover .fac-prod-media img { transform: scale(1.05); opacity: 0.9; }
.fac-prod-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, var(--fac-ink), color-mix(in oklab, var(--fac-ink) 30%, transparent) 45%, transparent); }
.fac-prod-info { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; padding: 24px; }
.fac-prod-name { display: block; margin-top: 8px; font-size: 1.25rem; font-weight: 300; }
.fac-prod-view { font-size: 0.75rem; letter-spacing: 0.25em; color: var(--fac-muted); transition: color 0.3s; }
.fac-prod-card:hover .fac-prod-view { color: var(--fac-gold); }

/* product-gallery modal */
.fac-modal { position: fixed; inset: 0; z-index: 1200; display: flex; align-items: flex-start; justify-content: center; overflow-y: auto; background: color-mix(in oklab, var(--fac-ink) 90%, transparent); backdrop-filter: blur(10px); padding: 16px; }
@media (min-width: 768px) { .fac-modal { padding: 40px; } }
.fac-modal[hidden] { display: none; }
.fac-modal-box { width: 100%; max-width: 64rem; border: 1px solid var(--fac-border); background: var(--fac-ink); animation: fac-scale-in 0.4s var(--fac-ease); }
.fac-modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--fac-border); padding: 24px; }
@media (min-width: 768px) { .fac-modal-head { padding: 32px; } }
.fac-modal-title { margin-top: 12px; font-family: var(--font-serif); font-weight: 400; font-size: 1.875rem; line-height: 1.1; }
@media (min-width: 768px) { .fac-modal-title { font-size: 2.25rem; } }
.fac-modal-close { border: none; background: none; font-family: inherit; font-size: 0.8125rem; letter-spacing: 0.25em; color: var(--fac-muted); cursor: pointer; transition: color 0.3s; }
.fac-modal-close:hover { color: var(--fac-gold); }
.fac-modal-gallery { display: grid; gap: 1px; background: var(--fac-border); }
@media (min-width: 768px) { .fac-modal-gallery { grid-template-columns: 1fr 1fr; } }
.fac-modal-gallery img { aspect-ratio: 4 / 3; width: 100%; background: var(--fac-ink); object-fit: cover; }
.fac-modal-dl { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin: 0; background: var(--fac-border); }
@media (min-width: 768px) { .fac-modal-dl { grid-template-columns: repeat(5, 1fr); } }
.fac-modal-dl > div { background: var(--fac-ink); padding: 24px; }
.fac-modal-dl dt { font-family: var(--font-sans); font-size: 0.6875rem; font-weight: 500; letter-spacing: 0.32em; text-transform: uppercase; color: var(--fac-gold); }
.fac-modal-dl dd { margin: 12px 0 0; font-size: 0.875rem; color: color-mix(in oklab, var(--fac-fg) 90%, transparent); }

/* ── 07 Customization ── */
.fac-custom-grid { margin-top: 64px; display: grid; gap: 48px; align-items: center; }
@media (min-width: 1024px) { .fac-custom-grid { grid-template-columns: 1.15fr 1fr; } }
.fac-custom-fig { position: relative; border: 1px solid var(--fac-border); background: linear-gradient(to bottom right, oklch(1 0 0 / 5%), transparent); padding: 24px; overflow: hidden; }
@media (min-width: 768px) { .fac-custom-fig { padding: 40px; } }
.fac-custom-fig img { width: 100%; height: auto; }
.fac-custom-scan { position: absolute; left: 40px; right: 40px; top: 50%; height: 1px; background: linear-gradient(to right, transparent, color-mix(in oklab, var(--fac-gold) 40%, transparent), transparent); animation: fac-scan-h 7s linear infinite; }
.fac-custom-list { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin: 0; padding: 0; list-style: none; background: var(--fac-border); }
@media (min-width: 640px)  { .fac-custom-list { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .fac-custom-list { grid-template-columns: 1fr 1fr; } }
.fac-custom-list li { background: var(--fac-ink); padding: 20px; font-size: 0.875rem; color: var(--fac-muted); transition: background 0.4s, color 0.4s; }
.fac-custom-list li:hover { background: var(--fac-surface); color: var(--fac-gold); }

/* ── 08 Warranty ── */
.fac-warranty-grid { margin-top: 64px; display: grid; gap: 1px; background: var(--fac-border); }
@media (min-width: 768px)  { .fac-warranty-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .fac-warranty-grid { grid-template-columns: repeat(4, 1fr); } }
.fac-warranty-card {
  height: 100%; padding: 32px; border: 1px solid var(--fac-border);
  background: linear-gradient(160deg, oklch(1 0 0 / 6%), oklch(1 0 0 / 2%) 45%, oklch(1 0 0 / 0%));
  backdrop-filter: blur(14px);
  transition: border-color 0.5s, transform 0.5s var(--fac-ease);
}
@media (min-width: 768px) { .fac-warranty-card { padding: 40px; } }
.fac-warranty-card:hover { border-color: color-mix(in oklab, var(--fac-gold) 45%, transparent); transform: translateY(-4px); }
.fac-warranty-k { font-family: var(--font-serif); font-weight: 400; font-size: 2.25rem; }
.fac-warranty-t { margin-top: 24px; font-size: 1.125rem; font-weight: 300; }
.fac-warranty-d { margin-top: 12px; font-size: 0.875rem; line-height: 1.65; color: var(--fac-muted); }

/* ── 09 Performance ── */
.fac-perf-grid { margin-top: 64px; display: grid; gap: 1px; background: var(--fac-border); }
@media (min-width: 640px)  { .fac-perf-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .fac-perf-grid { grid-template-columns: repeat(4, 1fr); } }
.fac-perf-card { height: 100%; background: var(--fac-ink); padding: 32px; transition: background 0.5s; }
@media (min-width: 768px) { .fac-perf-card { padding: 40px; } }
.fac-perf-card:hover { background: var(--fac-surface); }
.fac-perf-value { font-family: var(--font-serif); font-weight: 400; font-size: clamp(2.5rem, 5vw, 3.5rem); line-height: 1; letter-spacing: -0.02em; }
.fac-perf-label { margin-top: 24px; font-size: 0.6875rem; letter-spacing: 0.25em; text-transform: uppercase; color: color-mix(in oklab, var(--fac-fg) 80%, transparent); }
.fac-perf-note { margin-top: 8px; font-size: 0.75rem; color: var(--fac-muted); }

/* ── 10 Applications ── */
.fac-app-grid { margin-top: 64px; display: flex; flex-wrap: wrap; gap: 1px; background: var(--fac-border); }
.fac-app-card { flex: 1 1 auto; background: var(--fac-ink); padding: 40px 32px; transition: background 0.5s; }
.fac-app-card:hover { background: var(--fac-surface); }
.fac-app-n { font-size: 0.625rem; letter-spacing: 0.3em; color: color-mix(in oklab, var(--fac-gold) 70%, transparent); }
.fac-app-name { margin-top: 16px; font-family: var(--font-serif); font-weight: 400; font-size: 1.25rem; white-space: nowrap; transition: color 0.5s; }
.fac-app-card:hover .fac-app-name { color: var(--fac-gold); }

/* ── 11 Process ── */
.fac-proc-list { margin: 64px 0 0; padding: 0; list-style: none; border-left: 1px solid var(--fac-border); }
.fac-proc-item { position: relative; display: grid; gap: 8px; padding: 28px 0 28px 40px; }
@media (min-width: 768px) { .fac-proc-item { grid-template-columns: 14rem 1fr; align-items: baseline; gap: 32px; } }
.fac-proc-dot { position: absolute; top: 34px; left: -5px; height: 10px; width: 10px; border-radius: 50%; border: 1px solid var(--fac-gold); background: var(--fac-ink); transition: background 0.5s; }
.fac-proc-item:hover .fac-proc-dot { background: var(--fac-gold); }
.fac-proc-step { font-size: 0.6875rem; letter-spacing: 0.28em; text-transform: uppercase; color: var(--fac-gold); }
.fac-proc-desc { font-size: 0.875rem; line-height: 1.65; color: var(--fac-muted); transition: color 0.5s; }
.fac-proc-item:hover .fac-proc-desc { color: var(--fac-fg); }

/* ── 12 Gallery ── */
.fac-gal-grid { margin-top: 64px; display: grid; grid-auto-rows: 280px; gap: 16px; }
@media (min-width: 768px) { .fac-gal-grid { grid-template-columns: repeat(3, 1fr); } }
.fac-gal-fig { position: relative; margin: 0; height: 100%; overflow: hidden; border: 1px solid var(--fac-border); }
@media (min-width: 768px) { .fac-gal-fig--tall { grid-row: span 2; } }
.fac-gal-fig img { height: 100%; width: 100%; object-fit: cover; transition: transform 1.6s var(--fac-ease); }
.fac-gal-fig:hover img { transform: scale(1.1); }
.fac-gal-cap { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 24px; background: linear-gradient(to top, var(--fac-ink), color-mix(in oklab, var(--fac-ink) 30%, transparent) 45%, transparent); }
.fac-gal-title { margin-top: 8px; font-family: var(--font-serif); font-weight: 400; font-size: 1.25rem; }
.fac-gal-dl { margin: 16px 0 0; max-height: 0; overflow: hidden; font-size: 0.75rem; color: var(--fac-muted); transition: max-height 0.7s var(--fac-ease); }
.fac-gal-fig:hover .fac-gal-dl { max-height: 12rem; }
.fac-gal-dl > div { display: flex; gap: 8px; padding-top: 4px; }
.fac-gal-dl dt { width: 7rem; flex-shrink: 0; margin: 0; color: color-mix(in oklab, var(--fac-fg) 50%, transparent); }
.fac-gal-dl dd { margin: 0; }

/* ── 13 Comparison ── */
.fac-cmp-wrap { margin-top: 64px; overflow-x: auto; }
.fac-cmp { width: 100%; min-width: 640px; border-collapse: collapse; text-align: left; }
.fac-cmp th { padding: 20px 24px 20px 0; font-family: var(--font-sans); font-size: 0.6875rem; font-weight: 500; letter-spacing: 0.28em; text-transform: uppercase; color: var(--fac-muted); border-bottom: 1px solid var(--fac-border); }
.fac-cmp th.fac-cmp-kerr { color: var(--fac-gold); }
.fac-cmp td { padding: 20px 24px 20px 0; font-size: 0.875rem; border-bottom: 1px solid var(--fac-border); }
.fac-cmp tbody tr { transition: background 0.3s; }
.fac-cmp tbody tr:hover { background: var(--fac-surface); }
.fac-cmp-cap { font-weight: 300; }
.fac-cmp td.fac-cmp-kerr { color: var(--fac-gold); }
.fac-cmp-other { color: var(--fac-muted); }

/* ── 14 FAQ ── */
.fac-faq { margin-top: 56px; border-top: 1px solid var(--fac-border); border-bottom: 1px solid var(--fac-border); }
.fac-faq-row { border-bottom: 1px solid var(--fac-border); }
.fac-faq-row:last-child { border-bottom: none; }
.fac-faq-row summary { display: flex; align-items: flex-start; justify-content: space-between; gap: 32px; padding: 24px 0; cursor: pointer; list-style: none; }
.fac-faq-row summary::-webkit-details-marker { display: none; }
.fac-faq-q { font-family: var(--font-serif); font-weight: 400; font-size: 1.125rem; line-height: 1.3; transition: color 0.3s; }
@media (min-width: 768px) { .fac-faq-q { font-size: 1.25rem; } }
.fac-faq-row[open] .fac-faq-q, .fac-faq-row summary:hover .fac-faq-q { color: var(--fac-gold); }
.fac-faq-plus { margin-top: 4px; color: var(--fac-gold); transition: transform 0.5s var(--fac-ease); flex-shrink: 0; }
.fac-faq-row[open] .fac-faq-plus { transform: rotate(45deg); }
.fac-faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.5s var(--fac-ease); }
.fac-faq-row[open] .fac-faq-a { grid-template-rows: 1fr; }
.fac-faq-a-inner { overflow: hidden; }
.fac-faq-a p { max-width: 48rem; padding-bottom: 32px; font-size: 0.875rem; line-height: 1.65; color: var(--fac-muted); }

/* ── 15 Final CTA ── */
.fac-cta { position: relative; overflow: hidden; }
.fac-cta-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.6; }
.fac-cta-rgbw { position: absolute; inset: 0; mix-blend-mode: screen; animation: fac-rgbw 22s ease-in-out infinite; pointer-events: none; }
.fac-cta-veil { position: absolute; inset: 0; background: linear-gradient(to top, var(--fac-ink), color-mix(in oklab, var(--fac-ink) 80%, transparent) 50%); }
.fac-cta-content { position: relative; max-width: 1400px; margin: 0 auto; padding: 128px 24px; text-align: center; }
@media (min-width: 768px) { .fac-cta-content { padding: 192px 48px; } }
.fac-cta-h2 { margin: 0 auto; max-width: 56rem; font-size: clamp(2.25rem, 6vw, 4.5rem); }
.fac-cta-content > p { margin: 32px auto 0; max-width: 42rem; font-size: 1rem; line-height: 1.65; color: color-mix(in oklab, var(--fac-fg) 80%, transparent); }
.fac-cta-actions { margin-top: 48px; display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }

/* ── Keyframes ── */
@keyframes fac-rgbw {
  0%   { opacity: 0.55; background: radial-gradient(60% 70% at 30% 60%, oklch(0.62 0.19 265 / 55%), transparent 70%); }
  25%  { opacity: 0.5;  background: radial-gradient(60% 70% at 70% 45%, oklch(0.6 0.22 330 / 50%), transparent 70%); }
  50%  { opacity: 0.45; background: radial-gradient(65% 75% at 45% 55%, oklch(0.7 0.16 175 / 48%), transparent 72%); }
  75%  { opacity: 0.4;  background: radial-gradient(60% 70% at 60% 65%, oklch(0.88 0.07 88 / 45%), transparent 70%); }
  100% { opacity: 0.55; background: radial-gradient(60% 70% at 30% 60%, oklch(0.62 0.19 265 / 55%), transparent 70%); }
}
@keyframes fac-scan { 0% { transform: translateY(-20%); opacity: 0; } 40% { opacity: 0.8; } 100% { transform: translateY(620%); opacity: 0; } }
@keyframes fac-scan-h { 0% { transform: translateX(-40%); opacity: 0; } 40% { opacity: 0.8; } 100% { transform: translateX(40%); opacity: 0; } }
@keyframes fac-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes fac-pulse-ring { 0%, 100% { opacity: 0.25; transform: scale(1); } 50% { opacity: 0.7; transform: scale(1.06); } }
@keyframes fac-scale-in { from { opacity: 0; transform: scale(0.97); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .fac-hero-media img, .fac-hero-rgbw, .fac-hero-scan, .fac-cta-rgbw,
  .fac-eng-ring, .fac-trust-track, .fac-custom-scan { animation: none; }
}

/* ── Responsive tightening ── */
@media (max-width: 640px) {
  .fac-section, .fac-eng { padding-top: 88px; padding-bottom: 88px; }
  .fac-hero-content { padding-top: 128px; }
  .fac-app-name { white-space: normal; }
}
