/* ==========================================================================
   Königer IT-Solutions — "Technisches Editorial"
   Structure / layout / components. Theme-neutral: every colour comes from a
   custom property defined in index-editorial-light.css / -dark.css.
   Design rules: strict grid, hairlines instead of cards, no gradients,
   no shadows, no glow. Sans for prose, serif italic for accents,
   mono for anything that is data (numbers, labels, metadata).
   No inline styles (CSP: style-src 'self'; style-src-attr 'none').
   ========================================================================== */

/* ── SELF-HOSTED TYPE ─────────────────────────────────────────────────────
   Latin subset only (covers de/en incl. umlauts); Thai falls back to the
   system Thai face. Served from our own origin, so CSP font-src 'self' holds.
   Inter is variable across 400-600 — one file for every weight we use. */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('/assets/fonts/inter-var.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Newsreader';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/newsreader-400-italic.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --font-m: "SFMono-Regular", Consolas, "Liberation Mono", "Courier New", monospace;
  --font-b: Inter, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-s: Newsreader, Georgia, "Iowan Old Style", "Times New Roman", serif;
  --mw: 1200px;
  --gx: clamp(1.25rem, 5vw, 4rem);
  --ease: cubic-bezier(.22, 1, .36, 1);

  /* Mono metadata: one setting, used everywhere */
  --meta: .66rem/1.4 var(--font-m);
  --meta-ls: .18em;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-b);
  font-weight: 400;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.menu-open { overflow: hidden; }

::selection { background: var(--ink); color: var(--bg); }

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

img, svg { max-width: 100%; }

/* Skip link — off-screen until focused, then a solid block above the nav */
.skip-link {
  position: fixed;
  top: .6rem;
  left: .6rem;
  z-index: 600;
  padding: .8rem 1.2rem;
  background: var(--ink);
  color: var(--bg);
  font: var(--meta);
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
  transform: translateY(calc(-100% - 1rem));
  transition: transform .2s var(--ease);
}
.skip-link:focus { transform: none; }

/* ── PRIMITIVES ───────────────────────────────────────────────────────── */

.c {
  max-width: var(--mw);
  margin: 0 auto;
  padding: 0 var(--gx);
  width: 100%;
}

.sep { width: 1px; height: 9px; flex: 0 0 1px; background: var(--rule-2); }
.sep-soft { background: var(--rule-2); }

/* ── SECTION HEADINGS ─────────────────────────────────────────────────── */

.s-label {
  font: var(--meta);
  letter-spacing: var(--meta-ls);
  text-transform: uppercase;
  color: var(--p);
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: 1.6rem;
}
.s-label::before {
  content: '';
  width: 1.6rem;
  height: 1px;
  background: var(--p);
  flex: 0 0 1.6rem;
}

.s-title {
  font-size: clamp(1.9rem, 3.5vw, 3rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -.022em;
  color: var(--ink);
  overflow-wrap: break-word;
}
/* The single accented moment per section */
.s-title em {
  font-family: var(--font-s);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -.01em;
  color: var(--p);
}

.s-title + .s-sub,
.s-title + .s-sub-spaced { margin-top: 1.5rem; }

.s-sub {
  color: var(--ink-2);
  font-size: 1rem;
  line-height: 1.75;
  max-width: 50ch;
}
.s-sub-spaced { margin-bottom: 3rem; }

/* ── REVEAL (fade only — no travel) ───────────────────────────────────── */

.rv { opacity: 0; transition: opacity .7s var(--ease); }
.rv.vis { opacity: 1; }
.rv.d1 { transition-delay: .06s; }
.rv.d2 { transition-delay: .12s; }
.rv.d3 { transition-delay: .18s; }
.rv.d4 { transition-delay: .24s; }
.rv.d5 { transition-delay: .30s; }

/* ── NAV ──────────────────────────────────────────────────────────────── */

nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  padding: .95rem var(--gx);
  display: flex;
  align-items: center;
  gap: 1.5rem;
  justify-content: space-between;
  background: var(--nav-bg);
  border-bottom: 1px solid var(--rule);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: padding .35s var(--ease);
}
nav.sc { padding: .7rem var(--gx); }

.nav-logo {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -.015em;
  color: var(--ink);
  text-decoration: none;
  display: flex;
  align-items: baseline;
  flex: 0 0 auto;
}
.nav-logo .dot { color: var(--p); }

