/* ==========================================================================
   BigX — BIGX GLOBAL PTE. LTD.
   --------------------------------------------------------------------------
   Register: brand. Voice: precise, calm, measurable.
   The physical object: a vernier caliper, a spirit level, a calibration
   certificate.

   Binding exclusions (named by the client as reading "AI-made"):
     1. identical card grids
     2. large rounded cards with icon squares
     3. dark background with glow or neon
     4. serif headline + mono small-caps label + hairline rules
     5. purple-to-blue gradients

   What replaces them:
     · one variable family (Archivo) using its WIDTH axis for hierarchy
     · a single saturated signal colour used only for functional marking
     · structure from tables, columns and alignment, not containers
     · generated technical drawings as the imagery
     · OKLCH throughout; no pure black, no pure white
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  /* Neutrals tinted toward the signal hue (78 deg). Never zero chroma. */
  --paper:      oklch(0.972 0.006 78);
  --paper-2:    oklch(0.942 0.009 78);
  --paper-3:    oklch(0.906 0.011 78);

  --ink:        oklch(0.190 0.012 78);
  --ink-2:      oklch(0.310 0.013 78);
  --muted:      oklch(0.455 0.014 78);   /* >= 4.5:1 on paper */
  --faint:      oklch(0.560 0.014 78);   /* decorative or >= 24px only */

  /* Signal: the amber of a spirit-level vial and a surveyor's tripod.
     Chosen because precision instruments are painted this colour so you do
     not lose them on site, not because amber is a trend. */
  --signal:     oklch(0.710 0.176 62);
  --signal-2:   oklch(0.560 0.150 55);
  --signal-wash: oklch(0.930 0.045 72);

  --danger:     oklch(0.520 0.170 28);

  --rule:       oklch(0.190 0.012 78 / 0.17);
  --rule-soft:  oklch(0.190 0.012 78 / 0.08);
  --rule-strong:oklch(0.190 0.012 78 / 0.34);

  /* Dark surface, used once, flat, for the closing block */
  --sheet:      oklch(0.200 0.011 78);
  --sheet-rule: oklch(0.980 0.004 78 / 0.17);
  --sheet-muted:oklch(0.980 0.004 78 / 0.68);

  --ctx-fg: var(--ink);
  --ctx-muted: var(--muted);
  --ctx-rule: var(--rule);

  /* One family. Width and weight do the work. */
  --font: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;

  --gutter: clamp(1.25rem, 0.6rem + 2.4vw, 3.25rem);
  --section-y: clamp(3.5rem, 2.4rem + 4.4vw, 6.25rem);
  --maxw: 1240px;
  --maxw-narrow: 760px;
  --header-h: 64px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 24px);
}
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: clamp(0.975rem, 0.94rem + 0.16vw, 1.0625rem);
  font-variation-settings: "wdth" 100;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }
table { border-collapse: collapse; width: 100%; }
:focus-visible { outline: 2px solid var(--signal-2); outline-offset: 2px; }
::selection { background: var(--signal-wash); color: var(--ink); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; top: -100px; left: 12px; z-index: 200; background: var(--ink); color: var(--paper); padding: 10px 16px; font-size: 0.85rem; }
.skip-link:focus { top: 10px; }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: var(--maxw-narrow); }
.section { padding-block: var(--section-y); }
.section--rule { border-top: 1px solid var(--rule); }
.section--tight { padding-block: clamp(2.25rem, 1.6rem + 2.6vw, 3.75rem); }
.section--sheet { background: var(--sheet); color: var(--paper); border-top: 0; }
/* Every text token a component might reach for has to be restated here. Missing
   one is how a dark section ends up with dark grey body copy on it, which is
   exactly what the first contrast pass caught. */
.section--sheet .label,
.section--sheet .muted,
.section--sheet .lead,
.section--sheet .small,
.section--sheet .field__label,
.section--sheet .check,
.section--sheet .form-status,
.section--sheet .underline-link { color: var(--sheet-muted); }
.section--sheet .underline-link { border-bottom-color: var(--sheet-rule); }
.section--sheet .underline-link:hover { color: var(--signal); border-color: var(--signal); }
.section--sheet .req, .section--sheet .field__label .req { color: var(--signal); }
.section--sheet strong, .section--sheet b { color: var(--paper); }
.section--sheet .rule { background: var(--sheet-rule); }
.stack > * + * { margin-top: var(--stack-gap, 1rem); }
.rule { height: 1px; background: var(--rule); border: 0; }

