/* AI Design Thinking – site.css
   Immersive + bold: full-viewport chapters, one message and one large visual per screen,
   very large display type, a sticky product stage with scroll choreography, a marquee,
   one blue accent used on whole sections, two deep-navy "night" scenes.
   Manrope (self-hosted, OFL). Plain CSS, no build step, no external resources
   (CSP: default-src 'self'). */

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("/assets/fonts/manrope-latin-var.woff2") format("woff2");
}

/* ---------- Tokens ---------- */

:root {
  --bg: #ffffff;
  --bg-2: #f5f7fa;
  --surface: #ffffff;
  --surface-2: #f5f7fa;
  --line: rgba(15, 23, 42, 0.08);
  --line-2: rgba(15, 23, 42, 0.14);
  --fg: #0f172a;
  --muted: #475569;
  --muted-2: #64748b;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --accent-ink: #ffffff;
  --accent-text: #1d4ed8;
  --accent-soft: rgba(37, 99, 235, 0.1);
  --navy: #0b1b3a;
  --navy-2: #102650;
  --on-navy: #f1f5f9;
  --on-navy-muted: rgba(241, 245, 249, 0.68);
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 24px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 1px 2px rgba(15, 23, 42, 0.04), 0 24px 48px -12px rgba(15, 23, 42, 0.14);
  --shadow-xl: 0 40px 120px -20px rgba(2, 8, 30, 0.6);
  --radius: 16px;
  --radius-s: 10px;
  --wrap: 72rem;
  --wrap-wide: 100rem;
  --measure: 38rem;
  --nav-h: 4.5rem;
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --display: clamp(3rem, 1.6rem + 6vw, 7.6rem);
  --display-2: clamp(2.4rem, 1.4rem + 4.2vw, 5.6rem);
  --display-3: clamp(2rem, 1.3rem + 2.6vw, 3.8rem);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f172a;
    --bg-2: #131c31;
    --surface: #131c31;
    --surface-2: #1b2640;
    --line: rgba(255, 255, 255, 0.09);
    --line-2: rgba(255, 255, 255, 0.16);
    --fg: #f1f5f9;
    --muted: #a3b0c2;
    --muted-2: #8292a8;
    --accent: #3b82f6;
    --accent-hover: #60a5fa;
    --accent-ink: #ffffff;
    --accent-text: #93c5fd;
    --accent-soft: rgba(59, 130, 246, 0.18);
    --navy: #070f24;
    --navy-2: #0b1b3a;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 1px 2px rgba(0, 0, 0, 0.3), 0 24px 48px -12px rgba(0, 0, 0, 0.5);
    color-scheme: dark;
  }
}

/* ---------- Base ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-family: var(--font);
  font-size: 106.25%; /* 17px */
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
  background: var(--bg);
  color: var(--fg);
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--fg);
  overflow-x: clip;
  overflow-wrap: break-word;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ---------- Typography ---------- */

h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0 0 0.5em;
  text-wrap: balance;
  overflow-wrap: break-word;
}

h1 {
  font-size: var(--display-2);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.98;
  margin-bottom: 0.4em;
}

h2 {
  font-size: var(--display-3);
  letter-spacing: -0.035em;
  line-height: 1.02;
}

h3 {
  font-size: 1.2rem;
  letter-spacing: -0.015em;
}

h4 {
  font-size: 1.05rem;
}

p, ul, ol, dl, blockquote, figure {
  margin: 0 0 1.1em;
}

p:last-child,
ul:last-child,
ol:last-child,
dl:last-child {
  margin-bottom: 0;
}

a {
  color: var(--accent-text);
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--accent) 35%, transparent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition: color 160ms var(--ease), text-decoration-color 160ms var(--ease);
}

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

a:focus-visible,
button:focus-visible,
input:focus-visible + label,
label:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

strong {
  font-weight: 700;
}

small,
.small {
  font-size: 0.9rem;
}

.muted {
  color: var(--muted);
}

.lead {
  font-size: clamp(1.1rem, 1rem + 0.5vw, 1.4rem);
  line-height: 1.45;
  color: var(--muted);
  max-width: var(--measure);
  text-wrap: pretty;
  font-weight: 400;
}

.kicker {
  display: block;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin-bottom: 1rem;
}

.hl {
  color: var(--accent);
}

code {
  font-family: var(--mono);
  font-size: 0.9em;
  background: var(--surface-2);
  padding: 0.1em 0.4em;
  border-radius: 6px;
}

address {
  font-style: normal;
}

hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 3rem 0;
}

/* Prose */

.prose {
  max-width: var(--measure);
  text-wrap: pretty;
}

.prose h2 {
  font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.2rem);
  margin-top: 2.2em;
}

.prose h2:first-child,
.prose .kicker + h2 {
  margin-top: 0;
}

.prose h3 {
  margin-top: 1.8em;
}

.prose ul,
.prose ol {
  padding-left: 1.2em;
}

.prose li {
  margin-bottom: 0.4em;
}

.prose li::marker {
  color: var(--accent-text);
}

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

.prose p strong {
  color: var(--fg);
}

blockquote {
  border-left: 2px solid var(--accent);
  padding: 0.3em 0 0.3em 1.2em;
  font-size: 1.2rem;
  line-height: 1.4;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--fg);
}

blockquote p {
  margin: 0;
  color: var(--fg);
}

blockquote cite {
  display: block;
  margin-top: 0.6em;
  font-style: normal;
  font-weight: 400;
  font-size: 0.9rem;
  color: var(--muted);
  letter-spacing: 0;
}

/* ---------- Layout ---------- */

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 16px;
}

.wrap.wide {
  max-width: var(--wrap-wide);
}

@media (min-width: 48em) {
  .wrap {
    padding-inline: 32px;
  }
}

@media (min-width: 80em) {
  .wrap {
    padding-inline: 48px;
  }
}

main {
  flex: 1 0 auto;
}

.section {
  padding-block: clamp(4rem, 3rem + 5vw, 8rem);
}

