/* =========================================================
   Bothwin — Industrial polymer materials
   Design system: ink / paper / amber + material swatches
   ========================================================= */

:root {
  --ink: #15181a;
  --ink-soft: #2b2f32;
  --paper: #f4f2ed;
  --surface: #fbfaf7;
  --steel: #5c6468;
  --steel-light: #8a9195;
  --line: #dad5cb;
  --amber: #b87418;
  --amber-light: #e3a548;
  --swatch-blue: #4a7684;
  --swatch-green: #37503f;
  --swatch-graphite: #2b2f32;
  --swatch-amber: #d99b2c;
  --swatch-clear: #dce3e4;

  --font-sans: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --gutter: clamp(20px, 4vw, 48px);
  --max: 1200px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
  text-decoration: none;
}

::selection {
  background: var(--amber);
  color: var(--paper);
}

.container {
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Typography ---------- */

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.35rem, 4.6vw, 3.9rem);
  font-weight: 700;
  letter-spacing: -0.028em;
}

h2 {
  font-size: clamp(1.7rem, 3vw, 2.5rem);
}

h3 {
  font-size: clamp(1.15rem, 1.6vw, 1.35rem);
  line-height: 1.25;
}

p {
  margin: 0 0 1em;
}

p:last-child {
  margin-bottom: 0;
}

.lede {
  font-size: clamp(1.02rem, 1.35vw, 1.18rem);
  color: var(--steel);
  line-height: 1.6;
  max-width: 58ch;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--amber);
  flex: none;
}

.eyebrow--plain::before {
  display: none;
}

.mono {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.01em;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  flex: none;
}

.brand-mark {
  width: 26px;
  height: 26px;
  flex: none;
}

.brand-name {
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand-sub {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  color: var(--steel);
  text-transform: uppercase;
  display: block;
  margin-top: 1px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-left: auto;
}

.nav a {
  font-size: 14.5px;
  color: var(--steel);
  padding: 6px 0;
  position: relative;
  transition: color 180ms var(--ease);
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--ink);
}

.nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--amber);
}

.header-cta {
  flex: none;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 2px;
  width: 42px;
  height: 42px;
  padding: 0;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--ink);
  position: relative;
  transition: transform 200ms var(--ease);
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle span::before {
  top: -6px;
}

.nav-toggle span::after {
  top: 6px;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  min-height: 48px;
  font-family: var(--font-sans);
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: 0.01em;
  border-radius: 2px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  cursor: pointer;
  transition: background 180ms var(--ease), color 180ms var(--ease),
    border-color 180ms var(--ease);
  white-space: nowrap;
}

.btn:hover {
  background: var(--amber);
  border-color: var(--amber);
  color: #fff;
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
}

.btn--ghost:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.btn--small {
  padding: 10px 18px;
  min-height: 40px;
  font-size: 13.5px;
}

.btn--light {
  background: var(--paper);
  border-color: var(--paper);
  color: var(--ink);
}

.btn--light:hover {
  background: var(--amber);
  border-color: var(--amber);
  color: #fff;
}

.btn--outline-light {
  background: transparent;
  border-color: rgba(244, 242, 237, 0.35);
  color: var(--paper);
}

.btn--outline-light:hover {
  background: var(--paper);
  border-color: var(--paper);
  color: var(--ink);
}

.arrow {
  font-family: var(--font-mono);
  font-size: 15px;
  line-height: 1;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  padding-bottom: 3px;
  transition: border-color 180ms var(--ease), color 180ms var(--ease);
}

.link-arrow:hover {
  border-color: var(--amber);
  color: var(--amber);
}

/* ---------- Sections ---------- */

.section {
  padding-block: clamp(64px, 8vw, 112px);
}

.section--tight {
  padding-block: clamp(48px, 5.5vw, 72px);
}

.section--ink {
  background: var(--ink);
  color: var(--paper);
}

.section--ink .lede,
.section--ink .steel {
  color: #a8ada9;
}

.section--surface {
  background: var(--surface);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: end;
  margin-bottom: clamp(40px, 5vw, 64px);
}

.section-head__aside {
  padding-bottom: 6px;
}

