/* ==========================================================================
   DMK Alloys — design system (light theme)
   Crisp datasheet-white surfaces; the heat lives in the molten ember accents.
   Signature: heat-gradient "temperature strip" details on cool metallic white.
   ========================================================================== */

:root {
  --ink-950: #0d0e0c;
  --ink-900: #161815;
  --ink-800: #22241f;
  --ink-700: #32342e;

  --ember-600: #e04e00;
  --ember-500: #f25c05;
  --ember-400: #ff7a29;
  --ember-300: #ffa14d;
  --ember-glow: rgba(255, 106, 26, 0.32);
  --gradient-ember: linear-gradient(96deg, #ff5a00 0%, #ffb300 100%);

  --steel-100: #dcdfdc;
  --steel-200: #ccd0cc;
  --steel-300: #b0b5b0;
  --steel-400: #82877f;
  --steel-500: #585c55;

  --paper: #d8dbd8;
  --white: #e9ebe8;
  --tint: #cacecb;

  --text-dark: #1b1d1a;
  --text-mid: #474a43;

  --border-light: #bdc2bd;

  --font-head: "Sora", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono: "IBM Plex Mono", "Cascadia Code", Consolas, monospace;

  --radius: 14px;
  --radius-sm: 9px;
  --shadow-card: 0 1px 2px rgba(25, 27, 24, 0.05), 0 10px 32px -12px rgba(25, 27, 24, 0.13);
  --shadow-lift: 0 2px 4px rgba(25, 27, 24, 0.06), 0 24px 48px -16px rgba(25, 27, 24, 0.2);
  --maxw: 1180px;
  --header-h: 72px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--text-dark);
  background: var(--paper);
  overflow-x: hidden;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--ember-600); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.16; color: var(--ink-900); margin: 0 0 0.55em; letter-spacing: -0.015em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.35rem); font-weight: 700; }
h2 { font-size: clamp(1.55rem, 3vw, 2.3rem); font-weight: 700; }
h3 { font-size: 1.22rem; font-weight: 600; }
h4 { font-size: 1.02rem; font-weight: 600; }
p { margin: 0 0 1.1em; }
ul, ol { padding-left: 1.3em; margin: 0 0 1.1em; }
li { margin-bottom: 0.35em; }
strong { font-weight: 600; }

/* ---------- Utilities ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 0.74rem; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--ember-600);
  margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--gradient-ember); border-radius: 2px; }
.lead { font-size: 1.13rem; color: var(--text-mid); max-width: 62ch; }
.section { padding: 84px 0; }
.section--tight { padding: 56px 0; }
.center { text-align: center; }
.center .lead, .center .eyebrow { margin-left: auto; margin-right: auto; }
.mono { font-family: var(--font-mono); }
.muted { color: var(--text-mid); }
.small { font-size: 0.88rem; }

[id] { scroll-margin-top: calc(var(--header-h) + 14px); }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--ember-500); color: #fff; padding: 10px 18px;
  border-radius: 0 0 8px 0; font-weight: 600;
}
.skip-link:focus { left: 0; }

/* ---------- Tinted sections (formerly dark) ---------- */
.section--dark,
.section--dark.section { background: var(--tint); color: var(--text-dark); }
.section--dark .lead, .section--dark .muted, .section--dark p { color: var(--text-mid); }
.section--dark h2, .section--dark h3 { color: var(--ink-900); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(214, 217, 214, 0.93);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-light);
  height: var(--header-h);
}
.brand-logo { height: 30px; width: auto; display: block; mix-blend-mode: multiply; }
.brand-logo-svg { height: 36px; width: auto; display: block; color: var(--ink-900); }
.site-header::after {
  /* signature temperature strip */
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
  background: var(--gradient-ember);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 100%; gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink-900); font-family: var(--font-head); text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand-mark { width: 38px; height: 38px; flex: none; }
