/* ==========================================================================
   giorobotics.com — single stylesheet
   Direction: technical datasheet / control panel. Paper, ink, one signal colour.
   Fonts are self-hosted (SIL OFL): Archivo (variable wdth+wght), JetBrains Mono.
   ========================================================================== */

@font-face {
  font-family: "Archivo";
  src: url("/assets/fonts/archivo-latin-var.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("/assets/fonts/jetbrains-mono-latin-var.woff2") format("woff2");
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --paper: #f3f2ee;
  --paper-2: #e9e7e0;
  --surface: #fbfaf7;
  --panel: #f7f6f2;
  --plate: #e2dfd7;
  --ink: #15171a;
  --ink-2: #43474c;
  --ink-3: #5c6065;
  --rule: #d2cec5;
  --rule-2: #b9b4a9;
  --accent: #c2410c;         /* fills, buttons (white text 5.2:1) */
  --accent-text: #a8380a;    /* small text + links on paper/paper-2 */
  --accent-line: #e8590c;    /* decorative strokes */
  --on-accent: #ffffff;
  --ok: #2f8f4e;
  --alarm: #d92d20;
  --grid-minor: rgba(21, 23, 26, 0.045);
  --grid-major: rgba(21, 23, 26, 0.085);

  --font-sans: "Archivo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

  --wrap: 75rem;
  --gutter: 1rem;
  --radius: 3px;
  --line: 1.5px;
  --section-y: clamp(3.5rem, 2rem + 6vw, 7rem);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #111315;
    --paper-2: #16191c;
    --surface: #1b1e22;
    --panel: #14171a;
    --plate: #1f2327;
    --ink: #ebe9e3;
    --ink-2: #c2bfb8;
    --ink-3: #9a978f;
    --rule: #2d3136;
    --rule-2: #42474e;
    --accent: #ff7a3d;
    --accent-text: #ff8a55;
    --accent-line: #ff7a3d;
    --on-accent: #111315;
    --ok: #4cc27a;
    --alarm: #ff5a4e;
    --grid-minor: rgba(235, 233, 227, 0.04);
    --grid-major: rgba(235, 233, 227, 0.08);
  }
}

@media (min-width: 48rem) {
  :root { --gutter: 2rem; }
}

/* ---------- Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 1rem;
}
@media (min-width: 64rem) {
  html { scroll-padding-top: 5.5rem; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-stretch: 100%;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { max-width: 100%; }
h1, h2, h3, h4 { margin: 0; line-height: 1.05; font-weight: 700; text-wrap: balance; }
p { margin: 0 0 1em; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
a { color: var(--accent-text); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
strong { font-weight: 650; }
code, kbd, pre { font-family: var(--font-mono); font-size: 0.9em; }

:focus-visible {
  outline: 3px solid var(--accent-line);
  outline-offset: 2px;
  border-radius: 2px;
}
main:focus { outline: none; }

::selection { background: var(--accent); color: var(--on-accent); }

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.visually-hidden {
  position: absolute !important;
  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;
  left: 0.75rem; top: -4rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 0.875rem;
  text-decoration: none;
}
.skip-link:focus { top: 0.75rem; }

/* ---------- Labels (mono) ---------- */
.eyebrow,
.sec-label,
.sec-no,
.service-code,
.np-label,
.tb-k,
.toc-title,
.doc-meta,
.gc-meta,
.bw-bar,
.specs dt,
.facts dt,
.mini-specs dt,
.guide-meta dt,
.safety-title,
figcaption {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.4;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 1.25rem;
  color: var(--ink-3);
}
.eyebrow::before {
  content: "";
  width: 1.5rem;
  height: 2px;
  background: var(--accent);
  flex: none;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0.7rem 1.25rem;
  border: var(--line) solid var(--ink);
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 650;
  font-stretch: 92%;
  line-height: 1.1;
  text-decoration: none;
  letter-spacing: 0.005em;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
  box-shadow: 0 2px 0 0 var(--ink);
}
.btn-primary:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}
.btn-primary:active { transform: translateY(1px); box-shadow: 0 1px 0 0 var(--ink); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn-sm {
  min-height: 2.5rem;
  padding: 0.5rem 0.9rem;
  font-size: 0.9375rem;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--accent-text);
  text-decoration: none;
  border-bottom: 1.5px solid currentColor;
  padding-bottom: 0.1rem;
}
.link-arrow::after { content: "→"; transition: transform 0.15s ease; }
.link-arrow:hover::after { transform: translateX(3px); }

