/* KEENS: dark-first, circuit-trace tech look with a classic gold and serif voice.
   Layout: dark hero and product bands, cream "paper" bands for reading sections. */

:root {
  /* dark theme (default) */
  --bg: #0c0d0f;
  --bg-alt: #121417;
  --panel: #181b1f;
  --panel-2: #1f2328;
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.2);
  --ink: #efeadc;
  --ink-soft: #b9b4a6;
  --ink-mute: #8e8a7f;
  --gold: #d6ab55;
  --gold-deep: #b88c3f;
  --on-gold: #17130a;
  --trace: rgba(214, 171, 85, 0.22);
  --tile: #c3c6cb;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  --header-bg: rgba(12, 13, 15, 0.82);
  --ok: #6fbf8e;
  --err: #f0876a;

  --font-display: "Cormorant Garamond", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-body: "Instrument Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --gutter: clamp(1rem, 4vw, 2.5rem);
  --maxw: 1240px;
  --radius: 14px;
  --radius-sm: 8px;
  color-scheme: dark;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #f5f0e5;
    --bg-alt: #ece5d4;
    --panel: #fbf8f1;
    --panel-2: #f1ead9;
    --line: rgba(23, 20, 15, 0.12);
    --line-strong: rgba(23, 20, 15, 0.26);
    --ink: #17140f;
    --ink-soft: #4c473c;
    --ink-mute: #6a6558;
    --gold: #8a5f1c;
    --gold-deep: #6f4a12;
    --on-gold: #fffaf0;
    --trace: rgba(138, 95, 28, 0.2);
    --tile: #c3c6cb;
    --shadow: 0 16px 40px rgba(60, 45, 15, 0.16);
    --header-bg: rgba(245, 240, 229, 0.86);
    --ok: #2f7a4d;
    --err: #a3301a;
    color-scheme: light;
  }
}

:root[data-theme="light"] {
  --bg: #f5f0e5;
  --bg-alt: #ece5d4;
  --panel: #fbf8f1;
  --panel-2: #f1ead9;
  --line: rgba(23, 20, 15, 0.12);
  --line-strong: rgba(23, 20, 15, 0.26);
  --ink: #17140f;
  --ink-soft: #4c473c;
  --ink-mute: #6a6558;
  --gold: #8a5f1c;
  --gold-deep: #6f4a12;
  --on-gold: #fffaf0;
  --trace: rgba(138, 95, 28, 0.2);
  --tile: #c3c6cb;
  --shadow: 0 16px 40px rgba(60, 45, 15, 0.16);
  --header-bg: rgba(245, 240, 229, 0.86);
  --ok: #2f7a4d;
  --err: #a3301a;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 5.5rem; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--gold);
  color: var(--on-gold);
  border-radius: var(--radius-sm);
  text-decoration: none;
}
.skip-link:focus { top: 1rem; }

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- type ---------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}
.eyebrow::before {
  content: "";
  width: 2.25rem;
  height: 1px;
  background: currentColor;
}

