/* Ariqor Systems landing page */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('../fonts/inter-latin-opsz-normal.woff2') format('woff2-variations');
  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: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('../fonts/inter-latin-ext-opsz-normal.woff2') format('woff2-variations');
  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: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('../fonts/inter-greek-opsz-normal.woff2') format('woff2-variations');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}

/* ------------------------------------------------------------------ tokens */
/* Brand palette: graphite, glacier blue, snow, ice, mist, slate, deep blue, carbon.
   Both themes come from these tokens: a light page of snow and white glass, and
   a carbon page of graphite glass. Every section sits on a glass panel over the
   3D space (field.js), so the space reads as one continuous depth behind them. */

:root {
  --graphite: #282c33;
  --glacier: #a7d8ef;
  --snow: #f8fafc;
  --ice: #e5f3f9;
  --mist: #ced8df;
  --slate: #52616e;
  --deep: #245d76;
  --carbon: #181b20;
  --logo-blue: #3b7d9a;
  --success: #277052;
  --warning: #865600;
  --info: #32678e;

  --font: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --gutter: clamp(20px, 5vw, 72px);
  /* The content width: the header, the hero and every glass panel line their content up on
     the same two edges (--gutter from the screen, at most --max wide). */
  --max: 1360px;
  --gap: clamp(16px, 2vw, 28px);
  --header-h: 72px;
  /* Every section after the hero is a floating glass panel (see "glass panels"): set in from
     the screen's edges by --panel-gap, rounded by --panel-radius, with --section-y above and
     below it, so twice that is the open space between two panels, where the 3D space shows at
     full strength. --panel-pad-y is the air above and below a panel's content. At the sides,
     --panel-inset keeps the content on the page's content edges (the header's: --gutter from
     the screen, at most --max wide) however far the panel is set in; it holds a percentage of
     the panel's own width, so use it only as a panel's padding-inline. */
  --section-y: clamp(8px, 1.1vw, 14px);
  --panel-gap: clamp(8px, 1.6vw, 24px);
  --panel-radius: clamp(22px, 2.4vw, 32px);
  --panel-pad-y: clamp(56px, 6.5vw, 104px);
  --panel-inset: max(calc(var(--gutter) - var(--panel-gap)), calc((100% - var(--max)) / 2));
  --r-s: 10px;
  --r-m: 16px;
  --r-l: 24px;
  --r-xl: 32px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
  --fast: 180ms;

  /* The five layers of one system (the scope board's stacks, the build step, the product drawings): top face and side. */
  --layer-brand: #a7d8ef;
  --layer-ui: #7fbfdd;
  --layer-api: #3b7d9a;
  --layer-data: #245d76;
  --layer-cloud: #52616e;
  --layer-brand-side: #8cc3dd;
  --layer-ui-side: #67a9c8;
  --layer-api-side: #316c86;
  --layer-data-side: #1d4e63;
  --layer-cloud-side: #44515d;

  /* light */
  --bg: #f8fafc;
  --backdrop:
    radial-gradient(1100px 760px at 88% -8%, rgb(167 216 239 / 0.34), transparent 62%),
    radial-gradient(900px 720px at -12% 38%, rgb(229 243 249 / 0.95), transparent 64%),
    radial-gradient(1000px 820px at 105% 96%, rgb(167 216 239 / 0.2), transparent 62%);
  --surface: #ffffff;
  --surface-2: #f1f5f8;
  --text: #282c33;
  --text-2: #52616e;
  --line: rgb(40 44 51 / 0.09);
  --line-strong: rgb(40 44 51 / 0.16);
  --field-border: #7f8c97;
  --link: #245d76;
  --accent: #245d76;
  --accent-soft: #e5f3f9;
  --accent-line: rgb(36 93 118 / 0.28);
  --select: #cfe7f3;
  --btn-bg: #282c33;
  --btn-fg: #f8fafc;
  --btn-hover: #245d76;
  --btn-press: #1b4659;
  --ring: #245d76;
  --error: #ac3e44;
  --error-bg: #fbeff0;
  --ok: #277052;
  --shadow-s: 0 1px 2px rgb(24 27 32 / 0.05);
  --shadow-m: 0 1px 2px rgb(24 27 32 / 0.04), 0 14px 32px -14px rgb(24 27 32 / 0.14);
  --shadow-l: 0 2px 6px rgb(24 27 32 / 0.04), 0 32px 64px -28px rgb(24 27 32 / 0.2);
  --header-bg: rgb(248 250 252 / 0.82);

  /* The glass of every panel: a 10 % tint (20 % on the dark page) and a 3px blur, so the 3D
     space runs through every section, softened just enough to read as glass, and shows at full
     strength around the panels. A panel is one even tint from edge to edge, with no colour of
     its own: it is told apart by its shape (a rounded pane set in from the screen's edges), its
     hairline rim (--panel-rim) and its lift (--glass-lift), see "glass panels".
     Neither the tint nor the blur is what keeps text readable: the space itself does
     (field.js, "the words' veil"). Wherever words sit on a panel, inside a card or straight on
     the glass, the space is thinned to 6 % of its strength beneath them, padded and softly
     feathered, so the dots part around the words and stay at full strength beside them. So at
     worst a fully lit dot of the strongest colour the space draws (the deep #245d76 on the
     light page, the glacier #a7d8ef on the dark one) shows at 6 % behind a letter. Through the
     WCAG formula, with that dot right behind the text at the backdrop's least helpful spot
     (light page: its glacier glow; dark page: its brightest blue), and leaving out the tint,
     which only helps: light page text 10.9:1, text-2 4.94:1, the deep blue of links and accents
     5.60:1, --ok and --error 4.61:1, --warning 4.86:1 (11.8, 5.37, 6.09, 5.02 and
     5.29:1 with no dot); dark page text 11.0:1, text-2 5.71:1, the accent 7.9:1,
     --error 6.0:1. The 6 % is set by --ok and --error, the light page's weakest text
     colours: at 10 % they would fall to 4.36:1. The pointer's light is drawn by the space too,
     so the veil thins it the same way; the glass's own faint light under the pointer
     (--glass-spot) only whitens the light page, and on the dark page, with the tint, still
     leaves text-2 at 5.25:1 in that worst case. Without JavaScript there is no space (the canvas is
     hidden) and the text stands on the backdrop alone. Without backdrop-filter the panels are
     near-solid glass (--glass-bg-solid). */
  --glass-bg: rgb(255 255 255 / 0.1);
  --glass-bg-solid: rgb(255 255 255 / 0.93);
  --glass-blur: 3px;
  /* A panel's rim: one even 1px hairline all the way round, in a neutral tone of the theme.
     Its lift: a soft highlight just inside the top edge and a faint neutral shadow beneath. */
  --panel-rim: rgb(40 44 51 / 0.1);
  --glass-lift: inset 0 1px 0 rgb(255 255 255 / 0.75), 0 40px 80px -48px rgb(24 27 32 / 0.22);
  /* The surface light under the pointer: a faint white glow on the light page, a faint glacier
     lift on the dark one. The space's own light (field.js) does the rest. */
  --glass-spot: rgb(255 255 255 / 0.24);
  /* Cards on the panels (the process steps, the scope board, the pricing cards ...) stand out
     from the glass they sit on: a much denser fill than the panel (62 % white on the light page;
     72 % of a deep graphite on the dark one, about as deep as the glass and above the page's own
     near-black, so there the clear edge and the shadow carry the separation), a clear edge, a
     highlight along the top and a soft shadow that lifts them off the pane. The 3D space still shows through them,
     faintly. Their text keeps its contrast the same way as all text on a panel (the veil
     above); the light page's denser white only helps dark text, and on the dark page the
     deep graphite keeps at least text 10.3:1, text-2 5.3:1, the accent 7.4:1 and --error
     5.6:1 (the worst case worked out above; a darker card only raises them). Product UI (the windows in What we build)
     keeps its own opaque surfaces. */
  --card-bg: rgb(255 255 255 / 0.62);
  --card-border: rgb(190 202 211 / 0.95);
  --card-dot: rgb(36 93 118 / 0.12);
  --card-shadow: inset 0 1px 0 rgb(255 255 255 / 0.95), 0 1px 2px rgb(24 27 32 / 0.05), 0 22px 44px -26px rgb(24 27 32 / 0.22);

  --space-dot: rgba(36, 93, 118, 0.72);
  --space-line: rgba(36, 93, 118, 0.22);
  --space-accent: #3b7d9a;

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --bg: #181b20;
    --backdrop: radial-gradient(1100px 760px at 88% -8%, rgb(36 93 118 / 0.3), transparent 62%), radial-gradient(1000px 820px at -10% 70%, rgb(36 93 118 / 0.18), transparent 62%);
    --surface: #1f2329; --surface-2: #15181c; --text: #f1f5f9; --text-2: #a9b4bf;
    --line: rgb(241 245 249 / 0.08); --line-strong: rgb(241 245 249 / 0.15); --field-border: #66727e;
    --link: #a7d8ef; --accent: #a7d8ef; --accent-soft: rgb(167 216 239 / 0.1); --accent-line: rgb(167 216 239 / 0.3); --select: rgb(167 216 239 / 0.3);
    --btn-bg: #a7d8ef; --btn-fg: #14171b; --btn-hover: #c9e8f6; --btn-press: #8fcbe6; --ring: #a7d8ef;
    --error: #f0a3a8; --error-bg: rgb(240 163 168 / 0.1); --ok: color-mix(in srgb, #277052 62%, #f1f5f9);
    --shadow-s: 0 1px 2px rgb(0 0 0 / 0.3); --shadow-m: 0 1px 2px rgb(0 0 0 / 0.3), 0 16px 36px -16px rgb(0 0 0 / 0.6); --shadow-l: 0 2px 6px rgb(0 0 0 / 0.3), 0 36px 72px -28px rgb(0 0 0 / 0.75);
    --header-bg: rgb(24 27 32 / 0.8);
    --glass-bg: rgb(40 44 51 / 0.2); --glass-bg-solid: rgb(40 44 51 / 0.94);
    --glass-spot: rgb(167 216 239 / 0.04);
    --panel-rim: rgb(241 245 249 / 0.1); --glass-lift: inset 0 1px 0 rgb(241 245 249 / 0.08), 0 40px 80px -40px rgb(0 0 0 / 0.6);
    --card-bg: rgb(29 33 39 / 0.72); --card-border: rgb(241 245 249 / 0.16); --card-dot: rgb(167 216 239 / 0.1); --card-shadow: inset 0 1px 0 rgb(241 245 249 / 0.09), 0 1px 2px rgb(0 0 0 / 0.3), 0 22px 44px -24px rgb(0 0 0 / 0.7);
    --space-dot: rgba(167, 216, 239, 0.55); --space-line: rgba(167, 216, 239, 0.14); --space-accent: #a7d8ef;
    color-scheme: dark;
  }
}
:root[data-theme='dark'] {
  --bg: #181b20;
  --backdrop: radial-gradient(1100px 760px at 88% -8%, rgb(36 93 118 / 0.3), transparent 62%), radial-gradient(1000px 820px at -10% 70%, rgb(36 93 118 / 0.18), transparent 62%);
  --surface: #1f2329; --surface-2: #15181c; --text: #f1f5f9; --text-2: #a9b4bf;
  --line: rgb(241 245 249 / 0.08); --line-strong: rgb(241 245 249 / 0.15); --field-border: #66727e;
  --link: #a7d8ef; --accent: #a7d8ef; --accent-soft: rgb(167 216 239 / 0.1); --accent-line: rgb(167 216 239 / 0.3); --select: rgb(167 216 239 / 0.3);
  --btn-bg: #a7d8ef; --btn-fg: #14171b; --btn-hover: #c9e8f6; --btn-press: #8fcbe6; --ring: #a7d8ef;
  --error: #f0a3a8; --error-bg: rgb(240 163 168 / 0.1); --ok: color-mix(in srgb, #277052 62%, #f1f5f9);
  --shadow-s: 0 1px 2px rgb(0 0 0 / 0.3); --shadow-m: 0 1px 2px rgb(0 0 0 / 0.3), 0 16px 36px -16px rgb(0 0 0 / 0.6); --shadow-l: 0 2px 6px rgb(0 0 0 / 0.3), 0 36px 72px -28px rgb(0 0 0 / 0.75);
  --header-bg: rgb(24 27 32 / 0.8);
  --glass-bg: rgb(40 44 51 / 0.2); --glass-bg-solid: rgb(40 44 51 / 0.94);
  --glass-spot: rgb(167 216 239 / 0.04);
  --panel-rim: rgb(241 245 249 / 0.1); --glass-lift: inset 0 1px 0 rgb(241 245 249 / 0.08), 0 40px 80px -40px rgb(0 0 0 / 0.6);
  --card-bg: rgb(29 33 39 / 0.72); --card-border: rgb(241 245 249 / 0.16); --card-dot: rgb(167 216 239 / 0.1); --card-shadow: inset 0 1px 0 rgb(241 245 249 / 0.09), 0 1px 2px rgb(0 0 0 / 0.3), 0 22px 44px -24px rgb(0 0 0 / 0.7);
  --space-dot: rgba(167, 216, 239, 0.55); --space-line: rgba(167, 216, 239, 0.14); --space-accent: #a7d8ef;
  color-scheme: dark;
}

