/* Software Consulting Tiesler d.o.o. — stylesheet.
   Generated by build/build.mjs from src/css/fonts.css + src/css/site.css.
   Edit those files, not this one. */

/* Generated by tools/fetch-fonts.mjs. Self-hosted subsets of Asap Sharp (variable: wdth 75-125, wght 100-900) and IBM Plex Mono. Licence: SIL OFL 1.1. */
@font-face{font-family:'Asap Sharp';font-style:normal;font-weight:100 900;font-stretch:75% 125%;font-display:swap;src:url("/assets/fonts/asap-sharp-100-900-latin-ext.woff2") format("woff2");unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'Asap Sharp';font-style:normal;font-weight:100 900;font-stretch:75% 125%;font-display:swap;src:url("/assets/fonts/asap-sharp-100-900-latin.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:'IBM Plex Mono';font-style:normal;font-weight:400;font-display:swap;src:url("/assets/fonts/ibm-plex-mono-400-latin-ext.woff2") format("woff2");unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:400;font-display:swap;src:url("/assets/fonts/ibm-plex-mono-400-latin.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:'IBM Plex Mono';font-style:normal;font-weight:500;font-display:swap;src:url("/assets/fonts/ibm-plex-mono-500-latin-ext.woff2") format("woff2");unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:500;font-display:swap;src:url("/assets/fonts/ibm-plex-mono-500-latin.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}

/* ==========================================================================
   Software Consulting Tiesler d.o.o. — site stylesheet
   Tokens are copied from design-system/tokens (values unchanged). The page
   palette follows the handoff table (light / navy-tinted dark).
   ========================================================================== */

/* ---- 1. Tokens ----------------------------------------------------------- */
:root {
  /* Locked brand colours. No other hues. */
  --brand-teal: #025A6A;
  --brand-mint: #6CBB8E;
  --brand-ink: #1A2533;
  --brand-white: #FFFFFF;

  --teal-950: #01262D; --teal-900: #013640; --teal-800: #024A57; --teal-700: #025A6A;
  --teal-600: #03707F; --teal-500: #0A8798; --teal-200: #B9D6DB; --teal-100: #DCEAED; --teal-50: #EFF6F7;
  --mint-700: #3F8B62; --mint-600: #54A377; --mint-500: #6CBB8E; --mint-300: #A9D8BE; --mint-100: #DFF1E7; --mint-50: #F0F8F3;
  --navy-950: #0F161F; --navy-900: #1A2533; --navy-800: #26313E; --navy-700: #3A4553; --navy-600: #54606D;
  --navy-500: #6E7986; --navy-400: #8E98A3; --navy-300: #B3BAC2; --navy-200: #D3D8DD; --navy-100: #E7EAED;
  --navy-50: #F3F5F6; --navy-25: #FAFBFB;

  /* Type */
  --font-sans: "Asap Sharp", system-ui, sans-serif;
  --font-display: "Asap Sharp", system-ui, sans-serif;
  --font-display-stretch: 112%;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, monospace;
  --weight-regular: 400; --weight-medium: 500; --weight-semibold: 600; --weight-bold: 700;

  /* Scale in rem (16px root): 11 12 13 15 17 20 24 30 38 48. Display sizes use
     clamp() so they scale down on narrow viewports and hit the design value on desktop. */
  --text-3xs: 0.6875rem;
  --text-2xs: 0.75rem;
  --text-xs: 0.8125rem;
  --text-sm: 0.9375rem;
  --text-md: 1.0625rem;
  --text-lg: clamp(1.125rem, 1rem + 0.4vw, 1.25rem);
  --text-xl: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem);
  --text-2xl: 1.875rem;
  --text-3xl: clamp(1.75rem, 1.25rem + 1.6vw, 2.375rem);
  --text-4xl: clamp(2.125rem, 1.5rem + 2vw, 3rem);

  --leading-tight: 1.06; --leading-snug: 1.18; --leading-normal: 1.34; --leading-relaxed: 1.55;
  --tracking-display: -0.015em; --tracking-heading: -0.008em;
  --tracking-eyebrow: 0.188em; --tracking-microcaps: 0.213em;

  /* Spacing (4px base) */
  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-5: 20px; --space-6: 24px;
  --space-8: 32px; --space-10: 40px; --space-12: 48px; --space-16: 64px; --space-20: 80px; --space-24: 96px;
  --container-max: 1200px; --container-narrow: 760px; --container-wide: 1440px;
  --gutter: clamp(20px, 2.8vw, 40px);
  --section-y: clamp(64px, 6.7vw, 96px);
  --control-h-sm: 32px; --control-h-md: 40px; --control-h-lg: 48px;

  /* Radii: 2 chips · 6 controls · 8 plates · 10 cards · pill for the toggle only */
  --radius-xs: 2px; --radius-md: 6px; --radius-plate: 8px; --radius-card: 10px; --radius-pill: 999px;

  /* Elevation: navy-tinted, low spread. Only the language menu uses it. */
  --shadow-md: 0 2px 4px rgba(26,37,51,.05), 0 8px 20px rgba(26,37,51,.07);

  /* Motion: one easing */
  --ease-flow: cubic-bezier(.22,.61,.36,1);
  --ease-standard: cubic-bezier(.4,0,.2,1);
  --duration-instant: 90ms; --duration-controls: 140ms; --duration-surfaces: 200ms; --duration-hero: 700ms;
  --press-scale: 0.985;

  /* ---- Page palette: light (default) ---- */
  color-scheme: light;
  --bg-page: #FFFFFF;
  --bg-band: var(--navy-50);
  --surface-card: #FFFFFF;
  --tint-a: var(--teal-50);
  --tint-b: #F5F7F8;
  --border-hairline: var(--navy-100);
  --border-rail: var(--navy-200);
  --text-heading: var(--brand-ink);
  --text-body: var(--navy-700);
  --text-muted: var(--navy-600); /* navy-500 is 4.05:1 on the band; navy-600 keeps small mono labels at AA */
  --text-accent: var(--brand-teal);
  --text-link: var(--brand-teal);
  --text-link-hover: var(--teal-900);
  --toggle-track: var(--navy-100);
  --toggle-knob: var(--brand-teal);
  --toggle-x: 0px;
  --focus-ring: var(--brand-teal);
  --focus-halo: rgba(108,187,142,.45);
  --action-primary-bg: var(--brand-teal);
  --action-primary-bg-hover: var(--teal-900);
  --action-primary-bg-active: var(--teal-950);
  --action-primary-fg: #FFFFFF;
  --action-secondary-fg: var(--brand-teal);
  --action-secondary-border: var(--navy-200);
  --action-secondary-bg-hover: var(--navy-25);
  --action-ghost-fg: var(--navy-700);
  --action-ghost-bg-hover: var(--navy-50);
  --show-light: block;
  --show-dark: none;
  --meta-theme: #FFFFFF;
}

/* Dark palette. Declared once as a block and applied for (a) the stored choice
   and (b) the system preference when no choice has been stored. */
[data-theme="dark"] {
  color-scheme: dark;
  --bg-page: #141C27;
  --bg-band: #1A2533;
  --surface-card: #212C3B;
  --tint-a: #16303A;
  --tint-b: #1C2836;
  --border-hairline: rgba(255,255,255,.14);
  --border-rail: rgba(255,255,255,.18);
  --text-heading: #FFFFFF;
  --text-body: rgba(255,255,255,.86);
  --text-muted: rgba(255,255,255,.60);
  --text-accent: var(--brand-mint);
  --text-link: var(--brand-mint);
  --text-link-hover: #FFFFFF;
  --toggle-track: rgba(255,255,255,.16);
  --toggle-knob: var(--brand-mint);
  --toggle-x: 20px;
  --focus-ring: var(--brand-mint);
  --action-primary-bg: #FFFFFF;
  --action-primary-bg-hover: var(--mint-100);
  --action-primary-bg-active: var(--mint-300);
  --action-primary-fg: var(--brand-teal);
  --action-secondary-fg: #FFFFFF;
  --action-secondary-border: rgba(255,255,255,.34);
  --action-secondary-bg-hover: rgba(255,255,255,.06);
  --action-ghost-fg: rgba(255,255,255,.86);
  --action-ghost-bg-hover: rgba(255,255,255,.08);
  --show-light: none;
  --show-dark: block;
  --meta-theme: #141C27;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg-page: #141C27;
    --bg-band: #1A2533;
    --surface-card: #212C3B;
    --tint-a: #16303A;
    --tint-b: #1C2836;
    --border-hairline: rgba(255,255,255,.14);
    --border-rail: rgba(255,255,255,.18);
    --text-heading: #FFFFFF;
    --text-body: rgba(255,255,255,.86);
    --text-muted: rgba(255,255,255,.60);
    --text-accent: var(--brand-mint);
    --text-link: var(--brand-mint);
    --text-link-hover: #FFFFFF;
    --toggle-track: rgba(255,255,255,.16);
    --toggle-knob: var(--brand-mint);
    --toggle-x: 20px;
    --focus-ring: var(--brand-mint);
    --action-primary-bg: #FFFFFF;
    --action-primary-bg-hover: var(--mint-100);
    --action-primary-bg-active: var(--mint-300);
    --action-primary-fg: var(--brand-teal);
    --action-secondary-fg: #FFFFFF;
    --action-secondary-border: rgba(255,255,255,.34);
    --action-secondary-bg-hover: rgba(255,255,255,.06);
    --action-ghost-fg: rgba(255,255,255,.86);
    --action-ghost-bg-hover: rgba(255,255,255,.08);
    --show-light: none;
    --show-dark: block;
    --meta-theme: #141C27;
  }
}

/* ---- 2. Base ------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--space-6);
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--bg-page);
  color: var(--text-body);
  font-family: var(--font-sans);
  font-size: var(--text-md);
  line-height: var(--leading-relaxed);
  -webkit-font-smoothing: antialiased;
  text-wrap: pretty;
  transition: background-color var(--duration-surfaces) var(--ease-flow), color var(--duration-surfaces) var(--ease-flow);
}
h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-display);
  font-stretch: var(--font-display-stretch);
  font-weight: var(--weight-bold);
  color: var(--text-heading);
  letter-spacing: var(--tracking-heading);
  line-height: var(--leading-snug);
  text-wrap: balance;
}
h1 { font-size: var(--text-4xl); }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-xl); }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
img, video, svg { display: block; max-width: 100%; }
a {
  color: var(--text-link);
  text-decoration: none;
  transition: color var(--duration-controls) var(--ease-standard);
}
a:hover { color: var(--text-link-hover); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
button { font: inherit; color: inherit; }
::selection { background: var(--mint-300); color: var(--brand-ink); }

/* Focus: teal ring on light, mint ring on dark (both ≥ 3:1), mint halo in between. */
:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 3px;
  box-shadow: 0 0 0 3px var(--focus-halo);
  border-radius: var(--radius-xs);
}

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%);
  white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: var(--space-4); top: -200px; z-index: 100;
}
.skip:focus { top: var(--space-4); }

