/* LaserSpec Index — site styles */

:root {
  --paper: #F6F4EF;
  --paper-2: #EEEBE4;
  --card: #FBFAF7;
  --ink: #111110;
  --ink-2: #4D4B45;
  --ink-3: #85827A;
  --rule: #DCD8CE;
  --rule-2: #E8E5DD;
  --ember: #FF5A1F;
  --ember-ink: #C83E0C;
  --night: #0D0D0C;
  --night-2: #171715;
  --night-3: #201F1D;
  --night-rule: #2B2A27;
  --night-ink: #EEEBE3;
  --night-ink-2: #A3A097;
  --night-ink-3: #6F6C65;

  --diode: #2a78d6;
  --co2: #eb6834;
  --galvo: #1baf7a;

  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;

  --wrap: 1280px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 16px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, select { font: inherit; color: inherit; }
::selection { background: var(--ink); color: var(--paper); }
:focus-visible { outline: 2px solid var(--ember); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.mono { font-family: var(--mono); }
.serif { font-family: var(--serif); }
.muted { color: var(--ink-3); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Type ---------- */
.eyebrow {
  font: 500 12px/1 var(--mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-3);
  display: flex; align-items: center; gap: 12px;
}
.eyebrow .n { color: var(--ink); }
.eyebrow::after { content: ""; flex: 0 0 40px; height: 1px; background: currentColor; opacity: .5; }
.eyebrow.no-rule::after { display: none; }

.display {
  font-weight: 500;
  font-size: clamp(44px, 7.4vw, 112px);
  line-height: .94;
  letter-spacing: -.048em;
  margin: 0;
}
.h2 {
  font-weight: 500;
  font-size: clamp(34px, 4.6vw, 64px);
  line-height: 1;
  letter-spacing: -.038em;
  margin: 0;
}
.h3 { font-weight: 500; font-size: clamp(22px, 2vw, 28px); line-height: 1.15; letter-spacing: -.025em; margin: 0; }
.display em, .h2 em, .h3 em {
  font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.02em;
}
.lede { font-size: clamp(17px, 1.5vw, 20px); line-height: 1.5; color: var(--ink-2); max-width: 56ch; margin: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 50px; padding: 0 22px;
  border-radius: 10px;
  font-weight: 500; font-size: 15px; letter-spacing: -.01em;
  background: var(--ink); color: var(--paper);
  transition: background .25s var(--ease), color .25s var(--ease), transform .25s var(--ease);
  white-space: nowrap;
}
.btn:hover { background: #2a2926; }
.btn:active { transform: translateY(1px); }
.btn .arr { transition: transform .3s var(--ease); }
.btn:hover .arr { transform: translateX(3px); }
.btn.light { background: var(--night-ink); color: var(--night); }
.btn.light:hover { background: #fff; }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--rule); }
.btn.ghost:hover { box-shadow: inset 0 0 0 1px var(--ink); }
.btn.ghost.on-dark { color: var(--night-ink); box-shadow: inset 0 0 0 1px var(--night-rule); }
.btn.ghost.on-dark:hover { box-shadow: inset 0 0 0 1px var(--night-ink-2); }
.btn.sm { height: 40px; padding: 0 16px; font-size: 14px; border-radius: 9px; }

.link {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 500;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 1px; background-repeat: no-repeat; background-position: 0 100%;
  transition: background-size .35s var(--ease);
  padding-bottom: 2px;
}
.link:hover { background-size: 100% 1px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 84%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.site-header.scrolled { border-bottom-color: var(--rule-2); }
.site-header .wrap { height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 600; letter-spacing: -.03em; font-size: 17px; }
.brand svg { width: 28px; height: 28px; }
.brand .idx { font: 500 10.5px/1 var(--mono); letter-spacing: .12em; color: var(--ink-3); margin-left: 2px; transform: translateY(1px); }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  font-size: 14.5px; color: var(--ink-2); padding: 8px 12px; border-radius: 8px;
  transition: color .2s, background .2s;
}
.nav a:hover { color: var(--ink); background: var(--paper-2); }
.nav a[aria-current="page"] { color: var(--ink); }
.nav a[aria-current="page"]::after {
  content: ""; display: block; height: 1px; background: var(--ink); margin-top: 2px;
}
.nav .btn { margin-left: 10px; color: var(--paper); }
.nav .btn:hover { background: #2a2926; color: var(--paper); }
.menu-btn { display: none; width: 40px; height: 40px; border-radius: 9px; align-items: center; justify-content: center; }
.menu-btn span { display: block; width: 18px; height: 1.5px; background: var(--ink); position: relative; transition: transform .3s var(--ease); }
.menu-btn span::before, .menu-btn span::after { content: ""; position: absolute; left: 0; width: 18px; height: 1.5px; background: var(--ink); transition: transform .3s var(--ease); }
.menu-btn span::before { top: -6px; }
.menu-btn span::after { top: 6px; }
.menu-open .menu-btn span { background: transparent; }
.menu-open .menu-btn span::before { transform: translateY(6px) rotate(45deg); }
.menu-open .menu-btn span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 860px) {
  .menu-btn { display: inline-flex; }
  .nav {
    position: fixed; inset: 68px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); padding: 8px var(--gutter) 24px; border-bottom: 1px solid var(--rule);
    transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity .25s, transform .3s var(--ease);
  }
  .menu-open .nav { opacity: 1; transform: none; pointer-events: auto; }
  .nav a { font-size: 22px; letter-spacing: -.02em; padding: 14px 0; border-radius: 0; border-bottom: 1px solid var(--rule-2); color: var(--ink); }
  .nav a:hover { background: none; }
  .nav a[aria-current="page"]::after { display: none; }
  .nav .btn { margin: 18px 0 0; height: 52px; font-size: 16px; border-bottom: 0; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(80px, 11vw, 160px) 0; }
.section.tight { padding: clamp(56px, 7vw, 96px) 0; }
.section-head { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 24px 48px; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head .h2 { margin-top: 20px; max-width: 16ch; }
.section-head p { margin: 0; color: var(--ink-2); max-width: 44ch; }
@media (max-width: 760px) { .section-head { grid-template-columns: 1fr; } }

.rule { height: 1px; background: var(--rule); border: 0; margin: 0; }

/* ---------- Dark panel (hero etc) ---------- */
.panel-dark {
  background: var(--night);
  color: var(--night-ink);
  border-radius: 28px;
  margin: 0 clamp(8px, 1.2vw, 16px);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.panel-dark .eyebrow { color: var(--night-ink-3); }
.panel-dark .eyebrow .n { color: var(--night-ink); }
.panel-dark .lede { color: var(--night-ink-2); }

/* ---------- Hero ---------- */
.hero { padding: clamp(56px, 8vw, 112px) 0 clamp(40px, 5vw, 64px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.hero .display { margin-top: 28px; }
.hero .lede { margin-top: 28px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 40px; }
.hero-meta {
  margin-top: clamp(56px, 7vw, 96px);
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--night-rule);
}
.hero-meta div { padding: 22px 20px 4px 0; }
.hero-meta div + div { padding-left: 20px; border-left: 1px solid var(--night-rule); }
.hero-meta b { display: block; font-weight: 400; font-size: clamp(28px, 3.2vw, 44px); letter-spacing: -.04em; line-height: 1; color: var(--night-ink); }
.hero-meta span { display: block; margin-top: 10px; font: 500 11.5px/1.3 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--night-ink-3); }
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-meta { grid-template-columns: repeat(2, 1fr); }
  .hero-meta div:nth-child(3) { padding-left: 0; border-left: 0; }
  .hero-meta div:nth-child(n+3) { border-top: 1px solid var(--night-rule); }
}

/* bed overlay figure */
.bedfig { position: relative; }
.bedfig svg { width: 100%; height: auto; overflow: visible; }
.bedfig .bed { fill: none; stroke-width: 1.25; vector-effect: non-scaling-stroke; transition: stroke-opacity .5s var(--ease), stroke-width .3s; }
.bedfig .bed.hl { stroke-width: 2.25; }
.bedfig .bedfill { transition: opacity .5s var(--ease); }
.bedfig .axis text { font: 500 10px var(--mono); fill: var(--night-ink-3); letter-spacing: .04em; }
.bedfig .axis line { stroke: var(--night-rule); }
.bedfig-cap {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--night-rule);
  font: 500 12px/1.4 var(--mono); letter-spacing: .04em; color: var(--night-ink-3); text-transform: uppercase;
}
.bedfig-cap b { color: var(--night-ink); font-weight: 500; text-transform: none; letter-spacing: 0; font-family: var(--sans); font-size: 15px; }
.bedfig-cap .dim { color: var(--night-ink-2); }
.scan {
  position: absolute; left: 0; right: 0; height: 1px; top: 0; pointer-events: none;
  background: linear-gradient(90deg, transparent, var(--ember) 40%, var(--ember) 60%, transparent);
  box-shadow: 0 0 12px 1px rgba(255, 90, 31, .5);
  opacity: 0;
}

/* ---------- Type marker ---------- */
.tmark { display: inline-flex; align-items: center; gap: 7px; font: 500 11.5px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.tmark i { width: 8px; height: 8px; display: inline-block; background: var(--c); }
.tmark i.circle { border-radius: 50%; }
.tmark i.diamond { transform: rotate(45deg) scale(.85); }
.newtag { font: 500 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ember-ink); }

/* ---------- Machine cards ---------- */
.grid-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.mcard {
  background: var(--card);
  border: 1px solid var(--rule-2);
  border-radius: var(--radius);
  padding: 10px;
  display: flex; flex-direction: column;
  transition: border-color .3s, transform .4s var(--ease), box-shadow .4s var(--ease);
  position: relative;
  cursor: pointer;
  text-align: left;
}
.mcard:hover { border-color: var(--rule); transform: translateY(-3px); box-shadow: 0 18px 40px -24px rgba(17,17,16,.28); }
.mcard .glyph {
  aspect-ratio: 16 / 10; border-radius: 10px; background: var(--paper-2);
  position: relative; overflow: hidden;
}
.mcard .glyph svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.mcard .glyph .gl-tag { position: absolute; left: 8px; top: 8px; background: var(--paper-2); padding: 4px 6px; border-radius: 6px; }
.mcard .glyph .gl-dim { position: absolute; right: 8px; bottom: 8px; background: var(--paper-2); padding: 4px 6px; border-radius: 6px; font: 500 10.5px var(--mono); color: var(--ink-3); letter-spacing: .03em; }
.mcard .body { padding: 18px 10px 10px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.mcard .row1 { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.mcard .brandline { font: 500 11.5px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); display: flex; gap: 10px; }
.mcard h3 { margin: 8px 0 0; font-size: 22px; font-weight: 500; letter-spacing: -.03em; line-height: 1.1; }
.mcard .score { text-align: right; flex: none; }
.mcard .score b { display: block; font-size: 30px; font-weight: 400; letter-spacing: -.04em; line-height: .9; }
.mcard .score span { font: 500 9.5px/1 var(--mono); letter-spacing: .1em; color: var(--ink-3); }
.mcard .verdict { font-family: var(--serif); font-style: italic; font-size: 17.5px; line-height: 1.35; color: var(--ink-2); margin: 2px 0 0; }
.mcard .specs { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--rule-2); display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mcard .specs div { font: 400 12.5px/1.3 var(--mono); color: var(--ink); }
.mcard .specs span { display: block; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 4px; }
.mcard .cmp {
  position: absolute; top: 18px; right: 18px; z-index: 2;
  height: 30px; padding: 0 10px; border-radius: 8px;
  background: color-mix(in srgb, var(--card) 88%, transparent);
  box-shadow: inset 0 0 0 1px var(--rule);
  font: 500 11px/30px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2);
  opacity: 0; transition: opacity .2s, background .2s, color .2s;
}
.mcard:hover .cmp, .mcard .cmp.on, .mcard .cmp:focus-visible { opacity: 1; }
.mcard .cmp.on { background: var(--ink); color: var(--paper); box-shadow: none; }
@media (hover: none) { .mcard .cmp { opacity: 1; } }

/* ---------- Picks (editorial) ---------- */
.picks { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.pick {
  grid-column: span 4; background: var(--card); border: 1px solid var(--rule-2); border-radius: 20px;
  padding: 28px; display: flex; flex-direction: column; gap: 18px; min-height: 380px;
  transition: border-color .3s, transform .4s var(--ease);
}
.pick:hover { border-color: var(--rule); transform: translateY(-3px); }
.pick.big { grid-column: span 8; background: var(--night); color: var(--night-ink); border-color: var(--night); }
.pick.big .pick-cat, .pick.big .pick-meta { color: var(--night-ink-3); }
.pick.big .pick-quote { color: var(--night-ink); }
.pick.big .tmark { color: var(--night-ink-2); }
.pick-cat { font: 500 11.5px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); display: flex; justify-content: space-between; }
.pick h3 { margin: 0; font-size: clamp(26px, 2.6vw, 36px); font-weight: 500; letter-spacing: -.035em; line-height: 1.02; }
.pick-quote { font-family: var(--serif); font-style: italic; font-size: clamp(19px, 1.6vw, 23px); line-height: 1.3; color: var(--ink-2); margin: 0; }
.pick-meta { margin-top: auto; display: flex; justify-content: space-between; align-items: end; font: 400 12.5px/1.4 var(--mono); color: var(--ink-3); gap: 12px; }
.pick-meta b { font: 400 44px/1 var(--sans); letter-spacing: -.05em; color: inherit; }
.pick.big .pick-meta b { color: var(--night-ink); }
.pick .pick-bed { height: 120px; }
.pick.big .pick-bed { height: 170px; }
@media (max-width: 980px) { .pick, .pick.big { grid-column: span 12; } .pick.half { grid-column: span 6; } }
@media (max-width: 640px) { .pick.half { grid-column: span 12; } }

/* ---------- Quiz band ---------- */
.quizband { padding: clamp(64px, 9vw, 128px) 0; }
.quizband-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.qpreview {
  background: var(--night-2); border: 1px solid var(--night-rule); border-radius: 20px; padding: 28px;
}
.qpreview .qp-top { display: flex; justify-content: space-between; font: 500 11.5px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--night-ink-3); }
.qpreview .qp-bar { height: 2px; background: var(--night-rule); margin: 16px 0 26px; position: relative; }
.qpreview .qp-bar::after { content: ""; position: absolute; inset: 0 auto 0 0; width: 28%; background: var(--ember); }
.qpreview h4 { margin: 0 0 20px; font-size: 26px; font-weight: 500; letter-spacing: -.03em; line-height: 1.15; }
.qpreview .qp-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.qpreview .qp-opts a {
  border: 1px solid var(--night-rule); border-radius: 12px; padding: 14px 16px; font-size: 15px;
  transition: border-color .2s, background .2s;
}
.qpreview .qp-opts a:hover { border-color: var(--night-ink-2); background: var(--night-3); }
.qpreview .qp-opts small { display: block; color: var(--night-ink-3); font-size: 12.5px; margin-top: 3px; }
@media (max-width: 900px) { .quizband-grid { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .qpreview .qp-opts { grid-template-columns: 1fr; } }

/* ---------- About / owner ---------- */
.owner { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.owner-photo { position: relative; }
.owner-photo img { width: 100%; aspect-ratio: 452 / 544; object-fit: cover; border-radius: 20px; filter: saturate(.92) contrast(1.02); }
.owner-photo figcaption { margin-top: 14px; display: flex; justify-content: space-between; font: 500 11.5px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.owner blockquote { margin: 28px 0 0; font-family: var(--serif); font-size: clamp(24px, 2.4vw, 34px); line-height: 1.25; letter-spacing: -.01em; color: var(--ink); }
.owner .sig { margin-top: 28px; display: flex; align-items: center; gap: 14px; }
.owner .sig b { font-weight: 500; }
.owner .sig span { color: var(--ink-3); font-size: 14px; }
@media (max-width: 860px) { .owner { grid-template-columns: 1fr; } .owner-photo { max-width: 440px; } }

/* ---------- Footer ---------- */
.site-footer { margin: clamp(48px, 7vw, 96px) clamp(8px, 1.2vw, 16px) clamp(8px, 1.2vw, 16px); }
.site-footer .panel-dark { margin: 0; padding: clamp(48px, 6vw, 80px) 0 28px; }
.foot-top { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.foot-top h4 { margin: 0 0 16px; font: 500 11.5px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--night-ink-3); }
.foot-top ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.foot-top a { color: var(--night-ink-2); transition: color .2s; }
.foot-top a:hover { color: var(--night-ink); }
.foot-top p { margin: 0; color: var(--night-ink-2); max-width: 36ch; }
.foot-mark {
  margin-top: clamp(56px, 8vw, 120px);
  font-weight: 500; letter-spacing: -.06em; line-height: .8;
  font-size: clamp(56px, 13.4vw, 196px);
  color: var(--night-ink);
  white-space: nowrap;
}
.foot-mark em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.03em; color: var(--night-ink-3); }
.foot-bottom { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--night-rule); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font: 400 12px/1.5 var(--mono); color: var(--night-ink-3); }
@media (max-width: 760px) { .foot-top { grid-template-columns: 1fr 1fr; } .foot-top > div:first-child { grid-column: 1 / -1; } }

/* ---------- Page header (inner pages) ---------- */
.page-head { padding: clamp(56px, 8vw, 112px) 0 clamp(32px, 4vw, 56px); }
.page-head .display { margin-top: 24px; font-size: clamp(44px, 6.6vw, 96px); }
.page-head .lede { margin-top: 24px; }

/* ---------- Filter bar ---------- */
.filterbar {
  position: sticky; top: 68px; z-index: 20;
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--rule-2); border-bottom: 1px solid var(--rule-2);
  margin-bottom: 28px;
}
.filterbar .wrap { display: flex; align-items: center; gap: 10px 16px; padding-top: 12px; padding-bottom: 12px; flex-wrap: wrap; }
.seg { display: inline-flex; background: var(--paper-2); border-radius: 10px; padding: 3px; }
.seg button { height: 34px; padding: 0 14px; border-radius: 8px; font-size: 14px; color: var(--ink-2); transition: background .2s, color .2s, box-shadow .2s; display: inline-flex; align-items: center; gap: 7px; }
.seg button:hover { color: var(--ink); }
.seg button[aria-pressed="true"] { background: var(--card); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.06), 0 0 0 1px var(--rule-2); }
.seg button .tmark { pointer-events: none; }
.ctl { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-2); }
.ctl select {
  appearance: none; -webkit-appearance: none;
  height: 40px; padding: 0 34px 0 12px; border-radius: 10px; border: 1px solid var(--rule); background: var(--card)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23111110' stroke-width='1.4'/%3E%3C/svg%3E") no-repeat right 12px center;
  font-size: 14px; color: var(--ink); cursor: pointer;
}
.check { display: inline-flex; align-items: center; gap: 9px; font-size: 14px; color: var(--ink-2); cursor: pointer; user-select: none; }
.check input { appearance: none; -webkit-appearance: none; width: 18px; height: 18px; border-radius: 5px; border: 1px solid var(--rule); background: var(--card); display: grid; place-items: center; margin: 0; cursor: pointer; transition: background .2s, border-color .2s; }
.check input:checked { background: var(--ink); border-color: var(--ink); }
.check input:checked::after { content: ""; width: 9px; height: 5px; border-left: 1.6px solid var(--paper); border-bottom: 1.6px solid var(--paper); transform: rotate(-45deg) translate(1px, -1px); }
.fb-spacer { flex: 1; }
.fb-count { font: 500 12px var(--mono); color: var(--ink-3); letter-spacing: .04em; }

/* ---------- Spec table ---------- */
.table-scroll { overflow-x: auto; border: 1px solid var(--rule-2); border-radius: var(--radius); background: var(--card); }
table.spec { width: 100%; border-collapse: collapse; min-width: 980px; }
table.spec th, table.spec td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--rule-2); white-space: nowrap; }
table.spec th { font: 500 10.5px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); background: var(--paper); position: sticky; top: 0; cursor: pointer; user-select: none; }
table.spec th:hover { color: var(--ink); }
table.spec th[aria-sort] { color: var(--ink); }
table.spec th[aria-sort="ascending"]::after { content: " ↑"; }
table.spec th[aria-sort="descending"]::after { content: " ↓"; }
table.spec td { font-size: 14.5px; }
table.spec td.num { font-family: var(--mono); font-size: 13.5px; }
table.spec tr:last-child td { border-bottom: 0; }
table.spec tbody tr { cursor: pointer; transition: background .15s; }
table.spec tbody tr:hover { background: var(--paper); }
table.spec .nm b { font-weight: 500; }
table.spec .nm span { display: block; font: 400 11.5px var(--mono); color: var(--ink-3); margin-top: 2px; }
.bar-mini { display: inline-block; width: 60px; height: 4px; background: var(--rule-2); border-radius: 2px; vertical-align: middle; margin-left: 10px; position: relative; overflow: hidden; }
.bar-mini i { position: absolute; inset: 0 auto 0 0; background: var(--ink); border-radius: 2px; }