/* Structural grid: explicit columns, not a card array. */
.cols { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 0 clamp(1rem, 0.5rem + 1.6vw, 2rem); }

/* ---------- Type ---------- */
/* Hierarchy comes from the width axis plus weight, never from a second family. */
.display {
  font-family: var(--font);
  font-variation-settings: "wdth" 118, "wght" 600;
  font-weight: 600;
  font-size: clamp(2.75rem, 0.4rem + 11vw, 9.5rem);
  line-height: 0.86;
  letter-spacing: -0.035em;
  text-transform: uppercase;
}
.h2 {
  font-family: var(--font);
  font-variation-settings: "wdth" 108, "wght" 560;
  font-weight: 560;
  font-size: clamp(1.6rem, 1.1rem + 2vw, 2.7rem);
  line-height: 1.06;
  letter-spacing: -0.022em;
  text-wrap: balance;
}
.h3 {
  font-family: var(--font);
  font-variation-settings: "wdth" 100, "wght" 520;
  font-weight: 520;
  font-size: clamp(1.05rem, 0.98rem + 0.36vw, 1.25rem);
  line-height: 1.3;
  letter-spacing: -0.01em;
}
/* Narrow, tracked-out labels. This is the gauge-annotation voice. */
.label {
  font-family: var(--font);
  font-variation-settings: "wdth" 78, "wght" 500;
  font-weight: 500;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.lead {
  font-size: clamp(1.06rem, 0.99rem + 0.42vw, 1.28rem);
  line-height: 1.55;
  color: var(--muted);
  text-wrap: pretty;
}
.muted { color: var(--muted); }
.small { font-size: 0.875rem; line-height: 1.58; }
.measure { max-width: 62ch; }
/* Figures always align. */
.data, .spec th, .spec td, .cert dd { font-variant-numeric: tabular-nums; }
strong, b { font-variation-settings: "wdth" 100, "wght" 620; font-weight: 620; }
.underline-link { border-bottom: 1px solid var(--rule); padding-bottom: 1px; transition: border-color 0.18s var(--ease-out), color 0.18s var(--ease-out); }
.underline-link:hover { border-color: var(--signal-2); color: var(--signal-2); }
.section-head { display: grid; gap: 0.9rem; max-width: 60ch; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--ink); --btn-fg: var(--paper); --btn-bd: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  background: var(--btn-bg); color: var(--btn-fg); border: 1px solid var(--btn-bd);
  padding: 0.72em 1.35em;
  font-family: var(--font);
  font-variation-settings: "wdth" 88, "wght" 560;
  font-weight: 560; font-size: 0.9rem; letter-spacing: 0.02em;
  line-height: 1.2; white-space: nowrap; text-transform: uppercase;
  transition: background-color 0.16s var(--ease-out), border-color 0.16s var(--ease-out), color 0.16s var(--ease-out);
}
.btn svg { flex: none; transition: transform 0.2s var(--ease-out); }
.btn:hover svg { transform: translateX(3px); }
.btn--primary { --btn-bg: var(--signal-2); --btn-bd: var(--signal-2); --btn-fg: oklch(0.99 0.01 78); }
.btn--primary:hover { --btn-bg: var(--signal); --btn-bd: var(--signal); --btn-fg: var(--ink); }
.btn--outline { --btn-bg: transparent; --btn-fg: var(--ink); --btn-bd: var(--rule-strong); }
.btn--outline:hover { --btn-bd: var(--ink); }
.btn--sheet { --btn-bg: transparent; --btn-fg: var(--paper); --btn-bd: var(--sheet-rule); }
.btn--sheet:hover { --btn-bd: var(--paper); --btn-bg: oklch(0.98 0.004 78 / 0.08); }
.btn--sm { padding: 0.5em 0.95em; font-size: 0.82rem; }
.btn--lg { padding: 0.9em 1.7em; font-size: 0.975rem; }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.6rem 0.7rem; align-items: center; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--paper);
  border-bottom: 1px solid transparent;
  transition: border-color 0.24s var(--ease-out);
}
.site-header.is-stuck { border-bottom-color: var(--rule); }
.site-header__inner { display: flex; align-items: center; gap: clamp(1rem, 3vw, 3.5rem); height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; flex: none; }
.brand__text { display: flex; align-items: baseline; gap: 0.55rem; }
.brand__name {
  font-family: var(--font);
  font-variation-settings: "wdth" 112, "wght" 640;
  font-weight: 640; font-size: 1.15rem; letter-spacing: -0.03em;
  text-transform: uppercase; color: var(--ink);
}
.brand__name b { color: var(--signal-2); font-weight: inherit; }
.brand__sub {
  font-variation-settings: "wdth" 78, "wght" 500;
  font-size: 0.62rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted);
}
.nav { display: flex; align-items: center; gap: 0.15rem; margin-inline-start: auto; }
.nav__link {
  padding: 0.4rem 0.65rem; font-size: 0.9rem;
  font-variation-settings: "wdth" 92, "wght" 500; font-weight: 500;
  color: var(--muted); border-bottom: 2px solid transparent;
  transition: color 0.16s var(--ease-out), border-color 0.16s var(--ease-out);
}
.nav__link:hover { color: var(--ink); }
.nav__link[aria-current="page"] { color: var(--ink); border-bottom-color: var(--signal-2); }
.header-actions { display: flex; align-items: center; gap: 0.5rem; flex: none; }
.nav-toggle { display: none; width: 38px; height: 38px; border: 1px solid var(--rule-strong); align-items: center; justify-content: center; }
.nav-toggle span { display: block; width: 15px; height: 1.5px; background: var(--ink); position: relative; transition: background-color 0.2s var(--ease-out); }
.nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 0; width: 15px; height: 1.5px; background: var(--ink);
  transition: transform 0.22s var(--ease-out), top 0.22s var(--ease-out);
}
.nav-toggle span::before { top: -5px; } .nav-toggle span::after { top: 5px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }
.mobile-nav {
  position: fixed; inset: var(--header-h) 0 0; z-index: 99; background: var(--paper);
  overflow-y: auto; padding: 0 var(--gutter) 3rem; border-top: 1px solid var(--rule);
  transform: translateX(100%); visibility: hidden;
  transition: transform 0.3s var(--ease-out), visibility 0.3s;
}
.mobile-nav.is-open { transform: none; visibility: visible; }
body.nav-open { overflow: hidden; }
.mobile-nav__group { border-bottom: 1px solid var(--rule); }
.mobile-nav__group > a {
  display: flex; justify-content: space-between; padding: 1rem 0;
  font-variation-settings: "wdth" 105, "wght" 560; font-weight: 560; font-size: 1.1rem;
}
.mobile-nav__cta { margin-top: 1.5rem; display: grid; gap: 0.6rem; }

