/* ==========================================================================
   ACHILON Security — design system
   Palette "Obsidian → Bone" (brand moodboard, 31.10.2026) with a restrained
   champagne accent (brand deck). Palettes are not final: change tokens below.
   Breakpoints: 1680+ wide · ≤1100 small desktop · ≤900 tablet · ≤640 phone · ≤400 small phone
   ========================================================================== */

@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("../fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("../fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

:root {
  --obsidian: #0a0a0b;
  --charcoal: #131518;
  --charcoal-2: #1a1d21;
  --slate: #2e3338;
  --stone: #6b7278;
  --stone-light: #9aa0a6;
  --bone: #d6d7d5;
  --ivory: #f3f2ee;
  --white: #fafaf8;
  --champagne: #c9b99a;
  --champagne-dark: #7d6a4b;
  --ok: #7fb39a;
  --error: #e0a395;

  --bg: var(--obsidian);
  --fg: var(--bone);
  --fg-strong: var(--white);
  --muted: var(--stone-light);
  --line: rgba(214, 215, 213, 0.12);
  --line-strong: rgba(214, 215, 213, 0.28);
  --surface: rgba(255, 255, 255, 0.025);

  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;

  --wrap: 1240px;
  --gutter: clamp(20px, 4vw, 48px);
  --section: clamp(80px, 10vw, 160px);
  --radius: 2px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --header-h: 76px;
}
/* Respect notches / rounded corners in landscape (viewport-fit=cover). */
@supports (padding: max(0px)) {
  :root { --gutter: max(clamp(20px, 4vw, 48px), env(safe-area-inset-left), env(safe-area-inset-right)); }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--fg);
  font: 400 17px/1.65 var(--font);
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration-color: var(--line-strong); text-underline-offset: 0.2em; }
a:hover { text-decoration-color: currentColor; }
p { margin: 0 0 1.1em; }
strong { color: var(--fg-strong); font-weight: 600; }
ul, ol { margin: 0; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--champagne); color: var(--obsidian); }
:focus-visible { outline: 1px solid var(--champagne); outline-offset: 4px; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.wrap-narrow { --wrap: 820px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--bone); color: var(--obsidian); padding: 10px 16px; }
.skip:focus { top: 16px; }
html:not(.js) .js-only { display: none !important; }

/* ---------- Typography (fluid: fits 320px phones up to 4K) ---------- */
.display, .h1, .h2, .h3, .h4 { color: var(--fg-strong); margin: 0 0 0.5em; font-weight: 300; letter-spacing: -0.025em; overflow-wrap: break-word; hyphens: auto; -webkit-hyphens: auto; }
.display { font-size: clamp(2.6rem, 8.6vw + 0.4rem, 7rem); line-height: 0.98; letter-spacing: -0.04em; hyphens: manual; }
.display .soft, .h1 .soft { color: var(--stone-light); }
.h1 { font-size: clamp(2.1rem, 4.6vw + 0.6rem, 4.6rem); line-height: 1.05; letter-spacing: -0.035em; max-width: 16ch; }
.h2 { font-size: clamp(1.75rem, 2.9vw + 0.7rem, 3.15rem); line-height: 1.1; }
.h3 { font-size: clamp(1.3rem, 1vw + 0.95rem, 1.6rem); line-height: 1.25; font-weight: 400; letter-spacing: -0.015em; }
.h4 { font-size: 1.12rem; line-height: 1.35; font-weight: 500; letter-spacing: -0.01em; }
.lead { font-size: clamp(1.08rem, 0.5vw + 0.95rem, 1.3rem); line-height: 1.6; color: var(--fg); font-weight: 300; max-width: 60ch; }
.mono { font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.08em; }
.muted { color: var(--muted); }
.kicker, .label {
  font-family: var(--mono); font-size: 0.74rem; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--champagne); margin: 0 0 1.4em;
}
.label { color: var(--muted); letter-spacing: 0.16em; margin-bottom: 0.9em; }
.eyebrow { display: flex; align-items: center; gap: 14px; font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); margin: 0 0 1.6em; }
.eyebrow-num { color: var(--champagne); }
.eyebrow-line { width: 36px; height: 1px; background: currentColor; opacity: 0.5; flex: none; }
.note { font-size: 0.88rem; color: var(--muted); border-left: 1px solid var(--champagne); padding-left: 14px; max-width: 62ch; }

