/* XiroDigital main site. Brand values come from tokens.css; this file only uses the variables.
   Layout: phone first, breakpoints at 640px, 1024px. Max content width 1200px. */

/* ---------- Fonts (Inter, self-hosted: no requests to Google, GDPR-friendly) ---------- */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/inter-400.woff") format("woff"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/inter-500.woff") format("woff"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/inter-600.woff") format("woff"); }

:root {
  --font-code: ui-monospace, "Cascadia Mono", "SF Mono", Consolas, "Liberation Mono", monospace;
  --header-h: 64px;
  --container: 1200px;
  --gutter: 16px;
  --section-y: 64px;
  --on-navy-muted: #c3cfdc;
  --terminal-bg: #06121f;
  --terminal-key: #8fc1f3;
  --terminal-ok: #4cc38a;
  /* Logo colors: horizontal logo on light, reversed logo on dark (both from the brand kit). */
  --logo-word: #0b1f33;
  --logo-main: #0f62c1;
  --logo-light: #4a9be8;
}

[data-theme="dark"] { --logo-word: #ffffff; --logo-main: #ffffff; --logo-light: #8fc1f3; --terminal-bg: #081626; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --logo-word: #ffffff; --logo-main: #ffffff; --logo-light: #8fc1f3; --terminal-bg: #081626; }
}

@media (min-width: 640px) { :root { --gutter: 24px; } }
@media (min-width: 1024px) { :root { --section-y: 96px; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
  color-scheme: light dark;
}
html[data-theme="light"] { color-scheme: light; }
html[data-theme="dark"] { color-scheme: dark; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--brand-blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brand-blue-strong); }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; color: var(--ink); text-wrap: balance; }
h1 { font-size: clamp(2.125rem, 1.55rem + 2.4vw, 3rem); line-height: 1.15; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.625rem, 1.35rem + 1.15vw, 2.25rem); line-height: 1.2; letter-spacing: -0.015em; }
h3 { font-size: 1.25rem; line-height: 1.4; letter-spacing: -0.005em; }
strong { font-weight: 600; }

:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 2px; }

.icon { width: 20px; height: 20px; flex: none; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  padding: 10px 16px; border-radius: var(--radius-md);
  background: var(--brand-blue); color: var(--on-blue); font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; color: var(--on-blue); }

.container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Text helpers ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  margin: 0 0 16px; font-size: 12px; line-height: 16px; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--brand-blue);
}
.eyebrow::before { content: ""; width: 20px; height: 2px; background: currentColor; border-radius: 1px; }
.lead { font-size: 1.125rem; line-height: 1.6; color: var(--ink-muted); max-width: 65ch; }
.muted { color: var(--ink-muted); }
.mono { font-family: var(--font-code); }

