:root {
  --ink: #14181b;
  --paper: #f7f5f0;
  --card: #ffffff;
  --dark: #111417;
  --line: #d9d4ca;
  --line-dark: #333a40;
  --muted: #565b60;
  --muted-dark: #aab0b5;
  --accent: #b8461a;
  --max: 1200px;
  --pad: clamp(16px, 4vw, 48px);
  --section: clamp(64px, 8vw, 104px);
  --sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", "SFMono-Regular", Menlo, Consolas, monospace;
}

* { 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(--sans); font-size: 17px; line-height: 1.6; }
img, video { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, figure, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
.container { width: min(100% - (var(--pad) * 2), var(--max)); margin-inline: auto; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 12px; z-index: 50; padding: 8px 12px; background: var(--card); }

/* Type */
h1, h2, h3 { font-weight: 600; letter-spacing: -.02em; line-height: 1.12; text-wrap: balance; }
h1 { font-size: clamp(34px, 4.6vw, 54px); }
h2 { font-size: clamp(27px, 3.1vw, 38px); }
h3 { font-size: 21px; line-height: 1.25; letter-spacing: -.01em; }
.eyebrow { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; font-family: var(--mono); font-size: 13px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.eyebrow::before { content: ""; flex: none; width: 26px; height: 2px; background: var(--accent); }
.lede { max-width: 620px; font-size: 19px; line-height: 1.55; color: var(--muted); }
.section-head { max-width: 760px; margin-bottom: clamp(28px, 4vw, 44px); }
.section-head p { margin-top: 14px; color: var(--muted); }
.text-link { font-weight: 500; text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.text-link:hover { color: var(--accent); }
.note { margin-top: 16px; font-size: 15px; color: var(--muted); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 30; background: var(--paper); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 16px; letter-spacing: .01em; text-decoration: none; white-space: nowrap; }
.brand svg { flex: none; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a { font-size: 15px; font-weight: 500; text-decoration: none; }
.nav a:not(.btn):hover, .nav a[aria-current="page"]:not(.btn) { color: var(--accent); }
.menu-toggle { display: none; width: 44px; height: 44px; padding: 0; background: none; border: 1px solid var(--line); border-radius: 2px; cursor: pointer; }
.menu-toggle span { display: block; width: 18px; height: 2px; margin: 4px auto; background: var(--ink); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 20px; background: var(--accent); border: 1px solid var(--accent); border-radius: 2px; color: #fff; font-weight: 600; font-size: 15px; text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--ink); border-color: var(--ink); }
.nav .btn { min-height: 40px; padding: 0 16px; color: #fff; }

/* Hero */
.hero { padding-block: clamp(48px, 7vw, 92px) clamp(40px, 5vw, 64px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.04fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { max-width: 620px; margin-bottom: 22px; }
.hero-media video, .hero-media img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; background: var(--dark); }
.hero-media--wide video, .hero-media--wide img { aspect-ratio: 16 / 9; }
.hero-media figcaption { margin-top: 10px; font-family: var(--mono); font-size: 12.5px; color: var(--muted); }
.facts { display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); margin-top: clamp(36px, 5vw, 60px); border-block: 1px solid var(--line); }
.fact { padding: 20px 24px; border-left: 1px solid var(--line); }
.fact:first-child { padding-left: 0; border-left: 0; }
.fact strong { display: block; font-size: clamp(22px, 2.4vw, 30px); font-weight: 600; letter-spacing: -.02em; line-height: 1.2; }
.fact span { display: block; margin-top: 4px; font-size: 14.5px; color: var(--muted); }

/* Sections */
.section { padding-block: var(--section); border-top: 1px solid var(--line); }
.section--dark { background: var(--dark); color: #fff; border-top: 0; }
.section--dark .eyebrow, .section--dark .section-head p, .section--dark .note { color: var(--muted-dark); }
.section--white { background: var(--card); }

/* Product cards */
.lines { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.line-card { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); text-decoration: none; }
.line-card img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; background: var(--dark); }
.line-card__body { display: flex; flex-direction: column; flex: 1; padding: 22px 22px 24px; }
.line-card h3 { margin-bottom: 14px; }
.line-card dl { display: grid; gap: 8px; margin-bottom: 18px; font-size: 15px; }
.line-card dl div { display: flex; justify-content: space-between; gap: 16px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.line-card dt { color: var(--muted); }
.line-card dd { font-weight: 500; text-align: right; }
.line-card .text-link { margin-top: auto; align-self: flex-start; }
.line-card:hover h3 { color: var(--accent); }

/* Tables */
.table-wrap { background: var(--card); border: 1px solid var(--line); }
table { width: 100%; border-collapse: collapse; font-size: 16px; }
caption { position: absolute; left: -999px; }
th, td { padding: 14px 18px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
tr:last-child td, tr:last-child th { border-bottom: 0; }
thead th { font-family: var(--mono); font-size: 12.5px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
tbody th { font-weight: 600; }
.spec th { width: 34%; font-weight: 500; color: var(--muted); }
.spec td { font-weight: 500; }

/* Two column layouts */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 64px); align-items: start; }
.split--center { align-items: center; }
.split img, .split figure > video { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; background: var(--dark); }
.split figcaption { margin-top: 10px; font-family: var(--mono); font-size: 12.5px; color: var(--muted); }

.video-tall { max-width: 420px; justify-self: center; width: 100%; }
.video-tall video { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; background: var(--dark); }
.video-tall figcaption { margin-top: 10px; font-family: var(--mono); font-size: 12.5px; color: var(--muted); }

/* Numbered steps */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); counter-reset: step; }
.step { padding: 22px 24px 26px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); counter-increment: step; }
.step::before { content: counter(step, decimal-leading-zero); display: block; margin-bottom: 14px; font-family: var(--mono); font-size: 13px; color: var(--accent); }
.step h3 { margin-bottom: 8px; font-size: 19px; }
.step p { font-size: 16px; color: var(--muted); }
.section--dark .steps, .section--dark .step { border-color: var(--line-dark); }
.section--dark .step p { color: var(--muted-dark); }
.steps--four { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* Layer stack (coating build) */
.layers { display: grid; gap: 0; border-top: 1px solid var(--line-dark); }
.layer { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 20px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line-dark); }
.layer__swatch { height: 34px; border: 1px solid var(--line-dark); }
.layer h3 { font-size: 18px; }
.layer p { margin-top: 2px; font-size: 15.5px; color: var(--muted-dark); }

/* Process gallery */
.process { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px 24px; counter-reset: step; }
.process li { counter-increment: step; }
.process img, .process video { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; margin-bottom: 14px; background: var(--line); }
.process h3 { font-size: 19px; margin-bottom: 6px; }
.process h3::before { content: counter(step) ". "; color: var(--accent); }
.process p { font-size: 16px; color: var(--muted); }

/* Factory strip on the homepage */
.floor { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.floor video { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; background: var(--line); }
.floor figcaption { margin-top: 10px; font-family: var(--mono); font-size: 12.5px; color: var(--muted); }

/* Compare */
.compare { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.compare > div { padding: 26px; background: var(--card); border: 1px solid var(--line); }
.compare h3 { margin-bottom: 12px; }
.compare p + p { margin-top: 10px; }
.compare p { color: var(--muted); font-size: 16px; }

/* Check list */
.checks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; }
.checks li { padding: 14px 0; border-bottom: 1px solid var(--line); }
.checks strong { display: block; font-weight: 600; }
.checks span { font-size: 15.5px; color: var(--muted); }

/* FAQ */
.faq { max-width: 860px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; gap: 24px; padding: 18px 0; font-weight: 600; font-size: 18px; line-height: 1.35; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font-family: var(--mono); font-weight: 400; color: var(--accent); }
.faq details[open] summary::after { content: "\2013"; }
.faq details p { padding-bottom: 20px; color: var(--muted); }

/* RFQ */
.rfq { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.rfq-contact { margin-top: 22px; font-size: 16px; color: var(--muted-dark); }
.rfq-contact a { color: #fff; }
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; padding: clamp(20px, 3vw, 32px); background: var(--card); color: var(--ink); }
.field { display: grid; gap: 6px; min-width: 0; }
.field--wide { grid-column: 1 / -1; }
.field label { font-size: 14.5px; font-weight: 500; }
.field input, .field select, .field textarea { width: 100%; min-height: 46px; padding: 10px 12px; background: var(--paper); border: 1px solid var(--line); border-radius: 2px; font-size: 16px; }
.field textarea { min-height: 120px; resize: vertical; }
.field :focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.req { color: var(--accent); }
.honeypot { position: absolute; left: -9999px; }
.form-foot { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.form-status { font-size: 15px; }
.form-status.ok { color: #1c6b3a; }
.form-status.err { color: var(--accent); }
.section--contact { background: var(--dark); color: #fff; }
.section--contact .eyebrow { color: var(--muted-dark); }
@media (min-width: 641px) {
  .stack td:nth-child(2) { white-space: nowrap; }
}
@media (min-width: 1000px) {
  .stack td:nth-child(4) { white-space: nowrap; }
}

/* About */
.prose { max-width: 720px; }
.prose p + p { margin-top: 16px; }

/* Footer */
.site-footer { padding-block: 48px 28px; background: var(--dark); border-top: 1px solid var(--line-dark); color: var(--muted-dark); font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.footer-grid .brand { color: #fff; margin-bottom: 10px; }
.footer-grid h2 { margin-bottom: 10px; font-family: var(--mono); font-size: 12.5px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--muted-dark); }
.footer-grid li { padding: 3px 0; }
.footer-grid a { color: #fff; text-decoration: none; }
.footer-grid a:hover { text-decoration: underline; }
.footer-base { margin-top: 32px; padding-top: 18px; border-top: 1px solid var(--line-dark); font-size: 14px; }

/* Quick contact */
.quick { position: fixed; right: 16px; bottom: 16px; z-index: 25; display: grid; gap: 10px; }
.quick a { display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid rgba(255, 255, 255, .28); border-radius: 50%; background: var(--ink); color: #fff; box-shadow: 0 2px 10px rgba(0, 0, 0, .25); }
.quick a:hover { background: var(--accent); }
.quick .quick__wa { background: #1f8f4e; }
body.is-typing .quick { display: none; }

/* Responsive */
@media (max-width: 1060px) {
  .menu-toggle { display: block; }
  .nav { position: absolute; top: 100%; left: 0; right: 0; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--pad) 20px; background: var(--paper); border-bottom: 1px solid var(--line); }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; font-size: 17px; border-bottom: 1px solid var(--line); }
  .nav a.btn { margin-top: 14px; padding: 0 16px; border-bottom: 0; }
}
@media (max-width: 900px) {
  .hero-grid, .split, .rfq { grid-template-columns: minmax(0, 1fr); }
  .lines { grid-template-columns: minmax(0, 1fr); }
  .steps, .steps--four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .process, .floor { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .brand { font-size: 15px; }
  .lede { font-size: 17.5px; }
  .facts { grid-template-columns: minmax(0, 1fr); }
  .fact { padding: 14px 0; border-left: 0; border-top: 1px solid var(--line); display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
  .fact:first-child { border-top: 0; }
  .fact strong { font-size: 22px; white-space: nowrap; }
  .fact span { margin-top: 0; text-align: right; }
  .steps, .steps--four, .process, .compare, .checks, .form { grid-template-columns: minmax(0, 1fr); }
  .layer { grid-template-columns: 64px minmax(0, 1fr); gap: 14px; }
  th, td { padding: 12px 14px; }
  .spec th { width: 42%; }
  .stack thead { position: absolute; left: -999px; }
  .stack, .stack tbody, .stack tr, .stack td, .stack tbody th { display: block; width: 100%; }
  .stack tr { padding: 14px; border-bottom: 1px solid var(--line); }
  .stack tr:last-child { border-bottom: 0; }
  .stack tbody th { padding: 0 0 8px; border: 0; font-size: 17px; }
  .stack td { display: flex; justify-content: space-between; gap: 16px; padding: 5px 0; border: 0; }
  .stack td::before { content: attr(data-label); flex: none; color: var(--muted); }
  .stack td > span { text-align: right; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
