:root {
  --bg: #0c0e11;
  --bg-2: #11151a;
  --card: #181d24;
  --card-2: #1e242c;
  --line: #2c333c;
  --text: #efeae3;
  --muted: #9a948b;
  --copper: #d0894a;
  --copper-2: #e6b17a;
  --copper-dim: #8a5a2e;
  --ok: #8fad78;
  --danger: #c97868;
  --sans: "Segoe UI", "Helvetica Neue", system-ui, -apple-system, sans-serif;
  --serif: Georgia, "Palatino Linotype", Palatino, "Times New Roman", serif;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --max: 1120px;
  --nav-h: 64px;
  --radius: 10px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--copper-2); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #f0d0a8; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.2; color: #f6f1ea; margin: 0 0 0.6em; }
h1 { font-size: clamp(2rem, 4.4vw, 3.25rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.05rem); }
h3 { font-size: 1.2rem; font-family: var(--sans); letter-spacing: 0.01em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1.1em; padding-left: 1.2em; }
li { margin: 0.25em 0; }
figure { margin: 0; }
figcaption { font-size: 0.88rem; color: var(--muted); padding: 0.65rem 0 0; line-height: 1.45; }
address { font-style: normal; margin: 0 0 1em; }

/* Nav */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(12,14,17,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
  min-height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
.brand {
  display: flex; align-items: center; gap: 0.7rem;
  text-decoration: none; color: var(--text);
  flex: 0 0 auto;
}
.brand-mark {
  width: 34px; height: 34px;
  border: 1px solid var(--copper);
  border-radius: 7px;
  display: grid; place-items: center;
  color: var(--copper-2);
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 700;
}
.brand-name { font-weight: 700; letter-spacing: 0.04em; font-size: 0.92rem; }
.brand-tag { display: block; font-weight: 400; letter-spacing: 0; font-size: 0.7rem; color: var(--muted); text-transform: none; }
.nav-toggle { display: none; }
.nav-links {
  display: flex; flex-wrap: wrap; gap: 0.15rem 0.15rem;
  list-style: none; margin: 0; padding: 0; margin-left: auto;
}
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  padding: 0.4rem 0.55rem;
  border-radius: 6px;
}
.nav-links a:hover, .nav-links a[aria-current="true"] {
  color: var(--text);
  background: var(--card);
}
.nav-cta {
  background: var(--copper) !important;
  color: #1a1008 !important;
  font-weight: 700 !important;
}
.nav-cta:hover { filter: brightness(1.08); }

@media (max-width: 900px) {
  .nav-toggle {
    display: block; margin-left: auto;
    background: transparent; border: 1px solid var(--line);
    color: var(--text); border-radius: 6px; padding: 0.4rem 0.7rem;
    font-size: 0.8rem; cursor: pointer;
  }
  .nav-links {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--bg-2);
    border-bottom: 1px solid var(--line);
    padding: 0.5rem 1rem 1rem;
    flex-direction: column;
  }
  .site-header.open .nav-links { display: flex; }
}