.section.alt {
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section.alt + .section.alt {
  border-top: 0;
}

.section-head {
  max-width: 48rem;
  margin-bottom: clamp(2rem, 1.5rem + 2vw, 3.5rem);
}

.section-head h2 {
  margin-bottom: 0.4em;
}

.section-head p {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: var(--measure);
  text-wrap: pretty;
}

.section-head.split {
  max-width: none;
  display: grid;
  gap: 0.75rem 3rem;
  align-items: end;
}

@media (min-width: 56em) {
  .section-head.split {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  }

  .section-head.split h2 {
    margin-bottom: 0;
  }

  .section-head.split p {
    margin-bottom: 0.35rem;
  }
}

/* Page heads of inner pages: big display type, room for the fixed nav */

.page-head {
  padding-block: calc(var(--nav-h) + clamp(3rem, 2rem + 6vw, 8rem)) clamp(1rem, 2vw, 2rem);
  position: relative;
}

.page-head h1 {
  max-width: 16ch;
  font-size: var(--display);
}

.page-head .lead {
  margin-top: 1.5rem;
}

.page-head .actions {
  margin-top: 2rem;
}

/* ---------- Header / Nav (fixed, transparent over the hero) ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color 240ms var(--ease), border-color 240ms var(--ease), box-shadow 240ms var(--ease);
}

.site-header.is-scrolled,
.site-header:has(.nav-toggle:checked) {
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
  border-bottom-color: var(--line);
}

.site-header:has(.nav-toggle:checked) {
  background: var(--bg);
}

.nav-toggle:checked ~ .site-nav {
  background: var(--bg);
}

.nav-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  min-height: var(--nav-h);
  padding-block: 0.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--fg);
  font-weight: 800;
  letter-spacing: -0.03em;
  font-size: 1.05rem;
  white-space: nowrap;
}

.brand:hover {
  color: var(--fg);
}

.brand svg {
  width: 28px;
  height: 28px;
  flex: none;
}

.brand .mark-base {
  fill: var(--accent);
}

.brand .mark-dot {
  fill: var(--accent-ink);
}

.nav-toggle {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.menu-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 0.85rem;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  user-select: none;
  background: var(--surface);
  color: var(--fg);
}

.menu-btn .bars {
  position: relative;
  width: 16px;
  height: 10px;
}

.menu-btn .bars::before,
.menu-btn .bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 16px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 200ms var(--ease);
}

.menu-btn .bars::before {
  top: 0;
}

.menu-btn .bars::after {
  bottom: 0;
}

.nav-toggle:checked ~ .menu-btn .bars::before {
  transform: translateY(4px) rotate(45deg);
}

.nav-toggle:checked ~ .menu-btn .bars::after {
  transform: translateY(-4px) rotate(-45deg);
}

.nav-toggle:focus-visible ~ .menu-btn {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.site-nav {
  display: none;
  width: 100%;
  padding-block: 0.5rem 1rem;
}

.nav-toggle:checked ~ .site-nav {
  display: block;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.site-nav a {
  display: block;
  padding: 0.6rem 0.75rem;
  color: var(--fg);
  text-decoration: none;
  border-radius: 8px;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  transition: color 160ms var(--ease), background-color 160ms var(--ease);
}

.site-nav a:hover {
  color: var(--accent-text);
}

.site-nav a[aria-current="page"] {
  color: var(--accent-text);
}

.site-nav .nav-cta {
  margin-top: 0.75rem;
  margin-left: 0.75rem;
}

@media (min-width: 56em) {
  .menu-btn {
    display: none;
  }

  .site-nav {
    display: flex;
    width: auto;
    align-items: center;
    gap: 1rem;
    padding: 0;
  }

  .site-nav ul {
    flex-direction: row;
    gap: 0.1rem;
  }

  .site-nav a {
    padding: 0.4rem 0.75rem;
    font-size: 0.92rem;
    font-weight: 600;
    letter-spacing: 0;
    color: var(--muted);
  }

  .site-nav a:hover,
  .site-nav a[aria-current="page"] {
    color: var(--fg);
  }

  .site-nav a[aria-current="page"] {
    text-decoration: underline;
    text-decoration-color: var(--accent);
    text-decoration-thickness: 2px;
    text-underline-offset: 0.45em;
  }

  .site-nav .nav-cta {
    margin: 0 0 0 0.5rem;
  }
}

.site-nav a.button {
  color: var(--accent-ink);
  background: var(--accent);
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0;
  text-decoration: none;
}

.site-nav a.button:hover {
  color: var(--accent-ink);
  background: var(--accent-hover);
}

/* ---------- Buttons ---------- */

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 0.75rem;
  align-items: center;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.3rem;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.2;
  letter-spacing: -0.005em;
  border: 1px solid var(--accent);
  transition: background-color 160ms var(--ease), border-color 160ms var(--ease), color 160ms var(--ease), transform 160ms var(--ease);
}

.button:hover {
  color: var(--accent-ink);
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  transform: translateY(-1px);
}

.button.ghost {
  background: transparent;
  color: var(--fg);
  border-color: var(--line-2);
}

.button.ghost:hover {
  color: var(--fg);
  background: var(--surface-2);
  border-color: var(--fg);
}

.button.small {
  padding: 0.5rem 0.95rem;
  font-size: 0.88rem;
}

.button.lg {
  padding: 1rem 1.7rem;
  font-size: 1.02rem;
}

.button .arrow {
  transition: transform 200ms var(--ease);
}

.button:hover .arrow {
  transform: translateX(3px);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--accent-text);
}

.text-link::after {
  content: "→";
  transition: transform 200ms var(--ease);
}

.text-link:hover::after {
  transform: translateX(4px);
}

/* ---------- Hero (home, 100svh, video background, cut-off wordmark) ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  isolation: isolate;
}

.hero-inner {
  position: relative;
  z-index: 2;
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2.5rem;
  padding-top: calc(var(--nav-h) + 1.5rem);
  padding-bottom: clamp(5rem, 4rem + 8vh, 9rem);
}

.hero-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.25rem 2rem;
  margin: 0;
  padding-top: 0.9rem;
  border-top: 1px solid var(--line-2);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero h1 {
  margin: 0;
  font-size: var(--display);
  line-height: 0.92;
  letter-spacing: -0.05em;
  max-width: none;
  text-wrap: initial;
}

.hero h1 span {
  display: block;
}

.hero h1 .hl {
  display: inline;
}

.hero-bottom {
  display: grid;
  gap: 2rem;
  align-items: end;
}

.hero .lead {
  margin: 0 0 1.6rem;
  max-width: 28rem;
  color: var(--fg);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
}

.hero-meta li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.hero-meta li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}

@media (min-width: 64em) {
  .hero h1 .l2 {
    text-align: right;
    padding-left: 10vw;
  }

  .hero-bottom {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  }

  .hero-meta {
    justify-content: flex-end;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.4rem;
    text-align: right;
  }
}

/* The oversized wordmark, cut off at the bottom-right edge of the viewport */