.brand-name { font-size: 1.14rem; font-weight: 700; letter-spacing: 0.02em; line-height: 1.1; }
.brand-name small { display: block; font-family: var(--font-mono); font-size: 0.58rem; font-weight: 400; letter-spacing: 0.24em; text-transform: uppercase; color: var(--steel-500); margin-top: 3px; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  color: var(--text-mid); font-size: 0.9rem; font-weight: 500; padding: 9px 11px;
  border-radius: 8px; text-decoration: none; transition: color .18s, background .18s;
  white-space: nowrap;
}
.nav a:hover { color: var(--ink-900); background: var(--steel-100); }
.nav a[aria-current="page"] { color: var(--ember-600); }
.nav .nav-cta {
  margin-left: 10px; background: var(--gradient-ember); color: #1d1206; font-weight: 600;
  box-shadow: 0 4px 18px -6px var(--ember-glow);
}
.nav .nav-cta:hover { color: #1d1206; filter: brightness(1.05); background: var(--gradient-ember); }

/* Products dropdown */
.nav-item { position: relative; display: flex; align-items: center; }
.nav-item > a .caret { width: 12px; height: 12px; margin-left: 5px; transition: transform .2s; }
.drop {
  position: absolute; top: calc(100% + 6px); left: 0; min-width: 250px; z-index: 110;
  background: var(--white); border: 1px solid var(--border-light); border-radius: 12px;
  box-shadow: var(--shadow-lift); padding: 8px;
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.nav-item:hover .drop, .nav-item:focus-within .drop { opacity: 1; visibility: visible; transform: none; }
.nav-item:hover > a .caret, .nav-item:focus-within > a .caret { transform: rotate(180deg); }
.drop a { display: block; padding: 9px 12px; border-radius: 8px; font-size: 0.88rem; white-space: nowrap; }
.drop a:hover { background: var(--steel-100); }
.drop .drop-head {
  display: block; padding: 8px 12px 4px; font-family: var(--font-mono); font-size: 0.64rem;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--steel-400);
}

.nav-toggle {
  display: none; background: none; border: 1px solid var(--border-light); border-radius: 9px;
  width: 44px; height: 44px; cursor: pointer; padding: 0; align-items: center; justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; content: ""; width: 20px; height: 2px; background: var(--ink-800); border-radius: 2px;
  position: relative; transition: transform .25s, opacity .2s;
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1080px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0; z-index: 99;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: #dfe2df;
    padding: 14px 20px 26px; border-bottom: 1px solid var(--border-light);
    box-shadow: 0 24px 48px -24px rgba(41, 32, 16, 0.3);
    transform: translateY(-130%); transition: transform .3s ease;
    max-height: calc(100vh - var(--header-h)); overflow-y: auto;
  }
  .nav-open .nav { transform: translateY(0); }
  .nav a { padding: 13px 14px; font-size: 1.02rem; }
  .nav .nav-cta { margin: 10px 0 0; text-align: center; }
  .nav-item { flex-direction: column; align-items: stretch; }
  .nav-item > a .caret { display: none; }
  .drop {
    position: static; opacity: 1; visibility: visible; transform: none;
    border: 0; box-shadow: none; background: transparent; padding: 0 0 4px 16px; min-width: 0;
  }
  .drop a { font-size: 0.92rem; padding: 8px 12px; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-head); font-weight: 600; font-size: 0.96rem;
  padding: 13px 26px; border-radius: 10px; border: 0; cursor: pointer;
  text-decoration: none; transition: transform .18s, box-shadow .18s, filter .18s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--gradient-ember); color: #1d1206; box-shadow: 0 8px 26px -8px var(--ember-glow); }
