@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans Condensed"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/ibm-plex-sans-condensed-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans Condensed"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/ibm-plex-sans-condensed-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans Condensed"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/ibm-plex-sans-condensed-latin-700-normal.woff2") format("woff2"); }

:root {
  --ink: #171c19;
  --ink-soft: #3d4741;
  --paper: #f3efe7;
  --card: #fbfaf7;
  --line: #ddd6ca;
  --copper: #d85a2a;
  --copper-ink: #8a3014;
  --dark: #141816;
  --dark-2: #1d2420;
  --sans: "IBM Plex Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --cond: "IBM Plex Sans Condensed", "Arial Narrow", sans-serif;
  --max: 1120px;
  --header: 4.25rem;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.05rem;
  line-height: 1.55;
}
img, svg { max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--cond); font-weight: 600; letter-spacing: -0.02em; line-height: 1.05; }
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); margin: 0 0 0.6rem; }
h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); margin: 0 0 0.6rem; }
h3 { font-size: 1.45rem; margin: 0 0 0.35rem; }
p { margin: 0 0 0.8rem; }
.skip { position: absolute; left: 1rem; top: -4rem; background: white; padding: 0.5rem; }
.skip:focus { top: 0.5rem; z-index: 10; }

.topnote {
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  background: var(--dark); color: #efeae2; font-size: 0.82rem; letter-spacing: 0.02em;
  padding: 0.45rem 1.25rem;
}
.topnote p { margin: 0; }