.rule {
  height: 1px;
  background: var(--line);
  border: 0;
  margin: 0;
}

/* ---------- Hero ---------- */

.hero {
  padding-block: clamp(48px, 7vw, 96px) clamp(56px, 8vw, 104px);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}

.hero h1 {
  margin-bottom: 24px;
}

.hero .lede {
  max-width: 46ch;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 40px;
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border-top: 1px solid var(--line);
  padding-top: 20px;
  max-width: 560px;
}

.hero-facts div {
  padding-right: 28px;
  margin-right: 28px;
  border-right: 1px solid var(--line);
}

.hero-facts div:last-child {
  border-right: 0;
  margin-right: 0;
  padding-right: 0;
}

.hero-facts dt {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 4px;
}

.hero-facts dd {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
}

/* Spec card — the material swatch hero panel */

.spec-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 2px;
  overflow: hidden;
}

.spec-card__strip {
  display: flex;
  height: 10px;
}

.spec-card__strip span {
  flex: 1;
}

.spec-card__body {
  padding: 26px 26px 22px;
}

.spec-card__label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--steel);
  display: flex;
  justify-content: space-between;
  margin-bottom: 18px;
}

.spec-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 11px 0;
  border-top: 1px solid var(--line);
}

.spec-row:first-of-type {
  border-top: 0;
}

.spec-row dt {
  font-size: 13.5px;
  color: var(--steel);
}

.spec-row dd {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--ink);
  text-align: right;
}

.spec-card__foot {
  padding: 14px 26px;
  border-top: 1px solid var(--line);
  background: var(--paper);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--steel);
}

/* ---------- Capability blocks ---------- */

.cap-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.cap {
  background: var(--paper);
  padding: clamp(24px, 3vw, 34px);
}

.cap__num {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  color: var(--amber);
  display: block;
  margin-bottom: 16px;
}

.cap h3 {
  margin-bottom: 12px;
}

.cap p {
  font-size: 15px;
  color: var(--steel);
  line-height: 1.6;
}

/* ---------- Product grid ---------- */

.product-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 20px;
}

.product-card {
  grid-column: span 3;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 2px;
  overflow: hidden;
  transition: border-color 200ms var(--ease), transform 200ms var(--ease);
}

.product-card:hover {
  border-color: var(--ink);
  transform: translateY(-2px);
}

.product-card--wide {
  grid-column: span 2;
}

.swatch {
  height: 8px;
  display: flex;
}

.swatch span {
  flex: 1;
}

.product-card__body {
  padding: 22px 24px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-card__meta {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 10px;
}

.product-card h3 {
  margin-bottom: 10px;
  font-size: 1.16rem;
}

.product-card p {
  font-size: 14.5px;
  color: var(--steel);
  line-height: 1.55;
  margin-bottom: 18px;
}

.product-card__spec {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink);
  border-top: 1px solid var(--line);
  padding-top: 12px;
  margin-top: auto;
  letter-spacing: 0.01em;
}

.product-card__link {
  margin-top: 14px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.product-card:hover .product-card__link {
  color: var(--amber);
}

/* ---------- Stat bar ---------- */

.stats {
  background: var(--ink);
  color: var(--paper);
  padding-block: clamp(40px, 5vw, 60px);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1px;
  background: rgba(244, 242, 237, 0.14);
}

.stat {
  background: var(--ink);
  padding: 0 20px;
  text-align: left;
}

.stat:first-child {
  padding-left: 0;
}

.stat__num {
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 8px;
  color: var(--paper);
}

.stat__num em {
  font-style: normal;
  color: var(--amber-light);
}

.stat__label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #9aa09c;
  line-height: 1.5;
}

.stats-note {
  margin-top: 22px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  color: #7e8580;
}

/* ---------- Applications list ---------- */

.app-list {
  border-top: 1px solid var(--line);
}

.app-row {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) minmax(0, 1.1fr) auto;
  gap: 24px;
  align-items: baseline;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  transition: background 180ms var(--ease);
}

.app-row:hover {
  background: var(--surface);
}

.app-row__idx {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--steel-light);
}

.app-row__name {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.app-row__mats {
  font-size: 14px;
  color: var(--steel);
}

.app-row__link {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--amber);
  white-space: nowrap;
}