/* ---------- Buttons and links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: var(--radius-md);
  border: 1px solid transparent; font: inherit; font-size: 1rem; font-weight: 600; line-height: 1.2;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn .icon { width: 18px; height: 18px; transition: transform .15s ease; }
.btn:hover .icon-move { transform: translateX(3px); }
.btn-primary { background: var(--brand-blue); color: var(--on-blue); }
.btn-primary:hover { background: var(--brand-blue-strong); color: var(--on-blue); }
.btn-secondary { background: var(--surface); color: var(--ink); border-color: var(--border-control); }
.btn-secondary:hover { border-color: var(--brand-blue); color: var(--brand-blue); }
.btn-ghost-light { background: transparent; color: var(--on-navy); border-color: rgba(255, 255, 255, .45); }
.btn-ghost-light:hover { background: rgba(255, 255, 255, .08); border-color: #ffffff; color: var(--on-navy); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: .9375rem; }
.btn-block { width: 100%; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 600; text-decoration: none; color: var(--brand-blue);
}
.link-arrow .icon { width: 18px; height: 18px; transition: transform .15s ease; }
.link-arrow:hover .icon { transform: translateX(3px); }

.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0;
  border: 1px solid transparent; border-radius: var(--radius-md); background: transparent;
  color: var(--ink); cursor: pointer;
}
.icon-btn:hover { background: var(--surface-alt); border-color: var(--border); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--surface); border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; gap: 8px; height: var(--header-h); }

.brand { display: inline-flex; align-items: center; flex: none; margin-right: auto; padding: 6px 0; }
.logo { height: 32px; width: auto; }
.logo .logo-word { fill: var(--logo-word); }
.logo .logo-main { fill: var(--logo-main); }
.logo .logo-light { fill: var(--logo-light); }

.site-nav { display: none; }
.nav-links { list-style: none; }
.nav-links a {
  display: block; text-decoration: none; color: var(--ink); font-weight: 500;
}
.nav-links a:hover { color: var(--brand-blue); }
.nav-links a[aria-current="page"] { color: var(--brand-blue); }

.nav-actions { display: flex; align-items: center; gap: 8px; }
.nav-lang, .nav-portal {
  display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 10px;
  border-radius: var(--radius-md); color: var(--ink); text-decoration: none; font-weight: 500; font-size: .9375rem;
}
.nav-lang:hover, .nav-portal:hover { background: var(--surface-alt); color: var(--brand-blue); }
.nav-lang .code { font-family: var(--font-code); font-size: .8125rem; font-weight: 600; padding: 2px 6px; border: 1px solid var(--border-control); border-radius: var(--radius-sm); }
.nav-portal .icon { width: 18px; height: 18px; }

.theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon-sun { display: none; }
  :root:not([data-theme="light"]) .theme-toggle .icon-moon { display: block; }
}

.nav-toggle .icon-close { display: none; }
.site-header.is-open .nav-toggle .icon-menu { display: none; }
.site-header.is-open .nav-toggle .icon-close { display: block; }

/* Mobile menu (below 1200px): a panel under the header. Without JavaScript the menu is simply shown. */
@media (max-width: 1199.98px) {
  html:not(.js) .site-nav,
  .site-header.is-open .site-nav {
    display: block; position: absolute; top: var(--header-h); left: 0; right: 0;
    max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
    background: var(--surface); border-bottom: 1px solid var(--border);
    padding: 8px var(--gutter) 24px;
  }
  html:not(.js) .site-nav { position: static; border: 0; }
  html:not(.js) .nav-toggle { display: none; }
  .nav-links li + li { border-top: 1px solid var(--border); }
  .nav-links a { padding: 16px 0; font-size: 1.125rem; }
  .nav-actions { flex-direction: column; align-items: stretch; gap: 12px; margin-top: 16px; }
  .nav-lang, .nav-portal { min-height: 48px; padding: 0 12px; border: 1px solid var(--border); }
  .nav-actions .btn { min-height: 48px; }
}

@media (min-width: 1200px) {
  .site-nav { display: flex; align-items: center; gap: 24px; flex: 1; justify-content: space-between; margin-left: 40px; }
  .nav-links { display: flex; gap: 4px; }
  .nav-links a { padding: 8px 12px; border-radius: var(--radius-md); font-size: .9375rem; position: relative; }
  .nav-links a[aria-current="page"]::after {
    content: ""; position: absolute; left: 12px; right: 12px; bottom: -13px; height: 2px; background: var(--brand-blue);
  }
  .nav-toggle { display: none; }
  .brand { margin-right: 0; }
}