/* ---------- Measurement gauge (hero imagery) ---------- */
/* A graduated rule with a dimension line that draws itself and a reading that
   counts. It measures something real, so the imagery cannot be wrong while the
   numbers are right. */
.hero { padding-block: clamp(1.5rem, 1rem + 2vw, 2.5rem) 0; }
.gauge { position: relative; padding-block: 0 0.5rem; }
.gauge__svg { width: 100%; height: auto; display: block; overflow: visible; }
.gauge__tick { stroke: var(--rule-strong); stroke-width: 1; }
.gauge__tick--major { stroke: var(--ink); }
.gauge__base { stroke: var(--ink); stroke-width: 1.25; }
.gauge__dim { stroke: var(--signal-2); stroke-width: 1.25; fill: none; }
.gauge__ext { stroke: var(--rule-strong); stroke-width: 1; stroke-dasharray: 3 3; }
.gauge__cap { fill: var(--signal-2); }
.gauge__read {
  font-family: var(--font); font-variation-settings: "wdth" 78, "wght" 600;
  font-size: 12px; letter-spacing: 0.14em; fill: var(--signal-2); text-transform: uppercase;
}
.gauge__unit {
  font-family: var(--font); font-variation-settings: "wdth" 78, "wght" 500;
  font-size: 11px; letter-spacing: 0.14em; fill: var(--muted);
}
.gauge__draw { transition: stroke-dashoffset 1.5s var(--ease-out); }
@media (prefers-reduced-motion: reduce) { .gauge__draw { transition: none; } }