/* ---------- Application blocks ---------- */

.app-block {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) minmax(0, 0.8fr);
  gap: clamp(16px, 3vw, 40px);
  padding: clamp(28px, 4vw, 40px) 0;
  border-bottom: 1px solid var(--line);
}

.app-block:first-of-type {
  border-top: 1px solid var(--line);
}

.app-block__idx {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--steel-light);
  padding-top: 5px;
}

.app-block h3 {
  font-size: clamp(1.2rem, 1.9vw, 1.5rem);
  margin-bottom: 12px;
}

.app-block p {
  font-size: 14.8px;
  color: var(--steel);
  line-height: 1.6;
  margin: 0;
  max-width: 52ch;
}

.app-block__aside {
  padding-top: 4px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 16px;
}

.chip {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--ink-soft);
  background: var(--surface);
  white-space: nowrap;
}

.chip--amber {
  border-color: rgba(184, 116, 24, 0.35);
  background: rgba(184, 116, 24, 0.07);
  color: #8a5610;
}

/* ---------- Factor grid (factory / quality) ---------- */

.factor-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.factor {
  background: var(--surface);
  padding: clamp(20px, 2.6vw, 30px);
}

.factor__num {
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 10px;
}

.factor__num em {
  font-style: normal;
  font-size: 0.62em;
  color: var(--amber);
  margin-left: 2px;
}

.factor__label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--steel);
  line-height: 1.5;
}

/* ---------- Gate list ---------- */

.gate {
  display: grid;
  grid-template-columns: minmax(0, 0.42fr) minmax(0, 1fr);
  gap: clamp(16px, 3vw, 40px);
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}

.gate:first-of-type {
  border-top: 1px solid var(--line);
}

.gate__name {
  font-size: 1.05rem;
  font-weight: 600;
}

.gate__name span {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 8px;
  font-weight: 400;
}

.gate p {
  font-size: 14.8px;
  color: var(--steel);
  margin: 0;
  max-width: 62ch;
}

/* ---------- CTA band ---------- */

.cta-band {
  background: var(--ink);
  color: var(--paper);
  padding-block: clamp(56px, 7vw, 88px);
}

.cta-band__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}

.cta-band h2 {
  margin-bottom: 18px;
}

.cta-band .lede {
  color: #a8ada9;
  margin-bottom: 0;
}

.cta-band__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}

/* ---------- Page header (inner pages) ---------- */

.page-head {
  padding-block: clamp(40px, 5vw, 64px) clamp(32px, 4vw, 48px);
  border-bottom: 1px solid var(--line);
}

.breadcrumb {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 22px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.breadcrumb a:hover {
  color: var(--amber);
}

.breadcrumb span {
  color: var(--steel-light);
}

.page-head h1 {
  max-width: 22ch;
  margin-bottom: 18px;
}

.page-head .lede {
  max-width: 62ch;
}

/* ---------- Spec table ---------- */

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 2px;
}

table.spec {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

table.spec thead th {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--steel);
  text-align: left;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  font-weight: 500;
  white-space: nowrap;
  background: var(--paper);
}

table.spec tbody td {
  padding: 15px 18px;
  border-bottom: 1px solid var(--line);
  font-size: 14.5px;
  vertical-align: top;
}

table.spec tbody tr:last-child td {
  border-bottom: 0;
}

table.spec tbody tr:nth-child(even) {
  background: var(--paper);
}

table.spec tbody tr:hover {
  background: #f0ede5;
}

table.spec td.spec-num {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--ink-soft);
  white-space: nowrap;
}

table.spec td strong {
  font-weight: 600;
}

.table-note {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--steel);
  letter-spacing: 0.03em;
  margin-top: 12px;
}

/* ---------- Two column content ---------- */

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 6vw, 80px);
  align-items: start;
}

.split--even {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.sticky-aside {
  position: sticky;
  top: 96px;
}

/* ---------- Numbered steps ---------- */

.steps {
  counter-reset: step;
  border-top: 1px solid var(--line);
}

.step {
  counter-increment: step;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.step::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--amber);
  padding-top: 4px;
}

