/* ============================================================
   VRIL — vrillabs.com aesthetic
   Austere. Monochrome. Airy. Sans-serif. Numbered.
   ============================================================ */

:root {
  --bg: #fafaf8;
  --bg-1: #f3f3f0;
  --bg-2: #ebebe8;
  --line: #e4e4e0;
  --line-2: #d0d0cc;
  --fg: #0a0a0a;
  --fg-dim: #4a4a4a;
  --fg-mute: #858585;
  --accent: #0a0a0a;
  --danger: #c73a28;
  --ok: #2d8a4f;

  --font: "Geist", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "Geist Mono", "JetBrains Mono", ui-monospace, "Courier New", monospace;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --container: 1440px;
}

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

html, body {
  margin: 0; padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "cv11";
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; color: inherit; padding: 0; }
img { display: block; max-width: 100%; }
ul, ol { padding: 0; margin: 0; list-style: none; }

::selection { background: #0a0a0a; color: #fafaf8; }
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--line-2); }
::-webkit-scrollbar-thumb:hover { background: var(--fg-dim); }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 48px;
}
@media (max-width: 720px) { .container { padding: 0 20px; } }

/* ============================================================
   Typography
   ============================================================ */
h1, h2, h3, h4 {
  margin: 0;
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1;
}

.mono {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-dim);
}

/* ============================================================
   Header — minimal top bar
   ============================================================ */