/* ---------- Hero body ---------- */
.hero__body { display: grid; gap: clamp(1.5rem, 1rem + 2.4vw, 2.6rem); padding-block: clamp(2rem, 1.2rem + 3vw, 3.5rem) clamp(2.5rem, 1.6rem + 3.5vw, 4rem); }
.hero__mark { color: var(--ink); }
.hero__tagline {
  font-variation-settings: "wdth" 104, "wght" 450; font-weight: 450;
  font-size: clamp(1.15rem, 0.95rem + 0.9vw, 1.7rem);
  line-height: 1.28; letter-spacing: -0.016em;
  color: var(--ink-2); max-width: 34ch;
}
.hero__lead { max-width: 54ch; }
.hero__facts { display: flex; flex-wrap: wrap; gap: 0.4rem 2rem; padding-top: 1.25rem; border-top: 1px solid var(--rule); }
.hero__fact { display: grid; gap: 0.2rem; }
.hero__fact dt { font-variation-settings: "wdth" 78, "wght" 500; font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.hero__fact dd { font-size: 0.95rem; font-variation-settings: "wght" 560; font-weight: 560; }

/* ---------- Animated wordmark ---------- */
.bm { display: inline-flex; align-items: baseline; white-space: nowrap; }
.bm__slot { position: relative; display: inline-block; width: var(--bm-w, auto); transition: width 0.55s var(--ease-out); }
.bm__big, .bm__a { display: inline-block; }
.bm__b { position: absolute; left: 0; top: 0; white-space: nowrap; opacity: 0; transform: translateY(0.36em); transition: opacity 0.34s var(--ease-out), transform 0.55s var(--ease-out); }
.bm.is-one .bm__a { opacity: 0; transform: translateY(-0.36em); }
.bm.is-one .bm__b { opacity: 1; transform: none; }
.bm__rule { position: absolute; left: 0; bottom: -0.02em; width: var(--bm-w, 100%); height: 0.028em; min-height: 3px; background: var(--signal); transform-origin: left center; animation: rule-draw 0.8s var(--ease-out) 0.1s both; transition: width 0.55s var(--ease-out); }
@keyframes rule-draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (prefers-reduced-motion: reduce) {
  .bm__slot, .bm__rule, .bm__a, .bm__b { transition: none; animation: none; }
  .bm__b { display: none; }
}

/* ---------- Specification table (replaces the card grid) ---------- */
.spec { width: 100%; text-align: left; }
.spec caption { text-align: left; padding-bottom: 1rem; }
.spec th {
  font-variation-settings: "wdth" 78, "wght" 500; font-weight: 500;
  font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted); padding: 0 1.25rem 0.7rem 0; border-bottom: 2px solid var(--ink);
  vertical-align: bottom;
}
.spec td { padding: 1.15rem 1.25rem 1.15rem 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.spec tr:last-child td { border-bottom: 0; }
.spec__idx { font-variation-settings: "wdth" 78, "wght" 600; font-weight: 600; font-size: 0.8rem; color: var(--signal-2); width: 3.5rem; }
.spec__name { font-variation-settings: "wdth" 104, "wght" 580; font-weight: 580; font-size: clamp(1rem, 0.95rem + 0.3vw, 1.2rem); line-height: 1.25; width: 22%; }
.spec__scope { color: var(--muted); font-size: 0.9375rem; line-height: 1.55; }
/* The boundary column. Stating the limit is the point of the table. */
.spec__limit { color: var(--ink-2); font-size: 0.9375rem; line-height: 1.55; width: 30%; }
.spec__limit b { display: block; font-variation-settings: "wdth" 78, "wght" 500; font-size: 0.62rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--signal-2); margin-bottom: 0.3rem; }