/* The theme switch: a circle of the new theme grows from the toggle. */
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
::view-transition-new(root) { z-index: 2; }

/* -------------------------------------------------------------------- base */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-optical-sizing: auto;
  font-feature-settings: 'cv11', 'ss03';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, p, ol, ul, figure { margin: 0; }
h1, h2, h3 { overflow-wrap: break-word; hyphens: manual; }
ol, ul { padding: 0; list-style: none; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
html { scrollbar-color: var(--line-strong) transparent; accent-color: var(--accent); }
input, textarea { caret-color: var(--accent); }
::selection { background: var(--select); color: var(--text); }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--ring); outline-offset: 3px; border-radius: 8px; }
#main:focus { outline: none; }
[id] { scroll-margin-top: var(--header-h); }
.container { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
/* A container that holds a glass panel lets it run nearly edge to edge, set in by --panel-gap; the panel keeps the content on the page's content edges. */
.container:has(> .panel) { max-width: none; padding-inline: var(--panel-gap); }
.icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }

.skip-link {
  position: fixed; left: var(--gutter); top: -100px; z-index: 60;
  padding: 12px 18px; border-radius: var(--r-s); background: var(--btn-bg); color: var(--btn-fg);
  font-weight: 600; text-decoration: none;
}
.skip-link:focus-visible { top: 12px; }

