@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500;600&family=Plus+Jakarta+Sans:wght@400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
  --bg: #F5F5F3;
  --surface: #FFFFFF;
  --surface-alt: #ECECE7;
  --ink: #0A0A0A;
  --ink-soft: #242422;
  --muted: #62625E;
  --line: #D4D4CE;
  --line-strong: #0A0A0A;
  --accent: #1D4ED8;
  --accent-hover: #1E40AF;
  --ok: #15803D;
  --err: #B91C1C;
  --font-display: 'Space Grotesk', system-ui, -apple-system, sans-serif;
  --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, monospace;
  --max-w: 1320px;
  --gutter: clamp(1.25rem, 3vw, 2.5rem);
  --radius: 2px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body.is-locked { overflow: hidden; }
img, picture, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.1;
  color: var(--ink);
}
p { margin: 0 0 1rem; color: var(--ink-soft); }
p:last-child { margin-bottom: 0; }

.hp-trap {
  position: absolute !important;
  left: -9999px !important;
  top: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.container { width: min(var(--max-w), calc(100% - var(--gutter) * 2)); margin-inline: auto; }
.mono { font-family: var(--font-mono); }
.index-tag { font-family: var(--font-mono); font-size: 0.75rem; color: var(--accent); letter-spacing: 0.06em; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow::before { content: ''; width: 1.25rem; height: 1px; background: var(--accent); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.4rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: background-color 0.16s ease, color 0.16s ease, border-color 0.16s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.btn-primary:hover { background: var(--accent); border-color: var(--accent); }
.btn-accent { background: var(--accent); color: var(--surface); border-color: var(--accent); }
.btn-accent:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--surface); }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-sm { padding: 0.58rem 0.95rem; font-size: 0.84rem; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }

/* Header & Mobile Drawer */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(245, 245, 243, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 72px; }
.brand-link { display: inline-flex; align-items: center; gap: 0.75rem; font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; letter-spacing: -0.02em; }
.brand-link img { width: 34px; height: 34px; object-fit: cover; border: 1px solid var(--line); }
.brand-sub { display: block; font-family: var(--font-mono); font-size: 0.65rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.nav-links { display: flex; align-items: center; gap: 1.75rem; }
.nav-links a { font-size: 0.9rem; font-weight: 500; color: var(--ink-soft); padding: 0.25rem 0; border-bottom: 1px solid transparent; }
.nav-links a:hover, .nav-links a.is-active { color: var(--ink); border-bottom-color: var(--accent); }
.nav-actions { display: flex; align-items: center; gap: 0.65rem; }
.nav-toggle { display: none; align-items: center; justify-content: center; width: 42px; height: 42px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer; }
#mobileNav { display: none; position: fixed; inset: 72px 0 0 0; z-index: 55; background: var(--bg); border-top: 1px solid var(--line); padding: 1.75rem var(--gutter); overflow-y: auto; }
#mobileNav.is-open { display: block; }
.mobile-nav-list { display: flex; flex-direction: column; border-top: 1px solid var(--line); margin-bottom: 1.5rem; }
.mobile-nav-list a { padding: 1rem 0; border-bottom: 1px solid var(--line); font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; }

/* Full-Bleed Split Masthead Hero */
.hero-split { border-bottom: 1px solid var(--line); background: var(--bg); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr); gap: clamp(2rem, 4vw, 4rem); padding: clamp(2.5rem, 5vw, 4.75rem) 0; align-items: start; }
.hero-copy { display: flex; flex-direction: column; gap: 1.3rem; }
.hero-title { font-size: clamp(2.2rem, 4.4vw, 3.8rem); line-height: 1.03; letter-spacing: -0.035em; }
.hero-title-accent { color: var(--accent); }
.hero-lead { font-size: clamp(1rem, 1.25vw, 1.12rem); color: var(--muted); max-width: 56ch; }
.hero-cta-row { display: flex; flex-wrap: wrap; gap: 0.75rem; padding-top: 0.2rem; }
.hero-meta-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); margin-top: 0.4rem; }
.hero-meta-cell { padding: 0.85rem 1rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); }
.hero-meta-k { display: block; font-family: var(--font-mono); font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin-bottom: 0.2rem; }
.hero-meta-v { font-family: var(--font-display); font-size: 0.92rem; font-weight: 600; color: var(--ink); }
.hero-media { align-self: start; border: 1px solid var(--line-strong); background: var(--surface); }
.hero-media picture { display: flex; flex: 1; width: 100%; aspect-ratio: 3 / 2; overflow: hidden; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-caption-bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.7rem 1rem; border-top: 1px solid var(--line); font-family: var(--font-mono); font-size: 0.72rem; color: var(--muted); background: var(--surface); }