/* ---------- Brand mark & logo ---------- */
.mark { width: 28px; height: 28px; flex: none; }
.mark-l { fill: var(--stone); }
.mark-r { fill: var(--bone); }
.mark-xs { width: 14px; height: 14px; }
.mark-sm { width: 22px; height: 22px; }
.mark-md { width: 44px; height: 44px; margin-bottom: 24px; }
.logo { display: inline-flex; align-items: center; gap: 14px; color: var(--fg-strong); }
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-word { font-weight: 300; font-size: 1.12rem; letter-spacing: 0.42em; margin-right: -0.42em; }
.logo-sub { font-family: var(--mono); font-size: 0.56rem; letter-spacing: 0.42em; color: var(--muted); margin-top: 6px; }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 48px; padding: 14px 26px;
  border: 1px solid var(--bone); background: var(--bone); color: var(--obsidian); font: 500 0.95rem/1.2 var(--font);
  letter-spacing: 0.01em; text-decoration: none; text-align: center; border-radius: var(--radius); cursor: pointer;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.btn .arrow { width: 18px; height: 18px; flex: none; transition: transform 0.3s var(--ease); }
.btn-ghost { background: transparent; color: var(--fg-strong); border-color: var(--line-strong); }
.btn-small { min-height: 40px; padding: 9px 18px; font-size: 0.85rem; }
.link-arrow { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--fg-strong); text-decoration: none; font-weight: 500; font-size: 0.95rem; }
.link-arrow .arrow { width: 18px; height: 18px; flex: none; transition: transform 0.3s var(--ease); }
.actions, .hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; margin-top: 36px; }
@media (hover: hover) {
  .btn:hover { background: var(--white); border-color: var(--white); }
  .btn:hover .arrow, .link-arrow:hover .arrow { transform: translateX(4px); }
  .btn-ghost:hover { background: transparent; border-color: var(--bone); }
}

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h);
  padding-top: env(safe-area-inset-top);
  border-bottom: 1px solid transparent;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease);
}
.site-header.is-scrolled, .nav-open .site-header {
  background: rgba(10, 10, 11, 0.88); border-bottom-color: var(--line);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.header-logo { text-decoration: none; display: inline-flex; min-height: 44px; align-items: center; }
.site-nav { display: flex; align-items: center; gap: clamp(20px, 3vw, 40px); }
.site-nav ul { list-style: none; display: flex; gap: clamp(18px, 2.2vw, 30px); }
.site-nav ul a { font-size: 0.92rem; text-decoration: none; color: var(--fg); position: relative; padding: 6px 0; white-space: nowrap; }
.site-nav ul a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px; background: var(--champagne); transition: right 0.35s var(--ease); }
.site-nav ul a[aria-current="page"]::after { right: 0; }
.site-nav ul a[aria-current="page"] { color: var(--fg-strong); }
@media (hover: hover) { .site-nav ul a:hover::after { right: 0; } }
.nav-aside { display: flex; align-items: center; gap: 22px; }
.lang-switch { display: inline-flex; gap: 2px; font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.12em; }
.lang-switch > a, .lang-switch > span { display: inline-flex; align-items: center; min-height: 36px; padding: 6px 8px; text-decoration: none; }
.lang-switch > a { color: var(--muted); }
.lang-switch > a:hover { color: var(--fg-strong); }
.lang-active { color: var(--fg-strong); box-shadow: inset 0 -1px 0 var(--champagne); }
.nav-toggle { display: none; }