/* ---------- Drawer ---------- */
.scrim { position: fixed; inset: 0; background: rgba(13,13,12,.42); z-index: 80; opacity: 0; pointer-events: none; transition: opacity .35s var(--ease); }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(640px, 100%); z-index: 90;
  background: var(--paper); overflow-y: auto; overscroll-behavior: contain;
  transform: translateX(102%); transition: transform .5s var(--ease);
  box-shadow: -30px 0 60px -30px rgba(0,0,0,.3);
}
.drawer-open .scrim { opacity: 1; pointer-events: auto; }
.drawer-open .drawer { transform: none; }
.drawer-open { overflow: hidden; }
.drawer .d-top { position: sticky; top: 0; z-index: 2; display: flex; justify-content: space-between; align-items: center; padding: 16px 24px; background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--rule-2); }
.drawer .d-close { width: 36px; height: 36px; border-radius: 9px; display: grid; place-items: center; box-shadow: inset 0 0 0 1px var(--rule); }
.drawer .d-close:hover { box-shadow: inset 0 0 0 1px var(--ink); }
.drawer .d-body { padding: 28px 28px 48px; }
.drawer .glyph { aspect-ratio: 16/9; background: var(--paper-2); border-radius: 14px; position: relative; overflow: hidden; }
.drawer .glyph svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.drawer h2 { margin: 24px 0 0; font-size: clamp(32px, 4vw, 44px); font-weight: 500; letter-spacing: -.04em; line-height: 1; }
.drawer .d-verdict { margin: 16px 0 0; font-family: var(--serif); font-style: italic; font-size: 22px; line-height: 1.3; color: var(--ink-2); }
.d-take { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--rule); }
.d-take .who { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.d-take .who .mono-av { width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: var(--paper); display: grid; place-items: center; font: 500 12px var(--mono); letter-spacing: .04em; flex: none; }
.d-take .who img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; object-position: 50% 30%; }
.d-take .who b { font-weight: 500; font-size: 15px; }
.d-take .who span { display: block; font: 500 10.5px var(--mono); color: var(--ink-3); letter-spacing: .06em; text-transform: uppercase; }
.d-take p { font-family: var(--serif); font-size: 19px; line-height: 1.5; margin: 0 0 14px; color: var(--ink); }
.d-scores { margin-top: 28px; display: grid; gap: 12px; }
.d-scores .sr { display: grid; grid-template-columns: 110px 1fr 28px; align-items: center; gap: 14px; font-size: 14px; color: var(--ink-2); }
.d-scores .track { height: 6px; background: var(--rule-2); border-radius: 3px; overflow: hidden; }
.d-scores .track i { display: block; height: 100%; background: var(--ink); border-radius: 3px; transform-origin: left; }
.d-scores .sr b { font: 500 13px var(--mono); text-align: right; color: var(--ink); }
.d-pc { margin-top: 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.d-pc h4, .d-specs h4 { margin: 0 0 12px; font: 500 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.d-pc ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.d-pc li { font-size: 14.5px; line-height: 1.4; padding-left: 18px; position: relative; color: var(--ink-2); }
.d-pc li::before { content: "+"; position: absolute; left: 0; font-family: var(--mono); color: var(--ink); }
.d-pc .cons li::before { content: "−"; }
.d-specs { margin-top: 28px; }
.d-specs dl { margin: 0; display: grid; grid-template-columns: 1fr 1.4fr; border-top: 1px solid var(--rule); }
.d-specs dt, .d-specs dd { margin: 0; padding: 11px 0; border-bottom: 1px solid var(--rule-2); font-size: 14px; }
.d-specs dt { color: var(--ink-3); }
.d-specs dd { font-family: var(--mono); font-size: 13px; }
.d-actions { margin-top: 32px; display: flex; gap: 10px; flex-wrap: wrap; }
@media (max-width: 520px) { .d-pc { grid-template-columns: 1fr; } .drawer .d-body { padding: 20px 18px 40px; } }

/* ---------- Compare tray ---------- */
.tray {
  position: fixed; left: 50%; bottom: 20px; z-index: 60;
  transform: translate(-50%, 140%); transition: transform .45s var(--ease);
  background: var(--night); color: var(--night-ink); border-radius: 14px; padding: 8px 8px 8px 18px;
  display: flex; align-items: center; gap: 14px; box-shadow: 0 20px 50px -20px rgba(0,0,0,.5);
  max-width: calc(100% - 32px);
}
.tray.show { transform: translate(-50%, 0); }
.tray .t-items { display: flex; gap: 6px; font-size: 13.5px; color: var(--night-ink-2); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.tray .t-items b { color: var(--night-ink); font-weight: 500; }
.tray .btn { height: 40px; }
.tray .t-clear { font: 500 11px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--night-ink-3); padding: 0 6px; }
.tray .t-clear:hover { color: var(--night-ink); }

/* ---------- Charts ---------- */
.chart-card { background: var(--card); border: 1px solid var(--rule-2); border-radius: 22px; padding: clamp(20px, 3vw, 36px); }
.chart-card + .chart-card { margin-top: 16px; }
.chart-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px 32px; flex-wrap: wrap; margin-bottom: 28px; }
.chart-head .h3 { margin-top: 12px; }
.chart-head p { margin: 10px 0 0; color: var(--ink-2); max-width: 60ch; font-size: 15px; }
.legend { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; }
.legend .tmark { color: var(--ink-2); }
.chart svg { width: 100%; height: auto; overflow: visible; }
.chart text { font-family: var(--mono); font-size: 11px; fill: var(--ink-3); }
.chart .grid line { stroke: var(--rule-2); }
.chart .axis-line { stroke: var(--rule); }
.chart .lbl { fill: var(--ink); font-family: var(--sans); font-size: 12.5px; }
.chart .lbl-2 { fill: var(--ink-2); font-family: var(--sans); font-size: 12px; }
.chart .hit { fill: transparent; cursor: pointer; }
.chart .mk { transition: opacity .25s, transform .25s var(--ease); transform-box: fill-box; transform-origin: center; }
.chart.dim .mk:not(.on) { opacity: .2; }
.chart.dim .bed:not(.on) { stroke-opacity: .15; }
.chart-foot { margin-top: 18px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--ink-3); }
.chart-foot button { font: 500 11.5px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.chart-foot button:hover { color: var(--ink); }
.chart-table { margin-top: 16px; display: none; }
.chart-table.show { display: block; }
.chart-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
.chart-grid-2 .chart-card { margin: 0; }
@media (max-width: 960px) { .chart-grid-2 { grid-template-columns: 1fr; } }

.tt {
  position: fixed; z-index: 100; pointer-events: none;
  background: var(--night); color: var(--night-ink); border-radius: 10px; padding: 10px 12px;
  font: 400 12px/1.45 var(--mono); min-width: 160px; max-width: 260px;
  opacity: 0; transform: translateY(4px); transition: opacity .15s, transform .15s;
  box-shadow: 0 12px 30px -12px rgba(0,0,0,.4);
}
.tt.show { opacity: 1; transform: none; }
.tt b { display: block; font: 500 14px/1.25 var(--sans); margin-bottom: 6px; letter-spacing: -.01em; }
.tt .r { display: flex; justify-content: space-between; gap: 16px; color: var(--night-ink-2); }
.tt .r span:last-child { color: var(--night-ink); }

/* ---------- Compare page ---------- */
.cmp-grid { display: grid; grid-template-columns: 180px repeat(3, minmax(0, 1fr)); border: 1px solid var(--rule-2); border-radius: 20px; background: var(--card); overflow: hidden; }
.cmp-grid > div { padding: 16px 18px; border-bottom: 1px solid var(--rule-2); font-size: 14.5px; }
.cmp-grid > div:not(.k) { border-left: 1px solid var(--rule-2); }
.cmp-grid .k { font: 500 10.5px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); display: flex; align-items: center; }
.cmp-grid .v.num { font-family: var(--mono); font-size: 13.5px; }
.cmp-grid .v.best { position: relative; }
.cmp-grid .v.best::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 2px; background: var(--ember); }
.cmp-grid .head { padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.cmp-grid .head select { width: 100%; }
.cmp-grid .head .glyph { aspect-ratio: 16/10; border-radius: 10px; background: var(--paper-2); position: relative; overflow: hidden; }
.cmp-grid .head .glyph svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.cmp-grid .head h3 { margin: 0; font-size: 22px; font-weight: 500; letter-spacing: -.03em; line-height: 1.1; }
.cmp-grid .head .verdict { font-family: var(--serif); font-style: italic; font-size: 16.5px; line-height: 1.35; color: var(--ink-2); margin: 0; }
.cmp-grid .idx { font-size: 44px; letter-spacing: -.05em; line-height: 1; font-weight: 400; }
.cmp-grid .sec { grid-column: 1 / -1; background: var(--paper); font: 500 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink); padding: 12px 18px; }
.cmp-grid .scorebar { display: flex; align-items: center; gap: 10px; }
.cmp-grid .scorebar .track { flex: 1; height: 5px; background: var(--rule-2); border-radius: 3px; overflow: hidden; }
.cmp-grid .scorebar .track i { display: block; height: 100%; background: var(--ink); }
.cmp-grid .scorebar b { font: 500 13px var(--mono); width: 18px; text-align: right; }
.cmp-scroll { overflow-x: auto; }
@media (max-width: 860px) {
  .cmp-grid { grid-template-columns: 120px repeat(3, minmax(200px, 1fr)); min-width: 760px; }
}