/* ---------- Header ---------- */
.site-header {
  background: var(--paper);
  border-bottom: var(--line) solid var(--ink);
  position: relative;
  z-index: 20;
}
@media (min-width: 64rem) {
  .site-header {
    position: sticky;
    top: 0;
    background: color-mix(in srgb, var(--paper) 92%, transparent);
    -webkit-backdrop-filter: saturate(1.2) blur(10px);
    backdrop-filter: saturate(1.2) blur(10px);
  }
}

.header-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  grid-template-areas:
    "brand lang cta"
    "nav   nav  nav";
  align-items: center;
  column-gap: 0.75rem;
  padding-top: 0.75rem;
}
@media (min-width: 64rem) {
  .header-row {
    grid-template-columns: auto 1fr auto auto;
    grid-template-areas: "brand nav lang cta";
    column-gap: 1.5rem;
    padding-block: 0.85rem;
  }
}

.brand {
  grid-area: brand;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--ink);
  text-decoration: none;
  min-width: 0;
}
.brand-mark { width: 2rem; height: 2rem; flex: none; color: var(--ink); }
.brand-text { display: flex; flex-direction: column; min-width: 0; }
.brand-name {
  white-space: nowrap;
  font-size: 1.2rem;
  font-weight: 750;
  font-stretch: 78%;
  letter-spacing: 0.01em;
  line-height: 1;
  text-transform: uppercase;
}
.brand-tag {
  display: none;
  margin-top: 0.3rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.04em;
  color: var(--ink-3);
  white-space: nowrap;
}
@media (min-width: 80rem) {
  .brand-tag { display: block; }
}

.main-nav {
  grid-area: nav;
  margin-top: 0.6rem;
  border-top: 1px solid var(--rule);
  overflow-x: auto;
  scrollbar-width: none;
}
.main-nav::-webkit-scrollbar { display: none; }
.main-nav ul {
  display: flex;
  gap: 1.25rem;
  list-style: none;
  white-space: nowrap;
}
.main-nav a {
  display: block;
  padding: 0.7rem 0 0.75rem;
  color: var(--ink-2);
  font-size: 0.9375rem;
  font-weight: 550;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.main-nav a:hover { color: var(--ink); border-bottom-color: var(--rule-2); }
.main-nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--accent); }
@media (min-width: 64rem) {
  .main-nav { margin-top: 0; border-top: 0; justify-self: center; }
  .main-nav ul { gap: 1.75rem; }
  .main-nav a { padding: 0.35rem 0; margin-bottom: 0; }
}

.lang-switch { grid-area: lang; }
.lang-switch ul {
  display: flex;
  list-style: none;
  border: 1px solid var(--rule-2);
  border-radius: var(--radius);
  overflow: hidden;
}
.lang-switch li + li { border-left: 1px solid var(--rule-2); }
.lang-switch a,
.lang-current {
  display: grid;
  place-items: center;
  min-width: 2.5rem;
  min-height: 2.5rem;
  padding: 0 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-decoration: none;
}
.lang-switch a { color: var(--ink-3); }
.lang-switch a:hover { color: var(--ink); background: var(--paper-2); }
.lang-current { background: var(--ink); color: var(--paper); }

.header-cta {
  grid-area: cta;
  background: var(--ink);
  color: var(--paper);
}
.header-cta:hover { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
@media (max-width: 25rem) {
  .header-row { column-gap: 0.5rem; }
  .brand { gap: 0.5rem; }
  .brand-mark { width: 1.75rem; height: 1.75rem; }
  .brand-name { font-size: 1.05rem; }
  .header-cta { padding-inline: 0.7rem; }
  .lang-switch a, .lang-current { min-width: 2.25rem; padding: 0 0.4rem; }
}
@media (max-width: 22rem) {
  .header-cta { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  padding-top: clamp(2.25rem, 1rem + 5vw, 5rem);
  padding-bottom: clamp(2.5rem, 1rem + 4vw, 4.5rem);
  border-bottom: var(--line) solid var(--ink);
}
.hero-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}
@media (min-width: 64rem) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
    gap: clamp(2.5rem, 4vw, 4.5rem);
  }
}

.hero h1 {
  font-size: clamp(2.6rem, 1.35rem + 4.6vw, 4.9rem);
  font-weight: 760;
  font-stretch: 70%;
  line-height: 0.95;
  letter-spacing: -0.012em;
  margin-bottom: 1.5rem;
  max-width: 13ch;
}
.lede {
  font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 38rem;
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 2rem 0 1.5rem;
}
.status {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.01em;
  color: var(--ink-2);
}
.led {
  position: relative;
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: var(--ok);
  flex: none;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--ok) 22%, transparent);
}