.display {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.lede {
  color: var(--ink-soft);
  font-size: 1.1rem;
  max-width: 62ch;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 2.9rem;
  padding: 0.7rem 1.5rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-gold { background: var(--gold); color: var(--on-gold); }
.btn-gold:hover { background: var(--gold-deep); color: var(--on-gold); }
.btn-ghost { border-color: var(--line-strong); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 50;
  background: var(--header-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.header-row {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  min-height: 4.5rem;
}

.brand {
  display: block;
  flex: none;
  width: 7.4rem;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 0 0 1px var(--line);
}
.brand img { width: 100%; }

.nav { margin-left: auto; }
.nav-list { display: flex; align-items: center; gap: 0.25rem; }
.nav-list a {
  display: block;
  padding: 0.5rem 0.8rem;
  border-radius: 999px;
  font-size: 0.9rem;
  text-decoration: none;
  color: var(--ink-soft);
  transition: color 0.2s ease, background-color 0.2s ease;
}
.nav-list a:hover { color: var(--ink); background: var(--panel); }

.header-actions { display: flex; align-items: center; gap: 0.5rem; }

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  color: var(--ink);
  transition: border-color 0.2s ease, color 0.2s ease;
}
.icon-btn:hover { border-color: var(--gold); color: var(--gold); }
.icon-btn svg { width: 1.15rem; height: 1.15rem; }
.menu-btn { display: none; }

@media (max-width: 980px) {
  .menu-btn { display: inline-grid; }
  .header-cta { display: none; }
  .nav {
    position: absolute;
    inset: 100% 0 auto 0;
    margin: 0;
    padding: 0.75rem var(--gutter) 1.25rem;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav.is-open { display: block; }
  .nav-list { flex-direction: column; align-items: stretch; }
  .nav-list a { padding: 0.8rem 0.5rem; font-size: 1rem; border-radius: var(--radius-sm); }
  .header-actions { margin-left: auto; }
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(2.5rem, 5.5vw, 4.5rem);
  border-bottom: 1px solid var(--line);
}

.traces {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  color: var(--trace);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.hero h1 {
  margin-top: 1.25rem;
  font-size: clamp(2.8rem, 6.4vw, 5.4rem);
}
.hero h1 em { font-style: italic; color: var(--gold); }
.hero .lede { margin-top: 1.5rem; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }

.access-line {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 2.25rem;
}

.chip {
  display: inline-block;
  padding: 0.22rem 0.6rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  white-space: nowrap;
}

.hero-visual {
  position: relative;
  justify-self: center;
  width: min(100%, 25rem);
}

.hero-frame {
  position: relative;
  aspect-ratio: 9 / 12.2;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--line-strong);
}
.hero-frame img { width: 100%; height: 100%; object-fit: cover; }

.hero-visual::before,
.hero-visual::after {
  content: "";
  position: absolute;
  width: 3.2rem;
  height: 3.2rem;
  border: 1px solid var(--gold);
  pointer-events: none;
}
.hero-visual::before { top: -0.9rem; left: -0.9rem; border-right: 0; border-bottom: 0; }
.hero-visual::after { right: -0.9rem; bottom: -0.9rem; border-left: 0; border-top: 0; }

.hero-tag {
  position: absolute;
  left: -1rem;
  bottom: 2.2rem;
  padding: 0.6rem 0.9rem;
  background: var(--panel);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  box-shadow: var(--shadow);
}
.hero-tag strong { display: block; color: var(--gold); font-weight: 500; font-size: 0.78rem; }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-visual { width: min(100%, 22rem); margin-top: 1rem; }
  .hero-tag { left: 0.5rem; }
}

/* ---------- stats ---------- */

.stats { background: var(--bg-alt); border-bottom: 1px solid var(--line); }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.stat {
  padding: 1.6rem 1rem;
  border-left: 1px solid var(--line);
}
.stat:first-child { border-left: 0; padding-left: 0; }
.stat b {
  display: block;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.9rem, 3.4vw, 2.7rem);
  line-height: 1;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}
.stat span {
  display: block;
  margin-top: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
@media (max-width: 700px) {
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat b { font-size: clamp(1.45rem, 7vw, 2.1rem); }
  .stat:nth-child(odd) { border-left: 0; padding-left: 0; }
  .stat:nth-child(n + 3) { border-top: 1px solid var(--line); }
}

/* ---------- sections ---------- */

.section { padding-block: clamp(2.75rem, 6vw, 5rem); }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--line); }

.section-head { max-width: 46rem; margin-bottom: 2rem; }
.section-head h1,
.section-head h2 { margin-top: 1rem; font-size: clamp(2.2rem, 4.6vw, 3.6rem); }
.section-head p { margin-top: 1rem; color: var(--ink-soft); font-size: 1.05rem; }

/* ---------- category index ---------- */

.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.cat-link {
  display: grid;
  gap: 0.35rem;
  padding: 1.4rem 1.4rem 1.5rem;
  background: var(--bg);
  text-decoration: none;
  transition: background-color 0.2s ease;
}
.cat-link:hover { background: var(--panel); }
.cat-link .code {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}
.cat-link h3 { font-family: var(--font-display); font-weight: 500; font-size: 1.6rem; line-height: 1.1; }
.cat-link p { color: var(--ink-mute); font-size: 0.9rem; }

/* ---------- lock cards ---------- */

.lock-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr));
  gap: 1.5rem;
  grid-auto-flow: dense;
}