/* ---------- Numbered sequence ---------- */
.seq { display: grid; }
.seq__row {
  display: grid; grid-template-columns: 4.5rem minmax(0, 1fr) minmax(0, 1.25fr);
  gap: clamp(1rem, 2.5vw, 2.5rem);
  padding-block: clamp(1.2rem, 1rem + 0.9vw, 1.8rem);
  border-top: 1px solid var(--rule); align-items: start;
}
.seq__row:last-child { border-bottom: 1px solid var(--rule); }
.seq__n { font-variation-settings: "wdth" 80, "wght" 600; font-weight: 600; font-size: 0.78rem; letter-spacing: 0.1em; color: var(--signal-2); padding-top: 0.3em; }
.seq__t { font-variation-settings: "wdth" 104, "wght" 580; font-weight: 580; font-size: clamp(1.05rem, 0.98rem + 0.34vw, 1.25rem); line-height: 1.28; }
.seq__d { color: var(--muted); font-size: 0.9375rem; line-height: 1.6; }

/* ---------- Certificate block (company data) ---------- */
.cert { display: grid; gap: 0; border-top: 2px solid var(--ink); }
.cert__row { display: grid; grid-template-columns: 12rem minmax(0, 1fr); gap: 1rem; padding-block: 0.85rem; border-bottom: 1px solid var(--rule); }
.cert dt { font-variation-settings: "wdth" 78, "wght" 500; font-weight: 500; font-size: 0.68rem; letter-spacing: 0.13em; text-transform: uppercase; color: var(--muted); padding-top: 0.15em; }
.cert dd { font-size: 0.95rem; font-variation-settings: "wght" 520; font-weight: 520; }
.cert dd span { display: block; }

