/* Kelpas net — precious-metal titanium anodes product introduction */
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 100 700;
  font-display: swap;
  src: url("../fonts/ibm-plex-sans-variable.woff") format("woff");
}

@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/source-sans-3-400.woff2") format("woff2");
}

@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/source-sans-3-600.woff2") format("woff2");
}

:root {
  --ink: #121a26;
  --brass: #c19a5b;
  --slate: #3a4f63;
  --paper: #f4f1ea;
  --danger: #7a2e2e;
  --sans: "IBM Plex Sans", "Source Sans 3", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1120px;
  --line: color-mix(in srgb, var(--ink) 14%, transparent);
  --line-strong: color-mix(in srgb, var(--ink) 28%, transparent);
  --raised: color-mix(in srgb, white 42%, var(--paper));
  --band: color-mix(in srgb, var(--ink) 4%, var(--paper));
  --focus: 2px solid var(--brass);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3 {
  font-family: var(--sans);
  font-weight: 560;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
}

h1 { font-size: clamp(1.85rem, 3.4vw, 2.65rem); font-weight: 600; }
h2 { font-size: clamp(1.35rem, 2.2vw, 1.75rem); font-weight: 600; }
h3 { font-size: 1.125rem; font-weight: 560; }

p { margin: 0 0 1rem; }

a { color: var(--slate); text-underline-offset: 0.18em; }
a:hover { color: var(--ink); }
:focus { outline: none; }
:focus-visible { outline: var(--focus); outline-offset: 3px; }
::selection { background: color-mix(in srgb, var(--brass) 55%, white); color: var(--ink); }

.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 {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--ink); color: var(--paper); padding: 0.6rem 1rem; text-decoration: none;
}
.skip:focus { top: 1rem; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }

.site-header {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--paper) 92%, white);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.header-bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 4.25rem; padding-block: 0.55rem;
}

.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand img { height: 42px; width: auto; }

.site-nav ul {
  display: flex; flex-wrap: wrap; gap: 0.35rem 1.15rem;
  list-style: none; margin: 0; padding: 0; align-items: center;
}
.site-nav a {
  color: var(--ink); text-decoration: none; font-size: 0.95rem; font-weight: 500;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--slate); }
.nav-cta {
  display: inline-flex; align-items: center; padding: 0.45rem 0.9rem;
  border: 1px solid var(--ink); border-radius: 999px;
  background: var(--ink); color: var(--paper) !important;
}
.nav-cta:hover { background: var(--slate); border-color: var(--slate); color: var(--paper) !important; }

.nav-toggle {
  display: none; width: 2.6rem; height: 2.6rem; border: 1px solid var(--line-strong);
  border-radius: 0.45rem; background: var(--raised); cursor: pointer; padding: 0;
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
  display: block; width: 1.1rem; height: 2px; margin: 0 auto;
  background: var(--ink); content: ""; position: relative;
}
.nav-toggle-bars::before { top: -5px; }
.nav-toggle-bars::after { top: 3px; }

.hero {
  display: grid; grid-template-columns: 1.35fr 0.9fr; gap: 2.5rem;
  padding: 3.25rem 0 2.75rem; align-items: start;
}
.kicker {
  margin: 0 0 0.65rem; color: var(--brass); font-size: 0.82rem;
  font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
}
.lede { font-size: 1.125rem; max-width: 38rem; color: color-mix(in srgb, var(--ink) 88%, var(--slate)); }
.muted { color: var(--slate); font-size: 0.95rem; }
.note {
  margin-top: 1rem; padding: 0.85rem 1rem; border-left: 3px solid var(--brass);
  background: var(--band); font-size: 0.95rem;
}

.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.4rem; }

.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 2.7rem; padding: 0.55rem 1.15rem; border-radius: 999px;
  border: 1px solid var(--ink); background: var(--ink); color: var(--paper);
  text-decoration: none; font-weight: 560; font-size: 0.98rem;
}
.button:hover { background: var(--slate); border-color: var(--slate); color: var(--paper); }
.button.ghost { background: transparent; color: var(--ink); }
.button.ghost:hover { background: var(--band); color: var(--ink); }

