:root {
  --bg: oklch(98% 0.005 240);
  --surface: oklch(96% 0.008 240);
  --border: oklch(88% 0.015 240);
  --grid-line: oklch(91% 0.015 240 / 0.7);
  --ink: oklch(20% 0.03 250);
  --muted: oklch(48% 0.02 250);
  --accent: oklch(55% 0.17 250);
  --accent-hover: oklch(45% 0.17 250);
  --accent-soft: oklch(92% 0.045 250);
  --white: #ffffff;
  --max: 1180px;
  --radius: 6px;
  --font-display: "Space Grotesk", "IBM Plex Sans", sans-serif;
  --font-body: "IBM Plex Sans", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

body::selection,
::selection {
  background: var(--accent);
  color: var(--white);
}

a {
  color: inherit;
  text-decoration-color: color-mix(in oklch, var(--accent), transparent 35%);
  text-underline-offset: 0.22em;
}

a:hover {
  color: var(--accent-hover);
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 16px;
  z-index: 20;
  transform: translateY(-140%);
  background: var(--accent);
  color: var(--white);
  padding: 10px 14px;
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 0.78rem;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 18px 22px;
  background: color-mix(in oklch, var(--bg), white 42%);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(14px);
}

.brand,
.nav-links,
.hero-actions,
.board-header,
.contact-methods,
.site-footer {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.18rem;
  text-decoration: none;
}

.pipeline-mark {
  display: inline-grid;
  place-items: center;
  color: var(--accent);
}

.nav-links {
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
}

.nav-links a {
  padding: 8px 10px;
  text-decoration: none;
  border: 1px solid transparent;
}

.nav-links a:hover {
  border-color: var(--border);
  background: var(--surface);
}

main,
.site-footer {
  max-width: var(--max);
  margin: 0 auto;
}

.hero,
.section,
.site-footer {
  margin-inline: 22px;
}

.blueprint-panel,
.blueprint-band {
  position: relative;
  background-color: var(--bg);
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 40px 40px;
  border: 1px solid var(--border);
}

.hero {
  min-height: min(760px, calc(100svh - 86px));
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(340px, 0.72fr);
  align-items: center;
  gap: clamp(28px, 5vw, 72px);
  padding: clamp(54px, 8vw, 104px) clamp(24px, 5vw, 64px);
}

.hero-copy,
.pipeline-board,
.copy-block,
.contact-section > *,
.offer-card,
.contact-tile {
  min-width: 0;
}

.corner {
  position: absolute;
  width: 28px;
  height: 28px;
  pointer-events: none;
}

.corner::before,
.corner::after {
  content: "";
  position: absolute;
  background: var(--accent);
}

.corner::before {
  width: 28px;
  height: 1.5px;
}

.corner::after {
  width: 1.5px;
  height: 28px;
}

.corner-tl {
  left: 18px;
  top: 18px;
}

.corner-tr {
  right: 18px;
  top: 18px;
  transform: rotate(90deg);
}

.corner-bl {
  left: 18px;
  bottom: 18px;
  transform: rotate(-90deg);
}

.corner-br {
  right: 18px;
  bottom: 18px;
  transform: rotate(180deg);
}

.system-label {
  margin: 0 0 22px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.82rem;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  line-height: 1.04;
  margin: 0;
}

h1 {
  max-width: 11.4em;
  font-size: clamp(2.85rem, 6.1vw, 5rem);
  font-weight: 700;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.6rem);
  font-weight: 700;
}

h3 {
  font-size: clamp(1.24rem, 2vw, 1.55rem);
  font-weight: 700;
}

.hero-actions {
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 34px;
}

.button-primary,
.button-secondary {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 0.84rem;
  font-style: normal;
  text-decoration: none;
  transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease;
}

.button-primary {
  background: var(--accent);
  color: var(--white);
  border: 1px solid var(--accent);
}

.button-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: var(--white);
}