/* ---------- Forms ---------- */
.field { display: grid; gap: 0.35rem; }
.field__label { font-variation-settings: "wdth" 78, "wght" 500; font-size: 0.68rem; letter-spacing: 0.13em; text-transform: uppercase; color: var(--muted); }
.field__label .req { color: var(--signal-2); }
.input, .textarea {
  width: 100%; padding: 0.7rem 0.8rem;
  border: 1px solid var(--rule-strong); background: var(--paper);
  color: var(--ink); font-size: 0.9375rem; line-height: 1.5;
  transition: border-color 0.16s var(--ease-out);
}
.input::placeholder, .textarea::placeholder { color: var(--muted); }
.input:focus, .textarea:focus { outline: none; border-color: var(--signal-2); }
.textarea { min-height: 120px; resize: vertical; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.form-grid .field--full { grid-column: 1 / -1; }
.field-error { display: none; font-size: 0.78rem; color: var(--danger); }
.field.has-error .input, .field.has-error .textarea { border-color: var(--danger); }
.field.has-error .field-error { display: block; }
.check { display: grid; grid-template-columns: 1rem 1fr; gap: 0.6rem; font-size: 0.875rem; color: var(--muted); cursor: pointer; }
.check input { width: 15px; height: 15px; margin-top: 0.15em; accent-color: var(--signal-2); }
.form-status { display: none; font-size: 0.9rem; line-height: 1.55; padding-top: 0.75rem; color: var(--muted); }
.form-status.is-shown { display: block; }
.form-shell { border-top: 2px solid var(--ink); padding-top: 1.5rem; }

/* ---------- Inner pages ---------- */
.page-hero { padding-block: clamp(2.5rem, 1.8rem + 3.4vw, 4.5rem) clamp(1.5rem, 1rem + 2vw, 2.5rem); border-bottom: 1px solid var(--rule); }
.page-hero__inner { display: grid; gap: 1rem; }
.page-hero .h2 { font-variation-settings: "wdth" 112, "wght" 600; font-weight: 600; font-size: clamp(2rem, 1.3rem + 3vw, 3.6rem); }

/* ---------- Prose ---------- */
.prose { max-width: 72ch; }
.prose > * + * { margin-top: 0.95rem; }
.prose h2 { font-variation-settings: "wdth" 106, "wght" 570; font-weight: 570; font-size: clamp(1.2rem, 1.05rem + 0.6vw, 1.5rem); letter-spacing: -0.014em; margin-top: 2.25rem; }
.prose h2:first-of-type { margin-top: 1.5rem; }
.prose p, .prose li { color: var(--muted); font-size: 0.9375rem; line-height: 1.7; }
.prose ul { display: grid; gap: 0.4rem; padding-left: 1.1rem; }
.prose ul li { list-style: none; position: relative; }
.prose ul li::before { content: ""; position: absolute; left: -1.05rem; top: 0.62em; width: 6px; height: 1.5px; background: var(--signal-2); }
.prose a { color: var(--signal-2); border-bottom: 1px solid oklch(0.56 0.15 55 / 0.35); }
.prose a:hover { border-color: var(--signal-2); }
.prose strong { color: var(--ink); font-variation-settings: "wght" 620; }
.prose address { font-style: normal; line-height: 1.7; }

/* ---------- Footer ---------- */
.site-footer { background: var(--sheet); color: var(--paper); padding-top: clamp(2.5rem, 1.8rem + 2.6vw, 3.75rem); }
.site-footer__grid { display: grid; grid-template-columns: minmax(0, 1.7fr) repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 1rem + 2.4vw, 3rem); padding-bottom: clamp(1.75rem, 1.2rem + 2vw, 2.75rem); }
.site-footer .brand__name { color: var(--paper); }
.site-footer .brand__name b { color: var(--signal); }
.site-footer .brand__sub { color: var(--sheet-muted); }
.site-footer__blurb { font-size: 0.9rem; line-height: 1.6; color: var(--sheet-muted); max-width: 32ch; margin-top: 1rem; }
.site-footer__h { font-variation-settings: "wdth" 78, "wght" 500; font-size: 0.64rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--sheet-muted); margin-bottom: 0.85rem; }
.site-footer__links { display: grid; gap: 0.45rem; }
.site-footer__links a { font-size: 0.9rem; color: var(--sheet-muted); transition: color 0.16s var(--ease-out); }
.site-footer__links a:hover { color: var(--signal); }
.site-footer__addr { font-size: 0.9rem; line-height: 1.65; color: var(--sheet-muted); font-style: normal; }
.social-row { display: flex; gap: 0.45rem; margin-top: 1.15rem; }
.social-row a { width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid var(--sheet-rule); color: var(--sheet-muted); transition: border-color 0.18s var(--ease-out), color 0.18s var(--ease-out); }
.social-row a:hover { border-color: var(--signal); color: var(--signal); }
.social-row svg { width: 14px; height: 14px; }
.site-footer__bar { border-top: 1px solid var(--sheet-rule); padding-block: 1.15rem; display: flex; flex-wrap: wrap; gap: 0.7rem 1.5rem; align-items: center; justify-content: space-between; font-size: 0.8rem; color: var(--sheet-muted); }
.site-footer__bar-nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.1rem; }
.site-footer__bar-nav a { color: var(--sheet-muted); }
.site-footer__bar-nav a:hover { color: var(--signal); }
.legal-note { font-size: 0.78rem; line-height: 1.65; color: var(--sheet-muted); max-width: 94ch; padding-block: 0 2rem; }

