/* ============================================================================
   Nebula Porch — deep-space observatory design system
   Layout: fixed left instrument rail + editorial magazine column.
   WebKit notes: no `aspect-ratio` on flex/grid children anywhere; every square
   widget carries explicit width+height+flex:none; no var() inside SVG
   presentation attributes.
   ========================================================================= */

/* ---------- 1. Tokens ---------------------------------------------------- */
:root {
  /* palette — night sky, sodium lamp, OIII cyan, nebula violet */
  --void: #04060d;
  --ink-900: #070a13;
  --ink-850: #0a0e1a;
  --ink-800: #0e1322;
  --ink-750: #131a2d;
  --ink-700: #1a2238;
  --ink-600: #232d47;

  --amber: #f2a93c;
  --amber-soft: #ffd08a;
  --cyan: #63d2e8;
  --violet: #8f7dff;
  --rose: #ff7b93;

  --text: #e9edf6;
  --text-dim: #a7b1c7;
  --text-faint: #6d7896;

  --line: rgba(148, 163, 196, 0.16);
  --line-strong: rgba(148, 163, 196, 0.3);
  --glow-amber: rgba(242, 169, 60, 0.28);
  --glow-cyan: rgba(99, 210, 232, 0.22);

  /* type */
  --font-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia,
    serif;
  --font-body: "Inter Tight", "Inter", -apple-system, BlinkMacSystemFont,
    "Segoe UI", Helvetica, Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas,
    monospace;

  --step--1: clamp(0.78rem, 0.76rem + 0.1vw, 0.85rem);
  --step-0: clamp(0.95rem, 0.92rem + 0.15vw, 1.03rem);
  --step-1: clamp(1.1rem, 1.03rem + 0.35vw, 1.32rem);
  --step-2: clamp(1.35rem, 1.2rem + 0.7vw, 1.8rem);
  --step-3: clamp(1.7rem, 1.4rem + 1.4vw, 2.6rem);
  --step-4: clamp(2.1rem, 1.5rem + 2.8vw, 4rem);
  --step-5: clamp(2.6rem, 1.6rem + 4.6vw, 5.6rem);

  /* structure */
  --rail: 236px;
  --gut: clamp(1.1rem, 0.6rem + 2vw, 3.25rem);
  --max: 1200px;
  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 20px;
  --shadow-1: 0 1px 0 rgba(255, 255, 255, 0.04) inset,
    0 18px 44px -28px rgba(0, 0, 0, 0.9);
  --shadow-2: 0 30px 70px -40px rgba(0, 0, 0, 0.95);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- 2. Reset ---------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}
body {
  margin: 0;
  background: var(--ink-900);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  overflow-x: hidden;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select {
  font: inherit;
  color: inherit;
}
h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0;
}
p {
  margin: 0 0 1em;
}
ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 3px;
}
::selection {
  background: var(--amber);
  color: #10131c;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

/* ---------- 3. Utility bands ------------------------------------------- */
.band {
  position: relative;
  padding: clamp(3rem, 2rem + 4vw, 6.5rem) var(--gut);
}
.band--base {
  background: var(--ink-900);
}
.band--tint {
  background: linear-gradient(180deg, var(--ink-850), var(--ink-800));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.band--deep {
  background: radial-gradient(
      120% 90% at 15% 0%,
      rgba(143, 125, 255, 0.11),
      transparent 60%
    ),
    var(--void);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.inner {
  max-width: var(--max);
  margin-inline: auto;
}
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--amber);
  margin: 0 0 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--amber);
  flex: none;
}
.eyebrow--center {
  justify-content: center;
}
.eyebrow--center::after {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--amber);
  flex: none;
}
.lede {
  color: var(--text-dim);
  font-size: var(--step-1);
  line-height: 1.55;
  max-width: 56ch;
}
.starfield {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(
      1.4px 1.4px at 12% 18%,
      rgba(255, 255, 255, 0.7),
      transparent
    ),
    radial-gradient(1.2px 1.2px at 78% 12%, rgba(255, 255, 255, 0.5), transparent),
    radial-gradient(1.6px 1.6px at 44% 62%, rgba(255, 255, 255, 0.45), transparent),
    radial-gradient(1.1px 1.1px at 88% 74%, rgba(255, 255, 255, 0.5), transparent),
    radial-gradient(1.3px 1.3px at 26% 84%, rgba(255, 255, 255, 0.4), transparent),
    radial-gradient(1px 1px at 62% 34%, rgba(255, 255, 255, 0.35), transparent),
    radial-gradient(1.5px 1.5px at 8% 52%, rgba(255, 255, 255, 0.3), transparent),
    radial-gradient(1px 1px at 94% 42%, rgba(255, 255, 255, 0.3), transparent);
  opacity: 0.85;
}

/* ---------- 4. Buttons ------------------------------------------------- */
.btn {
  --btn-h: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  height: var(--btn-h);
  padding: 0 1.35rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease),
    color 0.25s var(--ease), transform 0.25s var(--ease);
}
.btn:hover {
  border-color: var(--amber);
  color: var(--amber-soft);
  transform: translateY(-1px);
}
.btn--solid {
  background: linear-gradient(180deg, var(--amber-soft), var(--amber));
  border-color: transparent;
  color: #17120a;
  font-weight: 600;
  box-shadow: 0 12px 30px -16px var(--glow-amber);
}
.btn--solid:hover {
  color: #17120a;
  filter: brightness(1.06);
}
.btn--ghost {
  border-color: var(--line);
  color: var(--text-dim);
}
.btn--sm {
  --btn-h: 38px;
  padding: 0 1rem;
  font-size: 0.82rem;
}
.btn--block {
  width: 100%;
}