.ds-eyebrow {
  font-weight: var(--weight-bold);
  font-size: var(--text-2xs);
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--text-accent);
}
.wrap { max-width: var(--container-wide); margin-inline: auto; }

/* Mono index/label pair used in the services rail and the reference list. */
.index {
  display: flex; align-items: baseline; gap: var(--space-3);
  font-family: var(--font-mono); font-size: var(--text-2xs); line-height: var(--leading-normal);
}
.index__n { color: var(--text-accent); }
.index__label { color: var(--text-muted); letter-spacing: .04em; text-transform: uppercase; }

/* ---- 3. Buttons (design-system Button, sizes sm/md/lg, primary/secondary/ghost) */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  height: var(--control-h-md); padding: 0 var(--space-5);
  font-family: var(--font-sans); font-size: var(--text-sm); font-weight: var(--weight-semibold);
  letter-spacing: .01em; line-height: 1; white-space: nowrap; text-decoration: none;
  border-radius: var(--radius-md); border: 1px solid transparent; cursor: pointer;
  transition: background-color var(--duration-controls) var(--ease-standard), color var(--duration-controls) var(--ease-standard),
              border-color var(--duration-controls) var(--ease-standard), transform var(--duration-instant) var(--ease-standard);
}
.btn:hover { text-decoration: none; }
.btn:active { transform: scale(var(--press-scale)); }
.btn--sm { height: var(--control-h-sm); padding: 0 var(--space-3); font-size: var(--text-xs); }
.btn--lg { height: var(--control-h-lg); padding: 0 var(--space-6); font-size: var(--text-md); gap: var(--space-3); }
.btn--primary { background: var(--action-primary-bg); color: var(--action-primary-fg); }
.btn--primary:hover { background: var(--action-primary-bg-hover); color: var(--action-primary-fg); }
.btn--primary:active { background: var(--action-primary-bg-active); }
.btn--secondary { background: transparent; color: var(--action-secondary-fg); border-color: var(--action-secondary-border); }
.btn--secondary:hover { background: var(--action-secondary-bg-hover); color: var(--action-secondary-fg); border-color: var(--text-accent); }
.btn--ghost { background: transparent; color: var(--action-ghost-fg); }
.btn--ghost:hover { background: var(--action-ghost-bg-hover); color: var(--action-ghost-fg); }