/* The page backdrop: very soft tints of the palette, fixed under the 3D space. */
body::before { content: ''; position: fixed; inset: 0; z-index: -2; pointer-events: none; background: var(--backdrop); }

/* The 3D space behind the whole page, hero included (field.js sets its opacity). */
.space { position: fixed; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; }
.no-js .space { display: none; }

/* ------------------------------------------------------------- typography */

.section-title {
  max-width: 20ch;
  font-size: clamp(2rem, 1.2rem + 2.4vw, 3.25rem); font-weight: 640; line-height: 1.06; letter-spacing: -0.03em;
  text-wrap: balance;
}
.section-title--xl { font-size: clamp(2.375rem, 1.3rem + 3.4vw, 4.25rem); line-height: 1.02; letter-spacing: -0.035em; max-width: 14ch; }
.section-lead {
  max-width: 46ch; margin-top: 20px;
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem); line-height: 1.55; color: var(--text-2); text-wrap: pretty;
}

/* ------------------------------------------------------------------ buttons */

.button {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px;
  border: 1px solid transparent; border-radius: 999px;
  font-size: 1rem; font-weight: 580; line-height: 1.3; letter-spacing: -0.006em; text-align: center; text-decoration: none;
  cursor: pointer; -webkit-tap-highlight-color: transparent; touch-action: manipulation;
  transition: background-color var(--fast) var(--ease), border-color var(--fast) var(--ease), color var(--fast) var(--ease), box-shadow 240ms var(--ease), transform 160ms var(--ease);
}
.button:focus-visible { border-radius: 999px; }
.button:active { transform: translateY(1px); }
.button--large { min-height: 54px; padding: 0 26px; font-size: 1.0625rem; }
.button--small { min-height: 44px; padding: 0 18px; font-size: 0.9375rem; }
.button--primary { background: var(--btn-bg); color: var(--btn-fg); box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.08), var(--shadow-s); }
.button--primary:hover { background: var(--btn-hover); box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.08), var(--shadow-m); }
.button--primary:active { background: var(--btn-press); }
.button--secondary { background: var(--surface); color: var(--text); border-color: var(--line-strong); }
.button--secondary:hover { border-color: var(--field-border); }
.button--secondary:active { background: var(--surface-2); }