@media (max-width: 1020px) {
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; margin-right: -6px;
    background: none; border: 1px solid var(--line-strong); border-radius: var(--radius); cursor: pointer; color: var(--fg-strong);
  }
  .nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
    display: block; width: 18px; height: 1px; background: currentColor; position: relative; transition: transform 0.3s var(--ease), background 0.3s;
  }
  .nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
  .nav-toggle-bars::before { top: -6px; }
  .nav-toggle-bars::after { top: 6px; }
  .nav-open .nav-toggle-bars { background: transparent; }
  .nav-open .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
  .nav-open .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }
  .site-nav {
    position: fixed; top: calc(var(--header-h) + env(safe-area-inset-top)); left: 0; right: 0; height: calc(100dvh - var(--header-h) - env(safe-area-inset-top));
    background: var(--obsidian); flex-direction: column; align-items: stretch; justify-content: space-between;
    padding: 24px var(--gutter) calc(32px + env(safe-area-inset-bottom)); gap: 32px; overflow-y: auto; overscroll-behavior: contain;
    opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity 0.3s, transform 0.3s var(--ease), visibility 0.3s;
  }
  .nav-open .site-nav { opacity: 1; visibility: visible; transform: none; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav ul a { display: block; font-size: clamp(1.4rem, 5vw, 1.9rem); font-weight: 300; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .site-nav ul a::after { display: none; }
  .site-nav ul a[aria-current="page"] { color: var(--champagne); }
  .nav-aside { justify-content: space-between; flex-wrap: wrap; }
  .nav-aside .btn { flex: 1 1 auto; max-width: 280px; min-height: 48px; }
  .lang-switch > a, .lang-switch > span { min-height: 48px; min-width: 48px; justify-content: center; font-size: 0.85rem; }
  html.nav-open, html.nav-open body { overflow: hidden; }
  /* Without JavaScript the menu cannot open: show links inline instead of a hidden drawer. */
  html:not(.js) .site-header { position: absolute; height: auto; }
  html:not(.js) .header-inner { flex-wrap: wrap; padding: 14px 0; }
  html:not(.js) .nav-toggle { display: none; }
  html:not(.js) .site-nav { position: static; height: auto; opacity: 1; visibility: visible; transform: none; padding: 0; background: none; width: 100%; }
  html:not(.js) .site-nav ul { flex-direction: row; flex-wrap: wrap; gap: 6px 18px; }
  html:not(.js) .site-nav ul a { font-size: 0.95rem; border: 0; padding: 6px 0; }
}

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 680px; min-height: clamp(640px, 100svh, 1000px); display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; padding-top: calc(var(--header-h) + env(safe-area-inset-top) + 40px); }
.hero-grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(214, 215, 213, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(214, 215, 213, 0.05) 1px, transparent 1px);
  background-size: 96px 96px;
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 70% 40%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 70% at 70% 40%, #000 20%, transparent 75%);
}
.hero-inner { position: relative; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 48px; align-items: center; flex: 1; }
.hero-lead { margin-top: 28px; }
.hero-visual { position: relative; justify-self: end; width: min(100%, 460px); aspect-ratio: 1; }
.hero-mark { width: 100%; height: 100%; }
.hero-mark .mark-l { fill: var(--slate); }
.hero-mark .mark-r { fill: rgba(214, 215, 213, 0.92); }
.hero-card {
  position: absolute; left: -22%; bottom: -4%; width: min(330px, 80%);
  background: rgba(19, 21, 24, 0.84); border: 1px solid var(--line-strong); border-radius: var(--radius);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); padding: 18px 20px 14px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45);
}
.hero-card-head { display: flex; align-items: center; gap: 10px; color: var(--muted); padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.hero-log { list-style: none; padding: 10px 0; }
.hero-log li { display: grid; grid-template-columns: 52px 1fr; gap: 10px; font-size: 0.84rem; padding: 6px 0; color: var(--fg); }
.hero-log .mono { color: var(--muted); padding-top: 2px; }
.hero-card-foot { display: flex; align-items: center; gap: 8px; color: var(--champagne); padding-top: 10px; border-top: 1px solid var(--line); }
.hero-card-foot .check { width: 16px; height: 16px; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--stone); display: inline-block; flex: none; }
.dot-ok { background: var(--ok); box-shadow: 0 0 0 4px rgba(127, 179, 154, 0.12); }
.hero-foot { display: flex; justify-content: space-between; align-items: center; gap: 16px 24px; flex-wrap: wrap; border-top: 1px solid var(--line); margin-top: clamp(40px, 7vw, 96px); padding: 26px 0 30px; }
.pillars { list-style: none; display: flex; flex-wrap: wrap; gap: 12px clamp(24px, 5vw, 64px); }
.pillars li { display: flex; gap: 12px; align-items: baseline; color: var(--fg-strong); font-size: 0.95rem; }
.pillars .mono { color: var(--champagne); }
.tagline { color: var(--muted); text-transform: uppercase; letter-spacing: 0.28em; margin: 0; }

/* ---------- Page hero ---------- */
.page-hero { padding: calc(var(--header-h) + env(safe-area-inset-top) + clamp(64px, 10vw, 140px)) 0 clamp(56px, 8vw, 110px); border-bottom: 1px solid var(--line); position: relative; }
.page-hero .lead { margin-top: 24px; }
.page-hero-compact { padding-bottom: clamp(44px, 6vw, 72px); }
.page-hero-split .h1 { max-width: 14ch; }
.badge { display: inline-flex; align-items: center; gap: 10px; margin-top: 28px; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line); padding: 8px 12px; }
.badge .dot { background: var(--champagne); }
.toc { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 44px; }
.toc a { display: inline-flex; align-items: center; min-height: 44px; font-size: 0.85rem; text-decoration: none; border: 1px solid var(--line); padding: 9px 14px; color: var(--fg); transition: border-color 0.25s, color 0.25s; }
@media (hover: hover) { .toc a:hover { border-color: var(--bone); color: var(--fg-strong); } }

/* ---------- Sections ---------- */
.section { padding: var(--section) 0; position: relative; }
.section-tight { padding-top: clamp(56px, 8vw, 110px); }
.section-alt { background: var(--charcoal); }
.section-panel { background: var(--charcoal); border-block: 1px solid var(--line); }
.section-head { max-width: 780px; margin-bottom: clamp(40px, 6vw, 80px); position: relative; }
.section-head .link-arrow { margin-top: 8px; }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); }
.split-center { align-items: center; }
.split > :first-child .h2 { max-width: 14ch; }