/* ---- 4. Header ----------------------------------------------------------- */
.site-header { border-bottom: 1px solid var(--border-hairline); background: var(--bg-page); }
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-6); flex-wrap: wrap;
  padding: var(--space-5) var(--gutter);
}
.logo {
  display: block; flex: none;
  width: clamp(160px, 22vw, 275px); aspect-ratio: 275 / 97;
  border-radius: var(--radius-xs);
}
.logo img { width: 100%; height: 100%; object-fit: contain; }
.logo__light { display: var(--show-light); }
.logo__dark { display: var(--show-dark); }
.site-header__controls { display: flex; align-items: center; gap: var(--space-6); flex-wrap: wrap; }
.site-nav ul { display: flex; align-items: center; gap: var(--space-6); flex-wrap: wrap; list-style: none; }
.site-nav a { display: inline-block; padding: var(--space-1) 0; font-size: var(--text-sm); color: var(--text-body); }
.site-nav a:hover { color: var(--text-link-hover); }

/* Language switcher: native <details>, enhanced with outside-click / Escape closing. */
.lang { position: relative; }
.lang__summary {
  display: inline-flex; align-items: center; gap: 6px; list-style: none; cursor: pointer; user-select: none;
  padding: 6px 10px; border-radius: var(--radius-md); border: 1px solid var(--border-hairline);
  font-family: var(--font-mono); font-size: var(--text-xs); letter-spacing: .04em; color: var(--text-body);
  background: var(--bg-page);
  transition: border-color var(--duration-controls) var(--ease-standard);
}
.lang__summary::-webkit-details-marker { display: none; }
.lang__summary::marker { content: ""; }
.lang__summary:hover { border-color: var(--border-rail); }
.lang__caret { font-size: 10px; color: var(--text-muted); }
.lang__menu {
  position: absolute; top: calc(100% + 6px); right: 0; min-width: 160px; z-index: 20;
  background: var(--surface-card); border: 1px solid var(--border-hairline); border-radius: var(--radius-plate);
  box-shadow: var(--shadow-md); overflow: hidden; list-style: none;
}
.lang__menu a {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-3);
  padding: 10px 14px; font-size: var(--text-sm); color: var(--text-body);
}
.lang__menu a:hover { background: var(--bg-band); text-decoration: none; }
.lang__menu a[aria-current] { background: var(--bg-band); }
.lang__menu a:focus-visible { outline-offset: -3px; box-shadow: none; }
.lang__code { font-family: var(--font-mono); font-size: var(--text-2xs); color: var(--text-muted); }