/* ---------- Quiz ---------- */
.quiz-shell { min-height: calc(100vh - 68px); display: flex; flex-direction: column; }
.quiz-top { padding: 24px 0 0; }
.quiz-progress { display: flex; justify-content: space-between; align-items: center; font: 500 12px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.quiz-progress button { font: inherit; color: var(--ink-2); letter-spacing: inherit; }
.quiz-progress button:hover { color: var(--ink); }
.quiz-progress button[disabled] { opacity: 0; pointer-events: none; }
.quiz-bar { height: 2px; background: var(--rule-2); margin-top: 16px; position: relative; overflow: hidden; }
.quiz-bar i { position: absolute; inset: 0 auto 0 0; background: var(--ink); width: 0; transition: width .6s var(--ease); }
.quiz-stage { flex: 1; display: flex; align-items: center; padding: clamp(40px, 6vw, 80px) 0; }
.qstep { width: 100%; max-width: 920px; }
.qstep h1 { margin: 20px 0 0; font-weight: 500; font-size: clamp(34px, 5vw, 64px); letter-spacing: -.04em; line-height: 1.02; }
.qstep h1 em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.02em; }
.qstep .hint { margin: 16px 0 0; color: var(--ink-2); font-size: 17px; }
.opts { margin-top: clamp(28px, 4vw, 48px); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.opts.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.opt {
  display: flex; gap: 16px; align-items: flex-start; text-align: left;
  border: 1px solid var(--rule); border-radius: 14px; padding: 20px 20px 20px 18px; background: var(--card);
  transition: border-color .2s, background .2s, color .2s, transform .3s var(--ease);
}
.opt:hover { border-color: var(--ink); }
.opt .k { flex: none; width: 24px; height: 24px; border-radius: 6px; box-shadow: inset 0 0 0 1px var(--rule); display: grid; place-items: center; font: 500 11px var(--mono); color: var(--ink-3); transition: all .2s; }
.opt b { display: block; font-weight: 500; font-size: 17px; letter-spacing: -.015em; }
.opt small { display: block; margin-top: 4px; font-size: 14px; color: var(--ink-3); line-height: 1.4; }
.opt[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.opt[aria-pressed="true"] small { color: #B7B4AB; }
.opt[aria-pressed="true"] .k { background: var(--ember); color: var(--ink); box-shadow: none; }
.q-next { margin-top: 28px; display: flex; gap: 16px; align-items: center; }
.q-next .muted { font-size: 13px; }
@media (max-width: 720px) { .opts, .opts.three { grid-template-columns: 1fr; } }

.q-anim-in { animation: qin .55s var(--ease) both; }
@keyframes qin { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* results */
.result-hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; padding: clamp(36px, 5vw, 64px); }
.result-hero .match { font: 500 12px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--night-ink-3); display: flex; gap: 14px; align-items: center; }
.result-hero .match b { color: var(--ember); font-weight: 500; }
.result-hero h2 { margin: 18px 0 0; font-size: clamp(40px, 5.6vw, 80px); font-weight: 500; letter-spacing: -.045em; line-height: .96; }
.result-hero .verdict { margin: 18px 0 0; font-family: var(--serif); font-style: italic; font-size: clamp(20px, 2vw, 26px); line-height: 1.3; color: var(--night-ink-2); }
.result-hero .why { margin: 28px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.result-hero .why li { padding-left: 26px; position: relative; color: var(--night-ink); font-size: 15.5px; }
.result-hero .why li::before { content: ""; position: absolute; left: 0; top: 9px; width: 14px; height: 1px; background: var(--ember); }
.result-hero .rbtns { margin-top: 32px; display: flex; gap: 10px; flex-wrap: wrap; }
.result-hero .glyph { aspect-ratio: 4/3; border-radius: 18px; background: var(--night-2); border: 1px solid var(--night-rule); position: relative; overflow: hidden; }
.result-hero .glyph svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.result-stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--night-rule); }
.result-stats div { padding: 20px clamp(20px, 3vw, 36px); }
.result-stats div + div { border-left: 1px solid var(--night-rule); }
.result-stats span { display: block; font: 500 10.5px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--night-ink-3); }
.result-stats b { display: block; margin-top: 8px; font-weight: 400; font-size: 22px; letter-spacing: -.03em; }
@media (max-width: 860px) {
  .result-hero { grid-template-columns: 1fr; }
  .result-stats { grid-template-columns: 1fr 1fr; }
  .result-stats div:nth-child(3) { border-left: 0; }
  .result-stats div:nth-child(n+3) { border-top: 1px solid var(--night-rule); }
}