.hero-wordmark {
  position: absolute;
  z-index: 1;
  right: -0.04em;
  bottom: -0.26em;
  margin: 0;
  font-size: clamp(9rem, 32vw, 36rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.06em;
  color: transparent;
  -webkit-text-stroke: 1.5px color-mix(in srgb, var(--accent) 45%, transparent);
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
}

@supports not (-webkit-text-stroke: 1px #000) {
  .hero-wordmark {
    color: color-mix(in srgb, var(--accent) 10%, transparent);
  }
}

.scroll-cue {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 1.4rem;
  width: 1px;
  height: 3rem;
  background: var(--line-2);
  overflow: hidden;
}

.scroll-cue span {
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform: translateY(-100%);
  animation: cue 2.2s var(--ease) infinite;
}

@keyframes cue {
  0% { transform: translateY(-100%); }
  60% { transform: translateY(100%); }
  100% { transform: translateY(100%); }
}

/* ---------- Video backgrounds (optional assets, see README) ---------- */

.has-video {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.video-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background: var(--bg);
}

.video-bg video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--bg);
}

.video-bg .overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 50% at 80% 20%, rgba(37, 99, 235, 0.14), transparent 70%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.78) 0%, rgba(255, 255, 255, 0.6) 55%, var(--bg) 100%),
    rgba(255, 255, 255, 0.4);
}

@media (prefers-color-scheme: dark) {
  .video-bg .overlay {
    background:
      radial-gradient(60% 50% at 80% 20%, rgba(59, 130, 246, 0.2), transparent 70%),
      linear-gradient(180deg, rgba(15, 23, 42, 0.7) 0%, rgba(15, 23, 42, 0.55) 55%, var(--bg) 100%),
      rgba(15, 23, 42, 0.45);
  }
}

.has-video > .wrap {
  position: relative;
  z-index: 2;
}

/* ---------- Marquee (products and offers) ---------- */

.marquee {
  overflow: hidden;
  background: var(--accent);
  color: #ffffff;
  padding-block: 1.1rem;
  border-block: 1px solid rgba(255, 255, 255, 0.15);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 48s linear infinite;
}

.marquee:hover .marquee-track {
  animation-play-state: paused;
}