/* Theme toggle: mono label + 44×24 pill with an 18px accent knob. Hidden without JS. */
.theme-toggle {
  display: inline-flex; align-items: center; gap: 10px;
  background: none; border: 0; padding: 0; cursor: pointer; border-radius: var(--radius-pill);
}
html:not(.js) .theme-toggle { display: none; }
.theme-toggle__label {
  font-family: var(--font-mono); font-size: var(--text-2xs); letter-spacing: .04em; color: var(--text-muted);
  min-width: 34px; text-align: left;
}
.theme-toggle__track {
  position: relative; width: 44px; height: 24px; border-radius: var(--radius-pill); background: var(--toggle-track);
  transition: background-color var(--duration-controls) var(--ease-flow);
}
.theme-toggle__knob {
  position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: var(--radius-pill);
  background: var(--toggle-knob); transform: translateX(var(--toggle-x));
  transition: transform var(--duration-controls) var(--ease-flow), background-color var(--duration-controls) var(--ease-flow);
}

/* ---- 5. Hero ------------------------------------------------------------- */
.hero {
  /* max-width keeps min-height from winning the aspect-ratio argument: between 901px
     and 1306px the ratio would otherwise derive a width of 560px x 21/9 and push the
     whole page into a horizontal scrollbar. */
  position: relative; aspect-ratio: 21 / 9; min-height: 560px; max-width: 100%; overflow: hidden;
  background: var(--brand-ink); color: #fff;
}
.hero__media { position: absolute; inset: 0; margin: 0; }
.hero__still, .hero__still img, .hero__video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.hero__video { opacity: 0; transition: opacity var(--duration-hero) var(--ease-flow); }
.hero__video.is-shown { opacity: 1; }
/* The one gradient on the page: a scrim for legibility over footage. */
.hero__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(26,37,51,.82) 0%, rgba(26,37,51,.66) 34%, rgba(26,37,51,.42) 56%, rgba(26,37,51,0) 78%);
}
.hero__copy {
  position: absolute; inset: 0; width: 56%;
  display: flex; flex-direction: column; justify-content: center; gap: var(--space-4);
  padding: 0 6% 0 var(--gutter);
}
.hero__copy .ds-eyebrow { color: #fff; }
.hero__copy h1 { color: #fff; max-width: 18ch; }
.hero__copy p { font-size: var(--text-lg); line-height: var(--leading-relaxed); max-width: 48ch; color: rgba(255,255,255,.94); }
.hero__control {
  position: absolute; right: var(--space-6); bottom: var(--space-6); z-index: 2;
  height: var(--control-h-sm); padding: 0 var(--space-3);
  display: inline-flex; align-items: center; gap: var(--space-2);
  font-size: var(--text-xs); font-weight: var(--weight-semibold); letter-spacing: .01em; line-height: 1;
  color: #fff; background: rgba(26,37,51,.74); border: 1px solid rgba(255,255,255,.34); border-radius: var(--radius-md);
  cursor: pointer; transition: background-color var(--duration-controls) var(--ease-standard);
}
.hero__control:hover { background: rgba(26,37,51,.9); }
.hero__control:focus-visible { --focus-ring: var(--brand-mint); }
html:not(.js) .hero__control { display: none; }

/* ---- 6. Hero actions band ----------------------------------------------- */
.hero-actions { background: var(--bg-band); padding: var(--space-8) var(--gutter); border-bottom: 1px solid var(--border-hairline); }
.hero-actions__inner {
  max-width: var(--container-max); margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-8); flex-wrap: wrap;
}
.hero-actions__buttons { display: flex; gap: var(--space-3); flex-wrap: wrap; }
.stack-strip {
  display: flex; gap: var(--space-6); flex-wrap: wrap; list-style: none;
  padding-left: var(--space-8); border-left: 1px solid var(--border-hairline);
  font-size: var(--text-sm); color: var(--text-muted);
}

/* ---- 7. Sections --------------------------------------------------------- */
.section { padding: var(--section-y) var(--gutter); border-top: 1px solid var(--border-hairline); }
.section--band { background: var(--bg-band); }
.section__head { display: flex; flex-direction: column; gap: var(--space-3); margin-bottom: var(--space-8); max-width: 62ch; }
.section__head p { font-size: var(--text-md); line-height: var(--leading-relaxed); }

/* Services: a three-column rail, not cards. */
/* The rail wraps to as many rows of three as the content needs: the hairlines
   are placed by column position, not by sibling order. */
/* Every item keeps the same clear gap between the hover rule that rides its
   left edge and the text: --rail-rule-gap is that gap. Columns without their
   own border pay for the 2px rule themselves, columns with one do not. */
.rail { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--border-rail); list-style: none; --rail-rule-gap: var(--space-4); }
.rail > li { padding: var(--space-8) var(--space-8) var(--space-6) calc(var(--rail-rule-gap) + 2px); }
.rail article { display: flex; flex-direction: column; gap: var(--space-3); height: 100%; }
.rail > li:not(:nth-child(3n + 1)) { border-left: 1px solid var(--border-hairline); padding-left: var(--rail-rule-gap); }
.rail > li:nth-child(3n) { padding-right: 0; }
.rail > li:nth-last-child(n + 4) { border-bottom: 1px solid var(--border-hairline); }
.rail h3 { font-size: var(--text-lg); }
.rail p { font-size: var(--text-sm); line-height: var(--leading-relaxed); }
.rail a { font-size: var(--text-sm); margin-top: auto; padding-top: var(--space-1); align-self: flex-start; }