/* ---------- Prose / about ---------- */
.prose { max-width: 680px; }
.prose p { font-family: var(--serif); font-size: 21px; line-height: 1.55; margin: 0 0 22px; }
.prose h3 { margin: 48px 0 16px; font-size: 26px; font-weight: 500; letter-spacing: -.03em; }
.cols-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tile { background: var(--card); border: 1px solid var(--rule-2); border-radius: 18px; padding: 28px; }
.tile .n { font: 500 12px var(--mono); color: var(--ink-3); letter-spacing: .06em; }
.tile h4 { margin: 40px 0 10px; font-size: 21px; font-weight: 500; letter-spacing: -.025em; }
.tile p { margin: 0; color: var(--ink-2); font-size: 15px; line-height: 1.5; }
@media (max-width: 860px) { .cols-3 { grid-template-columns: 1fr; } }

.weights { display: grid; grid-template-columns: repeat(6, 1fr); border: 1px solid var(--rule-2); border-radius: 18px; overflow: hidden; background: var(--card); }
.weights div { padding: 22px 20px; }
.weights div + div { border-left: 1px solid var(--rule-2); }
.weights b { display: block; font-size: 34px; font-weight: 400; letter-spacing: -.04em; }
.weights span { font: 500 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
@media (max-width: 760px) { .weights { grid-template-columns: repeat(3, 1fr); } .weights div:nth-child(4) { border-left: 0; } .weights div:nth-child(n+4) { border-top: 1px solid var(--rule-2); } }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* misc */
.marquee-row { display: flex; gap: 40px; flex-wrap: wrap; align-items: center; justify-content: space-between; padding: 28px 0; border-top: 1px solid var(--rule-2); border-bottom: 1px solid var(--rule-2); }
.marquee-row span { font-weight: 500; font-size: clamp(16px, 1.6vw, 20px); letter-spacing: -.02em; color: var(--ink-3); }
.note { font-size: 13px; color: var(--ink-3); line-height: 1.5; }
.center { text-align: center; }
.pick-bed svg { width: 100%; height: 100%; }
#ch-beds .chart { max-width: 880px; margin: 0 auto; }
.chart .bed { transition: stroke-opacity .25s, fill-opacity .25s; }
.chart .bed.on { fill-opacity: .12; stroke-width: 2.5; }
@media (max-width: 600px) {
  .eyebrow { flex-wrap: wrap; gap: 6px 12px; line-height: 1.3; }
  .eyebrow::after { display: none; }
}