.site-header {
  display: flex; align-items: center; gap: 1rem;
  min-height: var(--header); padding: 0.6rem 1.25rem;
  position: sticky; top: 0; z-index: 20;
  background: rgba(243, 239, 231, 0.94); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.logo { display: inline-flex; align-items: center; gap: 0.55rem; text-decoration: none; font-family: var(--cond); font-weight: 600; letter-spacing: 0.04em; font-size: 1.25rem; }
.mark { width: 0.85rem; height: 0.85rem; background: var(--ink); box-shadow: inset 0 -3px 0 var(--copper); display: inline-block; }
.site-nav { display: flex; gap: 1rem; margin-left: auto; }
.site-nav a { text-decoration: none; font-size: 0.95rem; color: var(--ink-soft); }
.site-nav a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--copper); }
.nav-toggle { display: none; margin-left: auto; background: transparent; border: 1px solid var(--line); padding: 0.4rem 0.7rem; font: inherit; }
.header-cta { margin-left: 0.5rem; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  font: 600 0.95rem/1 var(--sans); padding: 0.85rem 1.1rem; min-height: 2.8rem;
}
.btn-primary { background: var(--copper); color: white; }
.btn-primary:hover { background: #c24e22; }
.btn-dark { background: var(--dark); color: #f3efe7; }
.btn-ghost { background: transparent; color: #f3efe7; border-color: rgba(243,239,231,.45); }
.btn-line { background: transparent; border-color: var(--ink); }
.text-link { color: var(--copper-ink); font-weight: 600; }
button.btn { width: 100%; }

.hero, .page-hero, .section, .cta-panel, .quote-layout { width: min(var(--max), calc(100% - 2.5rem)); margin: 0 auto; }
.hero {
  width: 100%; max-width: none; margin: 0;
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 2rem; align-items: center;
  background: radial-gradient(1200px 400px at 80% -10%, rgba(216,90,42,.25), transparent 50%), var(--dark);
  color: #f4f0e8; padding: 3.5rem max(1.25rem, calc((100% - var(--max)) / 2)) 3rem;
}
.eyebrow, .kicker { font-family: var(--cond); letter-spacing: 0.12em; text-transform: uppercase; font-size: 0.86rem; color: var(--copper-ink); margin: 0 0 0.6rem; }
.hero .eyebrow, .hero .kicker, .band .kicker, .selector-result .kicker, .story span, .process span { color: var(--copper); }
.lede { font-size: 1.15rem; max-width: 42rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; margin: 1.2rem 0; }
.fine { color: var(--ink-soft); font-size: 0.88rem; }
.hero .fine { color: rgba(244,240,232,.72); }
.drawing { border: 1px solid rgba(239,234,226,.25); padding: 0.5rem; background: linear-gradient(180deg, rgba(255,255,255,.03), transparent); }
.machine { width: 100%; height: auto; display: block; }

.statbar {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--dark-2); color: #f4f0e8;
}
.statbar p { margin: 0; padding: 1.1rem 1.25rem; border-right: 1px solid rgba(255,255,255,.08); }
.statbar strong { display: block; font-family: var(--cond); font-size: 1.7rem; font-weight: 600; }
.statbar span { color: rgba(244,240,232,.72); font-size: 0.9rem; }

.section { padding: 3.2rem 0 0.5rem; }
.section-tight { padding-top: 1rem; }
.section-head { max-width: 44rem; margin-bottom: 1.3rem; }
.page-hero { padding: 2.6rem 0 0.4rem; }

.model-grid, .app-grid, .region-grid, .gallery-grid { display: grid; gap: 0.9rem; }
.model-grid { grid-template-columns: repeat(4, 1fr); }
.app-grid, .gallery-grid { grid-template-columns: repeat(3, 1fr); }
.region-grid { grid-template-columns: repeat(4, 1fr); }
.model-card, .app-card, .gallery-card, .region-grid a, .article-list a {
  background: var(--card); border: 1px solid var(--line); padding: 1rem 1rem 1.1rem; text-decoration: none; display: block;
}
.model-card .role, .gallery-card .kicker { color: var(--copper-ink); }
.watts { font-family: var(--cond); font-size: 3.2rem; line-height: 0.85; margin: 0 0 0.4rem; letter-spacing: -0.03em; }
.watts span { font-size: 1.2rem; margin-left: 0.15rem; }
.model-card ul, .plain { padding-left: 1.1rem; margin: 0.4rem 0 1rem; }
.model-card li { margin: 0.15rem 0; }

.band { background: var(--dark); color: #f4f0e8; margin-top: 3rem; }
.band .split, .split { width: min(var(--max), calc(100% - 2.5rem)); margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; padding: 3rem 0; align-items: start; }
.section.split-spec, .app-block { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 2rem; align-items: start; }
.band .btn-ghost { margin-top: 0.6rem; }
.steps, .process { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.8rem; }
.steps li, .process li { background: var(--card); border: 1px solid var(--line); padding: 0.9rem 1rem; }
.band .steps li { background: transparent; border-color: rgba(255,255,255,.15); }
.process { grid-template-columns: repeat(4, 1fr); }
.process span { font-family: var(--cond); color: var(--copper); font-size: 1.3rem; }

.story { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.7rem; margin-bottom: 1rem; }
.story figure { margin: 0; min-height: 9rem; background: var(--dark); color: #f4f0e8; padding: 1rem; display: flex; flex-direction: column; justify-content: space-between; }
.story span { font-family: var(--cond); font-size: 1.8rem; color: var(--copper); }

.selector { display: grid; gap: 1rem; }
.selector fieldset { border: 1px solid var(--line); margin: 0; padding: 0.8rem; background: var(--card); }
.selector legend { font-family: var(--cond); letter-spacing: 0.08em; text-transform: uppercase; padding: 0 0.3rem; }
.choice-grid { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.choice { display: inline-flex; align-items: center; gap: 0.4rem; border: 1px solid var(--line); padding: 0.4rem 0.65rem; background: white; cursor: pointer; }
.choice input { accent-color: var(--copper); }
.choice:has(input:checked) { border-color: var(--ink); background: var(--dark); color: white; }
.choice:has(input:focus-visible) { outline: 2px solid var(--copper); }
.selector-result { background: var(--dark); color: #f4f0e8; padding: 1.2rem; }
.selector-result a { color: white; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); background: var(--card); }
table.matrix { width: 100%; border-collapse: collapse; min-width: 44rem; font-size: 0.95rem; }
table.matrix-two { min-width: 0; }
table.matrix th, table.matrix td { text-align: left; vertical-align: top; padding: 0.75rem 0.8rem; border-bottom: 1px solid var(--line); }
table.matrix thead th { font-family: var(--cond); font-size: 1.15rem; font-weight: 600; background: #f7f4ee; }
table.matrix thead th span, table.matrix thead th a { display: block; font-family: var(--sans); font-size: 0.82rem; font-weight: 500; letter-spacing: 0; }
table.matrix tbody th { font-weight: 500; color: var(--ink-soft); position: sticky; left: 0; background: #fbfaf7; min-width: 9rem; }

.faq details { border-top: 1px solid var(--line); padding: 0.8rem 0; }
.faq summary { cursor: pointer; font-weight: 600; }
.filters { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 0.8rem; }
.filter { border: 1px solid var(--line); background: white; font: inherit; padding: 0.35rem 0.65rem; cursor: pointer; }
.filter.is-on { background: var(--dark); color: white; }
.joint { color: var(--ink); height: 7rem; }
.joint svg { height: 100%; width: auto; }

.prose { max-width: 44rem; }
.prose h2 { margin-top: 1.6rem; }
.article-list { display: grid; gap: 0.8rem; }
.quote-layout { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 2rem; padding: 2.6rem 0 3rem; }
.inquiry { background: var(--card); border: 1px solid var(--line); padding: 1rem; }
.tabs { display: flex; gap: 0.4rem; margin-bottom: 0.8rem; }
.tabs button { flex: 1; border: 1px solid var(--line); background: white; font: inherit; padding: 0.6rem; cursor: pointer; }
.tabs button.is-on { background: var(--dark); color: white; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 0.7rem; }
.fields label { display: grid; gap: 0.25rem; font-size: 0.88rem; font-weight: 600; }
.fields .wide { grid-column: 1 / -1; }
.fields input, .fields select, .fields textarea { font: inherit; padding: 0.55rem 0.6rem; border: 1px solid #cfc6b8; background: white; color: var(--ink); width: 100%; }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.form-error { color: #8d1d1d; font-weight: 600; }
.dealer-only { display: none; }
.inquiry.is-dealer .dealer-only { display: grid; }
.cta-panel {
  margin: 2.5rem auto 3rem; background: var(--dark); color: #f4f0e8;
  padding: 1.5rem; display: flex; justify-content: space-between; gap: 1rem; align-items: center;
}
.site-footer { background: #101411; color: #e7e1d7; padding: 2.5rem 1.25rem 5.5rem; }
.footer-grid { width: min(var(--max), 100%); margin: 0 auto; display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 1.5rem; }
.footer-grid a { display: block; color: #e7e1d7; text-decoration: none; margin: 0.2rem 0; }
.foot-label { font-family: var(--cond); letter-spacing: 0.1em; text-transform: uppercase; color: var(--copper); }
.site-footer .fine { color: rgba(231,225,215,.7); }
.mobile-bar { display: none; }

:focus-visible { outline: 2px solid var(--copper); outline-offset: 2px; }

@media (max-width: 980px) {
  .hero, .split, .section.split-spec, .app-block, .quote-layout, .footer-grid, .process, .story, .model-grid { grid-template-columns: 1fr 1fr; }
  .model-grid, .app-grid, .region-grid, .gallery-grid { grid-template-columns: 1fr 1fr; }
  .statbar { grid-template-columns: 1fr 1fr; }
  .nav-toggle { display: inline-flex; }
  .site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--paper); border-bottom: 1px solid var(--line); flex-direction: column; padding: 0.8rem 1.2rem 1rem; }
  .site-nav.is-open { display: flex; }
  .header-cta { display: none; }
  .site-header { position: sticky; }
  .mobile-bar { display: grid; grid-template-columns: 1fr 1fr; position: fixed; left: 0; right: 0; bottom: 0; background: var(--dark); z-index: 30; }
  .mobile-bar a { color: white; text-align: center; text-decoration: none; padding: 0.9rem; font-weight: 600; }
  .mobile-bar a:last-child { background: var(--copper); }
}

@media (max-width: 680px) {
  .hero, .split, .section.split-spec, .app-block, .quote-layout, .footer-grid, .process, .story, .model-grid, .app-grid, .region-grid, .gallery-grid, .fields, .statbar { grid-template-columns: 1fr; }
  .topnote { display: none; }
  h1 { font-size: 2.4rem; }
}