/* The AI note under the rail: one accent panel, not a fourth column. */
.svc-ai {
  margin-top: var(--space-8);
  display: flex; flex-direction: column; gap: var(--space-3);
  padding: var(--space-8); border: 1px solid var(--border-hairline); border-top: 3px solid var(--brand-mint);
  border-radius: var(--radius-card); background: var(--surface-card);
}
.svc-ai h3 { font-size: var(--text-xl); max-width: 34ch; }
.svc-ai p { font-size: var(--text-sm); line-height: var(--leading-relaxed); max-width: 78ch; }
.svc-ai a { font-size: var(--text-sm); align-self: flex-start; }

/* Capabilities bento: 12 columns, 5/7 split, narrow column left. */
.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--space-6); }
.bento__intro {
  grid-column: span 5; align-self: start;
  display: flex; flex-direction: column; gap: var(--space-4); padding: var(--space-2) var(--space-6) var(--space-2) 0;
}
.bento__intro p { font-size: var(--text-md); line-height: var(--leading-relaxed); max-width: 46ch; }
.tile {
  container-type: inline-size;
  display: flex; align-items: center; gap: var(--space-6);
  padding: var(--space-8); border: 1px solid var(--border-hairline); border-radius: var(--radius-card);
  background: var(--tint-b);
  transition: background-color var(--duration-surfaces) var(--ease-flow), border-color var(--duration-surfaces) var(--ease-flow);
}
.tile--wide { grid-column: span 7; gap: var(--space-8); background: var(--tint-a); }
.tile--narrow { grid-column: span 5; }
.tile--accent { border-top: 3px solid var(--brand-mint); }
.tile__text { display: flex; flex-direction: column; gap: var(--space-3); flex: 1; min-width: 0; }
.tile__text p { font-size: var(--text-sm); line-height: var(--leading-relaxed); max-width: 40ch; }
.tile--wide .tile__text p { max-width: 44ch; }
.chips { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-2); list-style: none; }
.chips li {
  font-family: var(--font-mono); font-size: var(--text-3xs); line-height: var(--leading-normal); color: var(--text-muted);
  border: 1px solid var(--border-rail); border-radius: var(--radius-xs); padding: var(--space-1) var(--space-2);
}
.tile__art { position: relative; flex: none; width: 132px; height: 132px; border-radius: var(--radius-plate); overflow: hidden; }
.tile--wide .tile__art { width: 200px; height: 200px; }
.tile__art picture { position: absolute; inset: 0; }
.tile__art img { width: 100%; height: 100%; object-fit: cover; }
.tile__art--light { display: var(--show-light); }
.tile__art--dark { display: var(--show-dark); }
/* The tile decides its own inner layout from its own width, not from the viewport. */
@container (max-width: 480px) {
  .tile__art, .tile--wide .tile__art { width: 96px; height: 96px; }
}
/* A container cannot query itself. Stack the card's flex children on phones,
   retaining the existing desktop grid and illustration sizes. */
@media (max-width: 480px) {
  .tile { flex-direction: column-reverse; align-items: flex-start; gap: var(--space-5); padding: var(--space-6); }
  .tile__text { width: 100%; }
  .chips li { overflow-wrap: anywhere; }
}

/* Reference setups: a list, not a grid. */
.reflist { display: flex; flex-direction: column; border-top: 1px solid var(--border-rail); list-style: none; }
.reflist > li { container-type: inline-size; padding: var(--space-8) 0; border-bottom: 1px solid var(--border-hairline); }
.reflist article { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: var(--space-12); }
.ref__main { display: flex; flex-direction: column; gap: var(--space-3); max-width: 62ch; }
.ref__main p { font-size: var(--text-md); line-height: var(--leading-relaxed); }
.ref__stack {
  display: flex; flex-direction: column; gap: var(--space-2); align-self: center;
  border-left: 1px solid var(--border-rail); padding-left: var(--space-8);
  font-family: var(--font-mono);
}
.ref__stack dt { font-size: var(--text-3xs); letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); }
.ref__stack dd { margin: 0; font-size: var(--text-sm); color: var(--text-heading); }
@container (max-width: 640px) {
  .reflist article { grid-template-columns: 1fr; gap: var(--space-5); }
  .ref__stack { border-left: 0; padding-left: 0; align-self: start; flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: var(--space-2) var(--space-4); }
  .ref__stack dt { flex-basis: 100%; }
}