/* Drawing panel */
.drawing { margin: 0; }
.drawing-frame {
  position: relative;
  padding: clamp(0.75rem, 2vw, 1.5rem);
  background-color: var(--panel);
  background-image:
    linear-gradient(var(--grid-major) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-major) 1px, transparent 1px),
    linear-gradient(var(--grid-minor) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-minor) 1px, transparent 1px);
  background-size: 96px 96px, 96px 96px, 16px 16px, 16px 16px;
  background-position: -1px -1px;
  border: 1px solid var(--rule-2);
}
.crop {
  position: absolute;
  width: 14px;
  height: 14px;
  border-color: var(--ink);
  border-style: solid;
  border-width: 0;
}
.crop-tl { top: -7px; left: -7px; border-top-width: 2px; border-left-width: 2px; }
.crop-tr { top: -7px; right: -7px; border-top-width: 2px; border-right-width: 2px; }
.crop-bl { bottom: -7px; left: -7px; border-bottom-width: 2px; border-left-width: 2px; }
.crop-br { bottom: -7px; right: -7px; border-bottom-width: 2px; border-right-width: 2px; }
.drawing figcaption {
  margin-top: 0.85rem;
  color: var(--ink-3);
  letter-spacing: 0.04em;
  text-transform: none;
}

/* Robot arm SVG */
.arm { display: block; width: 100%; height: auto; color: var(--ink); --panel-fill: var(--panel); }
.arm .ar-ln { fill: var(--panel); stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; }
.arm .ar-thin { fill: none; stroke: currentColor; stroke-width: 1; }
.arm .ar-hatch { fill: none; stroke: currentColor; stroke-width: 0.8; opacity: 0.45; }
.arm .ar-cl { fill: none; stroke: var(--accent-line); stroke-width: 0.9; stroke-dasharray: 10 3 2 3; }
.arm .ar-ctr { fill: none; stroke: var(--accent-line); stroke-width: 0.9; }
.arm .ar-rot { fill: none; stroke: var(--accent-line); stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.arm .ar-tcp { fill: none; stroke: var(--accent-line); stroke-width: 1.2; }
.arm .ar-lead { fill: none; stroke: var(--ink-3); stroke-width: 0.8; }
.arm .ar-dot { fill: var(--ink-3); }
.arm .ar-lbl { font-family: var(--font-mono); font-size: 13px; font-weight: 700; fill: currentColor; letter-spacing: 0.04em; }
.arm .ar-axis { font-family: var(--font-mono); font-size: 11px; font-weight: 500; fill: var(--ink-3); }

/* Spec strip */
.specs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: clamp(2.5rem, 1.5rem + 3vw, 4rem) 0 0;
  border-top: 2px solid var(--ink);
  border-left: 1px solid var(--rule);
}
.spec {
  padding: 0.9rem 0.9rem 1rem;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.specs dt { color: var(--ink-3); margin-bottom: 0.35rem; font-size: 0.6875rem; }
.specs dd { margin: 0; font-weight: 600; font-stretch: 92%; line-height: 1.3; font-size: 1rem; }
@media (min-width: 40rem) {
  .specs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 72rem) {
  .specs { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

/* ---------- Sections ---------- */
.section { padding-block: var(--section-y); }
.section-alt {
  background: var(--paper-2);
  border-block: 1px solid var(--rule);
}
.sec-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: clamp(1.25rem, 1rem + 1vw, 2rem);
}
.sec-no {
  display: inline-grid;
  place-items: center;
  min-width: 2.1rem;
  height: 1.6rem;
  padding: 0 0.35rem;
  background: var(--ink);
  color: var(--paper);
  font-weight: 700;
  letter-spacing: 0.04em;
}
.sec-label { color: var(--ink-3); }
.sec-head::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--rule-2);
}

.section h2,
.doc-body h2.big {
  font-size: clamp(2rem, 1.35rem + 2.3vw, 3.2rem);
  font-weight: 740;
  font-stretch: 74%;
  letter-spacing: -0.008em;
  line-height: 0.98;
  margin-bottom: 1.5rem;
  max-width: 20ch;
}
.sec-intro {
  display: grid;
  gap: 0.5rem 3rem;
  margin-bottom: clamp(2rem, 1.5rem + 2vw, 3rem);
}
.sec-intro p { color: var(--ink-2); max-width: 36rem; margin: 0; }
@media (min-width: 56rem) {
  .sec-intro { grid-template-columns: 1fr 1fr; align-items: end; }
  .sec-intro h2 { margin-bottom: 0; }
}

h3 {
  font-size: 1.25rem;
  font-weight: 680;
  font-stretch: 88%;
  line-height: 1.15;
  letter-spacing: 0;
}

