/* =========================================================================
   Cubescale — landing page
   Theme: sibling of the ScaleiQ sites (same near-black base, type and
   components) with a cobalt "cube" accent that marks the parent brand
   Display: Space Grotesk · Body: Inter · Data: IBM Plex Mono
   Signature accent: "signal" aqua-teal
   Fonts are self-hosted (app/static/fonts) — no external CDN dependency.
   ========================================================================= */

/* ---- self-hosted webfonts ---- */
@font-face { font-family:'Inter'; font-style:normal; font-weight:400; font-display:swap; src:url('/static/fonts/inter-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family:'Inter'; font-style:normal; font-weight:500; font-display:swap; src:url('/static/fonts/inter-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family:'Inter'; font-style:normal; font-weight:600; font-display:swap; src:url('/static/fonts/inter-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family:'Space Grotesk'; font-style:normal; font-weight:400; font-display:swap; src:url('/static/fonts/space-grotesk-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family:'Space Grotesk'; font-style:normal; font-weight:500; font-display:swap; src:url('/static/fonts/space-grotesk-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family:'Space Grotesk'; font-style:normal; font-weight:600; font-display:swap; src:url('/static/fonts/space-grotesk-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family:'Space Grotesk'; font-style:normal; font-weight:700; font-display:swap; src:url('/static/fonts/space-grotesk-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family:'IBM Plex Mono'; font-style:normal; font-weight:400; font-display:swap; src:url('/static/fonts/ibm-plex-mono-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family:'IBM Plex Mono'; font-style:normal; font-weight:500; font-display:swap; src:url('/static/fonts/ibm-plex-mono-latin-500-normal.woff2') format('woff2'); }

:root {
  --void:      #0A0B0D;
  --void-2:    #0D0F12;
  --surface:   #121519;
  --surface-2: #171B20;
  --line:      #23282F;
  --line-2:    #2E353D;

  --ink:       #EDF1F4;
  --ink-2:     #B7C0CA;
  --muted:     #8B95A1;
  --faint:     #5C6672;

  --signal:    #7AA2FF;       /* the accent — cobalt, parent-brand cousin of ScaleiQ aqua */
  --signal-2:  #A9C2FF;
  --signal-dim:rgba(122, 162, 255, .12);
  --signal-line: rgba(122, 162, 255, .35);
  --on-signal: #060B1A;
  --warn:      #E8C77A;
  --danger:    #FF8A8A;
  --shadow:    rgba(0, 0, 0, .9);
  --cube-left: #0E121C;       /* cube faces in the hero canvas (read by cubes.js) */
  --cube-right:#141A28;
  color-scheme: dark;

  --radius:    14px;
  --radius-sm: 10px;
  --maxw:      1120px;

  --f-display: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --f-body:    "Inter", ui-sans-serif, system-ui, sans-serif;
  --f-mono:    "IBM Plex Mono", ui-monospace, "SFMono-Regular", monospace;
}

/* Light theme: follows the OS unless the visitor picked one with the toggle
   (data-theme on <html>, remembered in localStorage by theme.js). */
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
  --void:      #F5F7FB;
  --void-2:    #ECEFF5;
  --surface:   #FFFFFF;
  --surface-2: #F4F6FA;
  --line:      #DCE1EA;
  --line-2:    #C6CDD9;
  --ink:       #0D1320;
  --ink-2:     #354052;
  --muted:     #586274;
  --faint:     #8A94A5;
  --signal:    #2F5BD8;
  --signal-2:  #4570E6;
  --signal-dim:rgba(47, 91, 216, .10);
  --signal-line: rgba(47, 91, 216, .35);
  --on-signal: #FFFFFF;
  --warn:      #946200;
  --danger:    #C0392B;
  --shadow:    rgba(20, 30, 50, .25);
  --cube-left: #E3E9F5;
  --cube-right:#F1F4FA;
  color-scheme: light;
  }
}
:root[data-theme="light"] {
  --void:      #F5F7FB;
  --void-2:    #ECEFF5;
  --surface:   #FFFFFF;
  --surface-2: #F4F6FA;
  --line:      #DCE1EA;
  --line-2:    #C6CDD9;
  --ink:       #0D1320;
  --ink-2:     #354052;
  --muted:     #586274;
  --faint:     #8A94A5;
  --signal:    #2F5BD8;
  --signal-2:  #4570E6;
  --signal-dim:rgba(47, 91, 216, .10);
  --signal-line: rgba(47, 91, 216, .35);
  --on-signal: #FFFFFF;
  --warn:      #946200;
  --danger:    #C0392B;
  --shadow:    rgba(20, 30, 50, .25);
  --cube-left: #E3E9F5;
  --cube-right:#F1F4FA;
  color-scheme: light;
}

/* ---- reset ---- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--f-body);
  background: var(--void);
  color: var(--ink);
  line-height: 1.6;
  font-weight: 450;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img, svg, canvas { display: block; max-width: 100%; }
button, input, textarea { font: inherit; color: inherit; }
ul[class], ol[class] { padding: 0; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 24px; }
@media (max-width: 560px) { .wrap { padding-inline: 16px; } }
.mono { font-family: var(--f-mono); font-feature-settings: "tnum" 1; letter-spacing: -.01em; }

.skip {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--signal); color: var(--on-signal); padding: 10px 16px; border-radius: 0 0 8px 0; font-weight: 600;
}
.skip:focus { left: 0; }

:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; border-radius: 4px; }

/* =========================================================================
   Buttons
   ========================================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px; border-radius: 999px; font-weight: 600; font-size: 14.5px;
  letter-spacing: -.01em; border: 1px solid transparent; cursor: pointer;
  transition: transform .16s ease, background .2s ease, border-color .2s ease, color .2s ease, box-shadow .2s ease;
  white-space: nowrap;
}
.btn--lg { padding: 13px 24px; font-size: 15.5px; }
.btn--solid { background: var(--signal); color: var(--on-signal); }
.btn--solid:hover { background: var(--signal-2); transform: translateY(-1px); box-shadow: 0 8px 30px -12px var(--signal-line); }
.btn--ghost { color: var(--ink-2); }
.btn--ghost:hover { color: var(--ink); }
.btn--line { border-color: var(--line-2); color: var(--ink); background: transparent; }
.btn--line:hover { border-color: var(--signal); color: var(--signal); transform: translateY(-1px); }

/* =========================================================================
   Nav
   ========================================================================= */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in oklab, var(--void) 78%, transparent);
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid var(--line);
}
.nav__inner { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand__mark {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px;
  background: var(--signal-dim); color: var(--signal); border: 1px solid var(--signal-line);
}
.brand__name { font-family: var(--f-display); font-weight: 700; font-size: 19px; letter-spacing: -.02em; }
.brand__iq { color: var(--signal); }
.brand__badge {
  font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .04em; text-transform: uppercase;
  color: var(--muted); border: 1px solid var(--line-2); padding: 3px 8px; border-radius: 6px; margin-left: 4px;
}
.nav__links { display: flex; gap: 26px; margin-left: 12px; }
.nav__links a { font-size: 14.5px; color: var(--ink-2); transition: color .2s ease; }
.nav__links a:hover { color: var(--ink); }
.nav__cta { display: flex; gap: 8px; margin-left: auto; align-items: center; }
.lang {
  display: inline-flex; border: 1px solid var(--line-2); border-radius: 999px; padding: 3px; gap: 2px;
}
.lang a {
  font-family: var(--f-mono); font-size: 12px; letter-spacing: .04em; color: var(--muted);
  padding: 5px 9px; border-radius: 999px; transition: color .2s ease, background .2s ease;
}
.lang a:hover { color: var(--ink); }
.lang a[aria-current="true"] { background: var(--signal-dim); color: var(--signal); }
.theme-toggle {
  display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--line-2); background: transparent; color: var(--ink-2); cursor: pointer;
  transition: color .2s ease, border-color .2s ease;
}
.theme-toggle:hover { color: var(--signal); border-color: var(--signal-line); }
.theme-toggle svg { width: 17px; height: 17px; }
/* Show the icon for the theme a click switches TO. */
.theme-toggle .i-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .i-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .i-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .i-sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .i-moon { display: none; }
}