/* Light sections invert the palette. */
.section-light {
  --fg: #2b2f33; --fg-strong: var(--obsidian); --muted: #5a6067; --line: rgba(10, 10, 11, 0.12); --line-strong: rgba(10, 10, 11, 0.3);
  --surface: rgba(10, 10, 11, 0.02);
  background: var(--ivory); color: var(--fg);
}
.section-light .kicker, .section-light .eyebrow-num { color: var(--champagne-dark); }
.section-light .btn { background: var(--obsidian); color: var(--white); border-color: var(--obsidian); }
.section-light .btn-ghost { background: transparent; color: var(--obsidian); border-color: var(--line-strong); }
.section-light .mark-l { fill: var(--stone-light); }
.section-light .mark-r { fill: var(--obsidian); }
.section-light .note { border-color: var(--champagne-dark); }
.section-light ::selection { background: var(--obsidian); color: var(--white); }
@media (hover: hover) { .section-light .btn:hover { background: var(--slate); border-color: var(--slate); } }

/* ---------- Hairline grids (borders on items, so fading items never flash) ---------- */
.cards, .industries, .principles, .group-grid { display: grid; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.cards > *, .industries > *, .principles > *, .group-grid > * { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); min-width: 0; }

/* ---------- Cards ---------- */
.cards-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cards-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { background: var(--bg); padding: clamp(24px, 3vw, 40px); display: flex; flex-direction: column; position: relative; }
.section-light .card { background: var(--ivory); }
.section-alt .card, .section-panel .card { background: var(--charcoal); }
.card p { color: var(--muted); font-size: 0.97rem; margin-bottom: 0; }
.card-icon { display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center; border: 1px solid var(--line-strong); color: var(--champagne); margin-bottom: 28px; flex: none; }
.section-light .card-icon { color: var(--champagne-dark); }
.card-icon .icon, .card-icon .check { width: 22px; height: 22px; }
.card-icon-lg { width: 56px; height: 56px; }
.card-icon-lg .icon { width: 26px; height: 26px; }
.card-link { text-decoration: none; transition: background 0.35s var(--ease); }
.card-more { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 28px; font-size: 0.88rem; color: var(--fg-strong); }
.card-more .arrow { width: 16px; height: 16px; transition: transform 0.3s var(--ease); }
@media (hover: hover) {
  .card-link:hover { background: var(--charcoal); }
  .card-link:hover .card-more .arrow { transform: translateX(4px); }
}

/* ---------- Delivery models ---------- */
.models { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 3vw, 48px); }
.model { border-top: 1px solid var(--obsidian); padding-top: 28px; display: flex; flex-direction: column; }
.model-num { font-size: 0.85rem; color: var(--champagne-dark); margin-bottom: 18px; }
.model p { color: var(--fg); }
.model-contract { margin-top: auto; padding-top: 18px; font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-strong); border-top: 1px solid var(--line); }
.model-pending { color: var(--champagne-dark); }

/* ---------- Industries ---------- */
.industry-list { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(24px, 4vw, 64px); border-top: 1px solid var(--line); }
.industry-list a { display: grid; grid-template-columns: 40px minmax(0, 1fr) 20px; gap: 18px; align-items: center; min-height: 64px; padding: 20px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--fg-strong); font-size: clamp(1.02rem, 0.4vw + 0.95rem, 1.15rem); font-weight: 300; transition: padding 0.35s var(--ease), color 0.3s; }
.industry-list .arrow { width: 18px; height: 18px; color: var(--muted); transition: transform 0.3s var(--ease), color 0.3s; }
@media (hover: hover) {
  .industry-list a:hover { padding-left: 10px; }
  .industry-list a:hover .arrow { transform: translateX(4px); color: var(--champagne); }
}
.industry-icon { color: var(--champagne); }
.industry-icon .icon { width: 24px; height: 24px; }
.industries { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.industry { background: var(--bg); padding: clamp(24px, 3.4vw, 48px); }
.industry-top { display: flex; align-items: center; gap: 18px; margin-bottom: 18px; }
.industry-top .card-icon { margin: 0; }
.industry-top .h3 { margin: 0; }
.industry > p { color: var(--muted); }
.dash-list { list-style: none; margin-bottom: 24px; }
.dash-list li { padding: 6px 0 6px 22px; position: relative; font-size: 0.95rem; }
.dash-list li::before { content: ""; position: absolute; left: 0; top: 1.05em; width: 10px; height: 1px; background: var(--champagne); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.chip { display: inline-block; font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; padding: 6px 10px; border: 1px solid var(--line-strong); color: var(--fg); }
.chip-muted { color: var(--muted); border-style: dashed; }

/* ---------- Checklists ---------- */
.checklist { list-style: none; display: grid; gap: 12px; margin: 28px 0 0; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; }
.checklist .check { width: 20px; height: 20px; color: var(--champagne); flex: none; margin-top: 3px; }
.section-light .checklist .check { color: var(--champagne-dark); }
.checklist-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; margin-bottom: 32px; }
.checklist-lg li { font-size: 1.05rem; padding-bottom: 12px; border-bottom: 1px solid var(--line); }

/* ---------- Services page ---------- */
.service-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(32px, 6vw, 96px); }
.service-head { position: sticky; top: calc(var(--header-h) + 40px); align-self: start; }
.service-num { color: var(--champagne); margin: 0 0 10px; }
.service-body .label { margin-top: 40px; }
.service-for { margin: 0 0 28px; color: var(--fg); }
.service-for .label { display: block; margin: 0 0 6px; }