.site-header {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 26px 0;
  background: rgba(250, 250, 248, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.site-header.scrolled {
  border-bottom-color: var(--line);
  background: rgba(250, 250, 248, 0.9);
}
.site-header.on-hero {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom-color: transparent;
}
.site-header.on-hero .brand img { filter: invert(1) brightness(1.2); }
.site-header.on-hero .nav a,
.site-header.on-hero .cart-link { color: rgba(255,255,255,0.75); }
.site-header.on-hero .nav a:hover,
.site-header.on-hero .nav a.active,
.site-header.on-hero .cart-link:hover { color: #fff; }
.site-header.on-hero .cart-count { background: #fff; color: #000; }
.site-header.on-hero .hamburger span { background: #fff; }
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.16em;
  font-weight: 500;
}
.brand-dot {
  width: 8px; height: 8px; background: var(--fg); display: inline-block;
}
.nav {
  display: flex;
  gap: 40px;
  align-items: center;
}
.nav a {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-dim);
  transition: color .2s;
}
.nav a:hover, .nav a.active { color: var(--fg); }

.header-right {
  display: flex;
  align-items: center;
  gap: 24px;
}
.cart-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--fg-dim);
  transition: color .2s;
  padding: 4px;
}
.cart-link:hover { color: var(--fg); }
.cart-link svg { display: block; }
.cart-count {
  position: absolute;
  top: -6px; right: -8px;
  min-width: 20px; height: 20px;
  padding: 0 5px;
  background: var(--fg); color: var(--bg);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 700;
  border-radius: 0;
  line-height: 1;
}
.cart-count.hidden { display: none; }
.hamburger { display: none; }

@media (max-width: 900px) {
  /* On mobile, the backdrop-filter blur renders a hard bottom edge — remove it.
     Use a solid background only once the user has scrolled. */
  .site-header:not(.scrolled) {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom-color: transparent;
  }
  .site-header.scrolled {
    background: rgba(250, 250, 248, 0.96);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom-color: transparent;
  }

  /* Nav: animated slide-down using max-height */
  .nav {
    display: flex;
    flex-direction: column;
    position: absolute; top: 100%; left: 0; right: 0;
    gap: 0;
    padding: 0 20px;
    background: transparent;
    border-bottom: 1px solid transparent;
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s cubic-bezier(0.22,0.61,0.36,1),
                border-color .35s ease,
                padding .35s ease;
    align-items: stretch;
  }
  .nav.open {
    max-height: 400px;
    padding: 16px 20px 24px;
    background: var(--bg);
    border-bottom-color: var(--line);
  }
  /* on-hero forces white links globally — cancel that inside the open dropdown */
  .site-header.on-hero .nav.open a { color: var(--fg-dim); }
  .site-header.on-hero .nav.open a:hover,
  .site-header.on-hero .nav.open a.active { color: var(--fg); }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav a:last-child { border-bottom: 0; }

  /* Hamburger */
  .hamburger {
    display: inline-flex; width: 40px; height: 40px;
    align-items: center; justify-content: center; flex-direction: column; gap: 5px;
  }
  .hamburger span {
    width: 20px; height: 1.5px; background: var(--fg);
    transition: transform .28s ease, opacity .2s ease, width .2s ease;
    transform-origin: center;
  }
  /* on-hero: white bars */
  .site-header.on-hero .hamburger span { background: #fff; }

  /* Hamburger → X animation */
  .hamburger.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .hamburger.is-open span:nth-child(2) { opacity: 0; width: 0; }
  .hamburger.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
}

/* ============================================================
   Hero — with video background
   ============================================================ */
.hero {
  min-height: 100vh;
  min-height: 100svh; /* modern mobile: excludes browser chrome */
  padding: 140px 0 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
  color: #fff;
  isolation: isolate;
}
.hero .container { position: relative; z-index: 2; }
.hero > .container { max-width: 100%; margin: 0; padding-left: 48px; padding-right: 48px; text-align: left; }
.hero > .container h1, .hero > .container .hero-cta { margin-left: 0; }

.hero-video, .hero-video video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
}
/* Animated placeholder shown when video is missing or loading */
.hero-video {
  background:
    radial-gradient(ellipse at 20% 30%, rgba(60,60,60,0.6), transparent 55%),
    radial-gradient(ellipse at 80% 70%, rgba(30,30,30,0.9), transparent 60%),
    linear-gradient(135deg, #0a0a0a 0%, #1c1c1c 40%, #0a0a0a 100%);
  background-size: 200% 200%;
  animation: heroShift 18s ease-in-out infinite;
}
@keyframes heroShift {
  0%, 100% { background-position: 0% 0%, 100% 100%, 0% 0%; }
  50% { background-position: 100% 50%, 0% 50%, 100% 50%; }
}
.hero-overlay {
  position: absolute; inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.25) 0%, rgba(0,0,0,0.55) 50%, rgba(0,0,0,0.3) 100%);
  pointer-events: none;
}
/* Seamless merge: hero bottom darkens into solid black, next section continues from black into bg */
.hero::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 160px;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(10,10,10,0) 0%, rgba(10,10,10,0.75) 60%, #0a0a0a 100%);
}
.hero + .section { position: relative; border-top: 0; }
.hero + .section::before {
  content: "";
  position: absolute;
  left: 0; right: 0;
  top: 0;
  height: 140px;
  pointer-events: none;
  background: linear-gradient(180deg, #0a0a0a 0%, rgba(10,10,10,0.6) 30%, var(--bg) 100%);
  z-index: 1;
}
.hero + .section > .container { position: relative; z-index: 2; }

.hero h1 .dim { color: rgba(255,255,255,0.55); }
.hero-sub { color: rgba(255,255,255,0.72); }
.hero-meta .k {
  color: rgba(255,255,255,0.7);
  font-size: 12px;
  letter-spacing: 0.14em;
  font-weight: 500;
  margin-bottom: 12px;
}
.hero-meta .v {
  color: #fff;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.005em;
}

/* override buttons on hero to read on video */
.hero .btn-primary { background: transparent; color: #fff; border-color: rgba(255,255,255,0.5); }
.hero .btn-primary:hover { background: #fff; color: #0a0a0a; border-color: #fff; }
.hero .btn-ghost { border-color: rgba(255,255,255,0.3); color: rgba(255,255,255,0.85); }
.hero .btn-ghost:hover { border-color: #fff; color: #fff; }
.hero .label {
  margin-bottom: 40px;
}
.hero h1 {
  font-size: clamp(2.5rem, 8vw, 8rem);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.04em;
  max-width: 1200px;
}
.hero h1 .dim { color: var(--fg-mute); }
.hero-sub {
  margin-top: 48px;
  font-size: clamp(1.25rem, 2.4vw, 1.75rem);
  color: var(--fg-dim);
  letter-spacing: -0.01em;
  max-width: 620px;
  font-weight: 400;
  line-height: 1.3;
}
.hero-text-group {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
}
.hero-cta {
  margin-top: 24px;
  display: flex;
}
.hero-cta .btn {
  min-width: 160px;
  max-width: 260px;
  justify-content: center;
}
.hero-meta {
  position: absolute; bottom: 80px; left: 0; right: 0;
  z-index: 2;
}
.hero-meta .container {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 40px;
  padding-bottom: 20px;
}
.hero-meta .item { max-width: 220px; }
.hero-meta .k { color: rgba(255,255,255,0.55); font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 8px; }
.hero-meta .v { font-size: 14px; color: #fff; line-height: 1.4; }

@media (max-width: 900px) {
  /* Keep hero full-screen, meta anchored to bottom */
  .hero { min-height: 100svh; padding: 120px 0 200px; }
  .hero-meta { position: absolute; bottom: 40px; left: 0; right: 0; }
  /* 2×2 grid instead of 4 stacked rows */
  .hero-meta .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 40px;
    align-items: start;
    padding-bottom: 0;
  }
  .hero-meta .item { max-width: none; }
}

/* ============================================================
   Button
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid var(--fg);
  color: var(--fg);
  background: transparent;
  transition: all .2s var(--ease);
  cursor: pointer;
}
.btn:hover { background: var(--fg); color: var(--bg); }
.btn-primary { background: var(--fg); color: var(--bg); }
.btn-primary:hover { background: transparent; color: var(--fg); }
.btn-ghost { border-color: var(--line-2); color: var(--fg-dim); }
.btn-ghost:hover { border-color: var(--fg); color: var(--fg); background: transparent; }
.btn .arrow { display: inline-block; transition: transform .2s; }
.btn:hover .arrow { transform: translateX(3px); }
.btn:disabled { opacity: 0.3; cursor: not-allowed; }
.btn:disabled:hover { background: transparent; color: var(--fg); }

.link {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg);
  border-bottom: 1px solid var(--fg);
  padding-bottom: 4px;
  transition: color .2s, border-color .2s;
}
.link:hover { color: var(--fg-dim); border-color: var(--fg-dim); }

/* ============================================================
   Section scaffolding
   ============================================================ */
.section {
  padding: 160px 0;
  border-top: 1px solid var(--line);
}
.section-head {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 80px;
  margin-bottom: 100px;
  align-items: start;
}
.section-head .label { align-self: start; }
.section-head h2 {
  font-size: clamp(2rem, 5vw, 4.5rem);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1;
}
.section-head h2 .dim { color: var(--fg-mute); }

@media (max-width: 900px) {
  .section { padding: 100px 0; }
  .section-head { grid-template-columns: 1fr; gap: 32px; margin-bottom: 60px; }
}

/* ============================================================
   How it works — 01 / 02 / 03
   ============================================================ */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
}
.step {
  padding: 60px 40px 60px 0;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 48px;
  min-height: 360px;
}
.step:last-child { border-right: 0; padding-right: 0; }
.step:not(:first-child) { padding-left: 40px; }
.step .num {
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.1em;
  color: var(--fg-dim);
}
.step h3 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin-top: auto;
}
.step p {
  color: var(--fg-dim);
  font-size: 15px;
  line-height: 1.55;
  margin: 0;
}

@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr; }
  .step { border-right: 0; border-bottom: 1px solid var(--line); padding: 40px 0 !important; min-height: auto; gap: 32px; }
  .step:last-child { border-bottom: 0; }
}