.step h3 {
  margin-bottom: 8px;
  font-size: 1.05rem;
}

.step p {
  font-size: 14.5px;
  color: var(--steel);
  margin: 0;
}

/* ---------- Inquiry form ---------- */

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.field--full {
  grid-column: 1 / -1;
}

.field label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--steel);
}

.field input,
.field select,
.field textarea {
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 12px 14px;
  min-height: 46px;
  transition: border-color 160ms var(--ease), box-shadow 160ms var(--ease);
  width: 100%;
}

.field textarea {
  min-height: 120px;
  resize: vertical;
  line-height: 1.55;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--amber);
  box-shadow: 0 0 0 3px rgba(184, 116, 24, 0.15);
}

.field input:user-invalid,
.field textarea:user-invalid {
  border-color: #a33a28;
}

.form-note {
  font-size: 13px;
  color: var(--steel);
  line-height: 1.55;
}

.form-status {
  margin-top: 18px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 14px;
  border-radius: 2px;
  display: none;
}

.form-status.is-visible {
  display: block;
}

.form-status--ok {
  border-color: #37503f;
  background: #eef1ec;
}

.form-status--err {
  border-color: #a33a28;
  background: #f7eeec;
}

/* ---------- Info blocks ---------- */

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.info-block {
  background: var(--surface);
  padding: 26px;
}

.info-block__label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 10px;
}

.info-block__value {
  font-size: 15.5px;
  font-weight: 500;
  line-height: 1.45;
}

.info-block__value a {
  border-bottom: 1px solid var(--line);
}

.info-block__value a:hover {
  border-color: var(--amber);
  color: var(--amber);
}

.info-block small {
  display: block;
  font-size: 13px;
  color: var(--steel);
  margin-top: 6px;
  font-weight: 400;
}

/* ---------- Callout ---------- */

.callout {
  border-left: 2px solid var(--amber);
  padding: 4px 0 4px 20px;
  margin: 28px 0;
}

.callout p {
  font-size: 15px;
  color: var(--ink-soft);
  margin: 0;
}

.callout strong {
  font-weight: 600;
}

/* ---------- Definition list ---------- */

.dl-rows {
  border-top: 1px solid var(--line);
}

.dl-row {
  display: grid;
  grid-template-columns: minmax(0, 0.55fr) minmax(0, 1fr);
  gap: 24px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.dl-row dt {
  font-size: 14px;
  font-weight: 600;
}

.dl-row dd {
  margin: 0;
  font-size: 14.5px;
  color: var(--steel);
}

/* ---------- FAQ ---------- */

.faq {
  border-top: 1px solid var(--line);
}

.faq details {
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
}

.faq summary {
  cursor: pointer;
  font-size: 15.5px;
  font-weight: 500;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: baseline;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  font-family: var(--font-mono);
  color: var(--amber);
  font-size: 16px;
  flex: none;
}

.faq details[open] summary::after {
  content: "–";
}

.faq details p {
  font-size: 14.5px;
  color: var(--steel);
  margin: 12px 0 0;
  max-width: 72ch;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--ink);
  color: var(--paper);
  padding-block: clamp(48px, 6vw, 72px) 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 56px);
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(244, 242, 237, 0.14);
}

.footer-brand .brand-name {
  color: var(--paper);
}

.footer-brand .brand-sub {
  color: #8f958f;
}

.footer-desc {
  font-size: 13.5px;
  color: #9aa09c;
  line-height: 1.65;
  margin-top: 16px;
  max-width: 34ch;
}

.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8f958f;
  margin-bottom: 16px;
  font-weight: 500;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  font-size: 13.5px;
  color: #c4c9c4;
  transition: color 160ms var(--ease);
}

.footer-col a:hover {
  color: var(--paper);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  padding-top: 24px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.05em;
  color: #7e8580;
}

.footer-bottom a:hover {
  color: var(--paper);
}

/* ---------- Reveal animation ---------- */

.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 600ms var(--ease), transform 600ms var(--ease);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

.reveal[data-delay="1"] {
  transition-delay: 70ms;
}

.reveal[data-delay="2"] {
  transition-delay: 140ms;
}

