/* ============================================================
   ZJKNIFE — Editorial Industrial Design System
   Custom knife OEM/ODM factory · B2B
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  --bg: #0E0E0E;
  --paper: #F5F1E8;
  --paper-2: #ECE6D5;
  --paper-3: #E2DBC4;
  --ink: #1A1A1A;
  --ink-2: #555555;
  --ink-3: #8A8576;
  --line-dark: #2A2A2A;
  --line: #D6CFBE;
  --line-2: #BFB7A0;
  --ember: #C8410B;
  --ember-2: #A8360A;
  --steel: #6B6B6B;
  --gold: #C8A05A;
  --ok: #2E7D32;

  --display: 'Inter Tight', 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --editorial: 'Instrument Serif', 'Times New Roman', Georgia, serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, system-ui, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  /* Back-compat alias: legacy var(--serif) references now resolve to the display sans. */
  --serif: var(--display);

  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px;
  --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px; --s-10: 128px; --s-11: 192px;

  --maxw: 1280px;
  --maxw-narrow: 880px;

  --ease: cubic-bezier(.2,.7,.2,1);
  --t-1: .18s; --t-2: .3s; --t-3: .5s;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html, body { overflow-x: clip; max-width: 100%; }
/* CSS-grid children default to min-width:auto and won't shrink below content,
   which forces horizontal overflow on mobile when grids collapse to 1 column. */
.grid > *, .grid-2 > *, .grid-3 > *, .grid-4 > *, .split > *, .tc > *, .hero-grid > *, .data-panel > * { min-width: 0; }
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }

/* ---------- Typography ---------- */
.serif, .display { font-family: var(--display); }
.mono { font-family: var(--mono); }
.italic { font-style: italic; }

h1, h2, h3, h4, h5, h6 { font-family: var(--display); font-weight: 700; letter-spacing: -0.035em; line-height: 1.05; color: var(--ink); }
h1 { font-size: clamp(2.6rem, 5.6vw, 4.6rem); }
h2 { font-size: clamp(2rem, 3.6vw, 3rem); font-weight: 700; letter-spacing: -0.03em; }
h3 { font-size: clamp(1.4rem, 2vw, 1.75rem); font-weight: 600; letter-spacing: -0.02em; }
h4 { font-size: 1.15rem; font-weight: 600; letter-spacing: -.01em; }
h5 { font-size: 1rem; font-weight: 600; letter-spacing: -.005em; }
em, .editorial-italic { font-family: var(--editorial); font-style: italic; font-weight: 400; letter-spacing: -.015em; }
p { color: var(--ink-2); }

.eyebrow {
  font-family: var(--mono);
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--ember);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: ''; width: 28px; height: 1px; background: currentColor; display: inline-block;
  flex-shrink: 0;
}

.lede {
  font-family: var(--editorial);
  font-size: clamp(1.2rem, 1.7vw, 1.55rem);
  line-height: 1.5;
  color: var(--ink);
  font-weight: 400;
  letter-spacing: -.005em;
}

/* ---------- Layout primitives ---------- */
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--s-6); }
.container-narrow { max-width: var(--maxw-narrow); margin: 0 auto; padding: 0 var(--s-6); }

.section { padding: var(--s-10) 0; }
.section-sm { padding: var(--s-8) 0; }
.section-lg { padding: var(--s-11) 0; }

.section--paper { background: var(--paper); }
.section--paper-2 { background: var(--paper-2); }
.section--dark { background: var(--bg); color: var(--paper); }
.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4 { color: var(--paper); }
.section--dark p { color: #B8B4A8; }
.section--dark .eyebrow { color: var(--gold); }

.section-head { margin-bottom: var(--s-8); max-width: 760px; }
.section-head .eyebrow { margin-bottom: var(--s-4); }
.section-head h2 { margin-bottom: var(--s-4); }
.section-head p { font-size: 1.05rem; max-width: 600px; }

.grid { display: grid; gap: var(--s-5); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-8); align-items: center; }