.btn-primary:hover { filter: brightness(1.05); color: #1d1206; box-shadow: 0 12px 30px -8px var(--ember-glow); }
.btn-ghost { background: transparent; color: var(--ink-800); border: 1px solid var(--steel-300); }
.btn-ghost:hover { border-color: var(--ember-500); color: var(--ember-600); }
.btn-ghost-dark { background: transparent; color: var(--ink-800); border: 1px solid var(--steel-300); }
.btn-ghost-dark:hover { border-color: var(--ember-500); color: var(--ember-600); }
.btn svg { width: 16px; height: 16px; flex: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative; background:
    radial-gradient(560px 340px at 86% 20%, rgba(242, 92, 5, 0.06), transparent 62%),
    radial-gradient(600px 400px at 4% 96%, rgba(50, 54, 48, 0.12), transparent 65%),
    linear-gradient(#dfe2df, var(--paper));
  overflow: hidden;
  border-bottom: 1px solid var(--border-light);
}
.hero-grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(25, 27, 24, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(25, 27, 24, 0.06) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse at 60% 35%, #000 25%, transparent 72%);
  mask-image: radial-gradient(ellipse at 60% 35%, #000 25%, transparent 72%);
}
.hero-inner {
  position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 48px; align-items: center; padding: 92px 0 88px;
}
.hero h1 { color: var(--ink-900); margin-bottom: 20px; }
.hero h1 .grad {
  background: var(--gradient-ember); -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.hero .lead { color: var(--text-mid); font-size: 1.16rem; margin-bottom: 30px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 34px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px 26px; padding: 0; margin: 0; list-style: none; }
.hero-points li {
  display: flex; align-items: center; gap: 9px; margin: 0;
  font-size: 0.9rem; color: var(--text-mid); font-family: var(--font-mono);
}
.hero-points svg { width: 15px; height: 15px; flex: none; color: var(--ember-500); }
.hero-art { position: relative; min-width: 0; }
.hero-art svg { width: 100%; height: auto; }

.page-hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(520px 280px at 90% 8%, rgba(242, 92, 5, 0.06), transparent 62%),
    linear-gradient(#dfe2df, var(--paper));
  border-bottom: 1px solid var(--border-light);
}
.page-hero .wrap { position: relative; padding-top: 58px; padding-bottom: 58px; }
.page-hero h1 { color: var(--ink-900); max-width: 21ch; }
.page-hero .lead { color: var(--text-mid); margin-bottom: 0; }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs { font-size: 0.82rem; font-family: var(--font-mono); margin-bottom: 22px; color: var(--steel-500); }
.breadcrumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumbs li { margin: 0; display: flex; align-items: center; gap: 6px; }
.breadcrumbs li + li::before { content: "/"; color: var(--steel-400); }
.breadcrumbs a { color: var(--steel-500); }
.breadcrumbs a:hover { color: var(--ember-600); }
.breadcrumbs [aria-current] { color: var(--ember-600); }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 26px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 940px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--white); border: 1px solid var(--border-light); border-radius: var(--radius);
  padding: 30px 28px; box-shadow: var(--shadow-card);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
  display: flex; flex-direction: column;
}
a.card { color: inherit; }
a.card:hover { text-decoration: none; transform: translateY(-4px); box-shadow: var(--shadow-lift); border-color: #f5c9a8; }
.card h3 { margin-top: 16px; }
.card p { color: var(--text-mid); font-size: 0.95rem; margin-bottom: 0; }
.card .card-more { margin-top: auto; padding-top: 18px; font-weight: 600; font-size: 0.9rem; color: var(--ember-600); display: inline-flex; align-items: center; gap: 6px; }
.card-more svg { width: 15px; height: 15px; flex: none; }
.card-icon {
  width: 52px; height: 52px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(140deg, #e3ddd2, #ddceb8); border: 1px solid #cdbc9d;
}
.card-icon svg { width: 27px; height: 27px; color: var(--ember-600); }

.section--dark .card { background: var(--white); border-color: var(--border-light); box-shadow: var(--shadow-card); }
.section--dark .card h3 { color: var(--ink-900); }
.section--dark .card p { color: var(--text-mid); }
.section--dark a.card:hover { border-color: #f5c9a8; box-shadow: var(--shadow-lift); }

/* ---------- Stats band ---------- */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
@media (max-width: 860px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.stat {
  position: relative; text-align: center; padding: 28px 12px 26px; border-radius: var(--radius);
  background: var(--white); border: 1px solid var(--border-light); box-shadow: var(--shadow-card);
  overflow: hidden;
}
.stat::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--gradient-ember); }
.stat-num {
  font-family: var(--font-mono); font-size: clamp(1.9rem, 3.4vw, 2.7rem); font-weight: 600;
  background: var(--gradient-ember); -webkit-background-clip: text; background-clip: text; color: transparent;
  line-height: 1.05;
}
.stat-label { margin-top: 8px; font-size: 0.85rem; color: var(--text-mid); letter-spacing: 0.04em; }

/* ---------- Tables ---------- */
.table-scroll {
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  border: 1px solid var(--border-light); border-radius: var(--radius-sm);
  background: var(--white); box-shadow: var(--shadow-card); margin: 0 0 1.4em;
}
table.data { border-collapse: collapse; width: 100%; min-width: 560px; font-size: 0.92rem; }
table.data caption {
  text-align: left; font-family: var(--font-head); font-weight: 600; font-size: 1rem;
  padding: 16px 18px 12px; color: var(--ink-900);
}
table.data th, table.data td { padding: 11px 18px; text-align: left; border-top: 1px solid var(--border-light); }
table.data thead th {
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--steel-500); background: #dee1de; border-top: 1px solid var(--border-light);
  white-space: nowrap;
}
table.data tbody tr:nth-child(even) { background: #e2e5e2; }
table.data tbody tr:hover { background: #e6ddcd; }
table.data td.num, table.data td.mono { font-family: var(--font-mono); font-size: 0.86rem; }
table.data td:first-child { font-weight: 600; }
.table-note { font-size: 0.82rem; color: var(--text-mid); margin: -0.6em 0 1.6em; }

/* ---------- Key-fact strip on grade pages ---------- */
.fact-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 30px 0 8px; }
@media (max-width: 860px) { .fact-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.fact {
  background: var(--white); border: 1px solid var(--border-light); border-radius: var(--radius-sm);
  border-top: 3px solid var(--ember-500);
  padding: 14px 18px; box-shadow: var(--shadow-card);
}
.fact dt { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--steel-500); margin-bottom: 5px; }
.fact dd { margin: 0; font-family: var(--font-head); font-weight: 600; font-size: 1.02rem; color: var(--ink-900); }

/* ---------- Chips / tags ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 7px; padding: 6px 14px; border-radius: 999px;
  font-family: var(--font-mono); font-size: 0.76rem; letter-spacing: 0.04em;
  background: var(--white); border: 1px solid var(--steel-300); color: var(--text-mid);
  cursor: pointer; transition: all .18s;
}
.chip:hover { border-color: var(--ember-400); color: var(--ember-600); }
a.chip:hover { text-decoration: none; }
.chip.active { background: var(--ink-900); color: #ffb787; border-color: var(--ink-900); }
.tag {
  display: inline-block; padding: 3px 11px; border-radius: 999px; font-family: var(--font-mono);
  font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase;
}
.tag-nickel { background: #f3ddc8; color: #a34200; }
.tag-titanium { background: #e3e2d8; color: #5f5c44; }
.tag-steel { background: #dfe1dd; color: #4b4e48; }

/* ---------- Grade index ---------- */
.filter-bar {
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 10px;
}
.filter-bar .search-wrap { position: relative; flex: 1 1 260px; }
.filter-bar input[type="search"] {
  width: 100%; padding: 12px 16px 12px 44px; border-radius: 10px; border: 1px solid var(--steel-300);
  font: inherit; font-size: 0.95rem; background: #fff; color: var(--text-dark);
}
.filter-bar input[type="search"]:focus { outline: 2px solid var(--ember-400); outline-offset: 1px; border-color: transparent; }
.filter-bar .search-wrap svg {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  width: 18px; height: 18px; color: var(--steel-400); pointer-events: none;
}
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.grade-count { font-family: var(--font-mono); font-size: 0.8rem; color: var(--text-mid); margin: 6px 0 22px; }

.grade-card { padding: 24px; }
.grade-card .g-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.grade-card h3 { margin: 0 0 4px; font-size: 1.08rem; }
.grade-card .g-uns { font-family: var(--font-mono); font-size: 0.78rem; color: var(--text-mid); }
.grade-card .g-specs { margin: 14px 0 0; font-size: 0.83rem; color: var(--text-mid); line-height: 1.55; }
.grade-card .g-specs strong { color: var(--ink-800); font-family: var(--font-mono); font-weight: 500; font-size: 0.78rem; }

/* ---------- Two-column blocks ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 54px; align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 34px; } }
.split .art svg { width: 100%; height: auto; }

.checklist { list-style: none; padding: 0; }
.checklist li { display: flex; gap: 12px; margin-bottom: 12px; align-items: flex-start; }
.checklist svg { width: 20px; height: 20px; flex: none; margin-top: 3px; color: var(--ember-500); }

/* ---------- Process steps ---------- */
.steps { counter-reset: step; display: grid; gap: 0; position: relative; }
.step { position: relative; padding: 0 0 34px 62px; }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  position: absolute; left: 0; top: -2px; width: 42px; height: 42px; border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 0.85rem; font-weight: 600;
  background: var(--gradient-ember); color: #1d1206;
}
.step::after {
  content: ""; position: absolute; left: 20px; top: 46px; bottom: 8px; width: 2px;
  background: linear-gradient(var(--ember-glow), transparent);
}
.step:last-child::after { display: none; }
.step h3 { margin-bottom: 6px; }
.step p { color: var(--text-mid); margin-bottom: 0; max-width: 62ch; }

/* ---------- Accordion ---------- */
.accordion { border: 1px solid var(--border-light); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow-card); overflow: hidden; }
.acc-item + .acc-item { border-top: 1px solid var(--border-light); }
.acc-trigger {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  background: none; border: 0; cursor: pointer; text-align: left;
  font-family: var(--font-head); font-weight: 600; font-size: 1rem; color: var(--ink-900);
  padding: 20px 24px;
}
.acc-trigger:hover { color: var(--ember-600); }
.acc-icon { flex: none; width: 22px; height: 22px; border-radius: 6px; position: relative; background: #e0d3bf; }
.acc-icon::before, .acc-icon::after {
  content: ""; position: absolute; inset: 0; margin: auto; background: var(--ember-600); border-radius: 1px;
  transition: transform .25s;
}
.acc-icon::before { width: 10px; height: 2px; }
.acc-icon::after { width: 2px; height: 10px; }
.acc-item.open .acc-icon::after { transform: rotate(90deg); }
.acc-panel { display: none; padding: 0 24px 22px; color: var(--text-mid); }
.acc-panel p:last-child { margin-bottom: 0; }
.acc-item.open .acc-panel { display: block; }

/* ---------- CTA band (signature: molten full-bleed) ---------- */
.cta-band { position: relative; background: var(--gradient-ember); color: #fff; overflow: hidden; }
.cta-band::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(560px 300px at 12% 120%, rgba(255, 255, 255, 0.22), transparent 60%),
    radial-gradient(480px 280px at 92% -30%, rgba(122, 32, 0, 0.28), transparent 62%);
}
.cta-band .wrap { position: relative; padding-top: 74px; padding-bottom: 74px; display: grid; grid-template-columns: minmax(0, 1.4fr) auto; gap: 30px; align-items: center; }
@media (max-width: 860px) { .cta-band .wrap { grid-template-columns: 1fr; } }
.cta-band h2 { color: #fff; margin-bottom: 10px; }
.cta-band p { color: rgba(255, 248, 240, 0.92); margin: 0; max-width: 56ch; }
.cta-band .cta-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.cta-band .btn-primary {
  background: var(--ink-900); color: #fff; box-shadow: 0 10px 30px -10px rgba(20, 12, 4, 0.55);
}
.cta-band .btn-primary:hover { background: var(--ink-800); color: #fff; filter: none; }
.cta-band .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, 0.55); }
.cta-band .btn-ghost:hover { border-color: #fff; color: #fff; background: rgba(255, 255, 255, 0.12); }

/* ---------- Calculator ---------- */
.calc-shell { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 30px; align-items: start; }
@media (max-width: 940px) { .calc-shell { grid-template-columns: 1fr; } }
.calc-panel { background: var(--white); border: 1px solid var(--border-light); border-radius: var(--radius); box-shadow: var(--shadow-card); padding: 30px; }
.calc-panel h2 { font-size: 1.25rem; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: 0.88rem; margin-bottom: 7px; }
.field select, .field input[type="number"], .field input[type="text"], .field input[type="email"], .field textarea {
  width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--steel-300);
  font: inherit; font-size: 0.95rem; background: #fff; color: var(--text-dark);
}
.field select:focus, .field input:focus, .field textarea:focus { outline: 2px solid var(--ember-400); outline-offset: 1px; border-color: transparent; }
.field .hint { font-size: 0.78rem; color: var(--text-mid); margin-top: 5px; }
.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 14px; }
.shape-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }

.calc-result {
  background: var(--white); color: var(--text-dark); border: 1px solid var(--border-light);
  border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow-lift);
  position: sticky; top: calc(var(--header-h) + 20px);
  overflow: hidden;
}
.calc-result::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--gradient-ember); }
.calc-result h2 { color: var(--ink-900); font-size: 1.05rem; }
.result-num { font-family: var(--font-mono); font-size: clamp(2rem, 4vw, 2.9rem); font-weight: 600; line-height: 1.1;
  background: var(--gradient-ember); -webkit-background-clip: text; background-clip: text; color: transparent; }