/* Horizontal Factory Telemetry Band */
.telemetry-band { background: var(--ink); color: var(--surface); border-bottom: 1px solid var(--ink); }
.telemetry-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.telemetry-cell { padding: 1.6rem 1.5rem; border-right: 1px solid rgba(255, 255, 255, 0.14); }
.telemetry-cell:first-child { padding-left: 0; }
.telemetry-cell:last-child { border-right: none; padding-right: 0; }
.telemetry-val { display: block; font-family: var(--font-display); font-size: clamp(1.45rem, 2.3vw, 2.1rem); font-weight: 600; letter-spacing: -0.03em; color: var(--surface); margin-bottom: 0.25rem; }
.telemetry-lbl { font-family: var(--font-mono); font-size: 0.73rem; letter-spacing: 0.05em; text-transform: uppercase; color: rgba(245, 245, 243, 0.68); }

/* Sections */
.section { padding: clamp(3.5rem, 6vw, 5.75rem) 0; border-bottom: 1px solid var(--line); }
.section--surface { background: var(--surface); }
.section--dark { background: var(--ink); color: var(--surface); border-bottom-color: #222; }
.section--dark h2, .section--dark h3 { color: var(--surface); }
.section--dark p { color: rgba(245, 245, 243, 0.78); }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr); gap: 2rem; align-items: end; margin-bottom: clamp(2rem, 4vw, 3.2rem); padding-bottom: 1.4rem; border-bottom: 1px solid var(--line); }
.section--dark .section-head { border-bottom-color: rgba(255, 255, 255, 0.16); }
.section-title { font-size: clamp(1.75rem, 3vw, 2.6rem); margin-top: 0.55rem; }
.section-desc { color: var(--muted); font-size: 0.97rem; }

/* Lookbook Collection Cards */
.catalog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; align-items: start; }
.product-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); align-self: start; transition: border-color 0.18s ease; }
.product-card:hover { border-color: var(--ink); }
.product-media { align-self: start; width: 100%; border-bottom: 1px solid var(--line); background: var(--surface-alt); }
.product-media picture { display: flex; flex: 1; width: 100%; aspect-ratio: 4 / 3; overflow: hidden; }
.product-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s ease; }
.product-card:hover .product-media img { transform: scale(1.025); }
.product-body { padding: 1.35rem; display: flex; flex-direction: column; gap: 0.7rem; }
.product-card h3 { font-size: 1.18rem; }
.product-specs-list { list-style: none; margin: 0.25rem 0 0; padding: 0.75rem 0 0; border-top: 1px solid var(--line); display: grid; gap: 0.32rem; font-family: var(--font-mono); font-size: 0.76rem; color: var(--muted); }
.product-footer { display: flex; align-items: center; justify-content: space-between; padding-top: 0.85rem; margin-top: 0.2rem; border-top: 1px solid var(--line); }

/* Numbered Capability Matrix & Editorial Spreads */
.matrix-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.matrix-cell { padding: 1.5rem 1.35rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); display: flex; flex-direction: column; gap: 0.7rem; }
.matrix-cell h3 { font-size: 1.06rem; }
.matrix-cell p { font-size: 0.9rem; color: var(--muted); }

.editorial-spread { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(2rem, 4.5vw, 4rem); align-items: start; }
.editorial-spread--reverse .spread-media { order: 2; }
.spread-media { align-self: start; border: 1px solid var(--line); background: var(--surface); }
.spread-media picture { display: flex; flex: 1; width: 100%; aspect-ratio: 4 / 3; overflow: hidden; }
.spread-media img { width: 100%; height: 100%; object-fit: cover; }
.spread-copy { display: flex; flex-direction: column; gap: 1.05rem; }
.check-list { list-style: none; margin: 0.5rem 0 0; padding: 0; border-top: 1px solid var(--line); }
.check-list li { display: grid; grid-template-columns: 2rem minmax(0, 1fr); gap: 0.75rem; padding: 0.75rem 0; border-bottom: 1px solid var(--line); font-size: 0.94rem; }
.cert-strip { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.4rem; }
.cert-chip { font-family: var(--font-mono); font-size: 0.74rem; padding: 0.35rem 0.7rem; border: 1px solid var(--line-strong); background: var(--surface); letter-spacing: 0.04em; }

