/* Citance website. Tokens follow prototype v2: neutral ground, ink, hairlines, rare teal,
   8 px buttons, 6 px small corners. */

@font-face {
  font-family: "DM Sans";
  src: url("/assets/fonts/dm-sans-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 1000;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("/assets/fonts/dm-sans-latin-wght-italic.woff2") format("woff2");
  font-weight: 100 1000;
  font-style: italic;
  font-display: swap;
}

:root {
  --ground: #f5f5f4;
  --sidebar: #fafafa;
  --paper: #ffffff;
  --ink: #141414;
  --ink-2: #5c5c5a;
  --ink-3: #8c8c89;
  --hairline: #e5e5e5;
  --outline: #d4d4d4;
  --outline-hover: #a3a3a3;
  --teal: #587b82;
  --teal-ink: #456971;
  --frost: #dde5e7;
  --recommend: #e3eced;
  --radius-small: 6px;
  --radius-button: 8px;
  --radius-large: 12px;
  --gutter: 24px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.22, 0.8, 0.24, 1);
  --ease-spring: cubic-bezier(0.2, 1.4, 0.35, 1);
  --font: "DM Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img, svg, canvas { display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }

.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Buttons: the product's two styles, black primary and outline ---------- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 40px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: var(--radius-button);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.15s var(--ease-out), background-color 0.15s var(--ease-out), border-color 0.15s var(--ease-out), transform 0.15s var(--ease-out);
}
.button:active { transform: translateY(1px); }
.button-primary { background: var(--ink); color: #fff; }
.button-primary:hover { background: #3a3a39; }
.button-outline { background: var(--paper); color: var(--ink); border-color: var(--outline); }
.button-outline:hover { border-color: var(--outline-hover); }

/* ---------- 1. Header and menu ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245, 245, 244, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
html { scroll-padding-top: 76px; }

.header-bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 64px;
}
.header-logo img { height: 24px; width: auto; }
.header-nav { justify-self: center; }
.nav-list { display: flex; gap: 4px; margin: 0; padding: 0; list-style: none; }
.nav-trigger, .nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 40px;
  padding: 0 12px;
  border: 0;
  border-radius: var(--radius-small);
  background: none;
  font-size: 15px;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.3s var(--ease-soft);
}
.nav-trigger:hover, .nav-link:hover, .nav-trigger[aria-expanded="true"] { color: var(--teal-ink); }
.nav-chevron { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.45s var(--ease-soft); }
.nav-trigger[aria-expanded="true"] .nav-chevron { transform: rotate(180deg); }
.header-cta { justify-self: end; height: 36px; }
.menu-toggle { display: none; }

/* The panel is always in the page and fades with visibility, so opening never jumps. */
.menu-panel {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  color: var(--ink);
  background: rgba(245, 245, 244, 0.96);
  visibility: hidden;
  opacity: 0;
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.5s var(--ease-soft), opacity 0.35s ease, visibility 0s linear 0.5s;
}
.menu-panel.is-open {
  visibility: visible;
  opacity: 1;
  clip-path: inset(0 0 0 0);
  transition: clip-path 0.55s var(--ease-soft), opacity 0.3s ease, visibility 0s;
}
.menu-panel-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  padding-top: 28px;
  padding-bottom: 32px;
  max-width: 720px;
}
.menu-panel-inner > * {
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.3s ease, transform 0.45s var(--ease-soft);
}
.menu-panel.is-open .menu-panel-inner > * { opacity: 1; transform: none; }
.menu-panel.is-open .menu-panel-inner > :nth-child(1) { transition-delay: 0.06s; }
.menu-panel.is-open .menu-panel-inner > :nth-child(2) { transition-delay: 0.11s; }
.menu-column { display: flex; flex-direction: column; gap: 8px; }
.menu-link { display: block; padding: 8px 10px; border-radius: var(--radius-small); text-decoration: none; transition: background-color 0.2s; }
.menu-link:hover { background: var(--paper); }
.menu-link-title { display: block; font-size: 16px; font-weight: 500; }
.menu-link-desc { display: block; margin-top: 2px; font-size: 13.5px; line-height: 1.45; color: var(--ink-2); }

.menu-scrim {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(245, 245, 244, 0.3);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.5s var(--ease-soft), visibility 0s linear 0.5s;
}
.menu-scrim.is-open { visibility: visible; opacity: 1; transition: opacity 0.5s var(--ease-soft), visibility 0s; }

.mobile-menu { display: none; }

/* ---------- 2. Hero ---------- */
.hero { padding: 0 12px; }
.hero-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: min(900px, calc(100svh - 76px));
  border-radius: var(--radius-large);
  background: url("/assets/teal-satin.webp") center / cover, #5d7e85;
  color: #fff;
  isolation: isolate;
}
.hero-dots { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }

/* The live glass (glass.js) draws the light; the reeds' shading and highlight sit on top
   as a fixed pattern 24 px wide, with a fine grain; the scrim keeps the text readable.
   Until the glass is drawn, the card shows the brand image underneath. */