.card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.card.is-wide { grid-column: span 2; }
@media (max-width: 680px) { .card.is-wide { grid-column: auto; } }

.tile {
  position: relative;
  background: var(--tile);
  overflow: hidden;
}
.tile img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.card .tile { aspect-ratio: 4 / 3.4; }
.card.is-wide .tile { aspect-ratio: auto; }
.card.is-wide .tile img { height: auto; object-fit: contain; }

.badge {
  position: absolute;
  top: 0.8rem;
  left: 0.8rem;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: var(--gold);
  color: var(--on-gold);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
}

.card-body { display: grid; gap: 1.4rem; padding: 1.25rem 1.3rem 1.4rem; }
.card.is-wide .card-body { grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); }

.model { display: grid; gap: 0.7rem; align-content: start; min-width: 0; }
.model + .model { padding-top: 1.4rem; border-top: 1px solid var(--line); }
.card.is-wide .model + .model { padding-top: 0; border-top: 0; }

.model h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.65rem; line-height: 1.1; }
.model .kind {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
}
.model .desc { color: var(--ink-soft); font-size: 0.93rem; }
.model .note { color: var(--ink-mute); font-size: 0.85rem; }

.chips { display: flex; flex-wrap: wrap; gap: 0.35rem; }

.specs { display: grid; gap: 0.3rem; font-size: 0.85rem; }
.specs div { display: flex; gap: 0.6rem; justify-content: space-between; border-top: 1px dashed var(--line); padding-top: 0.3rem; }
.specs dt { color: var(--ink-mute); }
.specs dd { margin: 0; text-align: right; font-family: var(--font-mono); font-size: 0.78rem; color: var(--ink); }

.card[hidden] { display: none; }

.card-foot { margin-top: auto; padding: 0 1.3rem 1.3rem; }
.link-quote {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--gold);
  text-decoration: none;
}
.link-quote:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- residential series ---------- */

.am-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 22rem), 1fr));
  gap: 1.5rem;
}
.am-card .tile { aspect-ratio: 4 / 3.2; background: #ffffff; }
.am-card .desc { color: var(--ink-soft); font-size: 0.93rem; }
.am-card .tile img { object-fit: contain; }
.am-id {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}
.am-id h3 { font-family: var(--font-mono); font-weight: 500; font-size: 1.15rem; letter-spacing: 0.04em; }
.am-id span { color: var(--gold); font-size: 0.8rem; font-family: var(--font-mono); text-align: right; }

.note-bar {
  margin-top: 2rem;
  padding: 1rem 1.2rem;
  border: 1px solid var(--line-strong);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius-sm);
  color: var(--ink-soft);
  font-size: 0.93rem;
  max-width: 62rem;
}

.feature-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
  gap: 2rem 1.5rem;
  margin-top: 3.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--line);
}
.feature-cols h3 {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.9rem;
}
.feature-cols li {
  position: relative;
  padding: 0.35rem 0 0.35rem 1.1rem;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.92rem;
}
.feature-cols li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.95rem;
  width: 0.4rem;
  height: 0.4rem;
  background: var(--gold);
  transform: rotate(45deg);
}

/* ---------- switches ---------- */

.sw-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 15.5rem), 1fr));
  gap: 1.1rem;
}
.sw-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; min-width: 0; }
.sw-card .tile { aspect-ratio: 16 / 8.2; background: var(--tile); }
.sw-card .tile img { object-fit: contain; padding: 0.4rem; }
.sw-card .card-body { gap: 0.4rem; padding: 1rem 1.1rem 1.15rem; }
.sw-card .code { font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.12em; color: var(--gold); }
.sw-card h3 { font-size: 0.97rem; font-weight: 600; line-height: 1.3; font-family: var(--font-body); }
.price {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 600;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.price.is-text { font-size: 1.1rem; }
.price small { font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.08em; color: var(--ink-mute); font-weight: 400; margin-left: 0.4rem; text-transform: uppercase; }

.sw-features { margin-top: 1.75rem; display: flex; flex-wrap: wrap; gap: 0.4rem; }

.panel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr));
  gap: 1.25rem;
}
.panel-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; min-width: 0; }
.panel-card .tile { aspect-ratio: 16 / 7.6; }
.panel-card .tile img { object-fit: cover; }
.panel-card .card-body { gap: 0.85rem; }
.panel-top { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.panel-top h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.7rem; line-height: 1; }
.panel-top h3 small { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.12em; color: var(--gold); text-transform: uppercase; margin-left: 0.35rem; font-weight: 400; }
.layouts { display: grid; gap: 0.15rem; font-size: 0.86rem; color: var(--ink-soft); }
.layouts li { padding: 0.18rem 0; border-top: 1px dashed var(--line); }
.layouts li:first-child { border-top: 0; }