/* ---------- 5. Rail (desktop nav) -------------------------------------- */
.rail {
  position: fixed;
  /* must stay above .scrim (65) or the drawer overlay eats every tap */
  z-index: 68;
  inset: 0 auto 0 0;
  width: var(--rail);
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  padding: 1.6rem 1.15rem 1.2rem;
  background: linear-gradient(180deg, var(--void), var(--ink-850) 60%, var(--void));
  border-right: 1px solid var(--line);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.rail__brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.rail__logo {
  width: 40px;
  height: 40px;
  flex: none;
  object-fit: contain;
}
.rail__wordmark {
  font-family: var(--font-display);
  font-size: 1.12rem;
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.rail__wordmark span {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-top: 0.28rem;
}
.rail__section {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-faint);
  padding: 0 0.35rem;
  margin-bottom: 0.45rem;
}
.rail__nav {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}
.rail__link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.5rem 0.6rem;
  border-radius: var(--r-sm);
  color: var(--text-dim);
  font-size: 0.9rem;
  border-left: 2px solid transparent;
  transition: background 0.2s var(--ease), color 0.2s var(--ease),
    border-color 0.2s var(--ease);
}
.rail__link:hover,
.rail__link[aria-current="page"] {
  background: rgba(148, 163, 196, 0.07);
  color: var(--text);
  border-left-color: var(--amber);
}
.rail__dot {
  width: 6px;
  height: 6px;
  flex: none;
  border-radius: 50%;
  background: var(--line-strong);
}
.rail__link:hover .rail__dot,
.rail__link[aria-current="page"] .rail__dot {
  background: var(--amber);
  box-shadow: 0 0 8px var(--glow-amber);
}
.rail__cats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}
.rail__cat {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.04em;
  padding: 0.22rem 0.5rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text-dim);
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.rail__cat:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}
.rail__meter {
  margin-top: auto;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 0.85rem 0.9rem;
  background: rgba(10, 14, 26, 0.7);
}
.rail__meter-num {
  font-family: var(--font-display);
  font-size: 1.9rem;
  line-height: 1;
  color: var(--amber);
}
.rail__meter-label {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-top: 0.3rem;
}
.rail__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.7rem;
  font-size: 0.72rem;
  color: var(--text-faint);
}
.rail__legal a:hover {
  color: var(--text-dim);
}

/* topbar — hidden on desktop, shown under 1080px */
.topbar {
  display: none;
  position: fixed;
  z-index: 70;
  top: 0;
  left: 0;
  right: 0;
  height: 62px;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0 0.9rem;
  background: rgba(7, 10, 19, 0.92);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.topbar__brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-size: 1.02rem;
}
.topbar__logo {
  width: 30px;
  height: 30px;
  flex: none;
  object-fit: contain;
}
.burger {
  width: 42px;
  height: 42px;
  flex: none;
  display: grid;
  place-items: center;
  gap: 4px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  background: transparent;
  cursor: pointer;
}
.burger span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--text);
}
.scrim {
  position: fixed;
  inset: 0;
  z-index: 65;
  background: rgba(4, 6, 13, 0.72);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease);
}
body.nav-open .scrim {
  opacity: 1;
  pointer-events: auto;
}

/* ---------- 6. Page shell --------------------------------------------- */
.shell {
  margin-left: var(--rail);
  min-height: 100vh;
}