.reveal[data-delay="3"] {
  transition-delay: 210ms;
}

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
  .hero-grid,
  .section-head,
  .cta-band__grid,
  .split,
  .split--even {
    grid-template-columns: minmax(0, 1fr);
  }

  .section-head {
    align-items: start;
  }

  .cta-band__actions {
    justify-content: flex-start;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-card,
  .product-card--wide {
    grid-column: span 1;
  }

  .stats-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
  }

  .stat {
    padding: 18px 0;
  }

  .stat:first-child {
    padding-left: 0;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sticky-aside {
    position: static;
  }

  .cap-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .info-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .app-block {
    grid-template-columns: 40px minmax(0, 1fr);
  }

  .app-block__aside {
    grid-column: 2;
  }

  .factor-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gate {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }
}

@media (max-width: 860px) {
  .nav-toggle {
    display: flex;
  }

  .nav {
    position: fixed;
    inset: 72px 0 auto 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--gutter) 24px;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 200ms var(--ease), transform 200ms var(--ease);
    max-height: calc(100vh - 72px);
    overflow-y: auto;
  }

  .nav.is-open {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }

  .nav a {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
    font-size: 16px;
  }

  .nav a[aria-current="page"]::after {
    display: none;
  }

  .nav a[aria-current="page"] {
    color: var(--amber);
  }

  .header-cta {
    display: none;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 16px;
  }

  .header-inner {
    height: 64px;
  }

  .nav {
    inset: 64px 0 auto 0;
  }

  .hero-facts {
    flex-direction: column;
    gap: 16px;
  }

  .hero-facts div {
    border-right: 0;
    padding-right: 0;
    margin-right: 0;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
  }

  .hero-facts dt {
    margin-bottom: 0;
  }

  .product-grid,
  .form-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .app-row {
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 8px 12px;
    padding: 18px 0;
  }

  .app-row__mats {
    grid-column: 2;
  }

  .app-row__link {
    grid-column: 2;
    margin-top: 4px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .dl-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }

  .table-wrap {
    border-radius: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Print ---------- */

@media print {
  .site-header,
  .site-footer,
  .cta-band,
  .nav-toggle {
    display: none;
  }

  body {
    background: #fff;
    color: #000;
  }
}

/* =========================================================
   Imagery — photo bands, banners, cards
   ========================================================= */

.page-photo {
  margin: 0;
  border: 1px solid var(--line);
  background: var(--ink);
  overflow: hidden;
}
.page-photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 21 / 9;
  object-fit: cover;
}

.product-card__media {
  margin: 0;
  border-bottom: 1px solid var(--line);
  background: var(--ink);
  overflow: hidden;
}
.product-card__media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.product-card:hover .product-card__media img {
  transform: scale(1.03);
}

/* ---------- Home banners ---------- */
.banner-wide {
  position: relative;
  display: block;
  margin-top: 36px;
  border: 1px solid var(--line);
  overflow: hidden;
  background: var(--ink);
}
.banner-wide img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 21 / 8;
  object-fit: cover;
}
.banner-wide__panel {
  position: absolute;
  left: 0;
  bottom: 0;
  max-width: 580px;
  padding: 26px 32px;
  background: rgba(21, 24, 26, 0.86);
  color: var(--paper);
}
.banner-wide__panel h2 {
  color: var(--paper);
  margin: 10px 0 8px;
  font-size: 1.55rem;
  line-height: 1.25;
}
.banner-wide__panel p {
  color: #c9c5bc;
  margin: 0 0 12px;
  font-size: 0.98rem;
}
.banner-wide__panel .product-card__link { color: var(--amber-light); }

.banner-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 18px;
}
.banner-card {
  position: relative;
  display: block;
  border: 1px solid var(--line);
  overflow: hidden;
  background: var(--ink);
}
.banner-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 7;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.banner-card:hover img { transform: scale(1.03); }
.banner-card__panel {
  position: absolute;
  inset: auto 0 0 0;
  padding: 44px 22px 18px;
  background: linear-gradient(transparent, rgba(21, 24, 26, 0.9) 55%);
  color: var(--paper);
}
.banner-card__panel h3 {
  color: var(--paper);
  margin: 4px 0 0;
  font-size: 1.15rem;
  line-height: 1.3;
}
.banner-card__panel .eyebrow { color: var(--amber-light); }

