/* Homepage "Zwerm naar de kern" (29-9-2026), de opzet van het gekozen concept:
   schermhoge scènes, tekst links, rechts een deeltjeswereld die per scène van vorm
   verandert (js/home.js), en een rail met hoofdstukken. Geldt alleen voor
   body.home-v2 (NL en EN index) en is bewust altijd donker: de homepage laadt geen
   theme-init.js en heeft geen themaknop. Componenten uit style.css (knoppen,
   formuliervelden, demo-berichten, scanlijst) worden hergebruikt en hier alleen
   in de rustige stijl van het concept gezet. */

.home-v2 {
  --soft-line: rgba(244, 244, 242, 0.1);
  --glass: rgba(22, 24, 30, 0.62);
  background: var(--dark);
  background-image: radial-gradient(circle at 78% 18%, rgba(192, 90, 46, 0.12), transparent 55%);
  background-attachment: fixed;
  font-size: 18px;
  line-height: 1.6;
}

/* De wereld en de sluier die de tekstkant rustig houdt */
.home-world { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.home-veil {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, rgba(16, 18, 22, 0.9) 0%, rgba(16, 18, 22, 0.62) 36%, rgba(16, 18, 22, 0) 58%);
}
.home-v2 main { position: relative; z-index: 2; }
.home-v2 .site-footer { position: relative; z-index: 2; background: var(--dark); }

/* Header: dezelfde navigatie als de rest van de site, in de lichte stijl van het concept */
.home-v2 .site-header {
  background: linear-gradient(180deg, rgba(16, 18, 22, 0.95) 30%, rgba(16, 18, 22, 0));
  -webkit-backdrop-filter: none; backdrop-filter: none;
  border-bottom-color: transparent;
}
.home-v2 .site-header.scrolled { border-bottom-color: transparent; }
@media (min-width: 1301px) {
  .home-v2 nav.main-nav { gap: 18px; }
  .home-v2 nav.main-nav > a:not(.btn):not(.lang-toggle) { font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.01em; }
}

/* Scènes */
.scene {
  min-height: 100svh;
  display: flex; align-items: center;
  padding-block: 16vh;
  padding-inline: max(16px, 6vw);
}
.scene.first { padding-top: calc(env(safe-area-inset-top, 0px) + 120px); }
.copy { max-width: min(36rem, 44vw); min-width: 0; display: grid; gap: 22px; }
.copy.wide { max-width: min(41rem, 48vw); }
.home-v2 .scene h1, .home-v2 .scene h2, .home-v2 .scene h3 { margin: 0; color: var(--light); text-wrap: balance; }
.home-v2 .scene h1 { font-size: clamp(2.6rem, 5.2vw, 4.6rem); line-height: 1.08; }
.home-v2 .scene h2 { font-size: clamp(2rem, 3.4vw, 3rem); line-height: 1.1; }
.home-v2 .scene h3 { font-size: 1.2rem; line-height: 1.25; }
.home-v2 .scene p { margin: 0; }
.home-v2 .kicker {
  margin: 0; font-size: 13px; letter-spacing: 0.06em; text-transform: none; color: var(--grey);
}
.home-v2 .kicker::before { content: "> "; color: var(--terracotta); }
.home-v2 #hero-typer { min-height: 1.6em; }
.home-v2 .lead { font-size: clamp(1.05rem, 1.35vw, 1.2rem); color: var(--text); }
.home-v2 .actions { display: flex; flex-wrap: wrap; gap: 12px; }
.home-v2 .small-links { font-size: 15.5px; color: var(--grey); }
.home-v2 .small-links a { color: var(--light); text-decoration: underline; text-decoration-color: rgba(192, 90, 46, 0.6); text-underline-offset: 3px; }
.home-v2 .small-links a:hover { color: var(--terracotta); }

/* De omkering: vijf punten naast elkaar, pakket tegenover datalaag */
.versus { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 22px; }
.vs-head { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.04em; color: var(--grey); padding-bottom: 8px; }
.vs-head.is-new { color: var(--terracotta); }
.versus p { position: relative; padding: 11px 0 11px 22px; border-top: 1px solid var(--soft-line); font-size: 15.5px; line-height: 1.5; }
.versus p::before { position: absolute; left: 0; top: 11px; font-family: var(--font-mono); font-size: 13px; }
.vs-old { color: var(--grey); }
.vs-old::before { content: "\00d7"; color: var(--grey-mid); }
.vs-new { color: var(--light); }
.vs-new::before { content: "\2713"; color: var(--terracotta); }