/* ---------- 7. Bento hero -------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(3rem, 2rem + 5vw, 6rem) var(--gut) clamp(2.5rem, 2rem + 3vw, 4.5rem);
  background: radial-gradient(
      95% 70% at 78% -5%,
      rgba(143, 125, 255, 0.2),
      transparent 62%
    ),
    radial-gradient(70% 60% at 8% 8%, rgba(99, 210, 232, 0.14), transparent 60%),
    linear-gradient(180deg, var(--void), var(--ink-900));
}
.hero__grid {
  position: relative;
  max-width: var(--max);
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 0.9rem;
}
.hero__lead {
  grid-column: span 7;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(1rem, 0.5rem + 1vw, 1.75rem) 0;
}
.hero__title {
  font-size: var(--step-5);
  margin-bottom: 1rem;
}
.hero__title em {
  font-style: normal;
  color: var(--amber);
}
.hero__sub {
  color: var(--text-dim);
  font-size: var(--step-1);
  max-width: 44ch;
  margin-bottom: 1.6rem;
}
.hero__search {
  display: flex;
  gap: 0.5rem;
  max-width: 480px;
  margin-bottom: 1.1rem;
}
.field {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
}
.field input,
.field select {
  width: 100%;
  height: 48px;
  padding: 0 1rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(10, 14, 26, 0.85);
  color: var(--text);
  font-size: 0.95rem;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
  -webkit-appearance: none;
  appearance: none;
}
.field input::placeholder {
  color: var(--text-faint);
}
.field input:focus,
.field select:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 4px rgba(99, 210, 232, 0.12);
  outline: none;
}
.hero__hints {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-faint);
}
.hero__hint {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 0.25rem 0.6rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text-dim);
  cursor: pointer;
  background: transparent;
}
.hero__hint:hover {
  border-color: var(--amber);
  color: var(--amber-soft);
}

.hero__feature {
  grid-column: span 5;
  grid-row: span 2;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 340px;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--ink-850);
}
.hero__feature-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.72;
  transform: scale(1.02);
  transition: transform 0.9s var(--ease), opacity 0.6s var(--ease);
}
.hero__feature:hover .hero__feature-img {
  transform: scale(1.07);
  opacity: 0.85;
}
.hero__feature::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(4, 6, 13, 0.15) 20%,
    rgba(4, 6, 13, 0.88) 78%
  );
}
.hero__feature-body {
  position: relative;
  z-index: 1;
}
.hero__feature-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #17120a;
  background: var(--amber);
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  margin-bottom: 0.7rem;
}
.hero__feature-name {
  display: block;
  font-family: var(--font-display);
  font-size: var(--step-2);
  line-height: 1.12;
  margin-bottom: 0.35rem;
}
.hero__feature-meta {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--text-dim);
  letter-spacing: 0.05em;
}

.hero__stats {
  grid-column: span 7;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, rgba(19, 26, 45, 0.62), rgba(10, 14, 26, 0.4));
  overflow: hidden;
}
.stat {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.2rem;
  padding: 1.15rem 1.1rem;
  border-right: 1px solid var(--line);
  min-height: 118px;
}
.stat:last-child {
  border-right: 0;
}
.stat__num {
  font-family: var(--font-display);
  font-size: clamp(2rem, 1.4rem + 2vw, 3.1rem);
  line-height: 0.95;
  color: var(--text);
}
.stat__num small {
  font-size: 0.42em;
  color: var(--amber);
  margin-left: 0.15em;
}
.stat__label {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-faint);
}

/* ---------- 8. Editorial zig-zag picks ------------------------------- */
.picks__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.2rem;
  margin-bottom: clamp(1.75rem, 1rem + 2vw, 3rem);
  padding-bottom: 1.1rem;
  border-bottom: 1px solid var(--line);
}
.picks__title {
  font-size: var(--step-3);
}
.picks__note {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
  max-width: 30ch;
  text-align: right;
}
.zig {
  display: flex;
  flex-direction: column;
  gap: clamp(2rem, 1rem + 3vw, 4rem);
}
.zig__row {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(1.25rem, 0.5rem + 2.5vw, 3rem);
  align-items: center;
}
.zig__row:nth-child(even) .zig__media {
  order: 2;
}
.zig__media {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--ink-800);
  height: clamp(240px, 20vw, 360px);
}
.zig__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease);
}
.zig__row:hover .zig__media img {
  transform: scale(1.05);
}
.zig__rank {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  width: 74px;
  height: 74px;
  flex: none;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 2.1rem;
  line-height: 1;
  color: #17120a;
  background: linear-gradient(150deg, var(--amber-soft), var(--amber));
  border-bottom-right-radius: var(--r-lg);
}
.zig__body {
  min-width: 0;
}
.zig__cat {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 0.6rem;
}
.zig__name {
  font-size: var(--step-2);
  margin-bottom: 0.7rem;
}
.zig__name a:hover {
  color: var(--amber-soft);
}
.zig__quote {
  color: var(--text-dim);
  border-left: 2px solid var(--amber);
  padding-left: 1rem;
  margin-bottom: 1.1rem;
}
.zig__specs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.2rem;
}
.chip {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.03em;
  padding: 0.3rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: rgba(19, 26, 45, 0.6);
  color: var(--text-dim);
}
.chip b {
  color: var(--text);
  font-weight: 500;
}
.zig__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
}

/* ---------- 9. Rating gauge (explicit box, WebKit-safe) --------------- */
.gauge {
  position: relative;
  width: 60px;
  height: 60px;
  flex: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: conic-gradient(
    var(--amber) calc(var(--pct, 0) * 1%),
    rgba(148, 163, 196, 0.16) 0
  );
}
.gauge::before {
  content: "";
  position: absolute;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--ink-850);
  border: 1px solid var(--line);
}
.gauge__val {
  position: relative;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
}
.gauge--lg {
  width: 78px;
  height: 78px;
}
.gauge--lg::before {
  width: 60px;
  height: 60px;
}
.gauge--lg .gauge__val {
  font-size: 1rem;
}
.gauge--sm {
  width: 44px;
  height: 44px;
}
.gauge--sm::before {
  width: 34px;
  height: 34px;
}
.gauge--sm .gauge__val {
  font-size: 0.7rem;
}