/* ---------- Article cards / insights grid ---------- */
.insights-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.article-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  background: var(--surface);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.article-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(21, 24, 26, 0.09);
}
.article-card__img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-bottom: 1px solid var(--line);
}
.article-card__body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.article-card__meta {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--steel);
}
.article-card__body h3 {
  margin: 0;
  font-size: 1.12rem;
  line-height: 1.35;
  color: var(--ink);
}
.article-card__body p {
  margin: 0;
  color: var(--steel);
  font-size: 0.94rem;
  line-height: 1.6;
}
.article-card__body .product-card__link { margin-top: auto; }

/* =========================================================
   Articles — layout, prose, TOC, FAQ
   ========================================================= */

.article-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}

.toc {
  position: sticky;
  top: 96px;
  border-left: 2px solid var(--line);
  padding-left: 18px;
  font-size: 0.88rem;
}
.toc-title {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--steel);
  margin: 0 0 12px;
}
.toc ul { list-style: none; margin: 0; padding: 0; }
.toc li { margin: 0 0 10px; }
.toc a { color: var(--steel); }
.toc a:hover { color: var(--amber); }

.prose { max-width: 720px; }
.prose > p { margin: 0 0 20px; color: var(--ink-soft); line-height: 1.75; }
.prose h2 {
  font-size: 1.5rem;
  line-height: 1.3;
  margin: 44px 0 16px;
  padding-top: 8px;
}
.prose h3 { font-size: 1.15rem; margin: 30px 0 12px; }
.prose ul, .prose ol { margin: 0 0 20px; padding-left: 22px; color: var(--ink-soft); }
.prose li { margin-bottom: 8px; line-height: 1.65; }
.prose .table-wrap { margin: 24px 0 10px; }
.prose .table-note { color: var(--steel); font-size: 0.85rem; margin: 0 0 22px; }
.prose .callout { margin: 26px 0; }
.prose figure { margin: 26px 0; }
.prose figure img { border: 1px solid var(--line); width: 100%; height: auto; }
.prose figcaption {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--steel);
  margin-top: 10px;
  letter-spacing: 0.02em;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-top: 22px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--steel);
}

.faq-wrap { max-width: 780px; }
.faq { margin: 28px 0 0; }
.faq dt {
  font-weight: 600;
  font-size: 1.05rem;
  margin: 22px 0 6px;
  padding-left: 16px;
  border-left: 3px solid var(--amber);
}
.faq dd {
  margin: 0 0 0 19px;
  color: var(--steel);
  line-height: 1.7;
}

@media (max-width: 1024px) {
  .insights-grid { grid-template-columns: 1fr 1fr; }
  .article-layout { grid-template-columns: minmax(0, 1fr); }
  .toc { position: static; margin-bottom: 8px; }
}
@media (max-width: 640px) {
  .insights-grid { grid-template-columns: 1fr; }
  .banner-grid { grid-template-columns: 1fr; }
  .banner-wide img { aspect-ratio: 16 / 10; }
  .banner-wide__panel { position: static; max-width: none; }
  .page-photo img { aspect-ratio: 16 / 10; }
}

/* =========================================================
   Private inquiry inbox
   ========================================================= */

.admin-body { background: var(--paper); }

.admin-header {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.admin-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-block: 14px;
}
.admin-back {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--steel);
}
.admin-back:hover { color: var(--amber); }

.admin-main { padding: clamp(32px, 5vw, 56px) 0 80px; }

.admin-intro {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.admin-intro h1 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); margin: 10px 0 0; }
.admin-intro .lede { max-width: 56ch; margin-top: 12px; }

.admin-counts { display: flex; gap: 10px; }
.admin-counts[hidden] { display: none; }
.admin-count {
  min-width: 88px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  background: var(--surface);
  text-align: center;
}
.admin-count span {
  display: block;
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--ink);
}
.admin-count small {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--steel);
}