/* ============================================================
   Product grid
   ============================================================ */
.filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line);
}

/* Catalog bar — home page search + category filters */
.catalog-bar {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 18px 22px;
  border: 1px solid var(--line-2);
  background: var(--bg-1);
  margin-bottom: 48px;
  flex-wrap: wrap;
}
.catalog-title {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg);
  padding-right: 20px;
  border-right: 1px solid var(--line-2);
}
.catalog-search {
  flex: 1;
  min-width: 200px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--fg-mute);
}
.catalog-search input {
  flex: 1;
  border: 0;
  background: transparent;
  outline: none;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--fg);
  padding: 6px 0;
}
.catalog-search input::placeholder { color: var(--fg-mute); }
.catalog-filters {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.catalog-filters .chip {
  padding: 8px 14px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-dim);
  border: 1px solid var(--line-2);
  background: var(--bg);
  cursor: pointer;
  transition: all .2s;
}
.catalog-filters .chip:hover { color: var(--fg); border-color: var(--fg-dim); }
.catalog-filters .chip.active { background: var(--fg); color: var(--bg); border-color: var(--fg); }

@media (max-width: 720px) {
  .catalog-title { border-right: 0; padding-right: 0; }
  .catalog-search { width: 100%; order: 2; }
  .catalog-filters { order: 3; width: 100%; }
}
.filter {
  padding: 10px 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-dim);
  border: 1px solid var(--line-2);
  transition: all .2s;
}
.filter:hover { color: var(--fg); border-color: var(--fg-dim); }
.filter.active { color: var(--bg); background: var(--fg); border-color: var(--fg); }

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.product-card {
  display: flex;
  flex-direction: column;
  padding: 32px 28px 28px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  min-height: 500px;
  gap: 0;
  transition: background .25s;
  position: relative;
  overflow: hidden;
}
.product-card:hover { background: var(--bg-1); }
.product-card .top {
  display: flex;
  justify-content: space-between;
  align-items: start;
  margin-bottom: 40px;
}
.product-card .cat {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-dim);
}
.product-card .purity {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--fg-mute);
}
.product-card .visual {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
  height: 240px;
  color: var(--fg);
  opacity: 0.95;
  transition: opacity .3s, transform .3s var(--ease);
}
.product-card .visual svg { width: 100px; height: 100px; }
.product-card .visual .vial-svg { width: 130px; height: 205px; transition: transform .3s ease; }
.product-card .visual .compound-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  max-height: 220px;
  transition: transform .3s ease;
}
.product-card:hover .visual { opacity: 1; transform: translateY(-4px); }
.product-card:hover .vial-svg,
.product-card:hover .compound-img { transform: translateY(-2px) scale(1.03); }