/* ---------- 10. Ranking table (sticky column) ------------------------ */
.rank {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: clamp(1.5rem, 0.5rem + 3vw, 3.5rem);
  align-items: start;
}
.rank__aside {
  position: sticky;
  top: 92px;
}
.rank__title {
  font-size: var(--step-3);
  margin-bottom: 0.9rem;
}
.rank__legend {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-top: 1.4rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
}
.rank__legend-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.rank__swatch {
  width: 18px;
  height: 4px;
  flex: none;
  border-radius: 2px;
}
.rank__rows {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  min-width: 0;
}
.rrow {
  position: relative;
  display: grid;
  grid-template-columns: 52px 96px minmax(0, 1.45fr) minmax(0, 1.2fr) auto;
  gap: 1rem;
  align-items: center;
  padding: 0.8rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: linear-gradient(
    100deg,
    rgba(19, 26, 45, 0.55),
    rgba(10, 14, 26, 0.35)
  );
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease),
    background 0.25s var(--ease);
}
.rrow:hover {
  border-color: var(--line-strong);
  transform: translateX(3px);
  background: linear-gradient(
    100deg,
    rgba(26, 34, 56, 0.8),
    rgba(14, 19, 34, 0.5)
  );
}
.rrow__link {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: var(--r-md);
}
.rrow__rank {
  font-family: var(--font-display);
  font-size: 1.7rem;
  line-height: 1;
  color: var(--text-faint);
  text-align: center;
}
.rrow:nth-child(-n + 3) .rrow__rank {
  color: var(--amber);
}
.rrow__media {
  width: 96px;
  height: 68px;
  flex: none;
  border-radius: var(--r-sm);
  overflow: hidden;
  background: var(--ink-800);
  border: 1px solid var(--line);
}
.rrow__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.rrow__id {
  min-width: 0;
}
.rrow__name {
  display: block;
  font-family: var(--font-display);
  font-size: 1.05rem;
  line-height: 1.2;
  margin-bottom: 0.25rem;
}
.rrow__meta {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.bars {
  display: flex;
  flex-direction: column;
  gap: 0.34rem;
  min-width: 0;
}
.bar {
  display: grid;
  grid-template-columns: 74px 1fr 30px;
  gap: 0.5rem;
  align-items: center;
}
.bar__label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.bar__track {
  height: 5px;
  border-radius: 3px;
  background: rgba(148, 163, 196, 0.14);
  overflow: hidden;
}
.bar__fill {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 3px;
  transition: width 1s var(--ease);
}
.bar__fill--optics {
  background: linear-gradient(90deg, rgba(242, 169, 60, 0.5), var(--amber));
}
.bar__fill--reach {
  background: linear-gradient(90deg, rgba(99, 210, 232, 0.45), var(--cyan));
}
.bar__fill--port {
  background: linear-gradient(90deg, rgba(143, 125, 255, 0.45), var(--violet));
}
.bar__val {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  color: var(--text-dim);
  text-align: right;
}
.rrow__side {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

/* ---------- 11. Calculator ------------------------------------------- */
.calc {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(1.5rem, 0.5rem + 3vw, 3.5rem);
  align-items: start;
}
.calc__form {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(1.1rem, 0.7rem + 1vw, 1.75rem);
  background: linear-gradient(180deg, rgba(19, 26, 45, 0.7), rgba(10, 14, 26, 0.45));
}
.calc__rows {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  margin-bottom: 1.2rem;
}
.ctrl {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.ctrl > label {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.ctrl input,
.ctrl select {
  height: 44px;
  border-radius: var(--r-sm);
  padding: 0 0.8rem;
  border: 1px solid var(--line-strong);
  background: rgba(7, 10, 19, 0.8);
  color: var(--text);
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
}
.ctrl select {
  background-image: linear-gradient(45deg, transparent 50%, #a7b1c7 50%),
    linear-gradient(135deg, #a7b1c7 50%, transparent 50%);
  background-position: calc(100% - 18px) 19px, calc(100% - 13px) 19px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 2.2rem;
}
.calc__readouts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}
.readout {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 0.95rem 1rem;
  background: rgba(7, 10, 19, 0.65);
  min-height: 104px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.readout__num {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2.2rem);
  line-height: 1;
  color: var(--cyan);
}
.readout__num small {
  font-size: 0.44em;
  color: var(--text-faint);
  margin-left: 0.2em;
}
.readout__label {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-top: 0.4rem;
}
.readout__hint {
  font-size: 0.76rem;
  color: var(--text-dim);
  margin-top: 0.35rem;
  line-height: 1.4;
}
.calc__matches {
  margin-top: 1.35rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
}
.calc__matches h3 {
  font-size: 1.1rem;
  margin-bottom: 0.8rem;
}
.match {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  gap: 0.8rem;
  align-items: center;
  padding: 0.5rem;
  border-radius: var(--r-sm);
  border: 1px solid transparent;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.match:hover {
  border-color: var(--line-strong);
  background: rgba(19, 26, 45, 0.6);
}
.match__media {
  width: 58px;
  height: 44px;
  flex: none;
  border-radius: 4px;
  overflow: hidden;
  background: var(--ink-800);
}
.match__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.match__name {
  font-size: 0.9rem;
  line-height: 1.25;
}
.match__meta {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  color: var(--text-faint);
  letter-spacing: 0.05em;
}
.match__num {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--amber);
  text-align: right;
  white-space: nowrap;
}

/* ---------- 12. Browse grid + filters -------------------------------- */
.browse__head {
  text-align: center;
  margin-bottom: clamp(1.5rem, 1rem + 1.5vw, 2.5rem);
}
.browse__title {
  font-size: var(--step-3);
  margin-bottom: 0.6rem;
}
.browse__sub {
  color: var(--text-dim);
  margin: 0 auto;
  max-width: 52ch;
}
.filters {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.75rem;
  padding: 1rem;
  margin-bottom: 1.6rem;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: rgba(14, 19, 34, 0.6);
}
.filters .ctrl {
  flex: 1 1 170px;
  min-width: 0;
}
.filters .btn {
  --btn-h: 44px;
  flex: none;
}
.filters__count {
  flex: 1 1 100%;
  order: 9;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
}
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: linear-gradient(180deg, rgba(19, 26, 45, 0.5), rgba(10, 14, 26, 0.3));
  overflow: hidden;
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease),
    box-shadow 0.25s var(--ease);
}
.card:hover {
  border-color: var(--line-strong);
  transform: translateY(-3px);
  box-shadow: var(--shadow-2);
}
.card__media {
  position: relative;
  height: 176px;
  flex: none;
  overflow: hidden;
  background: var(--ink-800);
  border-bottom: 1px solid var(--line);
}
.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}
.card:hover .card__media img {
  transform: scale(1.06);
}
.card__gauge {
  position: absolute;
  right: 0.6rem;
  bottom: 0.6rem;
  z-index: 2;
}
.card__body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  gap: 0.55rem;
  padding: 0.95rem 1rem 1rem;
}
.card__cat {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
}
.card__name {
  font-size: 1.02rem;
  line-height: 1.22;
}
.card__feats {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-top: auto;
  padding-top: 0.35rem;
}
.card__feat {
  position: relative;
  padding-left: 0.85rem;
  font-size: 0.79rem;
  line-height: 1.45;
  color: var(--text-dim);
}
.card__feat::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--amber);
}
.card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding-top: 0.6rem;
  border-top: 1px solid var(--line);
}
.card__link {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.card__cta {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.card:hover .card__cta {
  color: var(--amber-soft);
}
.pin {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  height: 30px;
  padding: 0 0.65rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(7, 10, 19, 0.7);
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  cursor: pointer;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease),
    background 0.2s var(--ease);
}
.pin:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}
.pin[aria-pressed="true"] {
  border-color: var(--cyan);
  background: rgba(99, 210, 232, 0.14);
  color: var(--cyan);
}
.pager {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.35rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}
.pager button {
  min-width: 42px;
  height: 42px;
  padding: 0 0.7rem;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: transparent;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-dim);
  cursor: pointer;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease),
    background 0.2s var(--ease);
}
.pager button:hover:not(:disabled) {
  border-color: var(--amber);
  color: var(--amber-soft);
}
.pager button[aria-current="true"] {
  background: var(--amber);
  border-color: var(--amber);
  color: #17120a;
}
.pager button:disabled {
  opacity: 0.35;
  cursor: default;
}
.empty {
  padding: 3rem 1rem;
  text-align: center;
  color: var(--text-dim);
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-md);
}