/* ---------- automation ---------- */

.auto-list { display: grid; gap: clamp(2.5rem, 6vw, 4.5rem); }
.auto-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
}
.auto-row:nth-child(even) .auto-media { order: 2; }
.auto-media { display: grid; gap: 0.8rem; min-width: 0; }
.auto-media .tile { border-radius: var(--radius); border: 1px solid var(--line); }
.auto-media .tile.product { aspect-ratio: 16 / 6.4; background: var(--tile); }
.auto-media .tile.scene { aspect-ratio: 16 / 9; }
.auto-media .tile.scene img { object-fit: cover; }
.auto-media .tile.product img { object-fit: contain; padding: 0.5rem; }
.auto-copy { display: grid; gap: 1rem; min-width: 0; }
.auto-copy h3 { font-family: var(--font-display); font-weight: 500; font-size: clamp(2rem, 3.6vw, 2.9rem); line-height: 1.05; }
.auto-copy p { color: var(--ink-soft); }
.tick-list { display: grid; gap: 0.15rem; }
.tick-list li {
  position: relative;
  padding: 0.4rem 0 0.4rem 1.5rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.93rem;
  color: var(--ink-soft);
}
.tick-list li::before {
  content: "";
  position: absolute;
  left: 0.15rem;
  top: 0.78rem;
  width: 0.5rem;
  height: 0.28rem;
  border-left: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  transform: rotate(-45deg);
}
@media (max-width: 860px) {
  .auto-row { grid-template-columns: minmax(0, 1fr); }
  .auto-row:nth-child(even) .auto-media { order: 0; }
}

/* ---------- partner ---------- */

.partner-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
}
.partner-banner p {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.6vw, 2.8rem);
  font-style: italic;
  color: var(--gold);
}
.partner-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.partner-item { background: var(--bg-alt); padding: 1.4rem; display: grid; gap: 0.4rem; }
.partner-item h3 { font-size: 1.02rem; font-weight: 600; }
.partner-item p { color: var(--ink-mute); font-size: 0.9rem; }
.partner-item svg { width: 1.6rem; height: 1.6rem; color: var(--gold); margin-bottom: 0.4rem; }