/* Contact CTA: the one dark band, Deep Teal in both themes. */
.cta {
  --focus-ring: var(--brand-mint);
  --action-primary-bg: #FFFFFF; --action-primary-bg-hover: var(--mint-100); --action-primary-bg-active: var(--mint-300); --action-primary-fg: var(--brand-teal);
  color-scheme: dark;
  background: var(--brand-teal); color: rgba(255,255,255,.86);
  padding: var(--space-20) var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-12); flex-wrap: wrap;
}
.cta__text { display: flex; flex-direction: column; gap: var(--space-3); }
.cta h2 { color: #fff; }
.cta p { font-size: var(--text-md); line-height: var(--leading-relaxed); max-width: 52ch; }
.cta__note { font-size: var(--text-sm); opacity: .82; }

/* ---- 8. Footer ----------------------------------------------------------- */
.site-footer {
  background: var(--bg-band); border-top: 1px solid var(--border-hairline);
  padding: var(--space-10) var(--gutter);
  display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-12); flex-wrap: wrap;
  font-size: var(--text-sm); color: var(--text-body);
}
.site-footer address { font-style: normal; display: flex; flex-direction: column; gap: var(--space-2); }
.site-footer__name { font-family: var(--font-display); font-stretch: var(--font-display-stretch); font-weight: var(--weight-bold); color: var(--text-heading); }
.site-footer a { color: var(--text-link); }
.site-footer nav ul { display: flex; gap: var(--space-6); flex-wrap: wrap; list-style: none; }

/* ---- 9. Prose pages (services, legal notice, privacy, 404) --------------- */
.prose { max-width: var(--container-narrow); margin-inline: auto; padding: var(--section-y) var(--gutter); display: flex; flex-direction: column; gap: var(--space-8); }
.prose__head { display: flex; flex-direction: column; gap: var(--space-3); }
.prose__head h1 { font-size: var(--text-3xl); }
.prose__lead { font-size: var(--text-md); line-height: var(--leading-relaxed); max-width: 68ch; }
.prose section, .prose article { display: flex; flex-direction: column; gap: var(--space-2); }
.prose section > h2 { font-size: var(--text-md); }
.prose p, .prose li { font-size: var(--text-md); line-height: var(--leading-relaxed); max-width: 68ch; }
.prose ul { padding-left: 1.25em; display: flex; flex-direction: column; gap: var(--space-1); }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: var(--space-1) var(--space-4); }
.facts dt { color: var(--text-muted); }
.facts dd { margin: 0; }
.prose address { font-style: normal; }
.prose .note { font-size: var(--text-xs); line-height: var(--leading-relaxed); color: var(--text-muted); }
.crumbs { display: flex; flex-wrap: wrap; gap: var(--space-2); list-style: none; font-size: var(--text-xs); color: var(--text-muted); }
.crumbs li + li::before { content: "/"; margin-right: var(--space-2); color: var(--text-muted); }
.crumbs a { color: var(--text-muted); }
.crumbs a:hover { color: var(--text-link-hover); }
.updated { font-size: var(--text-xs); color: var(--text-muted); }

/* Root language chooser */
.chooser { min-height: 100svh; display: grid; place-content: center; gap: var(--space-8); padding: var(--space-10) var(--gutter); text-align: center; }
.chooser .logo { margin-inline: auto; width: min(275px, 70vw); }
.chooser ul { display: flex; flex-direction: column; gap: var(--space-3); list-style: none; align-items: center; }
.chooser__note { font-size: var(--text-sm); color: var(--text-muted); max-width: 48ch; }

/* ---- 10. Responsive pass (the handoff's largest known gap) --------------- */
@media (max-width: 1000px) {
  .bento > * { grid-column: 1 / -1; }
  .bento__intro { padding-right: 0; }
}
@media (max-width: 900px) {
  .hero { aspect-ratio: auto; min-height: 480px; display: flex; align-items: center; }
  .hero__scrim { background: linear-gradient(90deg, rgba(26,37,51,.82) 0%, rgba(26,37,51,.72) 100%); }
  .hero__copy { position: relative; width: 100%; padding: var(--space-16) var(--gutter) calc(var(--space-16) + 40px); }
  .rail { grid-template-columns: 1fr; }
  .rail > li, .rail > li:not(:nth-child(3n + 1)), .rail > li:nth-child(3n) { padding: var(--space-6) 0 var(--space-2) calc(var(--rail-rule-gap) + 2px); border-left: 0; }
  .rail > li:nth-last-child(n + 4) { border-bottom: 0; }
  .rail > li + li { border-top: 1px solid var(--border-hairline); }
  .svc-ai { padding: var(--space-6); }
  .stack-strip { border-left: 0; padding-left: 0; gap: var(--space-2) var(--space-6); }
  .hero-actions__inner { justify-content: flex-start; }
  .cta { justify-content: flex-start; }
}
@media (max-width: 640px) {
  .lang__menu { left: 0; right: auto; }
  .prose { overflow-wrap: anywhere; }
  .site-header__inner { gap: var(--space-4); }
  .site-header__controls { gap: var(--space-4); }
  .site-nav ul { gap: var(--space-4); }
  .facts { grid-template-columns: 1fr; gap: 0 }
  .facts dt { margin-top: var(--space-2); }
  .hero-actions__buttons .btn { flex: 1 1 auto; }
}