.glass-layer, .glass-reeds, .hero-scrim, .closing-scrim { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.glass-layer { opacity: 0; transition: opacity 0.8s ease; }
.has-live-glass .glass-layer { opacity: 1; }
.glass-reeds {
  opacity: 0;
  transition: opacity 0.8s ease;
  background:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/></filter><rect width='160' height='160' filter='url(%23n)' opacity='0.09'/></svg>"),
    repeating-linear-gradient(90deg,
      rgba(8, 18, 20, 0.26) 0px,
      rgba(8, 18, 20, 0.07) 4px,
      rgba(255, 255, 255, 0) 6px,
      rgba(255, 255, 255, 0.2) 7.2px,
      rgba(255, 255, 255, 0) 8.8px,
      rgba(8, 18, 20, 0) 12px,
      rgba(8, 18, 20, 0.07) 20px,
      rgba(8, 18, 20, 0.26) 24px);
}
.has-live-glass .glass-reeds { opacity: 1; }
.hero-scrim { background: linear-gradient(180deg, rgba(17, 18, 13, 0.38) 0%, rgba(17, 18, 13, 0.08) 46%, rgba(17, 18, 13, 0.28) 100%); }

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 860px;
  margin: 0 auto;
  padding: clamp(56px, 9vh, 104px) var(--gutter) 56px;
  text-align: center;
}
.hero-title {
  margin: 0;
  font-size: clamp(38px, 5.4vw, 66px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.hero-lead {
  max-width: 560px;
  margin: 22px auto 0;
  font-size: clamp(16px, 1.5vw, 18px);
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.86);
  text-wrap: pretty;
}
/* The product's glass chat field in place of buttons, as liquid glass. liquid-glass.js draws
   the lens into .ask-lens (the picture behind, refracted through a modelled glass body and rim);
   until then, or without scripts, the field is plain frosted glass. */
.ask {
  position: relative;
  display: flex;
  align-items: center;
  width: min(560px, 100%);
  height: 58px;
  margin: 34px auto 0;
  padding: 0 9px 0 24px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px) saturate(140%);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3), 0 14px 34px -16px rgba(0, 0, 0, 0.5), 0 2px 6px -2px rgba(0, 0, 0, 0.25);
}
.ask.has-lens {
  background: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: 0 14px 34px -16px rgba(0, 0, 0, 0.5), 0 2px 6px -2px rgba(0, 0, 0, 0.25);
}
.ask-lens { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: inherit; pointer-events: none; }
.ask-input {
  position: relative;
  z-index: 1;
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0;
  background: none;
  color: #fff;
  font: inherit;
  font-size: 16px;
  font-weight: 450;
  text-shadow: 0 1px 2px rgba(10, 20, 22, 0.35);
  outline: none;
}
.ask-input::placeholder { color: rgba(255, 255, 255, 0.95); text-shadow: 0 1px 2px rgba(10, 20, 22, 0.35); }
.ask-send {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  box-shadow: 0 4px 12px -4px rgba(0, 0, 0, 0.35);
  transition: transform 0.3s var(--ease-soft), background-color 0.2s;
}
.ask-send:hover { transform: translateY(-1px); background: var(--frost); }
.ask-send svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------- The product window (prototype v2, «Wartet auf Sie») ---------- */
.app-window {
  position: relative;
  z-index: 1;
  flex: none;
  display: grid;
  grid-template-columns: 200px 1fr;
  width: min(1060px, calc(100% - 48px));
  height: 440px;
  margin: auto auto -1px;
  border-radius: var(--radius-large) var(--radius-large) 0 0;
  background: var(--sidebar);
  color: var(--ink);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.4), 0 30px 60px -30px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  font-size: 13px;
}
.app-window::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 90px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #fff 85%);
  pointer-events: none;
}
.app-icon { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.app-sidebar { position: relative; display: flex; flex-direction: column; gap: 2px; padding: 14px 8px; }
.app-sidebar-head { display: flex; align-items: center; justify-content: space-between; padding: 2px 8px 14px; color: var(--ink-2); }
.app-sidebar-head img { height: 19px; width: auto; }
.app-nav-item { display: flex; align-items: center; gap: 10px; height: 34px; padding: 0 10px; border-radius: var(--radius-small); color: var(--ink); }
.app-nav-item.is-active { background: var(--paper); box-shadow: 0 0 0 1px var(--hairline); font-weight: 500; }
.app-nav-count { margin-left: auto; font-weight: 400; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.app-user { display: flex; align-items: center; gap: 10px; margin-top: auto; padding: 8px 10px; font-size: 12px; line-height: 1.3; color: var(--ink-2); }
.app-user b { font-weight: 500; color: var(--ink); font-size: 13px; }
.app-avatar {
  display: grid;
  place-items: center;
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--frost);
  color: var(--teal-ink);
  font-size: 11px;
  font-weight: 500;
}

.app-main {
  margin: 8px 0 0 0;
  padding: 26px 32px 0;
  border-radius: var(--radius-large) 0 0 0;
  background: var(--paper);
  box-shadow: 0 0 0 1px var(--hairline);
  overflow: hidden;
}
.app-title { margin: 0; font-size: 18px; font-weight: 500; line-height: 1.2; }
.app-chip { display: inline-flex; align-items: center; gap: 4px; height: 24px; margin: 8px 0 0; padding: 0 8px; border-radius: var(--radius-small); background: #f5f5f5; font-size: 12px; font-variant-numeric: tabular-nums; }
.app-table { margin-top: 16px; border: 1px solid var(--hairline); border-radius: var(--radius-small); overflow: hidden; }

.app-head, .app-row {
  display: grid;
  grid-template-columns: 104px minmax(150px, 190px) minmax(170px, 1fr) minmax(170px, 220px) 64px;
  column-gap: 16px;
  padding: 0 16px;
}
.app-head { align-items: center; height: 36px; border-bottom: 1px solid var(--hairline); font-size: 12px; color: var(--ink-2); }
.app-amount { text-align: right; }
.app-group { display: flex; align-items: center; gap: 6px; height: 34px; margin: 0; padding: 0 16px; border-bottom: 1px solid var(--hairline); font-size: 12px; font-weight: 500; color: var(--ink-2); }
.app-group span { font-weight: 400; font-variant-numeric: tabular-nums; }
.app-rows { margin: 0; padding: 0; list-style: none; }
.app-row {
  align-items: center;
  padding-top: 11px;
  padding-bottom: 11px;
  border-bottom: 1px solid var(--hairline);
  font-size: 13px;
  line-height: 1.35;
  background: transparent;
  transition: background-color 2.4s ease;
}
.app-row p { margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app-row .muted { font-size: 12px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.app-row .strong { font-weight: 500; }
.app-row .due-now { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; }
.app-row .due-now::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ink); }
.app-row .who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.app-row .who > span:last-child { min-width: 0; }
.app-row .app-avatar { width: 26px; height: 26px; font-size: 10px; }
.app-row .amount { text-align: right; font-variant-numeric: tabular-nums; }

/* A new case arrives: the row opens, slides in, and its tint fades */
.app-row.is-arriving {
  background: var(--recommend);
  animation: row-arrive 0.9s var(--ease-soft);
}
@keyframes row-arrive {
  from { opacity: 0; transform: translateY(-12px); clip-path: inset(0 0 100% 0); }
  to { opacity: 1; transform: none; clip-path: inset(0 0 0 0); }
}
.app-row.is-leaving { animation: row-leave 0.7s var(--ease-soft) forwards; }
@keyframes row-leave { to { opacity: 0; transform: translateX(24px); } }

.app-note { position: absolute; right: 18px; bottom: 12px; z-index: 1; margin: 0; font-size: 11.5px; color: var(--ink-3); }

/* ---------- 3. The connections band ---------- */
.band { padding: 32px 0; }
.band-inner { display: flex; align-items: center; gap: 32px; }
.band-label { flex: none; margin: 0; font-size: 14px; color: var(--ink-3); }
.band-window {
  display: flex;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 56px, #000 calc(100% - 56px), transparent);
  mask-image: linear-gradient(90deg, transparent, #000 56px, #000 calc(100% - 56px), transparent);
}
.band-track {
  display: flex;
  flex: none;
  gap: 28px;
  margin: 0;
  padding: 0 28px 0 0;
  list-style: none;
  animation: band-slide 70s linear infinite;
}
.band-track li { display: inline-flex; align-items: center; gap: 7px; flex: none; height: 26px; font-size: 14px; white-space: nowrap; color: var(--ink-2); }
.logo { height: 17px; width: auto; }
.logo-wordmark { height: 14px; }
.logo-sap { height: 16px; }
.logo-emoji { height: 19px; }
.band-window:hover .band-track { animation-play-state: paused; }
@keyframes band-slide { to { transform: translateX(-100%); } }

/* ---------- 4. What lies between the insurer and the case ----------
   Three cards, each with a small line drawing that loops through the problem (grey, with ink
   crosses). Hovering a card, focusing it, or (on touch screens) scrolling it into view adds
   .is-solved: the drawing settles in teal and the line «Mit Citance» appears. */
.problems { padding: clamp(96px, 12vh, 140px) 0 clamp(64px, 8vh, 96px); }
.problems-title { max-width: 16em; margin: 0; font-size: clamp(32px, 3.8vw, 50px); font-weight: 450; line-height: 1.08; letter-spacing: -0.032em; }
.problems-lead { max-width: 40em; margin: 18px 0 0; font-size: 18px; line-height: 1.5; color: var(--ink-2); }
.problem-list { display: grid; gap: 14px; margin-top: 48px; }

.problem {
  display: grid;
  grid-template-columns: 300px minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  padding: 26px 32px;
  border-radius: var(--radius-large);
  background: var(--paper);
  box-shadow: 0 0 0 1px var(--hairline);
  outline: none;
  transition: box-shadow 0.4s var(--ease-soft);
}
.problem:hover, .problem:focus-visible, .problem.is-solved { box-shadow: 0 0 0 1px var(--hairline), 0 24px 50px -36px rgba(0, 0, 0, 0.28); }
.problem-label { display: grid; margin: 0 0 10px; font-size: 13px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
/* The label and the text swap on hover: «01 · Eingang» and the problem give way to «01 · Mit Citance»
   and what Citance does, in the same place. One soft cross-fade with a slight blur, no movement:
   the old text leaves first, then the new one arrives, in both directions. A short pause before
   the swap means passing over a card with the mouse does not flip it. */
.problem-label > span, .problem-text > p {
  grid-area: 1 / 1;
  transition: opacity 0.35s ease, filter 0.35s ease;
}
.label-citance { display: inline-flex; align-items: center; gap: 6px; color: var(--teal-ink); font-weight: 500; }
.label-mark { width: 13px; height: 13px; fill: currentColor; }
.problem-text { display: grid; align-items: center; }
.problem-text p { margin: 0; font-size: 16px; line-height: 1.55; color: var(--ink-2); }
.problem-text .with-citance { color: var(--ink); }

/* at rest: the problem shows; it comes back only once the Citance text has left */
.problem-label > .label-today, .problem-text > p:first-child { transition-delay: 0.3s; }
.problem-label > .label-citance, .problem-text > .with-citance { opacity: 0; filter: blur(3px); }

/* on hover: after a short pause the problem leaves, then the Citance text arrives */
.problem:hover .label-today, .problem:focus-visible .label-today, .problem.is-solved .label-today,
.problem:hover .problem-text > p:first-child, .problem:focus-visible .problem-text > p:first-child, .problem.is-solved .problem-text > p:first-child {
  opacity: 0; filter: blur(3px); transition-delay: 0.15s;
}
.problem:hover .label-citance, .problem:focus-visible .label-citance, .problem.is-solved .label-citance,
.problem:hover .with-citance, .problem:focus-visible .with-citance, .problem.is-solved .with-citance {
  opacity: 1; filter: none; transition-duration: 0.5s; transition-delay: 0.45s;
}

/* The problem drawings, one recipe for all three cards: an isometric line drawing (white objects,
   thin ink outlines) standing on a loose pixel field. At rest the field is grey and the drawing
   shows the problem in motion; on hover the field turns teal and the drawing resolves. */
.sketch { width: 100%; height: auto; overflow: visible; }

.sketch-iso .fp { transition: fill 0.7s ease; }
.sketch-iso .fp.l1 { --tone: #ebebe9; --tone-colour: #dde7e9; fill: var(--tone); }
.sketch-iso .fp.l2 { --tone: #d6d6d3; --tone-colour: #b9cdd0; fill: var(--tone); }
.sketch-iso .fp.l3 { --tone: #bdbdb9; --tone-colour: #8eabb0; fill: var(--tone); }
.sketch-iso .fp.flicker { animation: field-flicker 7s ease-in-out infinite; }
@keyframes field-flicker { 0%, 100% { fill: var(--tone); } 4% { fill: #8c8c89; } 12% { fill: var(--tone); } }
.sketch-iso .face { fill: var(--paper); stroke: var(--ink); stroke-width: 0.9; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.sketch-iso .detail { fill: none; stroke: var(--ink); stroke-width: 0.7; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.problem:hover .sketch-iso .fp, .problem:focus-visible .sketch-iso .fp, .problem.is-solved .sketch-iso .fp { animation: none; fill: var(--tone-colour); }

/* 01: loose pieces drift where they are; on hover they settle into one stack, one after another */
.sketch-iso .piece { transition: transform 0.9s cubic-bezier(0.3, 0.7, 0.2, 1); }
.sketch-iso .p2 { transition-delay: 0.08s; }
.sketch-iso .p3 { transition-delay: 0.16s; }
.sketch-iso .p4 { transition-delay: 0.24s; }
.sketch-iso .drift { animation: piece-drift 5s ease-in-out infinite; }
.sketch-iso .p2 .drift { animation-delay: -1.3s; }
.sketch-iso .p3 .drift { animation-delay: -2.6s; }
.sketch-iso .p4 .drift { animation-delay: -3.9s; }
@keyframes piece-drift { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
.problem:hover .sketch-iso .piece, .problem:focus-visible .sketch-iso .piece, .problem.is-solved .sketch-iso .piece { transform: translate(var(--settle-x), var(--settle-y)); }
.problem:hover .sketch-iso .drift, .problem:focus-visible .sketch-iso .drift, .problem.is-solved .sketch-iso .drift { animation: none; }

/* 02: at rest the screen searches and a light blinks. The tray, the drawer and the pages move in
   systems.js; here the search stops while they do. */
.sketch-systems .searching { animation: screen-search 2.4s linear infinite; }
@keyframes screen-search { 0% { transform: translateY(-14px); opacity: 0; } 15%, 85% { opacity: 1; } 100% { transform: translateY(4px); opacity: 0; } }
.sketch-systems .led { animation: led-blink 1.6s steps(1) infinite; }
@keyframes led-blink { 50% { opacity: 0; } }
.problem:hover .sketch-systems .searching, .problem:focus-visible .sketch-systems .searching, .problem.is-solved .sketch-systems .searching { animation: none; opacity: 0; }

/* 03: the question hops between the people's trays and back, never staying; on hover it goes
   straight to the right person: the others step back, her portrait takes on colour and a tick
   shows the question has reached her */
.sketch-question .stem { stroke: var(--ink); stroke-width: 0.7; stroke-dasharray: 2 2; vector-effect: non-scaling-stroke; }
.sketch-question .person image { filter: grayscale(1) contrast(1.05); transition: filter 0.7s ease, opacity 0.5s ease; }
.sketch-question .person .frame { fill: none; stroke: var(--ink); stroke-width: 0.9; vector-effect: non-scaling-stroke; transition: stroke 0.5s ease; }
.sketch-question .person .ring { fill: none; stroke: var(--teal); stroke-width: 1.2; opacity: 0; transform-origin: center; transform-box: fill-box; vector-effect: non-scaling-stroke; }
.sketch-question .hop { animation: question-hops 6s ease-in-out infinite; }
@keyframes question-hops {
  0%, 12% { transform: translate(0, 0); }
  20% { transform: translate(calc(var(--hop-2-x) / 2), calc(var(--hop-2-y) / 2 + var(--lift))); }
  28%, 46% { transform: translate(var(--hop-2-x), var(--hop-2-y)); }
  54% { transform: translate(calc(var(--hop-2-x) / 2), calc(var(--hop-2-y) / 2 + var(--lift))); }
  62%, 100% { transform: translate(0, 0); }
}
@keyframes question-arrives {
  0% { transform: translate(0, 0); }
  45% { transform: translate(calc(var(--hop-3-x) / 2), calc(var(--hop-3-y) / 2 + var(--lift))); }
  100% { transform: translate(var(--hop-3-x), var(--hop-3-y)); }
}
@keyframes ring-out { 0% { opacity: 0.7; scale: 1; } 100% { opacity: 0; scale: 1.5; } }
.problem:hover .sketch-question .hop, .problem:focus-visible .sketch-question .hop, .problem.is-solved .sketch-question .hop { animation: question-arrives 0.9s ease-in-out forwards; }
.problem:hover .sketch-question .person-3 image, .problem:focus-visible .sketch-question .person-3 image, .problem.is-solved .sketch-question .person-3 image { filter: none; }
.problem:hover .sketch-question .person-3 .frame, .problem:focus-visible .sketch-question .person-3 .frame, .problem.is-solved .sketch-question .person-3 .frame { stroke: var(--teal-ink); }
.problem:hover .sketch-question .person-3 .ring, .problem:focus-visible .sketch-question .person-3 .ring, .problem.is-solved .sketch-question .person-3 .ring { animation: ring-out 1.8s ease-out 0.9s infinite; }
.sketch-question .person { transition: opacity 0.5s ease; }
.sketch-question .reached { opacity: 0; scale: 0.3; transition: opacity 0.3s ease, scale 0.6s var(--ease-spring); }
.sketch-question .reached circle { fill: var(--teal-ink); stroke: var(--paper); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.sketch-question .reached path { fill: none; stroke: #fff; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.problem:hover .sketch-question .person-1, .problem:hover .sketch-question .person-2,
.problem:focus-visible .sketch-question .person-1, .problem:focus-visible .sketch-question .person-2,
.problem.is-solved .sketch-question .person-1, .problem.is-solved .sketch-question .person-2 { opacity: 0.35; }
.problem:hover .sketch-question .person-3 .reached, .problem:focus-visible .sketch-question .person-3 .reached, .problem.is-solved .sketch-question .person-3 .reached { opacity: 1; scale: 1; transition-delay: 0.85s; }

/* 04: the case folder travels to the insurer's mailbox and back, three times; each return leaves
   another loose sheet on the desk. On hover the folder stays home and the sheets line up in
   order, each ticked off. */
.sketch-history .travels { animation: case-travels 10s ease-in-out infinite; }
@keyframes case-travels {
  0%, 4%, 22%, 30%, 34%, 52%, 60%, 64%, 82%, 100% { transform: translate(0, 0); }
  7%, 19%, 37%, 49%, 67%, 79% { transform: translate(calc(var(--away-x) / 2), calc(var(--away-y) / 2 + var(--lift))); }
  10%, 16%, 40%, 46%, 70%, 76% { transform: translate(var(--away-x), var(--away-y)); }
}
.sketch-history .lands { opacity: 0; }
.sketch-history .s1 .lands { animation: sheet-lands-1 10s ease-out infinite; }
.sketch-history .s2 .lands { animation: sheet-lands-2 10s ease-out infinite; }
.sketch-history .s3 .lands { animation: sheet-lands-3 10s ease-out infinite; }
@keyframes sheet-lands-1 { 0%, 22% { opacity: 0; transform: translateY(-12px); } 25%, 95% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes sheet-lands-2 { 0%, 52% { opacity: 0; transform: translateY(-12px); } 55%, 95% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes sheet-lands-3 { 0%, 82% { opacity: 0; transform: translateY(-12px); } 85%, 95% { opacity: 1; transform: none; } 100% { opacity: 0; } }
.sketch-history .loose { transition: transform 0.8s cubic-bezier(0.3, 0.7, 0.2, 1); }
.sketch-history .s2 { transition-delay: 0.1s; }
.sketch-history .s3 { transition-delay: 0.2s; }
.sketch-history .kept { opacity: 0; scale: 0.3; transition: opacity 0.3s ease, scale 0.6s var(--ease-spring); }
.sketch-history .kept circle { fill: var(--teal-ink); stroke: var(--paper); stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.sketch-history .kept path { fill: none; stroke: #fff; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.problem:hover .sketch-history .travels, .problem:focus-visible .sketch-history .travels, .problem.is-solved .sketch-history .travels { animation: none; }
.problem:hover .sketch-history .lands, .problem:focus-visible .sketch-history .lands, .problem.is-solved .sketch-history .lands { animation: none; opacity: 1; }
.problem:hover .sketch-history .loose, .problem:focus-visible .sketch-history .loose, .problem.is-solved .sketch-history .loose { transform: translate(var(--settle-x), var(--settle-y)); }
.problem:hover .sketch-history .kept, .problem:focus-visible .sketch-history .kept, .problem.is-solved .sketch-history .kept { opacity: 1; scale: 1; transition-delay: 0.7s; }
.problem:hover .sketch-history .k2, .problem:focus-visible .sketch-history .k2, .problem.is-solved .sketch-history .k2 { transition-delay: 0.85s; }
.problem:hover .sketch-history .k3, .problem:focus-visible .sketch-history .k3, .problem.is-solved .sketch-history .k3 { transition-delay: 1s; }

/* ---------- So arbeitet Citance: steps on the left, a pinned stage with pieces of the product ----------
   The stage shows fragments only, never a whole screen: the product stays for the demo. Each
   scene's parts (.beat) come in one after another, in the order of --beat, once its step is active. */
.how { --how-stage-height: min(580px, 76vh); padding: clamp(56px, 8vh, 88px) 0 0; }
.how-intro { max-width: 720px; }
.how-kicker { margin: 0 0 14px; font-size: 14px; color: var(--teal-ink); font-weight: 500; }
.how-title { margin: 0; font-size: clamp(32px, 3.8vw, 50px); font-weight: 450; line-height: 1.08; letter-spacing: -0.032em; }
.how-lead { margin: 18px 0 0; font-size: 18px; line-height: 1.5; color: var(--ink-2); }

/* Three columns, pinned while the track scrolls past (Amperos-style): the five steps on the left,
   the active one in ink; the stage in the middle; the active step's words on the right. The
   track is as tall as the five steps need; how.js picks the step from how far it has scrolled. */
/* The pinned columns are a full screen tall with the stage in the middle; the empty band above and
   below the stage is pulled in by negative margins, so the section has no extra air around it. */
.how-track {
  --empty-band: calc((100vh - 64px - var(--how-stage-height)) / 2);
  position: relative;
  height: calc(100vh + 5 * 55vh);
  margin: calc(32px - var(--empty-band)) 0 calc(24px - var(--empty-band));
  pointer-events: none;
}
.how-layout > * { pointer-events: auto; }
.how-layout {
  position: sticky;
  top: 0;
  height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.3fr) minmax(0, 0.6fr);
  gap: clamp(24px, 3.5vw, 56px);
  align-items: center;
  padding-top: 64px;
}
/* The titles sit in a window three slots tall: the active one in the middle, the one before and
   the one after faint above and below, the rest out of sight. The list slides as the step changes. */
.how-titles-window {
  --slot: clamp(150px, 22vh, 210px);
  height: calc(3 * var(--slot));
  overflow: hidden;
  -webkit-mask-image: linear-gradient(transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(transparent, #000 12%, #000 88%, transparent);
}
.how-titles {
  margin: 0; padding: 0; list-style: none;
  transform: translateY(calc((1 - var(--active, 0)) * var(--slot)));
  transition: transform 0.9s var(--ease-out);
}
.how-titles li { height: var(--slot); display: flex; align-items: center; }
.how-title-item {
  width: 100%; padding: 0; border: 0; background: none; text-align: left; cursor: pointer;
  font-size: clamp(28px, 2.6vw, 38px); font-weight: 450; line-height: 1.12; letter-spacing: -0.025em;
  color: var(--ink); opacity: 0; transition: opacity 0.6s ease;
}
.how-title-item.is-near { opacity: 0.22; }
.how-title-item.is-near:hover { opacity: 0.45; }
.how-title-item.is-active { opacity: 1; }
.how-texts { display: grid; }
.how-text {
  grid-area: 1 / 1; margin: 0; font-size: 17px; line-height: 1.6; color: var(--ink-2);
  opacity: 0; filter: blur(4px); transform: translateY(8px);
  transition: opacity 0.3s ease, filter 0.3s ease, transform 0.3s ease;
}
.how-text.is-active { opacity: 1; filter: none; transform: none; transition: opacity 0.6s ease 0.25s, filter 0.6s ease 0.25s, transform 0.8s var(--ease-out) 0.25s; }

.how-stage {
  position: relative;
  height: var(--how-stage-height);
  overflow: hidden;
  border-radius: var(--radius-large);
  isolation: isolate;
}
.how-stage-glass {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url("/assets/teal-streak.webp") center / cover, #e9e4da;
}
.how-canvas {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 560px;
  height: 470px;
  translate: -50% -50%;
  scale: var(--canvas-scale, 1);
  font-size: 13px;
  line-height: 1.45;
  color: var(--ink);
}
.how-scene { position: absolute; inset: 0; visibility: hidden; transition: visibility 0s linear 0.4s; }
.how-scene.is-active { visibility: visible; transition-delay: 0s; }

/* the parts of a scene: hidden at rest; in turn, once the scene is active */
.how-scene .beat { opacity: 0; transform: translateY(10px); filter: blur(3px); transition: opacity 0.3s ease, transform 0.3s ease, filter 0.3s ease; }
.how-scene.is-active .beat {
  opacity: 1;
  transform: none;
  filter: none;
  transition: opacity 0.6s ease, transform 0.8s var(--ease-out), filter 0.6s ease;
  transition-delay: calc(0.15s + var(--beat, 0) * 0.35s);
}

/* shared pieces of the product */
.frag { position: absolute; padding: 16px 18px; border-radius: var(--radius-large); background: var(--paper); box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06), 0 24px 50px -28px rgba(0, 0, 0, 0.55); }
.frag p { margin: 0; }
.frag .muted { color: var(--ink-3); }
.frag-title { margin-bottom: 10px !important; font-weight: 500; font-size: 14px; }
.point-number { display: inline-grid; place-items: center; flex: none; width: 18px; height: 18px; margin-right: 8px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 11px; font-weight: 600; }
.point-number.light { background: var(--hairline); color: var(--ink-2); }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px; border-radius: var(--radius-small); background: #f0f0ef; font-size: 12px; white-space: nowrap; }
.dot-ink { width: 7px; height: 7px; border-radius: 50%; background: var(--ink); }
.dot-ring { width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid var(--ink-3); }
.citance-badge {
  flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--ink);
  -webkit-mask: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='-6 -6 60 60' fill='white'><rect x='8.25' y='8.25' width='12' height='12' rx='1.5'/><rect x='27.75' y='27.75' width='12' height='12' rx='1.5'/><path d='M5.25 24 L23.25 24 A19.5 19.5 0 0 1 42.75 4.5 L42.75 24 L24.75 24 A19.5 19.5 0 0 1 5.25 43.5 Z'/></svg>");
  background-size: 100% 100%;
}
.citance-badge.small { width: 22px; height: 22px; }
.initials { display: inline-grid; place-items: center; flex: none; width: 26px; height: 26px; border-radius: 50%; background: #ececea; color: var(--ink-2); font-size: 10px; font-weight: 600; }
.initials.small { width: 22px; height: 22px; font-size: 9px; }
.insurer-mark { flex: none; width: 34px; height: 34px; border-radius: 6px; background: var(--ink) radial-gradient(circle, transparent 5px, #fff 5.5px, #fff 8.5px, transparent 9px); }
.insurer-mark.small { width: 24px; height: 24px; border-radius: 5px; background: var(--ink) radial-gradient(circle, transparent 3.5px, #fff 4px, #fff 6px, transparent 6.5px); }
.source { display: flex; align-items: baseline; gap: 6px; margin-top: 7px !important; padding: 6px 10px; border: 1px solid var(--hairline); border-radius: var(--radius-small); font-size: 12.5px; white-space: nowrap; }
.source b { font-weight: 500; }
.source i { color: var(--teal-ink); }
.source b { flex: none; }
.source i { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.source-icon {
  flex: none; align-self: center; width: 12px; height: 14px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 14' fill='none' stroke='%238c8c89' stroke-width='1.1' stroke-linejoin='round'><path d='M2 1h5.5L10 3.5V13H2z'/><path d='M4 6h4M4 8.5h4M4 11h2.5'/></svg>") center / contain no-repeat;
}

/* 01 · the letter */
.frag-letter { left: 0; top: 10px; width: 400px; padding: 20px 22px; }
.letter-head { display: flex; align-items: center; gap: 10px; font-size: 13px; line-height: 1.3; }
.letter-date { margin-left: auto; align-self: flex-start; }
.letter-meta { margin-top: 14px !important; font-size: 12px; color: var(--ink-3); }
.letter-subject { margin: 14px 0 10px !important; font-weight: 600; }
.letter-point { display: flex; margin-top: 8px !important; }
.letter-point .point-text > span { -webkit-box-decoration-break: clone; box-decoration-break: clone; background: linear-gradient(var(--ink), var(--ink)) left bottom / 0 1px no-repeat; transition: background-size 0.9s var(--ease-out); transition-delay: inherit; }
.how-scene.is-active .letter-point .point-text > span { background-size: 100% 1px; }
.letter-line { margin-top: 12px !important; color: var(--ink-2); }
.frag-assigned { right: 0; top: 230px; width: 250px; }
.point-row { display: flex; align-items: center; margin-top: 6px !important; }
.done { margin-top: 12px !important; color: var(--teal-ink); }
.done::before { content: "✓  "; }
.chip-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px !important; }

/* 02 · the evidence */
.frag-search { left: 0; top: 10px; display: flex; align-items: center; gap: 10px; width: 330px; padding: 12px 16px; }
.frag-time { margin-left: auto; }
.frag-evidence { left: 0; top: 78px; width: 360px; }
.source.is-key { border-color: var(--teal); background: #f3f7f7; }
.frag-quote { right: 0; top: 250px; width: 280px; background: #eef3f4; }
.quote-source { display: flex; align-items: center; gap: 6px; margin-bottom: 8px !important; font-size: 12px; }
.quote-source i { color: var(--teal-ink); }
.quote-text { padding-left: 10px; border-left: 2px solid var(--teal); }

/* 03 · the question and the answer, in the case's history: as in the product, each party has its
   own lane (Citance, the team, the physician); the case's line moves between them, dashed while
   it waits with someone, and draws itself down as the scene plays */
.frag-history { left: 0; right: 0; top: 8px; height: 392px; padding: 0; }
.history-lanes { position: absolute; left: 8px; top: 14px; width: 64px; height: 370px; overflow: visible; }
.history-lanes path { fill: none; stroke-linecap: round; }
.lane-faint { stroke: #ececea; stroke-width: 1; }
.lane-path { stroke: var(--ink); stroke-width: 1.6; stroke-dasharray: 1 1; stroke-dashoffset: 1; transition: stroke-dashoffset 0.3s ease; }
.lane-wait { stroke: var(--ink); stroke-width: 1.6; stroke-dasharray: 3 4; opacity: 0; transition: opacity 0.3s ease; }
.lane-dot, .lane-diamond { fill: var(--ink); opacity: 0; transition: opacity 0.3s ease; }
.how-scene.is-active .lane-path { stroke-dashoffset: 0; transition: stroke-dashoffset 1.1s var(--ease-out) 0.3s; }
.how-scene.is-active .lane-path.second { transition-delay: 1.15s; }
.how-scene.is-active .lane-wait { opacity: 1; transition: opacity 0.4s ease 0.85s; }
.how-scene.is-active .lane-wait.second { transition-delay: 1.75s; }
.how-scene.is-active .lane-dot, .how-scene.is-active .lane-diamond { opacity: 1; transition: opacity 0.4s ease 0.4s; }
.how-scene.is-active .lane-diamond.end { transition-delay: 1.9s; }
.history-entry, .history-wait, .history-plain { position: absolute; left: 86px; right: 20px; }
.history-entry { display: flex; gap: 12px; }
.history-entry p + p { margin-top: 3px !important; }
.history-time { margin-left: 8px; }
.history-wait { color: var(--ink-3); }
.history-plain b { font-weight: 600; }

/* 04 · the statement */
.frag-answer { left: 0; top: 10px; width: 350px; padding: 18px 20px; }
.answer-to { padding-bottom: 12px; border-bottom: 1px solid var(--hairline); line-height: 1.35; }
.answer-title { margin: 14px 0 10px !important; font-weight: 600; }
.answer-sentence { display: flex; gap: 10px; margin-top: 10px !important; color: var(--ink-2); }
.sentence-number { display: inline-grid; place-items: center; flex: none; width: 18px; height: 18px; border-radius: 50%; background: #ececea; font-size: 11px; color: var(--ink-2); }
.answer-actions { position: relative; display: grid; margin-top: 18px; }
.answer-actions > span { grid-area: 1 / 1; justify-self: start; align-self: start; }
/* «Freigeben», the product's primary button. It stays a while; a pointer comes to it and presses
   it, the label turns to «Freigegeben» with a tick, and only then the status line takes its place.
   Timeline from the scene's start: in 1.3 s, pointer 2.3–3.1 s, press 3.3 s, out 4.5 s, status 5 s. */
.release {
  display: inline-flex; align-items: center; height: 34px; padding: 0 14px; border-radius: var(--radius-button);
  background: var(--ink); color: #fff; font-weight: 500; font-size: 13px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  opacity: 0;
}
.release-text { display: grid; }
.release-label, .release-done { grid-area: 1 / 1; transition: opacity 0.25s ease; }
.release-done { opacity: 0; }
.release-tick { width: 0; height: 16px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 14; stroke-dashoffset: 14; transition: width 0.3s var(--ease-out), margin 0.3s var(--ease-out); }
.how-scene.is-active .release { animation: release-in 0.6s var(--ease-out) 1.3s both, release-press 0.35s ease 3.3s, release-out 0.5s ease 4.5s forwards; }
.how-scene.is-active .release-label { opacity: 0; transition-delay: 3.4s; }
.how-scene.is-active .release-done { opacity: 1; transition-delay: 3.5s; }
.how-scene.is-active .release-tick { width: 16px; margin-right: 6px; stroke-dashoffset: 0; transition: width 0.3s var(--ease-out) 3.4s, margin 0.3s var(--ease-out) 3.4s, stroke-dashoffset 0.4s ease 3.55s; }
@keyframes release-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes release-press { 0%, 100% { scale: 1; } 40% { scale: 0.95; } }
@keyframes release-out { from { opacity: 1; } to { opacity: 0; } }
.release-cursor { position: absolute; left: 46px; top: 20px; width: 18px; height: 18px; fill: #fff; stroke: var(--ink); stroke-width: 1.3; stroke-linejoin: round; opacity: 0; pointer-events: none; }
.how-scene.is-active .release-cursor { animation: cursor-to-release 2.6s var(--ease-soft) 2.3s both; }
@keyframes cursor-to-release {
  0% { opacity: 0; transform: translate(150px, 40px); }
  15% { opacity: 1; }
  31% { transform: translate(0, 0); }
  38% { transform: translate(0, 0) scale(0.88); }
  46% { transform: translate(0, 0) scale(1); }
  80% { opacity: 1; transform: translate(10px, 14px); }
  100% { opacity: 0; transform: translate(10px, 14px); }
}
/* after release: the product's quiet status line, no button */
.sent { display: flex; align-items: flex-start; gap: 10px; padding: 2px 0 !important; font-weight: 400 !important; line-height: 1.4; }
.sent b { font-weight: 500; }
.sent .dot-ring { margin-top: 5px; }
.frag-sources { right: 0; top: 230px; width: 250px; }
.frag-sources .frag-title { display: flex; align-items: center; }
.contributors { display: flex; gap: 4px; margin-top: 12px !important; }
.contributors img { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; }

/* 05 · the case comes back */
.frag-status { left: 0; top: 10px; display: flex; flex-wrap: wrap; gap: 6px; padding: 12px 14px; }
.frag-return { left: 0; top: 82px; width: 360px; display: grid; gap: 14px; }
.return-entry { display: flex; gap: 12px; }
.frag-row { left: 40px; right: 0; top: 300px; display: grid; grid-template-columns: 90px 1fr auto; align-items: center; gap: 14px; }
.row-due { line-height: 1.35; }
.round-tag { display: inline-block; margin-left: 4px; padding: 1px 7px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 11px; }
.row-who { display: flex; align-items: center; gap: 8px; line-height: 1.35; }
.row-who img { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; }

/* ---------- Vertrauen: type, thin lines and line icons only, so nothing competes with the stage above ---------- */
.trust-title { max-width: 14em; margin: 0; font-size: clamp(32px, 3.8vw, 50px); font-weight: 450; line-height: 1.08; letter-spacing: -0.032em; }
.trust-lead { max-width: 32em; margin: 18px 0 0; font-size: 18px; line-height: 1.5; color: var(--ink-2); }
/* seal-like line icons: thin strokes, a few filled parts, and text knocked out of a filled pill */
.seal { flex: none; width: 44px; height: 44px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.seal .fill { fill: currentColor; stroke: none; }
.seal .knock { fill: var(--ground); stroke: none; font: 700 10px var(--font); letter-spacing: 0.04em; }

/* intro on the left, the statements between hairlines on the right (Harvey-style) */
.trust-a { padding-top: clamp(120px, 18vh, 200px); padding-bottom: clamp(120px, 18vh, 200px); }
.trust-a-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.trust-button {
  display: inline-flex; align-items: center; gap: 8px; height: 36px; margin-top: 28px; padding: 0 14px;
  border: 1px solid var(--ink); border-radius: var(--radius-small); font-size: 14px; font-weight: 500; text-decoration: none;
  transition: background-color 0.25s ease, color 0.25s ease;
}
.trust-button span { transition: transform 0.3s var(--ease-out); }
.trust-button:hover { background: var(--ink); color: #fff; }
.trust-button:hover span { transform: translateX(3px); }
.trust-a-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--outline); }
.trust-a-list li { border-bottom: 1px solid var(--outline); }
.trust-a-list a { display: flex; align-items: center; gap: 22px; padding: 22px 4px; text-decoration: none; }
.row-text { display: grid; gap: 3px; flex: 1; }
.row-text b { font-size: 18px; font-weight: 500; }
.row-text span { font-size: 14.5px; line-height: 1.45; color: var(--ink-2); }
.row-more { flex: none; font-size: 14px; color: var(--ink-3); transition: color 0.3s ease; }
.row-more span { display: inline-block; transition: transform 0.3s var(--ease-out); }
.trust-a-list a:hover .row-more { color: var(--ink); }
.trust-a-list a:hover .row-more span { transform: translateX(3px); }

/* placeholder for the next round */
.next-round { padding: 64px var(--gutter) 96px; text-align: center; color: var(--ink-3); font-size: 15px; }

/* ---------- Closing block: glass, links, the lockup across the full width ---------- */
/* The glass card holds the links and the demo invitation, over its own pixel horizon (dots.js);
   below it the lockup stands large and black on the page's ground. */
.closing { margin: 0 12px 12px; }
.closing-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-bottom: clamp(120px, 14vw, 180px);
  border-radius: var(--radius-large);
  background: url("/assets/teal-glass.webp") center / cover, #3e5c62;
  color: #fff;
}
.closing-dots { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.closing-scrim { background: linear-gradient(180deg, rgba(17, 18, 13, 0.3), rgba(17, 18, 13, 0.12) 60%, rgba(17, 18, 13, 0.2)); }
.closing-top {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 48px;
  padding: clamp(32px, 5vw, 56px) clamp(20px, 3vw, 40px) 0;
}
.closing-links ul { margin: 0 0 20px; padding: 0; list-style: none; }
.closing-links a {
  display: inline-block;
  font-size: clamp(24px, 2.6vw, 34px);
  line-height: 1.25;
  letter-spacing: -0.02em;
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) left 92% / 0 1px no-repeat;
  transition: background-size 0.45s var(--ease-soft);
}
.closing-links a:hover { background-size: 100% 1px; }
.closing-copyright { margin: 8px 0 0; font-size: 13px; color: rgba(255, 255, 255, 0.72); }
.closing-cta { max-width: 360px; padding-top: 6px; }
.closing-cta-title { margin: 0; font-size: 22px; font-weight: 500; letter-spacing: -0.01em; }
.closing-cta-text { margin: 6px 0 18px; font-size: 15px; line-height: 1.5; color: rgba(255, 255, 255, 0.82); }
.button-paper { background: var(--paper); color: var(--ink); }
.button-paper:hover { background: var(--frost); }

/* The lockup fills the width and sits on the bottom edge; scrolling raises its parts in turn (closing.js). */
.closing-lockup {
  position: relative;
  color: var(--ink);
  padding: clamp(40px, 8vw, 120px) clamp(20px, 3vw, 40px) clamp(16px, 2.4vw, 32px);
  overflow: hidden;
}
.closing-lockup svg { width: 100%; height: auto; overflow: visible; }
/* Under the cursor the letters dissolve into pixels (lockup-dots.js): a soft round hole is cut
   out of the solid logo and the squares are drawn there on the canvas instead. */
.closing-lockup svg {
  -webkit-mask-image: radial-gradient(circle var(--hole-radius, 0px) at var(--hole-x, 0px) var(--hole-y, 0px), transparent 55%, #000 100%);
  mask-image: radial-gradient(circle var(--hole-radius, 0px) at var(--hole-x, 0px) var(--hole-y, 0px), transparent 55%, #000 100%);
}
.lockup-dots { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.closing-lockup .lockup-part {
  transform: translateY(140%);
  transform-box: fill-box;
  opacity: 0;
  transition: transform 0.8s var(--ease-soft), opacity 0.5s ease;
}
.closing-lockup .lockup-part.is-in { transform: none; opacity: 1; }

/* ---------- Motion: the hero's arrival, its exit on scroll, and parts rising in (motion.js) ----------
   One language for the whole page: the --ease-out curve, movement, fading and a little blur.
   Everything here only applies with .has-motion, which the page head leaves off for visitors
   who asked for less motion. */
.hero-title .arrive { display: inline-block; }
.has-motion .arrive { animation: arrive 1s var(--ease-out) var(--arrive-at, 0s) both; }
.has-motion .arrive-from-below { animation-name: arrive-from-below; animation-duration: 1.2s; }
@keyframes arrive { from { opacity: 0; transform: translateY(14px); filter: blur(6px); } }
@keyframes arrive-from-below { from { opacity: 0; transform: translateY(56px); } }

/* leaving the hero: the text drifts down and fades, the card settles back a little */
.has-motion .hero-card { scale: calc(1 - var(--hero-scroll, 0) * 0.035); transform-origin: 50% 0; }
.has-motion .hero-copy { translate: 0 calc(var(--hero-scroll, 0) * 90px); opacity: calc(1 - var(--hero-scroll, 0) * 1.4); }

/* rising in, once, as a part reaches the screen */
.has-motion [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease-out) var(--reveal-delay, 0s), transform 1s var(--ease-out) var(--reveal-delay, 0s);
}
.has-motion .problem[data-reveal] {
  transition: opacity 0.8s var(--ease-out) var(--reveal-delay, 0s), transform 1s var(--ease-out) var(--reveal-delay, 0s), box-shadow 0.4s var(--ease-soft);
}
.has-motion [data-reveal].is-revealed { opacity: 1; transform: none; }

/* drawings move only while their card is on screen */
.has-motion .problem:not(.is-in-view) .sketch, .has-motion .problem:not(.is-in-view) .sketch * { animation-play-state: paused; }

/* ---------- The ground: light, and deep teal from Vertrauen to the end of the page (ground.js) ----------
   No edge: the whole page fades. Only what stands on the page itself changes; cards and the product
   keep their light; the menu's fold-down turns dark with the header. */
:root { --deep: #1d3a40; --on-deep: #eef3f3; --on-deep-2: rgba(226, 236, 237, 0.7); --on-deep-3: rgba(226, 236, 237, 0.5); }
body, .site-header, .header-cta, .band-label, .band-track li, .problems-lead, .logo, .header-logo img {
  transition: background-color 0.7s ease, color 0.7s ease, filter 0.7s ease, opacity 0.7s ease;
}
.problem { color: var(--ink); }
.ground-dark body { background: var(--deep); color: var(--on-deep); }
.ground-dark .site-header { background: rgba(29, 58, 64, 0.82); }
.ground-dark .header-logo img { filter: brightness(0) invert(1); }
.ground-dark .nav-trigger:hover, .ground-dark .nav-link:hover, .ground-dark .nav-trigger[aria-expanded="true"] { color: var(--on-deep-2); }
.ground-dark .header-cta { background: #fff; color: var(--ink); }
.ground-dark .menu-panel { background: rgba(29, 58, 64, 0.97); color: var(--on-deep); }
.ground-dark .menu-link:hover { background: rgba(226, 236, 237, 0.08); }
.ground-dark .menu-link-desc { color: var(--on-deep-2); }
.ground-dark .menu-scrim { background: rgba(29, 58, 64, 0.3); }
.ground-dark .header-cta:hover { background: var(--frost); }
.ground-dark .band-label { color: var(--on-deep-3); }
.ground-dark .band-track li { color: var(--on-deep-2); }
.ground-dark .logo { filter: brightness(0) invert(1); opacity: 0.75; }
.ground-dark .problems-lead { color: var(--on-deep-2); }

/* Vertrauen on deep teal */
.trust-lead, .row-text span, .row-more, .trust-a-list, .trust-a-list li, .trust-button, .seal .knock { transition: color 0.7s ease, border-color 0.7s ease, fill 0.7s ease, background-color 0.25s ease; }
.ground-dark .trust-lead, .ground-dark .row-text span { color: var(--on-deep-2); }
.ground-dark .row-more { color: var(--on-deep-3); }
.ground-dark .trust-a-list a:hover .row-more { color: var(--on-deep); }
.ground-dark .trust-a-list, .ground-dark .trust-a-list li { border-color: rgba(226, 236, 237, 0.2); }
.ground-dark .trust-button { border-color: var(--on-deep); }
.ground-dark .trust-button:hover { background: var(--on-deep); color: var(--deep); }
.ground-dark .seal .knock { fill: var(--deep); }
/* the ground stays dark from Vertrauen to the end, so the footer's lockup turns light */
.next-round, .closing-lockup { transition: color 0.7s ease; }
.ground-dark .next-round { color: var(--on-deep-3); }
.ground-dark .closing-lockup { color: var(--on-deep); }

/* ---------- 7. Modelle: on the dark ground, after Vertrauen ---------- */
.models { padding: clamp(40px, 8vh, 96px) 0 clamp(96px, 14vh, 160px); color: var(--on-deep); }
.models-intro { text-align: center; }
.models-title { margin: 0; font-size: clamp(32px, 3.8vw, 50px); font-weight: 450; line-height: 1.08; letter-spacing: -0.032em; }
.models-lead { max-width: 34em; margin: 18px auto 0; font-size: 18px; line-height: 1.5; color: var(--on-deep-2); }

/* the cover flow: every card sits centred at the bottom of the stage; models.js moves and scales it */
.model-flow { margin-top: clamp(48px, 7vh, 72px); overflow: hidden; outline: none; }
.model-track { --card-width: clamp(250px, 26vw, 310px); position: relative; height: calc(var(--card-width) * 1.3); margin: 0; padding: 0; list-style: none; }
.model-card {
  position: absolute;
  left: 50%;
  bottom: 0;
  display: flex;
  flex-direction: column;
  width: var(--card-width);
  height: calc(var(--card-width) * 1.3);
  padding: 22px;
  border: 1px solid rgba(226, 236, 237, 0.14);
  border-radius: var(--radius-large);
  background: rgba(226, 236, 237, 0.06);
  transform-origin: 50% 100%;
  transition: transform 0.55s cubic-bezier(0.45, 0, 0.3, 1), opacity 0.55s cubic-bezier(0.45, 0, 0.3, 1), border-color 0.3s ease;
  cursor: pointer;
  user-select: none;
}
.model-card.is-active { cursor: default; }
.model-card:not(.is-active):hover { border-color: rgba(226, 236, 237, 0.3); }
.model-top { display: flex; justify-content: flex-end; gap: 8px; }
.model-chip { padding: 4px 10px; border: 1px solid rgba(226, 236, 237, 0.22); border-radius: 999px; font-size: 12.5px; color: var(--on-deep-2); white-space: nowrap; }
.model-chip-status { border-color: transparent; background: rgba(226, 236, 237, 0.1); color: var(--on-deep); }
.model-body { margin-top: auto; }
.model-name { margin: 0; font-size: 28px; font-weight: 450; line-height: 1.1; letter-spacing: -0.02em; }
.model-maker { margin: 6px 0 0; font-size: 14.5px; color: var(--on-deep-2); }
.model-desc { margin: 12px 0 0; font-size: 14.5px; line-height: 1.5; color: var(--on-deep-2); }
.model-specs { margin: 20px 0 0; padding: 0; }
.model-specs div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid rgba(226, 236, 237, 0.14); font-size: 13.5px; }
.model-specs dt { color: var(--on-deep-3); }
.model-specs dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
/* Citance v1: the mark on the hero's teal satin, so it stands apart from the models it chooses between */
.model-card-citance {
  border-color: rgba(238, 243, 243, 0.28);
  background: linear-gradient(180deg, rgba(20, 40, 44, 0) 35%, rgba(20, 40, 44, 0.55)), url("/assets/teal-satin.webp") center / cover;
}
.model-mark { width: 30px; height: 30px; fill: var(--on-deep); }
.model-card-citance .model-desc { color: rgba(238, 243, 243, 0.82); }
.model-card-citance .model-specs div { border-top-color: rgba(238, 243, 243, 0.22); }
.model-card-citance .model-specs dt { color: rgba(238, 243, 243, 0.6); }

.model-controls { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 28px; }
.model-arrow { display: grid; place-items: center; width: 38px; height: 38px; padding: 0; border: 1px solid rgba(226, 236, 237, 0.3); border-radius: 50%; background: none; color: var(--on-deep); cursor: pointer; transition: background-color 0.25s ease, color 0.25s ease; }
.model-arrow:hover { background: var(--on-deep); color: var(--deep); }
.model-arrow svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.model-progress { position: relative; width: 96px; height: 2px; border-radius: 2px; background: rgba(226, 236, 237, 0.18); overflow: hidden; }
.model-progress-bar { position: absolute; inset: 0 auto 0 0; background: var(--on-deep); transition: width 0.55s cubic-bezier(0.45, 0, 0.3, 1); }
.model-count { min-width: 3.5em; font-size: 13px; color: var(--on-deep-3); font-variant-numeric: tabular-nums; }

/* the two places Citance runs, Harvey-style: the card under the cursor widens and its fragment rises */
.deploy { display: flex; gap: 20px; margin-top: clamp(80px, 12vh, 128px); }
.deploy-card {
  position: relative;
  flex: 1 1 0;
  min-height: 540px;
  overflow: hidden;
  border: 1px solid rgba(226, 236, 237, 0.12);
  border-radius: var(--radius-large);
  color: var(--on-deep);
  text-decoration: none;
  transition: flex-grow 0.7s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.4s ease;
}
/* the hero's teal satin, darkened towards the text; each card shows another part of it, and it drifts on hover */
.deploy-card::before {
  content: "";
  position: absolute;
  inset: -6%;
  background: linear-gradient(160deg, rgba(20, 40, 44, 0.9) 18%, rgba(20, 40, 44, 0.4) 55%, rgba(20, 40, 44, 0.05) 100%), url("/assets/teal-satin.webp") var(--satin-at, 20% 60%) / cover;
  transition: transform 1.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.deploy-card + .deploy-card { --satin-at: 85% 30%; }
.deploy:hover .deploy-card:hover { flex-grow: 1.3; border-color: rgba(226, 236, 237, 0.26); }
.deploy-card:hover::before { transform: scale(1.06) translate(-2%, 1%); }
.deploy-copy { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; max-width: 30em; padding: clamp(28px, 3.6vw, 48px); }
.deploy-title { font-size: clamp(28px, 2.8vw, 40px); font-weight: 450; letter-spacing: -0.025em; line-height: 1.1; }
.deploy-text { font-size: 17px; line-height: 1.5; color: var(--on-deep-2); }
.deploy-button { display: inline-flex; align-items: center; gap: 8px; height: 36px; margin-top: 8px; padding: 0 16px; border: 1px solid var(--on-deep); border-radius: 6px; font-size: 14.5px; transition: background-color 0.25s ease, color 0.25s ease; }
.deploy-button span { transition: transform 0.3s var(--ease-out); }
.deploy-card:hover .deploy-button { background: var(--on-deep); color: var(--deep); }
.deploy-card:hover .deploy-button span { transform: translateX(3px); }
/* a fragment of the product: its settings, with the card's own way of running switched on */
.deploy-frag {
  position: absolute;
  left: clamp(28px, 3.6vw, 48px);
  bottom: -24px;
  display: flex;
  flex-direction: column;
  width: min(440px, calc(100% - clamp(28px, 3.6vw, 48px) + 24px));
  overflow: hidden;
  border-radius: 10px 10px 0 0;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 30px 70px rgba(8, 20, 22, 0.45);
  transform: translateY(16px);
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.deploy-card:hover .deploy-frag { transform: translateY(0); }
.win-bar { display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 14px; border-bottom: 1px solid var(--hairline); background: #fafafa; }
.win-mark { width: 14px; height: 14px; fill: var(--ink); }
.win-crumb { font-size: 12px; color: var(--ink-2); }
.win-crumb span { margin: 0 4px; color: var(--outline); }
.win-body { display: flex; flex-direction: column; padding: 16px 18px 44px; }
.win-title { font-size: 15px; font-weight: 550; }
.win-segs { display: flex; gap: 2px; margin: 12px 0 8px; padding: 2px; border-radius: 8px; background: #f0f0ef; }
.win-seg { flex: 1; padding: 6px 8px; border-radius: 6px; font-size: 12px; text-align: center; color: var(--ink-2); }
.win-seg.is-on { background: var(--paper); color: var(--ink); font-weight: 550; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); }
.win-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid var(--hairline); font-size: 12.5px; }
.win-row:first-of-type { border-top: 0; }
.win-label { color: var(--ink-2); }
.win-pill { padding: 3px 9px; border-radius: 999px; background: #e3eced; color: var(--teal-ink); font-weight: 550; }

/* ---------- Sicherheit page: dark from the start, type and lines only ---------- */
.sec-hero { padding-top: clamp(150px, 24vh, 240px); padding-bottom: clamp(56px, 10vh, 112px); text-align: center; }
.sec-title { margin: 0 auto; font-size: clamp(34px, 4vw, 56px); font-weight: 450; line-height: 1.1; letter-spacing: -0.03em; }
.sec-title span { display: block; color: var(--ink-3); }
.sec-lead { max-width: 30em; margin: 28px auto 0; font-size: 18px; line-height: 1.55; color: var(--ink-2); }
.sketch-walls .led { animation: led-blink 1.6s steps(1) infinite; }
.sec-hero-sketch { max-width: 520px; margin: clamp(32px, 6vh, 64px) auto 0; }
.sec-group { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 96px); padding: clamp(56px, 9vh, 96px) 0; }
.sec-group-head .seal { width: 48px; height: 48px; }
.sec-group-title { margin: 28px 0 0; font-size: clamp(28px, 2.8vw, 40px); font-weight: 450; line-height: 1.1; letter-spacing: -0.025em; }
.sec-list { display: grid; grid-template-columns: 1fr 1fr; gap: 56px clamp(32px, 4vw, 64px); margin: 0; padding: 0; list-style: none; align-content: start; }
.sec-list li { display: grid; gap: 12px; align-content: start; }
.sec-list b { font-size: 16px; font-weight: 550; line-height: 1.4; }
.sec-list span { font-size: 15.5px; line-height: 1.6; color: var(--ink-2); }
.sec-ask { padding-top: clamp(96px, 16vh, 180px); padding-bottom: clamp(120px, 18vh, 200px); }
.sec-ask-title { max-width: 18em; margin: 0; font-size: clamp(34px, 4.4vw, 60px); font-weight: 450; line-height: 1.06; letter-spacing: -0.034em; }
.sec-ask-body { max-width: 30em; margin: clamp(36px, 6vh, 56px) 0 0 clamp(0px, 22vw, 320px); }
.sec-ask-body p { margin: 0 0 28px; font-size: 18px; line-height: 1.5; color: var(--ink-2); }

/* ---------- Über uns page: a mission on paper, why and what, the values as a card stack ---------- */
/* The mission fills the first screen; torn scraps of our materials peek in from both sides
   (tools/paper_scraps.py draws them) and drift a little against the scroll (card-swap.js). */
.about-mission { position: relative; display: grid; align-items: center; min-height: min(900px, calc(100svh - 64px)); overflow: hidden; }
.scraps { position: absolute; top: 50%; height: auto; margin-top: calc(var(--scrap-height) / -2); pointer-events: none; will-change: transform; }
.scraps-left { left: 0; width: min(24vw, 340px); --scrap-height: min(72vw, 1020px); }
.scraps-right { right: 0; width: min(19vw, 270px); --scrap-height: min(45.6vw, 648px); }
.scraps-right { filter: drop-shadow(0 10px 24px rgba(20, 40, 44, 0.1)); }
.scrap-letter { font: 400 15px var(--font); fill: var(--ink-2); letter-spacing: -0.005em; }
.about-mission-text { position: relative; padding: 0 clamp(24px, 21vw, 380px); }
.about-title { max-width: 17em; margin: 0; font-size: clamp(30px, 3.9vw, 58px); font-weight: 400; line-height: 1.12; letter-spacing: -0.03em; text-wrap: pretty; }
.about-title + .about-title { margin-top: 0.6em; color: var(--ink-2); }
.about-why { padding-top: clamp(48px, 8vh, 96px); padding-bottom: clamp(48px, 8vh, 96px); }
.about-why-row { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 96px); padding: clamp(32px, 5vh, 56px) 0; border-top: 1px solid var(--hairline); }
.about-why-title { margin: 0; font-size: clamp(28px, 2.8vw, 40px); font-weight: 450; line-height: 1.1; letter-spacing: -0.025em; }
.about-why-row p { max-width: 26em; margin: 0; font-size: clamp(20px, 1.9vw, 26px); line-height: 1.4; letter-spacing: -0.012em; color: var(--ink-2); }

/* The values: titles on the left follow the card in front; the stack on the right. */
.about-values { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: clamp(32px, 6vw, 96px); padding-top: clamp(64px, 10vh, 120px); padding-bottom: clamp(32px, 6vh, 64px); }
.about-values-title { margin: 0 0 clamp(28px, 4vh, 44px); font-size: clamp(34px, 4.4vw, 60px); font-weight: 450; line-height: 1.06; letter-spacing: -0.034em; }
.about-value-titles { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--hairline); }
.about-value-titles li { border-bottom: 1px solid var(--hairline); }
.about-value-titles button { display: flex; align-items: baseline; gap: 18px; width: 100%; padding: 18px 0; border: 0; background: none; font: 450 clamp(20px, 1.9vw, 26px) var(--font); letter-spacing: -0.015em; color: var(--ink-3); text-align: left; cursor: pointer; transition: color 0.4s ease; }
.about-value-titles button span { font-size: 14px; letter-spacing: 0; }
.about-value-titles button:hover, .about-value-titles button.is-front { color: var(--ink); }
.about-value-titles button.is-front span { color: var(--teal-ink); }

/* Card swap (after Bencho, MIT). Each card's slot arrives as --t. Flat stage, so paint order is
   the z-index: a card sent back goes behind at once. No shadows: depth is the stack and a hairline
   edge. Cards are our surfaces: satin, deep teal printed with pixels, frost. */
.csw { position: relative; width: 460px; height: 560px; user-select: none; -webkit-user-select: none; outline: none; }
.csw:focus-visible { box-shadow: 0 0 0 2px var(--teal); border-radius: var(--radius-large); }
.csw-stage { position: absolute; left: 24px; bottom: 32px; width: 330px; height: 420px; perspective: 1100px; perspective-origin: 200px 160px; }
.csw-card {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  padding: 28px;
  border-radius: 20px;
  box-shadow: 0 0 0 1px rgba(20, 20, 20, 0.1);
  transform: var(--t);
  transition: transform 600ms cubic-bezier(0.22, 1, 0.36, 1);
  backface-visibility: hidden;
}
.csw-card[data-front] { cursor: grab; touch-action: none; }
.csw-card[data-front]:active { cursor: grabbing; }
.csw-num { font-size: 14px; opacity: 0.7; }
.csw-card h3 { margin: auto 0 12px; font-size: 28px; font-weight: 450; line-height: 1.1; letter-spacing: -0.025em; }
.csw-card p { margin: 0; font-size: 16px; line-height: 1.5; }
.csw-satin { background: linear-gradient(180deg, rgba(20, 40, 44, 0) 30%, rgba(20, 40, 44, 0.5)), url("/assets/teal-satin.webp") 30% 50% / cover; color: #fff; }
.csw-deep { background: radial-gradient(circle at 2.5px 2.5px, rgba(226, 236, 237, 0.13) 1.5px, transparent 1.6px) 0 0 / 7px 7px, var(--deep); color: var(--on-deep); }
.csw-frost { background: radial-gradient(circle at 2.5px 2.5px, rgba(69, 105, 113, 0.14) 1.5px, transparent 1.6px) 0 0 / 7px 7px, var(--frost); color: var(--ink); }

/* ---------- Demo page: the message on the light half, the form on a card over the satin ---------- */
.demo { display: grid; grid-template-columns: 1fr 1fr; min-height: 100vh; min-height: 100dvh; }
.demo-intro { display: flex; flex-direction: column; padding: 28px clamp(24px, 4vw, 48px); }
.demo-logo { align-self: flex-start; }
.demo-copy { margin: auto 0; padding: 48px clamp(0px, 4vw, 96px); }
.demo-title { max-width: 9em; margin: 0; font-size: clamp(44px, 5.6vw, 84px); font-weight: 450; line-height: 1.02; letter-spacing: -0.042em; }
.demo-lead { max-width: 25em; margin: 32px 0 0; font-size: 19px; line-height: 1.5; color: var(--ink-2); }
.demo-foot { display: flex; justify-content: space-between; gap: 16px; margin: 0; font-size: 13.5px; color: var(--ink-3); }
.demo-foot a { color: var(--ink-2); text-decoration: none; }
.demo-foot a:hover { color: var(--ink); }
.demo-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: clamp(24px, 4vw, 56px);
  background: linear-gradient(180deg, rgba(20, 40, 44, 0.35), rgba(20, 40, 44, 0.6)), url("/assets/teal-satin.webp") 60% 40% / cover, var(--deep);
}
.demo-form { width: 100%; max-width: 600px; padding: clamp(24px, 3vw, 44px); border-radius: var(--radius-large); background: var(--paper); }
.demo-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 20px; }
.demo-field { display: grid; gap: 8px; align-content: start; font-size: 14.5px; font-weight: 500; }
.demo-field i { font-style: normal; color: var(--teal-ink); }
.demo-field-wide { grid-column: 1 / -1; }
.demo-field input:not([type=radio]), .demo-field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--outline);
  border-radius: var(--radius-button);
  background: var(--paper);
  font: 400 15.5px var(--font);
  color: var(--ink);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.demo-field textarea { resize: vertical; min-height: 88px; }
.demo-field ::placeholder { color: var(--ink-3); }
.demo-field input:not([type=radio]):hover, .demo-field textarea:hover { border-color: var(--outline-hover); }
.demo-field input:not([type=radio]):focus, .demo-field textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(88, 123, 130, 0.18); }
.demo-field.is-invalid input:not([type=radio]), .demo-field.is-invalid .demo-chip span { border-color: #b4533d; }
/* The kind of organisation: chips instead of a dropdown, one choice */
fieldset.demo-field { margin: 0; padding: 0; border: 0; min-width: 0; }
fieldset.demo-field legend { padding: 0; margin-bottom: 8px; }
.demo-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.demo-chip { position: relative; cursor: pointer; }
.demo-field .demo-other { margin-top: 10px; animation: other-opens 0.35s var(--ease-out); }
@keyframes other-opens { from { opacity: 0; transform: translateY(-4px); } }
.demo-chip input { position: absolute; opacity: 0; pointer-events: none; }
.demo-chip span { display: inline-flex; align-items: center; height: 38px; padding: 0 15px; border: 1px solid var(--outline); border-radius: 999px; font-size: 14.5px; font-weight: 400; transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease; }
.demo-chip:hover span { border-color: var(--outline-hover); }
.demo-chip input:checked + span { border-color: var(--teal-ink); background: var(--teal-ink); color: #fff; }
.demo-chip input:focus-visible + span { box-shadow: 0 0 0 3px rgba(88, 123, 130, 0.25); }
.demo-note { font-size: 13px; font-weight: 400; color: #b4533d; }
.demo-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.demo-error { grid-column: 1 / -1; margin: 0; font-size: 14px; color: #b4533d; }
.demo-submit { grid-column: 1 / -1; height: 52px; margin-top: 4px; font-size: 15.5px; }
.demo-submit:disabled { opacity: 0.6; cursor: progress; }
.demo-fields[hidden], .demo-done[hidden] { display: none; }
.demo-done { display: grid; justify-items: start; gap: 12px; padding: 8px 0 16px; outline: none; }
/* After sending: the letter floats down into the in-tray, the field takes on colour, a tick appears */
.demo-sent { justify-self: stretch; margin: 0 0 8px; padding: 8% 10%; border-radius: var(--radius-large); box-shadow: 0 0 0 1px var(--hairline); }
.sketch-sent .piece { transition: transform 1.1s cubic-bezier(0.3, 0.7, 0.2, 1) 0.35s; }
.sketch-sent .sent-tick { opacity: 0; scale: 0.3; transition: opacity 0.3s ease 1.4s, scale 0.6s var(--ease-spring) 1.4s; }
.sketch-sent .sent-tick circle { fill: var(--teal-ink); stroke: var(--paper); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.sketch-sent .sent-tick path { fill: none; stroke: #fff; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.demo-done.is-landed .sketch-sent .piece { transform: translate(var(--settle-x), var(--settle-y)); }
.demo-done.is-landed .sketch-sent .drift { animation: none; }
.demo-done.is-landed .sketch-sent .fp { animation: none; fill: var(--tone-colour); transition-delay: 1.2s; }
.demo-done.is-landed .sketch-sent .sent-tick { opacity: 1; scale: 1; }
.demo-done h2 { margin: 8px 0 0; font-size: 28px; font-weight: 450; letter-spacing: -0.025em; }
.demo-done p { margin: 0; font-size: 16px; line-height: 1.5; color: var(--ink-2); }
.demo-done .trust-button { margin-top: 12px; }
.demo-privacy { max-width: 600px; margin: 0; font-size: 13.5px; color: rgba(255, 255, 255, 0.78); text-align: center; }
.demo-privacy a { color: #fff; }

/* ---------- Medium screens: the product window drops its sidebar ---------- */
@media (max-width: 1080px) {
  .app-window { grid-template-columns: 1fr; }
  .app-sidebar { display: none; }
  .app-main { margin: 0; border-radius: var(--radius-large) var(--radius-large) 0 0; }
}

/* ---------- Small screens ---------- */
@media (max-width: 860px) {
  .how-track { height: calc(100svh + 5 * 60svh); margin: 16px 0 0; }
  .how-layout { grid-template-columns: 1fr; grid-template-rows: auto auto auto; align-content: center; gap: 16px; height: 100svh; padding-top: 72px; }
  .how-stage { order: -1; height: 52svh; }
  .how-titles-window { height: auto; -webkit-mask-image: none; mask-image: none; }
  .how-titles { display: grid; transform: none; }
  .how-titles li { grid-area: 1 / 1; height: auto; }
  .how-title-item { font-size: 22px; pointer-events: none; }
  .how-title-item.is-near { opacity: 0; }
  .how-text { font-size: 16px; }
  :root { --gutter: 16px; }
  .header-bar { grid-template-columns: 1fr auto; }
  .header-nav, .header-cta { display: none; }
  .menu-toggle {
    display: grid;
    gap: 6px;
    justify-self: end;
    width: 40px;
    height: 40px;
    padding: 13px 10px;
    border: 0;
    background: none;
  }
  .menu-toggle span { display: block; height: 1.5px; background: currentColor; transition: transform 0.35s var(--ease-soft); }
  .menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
  .mobile-menu:not([hidden]) { display: flex; flex-direction: column; gap: 4px; padding: 8px 16px 20px; }
  .mobile-menu a:not(.button) { padding: 12px 0; border-bottom: 1px solid var(--hairline); text-decoration: none; font-size: 17px; }
  .mobile-menu .button { margin-top: 12px; }

  .hero { padding: 8px 8px 0; }
  .hero-card { min-height: 760px; }
  .hero-copy { padding-bottom: 40px; }
  .app-window { width: calc(100% - 24px); height: 360px; }
  .app-main { padding: 18px 16px 0; }
  .app-head { display: none; }
  .app-head, .app-row { grid-template-columns: 1fr auto; padding-left: 12px; padding-right: 12px; }
  .app-row > :nth-child(1), .app-row > :nth-child(4) { display: none; }
  .app-row > :nth-child(3) { grid-column: 1 / -1; grid-row: 2; margin-top: 4px; }
  .band-inner { flex-direction: column; align-items: stretch; gap: 14px; }
  .band-window { width: 100%; flex: none; }
  .closing { margin: 0 8px 8px; }
  .trust-a-grid { grid-template-columns: 1fr; }
  .row-more { display: none; }
  .closing-top { flex-direction: column; gap: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .band-window { overflow-x: auto; }
  .band-track[aria-hidden="true"] { display: none; }
}

@media (max-width: 860px) {
  .sec-group { grid-template-columns: 1fr; gap: 32px; }
  .sec-list { grid-template-columns: 1fr; gap: 36px; }
  .sec-ask-body { margin-left: 0; }
}
@media (max-width: 860px) {
  .deploy { flex-direction: column; }
  .deploy-card { min-height: 540px; }
  .deploy-frag { left: 20px; width: calc(100% - 40px); transform: none; }
  .model-track { --card-width: min(78vw, 300px); }
}

@media (max-width: 860px) {
  .about-mission { min-height: auto; padding: 120px 0 96px; }
  .scraps-left { width: 20vw; --scrap-height: 60vw; }
  .scraps-right { display: none; }
  .about-mission-text { padding: 0 16px 0 calc(16px + 19vw); }
  .about-why-row { grid-template-columns: 1fr; gap: 16px; }
  .about-values { grid-template-columns: 1fr; }
  .csw { width: 100%; max-width: 380px; height: 470px; margin: 0 auto; }
  .csw-stage { left: 8px; width: 270px; height: 350px; }
}

@media (max-width: 860px) {
  .demo { grid-template-columns: 1fr; }
  .demo-copy { padding: 48px 0 40px; }
  .demo-foot { display: none; }
  .demo-side { padding: 16px 8px 32px; }
  .demo-fields { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .problem { grid-template-columns: 1fr; gap: 16px; padding: 20px; }
  .problem .sketch { max-width: 300px; margin: 0 auto; }
}