/* Platform: de acht stations als knoppen, uitleg eronder */
.stations { display: flex; flex-wrap: wrap; gap: 8px; }
.station {
  font-family: var(--font-mono); font-size: 13px; color: var(--light);
  border: 1px solid var(--soft-line); border-radius: 999px; padding: 6px 13px;
  background: var(--glass); cursor: pointer;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, color 0.25s ease;
}
.station:hover { border-color: rgba(192, 90, 46, 0.6); }
.station[aria-selected="true"] { border-color: var(--terracotta); box-shadow: 0 0 20px rgba(192, 90, 46, 0.25); }
.station:focus-visible { outline: 2px solid var(--terracotta); outline-offset: 3px; }
.st-panel { border-left: 2px solid var(--terracotta); padding: 2px 0 2px 16px; display: grid; gap: 6px; min-height: 8.6em; align-content: start; }
.st-panel[hidden] { display: none; }
.st-panel p { font-size: 16px; }
.st-panel .fact { font-family: var(--font-mono); font-size: 12px; color: var(--grey); }
.st-hint { font-family: var(--font-mono); font-size: 12px; color: var(--grey-mid); }

/* Oplossingen en garanties: compacte lijst in twee kolommen */
.item-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; }
.item-list li { padding: 11px 0; border-top: 1px solid var(--soft-line); display: grid; gap: 2px; align-content: start; }
.item-list strong { color: var(--light); font-weight: 600; font-size: 16px; line-height: 1.35; }
.item-list span { font-size: 14.5px; line-height: 1.5; color: var(--grey); }
.item-list span a { color: var(--light); }
.item-list.checks strong::before { content: "\2713  "; color: var(--terracotta); white-space: pre; }