.marquee ul {
  display: flex;
  flex: none;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.marquee li {
  display: flex;
  align-items: center;
  font-size: clamp(1.4rem, 1rem + 2vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  white-space: nowrap;
  padding-right: 2.4rem;
}

.marquee li::after {
  content: "";
  width: 0.45em;
  height: 0.45em;
  margin-left: 2.4rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Chapters (home) ---------- */

.chapter {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: clamp(5rem, 4rem + 6vh, 9rem);
}

.chapter > .wrap {
  position: relative;
  z-index: 2;
}

.chapter.intro {
  min-height: 0;
  padding-block: clamp(5rem, 4rem + 8vh, 11rem) clamp(3rem, 2rem + 4vh, 6rem);
}

.ch-head {
  display: grid;
  gap: 1rem 2rem;
  align-items: start;
  margin-bottom: clamp(2.5rem, 2rem + 4vh, 5rem);
}

.ch-num {
  display: block;
  font-size: clamp(3.4rem, 2rem + 6vw, 8rem);
  font-weight: 200;
  line-height: 0.9;
  letter-spacing: -0.05em;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.ch-head h2 {
  font-size: var(--display-2);
  letter-spacing: -0.045em;
  line-height: 0.96;
  margin-bottom: 0.45em;
  max-width: 14ch;
}

.ch-head p {
  color: var(--muted);
  font-size: clamp(1.05rem, 1rem + 0.4vw, 1.3rem);
  max-width: 34rem;
  text-wrap: pretty;
}

.ch-link {
  margin: clamp(2rem, 1.5rem + 2vh, 3.5rem) 0 0;
  font-size: 1.05rem;
}

@media (min-width: 56em) {
  .ch-head {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 2fr);
  }
}

/* Blue chapter: the accent colour, full bleed */

.chapter.blue {
  background: var(--accent);
  color: #ffffff;
}

.chapter.blue .ch-num {
  color: rgba(255, 255, 255, 0.55);
}

.chapter.blue .ch-head p,
.chapter.blue .biglist p {
  color: rgba(255, 255, 255, 0.78);
}

.chapter.blue .text-link {
  color: #ffffff;
}

.biglist {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.28);
}

.biglist li {
  display: grid;
  grid-template-columns: 3.5rem minmax(0, 1fr);
  gap: 0.5rem 1rem;
  align-items: start;
  padding: clamp(1.2rem, 1rem + 1.5vh, 2rem) 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.28);
  transition: padding-left 300ms var(--ease);
}

.biglist li:hover {
  padding-left: 0.6rem;
}

.biglist .n {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding-top: 0.5rem;
  opacity: 0.75;
}

.biglist h3 {
  font-size: clamp(1.6rem, 1.1rem + 2.4vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1;
  margin: 0 0 0.35em;
}

.biglist p {
  margin: 0;
  max-width: 36rem;
  font-size: 1rem;
  text-wrap: pretty;
}

@media (min-width: 64em) {
  .biglist {
    margin-left: auto;
    max-width: 62rem;
  }

  .biglist li {
    grid-template-columns: 5rem minmax(0, 1fr);
    gap: 2rem;
  }

  .biglist li > div {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 2.5rem;
    align-items: start;
  }

  .biglist h3 {
    margin: 0;
  }

  .biglist p {
    padding-top: 0.45rem;
  }
}

/* Method chapter: video background, four phases with huge numbers */

.chapter.method {
  min-height: 100svh;
}

.phases {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.5rem 2rem;
  grid-template-columns: 1fr;
}

.phases li {
  position: relative;
  padding-top: 1rem;
  border-top: 1px solid var(--line-2);
}

.phases .n {
  display: block;
  font-size: clamp(3.4rem, 2rem + 5vw, 6.5rem);
  font-weight: 200;
  line-height: 0.9;
  letter-spacing: -0.05em;
  color: var(--fg);
  margin-bottom: 0.9rem;
}

.phases h3 {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 0.3rem;
}

.phases .dur {
  display: block;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin-bottom: 0.6rem;
}

.phases p {
  margin: 0;
  color: var(--muted);
  font-size: 0.97rem;
  text-wrap: pretty;
}

@media (min-width: 40em) {
  .phases {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 64em) {
  .phases {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .phases li:nth-child(2) { margin-top: 3rem; }
  .phases li:nth-child(3) { margin-top: 6rem; }
  .phases li:nth-child(4) { margin-top: 9rem; }
}

/* Night chapter: deep navy, a blue light scene made of CSS */

.chapter.night {
  background: var(--navy);
  color: var(--on-navy);
  overflow: hidden;
  isolation: isolate;
}

.chapter.night .ch-num {
  color: #60a5fa;
}

.chapter.night .ch-head p {
  color: var(--on-navy-muted);
}

.chapter.night .text-link {
  color: #93c5fd;
}

.glow {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.glow i {
  position: absolute;
  border-radius: 50%;
}

.glow i:nth-child(1) {
  right: -15vw;
  top: -20vh;
  width: 70vw;
  height: 70vw;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.55) 0%, rgba(37, 99, 235, 0.12) 40%, transparent 68%);
  filter: blur(10px);
}

.glow i:nth-child(2) {
  left: -20vw;
  bottom: -30vh;
  width: 60vw;
  height: 60vw;
  background: radial-gradient(circle, rgba(96, 165, 250, 0.28) 0%, transparent 65%);
  filter: blur(20px);
}

.glow i:nth-child(3) {
  right: 8vw;
  top: 14vh;
  width: 46vw;
  height: 46vw;
  border: 1px solid rgba(147, 197, 253, 0.28);
  background: transparent;
}

.facts-row {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0 2rem;
  grid-template-columns: 1fr;
  border-top: 1px solid rgba(241, 245, 249, 0.2);
}

.facts-row li {
  display: grid;
  gap: 0.3rem;
  padding: 1.3rem 0;
  border-bottom: 1px solid rgba(241, 245, 249, 0.2);
}

.facts-row b {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.facts-row span {
  color: var(--on-navy-muted);
  font-size: 0.92rem;
}

@media (min-width: 48em) {
  .facts-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 64em) {
  .facts-row {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-left: auto;
    max-width: 66rem;
  }
}

/* ---------- Product stage (sticky visual, scroll choreography) ---------- */

.stage {
  position: relative;
  background: var(--navy);
  color: var(--on-navy);
}

.stage-sticky {
  position: sticky;
  top: 0;
  height: 100svh;
  overflow: hidden;
  background: var(--navy);
}

.scene {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 900ms var(--ease), transform 1400ms var(--ease);
  will-change: opacity, transform;
}

.scene.is-on {
  opacity: 1;
  transform: none;
}

.scene > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.scene.s-nixstein {
  background: #ece9df;
}

.scene.s-nixstein > img {
  object-position: 60% 50%;
}

/* Scene 2: phone, large, right-high on a navy light scene */

.scene.s-gewaesser,
.scene.s-wing {
  background:
    radial-gradient(70% 60% at 75% 25%, rgba(37, 99, 235, 0.6) 0%, rgba(37, 99, 235, 0.08) 45%, transparent 70%),
    radial-gradient(50% 50% at 15% 95%, rgba(96, 165, 250, 0.25) 0%, transparent 60%),
    var(--navy);
}

.scene .phone {
  position: absolute;
  right: 6vw;
  top: 6svh;
  height: 76svh;
  aspect-ratio: 540 / 1150;
  border-radius: 2.4rem;
  overflow: hidden;
  border: 6px solid #020617;
  box-shadow: var(--shadow-xl);
  transform: rotate(-5deg);
  background: #020617;
}

.scene .phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.scene.s-wing .wing-chat.large {
  position: absolute;
  right: 6vw;
  top: 12svh;
  width: min(34rem, 80vw);
  min-height: 0;
  font-size: 1.05rem;
  padding: 1.6rem;
  gap: 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  color: #ffffff;
  box-shadow: var(--shadow-xl);
  border-radius: 1.6rem;
  transform: rotate(2deg);
}

.scene.s-wing .wing-chat .wc-head {
  color: rgba(255, 255, 255, 0.7);
}

.scene.s-wing .wing-chat .msg {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.scene.s-wing .wing-chat .msg.me {
  background: var(--accent);
}

.scene.s-wing .wing-chat .msg b {
  opacity: 0.75;
}

.scene.s-wing .wing-chat .score {
  background: rgba(37, 99, 235, 0.3);
  color: #ffffff;
}

.scene.s-wing .wing-chat .score i {
  background: linear-gradient(90deg, #60a5fa 0%, #60a5fa 76%, rgba(255, 255, 255, 0.25) 76%);
}

.stage .scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(10deg, rgba(5, 12, 30, 0.82) 0%, rgba(5, 12, 30, 0.45) 36%, rgba(5, 12, 30, 0) 62%);
  transition: opacity 600ms var(--ease);
}

.stage[data-active="3"] .scrim {
  opacity: 0;
}

.steps {
  position: relative;
  z-index: 2;
  margin-top: -100svh;
}

.step {
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding-block: 20svh 12svh;
}

.step-inner {
  max-width: 38rem;
}

.step-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.3rem 0.75rem;
  margin: 0 0 1rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.step-meta .num {
  font-size: 2.4rem;
  font-weight: 200;
  letter-spacing: -0.04em;
  line-height: 1;
}

.step-meta .of {
  opacity: 0.6;
  margin-right: 0.5rem;
}

.step-meta .pkind {
  opacity: 0.6;
  font-weight: 600;
}

.step h3 {
  font-size: clamp(2.2rem, 1.3rem + 3.6vw, 4.8rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.98;
  margin: 0 0 0.5em;
}

.step p {
  font-size: clamp(1.02rem, 1rem + 0.3vw, 1.2rem);
  max-width: 30rem;
  margin: 0 0 1.4rem;
  text-wrap: pretty;
}

.step.light {
  color: #ffffff;
}

.step.light p {
  color: rgba(255, 255, 255, 0.78);
}

.step.light .text-link {
  color: #ffffff;
}

.step.dark {
  color: #0f172a;
}

.step.dark p {
  color: #475569;
}

.step.dark .text-link {
  color: var(--accent);
}

/* Text of each step fades in and out with its own scroll position (scroll-driven animation).
   Browsers without support simply show the text. */

@supports (animation-timeline: view()) {
  .step-inner {
    animation: step-pass linear both;
    animation-timeline: view();
    animation-range: cover 5% cover 95%;
  }
}

@keyframes step-pass {
  0% { opacity: 0; transform: translateY(14vh); }
  28% { opacity: 1; transform: translateY(0); }
  72% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(-10vh); }
}

@media (max-width: 48em) {
  .scene .phone {
    right: -8vw;
    top: 4svh;
    height: 62svh;
  }

  .scene.s-wing .wing-chat.large {
    right: 4vw;
    top: 10svh;
    width: 80vw;
    font-size: 0.9rem;
    padding: 1.1rem;
  }

  .stage .scrim {
    background: linear-gradient(0deg, rgba(5, 12, 30, 0.88) 0%, rgba(5, 12, 30, 0.6) 40%, rgba(5, 12, 30, 0.05) 70%);
  }

  .stage[data-active="3"] .scrim {
    opacity: 1;
    background: linear-gradient(0deg, rgba(236, 233, 223, 0.95) 0%, rgba(236, 233, 223, 0.7) 40%, rgba(236, 233, 223, 0) 70%);
  }
}

/* ---------- Offers (tiles with colour wash + cursor highlight) ---------- */

.offers {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
}

.offer {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 20rem;
  padding: 1.6rem 1.5rem 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  color: inherit;
  text-decoration: none;
  overflow: hidden;
  isolation: isolate;
  transition: background-color 320ms var(--ease), color 320ms var(--ease), border-color 320ms var(--ease), transform 320ms var(--ease);
}

.offer::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0.28), transparent 60%);
  transition: opacity 320ms var(--ease);
}

.offer:hover,
.offer:focus-visible {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
  transform: translateY(-4px);
}

.offer:hover::before {
  opacity: 1;
}

.offer .n {
  font-size: clamp(2.6rem, 2rem + 2vw, 4rem);
  font-weight: 200;
  line-height: 0.9;
  letter-spacing: -0.05em;
  color: var(--accent);
  margin-bottom: 1.6rem;
  transition: color 320ms var(--ease);
}

.offer:hover .n {
  color: rgba(255, 255, 255, 0.7);
}

.offer .tag {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin-bottom: 0.6rem;
  transition: color 320ms var(--ease);
}

.offer:hover .tag {
  color: rgba(255, 255, 255, 0.8);
}

.offer h3 {
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  margin-bottom: 0.5rem;
}

.offer p {
  color: var(--muted);
  margin: 0;
  font-size: 0.97rem;
  flex: 1 0 auto;
  text-wrap: pretty;
  transition: color 320ms var(--ease);
}

.offer:hover p {
  color: rgba(255, 255, 255, 0.85);
}

.offer .more {
  margin-top: 1.6rem;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--accent-text);
  transition: color 320ms var(--ease);
}

.offer .more::after {
  content: " →";
  display: inline-block;
  transition: transform 200ms var(--ease);
}

.offer:hover .more {
  color: #ffffff;
}

.offer:hover .more::after {
  transform: translateX(5px);
}

@media (min-width: 40em) {
  .offers {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 72em) {
  .offers {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* ---------- Product tiles (bento, /referenzen/) ---------- */

.bento {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
}

.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  color: inherit;
  text-decoration: none;
  transition: border-color 300ms var(--ease), box-shadow 300ms var(--ease), transform 300ms var(--ease);
}

.tile:hover {
  color: inherit;
  border-color: var(--line-2);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.tile-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
}

.tile-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 900ms var(--ease);
}

.tile:hover .tile-media img {
  transform: scale(1.06);
}

.tile-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--accent);
  opacity: 0;
  mix-blend-mode: multiply;
  transition: opacity 400ms var(--ease);
}