.result-sub { font-family: var(--font-mono); font-size: 0.9rem; color: var(--text-mid); margin-top: 6px; }
.result-rows { margin-top: 22px; border-top: 1px solid var(--border-light); }
.result-rows div { display: flex; justify-content: space-between; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--border-light); font-size: 0.88rem; }
.result-rows dt { color: var(--text-mid); }
.result-rows dd { margin: 0; font-family: var(--font-mono); color: var(--ink-800); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 40px; align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-card { background: var(--white); border: 1px solid var(--border-light); border-radius: var(--radius); box-shadow: var(--shadow-card); padding: 32px; }
.contact-lines { list-style: none; padding: 0; margin: 0; }
.contact-lines li { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 18px; }
.contact-lines svg { width: 21px; height: 21px; flex: none; color: var(--ember-500); margin-top: 3px; }
.contact-lines .label { font-family: var(--font-mono); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--steel-500); display: block; margin-bottom: 2px; }
.form-note {
  font-size: 0.84rem; color: var(--text-mid); background: #e4dccb; border: 1px solid #cfbe9e;
  border-radius: var(--radius-sm); padding: 12px 16px; margin-top: 18px;
}

/* ---------- Footer ---------- */
.site-footer { background: var(--white); color: var(--text-mid); font-size: 0.92rem; border-top: 1px solid var(--border-light); }
.footer-main { display: grid; grid-template-columns: 1.35fr 1fr 1fr 1.2fr; gap: 38px; padding: 62px 0 44px; }
@media (max-width: 940px) { .footer-main { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-main { grid-template-columns: 1fr; } }
.site-footer h4 { color: var(--ink-900); font-size: 0.82rem; font-family: var(--font-mono); font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 18px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 10px; }
.site-footer a { color: var(--text-mid); }
.site-footer a:hover { color: var(--ember-600); }
.footer-brand p { max-width: 34ch; margin-top: 14px; font-size: 0.88rem; }
.footer-nap { font-style: normal; line-height: 1.7; }
.footer-bottom { border-top: 1px solid var(--border-light); padding: 20px 0; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; font-size: 0.8rem; }

/* ---------- 404 ---------- */
.err-hero { text-align: center; padding: 110px 0 90px; }
.err-code { font-family: var(--font-mono); font-size: clamp(4rem, 12vw, 7.5rem); font-weight: 700; line-height: 1;
  background: var(--gradient-ember); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- SVG scene animations ---------- */
@keyframes rot { to { transform: rotate(360deg); } }
@keyframes dashflow { to { stroke-dashoffset: -32; } }
@keyframes pressdown { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(9px); } }
@keyframes heatpulse { 0%, 100% { opacity: 0.35; } 50% { opacity: 1; } }
@keyframes waveslide { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(7px); } }
@keyframes fallfade { 0% { transform: translateY(-14px); opacity: 0; } 30% { opacity: 1; } 100% { transform: translateY(46px); opacity: 0; } }
@keyframes scanline { 0% { transform: translateX(0); } 100% { transform: translateX(300px); } }
@keyframes blink { 0%, 100% { opacity: 0.25; } 50% { opacity: 1; } }