.admin-gate {
  display: grid;
  gap: 16px;
  max-width: 420px;
  padding: 26px 28px;
  border: 1px solid var(--line);
  background: var(--surface);
}
.admin-gate .field { display: grid; gap: 8px; }
.admin-gate label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--steel);
}
.admin-gate input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: var(--paper);
  font: inherit;
  font-size: 1rem;
}
.admin-gate input:focus { outline: 2px solid var(--amber); outline-offset: 1px; }
.admin-gate .btn { justify-self: start; }
.admin-gate__msg { margin: 0; font-size: 0.9rem; min-height: 1.2em; color: var(--steel); }
.admin-gate__msg.is-error { color: #a3392b; }
.admin-gate__hint { margin: 0; font-size: 0.82rem; color: var(--steel-light); }

.admin-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 20px;
}
.admin-filters { display: flex; gap: 6px; flex-wrap: wrap; }
.admin-chip {
  padding: 7px 14px;
  border: 1px solid var(--line);
  background: transparent;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--steel);
  cursor: pointer;
}
.admin-chip:hover { border-color: var(--ink); color: var(--ink); }
.admin-chip.is-active { background: var(--ink); border-color: var(--ink); color: var(--paper); }

.admin-tools { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.admin-tools input[type="search"] {
  width: 240px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  font: inherit;
  font-size: 0.9rem;
}

.admin-list { display: grid; gap: 14px; }

.admin-card {
  border: 1px solid var(--line);
  border-left: 4px solid var(--line);
  background: var(--surface);
  padding: 20px 22px;
}
.admin-card--new { border-left-color: var(--amber); }
.admin-card--read { border-left-color: var(--swatch-blue); }
.admin-card--quoted { border-left-color: var(--swatch-green); }
.admin-card--archived { border-left-color: var(--line); opacity: 0.72; }

.admin-card__top {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
}
.admin-card__top h2 { font-size: 1.05rem; margin: 0; line-height: 1.35; }
.admin-card__top h2 span { font-weight: 400; color: var(--steel); }
.admin-card__meta {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  color: var(--steel);
  margin-top: 6px;
}
.admin-card__actions { display: flex; gap: 8px; align-items: center; flex: none; }
.admin-mail {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  padding: 6px 12px;
  border: 1px solid var(--ink);
  color: var(--ink);
}
.admin-mail:hover { background: var(--ink); color: var(--paper); }
.admin-card__actions select {
  padding: 6px 8px;
  border: 1px solid var(--line);
  background: var(--paper);
  font-family: var(--font-mono);
  font-size: 0.74rem;
}

.admin-card__specs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 26px;
  margin: 14px 0 0;
  padding: 12px 0 0;
  border-top: 1px dashed var(--line);
}
.admin-card__specs div { display: flex; gap: 8px; align-items: baseline; }
.admin-card__specs dt {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--steel-light);
}
.admin-card__specs dd { margin: 0; font-size: 0.9rem; }

.admin-card__msg {
  margin: 14px 0 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.65;
}

.admin-empty { color: var(--steel); font-size: 0.95rem; padding: 20px 0; }

@media (max-width: 720px) {
  .admin-card__top { flex-direction: column; }
  .admin-tools input[type="search"] { width: 100%; }
  .admin-tools { width: 100%; }
}

/* =========================================================
   Lead banner — occupies the first screen on the homepage
   ========================================================= */

.banner-lead {
  padding-top: 18px;
  padding-bottom: 0;
}
.banner-lead .banner-wide {
  margin-top: 0;
}
.banner-lead .banner-wide img {
  aspect-ratio: 2.35 / 1;
}

.banner-wide__panel .banner-wide__title {
  color: var(--paper);
  margin: 10px 0 10px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

/* Tighter header spacing above the lead banner on short screens */
@media (max-height: 760px) {
  .banner-lead .banner-wide img { aspect-ratio: 2.9 / 1; }
}

@media (max-width: 1024px) {
  .banner-lead .banner-wide img { aspect-ratio: 2 / 1; }
}
@media (max-width: 640px) {
  .banner-lead { padding-top: 12px; }
  .banner-lead .banner-wide img { aspect-ratio: 16 / 11; }
  .banner-wide__panel .banner-wide__title { font-size: 1.5rem; }
}