.tile:hover .tile-media::after {
  opacity: 0.22;
}

.tile-media.top img {
  object-position: top;
}

.tile-media .wing-chat {
  position: absolute;
  inset: 0;
}

.tile-body {
  padding: 1.25rem 1.3rem 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1 0 auto;
}

.tile-body h3 {
  font-size: 1.5rem;
  font-weight: 800;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.tile-body .tagline {
  color: var(--fg);
  font-weight: 600;
  margin: 0;
}

.tile-body p {
  color: var(--muted);
  margin: 0;
  font-size: 0.97rem;
  text-wrap: pretty;
}

.tile-body .more {
  margin-top: auto;
  padding-top: 0.9rem;
  color: var(--accent-text);
  font-weight: 700;
  font-size: 0.92rem;
}

.tile-body .more::after {
  content: " →";
  display: inline-block;
  transition: transform 200ms var(--ease);
}

.tile:hover .more::after {
  transform: translateX(4px);
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0;
  border: 1px solid var(--line-2);
  color: var(--muted);
  vertical-align: middle;
}

.status::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.6;
}

.status.live {
  color: var(--accent-text);
  border-color: color-mix(in srgb, var(--accent) 35%, transparent);
  background: var(--accent-soft);
}

.status.live::before {
  background: var(--accent);
  opacity: 1;
}

@media (min-width: 48em) {
  .bento {
    grid-template-columns: repeat(12, minmax(0, 1fr));
  }

  .bento .t-nixstein { grid-column: 1 / 8; }
  .bento .t-gewaesser-app { grid-column: 8 / 13; grid-row: 1 / 3; }
  .bento .t-nixtier { grid-column: 1 / 5; }
  .bento .t-wing { grid-column: 5 / 8; }

  .bento .t-nixstein .tile-media { aspect-ratio: 16 / 8.5; }
  .bento .t-gewaesser-app .tile-media { aspect-ratio: auto; flex: 1 1 auto; min-height: 20rem; }
  .bento .t-nixtier .tile-media { aspect-ratio: 16 / 10; }
  .bento .t-wing .tile-media { aspect-ratio: 1; }
}

/* ---------- WING chat visual (CSS only) ---------- */

.wing-chat {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.45rem;
  padding: 0.9rem;
  background: var(--surface-2);
  color: var(--fg);
  font-size: 0.76rem;
  line-height: 1.35;
}