/* ---------- Skip link / a11y ---------- */
.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: var(--paper); padding: var(--s-3) var(--s-5); z-index: 9999;
}
.skip:focus { left: var(--s-4); top: var(--s-4); }
:focus-visible { outline: 2px solid var(--ember); outline-offset: 2px; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(245,241,232,.92);
  backdrop-filter: saturate(150%) blur(12px);
  -webkit-backdrop-filter: saturate(150%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-1) var(--ease), background var(--t-1) var(--ease);
}
.nav.is-scrolled { border-bottom-color: var(--line); background: rgba(245,241,232,.98); }
.nav-inner {
  max-width: var(--maxw); margin: 0 auto;
  padding: var(--s-4) var(--s-6);
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s-6);
}
.nav-brand {
  font-family: var(--display); font-weight: 700; font-size: 1.35rem; letter-spacing: -.03em;
  color: var(--ink); display: inline-flex; align-items: baseline; gap: 8px;
}
.nav-brand small {
  font-family: var(--mono); font-size: .62rem; letter-spacing: .22em; color: var(--ember);
  text-transform: uppercase; font-weight: 500;
  padding-left: 8px; border-left: 1px solid var(--line);
  align-self: center; padding-top: 2px; padding-bottom: 2px;
}
.nav-links { display: flex; gap: 2px; align-items: center; }
.nav-links a {
  font-size: .88rem; padding: var(--s-2) var(--s-3); color: var(--ink-2);
  font-weight: 500; transition: color var(--t-1) var(--ease);
  position: relative;
}
.nav-links a:hover, .nav-links a.is-active { color: var(--ink); }
.nav-links a.is-active::after {
  content: ''; position: absolute; left: var(--s-3); right: var(--s-3); bottom: -2px;
  height: 2px; background: var(--ember);
}
.nav-cta {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 18px; background: var(--ink); color: var(--paper);
  font-size: .85rem; font-weight: 600; letter-spacing: .01em;
  transition: background var(--t-1) var(--ease);
}
.nav-cta:hover { background: var(--ember); color: var(--paper); }
/* CTA button is dark-bg; keep its text light even when it's the current page
   (otherwise the is-active dark-text rule makes it an unreadable black box). */
.nav-links a.nav-cta.is-active { color: var(--paper); }
.nav-links a.nav-cta.is-active::after { display: none; }
.nav-toggle {
  display: none; background: none; border: none; cursor: pointer; padding: 6px;
}
.nav-toggle svg { width: 22px; height: 22px; }

/* Dropdown */
.has-sub { position: relative; }
.sub {
  position: absolute; top: 100%; left: 0; min-width: 240px;
  background: var(--paper); border: 1px solid var(--line);
  padding: var(--s-3); display: none; flex-direction: column; z-index: 50;
  box-shadow: 0 10px 32px rgba(0,0,0,.06);
}
.has-sub:hover .sub, .has-sub:focus-within .sub { display: flex; }
.sub a { padding: var(--s-3) var(--s-4); font-size: .9rem; }
.sub a:hover { background: var(--paper-2); color: var(--ember); }

/* ---------- Hero ---------- */
.hero {
  background: var(--bg);
  color: var(--paper);
  position: relative;
  overflow: hidden;
  border-bottom: 2px solid var(--ember);
}
.hero::before,
.hero::after {
  content: '';
  position: absolute; width: 24px; height: 24px; pointer-events: none;
  border-color: var(--ember);
}
.hero::before { top: 20px; left: 20px; border-top: 1px solid; border-left: 1px solid; }
.hero::after { bottom: 20px; right: 20px; border-bottom: 1px solid; border-right: 1px solid; }
.hero-fileindex {
  position: absolute; top: 24px; right: 28px; z-index: 5;
  font-family: var(--mono); font-size: .62rem; letter-spacing: .22em;
  color: var(--steel); text-transform: uppercase; text-align: right;
  line-height: 1.5;
}
.hero-fileindex strong { color: var(--paper); font-weight: 500; }
.hero-grid {
  max-width: var(--maxw); margin: 0 auto;
  padding: var(--s-10) var(--s-6) var(--s-9);
  display: grid; grid-template-columns: 1.1fr 1fr;
  gap: var(--s-9); align-items: center;
  min-height: 86vh;
}
.hero-grid > * { min-width: 0; }
.hero-eyebrow {
  color: var(--gold);
  margin-bottom: var(--s-5);
}
.hero h1 {
  color: var(--paper);
  font-size: clamp(2rem, 7vw, 5.2rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin-bottom: var(--s-6);
  overflow-wrap: break-word;
  word-break: break-word;
}
.hero h1 em {
  font-family: var(--editorial);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.015em;
  color: var(--ember);
  display: inline-block;
  padding-right: 0.05em;
}
.hero-sub {
  font-size: 1.08rem; color: #C8C4B7; max-width: 560px; margin-bottom: var(--s-7);
  line-height: 1.7; font-weight: 400;
}
.hero-cta { display: flex; gap: var(--s-3); flex-wrap: wrap; margin-bottom: var(--s-7); }
.hero-meta {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-5);
  padding-top: var(--s-6);
  border-top: 1px solid var(--line-dark);
}
.hero-meta-item {
  position: relative; padding-right: var(--s-4);
}
.hero-meta-item + .hero-meta-item::before {
  content: ''; position: absolute; left: calc(-1 * var(--s-3));
  top: 6px; bottom: 6px; width: 1px; background: var(--line-dark);
}
.hero-meta-item .num {
  font-family: var(--display); font-size: 2.4rem; font-weight: 700;
  color: var(--paper); letter-spacing: -.035em; display: block; line-height: 1;
  margin-bottom: 6px;
}
.hero-meta-item .label {
  font-family: var(--mono); font-size: .68rem; color: var(--ink-3);
  text-transform: uppercase; letter-spacing: .18em; font-weight: 500;
}
.hero-img-wrap {
  position: relative; aspect-ratio: 4/5;
  border: 1px solid var(--line-dark);
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(200,65,11,0.0), 0 30px 80px -20px rgba(0,0,0,0.6);
}
.hero-img-wrap::before {
  content: ''; position: absolute; top: 12px; left: 12px; right: 12px; bottom: 12px;
  border: 1px solid rgba(245,241,232,0.08); pointer-events: none; z-index: 2;
}
.hero-img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.hero-img-tag {
  position: absolute; bottom: var(--s-4); left: var(--s-4);
  background: rgba(14,14,14,.92); color: var(--paper);
  padding: 10px 14px; font-family: var(--mono); font-weight: 500;
  font-size: .66rem; letter-spacing: .18em; text-transform: uppercase;
  border-left: 2px solid var(--ember); z-index: 3;
}
.hero-img-coord {
  position: absolute; top: var(--s-4); right: var(--s-4); z-index: 3;
  font-family: var(--mono); font-size: .58rem; letter-spacing: .2em;
  color: rgba(245,241,232,0.65); text-transform: uppercase;
  text-align: right; line-height: 1.5;
}