/* Services */
.services {
  list-style: none;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  border-top: 2px solid var(--ink);
}
.service {
  position: relative;
  padding: 1.5rem 0 1.75rem;
  border-bottom: 1px solid var(--rule-2);
}
.service-code {
  display: block;
  margin-bottom: 0.9rem;
  color: var(--accent-text);
  font-weight: 700;
}
.service h3 { margin-bottom: 0.6rem; font-size: 1.375rem; }
.service p { color: var(--ink-2); margin: 0; }
.service p + p { margin-top: 1rem; }
.service-mail { font-family: var(--font-mono); font-size: 0.8125rem; color: var(--ink-3) !important; }
.service-alt {
  background:
    repeating-linear-gradient(-45deg, transparent 0 10px, var(--grid-minor) 10px 11px);
}
.service-alt .service-code { color: var(--ink-3); }
@media (min-width: 40rem) {
  .services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service { padding: 1.5rem 1.5rem 1.75rem 0; }
  .service:nth-child(2n) { padding-left: 1.5rem; border-left: 1px solid var(--rule-2); }
  .service-alt { padding-left: 1.5rem; }
}
@media (min-width: 64rem) {
  .services { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .service,
  .service:nth-child(2n) { padding: 1.75rem 1.75rem 2rem; border-left: 1px solid var(--rule-2); }
  .service:nth-child(3n + 1) { border-left: 0; padding-left: 0; }
}

/* Steps */
.steps {
  list-style: none;
  display: grid;
  gap: 0;
  margin-bottom: 2rem;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 0 0 1.75rem 3.5rem;
}
.step::before {
  content: "";
  position: absolute;
  left: 1.05rem;
  top: 2.25rem;
  bottom: 0;
  width: 2px;
  background: var(--rule-2);
}
.step:last-child::before { display: none; }
.step-no {
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border: var(--line) solid var(--ink);
  background: var(--paper);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.9375rem;
}
.step:first-child .step-no { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.step h3 { padding-top: 0.35rem; margin-bottom: 0.4rem; }
.step p { color: var(--ink-2); margin: 0; max-width: 34rem; }
@media (min-width: 56rem) {
  .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; }
  .step { padding: 3.5rem 0 0; }
  .step::before { left: 2.25rem; right: -1.5rem; top: 1.06rem; bottom: auto; width: auto; height: 2px; }
  .step:last-child::before { display: block; right: 0; background: linear-gradient(90deg, var(--rule-2), transparent); }
}
.section-alt .step-no { background: var(--paper-2); }
.section-alt .step:first-child .step-no { background: var(--accent); }

/* Price */
.price-grid {
  display: grid;
  gap: 2.5rem;
  align-items: start;
}
@media (min-width: 56rem) {
  .price-grid { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 4rem; }
}
.nameplate {
  position: relative;
  padding: 2.25rem 2rem 2rem;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--surface) 70%, transparent), transparent 60%),
    var(--plate);
  border: var(--line) solid var(--ink);
  border-radius: 6px;
  box-shadow: inset 0 0 0 7px var(--plate), inset 0 0 0 8px var(--rule-2), 0 3px 0 0 var(--ink);
}
.screw {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1.5px solid var(--ink);
  background:
    linear-gradient(45deg, transparent 44%, var(--ink) 44% 56%, transparent 56%),
    var(--surface);
}
.screw-tl { top: 14px; left: 14px; }
.screw-tr { top: 14px; right: 14px; }
.screw-bl { bottom: 14px; left: 14px; }
.screw-br { bottom: 14px; right: 14px; }
.np-label { display: block; text-align: center; color: var(--ink-3); }
.np-price {
  margin: 0.5rem 0 0.25rem;
  text-align: center;
  font-size: clamp(5rem, 3.5rem + 6vw, 8.5rem);
  font-weight: 800;
  font-stretch: 66%;
  line-height: 0.9;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.np-per {
  margin: 0 auto;
  max-width: 18rem;
  text-align: center;
  color: var(--ink-2);
  font-size: 0.9375rem;
  line-height: 1.4;
}
.price-copy h2 { margin-bottom: 1.25rem; }
.ticks { list-style: none; border-top: 1px solid var(--rule-2); }
.ticks li {
  position: relative;
  padding: 0.85rem 0 0.85rem 2rem;
  border-bottom: 1px solid var(--rule-2);
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 0.15rem;
  top: 1.15rem;
  width: 0.9rem;
  height: 0.5rem;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}

/* Safety callout */
.safety {
  position: relative;
  margin-top: clamp(2.5rem, 2rem + 2vw, 3.5rem);
  padding: 1.25rem 1.25rem 1.25rem 2.75rem;
  border: var(--line) solid var(--ink);
  background: var(--surface);
}
.safety::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 1.25rem;
  background: repeating-linear-gradient(-45deg, var(--accent) 0 7px, var(--ink) 7px 14px);
  border-right: var(--line) solid var(--ink);
}
.safety-title { margin: 0 0 0.4rem; font-weight: 700; color: var(--ink); }
.safety p:last-child { margin: 0; color: var(--ink-2); max-width: 60rem; }
.safety-inline { margin: 1.75rem 0; }