.icon-button {
  display: inline-grid; place-items: center; flex: none; width: 44px; height: 44px; padding: 0;
  border: 1px solid var(--line-strong); border-radius: 50%; background: transparent; color: var(--text); cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background-color var(--fast) var(--ease), border-color var(--fast) var(--ease), transform 160ms var(--ease);
}
.icon-button:hover { background: var(--surface-2); border-color: var(--field-border); }
.icon-button:active { transform: scale(0.94); }
.icon-button:focus-visible { border-radius: 50%; }

/* ------------------------------------------------------------------- header */
/* Always in view. Transparent over the top of the hero, frosted once the page scrolls. */

.site-header { position: fixed; inset: 0 0 auto; z-index: 40; height: var(--header-h); color: var(--text); }
.site-header::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: var(--header-bg); border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: saturate(1.8) blur(18px); backdrop-filter: saturate(1.8) blur(18px);
  opacity: 0; transition: opacity 300ms var(--ease), background-color 300ms var(--ease);
}
.site-header.is-scrolled::before, .site-header.is-menu-open::before { opacity: 1; }
.site-header__inner { display: flex; align-items: center; gap: 12px; height: 100%; }
.brand { order: 0; flex: 1 0 0; display: inline-flex; align-items: center; min-height: 48px; border-radius: 8px; }
.brand img { transition: opacity var(--fast) var(--ease); }
.brand:hover img { opacity: 0.78; }
.brand__mark { width: clamp(96px, 8vw, 112px); height: auto; }
.brand__mark--dark { display: none; }
:root[data-theme='dark'] .brand__mark--light { display: none; }
:root[data-theme='dark'] .brand__mark--dark { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .brand__mark--light { display: none; }
  :root:not([data-theme]) .brand__mark--dark { display: block; }
}
.site-nav { order: 1; }
.site-header__tools { order: 2; flex: 1 0 0; display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.menu-toggle { order: 3; }

.site-nav__list { display: flex; gap: 2px; }
.site-nav__link {
  position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 999px;
  font-size: 0.9375rem; font-weight: 500; color: var(--text-2); text-decoration: none; white-space: nowrap;
  transition: color var(--fast) var(--ease), background-color var(--fast) var(--ease);
}
.site-nav__link::after {
  content: ''; position: absolute; left: 50%; bottom: 7px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%;
  background: var(--accent); opacity: 0; transform: scale(0); transition: opacity 200ms var(--ease), transform 260ms var(--ease);
}
.site-nav__link:hover { color: var(--text); background: var(--surface-2); }
.site-nav__link[aria-current='true'], .site-nav__link[aria-current='page'] { color: var(--text); }
.site-nav__link[aria-current='true']::after, .site-nav__link[aria-current='page']::after { opacity: 1; transform: none; }
.site-nav__link:focus-visible { border-radius: 999px; }
.site-nav__cta { display: none; }

.menu-toggle__bars { position: relative; width: 18px; height: 12px; }
.menu-toggle__bars i { position: absolute; left: 0; right: 0; height: 1.6px; border-radius: 2px; background: currentColor; transition: transform 300ms var(--ease), top 300ms var(--ease); }
.menu-toggle__bars i:first-child { top: 2px; }
.menu-toggle__bars i:last-child { top: 8.4px; }
.is-menu-open .menu-toggle__bars i { top: 5.2px; }
.is-menu-open .menu-toggle__bars i:first-child { transform: rotate(45deg); }
.is-menu-open .menu-toggle__bars i:last-child { transform: rotate(-45deg); }
.no-js .menu-toggle { display: none; }

@media (min-width: 1120px) {
  .menu-toggle { display: none; }
}
/* The header CTA stays on one line; between 1120 and 1279px the nav tightens so longer labels (fr, de) fit. */
.site-header__cta { white-space: nowrap; }
@media (min-width: 1120px) and (max-width: 1279px) {
  .site-header__inner { gap: 8px; }
  .site-header__tools { gap: 6px; }
  .site-nav__list { gap: 0; }
  .site-nav__link { padding: 0 9px; font-size: 0.875rem; }
  .site-header__cta { padding: 0 14px; }
}
/* Below 1120px the nav is a panel under the header, opened by the menu button. */
@media (max-width: 1119px) {
  .site-nav {
    position: absolute; top: 100%; left: 0; right: 0; display: none;
    padding: 8px var(--gutter) 28px; max-height: calc(100svh - var(--header-h)); overflow-y: auto;
    background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-l);
  }
  .js .is-menu-open .site-nav { display: block; animation: menu-in 280ms var(--ease); }
  .site-nav__list { flex-direction: column; gap: 0; }
  .site-nav__link {
    display: flex; min-height: 56px; padding: 0; border-radius: 0; border-bottom: 1px solid var(--line);
    font-size: 1.125rem; font-weight: 560; color: var(--text);
  }
  .site-nav__link:hover { background: transparent; color: var(--accent); }
  .site-nav__link::after { left: auto; right: 4px; top: 50%; bottom: auto; margin: -2px 0 0; }
  .site-nav__link:focus-visible { border-radius: 6px; }
  .site-nav__cta { display: flex; width: 100%; margin-top: 24px; min-height: 54px; }
}
@media (max-width: 599px) { .site-header__cta { display: none; } }
@keyframes menu-in { from { opacity: 0; transform: translateY(-8px); } }