.wing-chat .wc-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: auto;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--muted-2);
}

.wing-chat .wc-head::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.wing-chat .msg {
  max-width: 88%;
  padding: 0.5rem 0.7rem;
  border-radius: 12px;
  background: var(--bg);
  border: 1px solid var(--line);
}

.wing-chat .msg.me {
  align-self: flex-end;
  background: var(--accent);
  color: #ffffff;
  border-color: transparent;
}

.wing-chat .msg b {
  display: block;
  font-weight: 600;
  font-size: 0.62rem;
  opacity: 0.7;
  margin-bottom: 0.1rem;
}

.wing-chat .score {
  margin-top: 0.3rem;
  padding: 0.5rem 0.7rem;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent-text);
  font-size: 0.7rem;
  font-weight: 600;
}

.wing-chat .score i {
  display: block;
  height: 4px;
  margin-top: 0.4rem;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent) 76%, var(--line-2) 76%);
}

.wing-chat.large {
  font-size: 0.95rem;
  padding: 1.4rem;
  gap: 0.6rem;
  border-radius: var(--radius);
  border: 1px solid var(--line-2);
  min-height: 24rem;
  box-shadow: var(--shadow-lg);
}

.wing-chat.large .wc-head {
  font-size: 0.78rem;
}

.wing-chat.large .msg {
  padding: 0.7rem 0.95rem;
  border-radius: 14px;
}

.wing-chat.large .score {
  font-size: 0.8rem;
}

/* ---------- Feature blocks / facts (inner pages) ---------- */

.features .wrap {
  display: grid;
  gap: clamp(4rem, 3rem + 5vw, 8rem);
}

.feature {
  display: grid;
  gap: 2rem;
  align-items: center;
}

.feature-text h2 {
  max-width: 14ch;
}

.feature-text p {
  color: var(--muted);
  max-width: 30rem;
  font-size: 1.05rem;
  text-wrap: pretty;
  margin-bottom: 1.4rem;
}

.feature-visual {
  margin: 0;
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line-2);
  background: var(--surface-2);
  box-shadow: var(--shadow-lg);
}

.feature-visual img {
  width: 100%;
}

@media (min-width: 56em) {
  .feature {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 4rem;
  }

  .feature.flip .feature-text {
    order: 2;
  }

  .feature.flip .feature-visual {
    order: 1;
  }
}

.facts {
  list-style: none;
  margin: 0;
  padding: 0.5rem 0;
  display: grid;
}

.facts li {
  display: grid;
  gap: 0.15rem;
  padding: 1rem 0;
  border-top: 1px solid var(--line);
}

.facts li:first-child {
  border-top: 0;
}

.facts b {
  font-weight: 600;
  color: var(--fg);
}

.facts span {
  color: var(--muted);
  font-size: 0.95rem;
}

.facts.plain {
  padding: 0;
  margin-bottom: 1.2em;
}

.facts.plain li {
  color: var(--muted);
  padding: 0.75rem 0;
}

/* ---------- Timeline (inner pages) ---------- */

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: tl;
  position: relative;
  display: grid;
  gap: 1.5rem 2rem;
}

.timeline li {
  counter-increment: tl;
  position: relative;
  padding: 1.2rem 0 0.5rem;
  border-top: 1px solid var(--line-2);
}

.timeline li::before {
  content: "0" counter(tl);
  display: block;
  font-size: clamp(2.6rem, 2rem + 2vw, 4rem);
  font-weight: 200;
  letter-spacing: -0.05em;
  line-height: 0.9;
  color: var(--accent);
  margin-bottom: 1rem;
}

.timeline h3 {
  margin: 0 0 0.4rem;
  font-size: 1.4rem;
  font-weight: 800;
}

.timeline p {
  color: var(--muted);
  margin: 0;
  font-size: 0.97rem;
}

.timeline .dur {
  position: absolute;
  top: 1.3rem;
  right: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-2);
}