.panel, .index-card, .card, .spec-table-wrap, .form-card {
  background: var(--raised);
  border: 1px solid var(--line);
  border-radius: 1rem;
}

.index-card { padding: 1.25rem 1.35rem; }
.index-card h2 { font-size: 1.05rem; margin-bottom: 0.9rem; }
.index-card ol { list-style: none; margin: 0; padding: 0; }
.index-card li {
  display: grid; grid-template-columns: 2.4rem 1fr; gap: 0.75rem;
  padding: 0.7rem 0; border-top: 1px solid var(--line); align-items: start;
}
.index-card li:first-of-type { border-top: 0; padding-top: 0; }
.index-num {
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.04em;
  color: var(--brass); padding-top: 0.2rem;
}
.index-card small { display: block; color: var(--slate); font-size: 0.85rem; margin-top: 0.15rem; }
.index-card a { font-weight: 560; text-decoration: none; color: var(--ink); }
.index-card a:hover { color: var(--slate); }

.section { padding: 2.5rem 0; }
.section.band { background: var(--band); border-block: 1px solid var(--line); }
.section-head { margin-bottom: 1.5rem; max-width: 42rem; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }

.card {
  padding: 1.2rem 1.25rem; display: flex; flex-direction: column; gap: 0.55rem;
  text-decoration: none; color: inherit; min-height: 100%;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
a.card:hover { border-color: var(--brass); transform: translateY(-1px); color: inherit; }
.card .tag {
  align-self: flex-start; font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--brass);
}
.card p { margin: 0; color: var(--slate); font-size: 0.95rem; flex: 1; }
.card .more { margin-top: 0.4rem; font-size: 0.9rem; font-weight: 560; color: var(--ink); }

.diagram {
  width: 100%; aspect-ratio: 16/10; background: var(--paper);
  border: 1px solid var(--line); border-radius: 0.85rem; overflow: hidden;
}
.diagram svg { width: 100%; height: 100%; display: block; }

.page-hero { padding: 2.6rem 0 1.6rem; }
.crumbs {
  display: flex; flex-wrap: wrap; gap: 0.4rem; list-style: none;
  margin: 0 0 1rem; padding: 0; font-size: 0.88rem; color: var(--slate);
}
.crumbs a { color: var(--slate); text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.crumbs li:not(:last-child)::after { content: "/"; margin-left: 0.4rem; color: var(--line-strong); }

.spec-table-wrap { overflow: auto; margin: 1.25rem 0; }
table.specs {
  width: 100%; border-collapse: collapse; font-size: 0.95rem; min-width: 480px;
}
table.specs th, table.specs td {
  text-align: left; padding: 0.7rem 1rem; border-bottom: 1px solid var(--line);
  vertical-align: top;
}
table.specs th {
  width: 38%; color: var(--slate); font-weight: 560;
  background: color-mix(in srgb, var(--ink) 3%, var(--raised));
}
table.specs tr:last-child th, table.specs tr:last-child td { border-bottom: 0; }

.feature-list, .app-list {
  margin: 0 0 1rem; padding-left: 1.15rem;
}
.feature-list li, .app-list li { margin: 0.35rem 0; }

.pill-row { display: flex; flex-wrap: wrap; gap: 0.45rem; margin: 0.75rem 0 0; }
.pill {
  display: inline-flex; padding: 0.28rem 0.65rem; border-radius: 999px;
  border: 1px solid var(--line-strong); font-size: 0.82rem; color: var(--slate);
  background: var(--paper);
}

.split {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 1.5rem; align-items: start;
}

.site-footer {
  margin-top: 2rem; padding: 2.2rem 0 2.6rem;
  background: var(--ink); color: color-mix(in srgb, var(--paper) 88%, white);
}
.site-footer a { color: color-mix(in srgb, var(--paper) 80%, var(--brass)); text-decoration: none; }
.site-footer a:hover { color: var(--brass); }
.footer-grid {
  display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 1.5rem;
}
.site-footer .brand img { height: 40px; }
.site-footer h2 { font-size: 0.85rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--brass); margin-bottom: 0.7rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 0.35rem 0; }
.footer-meta { margin-top: 1.6rem; padding-top: 1.1rem; border-top: 1px solid color-mix(in srgb, white 14%, transparent); font-size: 0.88rem; color: color-mix(in srgb, var(--paper) 65%, transparent); }
.slogan { font-size: 0.92rem; color: color-mix(in srgb, var(--paper) 70%, var(--brass)); margin-top: 0.75rem; }