.product-card h3 {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 10px;
}
.product-card .desc {
  color: var(--fg-dim);
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 24px;
  flex: 1;
}
.product-card .row {
  display: flex;
  justify-content: space-between;
  align-items: end;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.product-card .price {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 500;
  color: var(--fg);
}
.product-card .add {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-dim);
  padding: 8px 12px;
  border: 1px solid var(--line-2);
  transition: all .2s;
}
.product-card .add:hover {
  color: var(--bg);
  background: var(--fg);
  border-color: var(--fg);
}

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

/* ============================================================
   Page hero (sub-pages)
   ============================================================ */
.page-hero {
  padding: 180px 0 80px;
  border-bottom: 1px solid var(--line);
}
.page-hero .label { margin-bottom: 32px; }
.page-hero h1 {
  font-size: clamp(2.5rem, 7vw, 6.5rem);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 0.95;
  max-width: 1100px;
}
.page-hero h1 .dim { color: var(--fg-mute); }
.page-hero .lead {
  margin-top: 32px;
  font-size: clamp(1.1rem, 1.8vw, 1.4rem);
  color: var(--fg-dim);
  max-width: 640px;
  line-height: 1.4;
}

/* ============================================================
   Product detail
   ============================================================ */
.product-detail { padding: 120px 0 140px; }
.breadcrumb {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-mute);
  margin-bottom: 60px;
}
.breadcrumb a { color: var(--fg-dim); }
.breadcrumb a:hover { color: var(--fg); }
.breadcrumb .sep { margin: 0 8px; }