/* ---------- 13. Methodology grid ------------------------------------- */
.method {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.method__cell {
  background: var(--ink-850);
  padding: clamp(1.1rem, 0.8rem + 1vw, 1.9rem);
  min-height: 200px;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  transition: background 0.3s var(--ease);
}
.method__cell:hover {
  background: var(--ink-800);
}
.method__num {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  color: var(--amber);
}
.method__title {
  font-size: 1.18rem;
}
.method__text {
  color: var(--text-dim);
  font-size: 0.88rem;
  line-height: 1.6;
  margin: 0;
}

/* ---------- 14. Compare tray + modal --------------------------------- */
.tray {
  position: fixed;
  z-index: 80;
  left: var(--rail);
  right: 0;
  bottom: 0;
  transform: translateY(105%);
  transition: transform 0.4s var(--ease);
  background: rgba(7, 10, 19, 0.95);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--line-strong);
  padding: 0.7rem clamp(0.9rem, 0.5rem + 1.5vw, 2rem);
}
.tray.is-open {
  transform: translateY(0);
}
.tray__inner {
  max-width: var(--max);
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  flex-wrap: wrap;
}
.tray__label {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
  flex: none;
}
.tray__items {
  display: flex;
  gap: 0.5rem;
  flex: 1 1 auto;
  flex-wrap: wrap;
  min-width: 0;
}
.tray__item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 0.6rem 0.3rem 0.3rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(19, 26, 45, 0.7);
  max-width: 230px;
}
.tray__thumb {
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 50%;
  overflow: hidden;
  background: var(--ink-800);
}
.tray__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.tray__name {
  font-size: 0.78rem;
  line-height: 1.2;
  color: var(--text-dim);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tray__drop {
  width: 22px;
  height: 22px;
  flex: none;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(148, 163, 196, 0.14);
  color: var(--text-dim);
  font-size: 0.8rem;
  line-height: 1;
  cursor: pointer;
}
.tray__drop:hover {
  background: var(--rose);
  color: #16101a;
}
.tray__actions {
  display: flex;
  gap: 0.5rem;
  flex: none;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: none;
  padding: clamp(0.75rem, 0.4rem + 1.5vw, 2.5rem);
}
.modal.is-open {
  display: block;
}
.modal__scrim {
  position: absolute;
  inset: 0;
  background: rgba(4, 6, 13, 0.82);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.modal__panel {
  position: relative;
  max-width: 1040px;
  margin: 0 auto;
  max-height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--ink-850);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-2);
  overflow: hidden;
}
.modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1.1rem;
  border-bottom: 1px solid var(--line);
  flex: none;
}
.modal__title {
  font-size: 1.15rem;
}
.modal__close {
  width: 36px;
  height: 36px;
  flex: none;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: transparent;
  color: var(--text-dim);
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
}
.modal__close:hover {
  border-color: var(--rose);
  color: var(--rose);
}
.modal__body {
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0 1.1rem 1.1rem;
}
.ctable {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}
.ctable th,
.ctable td {
  text-align: left;
  padding: 0.55rem 0.7rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.ctable thead th {
  position: sticky;
  top: 0;
  background: var(--ink-800);
  padding: 0.6rem 0.7rem;
  z-index: 1;
}
.ctable thead th:first-child {
  width: 150px;
}
.ct-head {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.ct-thumb {
  width: 100%;
  height: 78px;
  border-radius: var(--r-sm);
  overflow: hidden;
  background: var(--ink-750);
}
.ct-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ct-name {
  font-family: var(--font-display);
  font-size: 0.92rem;
  line-height: 1.2;
}
.ct-name a:hover {
  color: var(--amber-soft);
}
.ct-meta {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  color: var(--text-faint);
  letter-spacing: 0.05em;
}
.ctable tbody th {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
  font-weight: 400;
}
.ctable tbody tr:hover td,
.ctable tbody tr:hover th {
  background: rgba(148, 163, 196, 0.05);
}
.ct-miss {
  color: var(--text-faint);
}

/* ---------- 15. Product page ----------------------------------------- */
.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  padding: 1.15rem var(--gut) 0;
  max-width: calc(var(--max) + 2 * var(--gut));
  margin-inline: auto;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.crumbs a:hover {
  color: var(--amber-soft);
}
.crumbs span[aria-hidden] {
  opacity: 0.5;
}

.phero {
  padding: clamp(1.5rem, 1rem + 2vw, 2.75rem) var(--gut)
    clamp(2rem, 1.5rem + 2vw, 3.5rem);
  background: radial-gradient(
      80% 60% at 80% 0%,
      rgba(143, 125, 255, 0.14),
      transparent 60%
    ),
    linear-gradient(180deg, var(--void), var(--ink-900));
}
.phero__grid {
  max-width: var(--max);
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.85fr);
  gap: clamp(1.25rem, 0.5rem + 2.5vw, 2.75rem);
  align-items: stretch;
}
.pcol {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  min-width: 0;
}
.pstage {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--ink-800);
  height: clamp(280px, 28vw, 390px);
  flex: none;
}
.pstage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pstage__badge {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #17120a;
  background: var(--amber);
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
}
.pthumbs {
  display: flex;
  gap: 0.55rem;
  flex: none;
}
.pthumb {
  width: 92px;
  height: 66px;
  flex: none;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  overflow: hidden;
  background: var(--ink-800);
  cursor: pointer;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.pthumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pthumb:hover {
  transform: translateY(-2px);
}
.pthumb[aria-current="true"] {
  border-color: var(--amber);
  box-shadow: 0 0 0 2px var(--glow-amber);
}
.pspecs {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: linear-gradient(180deg, rgba(19, 26, 45, 0.5), rgba(10, 14, 26, 0.3));
  overflow: hidden;
}
.pspecs__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.7rem 0.95rem;
  border-bottom: 1px solid var(--line);
  flex: none;
}
.pspecs__title {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.pspecs__list {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}
.pspec {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex: 1 1 auto;
  min-height: 42px;
  padding: 0.45rem 0.95rem;
  border-bottom: 1px solid var(--line);
}
.pspec:last-child {
  border-bottom: 0;
}
.pspec__k {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-faint);
  flex: none;
}
.pspec__v {
  font-size: 0.88rem;
  color: var(--text);
  text-align: right;
}