/* =========================================================================
   Eyebrow / section shells
   ========================================================================= */
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--f-mono); font-size: 12px; letter-spacing: .02em;
  color: var(--muted); text-transform: none;
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 0 4px var(--signal-dim); }
.eyebrow--label {
  text-transform: uppercase; letter-spacing: .14em; font-size: 11.5px; color: var(--signal);
  margin-bottom: 18px;
}

.section { padding: 96px 0; border-top: 1px solid var(--line); }
.section__title {
  font-family: var(--f-display); font-weight: 600; letter-spacing: -.025em; line-height: 1.08;
  font-size: clamp(28px, 4vw, 42px); max-width: 18ch;
}
.section__sub { color: var(--muted); font-size: 17px; max-width: 60ch; margin-top: 16px; }

/* =========================================================================
   Hero
   ========================================================================= */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.hero__veil {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(120% 90% at 78% 8%, transparent 30%, var(--void) 78%),
    linear-gradient(180deg, transparent 40%, var(--void) 96%);
}
.hero__inner { position: relative; z-index: 2; padding: 118px 24px 108px; }
.hero__title {
  font-family: var(--f-display); font-weight: 700;
  font-size: clamp(44px, 7.6vw, 88px); line-height: .98; letter-spacing: -.035em;
  margin-top: 22px;
}
.hero__brand {
  font-family: var(--f-mono); font-size: 13px; letter-spacing: .28em; text-transform: uppercase;
  color: var(--signal);
}
.hero__title em { font-style: normal; color: var(--signal); }
.hero__lede { color: var(--ink-2); font-size: clamp(16px, 1.7vw, 19.5px); max-width: 56ch; margin-top: 26px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero__note {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 40px;
  font-family: var(--f-mono); font-size: 12.5px; color: var(--muted);
}
.dot, .pulse { flex: none; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--signal); position: relative; }
.pulse::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%;
  border: 1px solid var(--signal); animation: ping 2.4s ease-out infinite;
}
.pulse--sm { width: 6px; height: 6px; }
@keyframes ping { 0% { transform: scale(.6); opacity: .9; } 100% { transform: scale(1.9); opacity: 0; } }