/* trust-ribbon component removed — was used in legacy index, now superseded by hero-meta grid */

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: var(--s-2);
  padding: 14px 24px;
  font-family: var(--sans); font-size: .92rem; font-weight: 600;
  letter-spacing: .01em; cursor: pointer; border: 1px solid transparent;
  transition: background var(--t-1) var(--ease), color var(--t-1) var(--ease),
              border-color var(--t-1) var(--ease), transform var(--t-1) var(--ease);
  text-decoration: none;
}
.btn:hover { transform: translateY(-1px); }
.btn-lg { padding: 16px 30px; font-size: .95rem; }
.btn-sm { padding: 10px 18px; font-size: .82rem; }

.btn-primary { background: var(--ember); color: var(--paper); }
.btn-primary:hover { background: var(--ember-2); color: var(--paper); }

.btn-ink { background: var(--paper); color: var(--ink); }
.btn-ink:hover { background: #fff; color: var(--ember); }

.btn-outline { background: transparent; color: var(--paper); border-color: rgba(245,241,232,.3); }
.btn-outline:hover { border-color: var(--paper); color: var(--paper); background: rgba(255,255,255,.05); }

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

.btn-arrow::after { content: '→'; transition: transform var(--t-1) var(--ease); }
.btn-arrow:hover::after { transform: translateX(4px); }

/* ---------- Cards ---------- */
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  display: flex; flex-direction: column;
  transition: border-color var(--t-1) var(--ease);
}
.card:hover { border-color: var(--ember); }
.card-media {
  aspect-ratio: 4/3; overflow: hidden; background: var(--paper-2);
  border-bottom: 1px solid var(--line);
}
.card-media img {
  width: 100%; height: 100%; object-fit: cover;
}
.card-body { padding: var(--s-5); display: flex; flex-direction: column; gap: var(--s-3); flex: 1; }
.card-eyebrow { font-family: var(--mono); font-size: .68rem; color: var(--ember); text-transform: uppercase; letter-spacing: .15em; }
.card-title { font-family: var(--serif); font-size: 1.35rem; font-weight: 500; line-height: 1.2; }
.card-text { font-size: .92rem; color: var(--ink-2); line-height: 1.6; flex: 1; }
.card-tags { display: flex; flex-wrap: wrap; gap: var(--s-1); margin-top: var(--s-2); }
.tag {
  font-family: var(--mono); font-size: .68rem; padding: 3px 8px;
  background: var(--paper-2); color: var(--ink-2);
  letter-spacing: .08em; text-transform: uppercase;
}
.card-link {
  font-family: var(--mono); font-size: .78rem; font-weight: 600;
  color: var(--ember); letter-spacing: .08em; text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 6px; margin-top: auto;
}
.card-link::after { content: '→'; transition: transform var(--t-1) var(--ease); }
.card:hover .card-link::after { transform: translateX(4px); }