.nav-coords {
  font: var(--meta);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-3);
  display: flex;
  align-items: center;
  gap: .8rem;
  margin-right: auto;
  margin-left: 1.75rem;
}

.nav-ul { display: flex; gap: 1.9rem; list-style: none; }
.nav-ul a {
  position: relative;
  font: var(--meta);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-2);
  text-decoration: none;
  transition: color .2s;
}
.nav-ul a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -5px;
  width: 100%; height: 1px;
  background: var(--p);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease);
}
.nav-ul a:hover { color: var(--ink); }
.nav-ul a:hover::after { transform: scaleX(1); }

.nav-btn {
  font: var(--meta);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--ink);
  text-decoration: none;
  padding: .7rem 1.2rem;
  white-space: nowrap;
  transition: background .22s;
}
.nav-btn:hover { background: var(--p); }

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  border: 1px solid var(--rule);
  background: transparent;
  color: var(--ink-2);
  cursor: pointer;
  flex: 0 0 auto;
  transition: color .2s, border-color .2s;
}
.theme-toggle:hover { color: var(--p); border-color: var(--p); }
.theme-icon { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

body[data-theme="dark"] .theme-icon--moon { display: none; }
body[data-theme="dark"] .theme-icon--sun { display: block; }
body[data-theme="light"] .theme-icon--sun { display: none; }
body[data-theme="light"] .theme-icon--moon { display: block; }

.lang-switch {
  display: flex;
  align-items: center;
  border: 1px solid var(--rule);
  flex: 0 0 auto;
}
.lang-switch__btn {
  font: var(--meta);
  letter-spacing: .1em;
  color: var(--ink-3);
  text-decoration: none;
  padding: .45rem .6rem;
  border-right: 1px solid var(--rule);
  transition: color .2s, background .2s;
}
.lang-switch__btn:last-child { border-right: none; }
.lang-switch__btn:hover { color: var(--ink); }
.lang-switch__btn.is-active { color: var(--bg); background: var(--ink); }

.hbg {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 34px; height: 32px;
  padding: 0 7px;
  border: 1px solid var(--rule);
  background: transparent;
  cursor: pointer;
}
.hbg span { display: block; height: 1px; background: var(--ink); }

/* ── MOBILE MENU ──────────────────────────────────────────────────────── */

.mob {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  padding: 2rem var(--gx);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s var(--ease), visibility .3s;
}
.mob.open { opacity: 1; visibility: visible; }

.mob-close {
  position: absolute;
  top: 1.3rem; right: var(--gx);
  font: var(--meta);
  letter-spacing: var(--meta-ls);
  color: var(--ink-3);
  background: none;
  border: none;
  cursor: pointer;
  padding: .5rem;
}
.mob-close:hover { color: var(--p); }

.mob > a {
  width: 100%;
  font-size: clamp(1.6rem, 7vw, 2.4rem);
  font-weight: 500;
  letter-spacing: -.02em;
  color: var(--ink);
  text-decoration: none;
  padding: 1rem 0;
  border-bottom: 1px solid var(--rule);
  transition: color .2s, padding-left .3s var(--ease);
}
.mob > a:first-of-type { border-top: 1px solid var(--rule); }
.mob > a:hover { color: var(--p); padding-left: .75rem; }

.mob .lang-switch--mobile { margin-top: 2.2rem; }
.mob .theme-toggle--mobile { margin-top: 1rem; }

/* ── HERO ─────────────────────────────────────────────────────────────── */

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100svh;
  padding: 8rem var(--gx) 4rem;
}

/* The bold variant's atmosphere has no place here */
.hero-glow,
.hero-dither,
.frame { display: none; }

/* Column rhythm, aligned to the content measure rather than the viewport */
.hero-grid {
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(calc(100% - 2 * var(--gx)), var(--mw));
  z-index: 0;
  pointer-events: none;
  background-image: linear-gradient(90deg, var(--rule-2) 1px, transparent 1px);
  background-size: calc(100% / 6) 100%;
}

/* HUD bars become plain metadata rules */

.hud-bar,
.hero-status {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--mw);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .7rem 0;
  font: var(--meta);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.hud-bar { border-bottom: 1px solid var(--rule); margin-bottom: clamp(3rem, 8vh, 6rem); }
.hero-status { border-top: 1px solid var(--rule); margin-top: clamp(3rem, 8vh, 6rem); }