.pd-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.pd-visual {
  aspect-ratio: 1 / 1;
  border: 1px solid var(--line);
  background: var(--bg-1);
  display: flex;
  align-items: center;
  justify-content: center;
  position: sticky;
  top: 100px;
  color: var(--fg);
}
.pd-visual svg { width: 45%; height: 45%; }
.pd-compound-img {
  width: 75%;
  height: 75%;
  object-fit: contain;
}
.pd-vial-fallback .vial-svg { width: 160px; height: 230px; }
.pd-visual .tag {
  position: absolute; top: 24px; left: 24px;
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--fg-dim);
}
.pd-visual .tag-r {
  position: absolute; top: 24px; right: 24px;
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--fg-dim);
}

.pd-info .cat {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-dim);
  margin-bottom: 24px;
}
.pd-info h1 {
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1;
  margin-bottom: 24px;
}
.pd-info .lead {
  color: var(--fg-dim);
  font-size: 17px;
  line-height: 1.5;
  margin-bottom: 48px;
}
.pd-price {
  font-family: var(--font-mono);
  font-size: 40px;
  font-weight: 500;
  margin-bottom: 40px;
}
.pd-price .per { font-size: 12px; color: var(--fg-dim); letter-spacing: 0.1em; margin-left: 10px; }

.spec-list {
  border-top: 1px solid var(--line);
  margin-bottom: 40px;
}
.spec-list .row {
  display: grid;
  grid-template-columns: 140px 1fr;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  gap: 32px;
}
.spec-list .k {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-dim);
  padding-top: 2px;
}
.spec-list .v { font-size: 14px; color: var(--fg); line-height: 1.5; }

.tier-select {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--line-2);
  margin-bottom: 28px;
}
.tier {
  padding: 20px;
  cursor: pointer;
  transition: background .2s;
  border-right: 1px solid var(--line-2);
  position: relative;
}
.tier:last-child { border-right: 0; }
.tier:hover { background: var(--bg-1); }
.tier.sel { background: var(--fg); color: var(--bg); }
.tier .t {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.6;
  margin-bottom: 10px;
}
.tier .n { font-family: var(--font-mono); font-size: 18px; font-weight: 500; margin-bottom: 6px; }
.tier .d { font-size: 12px; opacity: 0.7; }

.qty-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.qty {
  display: inline-flex;
  border: 1px solid var(--line-2);
}
.qty button { width: 44px; height: 48px; color: var(--fg-dim); transition: color .2s; }
.qty button:hover { color: var(--fg); }
.qty input {
  width: 56px; height: 48px;
  background: transparent; border: 0;
  color: var(--fg);
  font-family: var(--font-mono); font-size: 14px;
  text-align: center;
  -moz-appearance: textfield;
}
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.pd-cta { display: flex; gap: 12px; flex-wrap: wrap; }

.pd-notes {
  margin-top: 40px; padding-top: 28px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--fg-mute);
  line-height: 2;
}

@media (max-width: 900px) {
  .pd-layout { grid-template-columns: 1fr; gap: 48px; }
  .pd-visual { position: static; }
}

/* ============================================================
   Calculator
   ============================================================ */
.calc { padding: 120px 0 140px; }
.calc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--line);
}
.calc-form, .calc-result {
  padding: 48px;
}
.calc-form { border-right: 1px solid var(--line); }
.calc-form .field { margin-bottom: 28px; }
.calc-form label { display: block; margin-bottom: 10px; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-dim); }
.calc-form input, .calc-form select {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg);
  border: 1px solid var(--line-2);
  color: var(--fg);
  font-family: var(--font-mono);
  font-size: 15px;
  transition: border-color .2s;
}
.calc-form input:focus, .calc-form select:focus { outline: none; border-color: var(--fg); }

.calc-result { display: flex; flex-direction: column; justify-content: space-between; min-height: 500px; }
.calc-result .lbl { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-dim); }
.calc-result .big {
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 0.95;
  margin: 16px 0 32px;
  font-family: var(--font-mono);
}
.calc-result .big .unit { font-size: 18px; color: var(--fg-dim); margin-left: 12px; letter-spacing: 0.1em; }
.calc-result .sub { color: var(--fg-dim); font-size: 14px; margin-bottom: 40px; line-height: 1.55; }
.calc-result .table { margin-top: auto; border-top: 1px solid var(--line); }
.calc-result .table .r { display: flex; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid var(--line); }
.calc-result .table .r:last-child { border-bottom: 0; }
.calc-result .table .k { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-dim); }
.calc-result .table .v { font-family: var(--font-mono); font-size: 13px; color: var(--fg); }