/* ---------- about ---------- */

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.about-grid h2 { margin-top: 1rem; font-size: clamp(2.2rem, 4.6vw, 3.4rem); }
.about-copy { display: grid; gap: 1.25rem; margin-top: 1.5rem; color: var(--ink-soft); max-width: 60ch; }
.about-copy h3 { font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); font-weight: 500; margin-bottom: 0.3rem; }
.usp-list { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.usp { background: var(--panel); padding: 1.2rem 1.3rem; }
.usp h3 { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; line-height: 1.1; }
.usp p { color: var(--ink-mute); font-size: 0.9rem; margin-top: 0.2rem; }
@media (max-width: 860px) { .about-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- FAQ ---------- */

.faq-list { max-width: 52rem; border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  padding: 1.15rem 0;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 500;
  line-height: 1.25;
  cursor: pointer;
  list-style: none;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  flex: none;
  font-family: var(--font-mono);
  font-size: 1.3rem;
  color: var(--gold);
  transition: transform 0.2s ease;
}
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { padding: 0 3rem 1.3rem 0; color: var(--ink-soft); max-width: 62ch; }

/* ---------- contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.contact-grid h2 { margin-top: 1rem; font-size: clamp(2.2rem, 4.6vw, 3.4rem); }
.office-list { display: grid; gap: 1.25rem; margin-top: 2rem; }
.office { padding-top: 1.1rem; border-top: 1px solid var(--line); }
.office h3 { font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); font-weight: 500; margin-bottom: 0.4rem; }
.office address { font-style: normal; color: var(--ink-soft); }
.phones { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.5rem; }
.phone {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 2.9rem;
  padding: 0.5rem 1.1rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 1rem;
  letter-spacing: 0.04em;
  text-decoration: none;
}
.phone:hover { border-color: var(--gold); color: var(--gold); }

.form {
  display: grid;
  gap: 1rem;
  padding: clamp(1.25rem, 3vw, 2rem);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.form h3 { font-family: var(--font-display); font-size: 1.9rem; font-weight: 500; line-height: 1.1; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
@media (max-width: 560px) { .field-row { grid-template-columns: minmax(0, 1fr); } }
.field { display: grid; gap: 0.35rem; min-width: 0; }
.field label { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-mute); }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 2.9rem;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--bg);
}
.field textarea { min-height: 6.5rem; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--gold); outline-offset: 1px; border-color: var(--gold); }
.form-out { display: grid; gap: 0.75rem; padding-top: 0.5rem; }
.form-out[hidden] { display: none; }
.form-out pre {
  margin: 0;
  padding: 0.9rem 1rem;
  background: var(--bg);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: var(--ink-soft);
}
.form-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.status { min-height: 1.2rem; font-size: 0.85rem; color: var(--ok); }
.status.is-error { color: var(--err); }

/* Spam trap. Kept off-screen rather than display:none, which some bots skip. */
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.hp input { width: 1px; height: 1px; min-height: 0; padding: 0; border: 0; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- footer ---------- */

.site-footer { border-top: 1px solid var(--line); padding-block: 3rem 2rem; background: var(--bg-alt); }
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) repeat(2, minmax(0, 1fr));
  gap: 2rem;
}
.footer-grid h3 { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); font-weight: 500; margin-bottom: 0.8rem; }
.footer-grid li { padding: 0.15rem 0; }
.footer-grid a { text-decoration: none; color: var(--ink-soft); font-size: 0.93rem; }
.footer-grid a:hover { color: var(--gold); }
.footer-brand img { width: 9rem; border-radius: 6px; }
.footer-brand p { margin-top: 1rem; color: var(--ink-mute); font-size: 0.9rem; max-width: 30ch; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
  color: var(--ink-mute);
}
.credit .by { display: inline-flex; align-items: center; gap: 0.7rem; text-decoration: none; color: var(--ink-mute); }
.credit .by:hover { color: var(--ink); }
.credit .badge-logo { display: block; width: 6.2rem; border-radius: 6px; overflow: hidden; background: #fff; box-shadow: 0 0 0 1px var(--line); }
.credit .badge-logo img { width: 100%; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- motion ---------- */

/* ---------- category navigation and blocks ---------- */

.cat-nav { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2.75rem; }
.cat-nav a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.5rem;
  padding: 0.45rem 1.05rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 0.88rem;
  color: var(--ink-soft);
  text-decoration: none;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.cat-nav a:hover { border-color: var(--gold); color: var(--gold); }
.cat-nav span { font-family: var(--font-mono); font-size: 0.7rem; color: var(--ink-mute); }

/* Leaves room for the sticky header when you jump to a category. */
.cat-block { scroll-margin-top: 6rem; }
.cat-block + .cat-block { margin-top: 2.75rem; }
.cat-head { max-width: 46rem; margin-bottom: 1.75rem; padding-top: 1.3rem; border-top: 1px solid var(--line); }
.cat-head h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.6rem, 3.2vw, 2.3rem);
  line-height: 1.15;
}
.cat-head p { margin-top: 0.5rem; color: var(--ink-soft); }
.cat-head .cat-count {
  margin-top: 0.7rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ---------- closing call to action ---------- */

.cta-band { background: var(--bg-alt); border-block: 1px solid var(--line); }
.cta-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: center;
}
.cta-inner h2 { margin-top: 0.6rem; font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
.cta-inner p:last-of-type { margin-top: 0.8rem; color: var(--ink-soft); }
.cta-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; }
@media (max-width: 860px) { .cta-inner { grid-template-columns: minmax(0, 1fr); } }

/* ---------- customer reviews ---------- */