.pside {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  min-width: 0;
}
.buybox {
  position: sticky;
  top: 92px;
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 0.9rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-lg);
  padding: clamp(1.1rem, 0.8rem + 0.8vw, 1.6rem);
  background: linear-gradient(180deg, rgba(26, 34, 56, 0.75), rgba(10, 14, 26, 0.55));
  box-shadow: var(--shadow-1);
}
.buybox__top {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}
.buybox__brand {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 0.3rem;
}
.buybox__name {
  font-size: var(--step-2);
  line-height: 1.08;
}
.buybox__stars {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--amber);
  letter-spacing: 0.08em;
}
.buybox__tagline {
  color: var(--text-dim);
  font-size: 0.9rem;
  margin: 0;
}
.buybox__quick {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
}
.buybox__cell {
  background: rgba(7, 10, 19, 0.55);
  padding: 0.7rem 0.8rem;
  min-height: 74px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.buybox__cell b {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 500;
  line-height: 1;
  color: var(--text);
}
.buybox__cell b small {
  font-size: 0.46em;
  color: var(--amber);
  margin-left: 0.15em;
}
.buybox__cell span {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-top: 0.3rem;
}
.buybox__trust {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.85rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.buybox__trust li {
  position: relative;
  padding-left: 1.15rem;
  font-size: 0.82rem;
  color: var(--text-dim);
}
.buybox__trust li::before {
  content: "✦";
  position: absolute;
  left: 0;
  color: var(--amber);
  font-size: 0.7rem;
  top: 0.15em;
}
.buybox__actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.buybox__note {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  color: var(--text-faint);
  margin: 0;
  text-align: center;
}

.verdict {
  border-left: 3px solid var(--amber);
  padding: 0.2rem 0 0.2rem 1.15rem;
  margin-bottom: 1.4rem;
}
.verdict__label {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 0.5rem;
}
.verdict__text {
  font-family: var(--font-display);
  font-size: var(--step-1);
  line-height: 1.45;
  color: var(--text);
  margin: 0;
}

.feats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}
.feat {
  display: flex;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: rgba(19, 26, 45, 0.4);
}
.feat__n {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  color: var(--amber);
  flex: none;
  padding-top: 0.15rem;
}
.feat__t {
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--text-dim);
}

.review {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.85fr);
  gap: clamp(1.5rem, 0.5rem + 3vw, 3rem);
  align-items: start;
}
.review__body {
  min-width: 0;
}
.review__body > p {
  color: var(--text-dim);
  line-height: 1.8;
  margin-bottom: 1.25rem;
}
.review__body > p:first-of-type::first-letter {
  float: left;
  font-family: var(--font-display);
  font-size: 3.4rem;
  line-height: 0.86;
  padding: 0.05em 0.14em 0 0;
  color: var(--amber);
}
.score {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: linear-gradient(180deg, rgba(19, 26, 45, 0.6), rgba(10, 14, 26, 0.35));
}
.score__head {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1rem 1.1rem;
  border-bottom: 1px solid var(--line);
}
.score__title {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.score__overall {
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: 1;
  color: var(--text);
}
.score__rows {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 1.1rem;
}
.score__row {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.score__meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
}
.score__k {
  font-size: 0.82rem;
  color: var(--text-dim);
}
.score__v {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text);
}
.score__note {
  margin: 0;
  padding: 0.9rem 1.1rem;
  border-top: 1px solid var(--line);
  font-size: 0.76rem;
  line-height: 1.55;
  color: var(--text-faint);
}