/* ---------- Steps ---------- */
.steps { list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(20px, 2.4vw, 36px); }
.steps-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.step { border-top: 1px solid var(--line-strong); padding-top: 24px; position: relative; }
.step::before { content: ""; position: absolute; top: -1px; left: 0; width: 40px; height: 1px; background: var(--champagne); }
.step-num { display: block; color: var(--champagne); margin-bottom: 18px; }
.step p { color: var(--muted); font-size: 0.95rem; }

/* ---------- App mock ---------- */
.app-mock { margin: 0; background: var(--obsidian); border: 1px solid var(--line-strong); border-radius: 6px; overflow: hidden; box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5); }
.app-bar { display: flex; align-items: center; gap: 16px; padding: 12px 16px; border-bottom: 1px solid var(--line); color: var(--muted); white-space: nowrap; overflow: hidden; }
.app-dots { display: flex; gap: 6px; }
.app-dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--slate); display: block; }
.app-body { display: grid; grid-template-columns: 150px minmax(0, 1fr); min-height: 340px; }
.app-side { border-right: 1px solid var(--line); padding: 18px 14px; display: flex; flex-direction: column; gap: 4px; }
.app-side .mark { margin-bottom: 18px; }
.app-nav { font-size: 0.8rem; padding: 7px 10px; color: var(--muted); border-radius: 3px; }
.app-nav.is-active { background: var(--charcoal-2); color: var(--fg-strong); }
.app-main { padding: 18px; min-width: 0; }
.app-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; }
.app-stats div { border: 1px solid var(--line); padding: 12px; display: flex; flex-direction: column; min-width: 0; }
.app-stats strong { font-size: 1.5rem; font-weight: 300; }
.app-stats span { font-size: 0.7rem; color: var(--muted); }
.app-entries { list-style: none; }
.app-entries li { display: grid; grid-template-columns: 44px auto minmax(0, 1fr); gap: 10px; align-items: center; font-size: 0.8rem; padding: 9px 0; border-bottom: 1px solid var(--line); }
.app-entries .mono { color: var(--muted); font-size: 0.72rem; }
.tag { font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.06em; text-transform: uppercase; padding: 3px 7px; border: 1px solid var(--line-strong); color: var(--fg); white-space: nowrap; justify-self: start; }
.tag-warn { border-color: var(--champagne); color: var(--champagne); }
.app-verify { display: flex; align-items: center; gap: 8px; color: var(--ok); margin: 14px 0 0; }
.app-verify .check { width: 16px; height: 16px; }
.app-mock figcaption { padding: 10px 16px; border-top: 1px solid var(--line); color: var(--stone); font-size: 0.68rem; }