/* ---------- Sections ---------- */
.section { padding: var(--section-y) 0; }
.section-alt { background: var(--surface-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-alt + .section-alt { border-top: 0; }
.section-head { max-width: 760px; margin-bottom: 40px; }
.section-head .lead { margin-top: 16px; }
.section-head-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 32px; margin-bottom: 40px; }
.section-head-row .section-head { margin-bottom: 0; }

.grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .grid { gap: 24px; } .grid-2, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ---------- Hero (home) ---------- */
.hero {
  position: relative; overflow: hidden; color: var(--on-navy); background-color: var(--brand-navy);
  /* Fine engineering grid: a quiet technical texture, not a gradient wash. */
  background-image:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 48px 48px;
  background-position: -1px -1px;
  padding: 56px 0 64px;
}
.hero h1 { color: var(--on-navy); max-width: 16ch; }
.hero .eyebrow { color: var(--on-navy-muted); }
.hero .lead { color: var(--on-navy-muted); margin-top: 20px; }
.hero-grid { display: grid; gap: 48px; align-items: center; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
@media (max-width: 479.98px) { .hero-actions .btn { width: 100%; } }
@media (min-width: 1024px) {
  .hero { padding: 96px 0 104px; }
  .hero-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 64px; }
}

/* Terminal card: shows the technical side in a calm, readable way. */
.terminal {
  margin: 0; border: 1px solid rgba(255, 255, 255, .14); border-radius: var(--radius-md);
  background: var(--terminal-bg); color: #e6edf5; font-family: var(--font-code);
  font-size: 13px; line-height: 1.75; overflow: hidden;
}
.terminal-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 16px; border-bottom: 1px solid rgba(255, 255, 255, .1);
  font-size: 12px; color: var(--on-navy-muted);
}
.terminal-status { display: inline-flex; align-items: center; gap: 8px; color: var(--terminal-ok); }
.terminal-status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.terminal-body { padding: 16px; }
.terminal-cmd { color: #ffffff; margin-bottom: 8px; }
.terminal-cmd .prompt { color: var(--terminal-key); margin-right: 8px; }
.terminal-rows { display: grid; gap: 2px; margin: 0; }
.terminal-row { display: grid; grid-template-columns: 7.5em minmax(0, 1fr); gap: 8px; }
.terminal-row dt { color: var(--terminal-key); white-space: nowrap; overflow: hidden; }
.terminal-row dt::after { content: " ................"; color: rgba(255, 255, 255, .25); }
.terminal-row dd { margin: 0; color: #e6edf5; }
.terminal-ready { margin-top: 12px; color: var(--terminal-ok); display: flex; align-items: center; gap: 8px; }
.terminal-ready .icon { width: 16px; height: 16px; }
.cursor { display: inline-block; width: .6em; height: 1.1em; background: #e6edf5; vertical-align: -0.2em; animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
@media (min-width: 640px) { .terminal { font-size: 14px; } .terminal-body { padding: 20px 24px 24px; } .terminal-row { grid-template-columns: 9.5em minmax(0, 1fr); } }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  background-color: var(--surface-alt); border-bottom: 1px solid var(--border);
  background-image:
    linear-gradient(color-mix(in srgb, var(--border) 60%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--border) 60%, transparent) 1px, transparent 1px);
  background-size: 48px 48px;
  background-position: -1px -1px;
  padding: 48px 0 56px;
}
.page-hero-inner { max-width: 780px; }
.page-hero .lead { margin-top: 16px; }
@media (min-width: 1024px) { .page-hero { padding: 80px 0 88px; } }

/* ---------- Cards ---------- */
.card {
  position: relative; display: flex; flex-direction: column; gap: 12px;
  padding: 24px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md);
  transition: border-color .15s ease;
}
.card p { color: var(--ink-muted); }
.card-link:hover { border-color: var(--brand-blue); }
.card .link-arrow { margin-top: auto; padding-top: 8px; }
.card-icon {
  display: inline-grid; place-items: center; width: 44px; height: 44px;
  border-radius: var(--radius-md); background: var(--brand-tint); color: var(--brand-blue);
}
.card-icon .icon { width: 22px; height: 22px; }
.card-caption { font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-muted); }
@media (min-width: 1024px) { .card { padding: 28px; } }

/* Pillars: four commitments under the hero */
.pillar { display: flex; flex-direction: column; gap: 12px; padding-top: 20px; border-top: 2px solid var(--brand-blue); }
.pillar-head { display: flex; align-items: center; gap: 10px; }
.pillar-head .icon { color: var(--brand-blue); width: 22px; height: 22px; }
.pillar p { color: var(--ink-muted); }

/* Products */
.product-card .byline { font-size: .875rem; color: var(--ink-muted); }
.product-card h3 { font-size: 1.375rem; }
.product-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }

/* ---------- Process ---------- */
.steps { list-style: none; display: grid; gap: 0; counter-reset: step; }
.step { position: relative; padding: 0 0 32px 56px; }
.step:last-child { padding-bottom: 0; }
.step::before { content: ""; position: absolute; left: 19px; top: 40px; bottom: 0; width: 2px; background: var(--border); }
.step:last-child::before { display: none; }
.step-num {
  position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 40px; height: 40px;
  border-radius: var(--radius-md); background: var(--surface); border: 1px solid var(--border-control);
  font-family: var(--font-code); font-size: 14px; font-weight: 600; color: var(--brand-blue);
}
.step h3 { margin: 6px 0 8px; }
.step p { color: var(--ink-muted); }
@media (min-width: 1024px) {
  .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
  .step { padding: 64px 0 0; }
  .step::before { left: 48px; right: -32px; top: 19px; bottom: auto; width: auto; height: 2px; }
  .step-num { top: 0; }
}

/* ---------- Tech stack ---------- */
.stack-layout { display: grid; gap: 32px; align-items: center; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; min-height: 36px; padding: 0 12px;
  border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface);
  font-family: var(--font-code); font-size: 14px; color: var(--ink);
}
@media (min-width: 1024px) { .stack-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; } .stack-layout .section-head { margin-bottom: 0; } }