.hud-bar-l, .hud-bar-r,
.status-l, .status-r {
  display: flex;
  align-items: center;
  gap: .7rem;
  min-width: 0;
}
.hud-bar-r, .status-r { justify-content: flex-end; text-align: right; }

.status-dot {
  width: 5px; height: 5px;
  flex: 0 0 5px;
  border-radius: 50%;
  background: var(--ok);
}

.bars { display: flex; align-items: flex-end; gap: 2px; height: 10px; }
.bars span { width: 2px; background: var(--ink-3); }
.bar-4  { height: 3px; }
.bar-5  { height: 4px; }
.bar-6  { height: 5px; }
.bar-7  { height: 6px; }
.bar-8  { height: 7px; }
.bar-9  { height: 8px; }
.bar-10 { height: 9px; }
.bar-12 { height: 10px; }

/* Hero content */

.hero-c {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--mw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}

.hero-topline {
  display: flex;
  align-items: center;
  gap: .8rem;
  margin-bottom: 2rem;
  font: var(--meta);
  letter-spacing: var(--meta-ls);
  text-transform: uppercase;
  color: var(--p);
}
.hero-topline-bar { width: 1.6rem; height: 1px; background: var(--p); flex: 0 0 1.6rem; }
.hero-topline-fill { flex: 1; height: 1px; background: var(--rule); }

.hero-h1 {
  font-size: clamp(2.2rem, 4.6vw, 4rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -.03em;
  color: var(--ink);
  margin-bottom: 2rem;
  overflow-wrap: break-word;
}
.hero-h1 .p {
  display: block;
  font-family: var(--font-s);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -.015em;
  color: var(--p);
}
.hero-h1 .dim {
  display: block;
  margin-top: 1.3rem;
  font-size: clamp(.95rem, 1.3vw, 1.15rem);
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: 0;
  color: var(--ink-2);
  max-width: 34ch;
}

.hero-p {
  color: var(--ink-2);
  font-size: 1.02rem;
  line-height: 1.8;
  max-width: 52ch;
  margin-bottom: 2.6rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--rule);
}

.hero-btns { display: flex; flex-wrap: wrap; gap: .8rem; }

.btn-p,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  padding: .95rem 1.6rem;
  font: var(--meta);
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--ink);
  transition: background .22s, color .22s, border-color .22s;
}
.btn-p { background: var(--ink); color: var(--bg); }
.btn-p:hover { background: var(--p); border-color: var(--p); }
.btn-p svg { transition: transform .25s var(--ease); }
.btn-p:hover svg { transform: translateX(3px); }

.btn-ghost { background: transparent; color: var(--ink); border-color: var(--rule-strong); }
.btn-ghost:hover { border-color: var(--ink); }

/* Terminal — flattened to a hairline listing */

.hero-right { display: flex; justify-content: flex-end; }

.terminal {
  width: 100%;
  max-width: 480px;
  background: var(--code-bg);
  border: 1px solid var(--rule-strong);
}

.term-bar {
  display: flex;
  align-items: center;
  gap: .8rem;
  padding: .6rem .95rem;
  border-bottom: 1px solid var(--rule);
}
.term-dots { display: flex; gap: 5px; }
.term-dots span { width: 5px; height: 5px; border-radius: 50%; background: var(--ink-3); }
.term-title {
  font: var(--meta);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.term-body {
  padding: 1.2rem .95rem 1.4rem;
  font-family: var(--font-m);
  font-size: .72rem;
  line-height: 2;
}
.term-line { display: flex; gap: .5rem; white-space: pre-wrap; word-break: break-word; }
.term-line .prompt { color: var(--p); flex: 0 0 auto; }
.term-line .cmd { color: var(--ink); }
.term-line .out { color: var(--ink-2); }
.term-line .ok { color: var(--ok); }
.term-line .dim { color: var(--ink-3); }

.cursor {
  display: inline-block;
  width: 6px; height: 1em;
  margin-left: 2px;
  vertical-align: text-bottom;
  background: var(--p);
  animation: blink 1.2s steps(2, start) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* ── MARQUEE ──────────────────────────────────────────────────────────── */

.mq {
  overflow: hidden;
  padding: .9rem 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.mq-track {
  display: flex;
  align-items: center;
  gap: 2.4rem;
  width: max-content;
  animation: scroll 70s linear infinite;
}
.mq:hover .mq-track { animation-play-state: paused; }
@keyframes scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.mq-item {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  font: var(--meta);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-3);
  white-space: nowrap;
}
.mq-dot { width: 3px; height: 3px; flex: 0 0 3px; border-radius: 50%; background: var(--p); }

/* ── SERVICES — the numbered register ─────────────────────────────────── */

.srv { padding: clamp(4.5rem, 10vw, 8rem) 0 clamp(3rem, 6vw, 5rem); }

.srv-hd {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .75fr);
  gap: 2.5rem;
  align-items: end;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.srv-hd .s-sub { justify-self: end; }

.srv-grid { border-top: 1px solid var(--rule-strong); }

.srv-card {
  display: grid;
  grid-template-columns: 3.5rem 2.4rem minmax(0, .9fr) minmax(0, 1.25fr);
  gap: 1.5rem;
  align-items: start;
  padding: 1.7rem 0;
  border-bottom: 1px solid var(--rule);
  transition: opacity .7s var(--ease), background .25s;
}
.srv-card:hover { background: var(--row-hover); }

.srv-n {
  font: var(--meta);
  letter-spacing: .1em;
  color: var(--p);
  padding-top: .3rem;
}

.srv-icon {
  width: 24px; height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-3);
  transition: color .25s;
}
.srv-card:hover .srv-icon { color: var(--p); }
.srv-icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }

.srv-h {
  font-size: 1.08rem;
  font-weight: 600;
  letter-spacing: -.014em;
  line-height: 1.35;
  color: var(--ink);
}
.srv-p {
  color: var(--ink-2);
  font-size: .92rem;
  line-height: 1.75;
}

.srv-rule { display: none; }

/* ── AUTOMATION — four hairline columns ───────────────────────────────── */

.automation {
  padding: clamp(4rem, 8vw, 6.5rem) 0;
  border-top: 1px solid var(--rule-strong);
}

.automation-copy { margin-bottom: clamp(2.5rem, 5vw, 4rem); }

.automation-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--rule-strong);
}

.automation-card {
  padding: 1.8rem 1.5rem 2rem 0;
  border-right: 1px solid var(--rule);
  transition: opacity .7s var(--ease);
}
.automation-card:not(:first-child) { padding-left: 1.5rem; }
.automation-card:last-child { border-right: none; }

.automation-n {
  display: block;
  font: var(--meta);
  letter-spacing: .1em;
  color: var(--p);
  margin-bottom: 1.2rem;
}
.automation-h {
  font-size: .98rem;
  font-weight: 600;
  letter-spacing: -.012em;
  line-height: 1.4;
  color: var(--ink);
  margin-bottom: .6rem;
}
.automation-p {
  color: var(--ink-2);
  font-size: .87rem;
  line-height: 1.72;
}

/* ── STATS ────────────────────────────────────────────────────────────── */

.stats {
  padding: 0 var(--gx);
  border-top: 1px solid var(--rule-strong);
}