@media (max-width: 900px) {
  .calc-grid { grid-template-columns: 1fr; }
  .calc-form { border-right: 0; border-bottom: 1px solid var(--line); }
  .calc-form, .calc-result { padding: 32px; }
}

/* ============================================================
   FAQ
   ============================================================ */
.faq-wrap { padding: 120px 0 140px; }
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 32px 0;
  text-align: left;
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  transition: opacity .2s;
}
.faq-q:hover { opacity: 0.7; }
.faq-q .plus {
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 18px;
  color: var(--fg-dim);
  transition: transform .3s var(--ease);
}
.faq-item.open .faq-q .plus { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .4s var(--ease); color: var(--fg-dim); font-size: 15px; line-height: 1.65; }
.faq-item.open .faq-a { max-height: 700px; }
.faq-a-inner { padding: 0 0 32px; max-width: 760px; }

/* ============================================================
   Contact
   ============================================================ */
.contact { padding: 120px 0 140px; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--line); }
.contact-card { padding: 48px; }
.contact-card:first-child { border-right: 1px solid var(--line); }
.contact-card h3 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 400;
  letter-spacing: -0.025em;
  margin-bottom: 16px;
}
.contact-card p { color: var(--fg-dim); margin-bottom: 32px; }
.handle {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  border: 1px solid var(--line-2);
  font-family: var(--font-mono);
  font-size: 13px;
  transition: all .2s;
}
.handle:hover { background: var(--fg); color: var(--bg); border-color: var(--fg); }

.form .field { margin-bottom: 20px; }
.form label {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-dim);
  margin-bottom: 10px;
}
.form input, .form textarea {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg);
  border: 1px solid var(--line-2);
  color: var(--fg);
  font-family: var(--font);
  font-size: 15px;
}
.form input:focus, .form textarea:focus { outline: none; border-color: var(--fg); }
.form textarea { min-height: 140px; resize: vertical; }

@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
  .contact-card:first-child { border-right: 0; border-bottom: 1px solid var(--line); }
  .contact-card { padding: 32px; }
}

/* ============================================================
   Cart
   ============================================================ */
.cart-wrap { padding: 120px 0 140px; }
.cart-layout { display: grid; grid-template-columns: 1.4fr 1fr; gap: 60px; align-items: start; }
.cart-items { border-top: 1px solid var(--line); }
.cart-item {
  display: grid;
  grid-template-columns: 100px 1fr auto auto;
  gap: 28px;
  align-items: center;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}
.cart-item .img {
  width: 100px; height: 100px;
  background: var(--bg-1);
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  color: var(--fg);
}
.cart-item .img svg { width: 50%; height: 50%; }
.cart-item .meta .cat { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-dim); margin-bottom: 8px; }
.cart-item .meta h4 { font-size: 20px; font-weight: 500; letter-spacing: -0.02em; margin-bottom: 8px; }
.cart-item .meta .tier-tag { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-mute); margin-bottom: 14px; }
.cart-item .price { font-family: var(--font-mono); font-size: 18px; }
.cart-item .remove {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-mute);
}
.cart-item .remove:hover { color: var(--danger); }

.summary {
  border: 1px solid var(--line);
  padding: 40px;
  position: sticky;
  top: 100px;
}
.summary h3 {
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 28px;
}
.ship-opts { margin-bottom: 28px; display: flex; flex-direction: column; gap: 8px; }
.ship-opt {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--line-2);
  cursor: pointer;
  transition: all .2s;
}
.ship-opt:hover { border-color: var(--fg-dim); }
.ship-opt.sel { border-color: var(--fg); background: var(--fg); color: var(--bg); }
.ship-opt .t { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 4px; }
.ship-opt .d { font-size: 12px; opacity: 0.75; }
.ship-opts { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }

.mixed-warning {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 14px 16px;
  border: 1px solid var(--fg);
  background: var(--bg-2);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  line-height: 1.6;
  color: var(--fg-dim);
  margin-bottom: 20px;
}
.mixed-warning svg { flex-shrink: 0; margin-top: 2px; }
.mixed-warning strong { color: var(--fg); font-weight: 600; }

/* Shipping form in cart */
.ship-form-wrap {
  padding: 24px 0 8px;
  border-top: 1px solid var(--line);
  margin-top: 8px;
  margin-bottom: 24px;
}
.ship-form-note {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--fg-mute);
  margin: 8px 0 18px;
}
.ship-form { display: flex; flex-direction: column; gap: 8px; }
.sf-row { display: flex; gap: 8px; }
.sf-row-2 .sf-field { flex: 1; }
.sf-field { flex: 1; }
.sf-field input {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--line-2);
  background: var(--bg);
  font-family: var(--font);
  font-size: 13px;
  color: var(--fg);
  outline: none;
  transition: border-color .2s;
  box-sizing: border-box;
}
.sf-field input:focus { border-color: var(--fg); }
.sf-field input::placeholder { color: var(--fg-mute); }
.ship-opt .p { font-family: var(--font-mono); font-size: 16px; font-weight: 500; }

.sum-row {
  display: flex; justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.sum-row .k { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-dim); }
.sum-row .v { font-family: var(--font-mono); }
.sum-row.total { border-bottom: 0; padding-top: 20px; font-size: 22px; font-family: var(--font-mono); }
.sum-row.total .k { font-size: 13px; color: var(--fg); }
.sum-row.total .v { font-size: 22px; }

.cta-stack { display: flex; flex-direction: column; gap: 10px; margin-top: 28px; }

.empty {
  padding: 140px 20px;
  text-align: center;
  border: 1px solid var(--line);
}
.empty h2 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 400;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}
.empty p { color: var(--fg-dim); margin-bottom: 36px; }

@media (max-width: 900px) {
  .cart-layout { grid-template-columns: 1fr; }
  .summary { position: static; padding: 28px; }
  .cart-item { grid-template-columns: 70px 1fr; }
  .cart-item .img { width: 70px; height: 70px; }
  .cart-item .price, .cart-item .remove { grid-column: 2; text-align: left; }
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  padding: 80px 0 40px;
  border-top: 1px solid var(--line);
}
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
  padding-bottom: 60px;
  border-bottom: 1px solid var(--line);
}
.footer-brand { max-width: 340px; }
.footer-brand .brand { margin-bottom: 20px; }
.footer-brand p { color: var(--fg-dim); font-size: 13px; line-height: 1.65; }
.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-dim);
  font-weight: 500;
  margin: 0 0 20px;
}
.footer-col a {
  display: block;
  padding: 6px 0;
  font-size: 13px;
  color: var(--fg-dim);
  transition: color .2s;
}
.footer-col a:hover { color: var(--fg); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-mute);
}

@media (max-width: 900px) {
  .footer-top { grid-template-columns: 1fr 1fr; gap: 40px; }
  .footer-bottom { flex-direction: column; gap: 16px; align-items: start; }
}

/* ============================================================
   Reveal
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.reveal.v { opacity: 1; transform: translateY(0); }

/* ============================================================
   Toast
   ============================================================ */
.toast {
  position: fixed; bottom: 28px; right: 28px;
  z-index: 200;
  padding: 14px 22px;
  background: var(--fg);
  color: var(--bg);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transform: translateY(20px); opacity: 0; pointer-events: none;
  transition: all .3s var(--ease);
}
.toast.show { transform: translateY(0); opacity: 1; }

/* ============================================================
   Marquee ticker
   ============================================================ */
.ticker {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
}
.ticker-track {
  display: flex;
  gap: 60px;
  animation: ticker 50s linear infinite;
  white-space: nowrap;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--fg-dim);
}
.ticker-track span { display: inline-flex; align-items: center; gap: 60px; }
.ticker-track span::before { content: "→"; color: var(--fg-mute); }
@keyframes ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ============================================================
   Mobile optimisations
   ============================================================ */