/* ---------- CTA band ---------- */
.cta-band { background: var(--brand-navy); color: var(--on-navy); padding: 56px 0; }
.cta-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 48px; }
.cta-band h2 { color: var(--on-navy); }
.cta-band p { color: var(--on-navy-muted); margin-top: 12px; max-width: 60ch; }
@media (max-width: 479.98px) { .cta-inner .btn { width: 100%; } }
@media (min-width: 1024px) { .cta-band { padding: 72px 0; } }

/* ---------- Services page ---------- */
.service-list { display: grid; gap: 16px; }
.service-row {
  display: grid; gap: 24px; padding: 24px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface);
}
.service-main { display: flex; flex-direction: column; gap: 12px; }
.service-main p { color: var(--ink-muted); }
.check-list { list-style: none; display: grid; gap: 12px; align-content: start; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; }
.check-list .icon { color: var(--success); width: 20px; height: 20px; margin-top: 2px; }
@media (min-width: 1024px) {
  .service-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; padding: 32px; }
  .service-row .check-list { padding-left: 48px; border-left: 1px solid var(--border); }
}

/* ---------- About page ---------- */
.two-col { display: grid; gap: 40px; }
@media (min-width: 1024px) { .two-col { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; } }
.prose-block p { color: var(--ink-muted); font-size: 1.0625rem; line-height: 1.7; max-width: 65ch; }
.principle h3 { font-size: 1.125rem; margin-bottom: 6px; }
.principle p { color: var(--ink-muted); }
.principle { padding: 20px 0; border-top: 1px solid var(--border); }
.icon-list { list-style: none; display: grid; gap: 12px; }
.icon-list li {
  display: flex; align-items: center; gap: 14px; padding: 16px 18px;
  border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface);
}
.icon-list .icon { color: var(--brand-blue); }
.details { display: grid; gap: 0; margin: 0; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface); }
.details div { display: grid; gap: 2px; padding: 14px 18px; }
.details div + div { border-top: 1px solid var(--border); }
.details dt { font-size: .875rem; color: var(--ink-muted); }
.details dd { margin: 0; font-weight: 500; }
@media (min-width: 640px) { .details div { grid-template-columns: 200px minmax(0, 1fr); gap: 16px; } }

/* ---------- Contact page ---------- */
.contact-layout { display: grid; gap: 32px; align-items: start; }
@media (min-width: 1024px) { .contact-layout { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 48px; } }
.form-card { padding: 24px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface); }
@media (min-width: 640px) { .form-card { padding: 32px; } }
.form-card h2 { font-size: 1.5rem; margin-bottom: 24px; }
.form-grid { display: grid; gap: 20px; }
@media (min-width: 640px) { .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .field-full { grid-column: 1 / -1; } }
.field { display: grid; gap: 6px; }
.field label { font-size: .875rem; font-weight: 600; }
.field .opt { font-weight: 400; color: var(--ink-muted); }
.field .hint { font-size: .875rem; color: var(--ink-muted); }
.input {
  width: 100%; min-height: 48px; padding: 10px 12px; font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--surface); border: 1px solid var(--border-control); border-radius: var(--radius-sm);
}
textarea.input { min-height: 150px; resize: vertical; line-height: 1.5; }
select.input { appearance: none; padding-right: 40px; background-image: linear-gradient(45deg, transparent 50%, var(--ink-muted) 50%), linear-gradient(135deg, var(--ink-muted) 50%, transparent 50%); background-position: calc(100% - 20px) 21px, calc(100% - 15px) 21px; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; }
.input:hover { border-color: var(--ink-muted); }
.input:focus { outline: 2px solid var(--focus); outline-offset: 0; border-color: var(--focus); }
.input.input-validation-error { border-color: var(--danger); }
.field-error, .field-validation-error { display: block; font-size: .875rem; color: var(--danger); }
.field-validation-valid { display: none; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: .9375rem; color: var(--ink-muted); }
.consent input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; accent-color: var(--brand-blue); }
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 4px; }
.alert { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--radius-md); border: 1px solid; margin-bottom: 24px; }
.alert .icon { margin-top: 2px; }
.alert-error { border-color: var(--danger); color: var(--danger); background: var(--surface); }
.alert-error ul { list-style: none; }
.success-box { display: grid; gap: 12px; justify-items: start; }
.success-box .icon { width: 40px; height: 40px; color: var(--success); }
.success-box h2 { margin: 0; }
.aside-stack { display: grid; gap: 24px; }
.aside-block { padding: 24px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface); }
.aside-block h2 { font-size: 1.125rem; margin-bottom: 16px; }
.contact-line { display: flex; align-items: center; gap: 12px; padding: 10px 0; text-decoration: none; color: var(--ink); font-weight: 500; overflow-wrap: anywhere; }
.contact-line .icon { color: var(--brand-blue); }
a.contact-line:hover { color: var(--brand-blue); }
.next-steps { list-style: none; display: grid; gap: 16px; counter-reset: next; }
.next-steps li { position: relative; padding-left: 40px; color: var(--ink-muted); counter-increment: next; }
.next-steps li::before {
  content: counter(next); position: absolute; left: 0; top: -2px; display: grid; place-items: center; width: 28px; height: 28px;
  border-radius: var(--radius-sm); background: var(--brand-tint); color: var(--brand-blue); font-family: var(--font-code); font-size: 13px; font-weight: 600;
}
.turnstile-box { min-height: 65px; }