.aside {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 0;
}
.panel {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, rgba(19, 26, 45, 0.5), rgba(10, 14, 26, 0.3));
  overflow: hidden;
}
.panel__head {
  padding: 0.9rem 1.1rem;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.panel__body {
  padding: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.fit__label {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.45rem;
}
.fit__label--yes {
  color: var(--cyan);
}
.fit__label--no {
  color: var(--rose);
}
.fit__list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.fit__list li {
  font-size: 0.83rem;
  line-height: 1.5;
  color: var(--text-dim);
  padding-left: 0.9rem;
  position: relative;
}
.fit__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.6;
}
.mini {
  display: flex;
  flex-direction: column;
}
.mini__row {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  gap: 0.7rem;
  align-items: center;
  padding: 0.6rem 1.1rem;
  border-bottom: 1px solid var(--line);
}
.mini__row:last-child {
  border-bottom: 0;
}
.mini__media {
  width: 52px;
  height: 40px;
  flex: none;
  border-radius: 4px;
  overflow: hidden;
  background: var(--ink-800);
}
.mini__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.mini__name {
  font-size: 0.84rem;
  line-height: 1.25;
  display: block;
}
.mini__name:hover {
  color: var(--amber-soft);
}
.mini__meta {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--text-faint);
  letter-spacing: 0.05em;
}

.pc {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.feat--wide {
  grid-column: 1 / -1;
}
.pc__col {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(1rem, 0.7rem + 0.8vw, 1.5rem);
  background: rgba(19, 26, 45, 0.4);
}
.pc__col--pros {
  border-top: 3px solid var(--cyan);
}
.pc__col--cons {
  border-top: 3px solid var(--rose);
}
.pc__title {
  font-size: 1.12rem;
  margin-bottom: 0.9rem;
}
.pc__list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.pc__list li {
  position: relative;
  padding-left: 1.5rem;
  font-size: 0.87rem;
  line-height: 1.55;
  color: var(--text-dim);
}
.pc__list li::before {
  position: absolute;
  left: 0;
  top: 0;
  font-family: var(--font-mono);
  font-size: 0.8rem;
}
.pc__col--pros .pc__list li::before {
  content: "+";
  color: var(--cyan);
}
.pc__col--cons .pc__list li::before {
  content: "−";
  color: var(--rose);
}

.related {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
}
.disclosure {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  color: var(--text-faint);
  text-align: center;
  margin: 1.6rem 0 0;
}

/* ---------- 16. Editorial / legal pages ------------------------------ */
.doc {
  max-width: 760px;
  margin-inline: auto;
}
.doc h1 {
  font-size: var(--step-4);
  margin-bottom: 1rem;
}
.doc h2 {
  font-size: var(--step-2);
  margin: 2.2rem 0 0.8rem;
}
.doc h3 {
  font-size: var(--step-1);
  margin: 1.6rem 0 0.6rem;
}
.doc p,
.doc li {
  color: var(--text-dim);
  line-height: 1.8;
}
.doc ul {
  list-style: none;
  margin-bottom: 1.25rem;
}
.doc ul li {
  position: relative;
  padding-left: 1.15rem;
  margin-bottom: 0.45rem;
}
.doc ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.75em;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--amber);
}
.doc a {
  color: var(--cyan);
  border-bottom: 1px solid rgba(99, 210, 232, 0.35);
}
.doc a:hover {
  color: var(--amber-soft);
  border-color: var(--amber);
}
.doc__meta {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

/* ---------- 17. Footer ----------------------------------------------- */
.foot {
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, var(--ink-900), var(--void));
  padding: clamp(2.5rem, 2rem + 2vw, 4rem) var(--gut) 1.5rem;
}
.foot__grid {
  max-width: var(--max);
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 1rem + 2vw, 3rem);
}
.foot__brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.9rem;
}
.foot__logo {
  width: 42px;
  height: 42px;
  flex: none;
  object-fit: contain;
}
.foot__name {
  font-family: var(--font-display);
  font-size: 1.25rem;
}
.foot__desc {
  color: var(--text-faint);
  font-size: 0.86rem;
  line-height: 1.65;
  max-width: 40ch;
}
.foot__h {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 0.9rem;
}
.foot__list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.foot__list a {
  color: var(--text-dim);
  font-size: 0.86rem;
}
.foot__list a:hover {
  color: var(--amber-soft);
}
.foot__bottom {
  max-width: var(--max);
  margin: clamp(2rem, 1.5rem + 1.5vw, 3rem) auto 0;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.2rem;
  align-items: center;
  justify-content: space-between;
  font-size: 0.76rem;
  color: var(--text-faint);
}

/* ---------- 18. Cookie banner ---------------------------------------- */
#cookie {
  position: fixed;
  z-index: 85;
  left: 50%;
  bottom: 1rem;
  transform: translate(-50%, 160%);
  width: min(560px, calc(100vw - 2rem));
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 1.1rem;
  background: rgba(10, 14, 26, 0.96);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-2);
  transition: transform 0.45s var(--ease);
}
#cookie.is-open {
  transform: translate(-50%, 0);
}
#cookie p {
  flex: 1 1 240px;
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-dim);
}
#cookie a {
  color: var(--cyan);
}
#cookie .btn {
  --btn-h: 36px;
  font-size: 0.8rem;
}