/* Interactive Zero-Price Spec Configurator */
#specConfigurator { background: var(--surface); border: 1px solid var(--line-strong); }
.cfg-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); }
.cfg-controls { padding: clamp(1.5rem, 3vw, 2.25rem); border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 1.5rem; }
.cfg-group-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 0.7rem; }
.cfg-group-title { font-family: var(--font-mono); font-size: 0.76rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.07em; color: var(--ink); }
.cfg-options { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.cfg-btn { padding: 0.6rem 0.92rem; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); font-size: 0.86rem; font-weight: 500; cursor: pointer; transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease; }
.cfg-btn:hover { border-color: var(--ink); }
.cfg-btn.is-active { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.cfg-output { padding: clamp(1.5rem, 3vw, 2.25rem); background: var(--bg); display: flex; flex-direction: column; gap: 1.2rem; }
.cfg-readout-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.cfg-readout-item { padding: 0.9rem; background: var(--surface); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cfg-readout-k { display: block; font-family: var(--font-mono); font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin-bottom: 0.25rem; }
.cfg-readout-v { font-family: var(--font-display); font-size: 1rem; font-weight: 600; color: var(--ink); }
.cfg-note-block { font-size: 0.86rem; color: var(--ink-soft); padding: 0.85rem 1rem; background: var(--surface); border: 1px solid var(--line); }
.cfg-summary-box { font-family: var(--font-mono); font-size: 0.78rem; line-height: 1.55; padding: 1rem; background: var(--ink); color: var(--surface); white-space: pre-line; }

/* Spec Tables, FAQ & Blog Prose */
.spec-table-wrap { width: 100%; overflow-x: auto; border: 1px solid var(--line); background: var(--surface); }
.spec-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.spec-table th, .spec-table td { padding: 0.9rem 1.15rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec-table th { font-family: var(--font-mono); font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.06em; background: var(--surface-alt); color: var(--ink); }
.spec-table tr:last-child td { border-bottom: none; }

.faq-list { border-top: 1px solid var(--line-strong); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary, .faq-q { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 1.2rem 0; font-family: var(--font-display); font-size: 1.06rem; font-weight: 600; cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-family: var(--font-mono); font-size: 1.15rem; color: var(--accent); }
.faq-item[open] summary::after { content: '−'; }
.faq-a { padding: 0 0 1.3rem; color: var(--muted); max-width: 72ch; }

.blog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; align-items: start; }
.blog-card { background: var(--surface); border: 1px solid var(--line); align-self: start; display: flex; flex-direction: column; }
.blog-card-media { align-self: start; border-bottom: 1px solid var(--line); }
.blog-card-media picture { display: flex; flex: 1; aspect-ratio: 3 / 2; overflow: hidden; }
.blog-card-media img { width: 100%; height: 100%; object-fit: cover; }
.blog-card-body { padding: 1.35rem; display: flex; flex-direction: column; gap: 0.65rem; }

.b2b-article-body, article.prose-article { max-width: 76ch; font-size: 1.02rem; line-height: 1.75; color: var(--ink-soft); }
.b2b-article-body h2, article h2 { font-size: 1.6rem; margin: 2.2rem 0 0.8rem; }
.b2b-article-body h3, article h3 { font-size: 1.22rem; margin: 1.7rem 0 0.6rem; }
.b2b-article-body ul, .b2b-article-body ol, article ul, article ol { margin: 0 0 1.25rem; padding-left: 1.35rem; }
.b2b-article-body li, article li { margin-bottom: 0.4rem; }
.b2b-article-body blockquote, article blockquote { margin: 1.5rem 0; padding: 1rem 1.25rem; border-left: 3px solid var(--accent); background: var(--surface); color: var(--ink); }
.b2b-article-body table, article table { display: block; width: 100%; overflow-x: auto; border-collapse: collapse; margin: 1.75rem 0; background: var(--surface); border: 1px solid var(--line); font-size: 0.9rem; }
.b2b-article-body table th, .b2b-article-body table td, article table th, article table td { padding: 0.75rem 1rem; border: 1px solid var(--line); text-align: left; white-space: nowrap; }
.b2b-article-body table th, article table th { background: var(--surface-alt); font-family: var(--font-mono); font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink); }

/* Sticky Inquiry / RFQ Section */
.rfq-grid { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(2rem, 4vw, 4rem); align-items: start; }
.rfq-aside { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 1.2rem; }
.rfq-form-card { background: var(--surface); border: 1px solid var(--line-strong); padding: clamp(1.5rem, 3vw, 2.5rem); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem; }
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field--full { grid-column: 1 / -1; }
.field label { font-family: var(--font-mono); font-size: 0.74rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-soft); }
.field input, .field select, .field textarea { width: 100%; padding: 0.78rem 0.9rem; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); font-size: 0.94rem; transition: border-color 0.16s ease, background-color 0.16s ease; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); background: var(--surface); }
.field textarea { min-height: 120px; resize: vertical; }
.form-feedback { margin-top: 0.85rem; font-size: 0.88rem; font-weight: 500; color: var(--err); min-height: 1.25em; }
.form-feedback.is-ok { color: var(--ok); }
#rfqSuccess, #waSuccess { display: none; margin-top: 1rem; padding: 1rem 1.15rem; border: 1px solid var(--ok); background: #F0FDF4; color: #14532D; font-size: 0.92rem; }
#rfqSuccess.is-visible, #waSuccess.is-visible { display: block; }
#rfqCode { font-family: var(--font-mono); font-weight: 600; }

