/* ============ Layer ix design system: tokens and shared components ============
   Values come from the design system's tokens.json. Loaded before the page
   stylesheets (styles.css, manufacturing.css). */

:root {
  --surface: #f3f3f1;
  --surface-raised: #e5e5e2;
  --surface-band: #ebebe8;
  --line: #d5d5d1;
  --line-strong: #c9c9c4;
  --ink: #161616;
  --ink-2: #3d3935;
  --ink-muted: #6e675f;
  --ink-subtle: #7f786f;
  --ink-decor: #9c958c;
  --accent: #8bb4d8;
  --accent-soft: #d3e3f1;
  --accent-ink: #4a7aa3;
  --accent-deep: #1b3349;
  --on-accent: #161616;
  --inverse: #161616;
  --on-inverse: #f3f3f1;
  --feature: #161616;
  --on-feature: #f3f3f1;
  /* text on the dark section and dark tiles */
  --paper: #f3f3f1;
  --paper-2: #aaa39a;
  --line-dark: #3a3632;
  --line-dark-strong: #57524c;
  /* form errors only: the system has no error colour */
  --signal: #7a1f14;

  --font-display: "Inter Tight", "Helvetica Neue", Arial, sans-serif;
  --font-sans: "DM Sans", "Helvetica Neue", Arial, sans-serif;

  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-5: 24px;
  --space-6: 32px; --space-7: 48px; --space-8: 64px; --space-9: 96px; --space-10: 128px;
  --radius-sm: 12px; --radius-md: 16px; --radius-lg: 24px; --radius-xl: 28px; --radius-pill: 999px;

  --ease-swift: cubic-bezier(0.3, 0.85, 0.25, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--surface);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, p, ol, ul { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
::selection { background: var(--accent); color: var(--on-accent); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

.container { max-width: 1440px; margin: 0 auto; padding: 0 var(--space-8); }

.theme-dark {
  background: var(--feature);
  color: var(--paper);
  --ink-muted: #9c958c;
  --ink-decor: #57524c;
  --line: #3a3632;
  --line-strong: #57524c;
}
.theme-dark a:focus-visible, .theme-dark button:focus-visible { outline-color: var(--paper); }

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* ---------- type ---------- */
.display {
  font-family: var(--font-display);
  font-size: clamp(44px, 5.6vw, 88px);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 0.98;
  /* German compounds are long: let them break rather than overflow */
  overflow-wrap: anywhere;
}
.h2 {
  font-family: var(--font-display);
  font-size: clamp(36px, 3.9vw, 56px);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.05;
  text-wrap: balance;
  overflow-wrap: anywhere;
}
.h2--invert { color: var(--paper); }
.lead { font-size: 20px; line-height: 1.45; color: var(--ink-2); max-width: 62ch; }
.lead--invert { color: var(--paper-2); }
.section__sub { font-size: 20px; line-height: 1.45; color: var(--ink-2); max-width: 62ch; }
.section__sub--invert { color: var(--paper-2); }
.statement {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.15;
  color: var(--ink);
}
.statement--invert { color: var(--paper); }
.statement__soft { color: var(--paper-2); font-weight: 400; }
.mono-tag {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.12em;
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--ink-muted);
}

/* ---------- section pill ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  width: fit-content;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  background: var(--inverse);
  color: var(--on-inverse);
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
}
.eyebrow .sq { display: none; }
.eyebrow--dark { background: var(--paper); color: var(--ink); }
.sq { display: inline-block; width: 10px; height: 10px; border-radius: 3px; background: var(--accent); flex: none; }
.sq--ink { background: var(--ink); }

/* ---------- buttons ---------- */
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 44px;
  padding: 0 22px;
  border-radius: var(--radius-pill);
  border: 1.5px solid transparent;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.pill--lg { min-height: 52px; padding: 0 28px; }
.pill--dark, .pill--sage { background: var(--inverse); color: var(--on-inverse); }
.pill--dark:hover, .pill--sage:hover { background: var(--ink-2); }
.pill--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.pill--ghost:hover { background: var(--surface-raised); }
.pill--cream { background: var(--paper); color: var(--ink); }
.pill--cream:hover { background: var(--paper-2); }
.pill--ghost-dark { color: var(--paper); border-color: var(--paper); }
.pill--ghost-dark:hover { background: #242220; }

/* ---------- nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; color: var(--ink); }
.brand__logo { height: 40px; width: auto; display: block; }
.nav__links { display: flex; align-items: center; gap: 28px; }
.nav__links > a:not(.pill) { font-size: 15px; font-weight: 500; color: var(--ink-2); transition: color 0.15s ease; }
.nav__links > a:not(.pill):hover { color: var(--ink); }
.lang { display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 500; }
.nav__links .lang__opt { color: var(--ink-muted); padding-bottom: 2px; border-bottom: 1.5px solid transparent; }
.nav__links .lang__opt:hover { color: var(--ink); }
.nav__links .lang__opt.is-active { color: var(--ink); border-bottom-color: var(--ink); }
.lang__sep { color: var(--ink-decor); font-size: 12px; }

/* ---------- footer ---------- */
.footer { padding: var(--space-5) 0; }
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
  padding-top: var(--space-5);
  border-top: 1px solid var(--line);
}
.footer .brand__logo { height: 28px; }
.footer__tag { font-size: 14px; letter-spacing: 0.02em; color: var(--ink-subtle); }
.footer__meta { display: flex; align-items: center; gap: var(--space-3); color: var(--ink-subtle); font-size: 14px; }
.footer__meta .sq { display: none; }

@media (max-width: 720px) {
  .container { padding: 0 var(--space-4); }
  .nav__inner { gap: 14px; height: 64px; }
  .nav__links { gap: 12px; }
  .nav__links .pill { white-space: nowrap; min-height: 40px; padding: 0 14px; font-size: 14px; }
  .eyebrow { padding: 9px 16px; font-size: 14px; line-height: 1.2; }
}

