/* ---------------------------------------------------------
KI Konnektor — tokens
--------------------------------------------------------- */
@font-face {
  font-family: 'Expose';
  src: url('fonts/Expose-Bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
:root {
  /* color */
  --void:        #030a12;
  --ink:         #081420;
  --panel:       #0a1826;
  --line:        #1c3852;
  --line-soft:   #17324a;
  --line-teal:   rgba(34, 230, 192, 0.22);
  --glass:       rgba(16, 27, 37, 0.66);
  --teal:        #22e6c0;
  --teal-dim:    #0f6e5e;
  --sky:         #4fd3e8;
  --text:        #dcf3ef;
  --text-muted:  #6e93a0;
  --text-faint:  #3d5a68;
  /* type */
  --font-display: 'Expose', ui-sans-serif, system-ui, sans-serif;
  --font-mono:    ui-monospace, 'SFMono-Regular', 'Cascadia Code', 'Consolas', 'Liberation Mono', monospace;
  --font-body:    -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  /* layout */
  --max: 1080px;
  --pad: clamp(1.25rem, 4vw, 3rem);
  --radius: 2px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
/* scrollbar hidden — scrolling itself stays fully functional */
html {
  scrollbar-width: none;
  -ms-overflow-style: none;
}
html::-webkit-scrollbar {
  display: none;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}
body {
  margin: 0;
  background: var(--void);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { margin: 0; font-weight: 600; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; color: var(--text-muted); }
p:last-child { margin-bottom: 0; }
::selection { background: var(--teal-dim); color: var(--text); }
:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}
/* ---------------------------------------------------------
static background layers (flying-words animation removed)
--------------------------------------------------------- */
.scanlines {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 0px,
    rgba(0, 0, 0, 0) 2px,
    rgba(3, 10, 18, 0.35) 3px
  );
  mix-blend-mode: multiply;
  opacity: 0.5;
}
/* vertical gradient: a barely-visible teal brightness at the
top, fully faded out by 50% of the viewport height — the lower
half stays the plain dark background */
.vignette {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(34, 230, 192, 0.035) 0%,
    rgba(34, 230, 192, 0.0125) 25%,
    rgba(34, 230, 192, 0) 50%
  );
}
/* ---------------------------------------------------------
nav
--------------------------------------------------------- */
.nav {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.5rem var(--pad);
}
.nav__brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}
.nav__mark { display: block; width: 45px; height: 45px; filter: drop-shadow(0 0 6px rgba(34, 230, 192, 0.35)); }
.nav__word {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2.1rem;
  letter-spacing: 0.02em;
}
.nav__links {
  display: flex;
  gap: 2rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-muted);
}
.nav__links a { transition: color 0.15s ease; }
.nav__links a:hover, .nav__links a:focus-visible { color: var(--teal); }
.nav__back {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: color 0.15s ease;
}
.nav__back:hover, .nav__back:focus-visible { color: var(--teal); }
.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 34px;
  height: 34px;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  padding: 0;
}
.nav__toggle span {
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--teal);
  margin: 0 auto;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
