:root {
  --bg: #070707;
  --bg-2: #0e0f0f;
  --surface: #131515;
  --line: #222625;
  --line-2: #2f3534;
  --text: #f1f3f2;
  --muted: #8d9391;
  --dim: #5d6361;
  --accent: #7fe0d0;
  --accent-2: #4fb8a8;
  --accent-ink: #04211d;
  --radius: 14px;
  --sans: 'Inter Tight', system-ui, -apple-system, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --wrap: 1240px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 17px/1.65 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-weight: 400; letter-spacing: -.025em; line-height: 1.05; margin: 0 0 .5em; }
h1 { font-size: clamp(3rem, 8.4vw, 7.2rem); letter-spacing: -.045em; font-weight: 300; }
h2 { font-size: clamp(2.2rem, 5vw, 4.2rem); letter-spacing: -.04em; font-weight: 300; }
h3 { font-size: 1.3rem; font-weight: 500; letter-spacing: -.015em; line-height: 1.25; }
h1 em, h2 em { font-style: italic; color: var(--accent); font-weight: 300; }
p { margin: 0 0 1em; }
.mono { font-family: var(--mono); font-size: .76rem; letter-spacing: .02em; text-transform: uppercase; }
.muted { color: var(--muted); }
.small { font-size: .82rem; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 40em; line-height: 1.55; }
.lead strong { color: var(--text); font-weight: 500; }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.narrow { max-width: 760px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 99; background: var(--accent); color: var(--accent-ink); padding: 8px 12px; }
.i { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.6; flex: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--accent); color: var(--accent-ink); }

