/* RASP Solutions — styles.
   Type: Atkinson Hyperlegible Next / Mono (Braille Institute, SIL OFL), self-hosted.
   Signature element: the delivery pipeline strip under the hero. Everything else stays quiet. */

@font-face {
  font-family: "Atkinson Next";
  src: url("/assets/fonts/atkinson-hyperlegible-next-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 800; font-style: normal; font-display: swap;
  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: "Atkinson Next";
  src: url("/assets/fonts/atkinson-hyperlegible-next-latin-ext-wght-normal.woff2") format("woff2");
  font-weight: 200 800; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, 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: "Atkinson Mono";
  src: url("/assets/fonts/atkinson-hyperlegible-mono-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 800; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+2000-206F, U+2212;
}
@font-face {
  font-family: "Atkinson Mono";
  src: url("/assets/fonts/atkinson-hyperlegible-mono-latin-ext-wght-normal.woff2") format("woff2");
  font-weight: 200 800; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+1E00-1E9F;
}

:root {
  --paper: #ffffff;
  --paper-tint: #f3f5f7;
  --ink: #17222e;
  --ink-soft: #3d4855;
  --muted: #55606c;
  --rule: #d5dae0;
  --accent: #17704a;
  --accent-soft: #e3f1ea;
  --dot: #c9d2db;
  --strip: #f6f8fa;
  --focus: #1257b3;

  /* type scale: perfect fourth on an 18px base */
  --fs-sm: 0.889rem;
  --fs-base: 1.125rem;
  --fs-md: 1.333rem;
  --fs-lg: 1.777rem;
  --fs-xl: clamp(1.9rem, 1.4rem + 2.2vw, 2.369rem);
  --fs-hero: clamp(2.35rem, 1.3rem + 4.6vw, 4.2rem);

  --font: "Atkinson Next", "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Atkinson Mono", ui-monospace, "Cascadia Mono", Menlo, Consolas, monospace;

  --max: 1180px;
  --measure: 66ch;
  --gutter: clamp(16px, 4vw, 48px);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0f1820;
    --paper-tint: #1a2631;
    --ink: #e9edf1;
    --ink-soft: #c3cbd3;
    --muted: #a3adb8;
    --rule: #2b3946;
    --accent: #5fd49b;
    --accent-soft: #163327;
    --dot: #2c3a47;
    --strip: #131e27;
    --focus: #8cc2ff;
    color-scheme: dark;
  }
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--fs-base);
  line-height: 1.6;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration-line: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; color: var(--accent); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 2px; }
p, li, dd { max-width: var(--measure); }
h1, h2, h3 { margin: 0; line-height: 1.12; font-weight: 750; letter-spacing: -0.015em; text-wrap: balance; }
h2 { font-size: var(--fs-xl); }
h3 { font-size: var(--fs-md); line-height: 1.3; font-weight: 700; letter-spacing: 0; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: var(--gutter); top: -100px; z-index: 20; background: var(--ink); color: var(--paper); padding: 12px 16px; font-weight: 700; }
.skip:focus { top: 8px; }

/* ---------- header ---------- */
.site-header { border-bottom: 1px solid var(--rule); background: var(--paper); }
@media (min-width: 761px) { .site-header { position: sticky; top: 0; z-index: 10; } }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 24px; padding-block: 12px; }
.logo { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; text-decoration: none; font-weight: 750; font-size: var(--fs-md); letter-spacing: -0.01em; }
.logo:hover { color: inherit; }
.logo svg { width: 34px; height: 34px; flex: none; }
.logo .mark-bg { fill: var(--ink); }
.logo .mark-fg { fill: var(--paper); stroke: var(--paper); }
.nav ul { display: flex; flex-wrap: wrap; gap: 0 4px; list-style: none; margin: 0; padding: 0; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; padding-inline: 12px; text-decoration: none; color: var(--ink-soft); }
.nav a:hover { color: var(--accent); text-decoration: underline; }
.nav { margin-left: auto; }
.lang-switch {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding-inline: 14px;
  border: 1px solid var(--rule); border-radius: 4px; text-decoration: none; color: var(--ink); font-weight: 700;
}
.lang-switch:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }
.lang-switch svg { width: 18px; height: 18px; }
@media (max-width: 760px) {
  .site-header .wrap { padding-block: 8px 0; }
  .lang-switch { margin-left: auto; }
  .nav { order: 3; width: calc(100% + 24px); margin-inline: -12px; }
}