/* Mobile header presentation. Kept separate from the shared desktop rules so
   this design can be adjusted or reverted without undoing the audit fixes. */
@media (max-width: 640px) {
  .site-header__inner {
    display: grid; grid-template-columns: minmax(0, 1fr);
    gap: var(--space-5); padding-block: var(--space-6) var(--space-4);
  }
  .site-header .logo { width: min(240px, 80vw); margin-inline: auto; }
  .site-header__controls {
    display: grid; grid-template-columns: 56px 64px minmax(0, 1fr);
    gap: var(--space-3); align-items: stretch;
  }
  .site-nav { grid-column: 1 / -1; margin-bottom: var(--space-1); }
  .site-nav ul {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px;
    border: 1px solid var(--border-hairline); border-radius: var(--radius-plate);
    background: var(--border-hairline); overflow: hidden;
  }
  .site-nav li { min-width: 0; height: 100%; background: var(--bg-band); }
  .site-nav a {
    display: flex; align-items: center; justify-content: center;
    min-height: 44px; height: 100%; padding: var(--space-2);
    line-height: 1.3; text-align: center; overflow-wrap: anywhere;
  }
  .site-nav a:focus-visible { outline-offset: -3px; box-shadow: none; }
  .lang__summary { min-height: 44px; height: 100%; width: 100%; justify-content: center; padding-inline: 6px; }
  .theme-toggle {
    min-height: 44px; width: 100%; flex-direction: column; justify-content: center; gap: 1px;
    padding-block: 1px; border: 1px solid var(--border-hairline); border-radius: var(--radius-md);
  }
  .theme-toggle__label { text-align: center; min-width: 0; line-height: 1.2; font-size: var(--text-3xs); }
  .site-header__controls > .btn {
    min-width: 0; min-height: 44px; height: auto; padding: var(--space-2);
    white-space: normal; line-height: 1.3; text-align: center;
  }
  html:not(.js) .site-header__controls > .btn { grid-column: 2 / -1; }
}

/* ---- 12. Motion ---------------------------------------------------------- */
/* Scroll reveals hide content only after their observer initializes. */
:root {
  --duration-panels: 320ms;
  --duration-reveal: 520ms;
  --reveal-rise: 12px;
  --reveal-stagger: 60ms;
  --nav-scrim: rgba(255,255,255,.88);
}
[data-theme="dark"] { --nav-scrim: rgba(20,28,39,.88); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --nav-scrim: rgba(20,28,39,.88); }
}