/* =========================================================================
   Trust strip
   ========================================================================= */
.strip { border-top: 1px solid var(--line); background: var(--void-2); }
.strip__grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.strip__cell { padding: 34px 30px 34px 0; border-right: 1px solid var(--line); }
.strip__cell:last-child { border-right: 0; padding-right: 0; }
.strip__kicker {
  font-family: var(--f-display); font-weight: 600; font-size: 15px; color: var(--ink);
  display: block; margin-bottom: 8px;
}
.strip__line { color: var(--muted); font-size: 14.5px; max-width: 34ch; }

/* =========================================================================
   Cards
   ========================================================================= */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 44px; }
.card {
  position: relative; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px 26px 30px; overflow: hidden;
  transition: border-color .25s ease, transform .25s ease, background .25s ease;
}
.card::before {
  content: ""; position: absolute; left: 0; top: 0; height: 2px; width: 0;
  background: linear-gradient(90deg, var(--signal), transparent); transition: width .4s ease;
}
.card:hover { border-color: var(--line-2); transform: translateY(-3px); background: var(--surface-2); }
.card:hover::before { width: 60%; }
.card__num { font-family: var(--f-mono); font-size: 12px; color: var(--signal); letter-spacing: .06em; }
.card__title { font-family: var(--f-display); font-weight: 600; font-size: 20px; letter-spacing: -.02em; margin: 14px 0 10px; }
.card__body { color: var(--muted); font-size: 15px; }

/* =========================================================================
   Split / signals readout
   ========================================================================= */
.section--split { background: var(--void-2); }
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.ticks { list-style: none; margin-top: 26px; display: grid; gap: 12px; }
.ticks li {
  position: relative; padding-left: 30px; color: var(--ink-2); font-size: 16px;
}
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .55em; width: 16px; height: 8px;
  border-left: 2px solid var(--signal); border-bottom: 2px solid var(--signal);
  transform: rotate(-45deg); border-radius: 1px;
}
.ticks strong { color: var(--ink); font-weight: 600; }