/* ---------- Chat ---------- */
.chat-fab {
  position: fixed; right: clamp(1rem, 0.6rem + 1.2vw, 1.75rem); bottom: clamp(1rem, 0.6rem + 1.2vw, 1.75rem); z-index: 120;
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--ink); color: var(--paper); padding: 0.68rem 1rem;
  font-variation-settings: "wdth" 88, "wght" 560; font-weight: 560; font-size: 0.82rem;
  letter-spacing: 0.04em; text-transform: uppercase; border: 1px solid var(--ink);
  transition: background-color 0.16s var(--ease-out);
}
.chat-fab:hover { background: var(--ink-2); }
.chat-fab svg { width: 15px; height: 15px; }
.chat-panel {
  position: fixed; z-index: 121;
  right: clamp(1rem, 0.6rem + 1.2vw, 1.75rem); bottom: clamp(1rem, 0.6rem + 1.2vw, 1.75rem);
  width: min(370px, calc(100vw - 2rem)); height: min(540px, calc(100vh - 2.5rem));
  background: var(--paper); border: 1px solid var(--ink);
  display: flex; flex-direction: column; overflow: hidden;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity 0.18s var(--ease-out), transform 0.22s var(--ease-out), visibility 0.18s;
}
.chat-panel.is-open { opacity: 1; visibility: visible; transform: none; }
.chat-panel__head { display: flex; align-items: center; gap: 0.7rem; padding: 0.85rem 1rem; background: var(--ink); color: var(--paper); flex: none; }
.chat-panel__who b { display: block; font-variation-settings: "wdth" 100, "wght" 580; font-weight: 580; font-size: 0.88rem; }
.chat-panel__who span { font-size: 0.7rem; color: var(--sheet-muted); }
.chat-panel__x { margin-left: auto; padding: 0.25rem; color: var(--sheet-muted); }
.chat-panel__x:hover { color: var(--paper); }
.chat-panel__x svg { width: 15px; height: 15px; }
.chat-log { flex: 1; overflow-y: auto; padding: 1rem; display: grid; gap: 0.65rem; align-content: start; }
.chat-msg { max-width: 88%; font-size: 0.875rem; line-height: 1.55; padding: 0.6rem 0.8rem; }
.chat-msg--bot { background: var(--paper-2); color: var(--ink); justify-self: start; }
.chat-msg--me { background: var(--ink); color: var(--paper); justify-self: end; }
.chat-msg a { border-bottom: 1px solid currentColor; }
.chat-quick { display: flex; flex-wrap: wrap; gap: 0.35rem; padding: 0 1rem 0.65rem; flex: none; }
.chat-quick button { font-size: 0.76rem; padding: 0.32em 0.66em; border: 1px solid var(--rule-strong); color: var(--muted); transition: border-color 0.16s var(--ease-out), color 0.16s var(--ease-out); }
.chat-quick button:hover { border-color: var(--signal-2); color: var(--signal-2); }
.chat-form { display: flex; gap: 0.5rem; padding: 0.65rem 1rem 0.85rem; border-top: 1px solid var(--rule); flex: none; }
.chat-send { flex: none; width: 38px; height: 38px; display: grid; place-items: center; background: var(--signal-2); color: oklch(0.99 0.01 78); }
.chat-send:hover { background: var(--signal); color: var(--ink); }
.chat-send svg { width: 15px; height: 15px; }
.chat-typing { display: inline-flex; gap: 3px; align-items: center; }
.chat-typing i { width: 4px; height: 4px; background: var(--muted); animation: blink 1.3s infinite; }
.chat-typing i:nth-child(2) { animation-delay: 0.18s; }
.chat-typing i:nth-child(3) { animation-delay: 0.36s; }
@keyframes blink { 0%, 60%, 100% { opacity: 0.3; } 30% { opacity: 1; } }

/* ---------- Utilities ---------- */
.mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.75rem; } .mt-4 { margin-top: 2.5rem; }
[data-reveal] { opacity: 0; transform: translateY(10px); transition: opacity 0.55s var(--ease-out), transform 0.65s var(--ease-out); transition-delay: var(--reveal-delay, 0ms); }
[data-reveal].is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { [data-reveal] { opacity: 1 !important; transform: none !important; } }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav { display: none; }
  .nav-toggle { display: inline-flex; }
  .btn--desk-only { display: none; }
  .site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-footer__brand-col { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .spec, .spec tbody, .spec tr, .spec td { display: block; width: auto; }
  .spec thead { display: none; }
  .spec tr { border-bottom: 1px solid var(--rule); padding-block: 1.15rem; }
  .spec tr:last-child { border-bottom: 0; }
  .spec td { border: 0; padding: 0 0 0.5rem; }
  .spec__idx { margin-bottom: 0.35rem; }
  .spec__limit { padding-top: 0.35rem; }
  .seq__row { grid-template-columns: 3rem minmax(0, 1fr); }
  .seq__d { grid-column: 2 / -1; }
  .cert__row { grid-template-columns: 1fr; gap: 0.2rem; }
}
@media (max-width: 640px) {
  .form-grid { grid-template-columns: 1fr; }
  .chat-fab__text { display: none; }
  .chat-fab { padding: 0.75rem; }
  .site-footer__grid { grid-template-columns: 1fr; }
  .site-footer__bar { flex-direction: column; align-items: flex-start; }
  .hero__facts { gap: 0.75rem 1.5rem; }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .site-footer, .chat-fab, .chat-panel { display: none !important; }
  body { background: oklch(1 0 0); color: oklch(0.2 0.01 78); }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
}