.theme-toggle__icon { width: 20px; height: 20px; overflow: visible; }
.theme-toggle__core { fill: currentColor; transition: r 400ms var(--ease); }
.theme-toggle__bite { transition: cx 450ms var(--ease), cy 450ms var(--ease); }
.theme-toggle__rays { stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; transform-origin: 12px 12px; transition: transform 450ms var(--ease), opacity 300ms var(--ease); }
:root[data-theme='dark'] .theme-toggle__core { r: 8px; }
:root[data-theme='dark'] .theme-toggle__bite { cx: 17px; cy: 7px; }
:root[data-theme='dark'] .theme-toggle__rays { transform: rotate(-90deg) scale(0.4); opacity: 0; }
.no-js .theme-toggle { display: none; }

.lang-menu { position: relative; }
.lang-menu__details { position: relative; }
.lang-menu__toggle {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; min-width: 44px; padding: 0 12px;
  border: 1px solid var(--line-strong); border-radius: 999px; font-size: 0.875rem; font-weight: 600; letter-spacing: 0.02em;
  /* An opaque pill, so its text has a known background over the see-through header and the moving space. */
  background: var(--surface);
  cursor: pointer; list-style: none; -webkit-tap-highlight-color: transparent;
  transition: background-color var(--fast) var(--ease), border-color var(--fast) var(--ease);
}
.lang-menu__toggle::-webkit-details-marker { display: none; }
.lang-menu__toggle:hover { background: var(--surface-2); border-color: var(--field-border); }
.lang-menu__toggle:focus-visible { border-radius: 999px; }
.lang-menu__toggle .icon { width: 18px; height: 18px; }
.lang-menu__list {
  position: absolute; right: 0; top: calc(100% + 10px); min-width: 200px; padding: 6px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); box-shadow: var(--shadow-l);
}
.lang-menu__details[open] .lang-menu__list { animation: pop 220ms var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(-6px); } }
.lang-menu__link {
  display: flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: var(--r-s); font-size: 0.9375rem; text-decoration: none;
  transition: background-color var(--fast) var(--ease);
}
.lang-menu__link:hover { background: var(--surface-2); }
.lang-menu__link[aria-current] { font-weight: 600; color: var(--link); background: var(--accent-soft); }