.readout {
  background: linear-gradient(180deg, var(--surface) 0%, var(--void-2) 100%);
  border: 1px solid var(--line-2); border-radius: var(--radius);
  padding: 22px 22px 24px; box-shadow: 0 40px 80px -50px var(--shadow);
}
.readout__head { display: flex; align-items: center; gap: 12px; }
.readout__dotrow { display: inline-flex; gap: 6px; }
.readout__dotrow i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-2); }
.readout__dotrow i:first-child { background: var(--signal); }
.readout__label { font-family: var(--f-mono); font-size: 12px; color: var(--muted); letter-spacing: .04em; }
.readout__subject {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin: 16px 0 6px; padding-bottom: 16px; border-bottom: 1px solid var(--line);
}
.readout__subject .mono { font-size: 14px; color: var(--ink); }
.chip {
  display: inline-flex; align-items: center; gap: 6px; font-family: var(--f-mono);
  font-size: 11px; padding: 4px 9px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--muted);
}
.chip--live { color: var(--signal); border-color: var(--signal-line); background: var(--signal-dim); }
.readout__metrics { display: grid; gap: 2px; margin: 6px 0 4px; }
.metric {
  display: flex; align-items: center; justify-content: space-between;
  padding: 11px 0; border-bottom: 1px dashed var(--line);
}
.metric:last-child { border-bottom: 0; }
.metric dt { color: var(--muted); font-size: 14px; }
.metric__val { font-family: var(--f-mono); font-size: 13px; letter-spacing: .01em; }
.metric__val--good { color: var(--signal); }
.readout__score {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line);
}
.readout__score-label { color: var(--ink-2); font-size: 14px; }
.readout__score-val { font-family: var(--f-mono); font-size: 30px; font-weight: 500; color: var(--ink); }
.readout__bar { height: 6px; border-radius: 999px; background: var(--surface-2); margin-top: 12px; overflow: hidden; }
.readout__bar span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--signal), var(--signal-2)); }

/* =========================================================================
   Pipeline
   ========================================================================= */
.pipeline { list-style: none; counter-reset: none; margin-top: 44px; display: grid; gap: 0; }
.pstep {
  display: grid; grid-template-columns: 72px 1fr; gap: 28px; align-items: start;
  padding: 26px 0; border-top: 1px solid var(--line); transition: padding-left .25s ease;
}
.pstep:hover { padding-left: 10px; }
.pstep:last-child { border-bottom: 1px solid var(--line); }
.pstep__num { font-size: 15px; color: var(--signal); padding-top: 3px; }
.pstep__title { font-family: var(--f-display); font-weight: 600; font-size: 20px; letter-spacing: -.02em; margin-bottom: 6px; }
.pstep__body p { color: var(--muted); font-size: 15.5px; max-width: 62ch; }

/* =========================================================================
   Library
   ========================================================================= */
.library { list-style: none; margin-top: 40px; display: grid; }
.paper {
  display: grid; grid-template-columns: 96px 1fr auto; gap: 28px; align-items: start;
  padding: 24px 0; border-top: 1px solid var(--line);
}
.paper:last-child { border-bottom: 1px solid var(--line); }
.paper__date { font-size: 13px; color: var(--muted); padding-top: 4px; font-variant-numeric: tabular-nums; }
.paper__body { min-width: 0; }
.paper__kind { font-size: 11.5px; color: var(--signal); letter-spacing: .06em; text-transform: uppercase; margin-bottom: 6px; }
.paper__title { font-family: var(--f-display); font-weight: 600; font-size: 19px; letter-spacing: -.02em; text-wrap: balance; }
.paper__authors { color: var(--ink-2); font-size: 14px; margin-top: 4px; }
.paper__summary { color: var(--muted); font-size: 15px; max-width: 62ch; margin-top: 8px; }
.paper__request {
  font-size: 13.5px; font-weight: 500; color: var(--signal); white-space: nowrap; padding: 7px 14px;
  border: 1px solid var(--signal-line); border-radius: 999px; transition: background .2s ease;
}
.paper__request:hover { background: var(--signal-dim); }
.library__email { color: var(--signal); white-space: nowrap; }
.library__email:hover { text-decoration: underline; }

/* =========================================================================
   Company
   ========================================================================= */