.stats-g {
  max-width: var(--mw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.stat {
  display: flex;
  flex-direction: column;
  gap: .6rem;
  padding: clamp(2.2rem, 5vw, 3.4rem) 1.5rem clamp(2.2rem, 5vw, 3.4rem) 0;
  border-right: 1px solid var(--rule);
  transition: opacity .7s var(--ease);
}
.stat:not(:first-child) { padding-left: 1.5rem; }
.stat:last-child { border-right: none; }

.stat-n {
  display: flex;
  align-items: baseline;
  font-size: clamp(2.2rem, 4.4vw, 3.2rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -.04em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.stat-sfx { color: var(--p); font-size: .6em; margin-left: .06em; }
.stat-l {
  font: var(--meta);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* ── ABOUT / PROCESS ──────────────────────────────────────────────────── */

.about {
  padding: clamp(4rem, 8vw, 6.5rem) 0 clamp(4.5rem, 9vw, 7rem);
  border-top: 1px solid var(--rule-strong);
}

.about-in {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: start;
}

/* Spec panel — a plain data table, no terminal chrome */
.about-visual {
  position: sticky;
  top: 6.5rem;
  border: 1px solid var(--rule-strong);
  background: var(--code-bg);
  font-family: var(--font-m);
}

.spec-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .85rem 1rem;
  border-bottom: 1px solid var(--rule-strong);
  font: var(--meta);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.spec-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .68rem 1rem;
  border-bottom: 1px solid var(--rule);
  font-size: .74rem;
  transition: background .22s;
}
.spec-row:last-child { border-bottom: none; }
.spec-row:hover { background: var(--row-hover); }

.spec-k { font: var(--meta); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.spec-v { color: var(--ink-2); text-align: right; }
.spec-v.hi { color: var(--ink); }
.spec-v.ok, .spec-header .ok { color: var(--ok); }

/* Process — numbered rows on hairlines */

.steps { border-top: 1px solid var(--rule-strong); }

.step {
  display: grid;
  grid-template-columns: 3.5rem minmax(0, 1fr);
  gap: 1.5rem;
  padding: 1.6rem 0;
  border-bottom: 1px solid var(--rule);
  transition: opacity .7s var(--ease), background .25s;
}
.step:hover { background: var(--row-hover); }

.step-n {
  font: var(--meta);
  letter-spacing: .1em;
  color: var(--p);
  padding-top: .25rem;
}

.step-h {
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: -.014em;
  color: var(--ink);
  margin-bottom: .35rem;
}
.step-p {
  color: var(--ink-2);
  font-size: .9rem;
  line-height: 1.75;
  max-width: 58ch;
}

/* ── CONTACT ──────────────────────────────────────────────────────────── */

.contact {
  padding: clamp(4rem, 8vw, 6.5rem) 0 clamp(3.5rem, 7vw, 5.5rem);
  border-top: 1px solid var(--rule-strong);
}

.contact-in {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: start;
}

.contact-copy { position: sticky; top: 6.5rem; }

.clinks {
  margin-top: 2.5rem;
  border-top: 1px solid var(--rule-strong);
}

.clink {
  display: grid;
  grid-template-columns: 2.2rem minmax(0, 1fr);
  gap: 1.1rem;
  align-items: center;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--rule);
  color: var(--ink);
  text-decoration: none;
  font-size: .95rem;
  transition: opacity .7s var(--ease), background .25s, padding-left .3s var(--ease);
}
.clink:hover { background: var(--row-hover); padding-left: .6rem; }

/* The location is information, not a destination — no link affordance */
.clink--static { cursor: default; }
.clink--static:hover { background: none; padding-left: 0; }
.clink--static:hover .clink-ico { color: var(--ink-3); }

.clink-ico {
  width: 22px; height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-3);
  transition: color .25s;
}
.clink:hover .clink-ico { color: var(--p); }
.clink-ico svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }

.clink-lbl {
  display: block;
  font: var(--meta);
  letter-spacing: var(--meta-ls);
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: .2rem;
}

/* Form — underlines, not boxes */

.cform {
  padding: clamp(1.6rem, 3vw, 2.4rem);
  border: 1px solid var(--rule-strong);
  background: var(--surface);
}

.cform-title {
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -.018em;
  color: var(--ink);
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--rule-strong);
}

.fgrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.6rem 1.4rem;
}
.fg { display: flex; flex-direction: column; gap: .45rem; min-width: 0; }
.fg.full { grid-column: 1 / -1; }

.fg label {
  font: var(--meta);
  letter-spacing: var(--meta-ls);
  text-transform: uppercase;
  color: var(--ink-3);
}

.fg input,
.fg select,
.fg textarea {
  width: 100%;
  padding: .6rem 0;
  border: none;
  border-bottom: 1px solid var(--rule-strong);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font-family: var(--font-b);
  font-size: .95rem;
  line-height: 1.5;
  transition: border-color .22s;
}
.fg textarea { resize: vertical; min-height: 110px; }
.fg select {
  cursor: pointer;
  appearance: none;
  padding-right: 1.6rem;
  background-image: var(--select-arrow);
  background-repeat: no-repeat;
  background-position: right .2rem center;
  background-size: 11px;
}
.fg option { background: var(--bg); color: var(--ink); }

.fg input::placeholder,
.fg textarea::placeholder { color: var(--ink-3); }

.fg input:focus,
.fg select:focus,
.fg textarea:focus {
  outline: none;
  border-bottom-color: var(--p);
  border-bottom-width: 2px;
  padding-bottom: calc(.6rem - 1px);
}

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.f-help,
.f-note {
  font-size: .8rem;
  line-height: 1.65;
  color: var(--ink-3);
}
.f-note {
  margin-top: 1rem;
  font: var(--meta);
  letter-spacing: .08em;
  line-height: 1.7;
}