/* ---------- Legal pages ---------- */
.prose { max-width: 760px; }
.prose h2 { font-size: 1.25rem; margin: 36px 0 10px; }
.prose p { color: var(--ink-muted); line-height: 1.7; }
.prose .meta { font-size: .875rem; color: var(--ink-muted); margin-bottom: 24px; }
.note { padding: 12px 16px; border-left: 0; border: 1px solid var(--warning); border-radius: var(--radius-md); color: var(--warning); font-size: .9375rem; margin-bottom: 24px; }

/* ---------- Error page ---------- */
.error-page { padding: 96px 0; }
.error-code { font-family: var(--font-code); color: var(--brand-blue); font-weight: 600; margin-bottom: 12px; }
.error-page .lead { margin: 16px 0 32px; }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .foot, .cta-band, .skip-link { display: none; }
  .hero { background: none; color: #000; }
  .hero h1, .hero .lead { color: #000; }
}

/* ---------- Small utilities ---------- */
h2.h3 { font-size: 1.25rem; line-height: 1.4; letter-spacing: -0.005em; }
.stack-gap { margin-top: 16px; }
.principles { margin-top: 16px; }

/* ---------- Heritage facts, leadership, product status ---------- */
.prose-block .link-arrow { margin-top: 24px; }
.facts { display: grid; gap: 0; margin: 0; border-top: 1px solid var(--border); align-self: start; }
.fact { display: grid; gap: 4px; padding: 18px 0; border-bottom: 1px solid var(--border); }
.fact dt { font-family: var(--font-code); font-size: 1.125rem; font-weight: 600; color: var(--brand-blue); }
.fact dd { margin: 0; color: var(--ink-muted); }
@media (min-width: 640px) { .fact { grid-template-columns: 11rem minmax(0, 1fr); gap: 24px; align-items: baseline; } }

.leader-card { padding: 24px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface); }
.leader-name { font-size: 1.25rem; font-weight: 600; margin: 0; }
.leader-role { color: var(--brand-blue); font-weight: 500; margin: 2px 0 16px; }
.leader-card p:last-child { color: var(--ink-muted); line-height: 1.7; }
@media (min-width: 1024px) { .leader-card { padding: 32px; } }

.status-badge {
  align-self: flex-start; margin-top: auto; display: inline-flex; align-items: center; gap: 8px;
  padding: 4px 10px; border: 1px solid var(--border-control); border-radius: var(--radius-sm);
  font-size: .8125rem; font-weight: 600; color: var(--ink-muted);
}
.status-badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--warning); }
.prose-block .eyebrow { font-size: 12px; line-height: 16px; color: var(--brand-blue); max-width: none; }

/* ---------- Results strip under the home hero ---------- */
.results { background: var(--surface); border-bottom: 1px solid var(--border); }
.results-grid { display: grid; margin: 0; }
.result { display: grid; gap: 6px; padding: 24px 0; }
.result + .result { border-top: 1px solid var(--border); }
.result dt { display: grid; gap: 4px; }
.result-value { font-size: 2.5rem; line-height: 1.1; font-weight: 600; letter-spacing: -0.02em; color: var(--brand-blue); font-variant-numeric: tabular-nums; }
.result-title { font-weight: 600; color: var(--ink); }
.result dd { margin: 0; color: var(--ink-muted); font-size: .9375rem; }
@media (min-width: 1024px) {
  .results-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .result { padding: 40px 32px; }
  .result:first-child { padding-left: 0; }
  .result + .result { border-top: 0; border-left: 1px solid var(--border); }
  .result-value { font-size: 3rem; }
}