/* ---------- 19. Reveal animation ------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ---------- 20. Responsive ------------------------------------------- */
@media (max-width: 1180px) {
  .grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  /* 4 related items: 2x2 rather than 3 + a lonely one */
  .related {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .rank {
    grid-template-columns: 240px 1fr;
  }
  .rrow {
    grid-template-columns: 44px 80px minmax(0, 1fr) minmax(0, 1.2fr) auto;
    gap: 0.7rem;
  }
  .rrow__media {
    width: 80px;
    height: 58px;
  }
}

@media (max-width: 1079px) {
  :root {
    --rail: 0px;
  }
  .rail {
    transform: translateX(-100%);
    transition: transform 0.35s var(--ease);
    width: 280px;
    padding-top: 76px;
    box-shadow: var(--shadow-2);
  }
  body.nav-open .rail {
    transform: translateX(0);
  }
  .topbar {
    display: flex;
  }
  .shell {
    margin-left: 0;
    padding-top: 62px;
  }
  .tray {
    left: 0;
  }
  html {
    scroll-padding-top: 74px;
  }
  .buybox,
  .rank__aside {
    position: static;
  }
  .phero__grid {
    grid-template-columns: 1fr;
  }
  .review {
    grid-template-columns: 1fr;
  }
  .hero__lead,
  .hero__feature,
  .hero__stats {
    grid-column: span 12;
  }
  .hero__feature {
    grid-row: auto;
    min-height: 280px;
    order: -1;
  }
  .calc {
    grid-template-columns: 1fr;
  }
  .method {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .grid,
  .related {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .rank {
    grid-template-columns: 1fr;
  }
  .rrow {
    grid-template-columns: 40px 74px minmax(0, 1fr);
    grid-template-areas:
      "rank media id"
      "bars bars bars"
      "side side side";
    row-gap: 0.7rem;
  }
  .rrow__rank {
    grid-area: rank;
  }
  .rrow__media {
    grid-area: media;
  }
  .rrow__id {
    grid-area: id;
  }
  .bars {
    grid-area: bars;
  }
  .rrow__side {
    grid-area: side;
    justify-content: space-between;
  }
  .zig__row {
    grid-template-columns: 1fr;
  }
  .zig__row:nth-child(even) .zig__media {
    order: 0;
  }
  .zig__media {
    height: clamp(200px, 42vw, 280px);
  }
  .picks__note {
    text-align: left;
    max-width: none;
  }
  .feats,
  .pc {
    grid-template-columns: 1fr;
  }
  .foot__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* touch sizing — every control clears ~34px on tablet and phone */
@media (max-width: 1079px) {
  .rail__cat {
    padding: 0.5rem 0.75rem;
  }
  .rail__legal {
    gap: 0.35rem 0.9rem;
  }
  .rail__legal a,
  .foot__list a,
  .crumbs a {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
  }
  .hero__hint {
    padding: 0.5rem 0.8rem;
  }
  .pin {
    height: 36px;
  }
  .topbar__brand {
    min-height: 44px;
  }
  .tray__drop {
    width: 26px;
    height: 26px;
  }
  .pager button {
    min-width: 44px;
    height: 44px;
  }
  .mini__name {
    display: flex;
    align-items: center;
    min-height: 36px;
  }
  .mini__row {
    padding: 0.5rem 1rem;
  }
}

@media (max-width: 560px) {
  .grid,
  .related,
  .method {
    grid-template-columns: 1fr;
  }
  /* stacked cells shrink to their copy — no 200px floor leaving dead space */
  .method__cell {
    min-height: 0;
  }
  /* brand block spans the row so the wordmark never wraps mid-name */
  .foot__grid > div:first-child {
    grid-column: 1 / -1;
  }
  .foot__desc {
    max-width: none;
  }
  .readout {
    min-height: 0;
  }
  .stat {
    min-height: 84px;
  }
  .hero__stats {
    grid-template-columns: 1fr;
  }
  .stat {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    min-height: 96px;
  }
  .stat:last-child {
    border-bottom: 0;
  }
  .hero__search {
    flex-direction: column;
    max-width: none;
  }
  .hero__search .btn {
    width: 100%;
  }
  .filters .ctrl,
  .filters .btn {
    flex: 1 1 100%;
  }
  .pthumb {
    width: 74px;
    height: 54px;
  }
  .review__body > p:first-of-type::first-letter {
    font-size: 2.8rem;
  }
  /* compact tray: one scrollable row of chips, actions beside it */
  .tray {
    padding: 0.55rem 0.7rem;
  }
  .tray__inner {
    gap: 0.5rem;
  }
  .tray__label {
    order: -1;
    flex: 1 1 100%;
  }
  .tray__items {
    flex: 1 1 auto;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 2px;
  }
  .tray__items::-webkit-scrollbar {
    display: none;
  }
  .tray__item {
    flex: none;
    max-width: 165px;
  }
  .tray__thumb {
    width: 28px;
    height: 28px;
  }
  .tray__actions {
    flex: none;
  }
  .tray__actions .btn {
    --btn-h: 34px;
    padding: 0 0.75rem;
    font-size: 0.76rem;
  }
  /* keep the spec labels visible while the product columns scroll sideways */
  .ctable thead th:first-child {
    width: 104px;
    left: 0;
    z-index: 3;
  }
  .ctable tbody th {
    position: sticky;
    left: 0;
    z-index: 2;
    background: var(--ink-850);
  }
  .ctable th,
  .ctable td {
    padding: 0.5rem 0.55rem;
  }
  .ct-thumb {
    height: 60px;
  }
}