/* Terminalvensters (demo en scan): het rustige venster uit het concept */
.home-v2 .demo-shell {
  max-width: none; margin: 0; background: var(--panel);
  border: 1px solid var(--soft-line); border-radius: 14px;
  box-shadow: 0 0 40px rgba(192, 90, 46, 0.08);
}
.home-v2 .demo-bar { background: transparent; border-bottom-color: var(--soft-line); padding: 10px 14px; font-size: 11px; }
.home-v2 .demo-bar i { background: #2A2E37; }
.home-v2 .demo-body { min-height: 300px; padding: 18px; gap: 12px; }
.home-v2 .msg { max-width: 92%; font-size: 15px; }
.home-v2 .demo-input { background: transparent; border-top-color: var(--soft-line); font-size: 14px; padding: 13px 18px; }
.home-v2 .scan-body { padding: 18px 20px; }
.home-v2 .scan-list { gap: 11px; }
.home-v2 .scan-list li { font-size: 14.5px; line-height: 1.5; }

/* Groeipad: genummerde stappen, de actieve stap staat ook in de zwerm */
.steps { list-style: none; margin: 0; padding: 0; display: grid; counter-reset: step; }
.steps li {
  display: grid; grid-template-columns: 2.4rem 1fr; column-gap: 12px; row-gap: 2px;
  padding: 13px 0; border-top: 1px solid var(--soft-line); counter-increment: step;
  transition: border-color 0.3s ease;
}
.steps li::before {
  content: counter(step, decimal-leading-zero); font-family: var(--font-mono); font-size: 13px;
  color: var(--terracotta); padding-top: 3px; grid-row: span 3;
}
.steps .note { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.04em; color: var(--grey-mid); }
.steps strong { color: var(--light); font-weight: 600; font-size: 17px; line-height: 1.35; }
.steps p { font-size: 15px; line-height: 1.55; color: var(--grey); }
.steps li.on { border-top-color: rgba(192, 90, 46, 0.7); }
.steps li.on p { color: var(--text); }

/* Slotzinnen */
.closing { font-family: var(--font-serif); font-weight: 600; font-size: clamp(1.2rem, 1.7vw, 1.45rem); line-height: 1.35; color: var(--light); }
.closing .dim { color: var(--grey); }

/* De belofte blijft staan terwijl je doorscrolt: de sectie is hoger dan het scherm
   en de scène erin plakt bovenaan, zodat het woordmerk een rustpunt is en je er
   niet in één beweging overheen scrolt. js/home.js houdt de zwerm zo lang op &repeat. */
.scene-pin { height: 230vh; }
.scene-pin > .scene { position: sticky; top: 0; }

/* De belofte: gecentreerd onder het &repeat-woordmerk */
.scene.final { justify-content: center; align-items: flex-end; padding-bottom: 7vh; }
.final .copy { max-width: 54rem; text-align: center; justify-items: center; }
.pledges { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; width: 100%; }
.pledge { border: 1px solid var(--soft-line); border-radius: 14px; padding: 16px 14px; background: rgba(22, 24, 30, 0.72); display: grid; gap: 4px; align-content: start; }
.pledge b { font-family: var(--font-serif); font-weight: 600; font-size: 2rem; color: var(--light); line-height: 1.1; font-variant-numeric: tabular-nums; }
.pledge b small { font-size: 0.5em; color: var(--grey); font-weight: 600; }
.pledge > span { font-family: var(--font-mono); font-size: 11.5px; color: var(--grey); letter-spacing: 0.03em; line-height: 1.45; }

/* Formuliervelden in het contactvenster (js/contact.js) op de homepage */
.home-v2 .contact-form { margin-top: 4px; }
.home-v2 .field label { color: var(--grey); }
.home-v2 .field input, .home-v2 .field textarea { background: rgba(22, 24, 30, 0.85); }

/* Rail met hoofdstukken */
.rail { position: fixed; right: max(16px, 2.2vw); top: 50%; transform: translateY(-50%); z-index: 15; display: grid; gap: 13px; list-style: none; margin: 0; padding: 0; }
.rail a { display: flex; align-items: center; justify-content: flex-end; gap: 10px; text-decoration: none; font-family: var(--font-mono); font-size: 11px; color: var(--grey); letter-spacing: 0.04em; }
.rail a span { opacity: 0; transform: translateX(6px); transition: opacity 0.25s, transform 0.25s; }
.rail a i { width: 7px; height: 7px; border-radius: 50%; border: 1px solid var(--grey); transition: background 0.25s, border-color 0.25s, transform 0.25s; }
.rail a.on span, .rail a:hover span, .rail a:focus-visible span { opacity: 1; transform: none; color: var(--light); }
.rail a.on i { background: var(--terracotta); border-color: var(--terracotta); transform: scale(1.3); }
.rail a:focus-visible { outline: 2px solid var(--terracotta); outline-offset: 3px; }

@media (max-width: 1100px) {
  .rail { display: none; }
}
/* Mobiel: elke scène begint met een vrij venster (bovenste helft van het scherm) waarin
   de nieuwe vorm ontstaat; daarna schuift de tekst als één doorlopend vlak van rand tot
   rand omhoog, met een zachte overloop naar de zwerm. js/home.js laat de vorm op mobiel
   al af zijn zodra de bovenkant van de scène bovenin het scherm staat. */
@media (max-width: 760px) {
  .home-v2 { font-size: 17px; }
  .home-veil { display: none; }
  .scene { flex-direction: column; align-items: stretch; justify-content: flex-start; padding: 54svh max(16px, 6vw) 0; }
  .scene.first { padding-top: 52svh; }
  .copy, .copy.wide {
    max-width: none; width: auto; gap: 18px;
    margin-inline: calc(-1 * max(16px, 6vw));
    padding: 64px max(20px, 6vw) 56px;
    background: linear-gradient(180deg, rgba(16, 18, 22, 0) 0, rgba(16, 18, 22, 0.9) 60px, rgba(16, 18, 22, 0.96) 140px);
  }
  .home-v2 .scene h2 { font-size: clamp(1.8rem, 8vw, 2.2rem); }
  .versus { grid-template-columns: minmax(0, 1fr); }
  .vs-head { display: none; }
  .versus .vs-new { border-top: 0; padding-top: 2px; }
  .item-list { grid-template-columns: minmax(0, 1fr); }
  .item-list li { padding: 10px 0; }
  .steps li { padding: 12px 0; }
  .home-v2 .demo-body { min-height: 260px; padding: 14px; }
  .home-v2 .msg { max-width: 100%; }
  .stations { gap: 6px; }
  .station { font-size: 12.5px; padding: 5px 11px; }

  /* Belofte: het woordmerk bovenin, een compact tekstvlak eronder, samen op één scherm. */
  .scene-pin > .scene.final { padding-top: 0; justify-content: flex-end; min-height: 100svh; }
  .final .copy { gap: 14px; padding-top: 48px; padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 28px); }
  .final .closing { font-size: 1.05rem; }
  .pledges { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .pledge { padding: 10px 10px; }
  .pledge b { font-size: 1.45rem; }
  .pledge > span { font-size: 10.5px; }
}
/* Te lage schermen om woordmerk en tekst samen te tonen: dan niet vastpinnen. */
@media (max-width: 760px) and (max-height: 700px) {
  .scene-pin { height: auto; }
  .scene-pin > .scene { position: relative; }
  .scene-pin > .scene.final { padding-top: 42svh; }
}
@media print { .home-world, .home-veil, .rail { display: none; } }

/* Verwijzing naar het tv-item (sinds 4-10-2026): bewust geen video op de
   homepage, alleen een rustige regel onder de knoppen in de eerste scène.
   Leidt naar ai-native-data-layer.html#tv. */
.home-v2 .tv-note {
  justify-self: start;
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.02em;
  color: var(--grey); text-decoration: none;
  padding: 6px 12px 6px 6px;
  border: 1px solid var(--soft-line); border-radius: 999px;
  background: rgba(16, 18, 22, 0.55);
  transition: color .2s ease, border-color .2s ease;
}
.home-v2 .tv-dot {
  position: relative; flex: none; width: 22px; height: 22px; border-radius: 50%;
  background: var(--terracotta);
}
.home-v2 .tv-dot::after {
  content: ""; position: absolute; left: 55%; top: 50%; transform: translate(-50%, -50%);
  border-style: solid; border-width: 5px 0 5px 8px;
  border-color: transparent transparent transparent #F4F4F2;
}
.home-v2 .tv-note:hover, .home-v2 .tv-note:focus-visible { color: var(--light); border-color: var(--terracotta); }