/* Layout */
.section { padding: 4.2rem 1.25rem 4.5rem; scroll-margin-top: 86px; }
.section:nth-of-type(even) { background: var(--bg-2); }
.wrap { max-width: var(--max); margin: 0 auto; }
.kicker {
  text-transform: uppercase; letter-spacing: 0.16em;
  font-size: 0.75rem; color: var(--copper);
  font-weight: 700; margin-bottom: 0.7rem;
}
.deck { font-size: 1.15rem; color: #cfc8be; max-width: 44rem; margin-bottom: 1.5rem; }
.legal {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.9rem 1.1rem;
  font-size: 0.92rem;
  color: var(--muted);
  margin: 1.25rem 0 1.6rem;
}

/* Buttons */
.btns { display: flex; flex-wrap: wrap; gap: 0.7rem; margin: 1.3rem 0 0.3rem; }
.btn {
  display: inline-block;
  background: var(--copper);
  color: #1a1008 !important;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.92rem;
  padding: 0.7rem 1.15rem;
  border-radius: 8px;
  border: 1px solid transparent;
}
.btn:hover { filter: brightness(1.07); color: #1a1008 !important; }
.btn-ghost {
  background: transparent;
  color: var(--copper-2) !important;
  border-color: var(--copper-dim);
}
.btn-ghost:hover { background: var(--card); color: var(--copper-2) !important; }
.btn-sm {
  font-size: 0.78rem;
  padding: 0.38rem 0.65rem;
  white-space: nowrap;
}

/* Hero — keep the green-tube manifold and the white miner tank in frame */
.hero {
  position: relative;
  min-height: min(94vh, 920px);
  display: flex; align-items: flex-end;
  padding: 0;
  background: #07080a;
}
.hero-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  /* Bottom-left bias: the miner tank sits left, green tubes mid-right. */
  object-position: 36% 100%;
  opacity: 0.88;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(12,14,17,0.08) 0%, rgba(12,14,17,0.10) 50%, rgba(12,14,17,0.45) 74%, rgba(12,14,17,0.82) 100%);
}
.hero-copy {
  position: relative; z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
  padding: 7rem 1.25rem 3.2rem;
  width: 100%;
}
@media (min-width: 901px) {
  /* Leave the left side clear so the white miner tank stays visible beside the copy. */
  .hero-copy { padding-left: 30%; }
}
.hero h1 { max-width: 26ch; text-shadow: 0 2px 16px rgba(0,0,0,0.55); }
.hero .deck { color: #ddd6cc; text-shadow: 0 1px 12px rgba(0,0,0,0.55); }

/* Cards / grids */
.grid-2, .grid-3, .grid-4 {
  display: grid; gap: 1.15rem;
  margin: 1.4rem 0;
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 800px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}
@media (min-width: 801px) and (max-width: 1000px) {
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.card .pad { padding: 1.1rem 1.15rem 1.25rem; }
.card h3 { margin-bottom: 0.4em; }
.card p:last-child { margin-bottom: 0; }
.card img { width: 100%; height: 220px; object-fit: cover; }
.card.tall img { height: 280px; }
.card img.pos-upper { object-position: center 28%; }
.card .x-link { margin: 0.85em 0 0; font-size: 0.92rem; }
.card .x-link a { font-weight: 600; }
.photo-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; }
@media (max-width: 700px) { .photo-pair { grid-template-columns: 1fr; } }
.photo-frame {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.photo-frame img { width: 100%; max-height: 520px; object-fit: cover; }

/* Tables */
.filters {
  display: flex; flex-wrap: wrap; gap: 0.55rem;
  margin: 1rem 0 1.1rem;
  align-items: center;
}
.filters input, .filters select, .form input, .form select, .form textarea {
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 0.55rem 0.7rem;
  font: inherit;
  font-size: 0.92rem;
}
.filters input { min-width: 16rem; flex: 1; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  min-width: 1080px;
}
table.data.industrial { min-width: 920px; }
table.data th, table.data td {
  padding: 0.55rem 0.65rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
table.data th {
  background: #1c222a;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  cursor: pointer;
  white-space: nowrap;
  user-select: none;
  position: sticky; top: 0;
}
table.data th:hover { color: var(--text); }
table.data th[aria-sort="ascending"]::after { content: " ↑"; color: var(--copper); }
table.data th[aria-sort="descending"]::after { content: " ↓"; color: var(--copper); }
table.data tbody tr:hover { background: #1c232c; }
table.data .price { font-weight: 700; color: var(--copper-2); white-space: nowrap; }
table.data .sku { font-family: var(--mono); font-size: 0.8rem; color: #c9c2b8; white-space: nowrap; }
table.data td.nowrap, table.data .muted { }
table.data .muted { color: var(--muted); }
.table-meta { font-size: 0.85rem; color: var(--muted); margin: 0.6rem 0 0; }
.list-heading {
  font-family: var(--sans);
  font-size: 1.05rem;
  font-weight: 700;
  color: #f6f1ea;
  margin: 1.4rem 0 0.8rem;
}
.pill {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.12em 0.45em;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
}
.pill.new { color: var(--ok); border-color: #3d5a36; }
.pill.used { color: #d6b07a; border-color: #5a4630; }
.pill.preorder { color: var(--copper-2); border-color: var(--copper-dim); }

/* FAQ */
.faq details {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.7rem 1rem;
  margin: 0.5rem 0;
}
.faq summary { cursor: pointer; font-weight: 650; color: #f3eee7; }
.faq details p { margin: 0.7rem 0 0.2rem; color: #d5cfc6; }

/* Forms */
.form {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem 1.2rem 1.4rem;
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
@media (max-width: 700px) { .form-grid { grid-template-columns: 1fr; } }
.form label { display: block; font-size: 0.82rem; color: var(--muted); margin-bottom: 0.25rem; }
.form .full { grid-column: 1 / -1; }
.form textarea { width: 100%; min-height: 8rem; resize: vertical; }
.form input, .form select, .form textarea { width: 100%; }
.form .check { display: flex; gap: 0.5rem; align-items: flex-start; font-size: 0.9rem; color: var(--muted); }
.form button.btn { border: 0; cursor: pointer; font: inherit; }
.form-note { font-size: 0.85rem; color: var(--muted); margin-top: 0.8rem; }
.form-sent { color: var(--ok); }
.form-error { color: var(--danger); }
.hp {
  position: absolute;
  left: -9999px;
  width: 1px; height: 1px;
  overflow: hidden;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 2.2rem 1.25rem 2.6rem;
  background: #0a0c0f;
  color: var(--muted);
  font-size: 0.9rem;
}
.footer-inner { max-width: var(--max); margin: 0 auto; display: grid; gap: 1rem; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; }
.footer-nav a { color: #cfc8be; text-decoration: none; }
.footer-nav a:hover { color: var(--copper-2); }
.photo-credit { font-size: 0.8rem; }

.banner-strip {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  border-radius: var(--radius);
  margin: 0 0 1.5rem;
  border: 1px solid var(--line);
}
.split {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.5rem;
  align-items: start;
}
@media (max-width: 800px) { .split { grid-template-columns: 1fr; } }
.muted { color: var(--muted); }
.small { font-size: 0.9rem; }

/* 404 */
.page-404 { min-height: calc(100vh - 180px); display: flex; align-items: center; }
.page-404 .wrap { padding: 4rem 1.25rem; }

/* Expandable copy ("Read more") */
details.more {
  margin: 0.35rem 0 1rem;
}
details.more > summary {
  cursor: pointer;
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--copper-2);
  font-weight: 650;
  font-size: 0.92rem;
  padding: 0.45rem 0;
  min-height: 44px;
  user-select: none;
  width: fit-content;
  max-width: 100%;
}
details.more > summary::-webkit-details-marker { display: none; }
details.more > summary::marker { content: ""; }
details.more > summary::before {
  content: "";
  width: 0.42em;
  height: 0.42em;
  border-right: 2px solid var(--copper-2);
  border-bottom: 2px solid var(--copper-2);
  transform: rotate(-45deg);
  transition: transform 0.15s ease;
  flex: 0 0 auto;
}
details.more[open] > summary::before {
  transform: rotate(45deg);
  margin-top: -0.15em;
}
details.more > summary .more-open { display: none; }
details.more[open] > summary .more-closed { display: none; }
details.more[open] > summary .more-open { display: inline; }
details.more > summary:focus-visible {
  outline: 2px solid var(--copper);
  outline-offset: 3px;
  border-radius: 4px;
}
details.more .more-body { margin-top: 0.35rem; }
details.more .more-body > :last-child { margin-bottom: 0; }
details.more .more-body .legal { margin: 0.7rem 0 0; }
.card details.more { margin: 0.25rem 0 0; }
.card details.more > summary { min-height: 40px; font-size: 0.88rem; padding: 0.3rem 0; }
@media print {
  details.more > summary { display: none; }
  details.more .more-body { display: block !important; margin: 0; }
}