/* About */
.about-grid { display: grid; gap: 2.5rem; }
.about-copy p { color: var(--ink-2); max-width: 38rem; }
@media (min-width: 56rem) {
  .about-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 4rem; align-items: start; }
}
.facts,
.mini-specs,
.guide-meta {
  margin: 0;
  border-top: 2px solid var(--ink);
}
.facts > div,
.mini-specs > div,
.guide-meta > div {
  display: grid;
  grid-template-columns: 8.5rem minmax(0, 1fr);
  gap: 1rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--rule-2);
}
.facts dt,
.mini-specs dt,
.guide-meta dt { color: var(--ink-3); padding-top: 0.2rem; font-size: 0.6875rem; }
.facts dd,
.mini-specs dd,
.guide-meta dd { margin: 0; font-weight: 550; line-height: 1.4; }

/* Booking */
.booking-grid { display: grid; gap: 2.5rem; }
@media (min-width: 64rem) {
  .booking-grid { grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr); gap: 3.5rem; align-items: start; }
}
.booking-copy p { color: var(--ink-2); }
.booking-copy .mini-specs { margin: 1.75rem 0; }
.booking-fallback { font-size: 0.9375rem; margin-bottom: 1rem; }
.booking-window {
  border: var(--line) solid var(--ink);
  background: var(--surface);
  box-shadow: 6px 6px 0 0 var(--paper-2), 6px 6px 0 var(--line) var(--ink);
  min-width: 0;
}
.bw-bar {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0.9rem;
  border-bottom: var(--line) solid var(--ink);
  background: var(--paper-2);
  color: var(--ink-2);
  font-size: 0.6875rem;
}
.bw-host { margin-left: auto; color: var(--ink-3); text-transform: none; letter-spacing: 0.02em; }
.bw-led {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--ok);
  flex: none;
}
.bw-led-alarm { background: var(--alarm); }
.cal-inline {
  position: relative;
  width: 100%;
  min-height: 42rem;
  overflow: auto;
}
.cal-inline iframe { display: block; }
.cal-loading {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  margin: 0;
  padding: 2rem;
  color: var(--ink-3);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  text-align: center;
  background-image:
    linear-gradient(var(--grid-minor) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-minor) 1px, transparent 1px);
  background-size: 16px 16px;
}
.cal-inline:has(iframe) .cal-loading { display: none; }
.cal-noscript { padding: 1rem; margin: 0; }
.bw-note {
  margin: 0;
  padding: 0.7rem 0.9rem;
  border-top: 1px solid var(--rule);
  font-size: 0.8125rem;
  color: var(--ink-3);
}

/* FAQ (accordion) */
.faq-list { border-top: 2px solid var(--ink); margin-bottom: 2rem; max-width: 56rem; }
.faq-item { border-bottom: 1px solid var(--rule-2); }
.faq-item summary {
  position: relative;
  display: block;
  cursor: pointer;
  padding: 1.1rem 3rem 1.1rem 0;
  font-size: 1.1875rem;
  font-weight: 650;
  font-stretch: 90%;
  line-height: 1.3;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  translate: 0 -50%;
  display: grid;
  place-items: center;
  width: 1.9rem;
  height: 1.9rem;
  border: var(--line) solid var(--ink);
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 1.05rem;
  line-height: 1;
}
.faq-item[open] summary::after { content: "−"; background: var(--ink); color: var(--paper); }
.faq-item summary:hover { color: var(--accent-text); }
.faq-a { padding: 0 3rem 1.25rem 0; color: var(--ink-2); max-width: 46rem; }
.faq-a p { margin: 0; }

/* ---------- Document pages ---------- */
.doc-head {
  padding-top: clamp(2.25rem, 1.5rem + 3vw, 4rem);
  padding-bottom: clamp(1.75rem, 1.25rem + 2vw, 2.75rem);
  border-bottom: var(--line) solid var(--ink);
  background-image:
    linear-gradient(var(--grid-minor) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-minor) 1px, transparent 1px);
  background-size: 16px 16px;
  background-position: -1px -1px;
}
.doc-head h1 {
  font-size: clamp(2.3rem, 1.4rem + 3.4vw, 4rem);
  font-weight: 760;
  font-stretch: 70%;
  line-height: 0.97;
  letter-spacing: -0.01em;
  margin-bottom: 1.1rem;
  max-width: 22ch;
}
.doc-head .lede { margin-bottom: 0; }
.doc-meta { margin: 1.25rem 0 0; color: var(--ink-3); text-transform: none; letter-spacing: 0.02em; font-size: 0.8125rem; }
.doc-meta a { color: var(--accent-text); }
.doc-body { padding-block: clamp(2.5rem, 2rem + 2vw, 4rem) var(--section-y); }