/* ── Hero: override 48px container padding on small screens ── */
@media (max-width: 720px) {
  .hero > .container { padding-left: 24px; padding-right: 24px; }
  .hero { padding: 110px 0 180px; }
  .hero-meta { bottom: 28px; }
  .hero-meta .container { gap: 14px 28px; }
}
@media (max-width: 400px) {
  .hero > .container { padding-left: 20px; padding-right: 20px; }
  .hero h1 { font-size: clamp(2rem, 11vw, 2.8rem); }
}

/* ── Sub-page heroes ── */
@media (max-width: 720px) {
  .page-hero { padding: 120px 0 48px; }
}
@media (max-width: 560px) {
  .page-hero { padding: 100px 0 36px; }
}

/* ── Section padding ── */
@media (max-width: 560px) {
  .section { padding: 72px 0; }
  .faq-wrap { padding: 72px 0 80px; }
  .contact { padding: 72px 0 80px; }
  .product-detail { padding: 72px 0 80px; }
}

/* ── Calculator card ── */
@media (max-width: 720px) {
  .calc-page { padding: 60px 0 80px; }
  .calc-card { padding: 28px 20px; }
  .syr-cards { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .syr-card { padding: 12px 6px 10px; }
}

/* ── Product card: remove forced min-height on mobile ── */
@media (max-width: 560px) {
  .product-card { min-height: auto; padding: 24px 20px 20px; }
}

/* ── Touch targets: 44px minimum per Apple HIG / WCAG ── */
@media (max-width: 900px) {
  .btn { min-height: 48px; }
  .filter, .chip-btn { min-height: 44px; display: inline-flex; align-items: center; }
  .catalog-filters .chip { min-height: 40px; display: inline-flex; align-items: center; }
  .product-card .add { min-height: 40px; padding: 10px 14px; }
  .co-qty button { width: 44px; height: 44px; }
  .faq-q { min-height: 60px; }
  .hamburger { width: 40px; height: 40px; }
  .cart-link { padding: 8px; }
}

/* ── Product detail: tier select stacks on small phones ── */
@media (max-width: 480px) {
  .tier-select { grid-template-columns: 1fr; }
  .tier { border-right: 0; border-bottom: 1px solid var(--line-2); }
  .tier:last-child { border-bottom: 0; }
  .pd-price { font-size: 28px; }
  .pd-cta { flex-direction: column; }
  .pd-cta .btn { width: 100%; justify-content: center; }
}

/* ── Spec list: tighten column on small phones ── */
@media (max-width: 480px) {
  .spec-list .row { grid-template-columns: 90px 1fr; gap: 12px; }
}

/* ── Checkout: stack pay buttons and city/postal on mobile ── */
@media (max-width: 560px) {
  .co-pay-row { grid-template-columns: 1fr; }
}

/* ── Catalog bar: stack on very small screens ── */
@media (max-width: 480px) {
  .catalog-bar { flex-direction: column; align-items: stretch; gap: 10px; padding: 14px 16px; }
  .catalog-search { min-width: unset; width: 100%; }
}

/* ── Footer: single column on phones ── */
@media (max-width: 560px) {
  .footer-top { grid-template-columns: 1fr; gap: 28px; }
  .site-footer { padding: 56px 0 32px; }
}

/* ── iOS Safari: prevent auto-zoom on input focus (requires ≥16px) ── */
@media (max-width: 720px) {
  .co-field input,
  .form input,
  .form textarea,
  .other-row input,
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="number"],
  textarea { font-size: 16px; }
  /* Restore mono style for small utility inputs */
  .co-qty input,
  .qty input { font-size: 14px; }
}

/* ── Word wrap: prevent long compound names breaking layout ── */
@media (max-width: 720px) {
  .co-item-name,
  .product-card h3,
  .pd-info h1 { word-break: break-word; overflow-wrap: break-word; }
}

/* ── Toast: full-width on mobile ── */
@media (max-width: 560px) {
  .toast { left: 16px; right: 16px; bottom: 20px; text-align: center; }
}