/* Footer, WhatsApp Modal, Floating CTA & Cookie Banner */
.site-footer { background: var(--ink); color: rgba(245, 245, 243, 0.82); padding: 4rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2.5rem; padding-bottom: 2.5rem; border-bottom: 1px solid rgba(255, 255, 255, 0.14); }
.footer-col h4 { font-family: var(--font-mono); font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.08em; color: rgba(245, 245, 243, 0.55); margin-bottom: 1rem; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; font-size: 0.9rem; }
.footer-links a:hover { color: var(--surface); text-decoration: underline; }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; padding-top: 1.5rem; font-family: var(--font-mono); font-size: 0.75rem; color: rgba(245, 245, 243, 0.55); }

#waModal { display: none; position: fixed; inset: 0; z-index: 90; align-items: center; justify-content: center; padding: 1.25rem; background: rgba(10, 10, 10, 0.68); }
#waModal.is-open { display: flex; }
.modal-panel { position: relative; width: min(500px, 100%); background: var(--surface); border: 1px solid var(--ink); padding: 2rem; }
.modal-close { position: absolute; top: 1rem; right: 1rem; width: 34px; height: 34px; border: 1px solid var(--line); background: var(--bg); cursor: pointer; font-family: var(--font-mono); }
.modal-close:hover { border-color: var(--ink); }

.wa-float { position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 50; display: inline-flex; align-items: center; gap: 0.55rem; padding: 0.75rem 1.1rem; background: var(--ink); color: var(--surface); border: 1px solid rgba(255, 255, 255, 0.2); border-radius: var(--radius); font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.04em; cursor: pointer; }
.wa-float:hover { background: var(--accent); border-color: var(--accent); }

#cookieBanner { display: none; position: fixed; left: 1.25rem; bottom: 1.25rem; z-index: 70; max-width: 420px; padding: 1rem 1.15rem; background: var(--surface); border: 1px solid var(--ink); font-size: 0.84rem; }
#cookieBanner.is-visible { display: flex; flex-direction: column; gap: 0.75rem; }
.cookie-actions { display: flex; gap: 0.5rem; }

/* Responsive */
@media (max-width: 1024px) {
  .hero-grid, .section-head, .editorial-spread, .cfg-grid, .rfq-grid { grid-template-columns: 1fr; }
  .editorial-spread--reverse .spread-media { order: 0; }
  .cfg-controls { border-right: none; border-bottom: 1px solid var(--line); }
  .telemetry-grid, .matrix-grid, .catalog-grid, .blog-grid, .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .telemetry-cell { padding: 1.2rem; border-bottom: 1px solid rgba(255, 255, 255, 0.14); }
  .telemetry-cell:first-child { padding-left: 1.2rem; }
  .rfq-aside { position: static; }
}

@media (max-width: 768px) {
  .nav-links, .nav-actions .btn-outline { display: none; }
  .nav-toggle { display: inline-flex; }
  .hero-meta-grid, .catalog-grid, .blog-grid, .matrix-grid, .form-grid, .footer-grid, .telemetry-grid { grid-template-columns: 1fr; }
  .telemetry-cell { border-right: none; padding: 1.1rem 0; }
  .telemetry-cell:first-child { padding-left: 0; }
  #cookieBanner { right: 1.25rem; bottom: 4.75rem; max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