.prose { max-width: 44rem; }
.prose > * + * { margin-top: 0; }
.prose h2 {
  position: relative;
  margin: 2.75rem 0 1rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule-2);
  font-size: clamp(1.5rem, 1.25rem + 0.9vw, 1.95rem);
  font-weight: 720;
  font-stretch: 80%;
  line-height: 1.08;
}
.prose h2::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 2.5rem;
  height: 3px;
  background: var(--accent);
}
.prose > h2:first-child { margin-top: 0; }
.prose h3 { margin: 2rem 0 0.75rem; font-size: 1.25rem; }
.prose p, .prose li { color: var(--ink-2); }
.prose strong { color: var(--ink); }
.prose ul:not([class]),
.prose ol:not([class]) { padding-left: 1.35rem; margin: 0 0 1.25rem; }
.prose ul:not([class]) li,
.prose ol:not([class]) li { margin-bottom: 0.5rem; padding-left: 0.25rem; }
.prose ul:not([class]) li::marker { color: var(--accent); }
.prose ol:not([class]) li::marker { font-family: var(--font-mono); font-weight: 700; color: var(--ink); font-size: 0.875em; }
.prose pre {
  margin: 0 0 1.5rem;
  padding: 1rem 1.1rem;
  overflow-x: auto;
  background: var(--surface);
  border: 1px solid var(--rule-2);
  border-left: 3px solid var(--ink);
  font-size: 0.8125rem;
  line-height: 1.7;
  color: var(--ink);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.prose :not(pre) > code {
  padding: 0.1em 0.35em;
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-radius: 2px;
}
.prose table {
  width: 100%;
  margin: 0 0 1.5rem;
  border-collapse: collapse;
  border-top: 2px solid var(--ink);
  font-size: 0.9375rem;
}
.prose th, .prose td { text-align: left; vertical-align: top; padding: 0.75rem 1rem 0.75rem 0; border-bottom: 1px solid var(--rule-2); }
.prose th { font-family: var(--font-mono); font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.prose td { color: var(--ink-2); }
.prose td:last-child { font-family: var(--font-mono); font-size: 0.8125rem; color: var(--ink); }
@media (max-width: 37.5rem) {
  .prose table, .prose tbody, .prose tr, .prose td { display: block; width: 100%; }
  .prose thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .prose tr { padding: 0.75rem 0; border-bottom: 1px solid var(--rule-2); }
  .prose td { border: 0; padding: 0 0 0.25rem; }
}
.prose .steps { margin: 1.5rem 0 1rem; }
.prose .steps-compact { grid-template-columns: minmax(0, 1fr); gap: 0; }
.prose .steps-compact .step { padding: 0 0 1.5rem 3.5rem; }
.prose .steps-compact .step::before { left: 1.05rem; top: 2.25rem; bottom: 0; right: auto; width: 2px; height: auto; background: var(--rule-2); }
.prose .steps-compact .step:last-child::before { display: none; }
.prose .step h3 { margin: 0 0 0.4rem; padding-top: 0.35rem; color: var(--ink); }
.prose .step p { margin: 0; }
.prose .btn { margin-top: 1rem; }
.prose .note {
  padding: 0.9rem 1rem;
  border-left: 3px solid var(--accent);
  background: var(--surface);
  font-size: 0.9375rem;
}

.checklist {
  list-style: none;
  margin: 1.25rem 0 1.5rem;
  border-top: 2px solid var(--ink);
}
.checklist li {
  position: relative;
  padding: 0.9rem 0 0.9rem 3rem;
  border-bottom: 1px solid var(--rule-2);
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1rem;
  width: 1.2rem;
  height: 1.2rem;
  border: var(--line) solid var(--ink);
  background: var(--surface);
}
.checklist strong { display: block; color: var(--ink); font-weight: 650; }

/* FAQ page */
.faq-page { display: grid; gap: 2.5rem; }
@media (min-width: 64rem) {
  .faq-page { grid-template-columns: 17rem minmax(0, 1fr); gap: 4rem; align-items: start; }
  .toc { position: sticky; top: 6.5rem; }
}
.toc { border-top: 2px solid var(--ink); padding-top: 0.9rem; }
.toc-title { margin: 0 0 0.75rem; color: var(--ink-3); }
.toc ol { list-style: none; counter-reset: toc; }
.toc li { counter-increment: toc; }
.toc a {
  display: grid;
  grid-template-columns: 2.1rem 1fr;
  padding: 0.35rem 0;
  font-size: 0.9375rem;
  line-height: 1.35;
  color: var(--ink-2);
  text-decoration: none;
}
.toc a::before {
  content: "Q" counter(toc, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--ink-3);
  padding-top: 0.2rem;
}
.toc a:hover { color: var(--accent-text); }
.faq-full { max-width: 46rem; }
.qa { padding: 0 0 1.75rem; margin-bottom: 1.75rem; border-bottom: 1px solid var(--rule-2); scroll-margin-top: 1rem; }
.qa h2 {
  font-size: clamp(1.3rem, 1.15rem + 0.6vw, 1.6rem);
  font-weight: 700;
  font-stretch: 84%;
  line-height: 1.15;
  margin-bottom: 0.75rem;
}
.qa-no {
  display: block;
  margin-bottom: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--accent-text);
}
.qa p { color: var(--ink-2); margin-bottom: 0.75rem; }
.qa p:last-child { margin-bottom: 0; }

/* CTA card */
.cta-card {
  position: relative;
  margin: 3rem 0 0;
  padding: 1.75rem;
  border: var(--line) solid var(--ink);
  background: var(--surface);
  box-shadow: 6px 6px 0 0 var(--accent);
  max-width: 44rem;
}
.cta-card h2 {
  font-size: clamp(1.5rem, 1.25rem + 1vw, 2rem);
  font-weight: 740;
  font-stretch: 76%;
  line-height: 1.02;
  margin: 0 0 0.6rem;
  padding: 0;
  border: 0;
}
.cta-card h2::before { display: none; }
.cta-card p { color: var(--ink-2); }
.cta-note { margin: 1rem 0 0; font-size: 0.875rem; color: var(--ink-3) !important; }

/* Guide */
.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  list-style: none;
  margin-bottom: 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  color: var(--ink-3);
}
.breadcrumb li + li::before { content: "/"; margin-right: 0.4rem; color: var(--rule-2); }
.breadcrumb a { color: var(--ink-2); }
.breadcrumb [aria-current] { color: var(--ink-3); }
.guide-meta { margin-top: 1.75rem; max-width: 44rem; }
.guide-meta > div { grid-template-columns: 9rem minmax(0, 1fr); }
.guide-main { max-width: 44rem; }
.summary-box {
  margin: 0 0 2.5rem;
  padding: 1.25rem 1.4rem;
  border: var(--line) solid var(--ink);
  border-top-width: 4px;
  background: var(--surface);
}
.summary-box h2 {
  margin: 0 0 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-text);
}
.summary-box p { margin: 0; font-size: 1.0625rem; color: var(--ink); }
.independent-note {
  margin: 2.5rem 0 0;
  padding-top: 1rem;
  border-top: 1px dashed var(--rule-2);
  font-size: 0.875rem;
  color: var(--ink-3);
  max-width: 44rem;
}