/* ---------------------------------------------------------
sections (shared)
--------------------------------------------------------- */
.btn {
  display: inline-block;
  margin-top: 2.2rem;
  padding: 0.85rem 1.9rem;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  color: var(--void);
  background: var(--teal);
  border: 1px solid var(--teal);
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
  box-shadow: 0 0 24px rgba(34, 230, 192, 0.25);
}
.btn:hover, .btn:focus-visible {
  background: var(--sky);
  border-color: var(--sky);
  transform: translateY(-1px);
}
main {
  position: relative;
  z-index: 5;
}
section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 5.5rem var(--pad);
}
.services {
  padding-top: 5.5rem;
  padding-bottom: 8.25rem;
}
.section__head { margin-bottom: 2.75rem; max-width: 520px; }
.services .section__head { margin-bottom: 8.25rem; }
.eyebrow {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--teal);
  letter-spacing: 0.04em;
  margin-bottom: 0.75rem;
}
.section__head h2 {
  font-size: clamp(1.6rem, 3.4vw, 2.1rem);
  color: var(--text);
}
.section__lead {
  margin-top: 0.85rem;
  font-size: 1.02rem;
}
/* ---------------------------------------------------------
services
--------------------------------------------------------- */
.services__grid {
  display: flex;
  flex-direction: column;
}
.service-row {
  display: grid;
  grid-template-columns: clamp(240px, 30vw, 380px) minmax(0, 1fr);
  align-items: start;
  gap: clamp(1.5rem, 4vw, 3rem);
  padding: 7.92rem 0;
}
.services__grid > .service-row:first-child { padding-top: 0; }
.services__grid > .service-row:last-child { padding-bottom: 0; }
.service-row--flip {
  grid-template-columns: minmax(0, 1fr) clamp(240px, 30vw, 380px);
}
.service-row > .service-row__canvas-col {
  grid-column: 1;
  grid-row: 1;
}
.service-row > .module {
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
}
.service-row--flip > .module {
  grid-column: 1;
  justify-self: start;
}
.service-row--flip > .service-row__canvas-col {
  grid-column: 2;
}
.service-row__canvas-col {
  position: relative;
  height: 0;
  align-self: center;
  min-width: 0;
}
.service-row__canvas-wrap {
  position: absolute;
  left: 50%;
  top: 0;
  width: 70%;
  aspect-ratio: 1 / 1;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.services__grid > .service-row:nth-child(3) .service-row__canvas-wrap {
  width: 80%;
}
.service-row__canvas-wrap canvas {
  display: block;
  width: 100%;
  height: 100%;
}
.module {
  position: relative;
  z-index: 1;
  background: rgba(16, 27, 37, 0.3);
  border: 1px solid var(--line-teal);
  border-radius: var(--radius);
  padding: 4.4rem 1.9rem 2.2rem;
  max-width: 480px;
}
.module__id {
  position: absolute;
  top: 0;
  left: 0;
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--teal);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.15rem 0.5rem;
}
.service-row--flip .module__id {
  left: auto;
  right: 0;
}
.module h3 {
  font-size: 1.08rem;
  color: var(--text);
  margin-bottom: 0.65rem;
}
.module p { font-size: 0.94rem; }
/* ---------------------------------------------------------
contact — form left (same 480px width as the module cards
above), sphere right.
--------------------------------------------------------- */
.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 480px) minmax(240px, 1fr);
  justify-content: start;
  align-items: start;
  gap: 1.2rem 3rem;
}
.contact__grid > .section__head {
  grid-column: 1;
  grid-row: 1;
  margin-bottom: 1.55rem;
}
.contact .form {
  display: contents;
}
.contact .form > .form__row { grid-column: 1; }
.contact .form > .form__row:nth-child(1) { grid-row: 2; }
.contact .form > .form__row:nth-child(2) { grid-row: 3; }
.contact .form > .form__row:nth-child(3) { grid-row: 4; }
.contact .form > .form__row:nth-child(4) { grid-row: 5; }
.contact .form > .btn {
  grid-column: 1;
  grid-row: 6;
}
.contact .form > .form__status {
  grid-column: 1;
  grid-row: 7;
}
.contact {
  padding-top: 8.25rem;
}
.contact__visual {
  grid-column: 2;
  grid-row: 2 / 6;
  align-self: center;
  justify-self: end;
  position: relative;
  aspect-ratio: 1 / 1;
  width: 100%;
  max-width: 380px;
}
.contact__visual canvas {
  display: block;
  width: 100%;
  height: 100%;
}
@media (max-width: 1180px) {
  .contact__grid { grid-template-columns: 1fr; }
  .contact .form { display: grid; }
  .contact .form > .form__row,
  .contact .form > .form__status {
    grid-column: auto;
    grid-row: auto;
  }
  .contact .form > .btn {
    grid-column: auto;
    grid-row: auto;
    order: 99;
  }
  .contact__grid > .section__head { grid-column: 1; grid-row: auto; }
  .contact__visual { grid-column: 1; grid-row: auto; order: -1; max-width: 380px; margin: 0 auto 1.55rem; justify-self: center; opacity: 0.7; }
}
@media (max-width: 640px) {
  .contact__visual { display: none; }
}
.form {
  max-width: 480px; /* exactly the same width as the .module text cards */
  display: grid;
  gap: 1.2rem;
}
.form__row { display: flex; flex-direction: column; gap: 0.5rem; }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.form__row input::placeholder,
.form__row textarea::placeholder {
  color: var(--text-faint);
  opacity: 0.7;
}
.form__row input,
.form__row textarea {
  width: 100%;
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.96rem;
  padding: 0.75rem 0.85rem;
  resize: vertical;
  transition: border-color 0.15s ease;
}
.form__row input:hover,
.form__row textarea:hover { border-color: var(--text-faint); }
.form__row input:focus,
.form__row textarea:focus {
  outline: none;
  border-color: var(--teal);
}
.form__row--hp {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}
.form .btn {
  justify-self: start;
  margin-top: 0.4rem;
  border: 1px solid var(--teal);
}
.form .btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}
.form__status {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  min-height: 1.2em;
  margin: 0;
}
.form__status[data-state="ok"] { color: var(--teal); }
.form__status[data-state="error"] { color: #ef8a8a; }
.form__status[data-state="sending"] { color: var(--text-muted); }
/* ---------------------------------------------------------
imprint
--------------------------------------------------------- */
.imprint__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  border-top: 1px solid var(--line-soft);
  padding-top: 2.5rem;
}
.imprint--standalone {
  min-height: 70vh;
  padding-top: 3rem;
}
.imprint h3 {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--teal);
  letter-spacing: 0.02em;
  margin-bottom: 0.5rem;
  margin-top: 1.6rem;
}
.imprint h3:first-child { margin-top: 0; }
.imprint p { font-size: 0.92rem; }
.imprint__note {
  margin-top: 2.5rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-faint);
}
/* ---------------------------------------------------------
footer
--------------------------------------------------------- */
.footer {
  position: relative;
  z-index: 5;
  max-width: var(--max);
  margin: 0 auto;
  padding: 2rem var(--pad) 3rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-faint);
  display: flex;
  gap: 0.6rem;
  align-items: center;
}
.footer__dot { color: var(--line); }
/* ---------------------------------------------------------
responsive
--------------------------------------------------------- */
@media (min-width: 781px) and (max-width: 1180px) {
  .service-row {
    grid-template-columns: clamp(300px, 42vw, 380px) minmax(0, 1fr);
  }
  .service-row--flip {
    grid-template-columns: minmax(0, 1fr) clamp(300px, 42vw, 380px);
  }
}
@media (max-width: 780px) {
  .service-row,
  .service-row--flip {
    grid-template-columns: 1fr;
    gap: 1.75rem;
    padding: 4.95rem 0;
  }
  .services { padding-bottom: 4.125rem; }
  .contact { padding-top: 4.125rem; }
  .service-row > .service-row__canvas-col,
  .service-row--flip > .service-row__canvas-col {
    grid-column: 1;
    grid-row: auto;
    order: 1;
    height: auto;
    align-self: start;
  }
  .service-row__canvas-wrap,
  .services__grid > .service-row:nth-child(3) .service-row__canvas-wrap {
    position: static;
    left: auto;
    transform: none;
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
    pointer-events: auto;
  }
  .service-row > .module,
  .service-row--flip > .module {
    grid-column: 1;
    grid-row: auto;
    order: 2;
    justify-self: stretch;
    max-width: none;
  }
  .service-row--flip .module__id {
    left: 0;
    right: auto;
  }
  .form { max-width: none; } /* on mobile stretch like the modules */
  .imprint__grid { grid-template-columns: 1fr; gap: 0; }
  .imprint__grid > div:last-child { margin-top: 0.5rem; }
}
@media (max-width: 640px) {
  .nav__toggle { display: flex; }
  .nav__links {
    position: absolute;
    top: 100%;
    right: var(--pad);
    left: var(--pad);
    flex-direction: column;
    gap: 0;
    background: var(--glass);
    border: 1px solid transparent;
    border-radius: var(--radius);
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.25s ease, border-color 0.25s ease;
  }
  .nav__links.is-open {
    max-height: 220px;
    border-color: var(--line);
  }
  .nav__links a {
    padding: 0.9rem 1.1rem;
    border-bottom: 1px solid var(--line-soft);
  }
  .nav__links a:last-child { border-bottom: none; }
  section { padding: 3.5rem var(--pad); }
}