/* ------------------------------------------------------------------ sections */
/* Every section after the hero sits on its own floating panel of glass (.panel[data-panel])
   over the 3D space. Open space between and around the panels lets the space show through, so
   the page stays one continuous depth while each section reads as its own pane. */

.section { position: relative; padding-block: var(--section-y); }
/* A section's head: the title, then its lead. In the split head the lead stands to the right
   and its last line sits on the title's last baseline, so the two read as one line of thought
   (end alignment where last-baseline alignment is not supported). */
.section-head { margin-bottom: clamp(40px, 5vw, 72px); }
.section-head--split {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 20px clamp(32px, 5vw, 80px);
  align-items: end; align-items: last baseline;
}
.section-head--split .section-lead { margin-top: 0; justify-self: end; }
@media (max-width: 959px) {
  .section-head--split { grid-template-columns: minmax(0, 1fr); }
  .section-head--split .section-lead { justify-self: start; }
}

/* ------------------------------------------------------------- glass panels */
/* Every section after the hero, and the footer, floats on its own pane of glass
   (.section > .container > .panel[data-panel]): a rounded panel set in from the screen's edges
   by --panel-gap, with open space above and below, so the 3D space shows at full strength
   around every panel and, softened, through it. The content inside keeps the page's content
   edges (--panel-inset).

   The glass is the panel's ::before, so the panel itself filters and clips nothing (position:
   sticky inside it keeps working): one even tint, 10 % (20 % on
   dark), with a 3px blur, a 1px neutral hairline rim (--panel-rim), a highlight just inside its
   top edge and a faint shadow beneath (--glass-lift). No colour of its own: every panel is the
   same plain glass, and the cards on it carry the emphasis. Under a mouse or pen the glass
   brightens softly around the pointer (--mx, --my and is-lit from site.js; --spot fades that
   light in and out). Without backdrop-filter the glass is near-solid (--glass-bg-solid). In
   forced colours the space and the glass are gone and a plain rounded border keeps each
   panel. */

@property --spot { syntax: '<number>'; inherits: true; initial-value: 0; }

.panel {
  --spot: 0;
  --glass-fill: var(--glass-bg-solid);
  position: relative; isolation: isolate;
  padding: var(--panel-pad-y) var(--panel-inset);
  border-radius: var(--panel-radius);
  transition: --spot 520ms var(--ease);
}
.panel.is-lit { --spot: 1; }
/* The glass: the tint, the pointer's wide, faint glow, the rim and the lift. */
.panel::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  border: 1px solid transparent; border-radius: inherit;
  background:
    radial-gradient(640px circle at var(--mx, 50%) var(--my, 0%), color-mix(in srgb, var(--glass-spot) calc(var(--spot) * 100%), transparent), transparent 62%) padding-box,
    linear-gradient(var(--glass-fill), var(--glass-fill)) padding-box,
    linear-gradient(var(--panel-rim), var(--panel-rim)) border-box;
  box-shadow: var(--glass-lift);
}
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .panel { --glass-fill: var(--glass-bg); }
  .panel::before {
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(1.3);
    backdrop-filter: blur(var(--glass-blur)) saturate(1.3);
  }
}

/* ---------------------------------------------------------------------- FAQ */