@media (min-width: 40em) {
  .timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 64em) {
  .timeline {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* ---------- Generic cards / grids ---------- */

.grid {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
}

@media (min-width: 40em) {
  .grid.two,
  .grid.four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 64em) {
  .grid.four {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .grid.three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.card {
  display: block;
  padding: 1.6rem 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: inherit;
  text-decoration: none;
  transition: border-color 300ms var(--ease), transform 300ms var(--ease), box-shadow 300ms var(--ease);
}

.card:hover {
  border-color: var(--line-2);
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.card h3 {
  margin-top: 0;
  margin-bottom: 0.5em;
  font-size: 1.35rem;
  font-weight: 800;
}

.card p {
  color: var(--muted);
  margin: 0;
  font-size: 0.97rem;
  text-wrap: pretty;
}

/* Split columns */

.split {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 1fr;
}

@media (min-width: 56em) {
  .split {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 4rem;
  }
}

.split ul {
  padding-left: 0;
  list-style: none;
  margin: 0;
}

.split li {
  padding: 0.9rem 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.97rem;
}

.split li strong {
  color: var(--fg);
  font-weight: 600;
}

.split h3 {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin-bottom: 0.5rem;
}

/* Principles */

.principles {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
}

@media (min-width: 40em) {
  .principles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 64em) {
  .principles {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.principles li {
  padding: 1.5rem 1.4rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.principles strong {
  display: block;
  margin-bottom: 0.4em;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.principles p {
  color: var(--muted);
  margin: 0;
  font-size: 0.96rem;
}

/* ---------- Pull quote band ---------- */

.band {
  padding-block: clamp(4rem, 3rem + 5vw, 8rem);
  background: var(--navy);
  color: var(--on-navy);
}

.band blockquote {
  border: 0;
  padding: 0;
  max-width: 24ch;
  font-size: var(--display-3);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.04;
  color: inherit;
}

.band blockquote p {
  color: inherit;
}

.band blockquote cite {
  font-weight: 400;
  font-size: 0.95rem;
  margin-top: 1.2rem;
  letter-spacing: 0;
  color: var(--on-navy-muted);
}

/* ---------- Case study (full-bleed hero) ---------- */

.case-hero {
  position: relative;
  padding-top: calc(var(--nav-h) + clamp(3rem, 2rem + 5vw, 7rem));
  overflow: hidden;
}

.case-grid {
  display: grid;
  gap: 1.5rem 3rem;
  align-items: end;
  margin-bottom: clamp(2.5rem, 2rem + 3vw, 5rem);
}

@media (min-width: 64em) {
  .case-grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 4rem;
  }
}

.case-hero h1 {
  font-size: var(--display);
  margin-bottom: 0.25em;
}

.case-hero .tagline {
  font-size: clamp(1.3rem, 1rem + 1.2vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0;
}

.case-media {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 60svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(2rem, 1rem + 4vw, 5rem) 16px;
  background:
    radial-gradient(70% 60% at 75% 25%, rgba(37, 99, 235, 0.6) 0%, rgba(37, 99, 235, 0.08) 45%, transparent 70%),
    radial-gradient(50% 50% at 15% 95%, rgba(96, 165, 250, 0.25) 0%, transparent 60%),
    var(--navy);
}

.case-media .glow i:nth-child(1) {
  right: -10vw;
  top: -30vh;
  width: 60vw;
  height: 60vw;
}

.case-media .glow i:nth-child(2) {
  left: 10vw;
  bottom: -20vh;
  width: 40vw;
  height: 40vw;
  border: 1px solid rgba(147, 197, 253, 0.28);
  background: transparent;
  filter: none;
}

.case-media.c-nixstein {
  padding: 0;
  background: #ece9df;
}

.case-media.c-nixstein .glow {
  display: none;
}

.case-visual {
  position: relative;
  z-index: 1;
  margin: 0;
  width: 100%;
  max-width: var(--wrap-wide);
}

.case-media.c-nixstein .case-visual {
  max-width: none;
}

.case-media.c-nixstein .case-visual img {
  width: 100%;
  height: 70svh;
  object-fit: cover;
  object-position: 60% 50%;
}

.case-visual.duo {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.5rem;
  align-items: center;
  padding-inline: 0;
  max-width: 78rem;
}

.case-visual.duo img {
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: var(--shadow-xl);
}

.case-visual.duo img:last-child {
  width: min(16rem, 60%);
  justify-self: end;
  border-radius: 2rem;
  border: 6px solid #020617;
  transform: rotate(-4deg);
}

@media (min-width: 56em) {
  .case-visual.duo {
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 0.7fr);
    gap: 2.5rem;
  }

  .case-visual.duo {
    align-items: start;
  }

  .case-visual.duo img:first-child {
    margin-top: 6rem;
  }

  .case-visual.duo img:last-child {
    width: 100%;
    justify-self: stretch;
  }
}

.case-media .wing-chat.large {
  position: relative;
  z-index: 1;
  width: min(36rem, 100%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  color: #ffffff;
  box-shadow: var(--shadow-xl);
  border-radius: 1.6rem;
  transform: rotate(2deg);
  font-size: 1.05rem;
}

.case-media .wing-chat .wc-head {
  color: rgba(255, 255, 255, 0.7);
}

.case-media .wing-chat .msg {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.case-media .wing-chat .msg.me {
  background: var(--accent);
}

.case-media .wing-chat .score {
  background: rgba(37, 99, 235, 0.3);
  color: #ffffff;
}

.case-media .wing-chat .score i {
  background: linear-gradient(90deg, #60a5fa 0%, #60a5fa 76%, rgba(255, 255, 255, 0.25) 76%);
}

.chips {
  list-style: none;
  margin: 1.8rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chips li {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.45rem;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  font-size: 0.88rem;
  max-width: 100%;
}

.chips li span {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.chips a {
  text-decoration: none;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.case-body {
  padding-block: clamp(2rem, 1rem + 3vw, 4rem) clamp(3rem, 2rem + 4vw, 6rem);
}

.case-section {
  display: grid;
  gap: 1rem 3rem;
  padding-block: clamp(2rem, 1.5rem + 2vw, 3.5rem);
  border-top: 1px solid var(--line);
}

.case-section h2 {
  font-size: clamp(1.7rem, 1.2rem + 1.6vw, 2.6rem);
  font-weight: 800;
  margin: 0;
  max-width: 16ch;
}

.case-section .kicker {
  margin-bottom: 0.5rem;
}

.case-section .text p {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: var(--measure);
  text-wrap: pretty;
}

.case-section .text p strong {
  color: var(--fg);
}

@media (min-width: 56em) {
  .case-section {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
  }
}

.tech-line {
  margin: 0;
  padding: 1.4rem 0 0.5rem;
  border-top: 1px solid var(--line);
  color: var(--muted-2);
  font-size: 0.9rem;
  max-width: var(--measure);
}

.tech-line span {
  display: inline-block;
  margin-right: 0.75rem;
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.pull {
  margin: 0;
  padding-block: clamp(2.5rem, 2rem + 3vw, 5rem);
  border-top: 1px solid var(--line);
}

.pull blockquote {
  border: 0;
  padding: 0;
  max-width: 24ch;
  font-size: var(--display-3);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.04;
}

.pull blockquote p::before {
  content: "„";
  color: var(--accent);
}

.pull blockquote p::after {
  content: "“";
  color: var(--accent);
}

.pull cite {
  margin-top: 1.2rem;
  font-size: 0.9rem;
  font-weight: 400;
}

.case-pager {
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr;
  margin-top: 2rem;
  border-top: 1px solid var(--line);
  padding-top: 2rem;
}

@media (min-width: 40em) {
  .case-pager {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}

.case-pager a {
  display: block;
  padding: 1.1rem 1.3rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  background: var(--surface);
  color: var(--fg);
  text-decoration: none;
  transition: border-color 200ms var(--ease), background-color 200ms var(--ease), color 200ms var(--ease);
}

.case-pager a:hover {
  border-color: var(--accent);
  background: var(--accent);
  color: #ffffff;
}

.case-pager a:hover small {
  color: rgba(255, 255, 255, 0.75);
}

.case-pager a.next {
  text-align: right;
}

.case-pager small {
  display: block;
  font-size: 0.8rem;
  color: var(--muted-2);
  margin-bottom: 0.2rem;
}

.case-pager strong {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.025em;
}

.case-pager .all {
  grid-column: 1 / -1;
  text-align: center;
  padding: 0.8rem;
  background: transparent;
  color: var(--muted);
}

/* ---------- Closing CTA (bold, asymmetric) ---------- */

.cta {
  padding-block: clamp(5rem, 4rem + 6vw, 10rem);
  border-top: 1px solid var(--line);
}

.cta-grid {
  display: grid;
  gap: 2.5rem 4rem;
  align-items: end;
}

.cta-text h2 {
  font-size: var(--display-2);
  letter-spacing: -0.045em;
  line-height: 0.96;
  max-width: 14ch;
  margin-bottom: 0.5em;
}

.cta-text p {
  max-width: 30rem;
  color: var(--muted);
  font-size: 1.1rem;
  text-wrap: pretty;
}

.cta-side {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}

.cta-mail {
  font-size: clamp(1.1rem, 0.6rem + 2.2vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  text-decoration: none;
  color: var(--fg);
  overflow-wrap: anywhere;
  line-height: 1.1;
}

.cta-mail:hover {
  color: var(--accent-text);
}

@media (min-width: 64em) {
  .cta-grid {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  }

  .cta-side {
    align-items: flex-end;
    text-align: right;
  }

  .cta-side .actions {
    justify-content: flex-end;
  }
}

/* ---------- Contact ---------- */

.contact-block {
  margin-bottom: 3rem;
  padding: clamp(1.5rem, 1rem + 2vw, 2.5rem) 0;
  border-top: 1px solid var(--line-2);
  border-bottom: 1px solid var(--line-2);
}

.contact-block .mail {
  margin-bottom: 0.5rem;
}

.contact-block .mail a {
  font-size: clamp(1.5rem, 0.6rem + 4vw, 4.4rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1;
  text-decoration: none;
  overflow-wrap: anywhere;
  color: var(--fg);
}

.contact-block .mail a:hover {
  color: var(--accent-text);
}

.contact-block .muted {
  margin: 0;
  font-size: 0.9rem;
}

/* ---------- Legal ---------- */

.legal {
  max-width: var(--measure);
}

.legal h2 {
  font-size: 1.35rem;
  margin-top: 2.2em;
}

.legal h3 {
  font-size: 1.05rem;
  margin-top: 1.6em;
}

.legal p,
.legal li {
  color: var(--muted);
}

.legal address p {
  color: var(--fg);
}

.legal dl dt {
  font-weight: 700;
  margin-top: 0.8em;
}

.legal dl dd {
  margin-left: 0;
  color: var(--muted);
}

.legal table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.93rem;
  margin-bottom: 1.2em;
}

.legal th,
.legal td {
  text-align: left;
  vertical-align: top;
  padding: 0.55em 0.75em 0.55em 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}

.legal th {
  font-weight: 600;
  color: var(--fg);
  font-size: 0.85rem;
}

/* ---------- Footer (navy, huge wordmark, links in a row) ---------- */

.site-footer {
  background: var(--navy);
  color: var(--on-navy-muted);
  padding-block: clamp(3rem, 2rem + 4vw, 6rem) 2rem;
  font-size: 0.92rem;
  overflow: hidden;
}

.ft-top {
  margin-bottom: clamp(2rem, 1.5rem + 2vw, 3.5rem);
}

.ft-wordmark {
  margin: 0 0 0.6rem;
  font-size: clamp(2.1rem, 0.5rem + 7.2vw, 9.2rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.05em;
  color: var(--on-navy);
  white-space: nowrap;
}

.ft-tag {
  margin: 0;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(241, 245, 249, 0.55);
}

.ft-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem 2rem;
  padding-block: 1.4rem;
  border-top: 1px solid rgba(241, 245, 249, 0.18);
  border-bottom: 1px solid rgba(241, 245, 249, 0.18);
}

.ft-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.6rem;
}

.ft-links a {
  color: var(--on-navy);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

.ft-links.small a {
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--on-navy-muted);
}

.ft-links a:hover {
  color: #93c5fd;
}

.ft-bottom {
  display: grid;
  gap: 1.2rem 3rem;
  padding-top: 1.6rem;
}

.site-footer .note {
  margin: 0;
  max-width: 34rem;
}

.site-footer .note strong {
  display: block;
  color: var(--on-navy);
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: 1.1rem;
  margin-bottom: 0.2rem;
}

.ft-mail {
  color: var(--on-navy);
  text-decoration: none;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.ft-mail:hover {
  color: #93c5fd;
}

.site-footer .colophon {
  margin: 0;
  font-size: 0.8rem;
  color: rgba(241, 245, 249, 0.5);
}

@media (min-width: 56em) {
  .ft-bottom {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    align-items: start;
  }

  .ft-mail {
    justify-self: end;
    text-align: right;
  }

  .site-footer .colophon {
    grid-column: 1 / -1;
  }
}

/* ---------- Reveal (progressive enhancement via site.js) ---------- */

html.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 800ms var(--ease), transform 800ms var(--ease);
}

html.js [data-reveal].is-in {
  opacity: 1;
  transform: none;
}

html.js .stagger > * {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 700ms var(--ease), transform 700ms var(--ease), background-color 320ms var(--ease), color 320ms var(--ease), border-color 320ms var(--ease), padding-left 300ms var(--ease);
}

html.js .stagger.is-in > * {
  opacity: 1;
  transform: none;
}

html.js .stagger.is-in > *:nth-child(2) { transition-delay: 80ms; }
html.js .stagger.is-in > *:nth-child(3) { transition-delay: 160ms; }
html.js .stagger.is-in > *:nth-child(4) { transition-delay: 240ms; }
html.js .stagger.is-in > *:nth-child(5) { transition-delay: 320ms; }
html.js .stagger.is-in > *:nth-child(6) { transition-delay: 400ms; }
html.js .stagger.is-in > *:nth-child(n+7) { transition-delay: 480ms; }

html.js .stagger.is-in > *:hover {
  transition-delay: 0ms;
}

/* Stagger container itself must not be hidden */
html.js .stagger[data-reveal] {
  opacity: 1;
  transform: none;
}

/* ---------- Utilities ---------- */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -4rem;
  z-index: 100;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 0.6rem 1rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
}

.skip-link:focus {
  top: 12px;
}

/* ---------- Motion preferences ---------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  html.js [data-reveal],
  html.js .stagger > * {
    opacity: 1;
    transform: none;
  }

  .marquee-track {
    flex-wrap: wrap;
    width: auto;
  }

  .marquee ul[aria-hidden="true"] {
    display: none;
  }

  .marquee ul {
    flex-wrap: wrap;
    padding-inline: 16px;
  }

  .scroll-cue span {
    transform: none;
  }
}