/* ---------- hero ---------- */
.hero { padding-block: clamp(40px, 7vw, 88px) clamp(32px, 4vw, 48px); }
.hero h1 { font-size: var(--fs-hero); max-width: 18ch; letter-spacing: -0.025em; font-weight: 800; }
.hero .lede { font-size: var(--fs-md); line-height: 1.5; color: var(--ink-soft); margin: 24px 0 0; max-width: 46ch; }
.actions { display: flex; flex-wrap: wrap; gap: 12px 24px; margin-top: 32px; align-items: center; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 12px 22px; border-radius: 4px;
  font-weight: 700; text-decoration: none;
  background: var(--ink); color: var(--paper); border: 2px solid var(--ink);
}
.btn:hover { background: var(--accent); border-color: var(--accent); color: var(--paper); text-decoration: none; }
.btn svg { width: 20px; height: 20px; }
.link-quiet { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; }

/* Pipeline strip: the delivery process as CI stages that pass one after another */
.pipeline {
  background-color: var(--strip);
  background-image: radial-gradient(var(--dot) 1px, transparent 1.2px);
  background-size: 16px 16px;
  border-block: 1px solid var(--rule);
}
.pipeline .wrap { padding-block: 28px 36px; }
.pipeline h2 { font-size: var(--fs-base); font-weight: 700; letter-spacing: 0; margin-bottom: 24px; }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; list-style: none; margin: 0; padding: 0; }
.steps li { position: relative; padding-top: 52px; }
.steps .node {
  position: absolute; top: 0; left: 0; z-index: 1;
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: var(--accent); color: var(--paper);
  box-shadow: 0 0 0 5px var(--strip);
}
.steps .node svg { width: 18px; height: 18px; }
.steps li:not(:last-child)::after {
  content: ""; position: absolute; top: 16px; left: 34px; right: -24px; height: 2px;
  background: var(--accent); transform-origin: left center;
}
.steps h3 { font-size: var(--fs-md); }
.steps p { margin: 6px 0 0; font-size: var(--fs-sm); line-height: 1.55; color: var(--ink-soft); }
@media (prefers-reduced-motion: no-preference) {
  .steps .node { animation: stage-pass .35s ease-out backwards; }
  .steps li:not(:last-child)::after { animation: stage-link .5s ease-in-out backwards; }
  .steps li:nth-child(1) .node { animation-delay: .2s; }
  .steps li:nth-child(1)::after { animation-delay: .5s; }
  .steps li:nth-child(2) .node { animation-delay: 1s; }
  .steps li:nth-child(2)::after { animation-delay: 1.3s; }
  .steps li:nth-child(3) .node { animation-delay: 1.8s; }
  .steps li:nth-child(3)::after { animation-delay: 2.1s; }
  .steps li:nth-child(4) .node { animation-delay: 2.6s; }
}
@keyframes stage-pass { from { transform: scale(.4); opacity: 0; } }
@keyframes stage-link { from { transform: scaleX(0); } }
@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr; gap: 0; }
  .steps li { padding: 4px 0 24px 56px; }
  .steps li:last-child { padding-bottom: 0; }
  .steps li:not(:last-child)::after { top: 34px; bottom: 0; left: 16px; right: auto; width: 2px; height: auto; transform-origin: center top; }
  @keyframes stage-link { from { transform: scaleY(0); } }
}

/* ---------- sections ---------- */
.section { padding-block: clamp(56px, 8vw, 104px); }
.section + .section { border-top: 1px solid var(--rule); }
.split { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 24px clamp(32px, 5vw, 80px); }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.split > header p { color: var(--muted); margin: 16px 0 0; }

/* services: definition list, two columns */
.services { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 48px; margin: 0; }
.services div { border-top: 2px solid var(--ink); padding-top: 16px; }
.services dt { font-size: var(--fs-md); font-weight: 700; line-height: 1.3; }
.services dd { margin: 8px 0 0; color: var(--ink-soft); }
@media (max-width: 640px) { .services { grid-template-columns: 1fr; gap: 28px; } }