.faq__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px clamp(40px, 6vw, 96px); align-items: start; }
.faq__head { position: sticky; top: calc(var(--header-h) + 40px); }
.faq__list { border-top: 1px solid var(--line-strong); }
.faq__item { border-bottom: 1px solid var(--line-strong); }
.faq__q {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; padding: 18px 0;
  cursor: pointer; list-style: none; -webkit-tap-highlight-color: transparent;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q:focus-visible { outline-offset: 4px; border-radius: 6px; }
.faq__q-text { font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem); font-weight: 600; line-height: 1.35; letter-spacing: -0.014em; transition: color var(--fast) var(--ease); }
.faq__q:hover .faq__q-text { color: var(--accent); }
.faq__icon { position: relative; flex: none; width: 36px; height: 36px; border: 1px solid var(--line-strong); border-radius: 50%; transition: background-color 300ms var(--ease), border-color 300ms var(--ease), transform 400ms var(--ease); }
.faq__icon::before, .faq__icon::after { content: ''; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.6px; margin: -0.8px 0 0 -6px; border-radius: 2px; background: currentColor; transition: transform 400ms var(--ease); }
.faq__icon::after { transform: rotate(90deg); }
.faq__item[open] .faq__icon { transform: rotate(180deg); background: var(--accent-soft); border-color: var(--accent-line); color: var(--accent); }
.faq__item[open] .faq__icon::after { transform: rotate(180deg); }
.faq__a { max-width: 62ch; padding: 0 60px 26px 0; color: var(--text-2); }
.faq__item[open] .faq__a { animation: faq-in 380ms var(--ease); }
@keyframes faq-in { from { opacity: 0; transform: translateY(-6px); } }
@media (max-width: 959px) {
  .faq__grid { grid-template-columns: minmax(0, 1fr); }
  .faq__head { position: static; }
  .faq__a { padding-right: 0; }
}

/* ------------------------------------------------------------------ contact */

.contact__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 48px var(--gap); align-items: start; }
.contact__intro, .contact-form { grid-column: 1 / -1; }
@media (min-width: 960px) {
  .contact__intro { grid-column: 1 / span 5; position: sticky; top: calc(var(--header-h) + 48px); }
  .contact-form { grid-column: 7 / span 6; }
}
.contact__direct {
  display: flex; align-items: flex-start; gap: 14px; max-width: 420px; margin-top: 36px; padding: 18px 20px;
  border: 1px solid var(--card-border); border-radius: var(--r-m); background: var(--card-bg);
  color: var(--text-2); line-height: 1.5;
}
.contact__direct .icon { margin-top: 2px; color: var(--accent); }
.email-link, .form-status a {
  color: var(--link); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 4px;
  overflow-wrap: anywhere; border-radius: 4px;
  transition: color var(--fast) var(--ease), text-decoration-thickness var(--fast) var(--ease);
}
.email-link:hover, .form-status a:hover { text-decoration-thickness: 2.5px; }
.email-link:active, .form-status a:active { color: var(--text); }

.contact-form {
  position: relative; padding: clamp(24px, 3.5vw, 48px);
  border: 1px solid var(--card-border); border-radius: 20px; background: var(--surface); box-shadow: var(--card-shadow);
}
@media (max-width: 599px) { .contact-form { padding: 22px 16px; } }
.field + .field { margin-top: 24px; }
.field__label { display: block; margin-bottom: 8px; font-size: 0.9375rem; font-weight: 600; }
.field__hint { margin: -2px 0 10px; font-size: 0.9375rem; line-height: 1.45; color: var(--text-2); }
.field__input {
  display: block; width: 100%; min-height: 52px; padding: 13px 16px;
  border: 1px solid var(--field-border); border-radius: 12px; background: var(--bg);
  font-size: 1.0625rem; line-height: 1.4; -webkit-appearance: none; appearance: none;
  transition: border-color var(--fast) var(--ease), background-color var(--fast) var(--ease), box-shadow 240ms var(--ease);
}
.field__input--area { min-height: 168px; resize: vertical; }
.field__input:hover { border-color: var(--text-2); }
.field__input:focus { outline: none; border-color: var(--accent); background: var(--surface); box-shadow: 0 0 0 4px var(--accent-soft); }
.field__input[aria-invalid='true'] { border-color: var(--error); }
.field__input[aria-invalid='true']:focus { box-shadow: 0 0 0 4px var(--error-bg); }
.field__error { margin-top: 8px; font-size: 0.9375rem; font-weight: 500; color: var(--error); }
.field__error[hidden] { display: none; }
.form-summary { margin-bottom: 24px; padding: 14px 16px; border: 1px solid color-mix(in srgb, var(--error) 45%, transparent); border-radius: var(--r-s); background: var(--error-bg); color: var(--error); font-weight: 600; }
.contact-form__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 20px; margin-top: 32px; }
.contact-form__hint { flex: 1 1 220px; font-size: 0.875rem; line-height: 1.5; color: var(--text-2); }
.button--submit { flex: none; }
@media (max-width: 559px) { .button--submit { width: 100%; } }
.button--submit[aria-disabled='true'] { opacity: 0.75; cursor: progress; }
.contact-form__trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin-top: 24px; padding: 14px 16px; border: 1px solid var(--accent-line); border-radius: var(--r-s); background: var(--accent-soft); font-size: 0.9375rem; }
.form-status:empty { display: none; }
.form-status--ok { border-color: color-mix(in srgb, var(--success) 45%, transparent); }
.form-status--error { border-color: color-mix(in srgb, var(--error) 45%, transparent); background: var(--error-bg); }
.form-status p + .form-status__action { margin-top: 10px; }
.form-status__action {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px;
  border: 1px solid var(--field-border); background: var(--surface); color: var(--text); font-weight: 600; cursor: pointer;
  transition: border-color var(--fast) var(--ease), background-color var(--fast) var(--ease);
}
.form-status__action:hover { border-color: var(--accent); }
.form-status__action:focus-visible { border-radius: 999px; }