/* Guides index */
.guide-list { list-style: none; border-top: 2px solid var(--ink); max-width: 56rem; }
.guide-card { padding: 1.5rem 0 1.75rem; border-bottom: 1px solid var(--rule-2); }
.gc-meta { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 0.6rem; color: var(--ink-3); text-transform: none; letter-spacing: 0.02em; }
.gc-code { padding: 0.05rem 0.4rem; background: var(--ink); color: var(--paper); font-weight: 700; }
.guide-card h2 {
  font-size: clamp(1.35rem, 1.2rem + 0.7vw, 1.75rem);
  font-weight: 720;
  font-stretch: 82%;
  line-height: 1.12;
  margin-bottom: 0.6rem;
}
.guide-card h2 a { color: var(--ink); text-decoration: none; }
.guide-card h2 a:hover { color: var(--accent-text); text-decoration: underline; }
.guide-card p { color: var(--ink-2); max-width: 44rem; }
.empty-state {
  margin: 1.5rem 0 0;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--ink-3);
  max-width: 44rem;
}
.empty-state:empty { display: none; }

/* 404 */
.not-found { padding-block: clamp(3rem, 2rem + 4vw, 6rem); }
.not-found h1 {
  font-size: clamp(2.3rem, 1.5rem + 3vw, 3.75rem);
  font-weight: 760;
  font-stretch: 70%;
  margin: 2rem 0 1rem;
}
.pendant {
  max-width: 28rem;
  border: var(--line) solid var(--ink);
  background: var(--surface);
  box-shadow: 6px 6px 0 0 var(--paper-2), 6px 6px 0 var(--line) var(--ink);
}
.pendant-bar {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  padding: 0.55rem 0.8rem;
  border-bottom: var(--line) solid var(--ink);
  background: var(--paper-2);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--ink-2);
}
.pendant-bar span:last-child { margin-left: auto; color: var(--ink-3); }
.pendant-screen {
  padding: 1.5rem;
  background-image:
    linear-gradient(var(--grid-minor) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-minor) 1px, transparent 1px);
  background-size: 12px 12px;
}
.pendant-code {
  margin: 0;
  font-family: var(--font-mono);
  font-size: clamp(4rem, 3rem + 5vw, 6.5rem);
  font-weight: 800;
  line-height: 1;
  color: var(--alarm);
  letter-spacing: -0.02em;
}
.nf-links { display: flex; flex-wrap: wrap; gap: 0.75rem; list-style: none; margin-top: 2rem; }