.team-list { display: grid; gap: 16px; }

/* ---------- Product testimonials (shown only when real quotes exist) ---------- */
.testimonial { margin: 8px 0 0; padding-top: 16px; border-top: 1px solid var(--border); }
.testimonial blockquote { margin: 0; }
.testimonial blockquote p { color: var(--ink); font-size: .9375rem; line-height: 1.6; }
.testimonial blockquote p::before { content: "\201C"; color: var(--brand-blue); font-weight: 600; margin-right: 2px; }
.testimonial blockquote p::after { content: "\201D"; color: var(--brand-blue); font-weight: 600; margin-left: 2px; }
.testimonial figcaption { display: grid; margin-top: 10px; font-size: .875rem; }
.testimonial-name { font-weight: 600; }
.testimonial-role { color: var(--ink-muted); }

/* ---------- Hero city scene (inside the terminal card) ---------- */
.city { width: 100%; height: auto; margin: 0 0 4px; overflow: visible; }
.city .far rect { fill: rgba(255, 255, 255, .035); }
.city .bld { fill: rgba(255, 255, 255, .06); stroke: rgba(255, 255, 255, .42); stroke-width: 1; }
.city .roof { fill: rgba(143, 193, 243, .12); }
.city .door { fill: rgba(255, 255, 255, .18); }
.city .win { fill: rgba(255, 255, 255, .1); }
.city .win-on { fill: #8fc1f3; opacity: .85; }
.city .w1 { animation: twinkle 7s ease-in-out infinite; }
.city .w2 { animation: twinkle 9s ease-in-out 2s infinite; }
.city .w3 { animation: twinkle 11s ease-in-out 4s infinite; }
@keyframes twinkle { 0%, 100% { opacity: .85; } 45% { opacity: .85; } 55% { opacity: .2; } 65% { opacity: .85; } }

.city .pole, .city .antenna { stroke: rgba(255, 255, 255, .55); stroke-width: 1; fill: none; }
.city .flag { fill: var(--brand-sky); }
.city .head { fill: #e6edf5; }
.city .body { stroke: #e6edf5; stroke-width: 1.6; stroke-linecap: round; fill: none; }
.city .pack { fill: var(--brand-sky); }
.city .cap { fill: #e0a341; }

.city .solar { fill: rgba(74, 155, 232, .55); stroke: #8fc1f3; stroke-width: .6; }

.city .frame { fill: none; stroke: rgba(255, 255, 255, .45); stroke-width: 1; stroke-dasharray: 3 3; }
.city .scaffold { stroke: rgba(224, 163, 65, .55); stroke-width: .8; fill: none; }
.city .crane-mast, .city .crane-lattice, .city .crane-jib, .city .cable { stroke: #e0a341; stroke-width: 1.1; fill: none; stroke-linejoin: round; }
.city .crane-lattice { stroke-width: .7; }
.city .cable { stroke-width: .8; }
.city .counterweight { fill: #e0a341; }
.city .load { fill: rgba(255, 255, 255, .55); }
.city .hook { transform-box: view-box; transform-origin: 430px 56px; animation: sway 5s ease-in-out infinite; }
@keyframes sway { 0%, 100% { transform: rotate(-2deg); } 50% { transform: rotate(2deg); } }

.city .mast { fill: rgba(255, 255, 255, .55); }
.city .blade { fill: #e6edf5; }
.city .hub { fill: #ffffff; }
.city .blades { transform-box: view-box; transform-origin: 32px 150px; animation: spin 6s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.city .link { fill: none; stroke: rgba(143, 193, 243, .28); stroke-width: 1; }
.city .link.flow { stroke: #8fc1f3; stroke-dasharray: 3 9; animation: flow 1.8s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -24; } }
.city .node { fill: #8fc1f3; }
.city .ring { fill: none; stroke: #8fc1f3; stroke-width: 1; opacity: 0; transform-box: fill-box; transform-origin: center; animation: ping 3s ease-out infinite; }
.city .r2 { animation-delay: 1s; }
.city .r3 { animation-delay: 2s; }
@keyframes ping { 0% { opacity: .7; transform: scale(.3); } 80%, 100% { opacity: 0; transform: scale(1.4); } }

.city .ground { stroke: rgba(255, 255, 255, .4); stroke-width: 1; }
.city .grid-line { fill: none; stroke: rgba(76, 195, 138, .35); stroke-width: 1; }
.city .grid-line.energy { stroke: var(--terminal-ok); stroke-dasharray: 2 8; stroke-width: 1.6; animation: flow 1.4s linear infinite; }
.city .tag { font-family: var(--font-code); font-size: 9px; letter-spacing: .06em; fill: var(--on-navy-muted); }
.city .tag-energy { fill: var(--terminal-ok); }

.terminal-body .terminal-ready { margin-top: 8px; }

/* ---------- Products first: home cards and product rows ---------- */
.card-actions { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: auto; padding-top: 8px; }
.card-actions .link-arrow { margin-top: 0; padding-top: 0; }
.product-card .status-badge { margin-top: 4px; }

.product-list { display: grid; gap: 24px; }
.product-row {
  display: grid; gap: 28px; padding: 24px; scroll-margin-top: calc(var(--header-h) + 16px);
  border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface);
}
.product-main { display: flex; flex-direction: column; gap: 12px; }
.product-main p { color: var(--ink-muted); font-size: 1.0625rem; line-height: 1.7; max-width: 60ch; }
.product-name { font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.25rem); line-height: 1.2; letter-spacing: -0.015em; }
.product-main .byline { margin-top: -6px; color: var(--ink-muted); font-size: .875rem; }
.product-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
@media (max-width: 479.98px) { .product-actions .btn { width: 100%; } }
.side-title { font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-muted); margin-bottom: 16px; }
@media (min-width: 1024px) {
  .product-row { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 56px; padding: 40px; }
  .product-side { padding-left: 48px; border-left: 1px solid var(--border); }
}

/* ---------- Careers and events ---------- */
.empty-state {
  display: flex; gap: 16px; align-items: flex-start; padding: 24px;
  border: 1px dashed var(--border-control); border-radius: var(--radius-md); background: var(--surface);
}
.empty-state > .icon { width: 28px; height: 28px; color: var(--brand-blue); margin-top: 2px; }
.empty-title { font-weight: 600; margin-bottom: 4px; }
.empty-state p:not(.empty-title) { color: var(--ink-muted); max-width: 70ch; }

.job-list, .event-list { display: grid; gap: 16px; }
.job {
  display: grid; gap: 20px; padding: 24px;
  border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface);
  scroll-margin-top: calc(var(--header-h) + 16px);
}
.job-main { display: flex; flex-direction: column; gap: 10px; }
.job-main p:last-child { color: var(--ink-muted); }
.job-meta { display: flex; flex-wrap: wrap; gap: 6px 20px; color: var(--ink-muted); font-size: .9375rem; }
.job-meta span { display: inline-flex; align-items: center; gap: 6px; }
.job-meta .icon { width: 16px; height: 16px; color: var(--brand-blue); }
@media (min-width: 1024px) {
  .job { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); padding: 32px; column-gap: 48px; }
  .job-actions { grid-column: 1 / -1; }
}

.event {
  display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 20px; padding: 24px;
  border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface);
}
.event-date {
  display: grid; align-content: start; align-self: start; justify-items: center; padding: 12px 6px;
  border-radius: var(--radius-md); background: var(--brand-tint); color: var(--brand-blue); text-align: center;
}
.event-day { font-size: 1.75rem; line-height: 1.1; font-weight: 600; font-variant-numeric: tabular-nums; }
.event-month { font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.event-main { display: flex; flex-direction: column; gap: 8px; }
.event-main .card-caption { margin: 0; }
.event-main > p:not(.card-caption):not(.job-meta) { color: var(--ink-muted); }

.input-file { padding: 10px; min-height: 52px; cursor: pointer; }
.input-file::file-selector-button {
  margin-right: 12px; padding: 8px 14px; border: 1px solid var(--border-control); border-radius: var(--radius-sm);
  background: var(--surface-alt); color: var(--ink); font: inherit; font-weight: 600; cursor: pointer;
}

/* Desktop header: keep every item on one line. */
@media (min-width: 1200px) {
  .nav-links a, .nav-lang, .nav-portal, .nav-actions .btn { white-space: nowrap; }
}

/* ---------- Managing Director's message (About) ---------- */
.director-message { margin: 0; max-width: 860px; }
.director-message blockquote { margin: 28px 0 0; padding: 0 0 0 28px; position: relative; }
.director-message blockquote::before {
  content: "\201C"; position: absolute; left: -4px; top: -18px;
  font-size: 4rem; line-height: 1; font-weight: 600; color: var(--brand-blue);
}
.director-message blockquote p {
  font-size: clamp(1.25rem, 1.1rem + .6vw, 1.5rem); line-height: 1.55; color: var(--ink); letter-spacing: -0.005em;
}
/* Closing mark at the end of the last line, same glyph style as the opening one; line-height 0 keeps the line spacing. */
.director-message blockquote p::after {
  content: "\201D"; display: inline-block; margin-left: 6px; vertical-align: -0.2em;
  font-size: 2.6em; line-height: 0; font-weight: 600; color: var(--brand-blue);
}
.director-message figcaption { display: grid; gap: 2px; margin-top: 24px; padding-left: 28px; }
.director-name { font-weight: 600; }
.director-role { color: var(--ink-muted); font-size: .9375rem; }

/* ---------- "Coming soon" products ---------- */
.product-soon { border-style: dashed; border-color: var(--border-control); background: var(--surface-alt); }
.soon-value { font-size: 2.5rem; line-height: 1; font-weight: 600; letter-spacing: -0.02em; color: var(--brand-blue); }
.product-soon .status-badge { margin-top: auto; }
@media (min-width: 1024px) { .grid-3 > .product-soon:nth-child(2) { grid-column: span 2; } }
.product-row-soon { border-style: dashed; border-color: var(--border-control); background: var(--surface-alt); }
@media (min-width: 1024px) { .product-row-soon { grid-template-columns: minmax(0, 1fr); } }
.prose .details { margin: 8px 0 24px; }

/* ---------- Header shortcut to product sites, DPO callout ---------- */
.nav-product {
  display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 10px;
  border-radius: var(--radius-md); color: var(--brand-blue); text-decoration: none; font-weight: 600; font-size: .9375rem;
}
.nav-product .icon { width: 16px; height: 16px; }
.nav-product:hover { background: var(--surface-alt); color: var(--brand-blue-strong); }
@media (max-width: 1199.98px) { .nav-product { min-height: 48px; padding: 0 12px; border: 1px solid var(--border); } }
@media (min-width: 1200px) { .nav-product { white-space: nowrap; } }
.dpo-callout {
  display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px;
  border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--brand-tint); color: var(--ink);
}
.dpo-callout .icon { color: var(--brand-blue); margin-top: 2px; }

/* ---------- Footer: same as lexiclass.xirodigital.com (values copied from its site.css) ---------- */
.foot {
  --foot-bg: #151a23; --foot-line: #222937; --foot-ink: #93a0b4; --foot-link: #c9d1de; --foot-strong: #ffffff;
  background: var(--foot-bg); border-top: 1px solid var(--foot-line); color: var(--foot-ink);
  padding: 56px 0 32px; font-size: 14px; line-height: 25px;
}
.foot a { color: var(--foot-link); text-decoration: none; }
.foot a:hover { color: var(--foot-strong); text-decoration: underline; }
.foot .cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 24px; }
.foot h2 { color: var(--foot-strong); font-size: 14px; line-height: 25px; font-weight: 600; letter-spacing: 0; margin: 0 0 10px; }
.foot ul { list-style: none; padding: 0; margin: 0; }
.foot li { margin-bottom: 8px; }
.foot .foot-brand { display: inline-flex; }
.foot .logo { --logo-word: #ffffff; --logo-main: #ffffff; --logo-light: #8fc1f3; height: 32px; }
.foot .foot-about { margin: 16px 0 0; max-width: 360px; }
.foot .legal {
  border-top: 1px solid var(--foot-line); margin-top: 32px; padding-top: 16px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
}
.foot .foot-lang a[aria-current="true"] { color: var(--foot-strong); text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 800px) { .foot .cols { grid-template-columns: 1fr 1fr; } .foot .cols > div:first-child { grid-column: 1 / -1; } }

/* Descriptive link to each product's own site (also a crawl path for search engines). */
.product-site { margin: 4px 0 12px; font-weight: 600; }
.product-site a { color: var(--brand-blue); text-decoration: underline; text-underline-offset: 3px; }
.product-site-link { line-height: 1.35; }

/* A product's own logo (from its site) in place of the generic icon. */
.product-logo { width: 44px; height: 44px; border-radius: 10px; display: block; }