.section--company { background: var(--void-2); }
.company { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: start; }
.company__body p { color: var(--ink-2); font-size: 17px; }
.company__loc { margin-top: 22px; color: var(--muted); font-size: 13px; letter-spacing: .02em; }

/* ---- Leadership / team ---- */
.team { margin-top: 56px; display: grid; gap: 40px; }
.team__group { display: grid; gap: 20px; }
.team__grouptitle {
  font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--signal); font-weight: 500; padding-bottom: 14px; border-bottom: 1px solid var(--line);
}
.team__grid {
  list-style: none; display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
}
.member {
  display: flex; align-items: center; gap: 14px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px; transition: border-color .25s ease, transform .25s ease, background .25s ease;
}
.member:hover { border-color: var(--line-2); background: var(--surface-2); transform: translateY(-2px); }
.member__photo,
.member__avatar {
  flex: none; width: 56px; height: 56px; border-radius: 50%;
  border: 1px solid var(--signal-line); object-fit: cover;
}
.member__avatar {
  display: grid; place-items: center; background: var(--signal-dim); color: var(--signal);
  font-family: var(--f-display); font-weight: 600; font-size: 18px; letter-spacing: -.01em;
}
.member__meta { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.member__name { font-family: var(--f-display); font-weight: 600; font-size: 15.5px; letter-spacing: -.01em; }
.member__role { color: var(--muted); font-size: 12.5px; }
.member__bio { color: var(--signal); font-family: var(--f-mono); font-size: 11.5px; margin-top: 4px; width: fit-content; }
.member__bio:hover { text-decoration: underline; }

/* =========================================================================
   Shaded section background
   ========================================================================= */
.section--about { background: var(--void-2); }
.about { display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; align-items: start; }
.about__body p { color: var(--ink-2); font-size: 17px; }
.about__body p + p { margin-top: 1.1em; }
@media (max-width: 900px) { .about { grid-template-columns: 1fr; gap: 28px; } }
.biopage { padding-top: 56px; }
.biopage__back {
  display: inline-block; font-family: var(--f-mono); font-size: 12.5px; color: var(--muted);
  margin-bottom: 34px; transition: color .2s ease;
}
.biopage__back:hover { color: var(--signal); }
.biohead {
  display: flex; align-items: center; gap: 26px; flex-wrap: wrap;
  padding-bottom: 34px; border-bottom: 1px solid var(--line); margin-bottom: 40px;
}
.biohead__photo,
.biohead__avatar {
  flex: none; width: 104px; height: 104px; border-radius: 50%;
  border: 1px solid var(--signal-line); object-fit: cover;
}
.biohead__avatar {
  display: grid; place-items: center; background: var(--signal-dim); color: var(--signal);
  font-family: var(--f-display); font-weight: 600; font-size: 34px; letter-spacing: -.01em;
}
.biohead__name {
  font-family: var(--f-display); font-weight: 700; letter-spacing: -.03em; line-height: 1.02;
  font-size: clamp(30px, 5vw, 46px); margin: 10px 0 6px;
}
.biohead__role { color: var(--muted); font-size: 16px; }

/* Rendered markdown */
.prose { max-width: 68ch; color: var(--ink-2); font-size: 17px; line-height: 1.72; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 {
  font-family: var(--f-display); font-weight: 600; letter-spacing: -.02em;
  font-size: 22px; color: var(--ink); margin-top: 1.8em;
}
.prose h3 {
  font-family: var(--f-display); font-weight: 600; font-size: 18px; color: var(--ink); margin-top: 1.5em;
}
.prose a { color: var(--signal); text-decoration: underline; text-underline-offset: 2px; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose ul, .prose ol { padding-left: 1.3em; display: grid; gap: .4em; }
.prose li { padding-left: .2em; }
.prose blockquote {
  border-left: 2px solid var(--signal-line); padding-left: 18px; color: var(--muted); font-style: italic;
}
.prose img { border-radius: var(--radius); border: 1px solid var(--line); margin-top: 1.2em; }
.prose__placeholder { color: var(--faint); font-style: italic; }

/* =========================================================================
   CTA / form
   ========================================================================= */
.section--cta { border-bottom: 1px solid var(--line); }
.cta { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.form { display: grid; gap: 16px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 7px; }
.field > span { font-size: 13px; color: var(--ink-2); font-weight: 500; }
.field > span em { color: var(--faint); font-style: normal; font-weight: 400; margin-left: 4px; }
.field input, .field textarea {
  background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius-sm);
  padding: 12px 14px; font-size: 15px; color: var(--ink); resize: vertical;
  transition: border-color .2s ease, background .2s ease;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--signal); background: var(--surface-2); }
.field input::placeholder, .field textarea::placeholder { color: var(--faint); }
.form__foot { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 4px; }
.form__status { font-family: var(--f-mono); font-size: 13px; color: var(--muted); }
.form__status.is-ok { color: var(--signal); }
.form__status.is-err { color: var(--danger); }

/* =========================================================================
   Footer
   ========================================================================= */
.foot { padding: 56px 0 40px; background: var(--void); border-top: 1px solid var(--line); }
.foot__inner { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; padding-bottom: 32px; border-bottom: 1px solid var(--line); }
.foot__tag { color: var(--muted); font-size: 14px; margin-top: 8px; }
.foot__nav { display: flex; gap: 26px; flex-wrap: wrap; align-items: center; }
.foot__nav a { color: var(--ink-2); font-size: 14px; transition: color .2s ease; }
.foot__nav a:hover { color: var(--signal); }
.foot__fine { padding-top: 26px; display: grid; gap: 10px; }
.foot__disclaimer { font-family: var(--f-mono); font-size: 11.5px; color: var(--faint); letter-spacing: .02em; max-width: 90ch; }
.foot__copy { color: var(--muted); font-size: 13px; }

/* =========================================================================
   Divisions
   ========================================================================= */
.divisions { display: grid; grid-template-columns: 1fr auto 1fr; gap: 18px; align-items: stretch; margin-top: 44px; }
.division {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 26px 30px;
}
.division__name { font-family: var(--f-display); font-weight: 600; font-size: 24px; letter-spacing: -.02em; margin: 12px 0 10px; }
.division__arrow { align-self: center; font-family: var(--f-mono); font-size: 22px; color: var(--signal); }

/* =========================================================================
   Portfolio
   ========================================================================= */
.portfolio {
  list-style: none; display: grid; gap: 18px; margin-top: 44px;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}
.product { display: flex; flex-direction: column; padding: 24px 22px 24px; }
.product .card__title { margin: 14px 0 8px; font-size: 19px; }
.product .card__body { font-size: 14.5px; flex: 1; }
.product__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.product__top .chip { white-space: nowrap; flex: none; }
.product__area { font-size: 11.5px; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; }
.product__link { margin-top: 18px; font-size: 12.5px; color: var(--signal); width: fit-content; }
.product__link:hover { text-decoration: underline; }
.chip--live { color: var(--signal); border-color: var(--signal-line); background: var(--signal-dim); }
.chip--beta { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 40%, transparent); }
.chip--prototype { color: var(--muted); }
.cta__copy a:hover { color: var(--signal); }

/* =========================================================================
   Responsive
   ========================================================================= */
@media (max-width: 900px) {
  .nav__links { display: none; }
  .strip__grid, .cards, .divisions { grid-template-columns: 1fr; }
  .division__arrow { justify-self: center; transform: rotate(90deg); }
  .strip__cell { border-right: 0; border-bottom: 1px solid var(--line); padding: 26px 0; }
  .strip__cell:last-child { border-bottom: 0; }
  .split, .company, .cta { grid-template-columns: 1fr; gap: 40px; }
  .section { padding: 68px 0; }
  .hero__inner { padding: 84px 24px 76px; }
  .form__row { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .nav__cta .btn--ghost { display: none; }
  .brand__badge { display: none; }
  .pstep { grid-template-columns: 52px 1fr; gap: 18px; }
  .paper { grid-template-columns: 1fr; gap: 10px; }
  .paper__request { justify-self: start; }
}

/* Phones: the hero and footer already carry the contact links, so the header keeps just brand, language and theme. */
@media (max-width: 440px) {
  .nav__cta .btn--solid { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