.a-rotor { transform-box: fill-box; transform-origin: center; animation: rot 26s linear infinite; }
.a-spin { transform-box: fill-box; transform-origin: center; animation: rot 7s linear infinite; }
.a-spin-fast { transform-box: fill-box; transform-origin: center; animation: rot 2.2s linear infinite; }
.a-stream { stroke-dasharray: 7 9; animation: dashflow 1.1s linear infinite; }
.a-press { animation: pressdown 2.8s ease-in-out infinite; }
.a-heat { animation: heatpulse 2.6s ease-in-out infinite; }
.a-heat2 { animation: heatpulse 2.6s ease-in-out 1.3s infinite; }
.a-wave { animation: waveslide 2.4s ease-in-out infinite; }
.a-fall { animation: fallfade 2.2s linear infinite; }
.a-scan { animation: scanline 3.6s ease-in-out infinite alternate; }
.a-blink { animation: blink 1.6s ease-in-out infinite; }

/* ---------- Plant sections ---------- */
.plant-head { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 40px; align-items: center; margin-bottom: 30px; }
@media (max-width: 860px) { .plant-head { grid-template-columns: 1fr; } }
.plant-art { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-card); }
.plant-art svg { width: 100%; height: auto; display: block; }

/* ---------- Reveal animations (gated on html.js so no-JS never hides content) ---------- */
html.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
html.js .reveal.in { opacity: 1; transform: none; }
html.js .reveal-d1 { transition-delay: .08s; }
html.js .reveal-d2 { transition-delay: .16s; }
html.js .reveal-d3 { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js .reveal { opacity: 1; transform: none; transition: none; }
  .a-rotor, .a-spin, .a-spin-fast, .a-stream, .a-press, .a-heat, .a-heat2,
  .a-wave, .a-fall, .a-scan, .a-blink { animation: none; }
}