/* ---------- Catalog table (dense, spec-sheet replacement for big cards) ---------- */
.catalog-table { width: 100%; border-collapse: collapse; border: 1px solid var(--line); background: var(--paper); }
.catalog-table thead th {
  font-family: var(--mono); font-size: .68rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: .12em; color: var(--ink-3);
  text-align: left; padding: var(--s-3) var(--s-4); border-bottom: 1px solid var(--line-2);
  background: var(--paper-2);
}
.catalog-table tbody td { padding: var(--s-4); border-bottom: 1px solid var(--line); vertical-align: middle; font-size: .92rem; color: var(--ink-2); }
.catalog-table tbody tr:last-child td { border-bottom: none; }
.catalog-table tbody tr { transition: background var(--t-1) var(--ease); }
.catalog-table tbody tr:hover { background: var(--paper-2); }
.catalog-table .cat-name { font-family: var(--display); font-weight: 600; font-size: 1.02rem; color: var(--ink); letter-spacing: -0.01em; }
.catalog-table .cat-name a { color: var(--ink); }
.catalog-table .cat-name a:hover { color: var(--ember); }
.catalog-table .cat-spec { font-family: var(--mono); font-size: .8rem; color: var(--ink-2); }
.catalog-table .cat-go { font-family: var(--mono); font-size: .74rem; font-weight: 600; color: var(--ember); text-transform: uppercase; letter-spacing: .08em; white-space: nowrap; }
.catalog-table .cat-go::after { content: ' →'; }
.catalog-thumb { width: 64px; height: 48px; object-fit: cover; border: 1px solid var(--line); }

/* ---------- Data panel (real specs, no fluff) ---------- */
.data-panel {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line); background: var(--paper);
}
.data-cell { padding: var(--s-5); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.data-cell:nth-child(4n) { border-right: none; }
.data-cell .dp-label { font-family: var(--mono); font-size: .68rem; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-3); display: block; margin-bottom: var(--s-2); }
.data-cell .dp-value { font-family: var(--display); font-weight: 700; font-size: 1.5rem; line-height: 1.1; color: var(--ink); letter-spacing: -0.02em; }
.data-cell .dp-value small { font-family: var(--mono); font-size: .62rem; font-weight: 400; color: var(--steel); letter-spacing: .06em; }
.data-cell .dp-note { font-size: .82rem; color: var(--ink-2); margin-top: var(--s-2); line-height: 1.5; }

/* ---------- Spec row (key:value list, factual) ---------- */
.spec-list { border-top: 1px solid var(--line); }
.spec-row { display: grid; grid-template-columns: 200px 1fr; gap: var(--s-4); padding: var(--s-3) 0; border-bottom: 1px solid var(--line); }
.spec-row dt { font-family: var(--mono); font-size: .74rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-3); }
.spec-row dd { font-size: .94rem; color: var(--ink); }

/* ---------- Mobile contact bar (always-reachable contact) ---------- */
.mobile-contactbar { display: none; }
@media (max-width: 900px) {
  .mobile-contactbar {
    display: grid; grid-template-columns: 1fr 1fr;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 1200;
    border-top: 1px solid var(--line-dark);
  }
  .mcb-btn {
    display: flex; align-items: center; justify-content: center; gap: 6px;
    padding: 16px 6px; font-family: var(--mono); font-size: .76rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: .02em; min-height: 56px; white-space: nowrap;
  }
  .mcb-wa { background: #25D366; color: #fff; }
  .mcb-quote { background: var(--ember); color: #fff; }
  .mcb-btn svg { width: 18px; height: 18px; fill: currentColor; }
  body { padding-bottom: 56px; }
  /* Lift the toast above the fixed contact bar (both are bottom-fixed) */
  .toast { bottom: 72px; }
  /* WhatsApp FAB redundant on mobile — contact bar covers it.
     !important because the base .fab rule appears later in source order. */
  .fab { display: none !important; }
}

/* Featured / wide card */
.card-feature {
  display: grid; grid-template-columns: 1.2fr 1fr;
  gap: 0;
}
.card-feature .card-media { aspect-ratio: auto; border-bottom: none; border-right: 1px solid var(--line); }
.card-feature .card-body { padding: var(--s-7); }

/* ---------- Process strip ---------- */
.process {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line); border-left: 1px solid var(--line);
}
.process-step {
  padding: var(--s-6) var(--s-6);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  position: relative;
}
.process-step .num {
  font-family: var(--mono); font-size: .72rem; color: var(--ember);
  letter-spacing: .16em;
}
.process-step h3, .process-step h4 {
  font-family: var(--display); font-size: 1.3rem; font-weight: 700;
  letter-spacing: -0.02em; line-height: 1.15;
  margin: var(--s-3) 0 var(--s-2);
}
.process-step p { font-size: .9rem; color: var(--ink-2); line-height: 1.6; }

/* ---------- Data table ---------- */
.data-table {
  width: 100%; border-collapse: collapse;
  font-size: .9rem;
  background: var(--paper);
  border: 1px solid var(--line);
}
.data-table th {
  text-align: left; padding: var(--s-4) var(--s-5);
  font-family: var(--mono); font-size: .72rem; font-weight: 500;
  color: var(--ink); letter-spacing: .12em; text-transform: uppercase;
  border-bottom: 2px solid var(--ink); background: var(--paper-2);
}
.data-table td {
  padding: var(--s-4) var(--s-5);
  border-bottom: 1px solid var(--line);
  color: var(--ink-2);
  vertical-align: top;
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: rgba(200,160,90,.05); }
.data-table td:first-child {
  font-family: var(--serif); font-weight: 500;
  color: var(--ink); font-size: 1rem;
}
.data-table .num-col { font-family: var(--mono); }

/* ---------- Gallery & lightbox ---------- */
.gallery {
  display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--s-3);
}
.gallery-item {
  cursor: pointer; overflow: hidden;
  background: var(--paper-2); border: 1px solid var(--line);
  aspect-ratio: 4/3;
}
.gallery-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform var(--t-3) var(--ease);
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item.span-6 { grid-column: span 6; }
.gallery-item.span-4 { grid-column: span 4; }
.gallery-item.span-3 { grid-column: span 3; }
.gallery-item.span-8 { grid-column: span 8; aspect-ratio: 16/9; }