.button-secondary {
  background: var(--bg);
  color: var(--ink);
  border: 1px solid var(--border);
}

.button-secondary:hover {
  background: var(--surface);
}

.pipeline-board {
  position: relative;
  align-self: stretch;
  min-height: 470px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px;
  background: color-mix(in oklch, var(--surface), white 30%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.pipeline-board::before {
  content: "";
  position: absolute;
  inset: 58px 32px 76px;
  border-left: 1px dashed color-mix(in oklch, var(--accent), transparent 15%);
  border-right: 1px dashed color-mix(in oklch, var(--accent), transparent 50%);
}

.board-header {
  position: relative;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

.board-header span:first-child {
  color: var(--accent);
}

.pipeline-flow {
  position: relative;
  display: grid;
  gap: 18px;
  margin: 28px 0;
  padding: 0;
  list-style: none;
}

.pipeline-flow li {
  position: relative;
  min-height: 96px;
  display: grid;
  grid-template-columns: 44px 1fr;
  column-gap: 16px;
  align-items: center;
  padding: 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.pipeline-flow li::after {
  content: "";
  position: absolute;
  left: 37px;
  bottom: -19px;
  width: 1px;
  height: 18px;
  background: var(--accent);
}

.pipeline-flow li:last-child::after {
  display: none;
}

.node {
  grid-row: 1 / span 2;
  width: 22px;
  height: 22px;
  display: block;
  justify-self: center;
  border: 2px solid var(--accent);
  border-radius: 50%;
  background: var(--bg);
  box-shadow: inset 0 0 0 5px var(--accent-soft);
}

.pipeline-flow strong {
  grid-column: 2;
  display: block;
  font-family: var(--font-display);
  font-size: 1.15rem;
  line-height: 1.1;
}

.pipeline-flow small {
  grid-column: 2;
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.signal-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}

.signal-strip span {
  height: 9px;
  background: var(--accent-soft);
  border: 1px solid var(--border);
}

.signal-strip span:nth-child(2),
.signal-strip span:nth-child(5) {
  background: var(--accent);
}

.section {
  padding: clamp(64px, 8vw, 112px) 0;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(220px, 0.44fr) minmax(0, 0.56fr);
  gap: clamp(24px, 6vw, 70px);
  align-items: end;
  margin-bottom: 38px;
}

.section-heading p {
  max-width: 62ch;
  margin: 0;
  color: var(--muted);
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}

.copy-block {
  max-width: 74ch;
}

.copy-block p {
  margin: 0 0 1.15em;
}

.copy-block strong {
  color: var(--ink);
  font-weight: 600;
}

.author-plate {
  position: sticky;
  top: 94px;
  display: grid;
  gap: 14px;
}

.author-image {
  width: 100%;
  aspect-ratio: 1;
  display: block;
  object-fit: cover;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.author-plate dt,
.contact-tile span {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--muted);
}

.author-plate dl {
  display: grid;
  gap: 0;
  margin: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.author-plate div {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 14px;
  padding: 14px;
  border-bottom: 1px solid var(--border);
}

.author-plate div:last-child {
  border-bottom: 0;
}

.author-plate dt,
.author-plate dd {
  margin: 0;
}

.author-plate dd {
  font-weight: 600;
}

.blueprint-band {
  margin-inline: 0;
  padding-inline: 22px;
}

.blueprint-band > * {
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
}

.offer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.offer-card,
.contact-tile {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.offer-card {
  display: flex;
  flex-direction: column;
  min-height: 320px;
  padding: 22px;
}

.card-rule {
  width: 100%;
  height: 8px;
  margin-bottom: 24px;
  background:
    linear-gradient(90deg, var(--accent) 0 28%, transparent 28% 36%, var(--border) 36% 100%);
}

.offer-card p {
  color: var(--muted);
}

.training-partners {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 18px;
  padding: 18px 22px;
  background: color-mix(in oklch, var(--surface), white 28%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.training-partners p {
  margin: 0;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.78rem;
}

.training-partners ul {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
  margin: 0;
  padding: 0;
  list-style: none;
}

.training-partners li {
  display: flex;
}

.partner-logo {
  min-width: 128px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
}

.partner-logo img {
  display: block;
  max-width: 138px;
  max-height: 28px;
  object-fit: contain;
}

.partner-logo--altkom {
  background: #001eff;
  border-color: #001eff;
}

.partner-logo--sages {
  background: var(--bg);
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(330px, 1fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  margin-top: clamp(28px, 4vw, 56px);
  padding: clamp(42px, 6vw, 68px);
}

.contact-section p {
  max-width: 58ch;
  color: var(--muted);
}

.contact-methods {
  flex-direction: column;
  gap: 12px;
  font-style: normal;
}

.contact-tile {
  width: 100%;
  display: grid;
  gap: 6px;
  padding: 18px;
  text-decoration: none;
  transition: border-color 180ms ease, background-color 180ms ease;
}

.contact-tile:hover {
  background: var(--bg);
  border-color: var(--accent);
}

.contact-tile strong {
  font-family: var(--font-display);
  font-size: clamp(1.02rem, 2vw, 1.22rem);
  overflow-wrap: anywhere;
}

.site-footer {
  justify-content: space-between;
  gap: 20px;
  padding: 26px 0 36px;
  color: var(--muted);
  border-top: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.76rem;
}

@media (prefers-reduced-motion: no-preference) {
  .pipeline-board::after {
    content: "";
    position: absolute;
    inset: 0;
    transform: translateX(-100%);
    background: linear-gradient(90deg, transparent, color-mix(in oklch, var(--accent), transparent 86%), transparent);
    animation: scan 6s cubic-bezier(.22, 1, .36, 1) infinite;
    pointer-events: none;
  }

  .node {
    animation: node-pulse 3.8s steps(2, end) infinite;
  }

  .pipeline-flow li:nth-child(2) .node {
    animation-delay: 0.5s;
  }

  .pipeline-flow li:nth-child(3) .node {
    animation-delay: 1s;
  }
}

@keyframes scan {
  0%,
  28% {
    transform: translateX(-100%);
  }
  58%,
  100% {
    transform: translateX(100%);
  }
}

@keyframes node-pulse {
  50% {
    box-shadow: inset 0 0 0 3px var(--accent-soft), 0 0 0 5px color-mix(in oklch, var(--accent), transparent 84%);
  }
}

@media (max-width: 920px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .hero,
  .about-grid,
  .contact-section,
  .section-heading {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 74px;
  }

  .pipeline-board {
    min-height: 420px;
  }

  .author-plate {
    position: static;
  }

  .offer-grid {
    grid-template-columns: 1fr;
  }

  .offer-card {
    min-height: 0;
  }

  .training-partners {
    align-items: flex-start;
    flex-direction: column;
  }

  .training-partners ul {
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 16px;
  }

  .site-header,
  .hero,
  .section,
  .site-footer {
    margin-inline: 14px;
  }

  .blueprint-band {
    padding-inline: 14px;
  }

  .hero {
    padding-inline: 18px;
    gap: 28px;
    overflow: hidden;
  }

  h1 {
    max-width: 7.2em;
    font-size: clamp(2.05rem, 9.8vw, 2.48rem);
    line-height: 1.08;
  }

  .pipeline-board {
    width: 100%;
    max-width: calc(100vw - 64px);
    padding: 16px;
  }

  .pipeline-flow li {
    grid-template-columns: 34px minmax(0, 1fr);
    padding: 14px;
  }

  .pipeline-flow small {
    max-width: 24ch;
  }

  .pipeline-flow li::after {
    left: 31px;
  }

  .board-header,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .author-plate div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .contact-section {
    margin-top: 28px;
    padding: 44px 18px;
  }
}