/* ---------- Technology page ---------- */
.benefits { list-style: none; }
.benefits li { padding: 22px 0; border-bottom: 1px solid var(--line); color: var(--fg); }
.benefits li:first-child { border-top: 1px solid var(--line); }
.benefits strong { display: block; font-weight: 500; font-size: 1.1rem; margin-bottom: 6px; }
.spec-list { list-style: none; border-top: 1px solid var(--line); }
.spec-list li { display: grid; grid-template-columns: minmax(160px, 3fr) minmax(0, 9fr); gap: 24px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.spec-list .mono { color: var(--champagne); text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.72rem; padding-top: 4px; }
.promo { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.promo-mark-svg { width: 100%; height: auto; }

/* ---------- Company page ---------- */
.principles { list-style: none; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.principle { background: var(--ivory); padding: 32px 26px; }
.principle .mono { color: var(--champagne-dark); display: block; margin-bottom: 40px; }
.principle p { color: var(--muted); font-size: 0.95rem; margin: 0; }
.group-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.group-card { background: var(--bg); padding: clamp(24px, 3vw, 44px); display: flex; flex-direction: column; align-items: flex-start; text-decoration: none; transition: background 0.3s; }
.group-card > .mono { color: var(--champagne); margin-bottom: 10px; text-transform: uppercase; letter-spacing: 0.18em; }
.group-card p:not(.mono) { color: var(--muted); }
.group-card .chip, .group-card .link-arrow { margin-top: auto; }
.group-card-current { background: var(--charcoal); }
@media (hover: hover) { a.group-card:hover { background: var(--charcoal); } }
.facts { list-style: none; border-top: 1px solid var(--line); margin-top: 32px; }
.facts li { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.facts .mono { color: var(--muted); text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.72rem; padding-top: 4px; }

/* ---------- CTA band ---------- */
.cta-band { padding: clamp(64px, 9vw, 130px) 0; background: var(--charcoal); border-top: 1px solid var(--line); }
.cta-band-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px 48px; align-items: end; }
.cta-band .h2 { max-width: 18ch; }
.cta-band .lead { margin-bottom: 0; }

/* ---------- Contact & wizard ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.wizard { border: 1px solid var(--line); padding: clamp(20px, 3.5vw, 48px); background: var(--surface); }
.wizard-done .card-icon { color: var(--ok); }
.wizard-progress { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-bottom: 40px; }
.wizard-progress li { border-top: 1px solid var(--line-strong); padding-top: 12px; font-size: 0.82rem; color: var(--muted); display: flex; gap: 10px; transition: color 0.3s, border-color 0.3s; }
.wizard-progress li.is-active, .wizard-progress li.is-done { color: var(--fg-strong); border-color: var(--champagne); }
.wizard-progress .mono { color: var(--champagne); }
.wizard-step { border: 0; padding: 0; margin: 0; min-width: 0; }
.wizard-step legend { padding: 0; margin-bottom: 28px; }
html:not(.js) .wizard-step + .wizard-step { margin-top: 48px; padding-top: 40px; border-top: 1px solid var(--line); }
/* Columns never get narrower than long German compounds ("Sicherheitsdienstleistung") need. */
.choice-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 12px; }
.choice { position: relative; cursor: pointer; display: block; }
.choice input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.choice-body { display: flex; flex-direction: column; height: 100%; padding: 22px; border: 1px solid var(--line); transition: border-color 0.25s, background 0.25s; }
.choice-body .card-icon { width: 38px; height: 38px; margin-bottom: 18px; }
.choice-body .card-icon .icon { width: 19px; height: 19px; }
.choice-body strong { font-weight: 500; font-size: 0.98rem; overflow-wrap: break-word; hyphens: auto; -webkit-hyphens: auto; }
.choice-body small { color: var(--muted); font-size: 0.82rem; margin-top: 6px; line-height: 1.45; }
.choice input:checked + .choice-body { border-color: var(--champagne); background: rgba(201, 185, 154, 0.06); }
.choice input:focus-visible + .choice-body { outline: 1px solid var(--champagne); outline-offset: 3px; }
@media (hover: hover) { .choice:hover .choice-body { border-color: var(--line-strong); } }
.chip-group { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.chip-check { position: relative; cursor: pointer; }
.chip-check input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.chip-check span { display: inline-flex; align-items: center; min-height: 44px; padding: 9px 14px; border: 1px solid var(--line); font-size: 0.88rem; transition: border-color 0.25s, background 0.25s, color 0.25s; }
.chip-check input:checked + span { border-color: var(--champagne); color: var(--fg-strong); background: rgba(201, 185, 154, 0.08); }
.chip-check input:focus-visible + span { outline: 1px solid var(--champagne); outline-offset: 3px; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; }
.field { display: flex; flex-direction: column; margin-bottom: 20px; min-width: 0; }
.field-label { font-size: 0.82rem; color: var(--muted); margin-bottom: 8px; display: block; }
input[type="text"], input[type="email"], input[type="tel"], select, textarea {
  width: 100%; min-height: 48px; background: transparent; color: var(--fg-strong); border: 0; border-bottom: 1px solid var(--line-strong);
  padding: 10px 0; font-size: 1rem; border-radius: 0; transition: border-color 0.25s;
}
select {
  -webkit-appearance: none; appearance: none; cursor: pointer; padding-right: 24px; text-overflow: ellipsis;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 10px) 52%, calc(100% - 5px) 52%; background-size: 5px 5px; background-repeat: no-repeat;
}
select option { background: var(--charcoal); color: var(--bone); }
textarea { resize: vertical; min-height: 128px; border: 1px solid var(--line-strong); padding: 12px; line-height: 1.5; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--champagne); }
.is-invalid input, .is-invalid select, input.is-invalid, .choice-grid.is-invalid .choice-body { border-color: #c47a6c; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 0.9rem; color: var(--fg); margin-top: 8px; cursor: pointer; }
.consent input { margin-top: 3px; accent-color: var(--champagne); width: 20px; height: 20px; flex: none; }
.consent.is-invalid { color: var(--error); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.summary { white-space: pre-wrap; overflow-wrap: anywhere; font-family: var(--mono); font-size: 0.82rem; line-height: 1.7; background: var(--obsidian); border: 1px solid var(--line); padding: 20px; margin: 20px 0 0; max-height: 420px; overflow: auto; color: var(--fg); }
.wizard-nav { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 16px; margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--line); }
.wizard-nav [data-next], .wizard-nav [data-submit] { margin-left: auto; }
.wizard-error { margin: 0; color: var(--error); font-size: 0.88rem; flex: 1 1 200px; }
.wizard-status { margin: 14px 0 0; color: var(--champagne); font-size: 0.9rem; min-height: 1.4em; }
.js .wizard [data-submit] { display: none; }
.js .wizard[data-step-current="4"] [data-submit] { display: inline-flex; }
.js .wizard[data-step-current="4"] [data-next] { display: none; }
.contact-aside { display: grid; gap: 16px; position: sticky; top: calc(var(--header-h) + 32px); }
.contact-card { border: 1px solid var(--line); padding: clamp(22px, 2.4vw, 28px); }
.contact-card p { color: var(--muted); font-size: 0.95rem; }
.contact-card-dark { background: var(--charcoal); }
.contact-list { list-style: none; display: grid; gap: 16px; }
.contact-list li { display: flex; flex-direction: column; gap: 4px; overflow-wrap: anywhere; }
.contact-list .mono { color: var(--muted); text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.68rem; }
.contact-list a { color: var(--fg-strong); }
.notice { border: 1px solid var(--line-strong); padding: 16px 20px; margin-bottom: 28px; font-size: 0.92rem; }
.notice ul { padding-left: 1.1em; }
.notice-error { border-color: #c47a6c; color: var(--error); }
.notice-todo { border-color: var(--champagne-dark); background: rgba(201, 185, 154, 0.12); }
mark.todo { background: rgba(201, 185, 154, 0.35); color: inherit; padding: 1px 5px; font-family: var(--mono); font-size: 0.82em; overflow-wrap: anywhere; }

/* ---------- Legal prose ---------- */
.prose { font-size: 1rem; overflow-wrap: break-word; }
.prose h2 { font-size: 1.3rem; font-weight: 500; color: var(--fg-strong); letter-spacing: -0.01em; margin: 2.4em 0 0.7em; padding-top: 1.2em; border-top: 1px solid var(--line); hyphens: auto; -webkit-hyphens: auto; }
.prose h2:first-of-type { margin-top: 0; border-top: 0; padding-top: 0; }
.prose p, .prose li { color: var(--fg); }
.prose ul { padding-left: 1.2em; margin-bottom: 1.1em; }
.prose li { margin-bottom: 0.3em; }
.prose a { color: var(--fg-strong); }
.summary-box { border: 1px solid var(--line-strong); padding: clamp(18px, 3vw, 28px); margin-bottom: 48px; background: var(--white); }
.summary-box ul { margin: 0; }
.legal .page-hero .h1 { max-width: none; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: clamp(56px, 8vw, 100px) 0 calc(32px + env(safe-area-inset-bottom)); background: var(--obsidian); }
.footer-top { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 2fr) minmax(0, 2fr) minmax(0, 3fr); gap: 40px; padding-bottom: 56px; }
.footer-brand a { text-decoration: none; }
.footer-tagline { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--champagne); margin: 26px 0 14px; }
.footer-brand .muted { max-width: 34ch; font-size: 0.92rem; }
.footer-head { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
.footer-col ul { list-style: none; display: grid; gap: 4px; }
.footer-col a, .footer-col .group-item { display: inline-flex; align-items: center; min-height: 36px; text-decoration: none; font-size: 0.92rem; color: var(--fg); }
.footer-col a:hover { color: var(--fg-strong); }
.group-item { gap: 10px; flex-wrap: wrap; }
.group-current { color: var(--fg-strong) !important; }
.group-soon { color: var(--muted) !important; }
.group-soon em { font-style: normal; font-family: var(--mono); font-size: 0.65rem; letter-spacing: 0.1em; text-transform: uppercase; border: 1px dashed var(--line-strong); padding: 2px 6px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 12px 20px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 24px; font-size: 0.82rem; color: var(--muted); }
.footer-bottom p { margin: 0; }
.footer-legal { list-style: none; display: flex; gap: 4px 28px; flex-wrap: wrap; align-items: center; }
.footer-legal a { display: inline-flex; align-items: center; min-height: 40px; text-decoration: none; color: var(--fg); }
.lang-switch-footer span[aria-current] { color: var(--fg-strong); }

/* ---------- 404 ---------- */
.not-found { min-height: 80vh; min-height: 80svh; }
.not-found .lead + .lead { color: var(--muted); }

/* ---------- Reveal motion (only when JS is active) ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */

/* Large and ultra-wide screens */
@media (min-width: 1680px) {
  :root { --wrap: 1400px; --header-h: 84px; }
  body { font-size: 18px; }
}
@media (min-width: 2200px) {
  :root { --wrap: 1600px; }
  body { font-size: 19px; }
  .hero-visual { width: min(100%, 560px); }
}

/* Small desktops / large tablets in landscape */
@media (max-width: 1100px) {
  .cards-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cards-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 40px; }
  .principles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-card { left: -12%; }
}

/* Tablets (portrait) */
@media (max-width: 900px) {
  :root { --header-h: 68px; }
  .hero { min-height: 0; }
  .hero-inner, .split, .service-grid, .contact-grid, .promo { grid-template-columns: minmax(0, 1fr); }
  .hero-inner { gap: 56px; }
  .hero-visual { justify-self: center; width: min(78%, 420px); margin: 8px 0 24px; }
  .hero-card { left: -14%; bottom: -8%; }
  .models, .group-grid { grid-template-columns: minmax(0, 1fr); }
  .model { padding-bottom: 8px; }
  .steps-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
  .service-head { position: static; }
  .service-head .h2 { margin-bottom: 0; }
  .contact-aside { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-aside .contact-card:first-child { grid-column: 1 / -1; }
  .cta-band-inner { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .promo { justify-items: start; }
  .promo-mark { width: 96px; }
  .split > :first-child .h2, .page-hero-split .h1 { max-width: 20ch; }
  .page-hero-split .split > :last-child { max-width: 640px; }
}

/* Phones */
@media (max-width: 640px) {
  body { font-size: 16px; }
  .industry-list, .industries, .checklist-2, .form-row, .cards-3, .cards-4, .steps, .steps-4, .principles, .footer-top, .contact-aside { grid-template-columns: minmax(0, 1fr); }
  .contact-aside .contact-card:first-child { grid-column: auto; }
  .choice-grid { gap: 8px; }
  .choice-body { padding: 16px; }
  .choice-body .card-icon { margin-bottom: 12px; }
  .hero-actions .btn, .cta-band .btn, .wizard-nav .btn { flex: 1 1 auto; }
  .hero-visual { width: 100%; aspect-ratio: auto; display: flex; flex-direction: column; align-items: center; }
  .hero-mark { width: 62%; height: auto; aspect-ratio: 1; }
  .hero-card { position: relative; left: auto; bottom: auto; width: 100%; max-width: 420px; margin-top: -26%; }
  .hero-foot { flex-direction: column; align-items: flex-start; }
  .tagline { letter-spacing: 0.18em; font-size: 0.68rem; }
  .app-body { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .app-side { display: none; }
  .spec-list li, .facts li { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .wizard-progress { margin-bottom: 28px; }
  .wizard-progress .wp-label { display: none; }
  .wizard-progress li { justify-content: center; }
  .wizard-nav { margin-top: 28px; }
  .wizard-nav [data-back] { flex: 0 0 auto; }
  .wizard-error { order: -1; flex-basis: 100%; }
  .principle .mono { margin-bottom: 20px; }
  .toc { margin-top: 32px; }
  .footer-top { gap: 32px; padding-bottom: 40px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .card-icon { margin-bottom: 20px; }
  .industry-top { gap: 14px; }
}

/* Small phones (≤400px, e.g. iPhone SE / older Android) */
@media (max-width: 400px) {
  .choice-grid { grid-template-columns: minmax(0, 1fr); }
  .choice-body { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 4px 14px; }
  .choice-body .card-icon { margin: 0; }
  .choice-body small { flex-basis: 100%; margin-top: 2px; }
  .app-entries li { grid-template-columns: 40px minmax(0, 1fr); row-gap: 4px; }
  .app-entries li > span:last-child { grid-column: 2; }
  .app-stats { gap: 6px; }
  .app-stats div { padding: 10px 8px; }
  .logo { gap: 10px; }
  .logo-word { font-size: 1rem; letter-spacing: 0.34em; margin-right: -0.34em; }
  .pillars { gap: 10px 20px; }
  .eyebrow { gap: 10px; letter-spacing: 0.16em; }
}

/* Phones in landscape and other very short viewports */
@media (max-height: 560px) and (orientation: landscape) {
  :root { --header-h: 60px; }
  .hero { min-height: 0; }
  .hero-inner { grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr); gap: 32px; }
  .hero-visual { width: min(100%, 260px); margin: 0; }
  .hero-card { display: none; }
  .hero-foot { margin-top: 32px; }
  .page-hero { padding-top: calc(var(--header-h) + 48px); }
  .display { font-size: clamp(2.2rem, 12vh, 4rem); }
  .h1 { font-size: clamp(1.9rem, 9vh, 3rem); }
  .hero-lead { margin-top: 16px; }
  .hero-actions { margin-top: 24px; }
  .site-nav ul a { padding: 10px 0; font-size: 1.25rem; }
}

/* ---------- Print ---------- */
@media print {
  :root { --bg: #fff; --fg: #111; --fg-strong: #000; --muted: #444; --line: #ccc; --line-strong: #999; }
  body { background: #fff; color: #111; font-size: 11pt; }
  .site-header, .site-nav, .nav-toggle, .cta-band, .hero-visual, .hero-grid, .wizard, .skip, .footer-col, .toc, .actions, .hero-actions { display: none !important; }
  .section, .page-hero, .hero { padding: 24px 0 !important; min-height: 0 !important; background: #fff !important; }
  .section-alt, .section-panel, .section-light, .site-footer, .card, .industry, .group-card, .principle { background: #fff !important; }
  .js .reveal { opacity: 1 !important; transform: none !important; }
  a { color: #000; text-decoration: underline; }
  .prose a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 0.85em; }
  .mark-r { fill: #000; } .mark-l { fill: #777; }
}