.lb {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(14,14,14,.96);
  display: none; align-items: center; justify-content: center;
  padding: var(--s-6);
}
.lb.on { display: flex; }
.lb img { max-width: 90vw; max-height: 86vh; }
.lb-x {
  position: absolute; top: var(--s-5); right: var(--s-5);
  width: 44px; height: 44px; background: rgba(255,255,255,.1);
  border: none; color: var(--paper); cursor: pointer; font-size: 1.4rem;
}
.lb-x:hover { background: var(--ember); }

/* ---------- FAQ accordion ---------- */
.faq { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%; background: none; border: none; cursor: pointer; text-align: left;
  padding: var(--s-5) 0; display: flex; align-items: center; justify-content: space-between;
  gap: var(--s-5);
  font-family: var(--serif); font-size: 1.2rem; font-weight: 500; color: var(--ink);
  transition: color var(--t-1) var(--ease);
}
.faq-q:hover { color: var(--ember); }
.faq-q .plus {
  width: 24px; height: 24px; position: relative; flex-shrink: 0;
}
.faq-q .plus::before,
.faq-q .plus::after {
  content: ''; position: absolute; background: var(--ember);
}
.faq-q .plus::before { left: 0; right: 0; top: 50%; height: 2px; transform: translateY(-1px); }
.faq-q .plus::after { top: 0; bottom: 0; left: 50%; width: 2px; transform: translateX(-1px); transition: transform var(--t-2) var(--ease); }
.faq-item.open .faq-q .plus::after { transform: translateX(-1px) rotate(90deg); }
.faq-a {
  max-height: 0; overflow: hidden;
  transition: max-height var(--t-2) var(--ease);
}
.faq-a-inner { padding: 0 0 var(--s-5); font-size: .98rem; color: var(--ink-2); line-height: 1.7; max-width: 760px; }
.faq-item.open .faq-a { max-height: 800px; }
.faq-a-inner p + p { margin-top: var(--s-3); }

/* ---------- Form ---------- */
.form {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: var(--s-7);
}
.form h3 { margin-bottom: var(--s-2); }
.form-sub { font-size: .92rem; color: var(--ink-2); margin-bottom: var(--s-6); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4); }
.form-row { display: flex; flex-direction: column; gap: 6px; }
.form-row.full { grid-column: 1 / -1; }
.form-label {
  font-family: var(--mono); font-size: .7rem; font-weight: 500;
  color: var(--ink); letter-spacing: .12em; text-transform: uppercase;
}
.form-input, .form-select, .form-textarea {
  padding: 12px 14px;
  background: #fff; border: 1px solid var(--line);
  font-size: .92rem; font-family: var(--sans); color: var(--ink);
  transition: border-color var(--t-1) var(--ease);
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none; border-color: var(--ember);
}
.form-textarea { min-height: 140px; resize: vertical; line-height: 1.55; }
.form-submit { margin-top: var(--s-5); }
.form-note { font-size: .8rem; color: var(--ink-3); margin-top: var(--s-3); font-style: italic; }

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  font-family: var(--mono); font-size: .75rem; color: var(--ink-3);
  letter-spacing: .08em; text-transform: uppercase;
  padding: var(--s-5) 0;
  display: flex; gap: 8px; align-items: center; flex-wrap: wrap;
}
.breadcrumb a { color: var(--ink-2); }
.breadcrumb a:hover { color: var(--ember); }
.breadcrumb .sep { color: var(--ink-3); }
.breadcrumb .current { color: var(--ink); }