/* Buttons & links */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55em; background: var(--accent); color: var(--accent-ink); text-decoration: none; padding: .9em 1.5em; border-radius: 999px; font: 500 .95rem var(--sans); border: 1px solid var(--accent); cursor: pointer; transition: background .25s, color .25s, transform .25s var(--ease); }
.btn:hover { background: #a6efe3; }
.btn:hover .i { transform: translateX(3px); }
.btn .i { transition: transform .25s var(--ease); }
.btn-line { background: transparent; color: var(--text); border-color: var(--line-2); }
.btn-line:hover { background: transparent; border-color: var(--text); }
.btn-sm { padding: .55em 1.1em; font-size: .85rem; }
.text-link { display: inline-flex; align-items: center; gap: .45em; color: var(--accent); text-decoration: none; font-weight: 500; font-size: .95rem; }
.text-link:hover .i { transform: translateX(3px); }
.text-link .i { transition: transform .25s var(--ease); }

/* Top bar */
.topbar { position: fixed; inset: 0 0 auto; z-index: 30; transition: background .3s, border-color .3s; border-bottom: 1px solid transparent; }
.topbar.scrolled, .topbar.solid { background: rgba(7,7,7,.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-color: var(--line); }
.topbar.solid { position: sticky; }
.progress { position: absolute; left: 0; bottom: -1px; height: 1px; width: 100%; background: var(--accent); transform-origin: 0 50%; transform: scaleX(0); }
.bar { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
.brand img { height: 40px; width: auto; }
.nav { display: flex; align-items: center; gap: 28px; }
.bar-actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.bar-actions .lang { white-space: nowrap; }
.nav a { text-decoration: none; color: var(--muted); font-size: .92rem; transition: color .2s; display: inline-flex; gap: 8px; align-items: baseline; }
.nav a .mono { font-size: .66rem; color: var(--dim); transition: color .2s; }
.nav a:hover, .nav a.active { color: var(--text); }
.nav a.active .mono { color: var(--accent); }
.nav .lang { border: 1px solid var(--line-2); border-radius: 6px; padding: 3px 8px; font-size: .7rem; }
.nav .btn { color: var(--accent-ink); }
.nav .back { color: var(--text); gap: .5em; }
.nav .btn { white-space: nowrap; }
.back-short { display: none; }
@media (max-width: 620px) {
  .back-long { display: none; }
  .back-short { display: inline; }
  .nav-doc { gap: 10px; }
  .doc .brand img { height: 34px; }
}
.nav .back span { color: var(--accent); }
.nav .back:hover span { transform: translateX(-3px); display: inline-block; transition: transform .2s var(--ease); }
.menu-btn { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; position: relative; margin-right: -10px; }
.menu-btn span { position: absolute; left: 12px; right: 12px; height: 1.5px; background: var(--text); transition: transform .3s var(--ease); }
.menu-btn span:first-child { top: 18px; }
.menu-btn span:last-child { top: 25px; }
.nav-open .menu-btn span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav-open .menu-btn span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

@media (max-width: 920px) {
  .menu-btn { display: block; }
  .nav:not(.nav-doc) { position: fixed; inset: 72px 0 auto; background: rgba(7,7,7,.97); flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 24px; border-bottom: 1px solid var(--line); opacity: 0; pointer-events: none; transform: translateY(-8px); transition: opacity .25s, transform .25s var(--ease); }
  .nav-open .nav { opacity: 1; pointer-events: auto; transform: none; }
  .nav-open .topbar { background: rgba(7,7,7,.97); }
  .nav:not(.nav-doc) a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1.1rem; }
  .brand img { height: 32px; }
  .bar-actions { gap: 8px; }
  .bar-actions .btn-sm { padding: .5em .9em; font-size: .78rem; }
}

/* Hero */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding: 120px 0 40px; overflow: hidden; isolation: isolate; }
.hero::before { content: ''; position: absolute; inset: 0; z-index: -2; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 72px 72px; opacity: .35; mask-image: radial-gradient(ellipse 80% 70% at 65% 45%, #000 20%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse 80% 70% at 65% 45%, #000 20%, transparent 75%); }
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero-inner { position: relative; max-width: min(640px, 54vw); margin-left: max(16px, (100vw - var(--wrap)) / 2); margin-right: auto; }
.hero h1 { max-width: 9.5em; margin-bottom: .3em; }
.hero-sub { font-size: clamp(1.15rem, 2vw, 1.5rem); font-weight: 400; color: var(--text); letter-spacing: -.02em; line-height: 1.3; margin-bottom: .7em; }
.hero .lead { max-width: 30em; }
.eyebrow { color: var(--accent); margin-bottom: 1.6em; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-meta { display: grid; grid-template-columns: repeat(4, auto); justify-content: start; gap: 12px 56px; margin-top: auto; padding-top: 64px; }
.hero-meta span { display: block; color: var(--dim); font-size: .66rem; margin-bottom: 4px; }
.hero-meta b { font-weight: 500; font-size: .8rem; color: var(--text); }
.notice-pill { position: absolute; right: max(16px, (100% - var(--wrap)) / 2); bottom: 40px; margin: 0; color: var(--muted); font-size: .66rem; max-width: 26em; text-align: right; line-height: 1.6; }
@media (max-width: 920px) {
  .hero { padding-top: calc(72px + 34svh); justify-content: flex-start; }
  .hero-inner { max-width: none; margin-left: auto; }
  .hero-meta { grid-template-columns: 1fr 1fr; padding-top: 48px; }
  .notice-pill { position: static; text-align: left; margin: 28px auto 0; width: min(var(--wrap), 100% - 32px); max-width: none; }
}

/* Sections */
.sec { padding: clamp(72px, 9vw, 120px) 0; position: relative; }
.sec-alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.sec-head { max-width: 820px; margin-bottom: clamp(48px, 7vw, 88px); }
.sec-kicker { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; color: var(--muted); margin-bottom: 28px; }
.sec-kicker a, .sec-kicker > span { white-space: nowrap; }
.sec-kicker span { color: var(--accent); }
.sec-kicker::after { content: ''; height: 1px; flex: none; width: 48px; background: var(--line-2); }
@media (max-width: 620px) { .doc .sec-kicker::after { display: none; } }
.sec-kicker a { color: var(--muted); }

/* Reveal on scroll (only when JS is running) */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--d, 0) * 90ms); }
.js .reveal.in { opacity: 1; transform: none; }

/* 01 Origin */
.steps { list-style: none; margin: 0 0 clamp(56px, 8vw, 96px); padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.steps li { padding: 28px 28px 8px 0; position: relative; }
.steps li + li { padding-left: 28px; border-left: 1px solid var(--line); }
.steps li::before { content: ''; position: absolute; top: -1px; left: 0; height: 1px; width: 0; background: var(--accent); transition: width 1.4s var(--ease) calc(var(--d, 0) * 250ms + 200ms); }
.steps li.in::before { width: 100%; }
.steps .mono { color: var(--accent); display: block; margin-bottom: 36px; }
.steps p { color: var(--muted); font-size: .95rem; }
@media (max-width: 1080px) {
  .steps { grid-template-columns: 1fr 1fr; }
  .steps li:nth-child(3) { border-left: 0; }
}
@media (max-width: 760px) {
  .steps { grid-template-columns: 1fr; }
  .steps li, .steps li + li { padding: 24px 0 8px; border-left: 0; border-top: 1px solid var(--line); }
  .steps .mono { margin-bottom: 14px; }
}

.sem-pair + .cmp { margin-top: clamp(32px, 5vw, 56px); }
.cmp { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.cmp-row { display: grid; grid-template-columns: 1.1fr 1fr 1fr; }
.cmp-row + .cmp-row { border-top: 1px solid var(--line); }
.cmp-row span { padding: 18px 22px; font-size: .95rem; color: var(--muted); }
.cmp-row [role="cell"] { display: grid; grid-template-columns: 18px 1fr; gap: 12px; align-items: start; }
.mark { width: 15px; height: 15px; margin-top: .25em; fill: none; stroke: var(--dim); stroke-width: 1.8; stroke-linecap: round; }
.mark.ok { stroke: var(--accent); stroke-width: 2; }
.cmp-row .mono { font-size: .7rem; color: var(--dim); align-self: center; }
.cmp-row .hl { color: var(--text); background: rgba(127,224,208,.045); border-left: 1px solid var(--line); }
.cmp-head span { font-size: .8rem; color: var(--muted); padding-block: 14px; }
.cmp-head .hl { color: var(--accent); }
@media (max-width: 600px) {
  .cmp-row { grid-template-columns: 1fr 1fr; }
  .cmp-row > :first-child { grid-column: 1 / -1; padding-bottom: 0; }
  .cmp-head > :first-child { display: none; }
  .cmp-row span { padding: 12px 16px; font-size: .88rem; }
}

/* Schematic: where each material sits on skin */
.diagram { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: clamp(32px, 5vw, 56px); }
.diagram-panel { margin: 0; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 20px 22px; background: var(--bg-2); }
.diagram-panel figcaption { font: 500 .95rem var(--sans); margin-bottom: 14px; }
.diagram-panel.is-new figcaption { color: var(--accent); }
.diagram-panel svg { width: 100%; height: auto; display: block; }
.diagram-panel p { font-size: .86rem; color: var(--muted); margin: 14px 0 0; line-height: 1.55; }
.diagram .skin rect { fill: none; stroke: var(--line-2); stroke-width: 1.2; }
.diagram .derm { fill: rgba(255,255,255,.02); stroke: var(--line); stroke-width: 1; }
.diagram .surface { stroke: var(--line-2); stroke-width: 1.4; stroke-dasharray: 5 5; }
.diagram .big { fill: none; stroke: rgba(127, 224, 208, .38); stroke-width: 2; }
.diagram .small { fill: var(--accent); }

/* The grains fall in: the large polymer stops at the surface, the small
   particles carry on between the cells. Runs only while the panel is in view. */
.js .diagram .big, .js .diagram .small { animation-duration: 5s; animation-iteration-count: infinite; animation-timing-function: cubic-bezier(.4, 0, .5, 1); animation-play-state: paused; opacity: 0; }
.js .diagram .big { animation-name: dropStop; animation-delay: calc(var(--i, 0) * .28s); }
.js .diagram .small { animation-name: dropThrough; animation-delay: calc(var(--i, 0) * .16s); }
.js .diagram.in .big, .js .diagram.in .small { animation-play-state: running; }
@keyframes dropStop {
  0% { transform: translateY(-64px); opacity: 0; }
  10% { opacity: 1; }
  28% { transform: translateY(0); }
  33% { transform: translateY(-7px); }
  38% { transform: translateY(0); }
  90% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(0); opacity: 0; }
}
@keyframes dropThrough {
  0% { transform: translateY(-78px); opacity: 0; }
  10% { opacity: 1; }
  45% { transform: translateY(0); }
  90% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(16px); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .js .diagram .big, .js .diagram .small { opacity: 1; animation: none; } }
.diagram .arrow { fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.diagram .arrow.stop { stroke: var(--dim); }
.diagram .arrow.go { stroke: var(--accent); }
.diagram .block { stroke: var(--dim); stroke-width: 3; stroke-linecap: round; }
.diagram .layer { fill: var(--dim); font: 400 11px var(--mono); letter-spacing: .04em; }
.diagram-note { color: var(--dim); font-size: .62rem; margin: 12px 0 0; text-transform: none; }
@media (max-width: 720px) { .diagram { grid-template-columns: 1fr; } }

/* 02 Minerals: periodic table */
.elements { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; align-items: start; }
.ptable { container-type: inline-size; display: grid; grid-template-columns: repeat(18, minmax(0, 1fr)); grid-auto-rows: calc((100cqw - 85px) / 18); gap: 5px; }
.cell { border-radius: 5px; min-width: 0; }
.ghost { border: 1px solid var(--line); opacity: .55; }
.el { position: relative; border: 1px solid var(--line-2); background: var(--surface); color: var(--text); cursor: pointer; padding: 0; font: inherit; display: flex; flex-direction: column; align-items: center; justify-content: center; transition: border-color .25s, background .25s, color .25s, transform .25s var(--ease), box-shadow .25s; }
.el small { position: absolute; top: 3px; left: 5px; font: 400 .55rem var(--mono); color: var(--muted); }
.el b { font-weight: 500; font-size: clamp(.8rem, 1.35vw, 1.15rem); letter-spacing: -.02em; }
.el.rep::after { content: ''; position: absolute; top: 5px; right: 5px; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.el:hover { border-color: var(--accent-2); transform: translateY(-2px); }
.el.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); box-shadow: 0 0 0 4px rgba(127,224,208,.12), 0 10px 40px -8px rgba(127,224,208,.45); }
.el.on small { color: var(--accent-ink); }
.el.on.rep::after { background: var(--accent-ink); }
.js .ptable .el { opacity: .15; transform: scale(.85); }
.js .elements.in .ptable .el { opacity: 1; transform: none; transition: opacity .5s, transform .6s var(--ease), border-color .25s, background .25s, color .25s, box-shadow .25s; transition-delay: calc(var(--i, 0) * 110ms + 300ms), calc(var(--i, 0) * 110ms + 300ms), 0s, 0s, 0s, 0s; }
.ptable-key { align-self: center; padding: 0 20px 0 8px; min-width: 0; }
.ptable-key .mono { color: var(--accent); font-size: .8rem; text-transform: none; margin-bottom: 10px; }
.ptable-key h3 { margin-bottom: 6px; }
.ptable-key p:last-child { color: var(--muted); font-size: .9rem; margin: 0; max-width: 34em; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: 22px; color: var(--muted); font-size: .64rem; text-transform: none; }
.legend span { display: flex; align-items: flex-start; gap: 8px; min-width: 0; }
.legend .dot { margin-top: 1px; }
.dot { flex: none; width: 9px; height: 9px; border-radius: 3px; border: 1px solid var(--line-2); background: var(--surface); display: inline-block; position: relative; }
.dot.rep::after { content: ''; position: absolute; inset: 2px; border-radius: 50%; background: var(--accent); }

.phases { margin-top: 26px; border-top: 1px solid var(--line); padding-top: 18px; }
.phases > .mono { color: var(--muted); font-size: .64rem; margin-bottom: 12px; }
.phases ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.phases li { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; background: var(--bg-2); }
.phases li span { display: block; font-size: .78rem; color: var(--muted); margin-bottom: 4px; }
.phases li b { font-weight: 400; font-size: 1.15rem; letter-spacing: -.02em; color: var(--accent); font-variant-numeric: tabular-nums; }
.phases-src { color: var(--dim); font-size: .6rem; margin: 12px 0 0; text-transform: none; }
@media (max-width: 620px) { .phases ul { grid-template-columns: 1fr 1fr; } }

.notes { margin-top: 20px; display: grid; gap: 10px; }
.safety { margin: 0; font-size: .86rem; color: var(--muted); border-left: 2px solid var(--accent); padding-left: 16px; line-height: 1.55; }
.safety .mono { display: block; color: var(--accent); font-size: .62rem; margin-bottom: 4px; }
.faq { border: 1px solid var(--line); border-radius: 10px; background: var(--bg-2); }
.faq summary { cursor: pointer; list-style: none; padding: 13px 16px; font-size: .85rem; color: var(--text); display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--accent); font-family: var(--mono); }
.faq[open] summary::after { content: '−'; }
.faq p { margin: 0; padding: 0 16px 15px; font-size: .85rem; color: var(--muted); line-height: 1.6; }

.el-tiles { display: none; }
.el-close { display: none; }
.el-panel { position: sticky; top: 100px; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; background: var(--bg); }
.el-card { border: 1px solid var(--accent); border-radius: 10px; padding: 14px 16px 16px; margin-bottom: 20px; background: linear-gradient(160deg, rgba(127,224,208,.12), rgba(127,224,208,0) 60%); }
.el-card-top { display: flex; justify-content: space-between; color: var(--accent); font-size: .7rem; }
.el-sym { display: block; font-size: 4.6rem; font-weight: 300; letter-spacing: -.05em; line-height: 1; margin: 18px 0 8px; }
.el-name { margin: 0; font-size: 1.05rem; }
.el-facts { margin: 0 0 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; text-transform: none; }
.el-facts dt { color: var(--dim); font-size: .62rem; text-transform: uppercase; }
.el-facts dd { margin: 2px 0 0; font-size: .85rem; }
.el-role-label { color: var(--dim); font-size: .62rem; margin-bottom: 6px; }
.el-role { font-size: .95rem; color: var(--text); min-height: 4.8em; }
.el-panel .text-link[hidden] { display: none; }
@media (max-width: 1040px) {
  .elements { grid-template-columns: minmax(0, 1fr); }
  .el-panel { position: static; display: grid; grid-template-columns: 150px 1fr; gap: 0 22px; }
  .el-card { grid-row: span 4; margin: 0; }
  .el-sym { font-size: 3.4rem; }
}
@media (max-width: 760px) {
  .ptable { display: none; }
  /* The panel is injected into the tile grid, under the row that was tapped */
  .el-panel.inline { grid-column: 1 / -1; position: relative; top: auto; align-self: start; margin: 2px 0 6px; border-color: var(--accent); animation: elOpen .28s var(--ease); }
  .el-panel.inline::before { content: ''; position: absolute; top: -7px; left: 50%; width: 12px; height: 12px; margin-left: -6px; background: var(--bg); border-left: 1px solid var(--accent); border-top: 1px solid var(--accent); transform: rotate(45deg); }
  .el-close { display: block; position: absolute; top: 6px; right: 6px; width: 40px; height: 40px; background: none; border: 0; color: var(--muted); font-size: 1.6rem; line-height: 1; cursor: pointer; }
  .el-close:hover { color: var(--text); }
  @keyframes elOpen { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
  .el-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .tile { aspect-ratio: 1.1; border-radius: 10px; align-items: flex-start; justify-content: flex-end; padding: 10px 12px; }
  .tile small { top: 8px; left: 12px; font-size: .6rem; }
  .tile b { font-size: 1.5rem; }
  .tile span { font-size: .72rem; color: var(--muted); }
  .tile.on span { color: var(--accent-ink); }
  .el.rep::after { top: 10px; right: 10px; }
  .js .el-tiles .el { opacity: .15; }
  .js .elements.in .el-tiles .el { opacity: 1; transition: opacity .5s calc(var(--i, 0) * 80ms + 200ms), background .25s, color .25s, border-color .25s; }
  .el-panel { display: block; margin-top: 4px; }
  .el-panel[hidden] { display: none; }
  .el-card { display: flex; align-items: center; gap: 16px; padding: 12px 16px; margin-bottom: 16px; }
  .el-card-top { display: none; }
  .el-sym { font-size: 2.8rem; margin: 0; }
}

/* 03 Benefits */
.benefits { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.benefit { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 30px 28px 26px; text-decoration: none; position: relative; transition: background .35s; min-height: 230px; display: flex; flex-direction: column; }
.benefit .mono { color: var(--dim); padding-bottom: 56px; transition: color .3s; }
.benefit h3 { font-size: 1.6rem; font-weight: 300; letter-spacing: -.03em; margin-bottom: 10px; }
.benefit p { color: var(--muted); font-size: .92rem; margin: 0; }
.benefit:hover { background: var(--surface); }
.benefit:hover .mono { color: var(--accent); }
@media (max-width: 900px) { .benefits { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .benefits { grid-template-columns: 1fr; } .benefit { min-height: 0; } .benefit .mono { padding-bottom: 22px; } }

/* 04 Evidence */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 64px; }
.stat { border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 28px 24px; background: var(--bg); }
.stat b { display: flex; align-items: baseline; font-weight: 300; font-size: clamp(3.2rem, 6.5vw, 5.4rem); letter-spacing: -.05em; line-height: 1; color: var(--accent); margin-bottom: 18px; font-variant-numeric: tabular-nums; }
.stat .unit { font-size: .38em; letter-spacing: -.01em; margin-left: .1em; color: var(--text); }
.stat p { margin: 0 0 14px; font-size: .95rem; }
.stat small { color: var(--dim); font-size: .66rem; text-transform: none; }
@media (max-width: 860px) { .stats { grid-template-columns: 1fr; } }

/* Electron microscope figures (CC BY, credited) */
.sem { margin: 0 0 clamp(40px, 6vw, 64px); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--bg-2); }
.sem-frames { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1px; background: var(--line); }
.sem img { width: 100%; height: auto; display: block; filter: saturate(0) contrast(1.05); }
.sem figcaption { padding: 16px 20px; font-size: .82rem; color: var(--muted); line-height: 1.55; border-top: 1px solid var(--line); }
.sem .credit { display: block; margin-top: 6px; font-family: var(--mono); font-size: .62rem; color: var(--dim); }
.sem-toggle { margin-bottom: clamp(32px, 5vw, 56px); }
.sem-pair { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(20px, 3vw, 44px); align-items: start; }
.sem-pair .sem-toggle { margin-bottom: 0; }
.sem-note { border-left: 1px solid var(--line); padding-left: 22px; }
.sem-note .mono { color: var(--accent); font-size: .64rem; margin-bottom: 12px; }
.sem-note p { font-size: .88rem; color: var(--muted); line-height: 1.6; }
.sem-note p:last-child { margin-bottom: 0; }
@media (max-width: 860px) { .sem-pair { grid-template-columns: minmax(0, 1fr); } .sem-note { border-left: 0; border-top: 1px solid var(--line); padding: 18px 0 0; } }
.sem-toggle .sem { margin: 0; }
.sem-toggle { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.sem-toggle > summary { cursor: pointer; list-style: none; padding: 14px 18px; color: var(--accent); font-size: .68rem; display: flex; justify-content: space-between; align-items: center; }
.sem-toggle > summary::-webkit-details-marker { display: none; }
.sem-toggle > summary::after { content: '+'; font-size: 1rem; }
.sem-toggle[open] > summary::after { content: '−'; }
.sem-toggle .sem { border: 0; border-radius: 0; border-top: 1px solid var(--line); }
.sem-toggle .sem img { max-height: 360px; object-fit: cover; object-position: center; }
.study-visual { display: grid; gap: 18px; }
.study-visual .sem { margin: 0; }

/* Evidence: one block per study */
.studies { list-style: none; margin: 0; padding: 0; counter-reset: st; }
.study { border-top: 1px solid var(--line); padding: 44px 0; }
.study:last-child { border-bottom: 1px solid var(--line); }
.study-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; color: var(--muted); font-size: .66rem; margin-bottom: 20px; }
.study-q { display: grid; gap: 8px; color: var(--text); font-size: clamp(1.05rem, 1.7vw, 1.35rem); line-height: 1.35; margin: 0 0 22px; padding-left: 20px; border-left: 2px solid var(--accent); }
.study-q .mono { color: var(--accent); font-size: .64rem; }
.study-head h3 { font-size: clamp(1.4rem, 2.6vw, 2.1rem); font-weight: 300; letter-spacing: -.03em; max-width: 24em; margin-bottom: 28px; }
.study-body { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
.study-facts { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 10px; }
.study-facts li { position: relative; padding-left: 20px; font-size: .93rem; color: var(--muted); }
.study-facts li::before { content: ''; position: absolute; left: 0; top: .65em; width: 9px; height: 1px; background: var(--accent); }
.study-limit { text-transform: none; font-size: .72rem; color: var(--dim); line-height: 1.6; border-left: 1px solid var(--line-2); padding-left: 14px; margin-bottom: 16px; }
.study-src { text-transform: none; font-size: .74rem; color: var(--muted); margin-bottom: 10px; }

/* Bar charts drawn in CSS, no library */
.chart { margin: 0; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; background: var(--bg); }
.chart figcaption { color: var(--dim); font-size: .64rem; text-transform: none; margin-bottom: 20px; line-height: 1.5; }
.chart-row { display: grid; grid-template-columns: 116px 1fr; gap: 12px; align-items: center; margin-bottom: 12px; }
.chart-label { font-size: .8rem; color: var(--text); font-style: italic; }
.chart-track { display: grid; gap: 4px; padding-right: 54px; }
.chart-bar { position: relative; height: 22px; width: var(--w); min-width: 3px; background: var(--accent); border-radius: 3px; display: flex; align-items: center; transform-origin: 0 50%; }
.js .chart-bar { transform: scaleX(0); }
.js .chart.in .chart-bar { transform: none; transition: transform .9s var(--ease); transition-delay: calc(var(--d, 0) * 120ms + 150ms); }
.chart-bar b { position: absolute; left: calc(100% + 8px); font: 500 .74rem var(--mono); color: var(--text); }
.chart-bar.alt { background: var(--line-2); }
.chart-bar.alt b { color: var(--muted); }
.chart-key { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 18px; color: var(--muted); font-size: .62rem; text-transform: none; }
.chart-key span { display: inline-flex; align-items: center; gap: 7px; }
.swatch { width: 10px; height: 10px; border-radius: 3px; background: var(--accent); }
.swatch.alt { background: var(--line-2); }
@media (max-width: 860px) {
  .study-body { grid-template-columns: 1fr; }
  .chart-row { grid-template-columns: 84px 1fr; }
  .chart-track { padding-right: 46px; }
  .chart-label { font-size: .74rem; }
}

.papers { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.paper { display: grid; grid-template-columns: 260px 1fr; gap: 28px; padding: 34px 0; border-bottom: 1px solid var(--line); }
.paper-meta { display: flex; flex-direction: column; gap: 12px; color: var(--muted); font-size: .68rem; align-items: flex-start; }
.pnum { color: var(--accent); font-size: .68rem; }
.tag { text-transform: none; color: var(--accent); border: 1px solid rgba(127,224,208,.35); border-radius: 999px; padding: 4px 10px; }
.paper h3 { font-size: 1.25rem; font-weight: 400; max-width: 38em; }
.paper p { color: var(--muted); font-size: .95rem; max-width: 50em; }
.paper-links { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: .68rem; align-items: center; }
.paper-links a { color: var(--accent); text-decoration: none; display: inline-flex; gap: 5px; align-items: center; }
.paper-links a:hover { text-decoration: underline; }
.paper-links .muted { color: var(--dim); }
@media (max-width: 760px) { .paper { grid-template-columns: 1fr; gap: 14px; } .paper-meta { flex-direction: row; flex-wrap: wrap; align-items: center; } }
.note { color: var(--dim); font-size: .82rem; margin-top: 30px; max-width: 60em; }

/* 05 Products */
.products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.product { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; background: linear-gradient(180deg, var(--bg-2), var(--bg)); transition: border-color .3s, transform .4s var(--ease); min-height: 320px; }
.product:hover { border-color: var(--line-2); transform: translateY(-3px); }
.product-top { display: flex; justify-content: space-between; color: var(--dim); font-size: .64rem; margin-bottom: 56px; }
.product-line { color: var(--accent); font-size: .66rem; margin-bottom: 6px; }
.product h3 { margin-top: 4px; font-size: 2rem; font-weight: 300; letter-spacing: -.035em; margin-bottom: 16px; }
.formula { text-transform: none; font-size: .74rem; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 16px; }
.formula span { border: 1px solid var(--line-2); border-radius: 6px; padding: 3px 8px; color: var(--text); }
.formula span.hl { border-color: var(--accent); color: var(--accent); }
.formula i { color: var(--dim); font-style: normal; }
.product > .muted { font-size: .92rem; }
.actives { font-size: .86rem; color: var(--dim); line-height: 1.6; margin: 0; }
.spec { text-transform: none; font-size: .7rem; letter-spacing: .01em; color: var(--muted); border-top: 1px solid var(--line); padding-top: 12px; margin: 0; width: 100%; line-height: 1.6; }
.product-actions { margin-top: auto; padding-top: 14px; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.product details { width: 100%; border-top: 1px solid var(--line); padding-top: 12px; }
.product summary { cursor: pointer; color: var(--muted); font-size: .85rem; list-style: none; display: flex; justify-content: space-between; }
.product summary::-webkit-details-marker { display: none; }
.product summary::after { content: '+'; font-family: var(--mono); color: var(--accent); }
.product details[open] summary::after { content: '−'; }
.product details .prose { font-size: .86rem; color: var(--muted); margin-top: 12px; max-height: 320px; overflow: auto; padding-right: 6px; }
@media (max-width: 960px) { .products { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .products { grid-template-columns: 1fr; } .product { min-height: 0; } .product-top { margin-bottom: 32px; } }

/* 06 Contact */
.sec-contact { border-top: 1px solid var(--line); background: radial-gradient(ellipse 60% 50% at 85% 20%, rgba(127,224,208,.07), transparent 70%); }
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 100px); align-items: start; }
.contact .sec-head { margin-bottom: 40px; }
.pfacts { list-style: none; padding: 0; margin: 0 0 40px; display: grid; gap: 12px; }
.pfacts li { border: 1px solid var(--line); border-left: 2px solid var(--accent); border-radius: 0 var(--radius) var(--radius) 0; padding: 18px 22px; background: var(--bg-2); }
.pfacts b { display: block; font-weight: 300; font-size: clamp(1.5rem, 2.6vw, 2rem); letter-spacing: -.03em; color: var(--accent); margin-bottom: 6px; font-variant-numeric: tabular-nums; }
.pfacts span { font-size: .88rem; color: var(--muted); line-height: 1.5; }

.who { list-style: none; padding: 0; margin: 0 0 36px; border-top: 1px solid var(--line); }
.who li { display: grid; grid-template-columns: 200px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
.who b { font-weight: 500; }
.direct { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; text-transform: none; font-size: .85rem; }
.direct a { color: var(--accent); text-decoration: none; overflow-wrap: anywhere; }
.direct a:hover { text-decoration: underline; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; border: 1px solid var(--line); border-radius: 20px; padding: clamp(22px, 4vw, 36px); background: rgba(14,15,15,.8); position: sticky; top: 100px; }
.form label { display: grid; gap: 8px; font-size: .8rem; color: var(--muted); }
.form label small { color: var(--dim); }
.form .full { grid-column: 1 / -1; }
.form input, .form select, .form textarea { font: 400 1rem var(--sans); color: var(--text); background: var(--bg); border: 1px solid var(--line-2); border-radius: 10px; padding: .75em .85em; width: 100%; transition: border-color .2s; }
.form select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 55%, calc(100% - 13px) 55%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 2.2em; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--accent); }
.form textarea { resize: vertical; }
.form p { margin: 0; }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } .form { position: static; } .who li { grid-template-columns: 1fr; gap: 2px; } }
@media (max-width: 520px) { .form { grid-template-columns: 1fr; } }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 64px 0 28px; font-size: .92rem; }
.foot-top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.foot-top .brand img { height: 48px; margin-bottom: 18px; }
.foot-top p { max-width: 28em; }
.foot-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.foot-links a { color: var(--muted); text-decoration: none; overflow-wrap: anywhere; }
.foot-links a:hover { color: var(--text); }
.privacy { margin-top: 48px; border-top: 1px solid var(--line); padding-top: 18px; color: var(--muted); font-size: .85rem; }
.privacy summary { cursor: pointer; color: var(--muted); }
.privacy p { max-width: 60em; margin-top: 12px; }
.foot-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-top: 28px; color: var(--dim); font-size: .64rem; }