@keyframes rise-in { from { opacity: 0; transform: translateY(var(--reveal-rise)); } to { opacity: 1; transform: none; } }
@keyframes wipe-in { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes draw-down { from { transform: scaleY(0); } to { transform: scaleY(1); } }

/* Services rail reveal: the row settles as a row, so the delay is keyed to the
   column, not to sibling order — as the hairlines above already are. */
.reveals-ready .rail[data-reveal] > li { opacity: 0; }
.reveals-ready .rail[data-reveal].is-in > li { animation: rise-in var(--duration-reveal) var(--ease-flow) both; }
.reveals-ready .rail[data-reveal].is-in > li:nth-child(3n + 2) { animation-delay: var(--reveal-stagger); }
.reveals-ready .rail[data-reveal].is-in > li:nth-child(3n + 3) { animation-delay: calc(2 * var(--reveal-stagger)); }

/* Hero entrance. No script beyond the .js class in the head, so it starts with
   the first paint; the still image and the video layer never move. */
.js .hero__scrim { animation: wipe-in var(--duration-hero) var(--ease-flow) both; }
.js .hero__copy > * { opacity: 0; animation: rise-in var(--duration-reveal) var(--ease-flow) both; }
.js .hero__copy > *:nth-child(1) { animation-delay: 220ms; }
.js .hero__copy > *:nth-child(2) { animation-delay: 300ms; }
.js .hero__copy > *:nth-child(3) { animation-delay: 380ms; }

/* Header condense. Sticky at top:-1px so the observer in site.js can tell stuck
   from unstuck without a scroll listener. Only the header's own box changes. */
/* Keep stacked headers and short viewports in normal document flow.
   Stickiness requires a measured offset for native anchor navigation. */
@media (min-width: 901px) and (min-height: 601px) {
  html.header-ready { scroll-padding-top: calc(var(--header-height) + var(--space-6)); }
  .header-ready .site-header { position: sticky; top: -1px; z-index: 30; }
}
.site-header__inner { transition: padding-block var(--duration-surfaces) var(--ease-flow); }
.site-header .logo { transition: width var(--duration-surfaces) var(--ease-flow); }
.site-header.is-condensed {
  background: var(--nav-scrim);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
.site-header.is-condensed .site-header__inner { padding-block: var(--space-3); }
.site-header.is-condensed .logo { width: clamp(140px, 14vw, 190px); }
/* The mobile header is a stacked grid; condensing it would fight the 44px hit
   targets, so it keeps its size. */
@media (max-width: 640px) {
  .site-header.is-condensed .site-header__inner { padding-block: var(--space-6) var(--space-4); }
  .site-header.is-condensed .logo { width: min(240px, 80vw); }
}

/* Services rail hover: the rail is hairlines, not cards, so its hover state is
   a hairline too. Mint carries the rule, never the text. */
.rail > li { position: relative; }
.rail > li::after {
  content: ""; position: absolute; left: -1px; top: 0; bottom: 0; width: 2px;
  background: var(--brand-mint);
  transform: scaleY(0); transform-origin: top;
  transition: transform var(--duration-panels) var(--ease-flow);
}
.rail > li:nth-child(3n + 1)::after { left: 0; }
.rail > li:hover::after,
.rail > li:focus-within::after { transform: scaleY(1); }
.rail h3 { transition: color var(--duration-surfaces) var(--ease-flow); }
.rail > li:hover h3,
.rail > li:focus-within h3 { color: var(--text-accent); }
/* One column below 900px: the hairline is a border-top, so the rule sits on the
   left edge of the full-width row. */
@media (max-width: 900px) {
  .rail > li::after { left: 0; }
}

/* Reference rows: the prose is content and the stack is annotation, so they
   arrive in that order. The border-left is handed to an animatable pseudo-
   element so the resting appearance is unchanged. */
.reveals-ready .reflist > li[data-reveal] .ref__main > *,
.reveals-ready .reflist > li[data-reveal] .ref__stack > * { opacity: 0; }
.reveals-ready .reflist > li[data-reveal] .ref__stack { position: relative; border-left-color: transparent; }
.reveals-ready .reflist > li[data-reveal] .ref__stack::before {
  content: ""; position: absolute; left: -1px; top: 0; bottom: 0; width: 1px;
  background: var(--border-rail);
  transform: scaleY(0); transform-origin: top;
}
.reveals-ready .reflist > li[data-reveal].is-in .ref__stack::before {
  animation: draw-down var(--duration-panels) var(--ease-flow) both;
  animation-delay: 160ms;
}
.reveals-ready .reflist > li[data-reveal].is-in .ref__main > * { animation: rise-in var(--duration-reveal) var(--ease-flow) both; }
.reveals-ready .reflist > li[data-reveal].is-in .ref__main > *:nth-child(2) { animation-delay: var(--reveal-stagger); }
.reveals-ready .reflist > li[data-reveal].is-in .ref__main > *:nth-child(3) { animation-delay: calc(2 * var(--reveal-stagger)); }
.reveals-ready .reflist > li[data-reveal].is-in .ref__stack > * { animation: rise-in var(--duration-reveal) var(--ease-flow) both; animation-delay: 260ms; }
.reveals-ready .reflist > li[data-reveal].is-in .ref__stack > *:nth-child(2) { animation-delay: calc(260ms + 1 * var(--reveal-stagger)); }
.reveals-ready .reflist > li[data-reveal].is-in .ref__stack > *:nth-child(3) { animation-delay: calc(260ms + 2 * var(--reveal-stagger)); }
.reveals-ready .reflist > li[data-reveal].is-in .ref__stack > *:nth-child(4) { animation-delay: calc(260ms + 3 * var(--reveal-stagger)); }
/* Narrow rows drop the rail; the drawn rule goes with it. */
@container (max-width: 640px) {
  .reveals-ready .reflist > li[data-reveal] .ref__stack::before { display: none; }
}

/* Theme switch: one crossfade across the surfaces instead of a repaint. The
   toggle only exists with JavaScript, so these can never fire without it. The
   logo swap stays instant — a fade between two lockups reads as an error, and
   .btn keeps the faster control timings of section 3. */
.site-header,
.site-header__inner,
.lang__summary,
.lang__menu,
.hero-actions,
.section,
.svc-ai,
.chips li,
.site-footer {
  transition: background-color var(--duration-surfaces) var(--ease-flow),
              border-color var(--duration-surfaces) var(--ease-flow),
              color var(--duration-surfaces) var(--ease-flow);
}

/* ---- 11. Reduced motion and print --------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
@media print {
  .site-header { position: static !important; }
  [data-reveal] *, [data-reveal] *::before, [data-reveal] *::after,
  .hero__copy > * {
    opacity: 1 !important;
    animation: none !important;
    transform: none !important;
  }
  .hero__media, .hero__control, .site-header__controls, .skip { display: none !important; }
  .hero { min-height: 0; aspect-ratio: auto; color: var(--brand-ink); background: none; }
  .hero__copy { position: static; width: auto; padding: var(--space-6) 0; }
  .hero__copy h1, .hero__copy p, .hero__copy .ds-eyebrow { color: var(--brand-ink); }
  .cta { background: none; color: var(--brand-ink); }
  .cta h2 { color: var(--brand-ink); }
  .section, .hero-actions, .site-footer { padding-inline: 0; }
}