/* ---------- Page hero (inner) ---------- */
.page-hero {
  background: var(--paper-2);
  border-bottom: 1px solid var(--line);
  padding: var(--s-8) 0 var(--s-9);
}
.page-hero h1 { margin: var(--s-3) 0 var(--s-4); }
.page-hero p { font-size: 1.1rem; max-width: 640px; color: var(--ink-2); }

/* ---------- Article ---------- */
.article {
  background: var(--paper); padding: var(--s-10) 0;
}
.article-wrap { max-width: 760px; margin: 0 auto; padding: 0 var(--s-6); }
.article-meta {
  font-family: var(--mono); font-size: .75rem; color: var(--ink-3);
  letter-spacing: .1em; text-transform: uppercase;
  display: flex; gap: var(--s-3); align-items: center; margin-bottom: var(--s-4);
}
.article-meta .dot { width: 4px; height: 4px; background: var(--ember); }
.article h1 {
  font-size: clamp(2rem, 3.6vw, 3.2rem);
  margin-bottom: var(--s-5);
  letter-spacing: -.02em;
}
.article .lede {
  margin-bottom: var(--s-7);
  padding-bottom: var(--s-6);
  border-bottom: 1px solid var(--line);
}
.article h2 {
  font-family: var(--serif); font-size: 1.7rem; font-weight: 500;
  margin: var(--s-8) 0 var(--s-4);
  letter-spacing: -.01em;
}
.article h3 {
  font-family: var(--serif); font-size: 1.3rem; font-weight: 500;
  margin: var(--s-6) 0 var(--s-3);
}
.article p {
  font-size: 1.05rem; line-height: 1.75; color: var(--ink); margin-bottom: var(--s-4);
}
.article ul, .article ol {
  margin: var(--s-4) 0 var(--s-5) var(--s-5); color: var(--ink); font-size: 1.02rem; line-height: 1.7;
}
.article li { margin-bottom: var(--s-2); }
.article a {
  color: var(--ember); text-decoration: underline; text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.article a:hover { color: var(--ember-2); }
.article blockquote {
  border-left: 3px solid var(--ember);
  padding: var(--s-3) var(--s-5);
  margin: var(--s-6) 0;
  font-family: var(--editorial); font-style: italic; font-size: 1.3rem;
  color: var(--ink); line-height: 1.5;
}
.article table {
  width: 100%; border-collapse: collapse; margin: var(--s-5) 0;
  font-size: .92rem;
}
.article table th, .article table td {
  padding: var(--s-3) var(--s-4); border: 1px solid var(--line); text-align: left;
}
.article table th { background: var(--paper-2); font-family: var(--mono); font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; }
.article-toc {
  background: var(--paper-2);
  border-left: 3px solid var(--ember);
  padding: var(--s-5) var(--s-6);
  margin: var(--s-6) 0 var(--s-7);
}
.article-toc .toc-title {
  font-family: var(--mono); font-size: .78rem; font-weight: 600; color: var(--ink);
  letter-spacing: .15em; text-transform: uppercase; margin: 0 0 var(--s-3);
}
.article-toc ol {
  margin: 0 0 0 var(--s-4); padding: 0;
  font-size: .98rem; line-height: 1.7; color: var(--ink-2);
}
.article-toc ol li { margin-bottom: var(--s-1); }
.article-toc ol a {
  color: var(--ink-2); text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color var(--t-1) var(--ease), border-color var(--t-1) var(--ease);
}
.article-toc ol a:hover { color: var(--ember); border-bottom-color: var(--ember); }

.article-takeaways {
  background: var(--paper-2);
  border-left: 3px solid var(--gold);
  padding: var(--s-5) var(--s-6);
  margin: var(--s-7) 0;
}
.article-takeaways h3 {
  font-family: var(--mono); font-size: .8rem; font-weight: 600; color: var(--ink);
  letter-spacing: .15em; text-transform: uppercase; margin-bottom: var(--s-3);
}
.article-takeaways ul { margin: 0 0 0 var(--s-4); font-size: 1rem; line-height: 1.65; color: var(--ink); }
.article-takeaways ul li { margin-bottom: var(--s-1); }

.article-cta {
  margin-top: var(--s-8); padding: var(--s-6) var(--s-7);
  background: var(--ink); color: var(--paper);
  border-radius: 2px;
}
.article-cta h3 { color: var(--paper); font-family: var(--display); margin-bottom: var(--s-3); }
.article-cta p { color: rgba(245,241,232,0.78); margin-bottom: var(--s-4); }
.article-lede {
  font-family: var(--editorial); font-style: italic; font-size: 1.4rem; line-height: 1.5;
  color: var(--ink-2); margin: var(--s-4) 0 var(--s-3); max-width: 38em;
}

.article-key {
  background: var(--paper-2);
  border-left: 3px solid var(--gold);
  padding: var(--s-5) var(--s-6);
  margin: var(--s-7) 0;
}
.article-key h3 {
  font-family: var(--mono); font-size: .8rem; font-weight: 600; color: var(--ink);
  letter-spacing: .15em; text-transform: uppercase; margin-bottom: var(--s-3);
}
.article-key ul { margin: 0 0 0 var(--s-4); }
.article-tags {
  margin-top: var(--s-8); padding-top: var(--s-5); border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: var(--s-2);
}

/* ---------- CTA strip ---------- */
.cta-strip {
  background: var(--ink); color: var(--paper);
  padding: var(--s-9) 0;
  text-align: center;
}
.cta-strip h2 { color: var(--paper); margin-bottom: var(--s-4); }
.cta-strip p { color: #B8B4A8; max-width: 560px; margin: 0 auto var(--s-6); }
.cta-strip .btn-group { display: inline-flex; gap: var(--s-3); flex-wrap: wrap; justify-content: center; }

/* ---------- Footer ---------- */
.footer {
  background: var(--bg); color: #9C988C;
  padding: var(--s-9) 0 var(--s-5);
  border-top: 1px solid var(--line-dark);
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr 1fr;
  gap: var(--s-7);
  max-width: var(--maxw); margin: 0 auto;
  padding: 0 var(--s-6) var(--s-8);
}
.footer-brand .logo {
  font-family: var(--serif); font-size: 1.5rem; color: var(--paper);
  margin-bottom: var(--s-3); display: inline-block;
}
.footer-brand p { font-size: .9rem; color: #9C988C; max-width: 280px; }
.footer-col h5,
.footer-col-title {
  font-family: var(--mono); font-size: .72rem; color: var(--paper);
  letter-spacing: .15em; text-transform: uppercase; margin-bottom: var(--s-4);
  font-weight: 500;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: var(--s-2); }
.footer-col a { font-size: .88rem; color: #9C988C; transition: color var(--t-1) var(--ease); }
.footer-col a:hover { color: var(--ember); }
.footer-bottom {
  border-top: 1px solid var(--line-dark);
  padding-top: var(--s-5);
  max-width: var(--maxw); margin: 0 auto;
  padding-left: var(--s-6); padding-right: var(--s-6);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--s-3);
  font-size: .8rem; color: var(--ink-3);
}
.footer-bottom a { color: var(--ink-3); }
.footer-bottom a:hover { color: var(--paper); }

/* ---------- FAB / WhatsApp ---------- */
.fab {
  position: fixed; bottom: var(--s-5); right: var(--s-5); z-index: 90;
  display: flex; flex-direction: column; align-items: flex-end; gap: var(--s-2);
}
.fab-btn {
  width: 52px; height: 52px; border-radius: 50%;
  background: #25D366; display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 20px rgba(37,211,102,.35);
  transition: transform var(--t-1) var(--ease);
}
.fab-btn:hover { transform: scale(1.08); }
.fab-btn svg { width: 24px; height: 24px; fill: #fff; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; bottom: var(--s-6); left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--ink); color: var(--paper);
  padding: var(--s-3) var(--s-5);
  font-size: .9rem; font-weight: 500;
  opacity: 0; pointer-events: none; transition: all var(--t-2) var(--ease);
  z-index: 1000; border-left: 3px solid var(--ember);
}
.toast.on { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.error { border-left-color: #c0392b; }

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0; transform: translateY(20px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.reveal.on { opacity: 1; transform: translateY(0); }

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.muted { color: var(--ink-2); }
.mt-1 { margin-top: var(--s-1); }
.mt-2 { margin-top: var(--s-2); }
.mt-3 { margin-top: var(--s-3); }
.mt-4 { margin-top: var(--s-4); }
.mt-5 { margin-top: var(--s-5); }
.mt-6 { margin-top: var(--s-6); }
.mt-7 { margin-top: var(--s-7); }
.mt-8 { margin-top: var(--s-8); }
.mb-3 { margin-bottom: var(--s-3); }
.mb-4 { margin-bottom: var(--s-4); }
.mb-5 { margin-bottom: var(--s-5); }
.mb-6 { margin-bottom: var(--s-6); }
.mb-7 { margin-bottom: var(--s-7); }
.mb-8 { margin-bottom: var(--s-8); }
.gap-3 { gap: var(--s-3); }
.gap-5 { gap: var(--s-5); }
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }

/* Two-col text+image inner */
.tc {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: var(--s-8); align-items: center;
}
.tc-img {
  aspect-ratio: 4/5; border: 1px solid var(--line); overflow: hidden;
  background: var(--paper-2);
}
.tc-img img { width: 100%; height: 100%; object-fit: cover; }
.tc-img.flat { aspect-ratio: 4/3; }
.tc-text h2 { margin-bottom: var(--s-4); }
.tc-text p { font-size: 1.02rem; margin-bottom: var(--s-3); line-height: 1.7; }
.tc-text ul { list-style: none; margin-top: var(--s-5); }
.tc-text ul li {
  padding: var(--s-3) 0; border-bottom: 1px solid var(--line);
  font-size: .95rem; display: flex; gap: var(--s-3);
}
.tc-text ul li::before {
  content: '→'; color: var(--ember); font-family: var(--mono); flex-shrink: 0;
}

/* Quote pull */
.pull-quote {
  font-family: var(--editorial); font-style: italic; font-size: clamp(1.6rem, 2.4vw, 2.2rem);
  line-height: 1.4; color: var(--ink);
  padding: var(--s-7) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: center;
  max-width: 800px; margin: 0 auto;
}
.pull-quote::before { content: '"'; color: var(--ember); }
.pull-quote::after { content: '"'; color: var(--ember); }
.pull-quote-attr {
  font-family: var(--mono); font-style: normal; font-size: .75rem;
  letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3);
  margin-top: var(--s-3); display: block;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; }
  .footer-col:nth-child(4),
  .footer-col:nth-child(5),
  .footer-col:nth-child(6) { grid-column: span 1; }
}

@media (max-width: 900px) {
  .nav-links {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--paper);
    flex-direction: column; padding: var(--s-3);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 10px 24px rgba(0,0,0,.06);
  }
  .nav-links.on { display: flex; }
  .nav-links a { padding: var(--s-3) var(--s-4); width: 100%; }
  .nav-toggle { display: inline-flex; }
  .nav-cta { display: none; }

  .hero-grid {
    grid-template-columns: 1fr; gap: var(--s-7); padding: var(--s-8) var(--s-5);
    min-height: auto;
  }
  .hero h1 { font-size: 2.4rem; line-height: 1.08; }
  .hero-meta { grid-template-columns: repeat(2, 1fr); gap: var(--s-4) var(--s-5); }
  .hero-fileindex { top: 16px; right: 20px; font-size: .55rem; }
  .grid-3 { grid-template-columns: 1fr; }
  /* !important so these beat per-page inline grid-template-columns on mobile */
  .grid-2, .split, .tc { grid-template-columns: 1fr !important; gap: var(--s-6); }
  .form-grid { grid-template-columns: 1fr; }
  .process { grid-template-columns: repeat(2, 1fr) !important; }
  .card-feature { grid-template-columns: 1fr; }
  .card-feature .card-media { border-right: none; border-bottom: 1px solid var(--line); aspect-ratio: 4/3; }
  .data-panel { grid-template-columns: repeat(2, 1fr); }
  .data-cell:nth-child(4n) { border-right: 1px solid var(--line); }
  .data-cell:nth-child(2n) { border-right: none; }
  .spec-row { grid-template-columns: 1fr; gap: var(--s-1); }
  /* Catalog table: drop secondary spec columns on small screens, keep name + lead + link */
  .catalog-table .col-hide-mobile { display: none; }
  .catalog-table thead th, .catalog-table tbody td { padding: var(--s-3); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .gallery { grid-template-columns: repeat(6, 1fr); }
  .gallery-item.span-6, .gallery-item.span-8 { grid-column: span 6; }
  .gallery-item.span-4, .gallery-item.span-3 { grid-column: span 3; }
}

@media (max-width: 560px) {
  /* Keep authored <br> breaks (hiding them fuses adjacent words); just guard long words */
  h1, h2, h3 { overflow-wrap: break-word; }
  .hero h1 { font-size: 1.7rem; letter-spacing: -0.02em; }
  .page-hero h1 { font-size: 1.5rem; letter-spacing: -0.02em; }
  .section { padding: var(--s-8) 0; }
  .section-lg { padding: var(--s-9) 0; }
  .container, .container-narrow { padding: 0 var(--s-4); }
  .nav-inner { padding: var(--s-3) var(--s-4); }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { justify-content: center; }
  .form { padding: var(--s-5); }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .gallery-item.span-6, .gallery-item.span-8, .gallery-item.span-4, .gallery-item.span-3 { grid-column: span 1; }
}

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Print ---------- */
@media print {
  .nav, .fab, .footer, .cta-strip { display: none; }
  body { background: white; color: black; }
  a { text-decoration: underline; }
}