/* Archive pages */
.doc-sec { padding-top: clamp(64px, 9vw, 110px); }
.doc h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); margin-bottom: .6em; }
.doc-h2 { font-size: 1.5rem; margin: 56px 0 8px; font-weight: 400; }
.doc-h2 a { text-decoration: none; }
.doc-h2 a:hover { color: var(--accent); }
.doc-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.doc-list a { display: grid; gap: 4px; padding: 20px 0; border-bottom: 1px solid var(--line); text-decoration: none; transition: padding .3s var(--ease); }
.doc-list a:hover { padding-left: 10px; }
.doc-list .mono { color: var(--accent); font-size: .62rem; }
.doc-list b { font-weight: 500; font-size: 1.1rem; }
.doc-list .muted { font-size: .9rem; }
.doc .lead { font-size: 1.2rem; color: var(--text); border-left: 2px solid var(--accent); padding-left: 20px; margin: 0 0 32px; }
.points { list-style: none; padding: 0; margin: 0 0 36px; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.points li { background: var(--bg-2); padding: 16px 20px 16px 46px; position: relative; font-size: .95rem; }
.points li::before { content: ''; position: absolute; left: 20px; top: 24px; width: 10px; height: 1px; background: var(--accent); }
.sources { margin-top: 44px; border-top: 1px solid var(--line); padding-top: 20px; }
.sources h2 { color: var(--dim); font-size: .68rem; font-weight: 400; margin-bottom: 14px; }
.sources ol { margin: 0; padding-left: 1.4em; display: grid; gap: 8px; }
.sources li { color: var(--muted); font-size: .82rem; line-height: 1.55; }
.prose { color: #c9cecc; }
.prose p, .prose li { line-height: 1.75; }
.prose strong { color: var(--text); font-weight: 500; }
.prose a { color: var(--accent); }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose h2, .prose h3 { margin-top: 1.6em; font-weight: 500; font-size: 1.3rem; letter-spacing: -.01em; }
.doc-cta { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 44px; }
.next { display: grid; gap: 6px; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; text-decoration: none; transition: border-color .25s; }
.next:hover { border-color: var(--accent); }
.next .mono { color: var(--accent); font-size: .62rem; }
.next b { font-weight: 400; font-size: 1.1rem; }
@media (max-width: 600px) { .doc-cta { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .js .reveal, .js .ptable .el, .js .el-tiles .el { opacity: 1; transform: none; }
}