label { display: block; font-size: 0.9rem; font-weight: 560; margin: 0 0 0.35rem; }
input, select, textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--paper);
  border: 1px solid var(--line-strong); border-radius: 0.55rem;
  padding: 0.65rem 0.75rem; margin-bottom: 0.95rem;
}
textarea { min-height: 8rem; resize: vertical; }
.form-card { padding: 1.4rem; }
.form-note { font-size: 0.9rem; color: var(--slate); margin-top: 0.5rem; }
.thanks {
  padding: 1rem 1.1rem; border-radius: 0.75rem; border: 1px solid var(--brass);
  background: color-mix(in srgb, var(--brass) 12%, var(--paper));
}

.toc-list { columns: 2; column-gap: 2rem; margin: 0; padding-left: 1.15rem; }
.toc-list li { break-inside: avoid; margin: 0.4rem 0; }

@media (max-width: 900px) {
  .hero, .split, .footer-grid { grid-template-columns: 1fr; }
  .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; }
  .toc-list { columns: 1; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: var(--paper); border-bottom: 1px solid var(--line); padding: 0.75rem 1.25rem 1.1rem;
  }
  body.nav-open .site-nav { display: block; }
  .site-nav ul { flex-direction: column; align-items: flex-start; gap: 0.85rem; }
}

@media (max-width: 560px) {
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
  .wrap { width: min(100% - 1.5rem, var(--wrap)); }
}

/* Language switcher */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  margin-left: 0.5rem;
  padding-left: 0.75rem;
  border-left: 1px solid var(--line-strong);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.lang-switch a {
  color: var(--slate);
  text-decoration: none;
  padding: 0.25rem 0.4rem;
  border-radius: 0.35rem;
}
.lang-switch a:hover { color: var(--ink); background: var(--band); }
.lang-switch a[aria-current="true"] {
  color: var(--ink);
  background: color-mix(in srgb, var(--brass) 22%, var(--paper));
}

.header-bar { flex-wrap: wrap; }
.header-tools {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Photo grids */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
  margin: 1.25rem 0 0.5rem;
}
.photo-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.photo-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.photo-card {
  margin: 0;
  background: var(--raised);
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  overflow: hidden;
}
.photo-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  background: #0a0a0a;
}
.photo-card.light img { background: #f7f7f7; object-fit: contain; padding: 0.5rem; height: 200px; }
.photo-card figcaption {
  padding: 0.55rem 0.75rem 0.7rem;
  font-size: 0.82rem;
  color: var(--slate);
  line-height: 1.35;
}
.hero-photo {
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #0a0a0a;
}
.hero-photo img { width: 100%; height: auto; max-height: 320px; object-fit: cover; }

.slogan-en-secondary {
  font-size: 0.85rem;
  opacity: 0.75;
  margin-top: 0.35rem;
}

@media (max-width: 900px) {
  .photo-grid, .photo-grid.cols-4 { grid-template-columns: 1fr 1fr; }
  .lang-switch {
    border-left: 0;
    padding-left: 0;
    margin-left: 0;
  }
  .header-tools { width: 100%; justify-content: space-between; }
}
@media (max-width: 560px) {
  .photo-grid, .photo-grid.cols-2, .photo-grid.cols-4 { grid-template-columns: 1fr; }
}