/* rows: sectors and technology */
.rows { margin: 0; padding: 0; list-style: none; }
.rows > div, .rows > li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr); gap: 4px 32px; padding-block: 16px; border-bottom: 1px solid var(--rule); max-width: none; }
.rows > :first-child { border-top: 1px solid var(--rule); }
.rows dt, .rows strong { font-weight: 700; }
.rows dd, .rows span { margin: 0; color: var(--ink-soft); }
@media (max-width: 640px) { .rows > div, .rows > li { grid-template-columns: 1fr; } }

/* founder */
.founder p { margin: 0 0 16px; }
.roles { list-style: none; margin: 24px 0 0; padding: 0; }
.roles li { display: grid; grid-template-columns: 10em minmax(0, 1fr); gap: 4px 24px; padding-block: 14px; border-top: 1px solid var(--rule); max-width: none; }
.roles li:last-child { border-bottom: 1px solid var(--rule); }
.roles time { font-family: var(--mono); font-size: var(--fs-sm); color: var(--muted); padding-top: 3px; }
.roles span { color: var(--ink-soft); }
@media (max-width: 560px) { .roles li { grid-template-columns: 1fr; } }

/* contact */
.contact-email { font-size: clamp(1.3rem, 0.8rem + 2.4vw, 2.2rem); font-weight: 750; letter-spacing: -0.01em; overflow-wrap: anywhere; display: inline-block; padding-block: 6px; }
.contact-more { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-wrap: wrap; gap: 0 28px; }
.contact-more a { display: inline-flex; align-items: center; min-height: 44px; }
.company { margin: 40px 0 0; display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 8px 24px; font-size: var(--fs-sm); }
.company dt { color: var(--muted); }
.company dd { margin: 0; }

/* ---------- document pages ---------- */
.doc { padding-block: clamp(24px, 5vw, 56px) clamp(56px, 8vw, 96px); }
.doc > * { max-width: 760px; }
.doc h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3rem); letter-spacing: -0.02em; font-weight: 800; }
.doc .meta { color: var(--muted); margin: 12px 0 0; }
.doc .lede { font-size: var(--fs-md); line-height: 1.5; color: var(--ink-soft); margin: 20px 0 0; }
.doc h2 { font-size: var(--fs-lg); margin: 48px 0 12px; }
.doc p, .doc li { color: var(--ink-soft); }
.doc li + li { margin-top: 6px; }
.doc strong { color: var(--ink); }
.table-scroll { overflow-x: auto; }
.doc table { border-collapse: collapse; width: 100%; font-size: var(--fs-sm); margin: 8px 0; }
.doc th, .doc td { text-align: left; padding: 12px 16px 12px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.doc th { color: var(--ink); font-weight: 700; }
.doc caption { text-align: left; font-weight: 700; color: var(--ink); padding-bottom: 8px; }
.doc thead th { border-bottom: 2px solid var(--ink); }
.doc code { font-family: var(--mono); font-size: 0.92em; background: var(--paper-tint); padding: 1px 5px; border-radius: 3px; overflow-wrap: anywhere; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0 8px; padding: 0; margin: 0 0 16px; font-size: var(--fs-sm); color: var(--muted); }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; }
.breadcrumb a { display: inline-flex; min-height: 44px; align-items: center; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--rule); padding-block: 24px 32px; font-size: var(--fs-sm); color: var(--muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 32px; justify-content: space-between; align-items: center; }
.site-footer p { margin: 0; max-width: none; }
.site-footer ul { list-style: none; display: flex; flex-wrap: wrap; gap: 0 20px; margin: 0; padding: 0; }
.site-footer a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink-soft); }

/* ---------- Windows high contrast ---------- */
@media (forced-colors: active) {
  .logo .mark-fg { fill: CanvasText; stroke: CanvasText; }
  .logo .mark-bg { fill: Canvas; stroke: CanvasText; }
  .steps .node { forced-color-adjust: none; background: CanvasText; color: Canvas; }
  .steps li::after { background: CanvasText; }
}

@media print {
  .site-header, .skip, .steps .node, .steps li::after { display: none; }
  .steps li { padding: 0; }
}
