/* ==========================================================================
   Helixio Laboratories: black · white · silver
   Fonts: Montserrat (headings, matches the logo's geometric caps) + Inter (body)
   Developed by NSdynamixPunjab
   ========================================================================== */

:root {
  --black: #0b0b0c;
  --ink: #141518;
  --graphite: #23252a;
  --steel: #5c6068;       /* body text on light: 6.4:1 on white */
  --silver: #b9bdc4;
  --silver-hi: #e9ebee;
  --mist: #f2f3f5;
  --white: #ffffff;
  --line-dark: rgba(255, 255, 255, .12);
  --line-light: #dfe1e5;

  --silver-grad: linear-gradient(180deg, #ffffff 0%, #d9dce0 45%, #9aa0a8 100%);
  --silver-btn: linear-gradient(180deg, #f4f5f7 0%, #c9cdd3 55%, #aeb3ba 100%);

  --font-head: "Montserrat", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;

  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 18px 40px -18px rgba(11, 11, 12, .35);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --header-h: 72px;
  --gutter: clamp(16px, 4vw, 40px);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 400 1.0625rem/1.65 var(--font-body);
  color: var(--ink);
  background: var(--black);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }

.container { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--white); color: var(--black); padding: 12px 18px; border-radius: var(--radius-sm);
  font-weight: 600; text-decoration: none; transition: top .2s;
}
.skip-link:focus { top: 12px; }

:focus-visible { outline: 3px solid #8fb4ff; outline-offset: 3px; border-radius: 4px; }

.silver-text {
  background: var(--silver-grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: var(--silver);
}

.eyebrow {
  font: 600 .78rem/1 var(--font-head);
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--silver); margin-bottom: 1.1rem;
  display: inline-flex; align-items: center; gap: .75rem;
}
.eyebrow-dark { color: var(--steel); }

.section { padding-block: clamp(72px, 10vw, 128px); position: relative; }
.section-light { background: var(--white); }
.section-mist  { background: var(--mist); }
.section-dark  { background: var(--black); color: var(--silver-hi); }
.section-title { font-size: clamp(1.9rem, 4vw, 2.9rem); font-weight: 700; max-width: 18ch; }
.section-dark .section-title { color: var(--white); }
.section-sub { color: var(--steel); max-width: 52ch; margin: 0; }
.lead { font-size: 1.15rem; color: var(--ink); }
.lead-dark { color: #c9ccd1; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 40px; flex-wrap: wrap; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: 0 26px; border-radius: 999px;
  font: 600 .95rem/1 var(--font-head); letter-spacing: .02em; text-decoration: none;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, color .25s;
}
.btn-silver { background: var(--silver-btn); color: var(--black); box-shadow: inset 0 1px 0 rgba(255,255,255,.8), 0 8px 20px -10px rgba(0,0,0,.6); }
.btn-silver:hover { transform: translateY(-2px); box-shadow: inset 0 1px 0 #fff, 0 14px 28px -12px rgba(0,0,0,.7); }
.btn-ghost { color: var(--white); border-color: rgba(255,255,255,.35); background: transparent; }
.btn-ghost:hover { background: rgba(255,255,255,.08); border-color: var(--white); }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: .85rem; }
.btn-block { width: 100%; }

.icon-btn {
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--line-light); background: var(--white); cursor: pointer;
  transition: background .2s, border-color .2s, opacity .2s;
}
.icon-btn svg { width: 20px; height: 20px; fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon-btn:hover:not(:disabled) { background: var(--ink); border-color: var(--ink); }
.icon-btn:hover:not(:disabled) svg { stroke: var(--white); }
.icon-btn:disabled { opacity: .35; cursor: default; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 100; height: var(--header-h);
  transition: background .35s, box-shadow .35s, backdrop-filter .35s;
}
.site-header.is-solid {
  background: rgba(11, 11, 12, .88);
  backdrop-filter: saturate(140%) blur(12px); -webkit-backdrop-filter: saturate(140%) blur(12px);
  box-shadow: 0 1px 0 var(--line-dark);
}
.nav-wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand img { height: 50px; width: auto; }

.primary-nav { display: flex; align-items: center; gap: 28px; }
.primary-nav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.primary-nav ul a {
  display: block; padding: 10px 12px; text-decoration: none;
  font: 500 .9rem/1 var(--font-head); color: #d4d7db; letter-spacing: .02em;
  position: relative; transition: color .2s;
}
.primary-nav ul a::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 1px;
  background: var(--silver-grad); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.primary-nav ul a:hover, .primary-nav ul a[aria-current="true"] { color: var(--white); }
.primary-nav ul a:hover::after, .primary-nav ul a[aria-current="true"]::after { transform: scaleX(1); }

.nav-toggle { display: none; }

@media (max-width: 960px) {
  .nav-toggle {
    display: grid; place-items: center; width: 48px; height: 48px;
    background: transparent; border: 1px solid var(--line-dark); border-radius: 50%; cursor: pointer;
  }
  .nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
    display: block; width: 20px; height: 2px; background: var(--white); border-radius: 2px;
    position: relative; transition: transform .3s var(--ease), background .2s;
  }
  .nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
  .nav-toggle-bars::before { top: -6px; }
  .nav-toggle-bars::after { top: 6px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

  .primary-nav {
    position: fixed; inset: var(--header-h) 0 auto; flex-direction: column; align-items: stretch; gap: 16px;
    background: rgba(11,11,12,.97); padding: 16px var(--gutter) 28px; border-top: 1px solid var(--line-dark);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .25s, transform .25s var(--ease), visibility .25s;
  }
  .primary-nav.is-open { opacity: 1; transform: none; visibility: visible; }
  .primary-nav ul { flex-direction: column; }
  .primary-nav ul a { padding: 16px 4px; font-size: 1.05rem; border-bottom: 1px solid var(--line-dark); }
  .primary-nav ul a::after { display: none; }
  .brand img { height: 42px; }
}

/* ---------- Hexagon pattern (shared) ---------- */
.hero-hex, .about-hex, .verify-hex, .band-bg {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='97' viewBox='0 0 56 97'%3E%3Cpath d='M28 1 55 16.5v31L28 63 1 47.5v-31Zm0 63v33M1 47.5 -26 63M55 47.5 82 63' fill='none' stroke='%23ffffff' stroke-opacity='.09' stroke-width='1'/%3E%3C/svg%3E");
  background-size: 56px 97px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: min(100svh, 980px); display: flex; align-items: center; overflow: hidden;
  background: radial-gradient(120% 90% at 70% 20%, #1c1d21 0%, var(--black) 60%);
  color: var(--white); padding-block: calc(var(--header-h) + 40px) 96px; isolation: isolate;
}
.hero-layer { position: absolute; pointer-events: none; will-change: transform; z-index: -1; }
.hero-hex { inset: -20% -10%; mask-image: radial-gradient(70% 70% at 75% 40%, #000 20%, transparent 75%); -webkit-mask-image: radial-gradient(70% 70% at 75% 40%, #000 20%, transparent 75%); }
.hero-molecule { right: -4%; top: 14%; width: min(640px, 60vw); opacity: .55; }
.hero-glow {
  position: absolute; z-index: -1; width: 60vw; height: 60vw; right: -15vw; top: -10vw; border-radius: 50%;
  background: radial-gradient(circle, rgba(200,205,212,.16), transparent 65%);
}
.hero-inner { will-change: transform; }
.hero-title { font-size: clamp(2.4rem, 6.4vw, 5rem); font-weight: 700; letter-spacing: -.02em; max-width: 16ch; margin-bottom: 1.5rem; }
.hero-lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: #c3c7cc; max-width: 52ch; margin-bottom: 2.25rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-note { margin: 28px 0 0; font-size: .85rem; color: #9ea3aa; letter-spacing: .02em; }

.scroll-cue {
  position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%);
  width: 28px; height: 46px; border: 1.5px solid rgba(255,255,255,.4); border-radius: 20px;
}
.scroll-cue span { position: absolute; left: 50%; top: 9px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 2px; background: var(--white); animation: cue 1.8s infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- Pillars ---------- */
.pillars { background: var(--ink); color: var(--silver-hi); border-top: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); }
.pillars-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.pillar { padding: 36px 24px; border-left: 1px solid var(--line-dark); }
.pillar:first-child { border-left: 0; }
.pillar svg { width: 30px; height: 30px; fill: none; stroke: var(--silver); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 14px; }
.pillar h2 { font-size: 1rem; font-weight: 600; margin-bottom: 6px; color: var(--white); }
.pillar p { font-size: .92rem; color: #a9aeb5; margin: 0; }
@media (max-width: 900px) {
  .pillars-grid { grid-template-columns: repeat(2, 1fr); }
  .pillar:nth-child(3) { border-left: 0; }
  .pillar:nth-child(n+3) { border-top: 1px solid var(--line-dark); }
}
@media (max-width: 480px) {
  .pillar { padding: 26px 14px; }
}

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(40px, 7vw, 96px); align-items: center; }
.about-copy p:not(.eyebrow):not(.lead) { color: var(--steel); }
.about-card {
  position: relative; aspect-ratio: 4 / 5; border-radius: 24px; overflow: hidden;
  background: radial-gradient(90% 70% at 50% 35%, #2a2c31, var(--black) 75%);
  display: grid; place-items: center; box-shadow: var(--shadow);
}
.about-hex { position: absolute; inset: -20%; will-change: transform; }
.about-card img { position: relative; width: 78%; will-change: transform; filter: drop-shadow(0 20px 30px rgba(0,0,0,.6)); }
.about-stat {
  position: absolute; left: 24px; bottom: 24px; right: 24px; display: flex; align-items: center; gap: 16px;
  padding: 18px 20px; border-radius: var(--radius); border: 1px solid var(--line-dark);
  background: rgba(255,255,255,.04); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.stat-num { font: 700 2.6rem/1 var(--font-head); background: var(--silver-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.stat-label { color: #c3c7cc; font-size: .9rem; line-height: 1.35; }
@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-card { aspect-ratio: 16 / 11; max-width: 560px; }
}

.about-h3 { font-size: 1.25rem; font-weight: 600; margin: 32px 0 12px; }
.about-copy .about-h3:first-of-type { margin-top: 36px; }
.apart-title { margin: clamp(56px, 8vw, 88px) 0 24px; }
.apart-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.apart-card {
  padding: 28px 24px; border-radius: 18px; background: var(--mist); border: 1px solid var(--line-light);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .35s;
}
.apart-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); background: var(--white); }
.apart-num { display: block; font: 700 .8rem/1 var(--font-head); letter-spacing: .18em; color: var(--steel); margin-bottom: 18px; }
.apart-card h4 { font-size: 1.05rem; font-weight: 600; margin-bottom: 10px; }
.apart-card p { color: var(--steel); font-size: .95rem; margin: 0; }
.about-more { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); margin-top: clamp(40px, 6vw, 64px); padding-top: 8px; border-top: 1px solid var(--line-light); }
.about-more p { color: var(--steel); }
@media (max-width: 980px) { .apart-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .apart-grid, .about-more { grid-template-columns: 1fr; } }

/* ---------- Parallax band ---------- */
.band { position: relative; overflow: hidden; background: var(--black); color: var(--white); padding-block: clamp(90px, 14vw, 170px); text-align: center; isolation: isolate; }
.band-bg { position: absolute; inset: -40% 0; z-index: -1; will-change: transform; }
.band::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 80% at 50% 50%, transparent, var(--black) 85%); }
.band-quote { font: 700 clamp(2rem, 5.5vw, 4rem)/1.1 var(--font-head); letter-spacing: -.02em; margin-bottom: .5em; }
.band-sub { color: #a9aeb5; margin: 0 auto; max-width: 44ch; }

/* ---------- Products carousel ---------- */
.carousel-controls { display: flex; gap: 10px; }
.carousel { position: relative; overflow: hidden; margin-inline: -4px; padding-inline: 4px; }
.carousel-track {
  list-style: none; margin: 0; padding: 8px 2px 24px; display: grid; grid-auto-flow: column;
  grid-auto-columns: calc((100% - 3 * 24px) / 4); gap: 24px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  scrollbar-width: none; overscroll-behavior-x: contain;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track:focus-visible { outline-offset: 6px; }
@media (max-width: 1100px) { .carousel-track { grid-auto-columns: calc((100% - 2 * 20px) / 3); gap: 20px; } }
@media (max-width: 800px) { .carousel-track { grid-auto-columns: calc((100% - 20px) / 2); gap: 20px; } }
@media (max-width: 520px) { .carousel-track { grid-auto-columns: 78%; gap: 16px; } }

.product-card {
  scroll-snap-align: start; background: var(--white); border-radius: 20px; overflow: hidden;
  border: 1px solid var(--line-light); display: flex; flex-direction: column;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.product-media {
  height: clamp(200px, 16vw, 230px); display: grid; place-items: center; padding: 24px;
  background: linear-gradient(180deg, #ffffff, #eef0f2); border-bottom: 1px solid var(--line-light);
}
.product-media img { max-height: 100%; max-width: 100%; min-height: 0; width: auto; object-fit: contain; mix-blend-mode: multiply; transition: transform .5s var(--ease); }
.product-card:hover .product-media img { transform: scale(1.04); }
.product-info { padding: 18px 20px; text-align: center; }
.product-info h3 { font-size: 1.1rem; margin: 0; }
.product-more {
  background: none; border: 0; padding: 10px 0; cursor: pointer; text-decoration: none; flex: none;
  font: 600 .85rem/1 var(--font-head); display: inline-flex; align-items: center; gap: 8px; color: var(--steel);
  min-height: 44px; transition: color .2s;
}
.product-more::after { content: "→"; transition: transform .25s var(--ease); }
.product-more:hover { color: var(--ink); }
.product-more:hover::after { transform: translateX(4px); }

.carousel-dots { display: flex; justify-content: center; gap: 4px; margin-top: 8px; }
.carousel-dots button {
  width: 32px; height: 32px; border: 0; background: none; cursor: pointer; display: grid; place-items: center; padding: 0;
}
.carousel-dots button::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #c3c7cc; transition: width .3s var(--ease), background .3s; }
.carousel-dots button[aria-current="true"]::before { width: 24px; border-radius: 4px; background: var(--ink); }

/* ---------- Batch verification ---------- */
.verify { overflow: hidden; isolation: isolate; }
.verify-hex { position: absolute; inset: -30% -10%; z-index: -1; will-change: transform; mask-image: radial-gradient(60% 60% at 90% 50%, #000, transparent 70%); -webkit-mask-image: radial-gradient(60% 60% at 90% 50%, #000, transparent 70%); }
.verify-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 80px); align-items: center; }
.steps { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.steps li { display: grid; grid-template-columns: 34px 1fr; gap: 14px; align-items: start; color: #c9ccd1; }
.steps li p { margin: 5px 0 0; }
.steps .n { width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(255,255,255,.3); display: grid; place-items: center; font: 600 .85rem/1 var(--font-head); color: var(--white); }
.steps strong { color: var(--white); }

.verify-panel {
  padding: clamp(24px, 4vw, 40px); border-radius: 24px;
  background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.02));
  border: 1px solid var(--line-dark); box-shadow: 0 30px 60px -30px #000;
}
.verify-form label { display: block; font: 600 .95rem/1.2 var(--font-head); color: var(--white); margin-bottom: 10px; }
.verify-row { display: flex; gap: 10px; }
.verify-row input {
  flex: 1; min-width: 0; min-height: 52px; padding: 0 18px; border-radius: 999px;
  background: rgba(0,0,0,.4); border: 1px solid rgba(255,255,255,.25); color: var(--white);
  font: 500 1.05rem/1 var(--font-head); letter-spacing: .08em; text-transform: uppercase;
}
.verify-row input::placeholder { color: #8d929a; text-transform: none; letter-spacing: 0; font-family: var(--font-body); }
.verify-row input:focus { border-color: var(--silver); outline: none; box-shadow: 0 0 0 3px rgba(185,189,196,.35); }
.hint { font-size: .85rem; color: #9ea3aa; margin: 10px 0 0; }
@media (max-width: 460px) { .verify-row { flex-direction: column; } }

.verify-result { margin-top: 24px; padding: 20px; border-radius: var(--radius); border: 1px solid var(--line-dark); background: rgba(0,0,0,.35); animation: pop .35s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.vr-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.vr-head svg { width: 28px; height: 28px; flex: none; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.vr-title { font: 700 1.1rem/1.2 var(--font-head); margin: 0; color: var(--white); }
.vr-ok svg { stroke: #7fd6a4; }
.vr-warn svg { stroke: #f2c46b; }
.vr-bad svg { stroke: #ff8a80; }
.vr-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 20px; margin: 0; }
.vr-grid dt { font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: #9ea3aa; }
.vr-grid dd { margin: 2px 0 0; color: var(--white); font-weight: 500; }
.verify-result p { color: #c9ccd1; margin: 0; }

/* ---------- Articles ---------- */
.articles-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.article-card {
  display: flex; flex-direction: column; border-radius: 20px; overflow: hidden; background: var(--white);
  border: 1px solid var(--line-light); transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.article-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.article-thumb { aspect-ratio: 16 / 9; overflow: hidden; background: var(--mist); }
.cover {
  position: relative; overflow: hidden; display: grid; place-items: center;
  background: radial-gradient(80% 90% at 70% 30%, #2b2d32, var(--black) 75%);
}
.cover::before { content: ""; position: absolute; inset: 0; opacity: .8;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='97' viewBox='0 0 56 97'%3E%3Cpath d='M28 1 55 16.5v31L28 63 1 47.5v-31Zm0 63v33M1 47.5 -26 63M55 47.5 82 63' fill='none' stroke='%23ffffff' stroke-opacity='.09' stroke-width='1'/%3E%3C/svg%3E");
  background-size: 56px 97px; }
.cover img { position: relative; width: 70%; opacity: .75; transition: transform .8s var(--ease); }
.cover-1 img { transform: rotate(-18deg) scale(1.1); }
.cover-2 img { transform: rotate(14deg) translateX(12%); }
.cover span { position: absolute; left: 20px; bottom: 16px; font: 600 .7rem/1 var(--font-head); letter-spacing: .22em; text-transform: uppercase; color: var(--silver); }
.article-card:hover .cover img { transform: scale(1.08); }
.article-card:hover .cover-1 img { transform: rotate(-18deg) scale(1.18); }
.article-card:hover .cover-2 img { transform: rotate(14deg) translateX(12%) scale(1.08); }
.cover-wide { aspect-ratio: 21 / 8; border-radius: var(--radius); margin: 8px 0 24px; }
.cover-wide img { width: 42%; }
.article-meta { display: flex; flex-wrap: wrap; row-gap: 6px; white-space: nowrap; gap: 10px; align-items: center; font-size: .8rem; color: var(--steel); margin-bottom: 10px; }
.article-meta .tag { font: 600 .7rem/1 var(--font-head); letter-spacing: .14em; text-transform: uppercase; padding: 6px 9px; border-radius: 999px; background: var(--ink); color: var(--white); }
.article-content { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.article-content h3 { font-size: 1.2rem; margin-bottom: 8px; }
.article-content h3 button { all: unset; cursor: pointer; }
.article-content h3 button::after { content: ""; position: absolute; inset: 0; } /* whole card clickable */
.article-card { position: relative; }
.article-content h3 button:focus-visible { outline: none; }
.article-card:focus-within { outline: 3px solid #8fb4ff; outline-offset: 3px; }
.article-content p { color: var(--steel); font-size: .95rem; }
.article-link { margin-top: auto; font: 600 .9rem/1 var(--font-head); color: var(--ink); }
.article-link::after { content: " →"; }
@media (max-width: 980px) { .articles-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .articles-grid { grid-template-columns: 1fr; } }

@media (max-width: 860px) { .verify-grid { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: #070708; color: #a9aeb5; padding-top: 64px; border-top: 1px solid var(--line-dark); }
.footer-grid { display: grid; grid-template-columns: 1.2fr .8fr 1.2fr; gap: 40px; padding-bottom: 40px; }
.footer-logo { width: 200px; margin-bottom: 14px; }
.footer-note { font-size: .92rem; max-width: 34ch; }
.footer-nav { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.footer-nav a { text-decoration: none; display: inline-block; padding: 6px 0; }
.footer-nav a:hover { color: var(--white); }
.disclaimer strong { color: var(--white); }
.disclaimer { font-size: .85rem; line-height: 1.6; border-left: 1px solid var(--line-dark); padding-left: 20px; }
.footer-base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-block: 22px; font-size: .85rem; position: relative; }
.footer-base::before { content: ""; position: absolute; top: 0; left: var(--gutter); right: var(--gutter); border-top: 1px solid var(--line-dark); }
.footer-base p { margin: 0; }
.footer-base a { text-decoration: none; }
.footer-base a:hover { color: var(--white); }
@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .disclaimer { grid-column: 1 / -1; border-left: 0; padding-left: 0; border-top: 1px solid var(--line-dark); padding-top: 20px; }
}

/* ---------- Dialogs ---------- */
.modal {
  width: min(920px, calc(100% - 32px)); max-height: calc(100dvh - 48px); padding: 0; border: 0; border-radius: 24px;
  background: var(--white); color: var(--ink); box-shadow: 0 40px 90px -20px rgba(0,0,0,.7);
}
.modal::backdrop { background: rgba(7,7,8,.72); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.modal[open] { animation: pop .3s var(--ease); }
.modal-inner { position: relative; }
.modal-close {
  position: sticky; top: 14px; float: right; margin: 14px 14px 0 0; z-index: 2;
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-light); background: var(--white);
  font-size: 1.6rem; line-height: 1; cursor: pointer;
}
.modal-close:hover { background: var(--ink); color: var(--white); }
.modal-body { padding: clamp(24px, 4vw, 44px); }
.article-body h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); max-width: 24ch; }
.article-body p { color: #3c4047; max-width: 68ch; }

/* ---------- Batch verification popup ---------- */
.btn-dark { background: var(--ink); color: var(--white); }
.btn-dark:hover { background: var(--black); transform: translateY(-2px); }
.modal-verify { width: min(720px, calc(100% - 32px)); }
.vd-body { padding-bottom: 28px; }
.vd-body h2 { font: 700 clamp(1.4rem, 3vw, 1.75rem)/1.15 var(--font-head); margin: 0; }
.vd-body p { margin: 0; color: var(--steel); }

.vd-loading { display: grid; justify-items: center; text-align: center; gap: 12px; padding: 48px 0 32px; }
.vd-spinner {
  width: 56px; height: 56px; border-radius: 50%; margin-bottom: 8px;
  border: 4px solid var(--line-light); border-top-color: var(--ink);
  animation: vd-spin .8s linear infinite;
}
@keyframes vd-spin { to { transform: rotate(360deg); } }

.vd-status { display: flex; align-items: center; gap: 16px; padding-right: 48px; animation: pop .35s var(--ease); }
.vd-badge { flex: none; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; }
.vd-badge svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.vd-ok .vd-badge { background: #e3f5ea; color: #1d7a45; }
.vd-warn .vd-badge { background: #fbf0d9; color: #8a5a00; }
.vd-bad .vd-badge { background: #fde4e1; color: #b3261e; }
.vd-ok h2 { color: #1d7a45; }
.vd-bad h2 { color: #b3261e; }
.vd-ok .vd-badge svg path { stroke-dasharray: 20; stroke-dashoffset: 20; animation: vd-tick .45s .2s var(--ease) forwards; }
@keyframes vd-tick { to { stroke-dashoffset: 0; } }

.vd-hero {
  display: grid; grid-template-columns: 1fr auto; gap: 4px 20px; align-items: center;
  margin: 24px 0 8px; padding: 20px; border-radius: var(--radius); background: var(--mist);
}
.vd-body .vd-product { font: 700 1.15rem/1.25 var(--font-head); color: var(--ink); }
.vd-body .vd-lot { grid-column: 1; font-size: .9rem; }
.vd-lot strong { color: var(--ink); letter-spacing: .04em; }
.vd-body .vd-purity { grid-column: 2; grid-row: 1 / span 2; text-align: right; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; }
.vd-purity span { display: block; font: 700 1.6rem/1 var(--font-head); color: var(--ink); letter-spacing: 0; margin-bottom: 4px; }

.vd-h { font: 600 .75rem/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--steel); margin: 24px 0 12px; }
.vd-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 24px; margin: 0; }
.vd-grid dt { font-size: .75rem; color: var(--steel); }
.vd-grid dd { margin: 2px 0 0; font-weight: 500; color: var(--ink); overflow-wrap: anywhere; }
.vd-wide { grid-column: 1 / -1; }
.vd-seq { font-size: .85rem; font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; }

.vd-table-wrap { overflow-x: auto; border: 1px solid var(--line-light); border-radius: var(--radius-sm); }
.vd-table { width: 100%; border-collapse: collapse; font-size: .875rem; }
.vd-table th, .vd-table td { padding: 9px 12px; text-align: left; border-bottom: 1px solid var(--line-light); vertical-align: top; }
.vd-table tbody tr:last-child > * { border-bottom: 0; }
.vd-table thead th { background: var(--mist); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--steel); font-weight: 600; }
.vd-table tbody th { font-weight: 500; color: var(--ink); }
.vd-table td { color: var(--steel); }
.vd-table td:last-child { color: var(--ink); font-weight: 600; white-space: nowrap; }
.vd-body .vd-conclusion { margin-top: 16px; font-size: .9rem; }
.vd-conclusion strong { color: #1d7a45; }

.vd-foot { padding: 0 clamp(24px, 4vw, 44px) clamp(24px, 4vw, 44px); }
@media (max-width: 560px) {
  .vd-status { gap: 12px; padding-right: 40px; }
  .vd-badge { width: 44px; height: 44px; }
  .vd-badge svg { width: 24px; height: 24px; }
  .vd-body p { font-size: .9rem; }
  .vd-grid { grid-template-columns: 1fr 1fr; gap: 12px 16px; }
  .vd-hero { grid-template-columns: 1fr; }
  .vd-body .vd-purity { grid-column: 1; grid-row: auto; text-align: left; margin-top: 10px; }
  /* Stack each test row: name on top, specification and result side by side */
  .vd-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .vd-table tbody tr { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 10px 12px; border-bottom: 1px solid var(--line-light); }
  .vd-table tbody tr:last-child { border-bottom: 0; }
  .vd-table th, .vd-table td { padding: 0; border: 0; }
  .vd-table tbody th { grid-column: 1 / -1; }
  .vd-table td:first-of-type { font-size: .8rem; }
  .vd-table td:last-child { text-align: right; white-space: normal; }
}


/* ---------- Scroll reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  [data-speed] { transform: none !important; }
}