.f-submit {
  width: 100%;
  margin-top: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .7rem;
  padding: 1rem 1.6rem;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--bg);
  font: var(--meta);
  letter-spacing: .14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .22s, border-color .22s, opacity .22s;
}
.f-submit svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s var(--ease); }
.f-submit:hover:not(:disabled) { background: var(--p); border-color: var(--p); }
.f-submit:hover:not(:disabled) svg { transform: translateX(3px); }
.f-submit:disabled { opacity: .5; cursor: progress; }

.f-status {
  margin-top: 1rem;
  padding: .8rem 1rem;
  border-left: 2px solid var(--rule-strong);
  font-size: .87rem;
  line-height: 1.65;
  color: var(--ink-2);
}
.f-status[data-state="success"] { border-left-color: var(--ok); color: var(--ok); }
.f-status[data-state="error"] { border-left-color: var(--err); color: var(--err); }

/* ── FOOTER ───────────────────────────────────────────────────────────── */

footer {
  padding: 2.4rem var(--gx);
  border-top: 1px solid var(--rule-strong);
}

.ft-in {
  max-width: var(--mw);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.ft-logo {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -.015em;
  color: var(--ink);
}
.ft-logo .dot { color: var(--p); }

.ft-copy {
  font: var(--meta);
  letter-spacing: .1em;
  color: var(--ink-3);
}

.ft-links { display: flex; gap: 1.5rem; list-style: none; }
.ft-links a {
  font: var(--meta);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-3);
  text-decoration: none;
  transition: color .2s;
}
.ft-links a:hover { color: var(--p); }

/* ── RESPONSIVE ───────────────────────────────────────────────────────── */

@media (max-width: 1180px) {
  .nav-coords { display: none; }
  .nav-ul { gap: 1.4rem; }
}

@media (max-width: 1000px) {
  .hero { min-height: auto; padding-top: 6.5rem; }
  .hero-c { grid-template-columns: minmax(0, 1fr); gap: 2.5rem; }
  .hero-right { justify-content: flex-start; }
  .terminal { max-width: 100%; }
  .hero-grid { display: none; }
  .srv-card { grid-template-columns: 3rem 2rem minmax(0, 1fr); }
  .srv-p { grid-column: 3; }
  .automation-grid,
  .stats-g { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .automation-card:nth-child(2n) { border-right: none; }
  .automation-card:nth-child(-n+2) { border-bottom: 1px solid var(--rule); }
  .stat:nth-child(2n) { border-right: none; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--rule); }
  .about-in,
  .contact-in { grid-template-columns: minmax(0, 1fr); }
  .about-visual,
  .contact-copy { position: static; }
}

@media (max-width: 900px) {
  .nav-ul,
  .nav-btn,
  .lang-switch--desktop,
  .theme-toggle--desktop { display: none; }
  .hbg { display: flex; }
  .nav-logo { margin-right: auto; }
  .srv-hd { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .srv-hd .s-sub { justify-self: start; }
  .hud-bar-r span:first-child { display: none; }
}

@media (max-width: 720px) {
  .srv-card {
    grid-template-columns: 2.6rem minmax(0, 1fr);
    gap: .5rem 1rem;
  }
  .srv-icon { display: none; }
  .srv-h,
  .srv-p { grid-column: 2; }
  .automation-grid,
  .stats-g { grid-template-columns: minmax(0, 1fr); }
  .automation-card,
  .stat {
    border-right: none;
    border-bottom: 1px solid var(--rule);
    padding-left: 0;
    padding-right: 0;
  }
  .automation-card:not(:first-child),
  .stat:not(:first-child) { padding-left: 0; }
  .automation-card:last-child,
  .stat:last-child { border-bottom: none; }
  .fgrid { grid-template-columns: minmax(0, 1fr); }
  .step { grid-template-columns: 2.6rem minmax(0, 1fr); gap: 1rem; }
  .ft-in { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 520px) {
  .hud-bar-r,
  .status-r { display: none; }
  .term-body { font-size: .66rem; }
}

/* ── MOTION PREFERENCES ───────────────────────────────────────────────── */

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

/* ── PRINT ────────────────────────────────────────────────────────────── */

@media print {
  nav, .mob, .mq, .hero-grid, .hud-bar, .hero-status { display: none !important; }
  body { background: #fff; color: #000; }
  .rv { opacity: 1; }
}