/* ------------------------------------------------------------------- footer */
/* The last glass panel, at the bottom of the page, in the theme's colours. */

.site-footer { padding: var(--section-y) 0 var(--panel-gap); color: var(--text-2); font-size: 0.9375rem; }
/* The last panel: the same pane, a little more frosted (a 16 % tint, 24 % on dark, and a 6px
   blur), so the page comes to rest. */
.site-footer__panel {
  --glass-blur: 6px;
  padding-top: clamp(40px, 4.5vw, 64px);
  padding-bottom: calc(clamp(24px, 2.8vw, 40px) + env(safe-area-inset-bottom, 0px));
}
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .site-footer__panel { --glass-fill: rgb(255 255 255 / 0.16); }
}
@media (prefers-color-scheme: dark) {
  @supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
    :root:not([data-theme='light']) .site-footer__panel { --glass-fill: rgb(40 44 51 / 0.24); }
  }
}
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  :root[data-theme='dark'] .site-footer__panel { --glass-fill: rgb(40 44 51 / 0.24); }
}
.site-footer__top { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 4fr) minmax(0, 3fr); gap: 40px clamp(32px, 5vw, 72px); padding-bottom: 40px; border-bottom: 1px solid var(--line-strong); }
.site-footer__mark { width: 116px; height: auto; }
.site-footer__mark--dark { display: none; }
:root[data-theme='dark'] .site-footer__mark--light { display: none; }
:root[data-theme='dark'] .site-footer__mark--dark { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .site-footer__mark--light { display: none; }
  :root:not([data-theme]) .site-footer__mark--dark { display: block; }
}
.site-footer__tagline { max-width: 32ch; margin-top: 18px; line-height: 1.55; }
.site-footer__links { display: grid; grid-template-columns: repeat(2, minmax(0, max-content)); gap: 0 32px; }
.site-footer__link, .site-footer__email {
  display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; text-decoration: none; border-radius: 6px;
  transition: color var(--fast) var(--ease);
}
.site-footer__link:hover { color: var(--text); }
.site-footer__contact { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.site-footer__email { color: var(--link); font-weight: 600; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1.5px; overflow-wrap: anywhere; }
.site-footer__email:hover { color: var(--text); }
.site-footer__langs { display: flex; flex-wrap: wrap; gap: 2px; margin-left: -10px; }
.site-footer__lang { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; border-radius: 999px; text-decoration: none; transition: background-color var(--fast) var(--ease), color var(--fast) var(--ease); }
.site-footer__lang:hover { color: var(--text); background: var(--surface-2); }
.site-footer__lang[aria-current] { color: var(--link); font-weight: 600; }
.site-footer__bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 20px; }
.site-footer__copy { font-size: 0.875rem; }
@media (max-width: 899px) {
  .site-footer__top { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .site-footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 519px) {
  .site-footer__top { grid-template-columns: minmax(0, 1fr); }
}

/* ----------------------------------------------------------- reduced motion */

@media (prefers-reduced-motion: reduce) {
  /* No transitions at all: a forced short one would still make measured sizes lag a frame. */
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition: none !important; }
  .button:active, .icon-button:active { transform: none; }
}

@media (forced-colors: active) {
  .space, body::before { display: none; }
  .button { border: 2px solid ButtonText; }
  .panel { border: 1px solid CanvasText; }
  .panel::before { display: none; }
}