.h-table { font-size: 1.3rem; margin: 36px 0 16px; }
.h-table:first-child { margin-top: 0; }

/* ---------- Prose / article ---------- */
.prose { max-width: 76ch; }
.prose p { color: var(--text-mid); }
.section-head { margin-bottom: 34px; }
.related-strip { margin-top: 8px; }
.forms-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 30px; }
@media (max-width: 620px) { .forms-grid { grid-template-columns: 1fr; } }

/* ---------- Datasheet download gate ---------- */
.gate-overlay {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(22, 24, 21, 0.55);
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.gate-card {
  position: relative; background: var(--white); border: 1px solid var(--border-light);
  border-radius: var(--radius); box-shadow: var(--shadow-lift);
  max-width: 430px; width: 100%; padding: 30px;
}
.gate-card h3 { margin-bottom: 6px; }
.gate-lead { font-size: 0.9rem; color: var(--text-mid); margin-bottom: 18px; }
.gate-close {
  position: absolute; top: 8px; right: 12px; background: none; border: 0;
  font-size: 1.6rem; line-height: 1; padding: 6px; cursor: pointer; color: var(--steel-500);
}
.gate-close:hover { color: var(--ember-600); }
.gate-note { font-size: 0.75rem; color: var(--text-mid); margin: 12px 0 0; }
.gate-card input[aria-invalid="true"] { outline: 2px solid #c22f0e; }
@media print { .gate-overlay { display: none !important; } }

/* ---------- Print: branded compact datasheet ---------- */
.print-sheet { display: none; }

@media print {
  .site-header, .site-footer, .cta-band, .breadcrumbs, .skip-link,
  .print-btn, .btn, .related-strip, .chip-row, .filter-bar { display: none !important; }
  body, .section, .section--dark, .page-hero, .hero { background: #fff !important; color: #000 !important; }
  html.js .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .section, .section--tight { padding: 14px 0 !important; }
  .table-scroll { box-shadow: none !important; border: 1px solid #888; overflow: visible !important; }
  table.data { min-width: 0 !important; }
  a { color: inherit !important; text-decoration: none !important; }

  /* Datasheet pages: print ONLY the branded sheet */
  main:has(.print-sheet) > * { display: none !important; }
  main:has(.print-sheet) > .print-sheet { display: block !important; }
  .print-sheet { color: #000; font-size: 11px; }
  .ps-head {
    display: flex; justify-content: space-between; align-items: flex-start; gap: 20px;
    border-bottom: 2.5px solid #f25c05; padding-bottom: 10px; margin-bottom: 14px;
  }
  .print-sheet .brand-logo-svg { height: 34px; width: auto; color: #000; }
  .ps-org { font-family: var(--font-mono); font-size: 8.5px; line-height: 1.6; text-align: right; color: #333; }
  .ps-title { font-family: var(--font-head); font-weight: 700; font-size: 19px; margin: 4px 0 3px; }
  .ps-strap { font-size: 10.5px; color: #333; margin: 0 0 10px; }
  .ps-facts { display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 10px; margin: 0 0 12px; padding: 7px 10px; border: 1px solid #999; }
  .ps-facts b { font-family: var(--font-mono); font-weight: 600; margin-right: 5px; color: #a34200; }
  .print-sheet .table-scroll { margin: 0 0 10px; border: 1px solid #999; }
  .print-sheet table.data { font-size: 10px; }
  .print-sheet table.data th, .print-sheet table.data td { padding: 4.5px 9px; }
  .print-sheet table.data caption { font-size: 11px; padding: 7px 9px 4px; }
  .print-sheet table.data thead th { background: #f0f0f0; }
  .print-sheet table.data tbody tr:nth-child(even) { background: #f7f7f7; }
  .print-sheet .table-note { font-size: 8px; margin: -4px 0 10px; color: #444; }
  .ps-note { font-size: 8px; color: #333; border-top: 1px solid #999; padding-top: 8px; margin-top: 10px; line-height: 1.5; }
}

/* ---------- Misc responsive ---------- */
@media (max-width: 940px) {
  .hero-inner { grid-template-columns: 1fr; padding: 64px 0 60px; }
  .hero-art { max-width: 480px; margin: 0 auto; }
  .section { padding: 62px 0; }
}