/* ---------- Footer: drawing title block ---------- */
.site-footer {
  padding: clamp(2.5rem, 2rem + 2vw, 4rem) 0 2rem;
  border-top: var(--line) solid var(--ink);
}
.titleblock {
  display: grid;
  grid-auto-flow: row dense;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--ink);
  border: var(--line) solid var(--ink);
}
.tb-cell {
  background: var(--paper);
  padding: 0.85rem 0.9rem 1rem;
  min-width: 0;
}
.tb-k { display: block; margin-bottom: 0.45rem; color: var(--ink-3); font-size: 0.625rem; }
.tb-v { margin: 0; font-size: 0.9375rem; font-weight: 550; line-height: 1.35; overflow-wrap: anywhere; }
.tb-v a { color: var(--ink); }
.tb-brand,
.tb-contact,
.tb-disclaimer,
.tb-meta { grid-column: 1 / -1; }
.brand-footer { margin-bottom: 0.5rem; }
.brand-footer .brand-mark { width: 1.6rem; height: 1.6rem; }
.brand-footer .brand-name { font-size: 1.05rem; }
.tb-brand .tb-v { font-weight: 450; color: var(--ink-2); font-size: 0.875rem; }
.tb-links { list-style: none; }
.tb-links li { margin-bottom: 0.25rem; }
.tb-links a { color: var(--ink); font-size: 0.9375rem; text-decoration: none; border-bottom: 1px solid var(--rule-2); }
.tb-links a:hover { border-bottom-color: var(--accent); color: var(--accent-text); }
.tb-disclaimer p { margin: 0; font-size: 0.8125rem; line-height: 1.55; color: var(--ink-2); max-width: 62rem; }
.tb-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.04em;
  color: var(--ink-3);
}
@media (min-width: 48rem) {
  .titleblock { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .tb-brand,
  .tb-contact { grid-column: span 2; }
  .tb-disclaimer,
  .tb-meta { grid-column: 1 / -1; }
}
@media (min-width: 72rem) {
  .titleblock { grid-template-columns: 1.7fr 1fr 1.35fr 0.9fr 1fr 1fr; grid-auto-flow: row; }
  .tb-brand,
  .tb-contact { grid-column: auto; }
  .tb-disclaimer { grid-column: 1 / 6; }
  .tb-meta { grid-column: 6 / 7; flex-direction: column; justify-content: flex-end; }
}

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * {
    animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }
  .hero-copy > :nth-child(2) { animation-delay: 0.06s; }
  .hero-copy > :nth-child(3) { animation-delay: 0.12s; }
  .hero-copy > :nth-child(4) { animation-delay: 0.18s; }
  .hero-copy > :nth-child(5) { animation-delay: 0.24s; }

  .arm .ln { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.4s cubic-bezier(0.55, 0.1, 0.3, 1) forwards; }
  .arm .ar-thin.ln { animation-delay: 0.45s; }
  .arm .ar-rot.ln { animation-duration: 0.8s; animation-delay: 1.35s; }
  .arm .ar-cl,
  .arm .ar-ctr,
  .arm .ar-tcp,
  .arm .ar-hatch { animation: fade 0.8s ease 1.1s both; }
  .arm .ar-lead,
  .arm .ar-dot,
  .arm .ar-lbl,
  .arm .ar-axis { animation: fade 0.6s ease 1.7s both; }

  .led::after {
    content: "";
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    border: 2px solid var(--ok);
    animation: pulse 2.4s ease-out infinite;
  }
  html { scroll-behavior: smooth; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes pulse { 0% { transform: scale(0.8); opacity: 0.9; } 80%, 100% { transform: scale(2.2); opacity: 0; } }

/* ---------- Print (checklists, guides, legal pages) ---------- */
@media print {
  :root { --paper: #fff; --surface: #fff; --paper-2: #fff; --ink: #000; --ink-2: #222; --ink-3: #444; }
  .site-header .main-nav, .header-cta, .lang-switch, .booking, .cta-card, .skip-link, .cta-row { display: none !important; }
  .site-header { position: static; }
  .doc-head, .drawing-frame, .cal-loading { background: none !important; }
  a { color: #000; }
  .prose a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 0.8em; }
}