.review-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr));
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.review { padding: 1.5rem; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.stars { letter-spacing: 0.1em; color: var(--gold); }
.stars span { color: var(--line-strong); }
.review blockquote { margin: 0.75rem 0 1rem; }
.review blockquote p { color: var(--ink-soft); }
.review-by strong { display: block; }
.review-by span {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

/* ---------- floating WhatsApp button ---------- */

/* WhatsApp's darker brand green. The usual #25d366 only reaches 1.98:1
   against a white glyph, which fails the 3:1 minimum for icons. */
.wa-float {
  position: fixed;
  right: 1.1rem;
  bottom: 1.1rem;
  z-index: 60;
  display: grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: #128c7e;
  color: #ffffff;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.32);
  transition: transform 0.2s ease;
}
.wa-float svg { width: 1.9rem; height: 1.9rem; }
.wa-float:hover { transform: translateY(-2px) scale(1.04); }
@media (max-width: 560px) { .wa-float { right: 0.85rem; bottom: 0.85rem; } }

/* ---------- featured products on the home page ---------- */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr));
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.feature-card {
  min-width: 0;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.feature-card:hover { border-color: var(--gold); transform: translateY(-2px); }
.feature-card a { display: flex; flex-direction: column; height: 100%; text-decoration: none; }
.feature-card .tile { display: block; aspect-ratio: 4 / 3.2; }
.feature-body { display: block; padding: 1.1rem 1.2rem 1.3rem; }
.feature-body .kind {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}
.feature-name {
  display: block;
  margin-top: 0.35rem;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.1;
}
.feature-blurb { display: block; margin-top: 0.5rem; color: var(--ink-soft); font-size: 0.9rem; }
.feature-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 2rem; }

/* ---------- why KEENS ---------- */

.why-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.why-grid h2 { margin-top: 1rem; font-size: clamp(2rem, 4.2vw, 3rem); }
.why-grid > div > p { margin-top: 1rem; color: var(--ink-soft); max-width: 46ch; }
.why-grid .btn { margin-top: 1.5rem; }

/* ---------- faq preview on the home page ---------- */

.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.faq-grid h2 { margin-top: 1rem; font-size: clamp(2rem, 4.2vw, 3rem); }
.faq-grid > div > p { margin-top: 1rem; color: var(--ink-soft); max-width: 46ch; }
.faq-grid .btn { margin-top: 1.5rem; }
/* The list already caps its width on its own page; here the column does it. */
.faq-grid .faq-list { max-width: none; }
.faq-grid h1 { margin-top: 1rem; font-size: clamp(2.2rem, 4.6vw, 3.4rem); }
@media (min-width: 861px) {
  .faq-intro { position: sticky; top: 6.5rem; }
}

/* ---------- showroom and map ---------- */

.map-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
}
.map-grid h2 { margin-top: 1rem; font-size: clamp(2rem, 4.2vw, 3rem); }
.map-grid > div > p { margin-top: 1rem; color: var(--ink-soft); max-width: 46ch; }
.map-grid address { margin-top: 1.5rem; font-style: normal; color: var(--ink-soft); }
.map-grid .phones { margin-top: 1.25rem; }

/* The wrapper owns the shape, so the page does not jump when the map loads
   and the iframe scales on a phone instead of overflowing at 600px wide. */
.map-embed {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.map-embed iframe { position: absolute; inset: 0; display: block; width: 100%; height: 100%; border: 0; }

/* On the contact page the map sits under the address, in a narrower column. */
.contact-grid .map-embed { margin-top: 2rem; aspect-ratio: 16 / 10; }

@media (max-width: 860px) {
  .why-grid { grid-template-columns: minmax(0, 1fr); }
  .faq-grid { grid-template-columns: minmax(0, 1fr); }
  .map-grid { grid-template-columns: minmax(0, 1fr); }
  .map-embed { aspect-ratio: 4 / 3.2; }
}

@media (max-width: 860px), (pointer: coarse) {
  .btn, .cat-nav a, .phone { min-height: 3rem; }
  /* Footer links stack tightly; give them a real touch area. */
  .site-footer ul a, .credit .by { display: inline-flex; align-items: center; min-height: 2.75rem; }
  /* One of these sits in every product card. */
  .link-quote { display: inline-flex; align-items: center; min-height: 2.75rem; }
  .icon-btn { width: 3rem; height: 3rem; }
  .field input, .field select, .field textarea { min-height: 3rem; }
  .nav-list a { padding-block: 0.9rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
