/* ==========================================================================
   Kanzleistrategen · Apple-Stil Landingpage · Design-System "Modern Precision"
   Farben & Typo laut Website-Konzept v2 (2026-07-02)
   ========================================================================== */

/* ---------- Fonts (lokal gebündelt, DSGVO-sauber) ---------- */
@font-face {
  font-family: 'Bricolage Grotesque';
  src: url('../fonts/bricolage-grotesque-wght.woff2') format('woff2-variations');
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: 'Fraunces';
  src: url('../fonts/fraunces-wght-italic.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Instrument Sans';
  src: url('../fonts/instrument-sans-wght.woff2') format('woff2-variations');
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Mono';
  src: url('../fonts/ibm-plex-mono-400.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Mono';
  src: url('../fonts/ibm-plex-mono-500.woff2') format('woff2');
  font-weight: 500;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --light: #FFFFFF;          /* Weiß */
  --ink: #1D3B46;            /* Tinte */
  --night: #0E2836;          /* Nacht (dunkle Kapitel, nachtblauer) */
  --night-soft: #16394A;
  --accent: #CB4A16;         /* Hauptfarbe: warmes Orange */
  --accent-light: #E9784A;   /* Orange hell (auf Dunkel) */
  --pink: #D8397B;           /* Akzentfarbe Pink */
  --pink-light: #EC7FAE;     /* Pink hell (auf Dunkel) */
  --hairline: #A9BCBC;
  --hairline-dark: rgba(255, 255, 255, .16);
  --muted-light: rgba(29, 59, 70, .68);
  --muted-dark: rgba(255, 255, 255, .62);

  --font-display: 'Bricolage Grotesque', 'Arial Narrow', sans-serif;
  --font-accent: 'Fraunces', Georgia, serif;
  --font-body: 'Instrument Sans', 'Helvetica Neue', sans-serif;
  --font-mono: 'IBM Plex Mono', 'Courier New', monospace;

  --w-max: 1240px;
  --pad-x: clamp(20px, 5vw, 64px);
  --pad-y: clamp(96px, 14vh, 180px);
  --ease-out: cubic-bezier(.19, 1, .22, 1);
}

/* ---------- Reset & Basis ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: clamp(16px, 1.15vw, 18px);
  line-height: 1.6;
  background: var(--night);
  color: var(--light);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--accent); color: var(--light); }

/* Themes pro Sektion */
.theme-dark { background: var(--night); color: var(--light); }
.theme-light { background: var(--light); color: var(--ink); }

section { position: relative; padding: var(--pad-y) var(--pad-x); }

/* ---------- Typo-Bausteine ---------- */
.label {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
}
.theme-dark .label { color: var(--accent-light); }

.display {
  font-family: var(--font-display);
  font-weight: 640;
  font-size: clamp(34px, 5.4vw, 76px);
  line-height: 1.04;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.display-xl {
  font-family: var(--font-display);
  font-weight: 660;
  font-size: clamp(40px, 7vw, 104px);
  line-height: 1.0;
  letter-spacing: -0.03em;
}
.display em, .display-xl em, .statements__item em,
.hero__title em {
  font-family: var(--font-accent);
  font-style: italic;
  font-weight: 480;
  letter-spacing: -0.01em;
  color: var(--pink);
}
.theme-dark .display em, .theme-dark .display-xl em,
.hero__title em { color: var(--pink); } /* einheitliches Marken-Pink #D8397B, auch auf Dunkel (Nicole) */

.section-head {
  max-width: var(--w-max);
  margin: 0 auto clamp(56px, 8vh, 110px);
}
.section-head .label { display: block; margin-bottom: 22px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 16px;
  line-height: 1;
  padding: 17px 32px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .35s var(--ease-out), background .25s ease, color .25s ease, border-color .25s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: #A63A10; }
.btn--ghost { border-color: var(--hairline-dark); color: var(--light); }
.theme-light .btn--ghost { border-color: var(--ink); color: var(--ink); }
.btn--ghost:hover { border-color: var(--accent-light); color: var(--accent-light); }

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background .4s ease, color .4s ease, box-shadow .4s ease;
}
.nav__inner {
  max-width: calc(var(--w-max) + 2 * var(--pad-x)); /* Logo auf dasselbe Raster wie die Sektionen */
  margin: 0 auto;
  padding: 18px var(--pad-x);
  display: flex;
  align-items: center;
  gap: 40px;
}
.nav__brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.02em;
}
.nav__brand span { color: var(--accent); }
.nav__links { display: flex; gap: 30px; margin-left: auto; }
.nav__links a {
  font-size: 14.5px;
  font-weight: 500;
  opacity: .75;
  transition: opacity .2s ease;
}
.nav__links a:hover { opacity: 1; }
.btn--nav { padding: 11px 22px; font-size: 14px; background: var(--accent); color: #fff; }
.btn--nav:hover { background: #A63A10; }

/* Nav-Zustand: über dunklen Sektionen hell, über hellen dunkel */
.nav[data-mode="dark"] { color: var(--light); }
.nav[data-mode="light"] { color: var(--ink); }
.nav.is-scrolled[data-mode="dark"] { background: rgba(14, 40, 54, .78); backdrop-filter: blur(18px); }
.nav.is-scrolled[data-mode="light"] { background: rgba(255, 255, 255, .82); backdrop-filter: blur(18px); }
.nav__brand { display: flex; align-items: center; }
.nav__logo { height: 28px; width: auto; display: block; }
.nav__logo--onlight { display: none; }
.nav[data-mode="light"] .nav__logo--ondark { display: none; }
.nav[data-mode="light"] .nav__logo--onlight { display: block; }
.footer__logo { height: 34px; width: auto; display: block; }

/* ---------- Reveals (Scroll + Laden) ---------- */
.reveal, .reveal-line {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 1s var(--ease-out), transform 1s var(--ease-out);
  transition-delay: calc(var(--d, 0) * 110ms);
}
.reveal.is-in, .reveal-line.is-in { opacity: 1; transform: none; }

/* ==========================================================================
   1 · HERO
   ========================================================================== */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}
.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero__inner {
  position: relative;
  z-index: 2;
  max-width: var(--w-max);
  margin: 0 auto;
  width: 100%;
}
.hero__inner .label { display: block; margin-bottom: 30px; }
.hero__title {
  font-family: var(--font-display);
  font-weight: 680;
  font-size: clamp(44px, 8.2vw, 124px);
  line-height: .98;
  letter-spacing: -0.035em;
}
.hero__title span { display: block; }
.hero__title-accent { margin-top: .06em; }
.hero__sub {
  max-width: 640px;
  margin-top: 36px;
  font-size: clamp(17px, 1.35vw, 21px);
  line-height: 1.55;
  color: var(--muted-dark);
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 44px; }


.hero__scrollhint {
  position: absolute;
  bottom: 34px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.hero__scrollline {
  width: 1px;
  height: 52px;
  background: linear-gradient(var(--accent-light), transparent);
  animation: scrollpulse 2.2s ease-in-out infinite;
}
@keyframes scrollpulse {
  0%, 100% { transform: scaleY(.4); transform-origin: top; opacity: .4; }
  50% { transform: scaleY(1); opacity: 1; }
}

/* ==========================================================================
   2 · STATEMENTS (sticky Sequenz)
   ========================================================================== */
.statements { padding-bottom: 0; }
.statements__intro {
  max-width: var(--w-max);
  margin: 0 auto;
  padding-bottom: clamp(40px, 8vh, 100px);
}
.statements__intro .label { display: block; margin-bottom: 22px; }
.statements__stage { height: 460vh; position: relative; }
.statements__sticky {
  position: sticky;
  top: 0;
  height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.statements__item {
  position: absolute;
  max-width: 900px;
  padding: 0 var(--pad-x);
  text-align: center;
  font-family: var(--font-display);
  font-weight: 620;
  font-size: clamp(30px, 4.6vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.025em;
  opacity: 0;
  transform: translateY(40px) scale(.98);
  will-change: opacity, transform;
}
.statements__item em {
  font-family: var(--font-accent);
  font-style: italic;
  font-weight: 500;
  color: var(--pink);
}
.statements__progress {
  position: absolute;
  right: clamp(18px, 4vw, 54px);
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.statements__progress span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--hairline);
  transition: background .3s ease, transform .3s ease;
}
.statements__progress span.is-active { background: var(--accent); transform: scale(1.5); }

/* ==========================================================================
   3 · CHAOS → FAHRPLAN (Canvas-Scrub)
   ========================================================================== */
.chaos { padding: 0; }
.chaos__stage { height: 420vh; position: relative; }
.chaos__sticky {
  position: sticky;
  top: 0;
  height: 100svh;
  overflow: hidden;
}
#chaosCanvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.chaos__phases {
  position: absolute;
  left: clamp(18px, 4vw, 54px);
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 18px;
  z-index: 3;
}
.chaos__phase {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted-dark);
  opacity: .38;
  transition: opacity .35s ease, color .35s ease;
}
.chaos__phase i { font-style: normal; color: var(--accent-light); margin-right: 8px; }
.chaos__phase.is-active { opacity: 1; color: var(--light); }
.chaos__copy {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 var(--pad-x);
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .8s var(--ease-out), transform .8s var(--ease-out);
  pointer-events: none;
}
.chaos__copy.is-visible { opacity: 1; transform: none; }
.chaos__copy-item {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 var(--pad-x);
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .55s var(--ease-out), transform .55s var(--ease-out);
}
.chaos__copy-item.is-active { opacity: 1; transform: none; }
.chaos__copy p {
  max-width: 620px;
  margin-top: 28px;
  color: var(--muted-dark);
  font-size: clamp(16px, 1.25vw, 19px);
}

/* ==========================================================================
   4 · LEISTUNGEN
   ========================================================================== */
.features__grid {
  max-width: var(--w-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(16px, 2vw, 28px);
}
.feature-card {
  position: relative;
  border: 1px solid var(--hairline);
  border-radius: 20px;
  padding: clamp(28px, 3.4vw, 48px);
  min-height: 380px;
  display: flex;
  flex-direction: column;
  background: var(--light);
  transition: background .45s var(--ease-out), color .45s var(--ease-out), border-color .45s ease, transform .45s var(--ease-out);
}
.feature-card:hover {
  background: var(--ink);
  color: var(--light);
  border-color: var(--ink);
  transform: translateY(-6px);
}
.feature-card__num {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .16em;
  color: var(--accent);
}
.feature-card:hover .feature-card__num { color: var(--accent-light); }
.feature-card__visual { width: 108px; margin: auto 0 26px; padding-top: 34px; }
.fc-viz circle, .fc-viz rect, .fc-viz path {
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  opacity: .55;
  transition: opacity .4s ease;
}
.fc-viz .acc { stroke: var(--accent); fill: rgba(203, 74, 22, .12); opacity: 1; }
.feature-card:hover .fc-viz .acc { stroke: var(--accent-light); }
.feature-card:hover .fc-viz circle, .feature-card:hover .fc-viz rect, .feature-card:hover .fc-viz path { opacity: .85; }
.feature-card h3 {
  font-family: var(--font-display);
  font-weight: 640;
  font-size: clamp(22px, 2vw, 30px);
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.feature-card p { font-size: 16px; line-height: 1.6; color: var(--muted-light); transition: color .45s ease; }
.feature-card:hover p { color: var(--muted-dark); }

/* ==========================================================================
   5 · USE CASES
   ========================================================================== */
.usecases__grid {
  max-width: var(--w-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1px;
  background: var(--hairline-dark);
  border: 1px solid var(--hairline-dark);
  border-radius: 20px;
  overflow: hidden;
}
.uc {
  background: var(--night);
  padding: clamp(26px, 2.6vw, 40px);
  transition: background .35s ease;
}
.uc:hover { background: var(--night-soft); }
.uc__num {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .16em;
  color: var(--accent-light);
  display: block;
  margin-bottom: 20px;
}
.uc h3 {
  font-family: var(--font-display);
  font-weight: 620;
  font-size: 21px;
  letter-spacing: -0.015em;
  margin-bottom: 10px;
}
.uc p { font-size: 15px; color: var(--muted-dark); }

/* ==========================================================================
   5b · KANZLEICHAT-DEMO (dunkle Produkt-UI auf hellem Grund)
   ========================================================================== */
.chatdemo__frame {
  max-width: 880px;
  margin: 0 auto;
  background: var(--night);
  color: var(--light);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 48px 90px -48px rgba(13, 13, 11, .5);
}
.chatdemo__head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 24px;
  border-bottom: 1px solid var(--hairline-dark);
}
.chatdemo__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 10px #4ade80;
}
.chatdemo__title {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--muted-dark);
}
.chatdemo__tag {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent-light);
  border: 1px solid currentColor;
  border-radius: 999px;
  padding: 3px 10px;
}
.chatdemo__body {
  padding: clamp(22px, 3vw, 34px) clamp(18px, 2.6vw, 30px) clamp(26px, 3vw, 38px);
  min-height: 330px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.chatdemo__msg p { font-size: clamp(14.5px, 1.15vw, 16.5px); line-height: 1.55; }
.chatdemo__msg--user {
  align-self: flex-end;
  max-width: 86%;
  background: var(--night-soft);
  border: 1px solid var(--hairline-dark);
  border-radius: 16px 16px 4px 16px;
  padding: 12px 17px;
}
.chatdemo__msg--bot {
  align-self: flex-start;
  max-width: 92%;
  background: rgba(216, 57, 123, .14);
  border: 1px solid rgba(236, 127, 174, .32);
  border-radius: 4px 16px 16px 16px;
  padding: 14px 18px 13px;
}
.chatdemo__badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.chatdemo__badges span {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .03em;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid var(--hairline-dark);
  color: var(--muted-dark);
}
.chatdemo__badges span.ok { color: #4ade80; border-color: rgba(74, 222, 128, .4); }
.chatdemo__badges span.warn { color: #ffd166; border-color: rgba(255, 209, 102, .4); }
.chatdemo__typing { display: flex; gap: 5px; padding: 4px 2px; }
.chatdemo__typing[hidden], .chatdemo__msg--bot[hidden] { display: none; }
.chatdemo__typing i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--muted-dark);
  animation: cd-blink 1.2s infinite;
}
.chatdemo__typing i:nth-child(2) { animation-delay: .2s; }
.chatdemo__typing i:nth-child(3) { animation-delay: .4s; }
@keyframes cd-blink { 0%, 60%, 100% { opacity: .25; } 30% { opacity: 1; } }
.chatdemo__note {
  max-width: 560px;
  margin: 26px auto 0;
  text-align: center;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--muted-light);
}

/* ==========================================================================
   6 · PROZESS
   ========================================================================== */
.process__wrap {
  max-width: 880px;
  margin: 0 auto;
  position: relative;
  padding-left: clamp(48px, 7vw, 90px);
}
.process__line {
  position: absolute;
  left: clamp(15px, 2.4vw, 31px);
  top: 0;
  width: 4px;
  height: 100%;
}
.process__line path {
  stroke: var(--accent);
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
}
.process__steps { list-style: none; display: flex; flex-direction: column; gap: clamp(64px, 10vh, 130px); }
.process__step { display: flex; gap: clamp(22px, 3vw, 40px); align-items: flex-start; }
.process__num {
  flex: 0 0 auto;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 1px solid var(--hairline);
  background: var(--light);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 660;
  font-size: 24px;
  color: var(--accent);
  position: relative;
  margin-left: calc(-1 * clamp(48px, 7vw, 90px) - 0px);
  left: clamp(-17px, -1vw, -1px);
}
.process__step h3 {
  font-family: var(--font-display);
  font-weight: 650;
  font-size: clamp(26px, 2.6vw, 38px);
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}
.process__step p { max-width: 520px; color: var(--muted-light); }

/* ==========================================================================
   7 · TRUST
   ========================================================================== */
.trust__list {
  max-width: var(--w-max);
  margin: 0 auto;
  list-style: none;
}
.trust__list li {
  font-family: var(--font-display);
  font-weight: 560;
  font-size: clamp(22px, 2.6vw, 38px);
  letter-spacing: -0.02em;
  padding: clamp(20px, 2.6vh, 30px) 0;
  border-bottom: 1px solid var(--hairline-dark);
  color: var(--muted-dark);
  transition: color .3s ease, padding-left .35s var(--ease-out);
}
.trust__list li:first-child { border-top: 1px solid var(--hairline-dark); }
.trust__list li:hover { color: var(--light); padding-left: 18px; }
.trust__list li span { color: var(--light); }
.trust__list li:hover span { color: var(--accent-light); }

/* ==========================================================================
   8 · ZIELGRUPPEN
   ========================================================================== */
.audience__pills {
  max-width: 980px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.audience__pills span {
  font-size: clamp(15px, 1.2vw, 17.5px);
  font-weight: 500;
  padding: 14px 26px;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  background: #fff;
  transition: background .3s ease, color .3s ease, border-color .3s ease, transform .3s var(--ease-out);
}
.audience__pills span:hover {
  background: var(--ink);
  color: var(--light);
  border-color: var(--ink);
  transform: translateY(-3px);
}

/* ==========================================================================
   9 · FINALE CTA
   ========================================================================== */
.cta { overflow: hidden; padding-top: clamp(120px, 18vh, 220px); }
.cta__canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .55; }
.cta__inner {
  position: relative;
  z-index: 2;
  max-width: var(--w-max);
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.cta__sub {
  max-width: 560px;
  margin-top: 30px;
  color: var(--muted-dark);
  font-size: clamp(16px, 1.3vw, 19px);
}
.cta .hero__cta { justify-content: center; }

.cta__form {
  width: min(640px, 100%);
  margin-top: clamp(64px, 9vh, 110px);
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: clamp(26px, 3vw, 42px);
  border: 1px solid var(--hairline-dark);
  border-radius: 20px;
  background: rgba(22, 57, 74, .72);
  backdrop-filter: blur(10px);
}
.cta__form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.cta__form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted-dark);
}
.cta__form input, .cta__form textarea {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--light);
  background: transparent;
  border: 1px solid var(--hairline-dark);
  border-radius: 12px;
  padding: 14px 16px;
  transition: border-color .25s ease;
  resize: vertical;
}
.cta__form input:focus, .cta__form textarea:focus {
  outline: none;
  border-color: var(--accent-light);
}
.cta__form button { margin-top: 6px; align-self: flex-start; }
.cta__form-note { font-size: 13px; color: var(--muted-dark); font-family: var(--font-body); text-transform: none; letter-spacing: 0; }
.cta__form-note a { color: var(--accent-light); text-underline-offset: 3px; }
.cta__form-note a:hover { color: var(--light); }
.cta__form-title { margin-bottom: 6px; }
.cta__form.is-sent input, .cta__form.is-sent textarea, .cta__form.is-sent button { opacity: .45; pointer-events: none; }
.cta__form-success { font-size: 15px; color: var(--light); background: rgba(255, 255, 255, .07); border: 1px solid var(--hairline-dark); border-radius: 12px; padding: 14px 18px; }
.cta__form-success[hidden] { display: none; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--hairline-dark); }
.footer__inner {
  max-width: var(--w-max);
  margin: 0 auto;
  padding: 64px var(--pad-x) 48px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.footer__brand { font-family: var(--font-display); font-weight: 700; font-size: 22px; }
.footer__brand span { color: var(--accent-light); }
.footer__tag { color: var(--muted-dark); font-size: 15px; }
.footer__links { display: flex; gap: 24px; margin-top: 14px; }
.footer__links a { font-size: 14px; color: var(--muted-dark); }
.footer__links a:hover { color: var(--light); }
.footer__copy { font-family: var(--font-mono); font-size: 12px; color: var(--muted-dark); margin: 0; }
.footer__top {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1.2fr 1fr;
  gap: 40px;
  align-items: start;
}
.footer__brandcol { max-width: 340px; }
.footer__brandcol .footer__tag { margin-top: 8px; }
.btn--footer { margin-top: 22px; }
.footer__col { display: flex; flex-direction: column; gap: 10px; }
.footer__coltitle {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: 6px;
}
.footer__col a { font-size: 14px; color: var(--muted-dark); }
.footer__col a:hover { color: var(--light); }
.footer__addr { font-style: normal; font-size: 14px; line-height: 1.65; color: var(--muted-dark); margin-bottom: 6px; }
.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px 32px;
  flex-wrap: wrap;
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid var(--hairline-dark);
}
.footer__note-legal {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.03em;
  color: var(--muted-dark);
}
@media (max-width: 760px) {
  .footer__top { grid-template-columns: 1fr 1fr; gap: 32px 24px; }
  .footer__brandcol { grid-column: 1 / -1; max-width: none; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 860px) {
  .nav__links { display: none; }
  .hero__scrollhint { display: none; }
  .features__grid { grid-template-columns: 1fr; }
  .feature-card { min-height: 0; }
  .feature-card__visual { padding-top: 22px; margin-bottom: 20px; }
  .cta__form-row { grid-template-columns: 1fr; }
  .chaos__phases { flex-direction: row; gap: 14px; left: 50%; transform: translateX(-50%); top: auto; bottom: 28px; }
  .chaos__phase i { margin-right: 5px; }
  .statements__progress { right: 14px; }
  .process__wrap { padding-left: 40px; }
  .process__line { left: 11px; }
  .process__num { width: 48px; height: 48px; font-size: 19px; margin-left: -40px; left: -13px; }
}

/* ==========================================================================
   Reduced Motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .reveal-line { opacity: 1; transform: none; transition: none; }
  .hero__scrollline { animation: none; }
  .statements__stage { height: auto; }
  .statements__sticky { position: static; height: auto; flex-direction: column; gap: 40px; padding: 40px 0 100px; }
  .statements__item { position: static; opacity: 1; transform: none; }
  .statements__progress { display: none; }
  .chaos__stage { height: auto; }
  .chaos__sticky { position: static; height: auto; min-height: 70vh; }
  .chaos__copy { position: static; opacity: 1; transform: none; padding: 100px var(--pad-x); }
  .chaos__copy-item { position: static; opacity: 1; transform: none; padding: 0; }
  .chaos__copy-item + .chaos__copy-item { margin-top: 72px; }
  #chaosCanvas { display: none; }
  .process__line path { stroke-dashoffset: 0; }
}
