/* ==========================================================================
   Northlightframe Bespoke V6 · Drei 100 % randlose, radikal individuelle Welten
   - W02 (/webdesign/):         Randloses Licht-Atelier · Warmes Papier #F4F1EA
                                Rechts-randloser Maus-Scrub-Film + 100%-Foto-Panorama
                                + frei im Papier stehender 3D-Laptop + kastenlose Akte 2–5
   - W03 (/software/):          Randlose Schaltwarte · Tiefes Obsidian #070A0F
                                Zentrierte Typografie + randloser 100%-Cinema-Horizont
                                + schwebendes Hardware-Makro + freies 27″-Display + Akte 2–5
   - W04 (/ki-unterstuetzung/): Randloser Tresor-Korridor · Vulkan-Schwarz #050907
                                Radial verschmolzener Tresor-Film + GPU-Taschenlampe
                                + schwebende Dual-GPU-Workstation mit Raum-Aura + Akte 2–5
   - 0 externe Hosts · 0 px Überlauf (1440px & 390px) · WCAG >= 4.5:1 · Still sicher
   ========================================================================== */

/* ---------- Gemeinsame Basis-Helfer für randlose Cinema-Flächen & 3D-Decks ---------- */
.v5-cinema-frame {
  position: relative;
  overflow: hidden;
  background: transparent;
  isolation: isolate;
}

.v5-cinema-frame img.v5-cinema-poster,
.v5-cinema-frame video.v5-cinema-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.v5-cinema-frame video.v5-cinema-video {
  opacity: 0;
  transition: opacity 420ms cubic-bezier(0.16, 1, 0.3, 1);
}

.v5-cinema-frame video.v5-cinema-video.is-playing,
.v5-cinema-frame video.v5-cinema-video.is-v6-ready,
.v5-cinema-frame.is-v6-scrubbing video.v5-cinema-video,
.v5-cinema-frame.is-v6-paused video.v5-cinema-video {
  opacity: 1;
}

html.is-still .v5-cinema-frame video.v5-cinema-video {
  opacity: 0 !important;
}

@media (prefers-reduced-motion: reduce) {
  .v5-cinema-frame video.v5-cinema-video {
    opacity: 0 !important;
  }
}

/* Flüsterleise Live-Kennzeichnung ohne Pill-Rahmen & ohne Schatten */
.v5-badge-live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.v5-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: none;
  flex-shrink: 0;
}

/* Flüsterleise, rahmenlose 3D-Rig- & Welten-Hinweise (0 Box, 0 Rahmen, 0 Schatten) */
.v5-rig-hint,
.v5-w02-hint,
.v5-w03-hint,
.v5-w04-hint {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 4px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sw-mute);
  width: fit-content;
  max-width: 100%;
}

.v5-rig-hint-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--sw-a1);
  box-shadow: none;
  flex-shrink: 0;
}

.v5-rig-stage {
  min-height: clamp(430px, 55vh, 600px);
}

.v5-rig-stage-wide {
  min-height: clamp(460px, 58vh, 630px);
}

.v5-rig-deck {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px 0 4px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.v5-rig-keys-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 18px;
  border-bottom: 1px solid color-mix(in srgb, var(--sw-line) 78%, transparent);
  padding-bottom: 2px;
}

.v5-rig-keys {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
}

/* Flüsterleise 1-px-Text-Reiter statt lauter Pill-Leisten */
.v5-key-pill {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 2px;
  margin-bottom: -3px;
  border: 0;
  border-bottom: 1px solid transparent;
  border-radius: 0;
  background: transparent;
  color: var(--sw-mute);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transition: border-color 180ms ease, color 180ms ease;
}

.v5-key-pill:hover,
.v5-key-pill:focus-visible {
  color: var(--sw-fg);
  border-bottom-color: var(--sw-line-strong);
  transform: none;
  outline: none;
}

.v5-key-pill[aria-pressed="true"],
.v5-key-pill.is-active {
  background: transparent;
  border-color: transparent;
  border-bottom: 1px solid var(--sw-a1);
  color: var(--sw-fg);
  font-weight: 600;
}

/* Auch den Anstoßen-Impuls im 3D-Deck auf 1-px-Haarlinien-Ruhe abstimmen */
.v5-rig-deck .v4-ctrl-pill {
  padding: 6px 2px;
  border: 0;
  border-bottom: 1px solid var(--sw-line-strong);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  color: var(--sw-fg);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.v5-rig-deck .v4-ctrl-pill:hover,
.v5-rig-deck .v4-ctrl-pill:focus-visible {
  background: transparent;
  border-bottom-color: var(--sw-a1);
  color: var(--sw-a1);
}

.v5-rig-sliders-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 18px;
  padding-top: 6px;
  border-top: 0;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--sw-mute);
}

.v5-rig-sliders {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
}

.v5-slider-ctrl {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--sw-fg);
}

.v5-slider-ctrl span {
  color: var(--sw-mute);
}

.v5-slider-ctrl output,
.v5-slider-ctrl strong {
  min-width: 3.2ch;
  color: var(--sw-a1);
  font-weight: 600;
}

.v5-slider-ctrl input[type="range"] {
  width: 96px;
  accent-color: var(--sw-a1);
  cursor: pointer;
}

/* ==========================================================================
   WELT W02 (/webdesign/) · RANDLOSES LICHT-ATELIER · WARMES PAPIER #F4F1EA
   Rechts-randloser Maus-Scrub-Film · 100%-Foto-Panorama · Freier 3D-Laptop
   ========================================================================== */
.v5-w02-opening {
  position: relative;
  background: #F4F1EA;
  color: #0E1116;
  padding: calc(var(--nav-h, 68px) + clamp(24px, 4vh, 48px)) 0 clamp(28px, 4vh, 52px);
  overflow: clip;
  border-bottom: 0;
}

.v5-w02-wrap {
  width: 100%;
  max-width: 1360px;
  margin-inline: auto;
  padding-inline: clamp(18px, 4vw, 56px);
}

.v5-w02-masthead {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  padding-bottom: 14px;
  margin-bottom: clamp(20px, 3.2vh, 38px);
  border-bottom: 1px solid rgba(14, 17, 22, 0.12);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: #544E44;
}

.v5-w02-masthead strong {
  color: #85540E;
  font-weight: 600;
}

/* Asymmetrisches Full-Bleed-Hero-Grid: links Text im Papier, rechts Film bis an den Rand */
.v5-w02-edgeless-stage {
  position: relative;
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 1.18fr);
  align-items: center;
  gap: 0;
}

.v5-w02-copy {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: clamp(18px, 2.3vh, 26px);
  padding-inline: clamp(18px, 4vw, 56px);
  padding-block: clamp(12px, 2vh, 28px);
}

/* Saubere Zentrierungs-Ausrichtung auf breiten Screens (>1440px) */
@media (min-width: 1021px) {
  .v5-w02-edgeless-stage {
    padding-left: max(clamp(18px, 4vw, 56px), calc((100% - 1360px) / 2));
    grid-template-columns: minmax(0, 590px) minmax(0, 1fr);
    gap: clamp(12px, 2vw, 28px);
  }

  .v5-w02-copy {
    padding-inline: 0;
  }
}

.v5-w02-title {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2.65rem, 5.2vw, 5.1rem);
  font-weight: 640;
  line-height: 0.96;
  letter-spacing: -0.038em;
  color: #0E1116;
  text-wrap: balance;
}

.v5-w02-title span {
  display: block;
  margin-top: 0.08em;
  color: #5A544A;
  font-weight: 500;
}

.v5-w02-lead {
  margin: 0;
  max-width: 50ch;
  font-size: clamp(1.02rem, 1.22vw, 1.16rem);
  line-height: 1.62;
  color: #363B44;
}

.v5-w02-opening .sw-btn-primary {
  background: #0E1116;
  border-color: #0E1116;
  color: #FAF8F3;
}

.v5-w02-opening .sw-btn-primary:hover {
  background: #85540E;
  border-color: #85540E;
}

.v5-w02-opening .sw-btn-ghost {
  background: transparent;
  border-color: rgba(14, 17, 22, 0.24);
  color: #0E1116;
}

.v5-w02-opening .sw-btn-ghost:hover {
  border-color: #85540E;
  background: rgba(14, 17, 22, 0.04);
}

.v5-w02-proof {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding-top: 20px;
  margin-top: 4px;
  border-top: 1px solid rgba(14, 17, 22, 0.12);
}

.v5-w02-proof div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.v5-w02-proof strong {
  font-family: var(--display);
  font-size: 1.12rem;
  font-weight: 640;
  color: #0E1116;
}

.v5-w02-proof span {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.05em;
  color: #544E44;
}

/* Rechts-randloser Kristall-Atelier-Film (KEIN Kasten, KEIN Rahmen, KEIN border-radius!) */
.v5-w02-cinema-bleed {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: clamp(410px, 58vh, 630px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  --v6-scrub-glow: #F2C98A;
  --v6-scrub-accent: #85540E;
}

.v5-w02-cinema-bleed .v5-cinema-frame {
  position: relative;
  width: 100%;
  height: clamp(410px, 58vh, 630px);
}

.v5-w02-cinema-whisper {
  position: relative;
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 20px;
  padding: 6px clamp(18px, 4vw, 56px) 0 12px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #5A544A;
}

.v5-w02-cinema-whisper strong {
  color: #85540E;
  font-weight: 600;
}

/* ---------- W02: Randlose 100%-Foto-Panoramafahrt ([data-v6-lens] + ← / →) ---------- */
.v5-w02-dance-section {
  position: relative;
  background: #F4F1EA;
  color: #0E1116;
  padding: clamp(32px, 5vh, 64px) 0 clamp(44px, 6.5vh, 80px);
  overflow: clip;
  border-bottom: 0;
}

.v5-w02-dance-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px 28px;
  margin-bottom: clamp(22px, 3.5vh, 40px);
}

.v5-w02-dance-head h2 {
  margin: 6px 0 0;
  font-family: var(--display);
  font-size: clamp(1.65rem, 2.8vw, 2.55rem);
  line-height: 1.08;
  letter-spacing: -0.026em;
  color: #0E1116;
}

.v5-w02-dance-head p.v5-dance-note {
  margin: 0;
  max-width: 44ch;
  font-size: 0.94rem;
  line-height: 1.55;
  color: #464B55;
}

/* Vollflächiges, überlappendes Editorial-Panorama ohne Rahmen */
.v5-photo-dance {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(0, 1.24fr) minmax(0, 0.96fr);
  gap: 0;
  align-items: center;
  padding: clamp(18px, 3vh, 36px) 0;
}

.v5-photo-card {
  position: relative;
  margin: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  cursor: pointer;
  outline: none;
  transform: translate3d(var(--v5-px, 0px), calc(var(--v5-py, 0px) + var(--v5-offset-y, 0px)), 0) scale(var(--v5-scale, 1));
  transition:
    transform 620ms cubic-bezier(0.16, 1, 0.3, 1),
    filter 460ms ease,
    opacity 420ms ease;
  will-change: transform;
}

.v5-photo-card[data-slot="0"] {
  aspect-ratio: 4 / 3.1;
  margin-right: -3.5%;
  --v5-offset-y: -18px;
  z-index: 1;
}

.v5-photo-card[data-slot="1"] {
  aspect-ratio: 4 / 3.85;
  --v5-offset-y: 4px;
  z-index: 2;
}

.v5-photo-card[data-slot="2"] {
  aspect-ratio: 4 / 3.1;
  margin-left: -3.5%;
  --v5-offset-y: 20px;
  z-index: 1;
}

.v5-photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.v5-photo-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  padding: 28px 20px 14px;
  background: linear-gradient(180deg, transparent 0%, rgba(244, 241, 234, 0.88) 74%, rgba(244, 241, 234, 0.96) 100%);
  border: 0;
  border-radius: 0;
  color: #0E1116;
  display: flex;
  flex-direction: column;
  gap: 2px;
  pointer-events: none;
  transition: opacity 320ms ease, transform 360ms cubic-bezier(0.16, 1, 0.3, 1);
}

.v5-photo-caption span {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: #85540E;
}

.v5-photo-caption strong {
  font-family: var(--display);
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.2;
}

/* Gegenseitige Verdrängung & Lichtfokus im offenen Panorama */
.v5-photo-card.is-active {
  --v5-scale: 1.055;
  z-index: 5;
  filter: brightness(1.04) contrast(1.03);
}

.v5-photo-card.is-active .v5-photo-caption {
  transform: translateY(-2px);
}

.v5-photo-card.is-pushed-left {
  --v5-px: -22px;
  --v5-scale: 0.945;
  z-index: 1;
  filter: brightness(0.92) saturate(0.84);
}

.v5-photo-card.is-pushed-right {
  --v5-px: 22px;
  --v5-scale: 0.945;
  z-index: 1;
  filter: brightness(0.92) saturate(0.84);
}

.v5-photo-card:focus-visible {
  outline: 2px solid #85540E;
  outline-offset: -4px;
}

/* W02 Randlose 3D-Laptop-Werkbank — fließt nahtlos im offenen Papier weiter */
.v5-w02-workbench {
  position: relative;
  background:
    radial-gradient(ellipse 56% 52% at 64% 48%, rgba(213, 155, 66, 0.10), transparent 64%),
    #F4F1EA;
  color: #0E1116;
  padding: clamp(44px, 6.5vh, 84px) clamp(18px, 4vw, 56px) clamp(56px, 8vh, 96px);
  overflow: clip;
  border-bottom: 0;
}

.v5-w02-workbench .v4-showcase-grid {
  width: 100%;
  max-width: 1360px;
}

.v5-w02-workbench .v4-showcase-copy h2 {
  color: #0E1116;
}

.v5-w02-workbench .v4-showcase-copy p {
  color: #3E434D;
}

.v5-w02-workbench .v5-rig-hint,
.v5-w02-workbench .v5-w02-hint {
  color: #4D525C;
}

.v5-w02-workbench .v5-rig-keys-row {
  border-bottom-color: rgba(14, 17, 22, 0.14);
}

.v5-w02-workbench .v5-key-pill {
  background: transparent;
  border: 0;
  border-bottom: 1px solid transparent;
  color: #4D525C;
}

.v5-w02-workbench .v5-key-pill:hover,
.v5-w02-workbench .v5-key-pill:focus-visible {
  color: #0E1116;
  border-bottom-color: rgba(14, 17, 22, 0.34);
}

.v5-w02-workbench .v5-key-pill.is-active,
.v5-w02-workbench .v5-key-pill[aria-pressed="true"] {
  background: transparent;
  border-bottom: 1px solid #85540E;
  color: #0E1116;
}

.v5-w02-workbench .v5-rig-deck .v4-ctrl-pill {
  color: #0E1116;
  border-bottom-color: rgba(14, 17, 22, 0.28);
}

.v5-w02-workbench .v5-rig-deck .v4-ctrl-pill:hover {
  border-bottom-color: #85540E;
  color: #85540E;
}

.v5-w02-workbench .v5-rig-deck {
  background: transparent;
  border-top: 0;
}

/* ==========================================================================
   WELT W03 (/software/) · RANDLOSE SCHALTWARTE · TIEFES OBSIDIAN #070A0F
   Monumentale Mitte + 100%-Cinema-Horizont + Schwebendes Makro + Freies 27″-3D
   ========================================================================== */
.v5-w03-cockpit {
  position: relative;
  background:
    radial-gradient(ellipse 68% 42% at 50% 0%, rgba(46, 230, 166, 0.09), transparent 62%),
    #070A0F;
  color: #EDF2F8;
  padding: calc(var(--nav-h, 68px) + clamp(24px, 3.8vh, 44px)) 0 0;
  overflow: clip;
  border-bottom: 0;
}

.v5-w03-wrap {
  width: 100%;
  max-width: 1360px;
  margin-inline: auto;
  padding-inline: clamp(18px, 4vw, 56px);
}

.v5-w03-telebar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(237, 242, 248, 0.1);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: #93A2B6;
}

.v5-w03-telebar strong {
  color: #2EE6A6;
  font-weight: 500;
}

.v5-w03-center-head {
  text-align: center;
  max-width: 960px;
  margin: clamp(28px, 4.5vh, 52px) auto clamp(24px, 4vh, 42px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.v5-w03-center-head .v4-kicker {
  justify-content: center;
}

.v5-w03-center-head .v4-kicker::after {
  content: "";
  width: 24px;
  height: 1px;
  background: currentColor;
  flex-shrink: 0;
}

.v5-w03-title {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2.75rem, 6vw, 5.5rem);
  font-weight: 660;
  line-height: 0.95;
  letter-spacing: -0.036em;
  color: #F4F7FC;
  text-wrap: balance;
}

.v5-w03-title span {
  color: #8F9DB2;
  font-weight: 500;
}

.v5-w03-lead {
  margin: 0;
  max-width: 60ch;
  font-size: clamp(1rem, 1.22vw, 1.15rem);
  line-height: 1.6;
  color: #A6B2C3;
}

.v5-w03-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 4px;
}

/* Randloser 100%-Cinema-Horizont — blutet über die volle Breite und schmilzt ins Obsidian */
.v5-w03-horizon {
  position: relative;
  width: 100%;
  margin-top: clamp(14px, 2.5vh, 28px);
  --v6-scrub-glow: #2EE6A6;
  --v6-scrub-accent: #2EE6A6;
}

.v5-w03-horizon-frame {
  position: relative;
  width: 100%;
  height: clamp(320px, 50vh, 560px);
}

.v5-w03-horizon-caption {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px 20px;
  padding-top: 10px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: #93A2B6;
}

.v5-w03-horizon-caption strong {
  color: #2EE6A6;
}

/* Offene Architektur-Kennzahlen-Zeile (keine Bento-Box!) */
.v5-w03-metrics-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px 28px;
  padding: clamp(28px, 4vh, 44px) 0;
  margin-top: clamp(14px, 2vh, 24px);
  border-top: 1px solid rgba(237, 242, 248, 0.1);
}

.v5-w03-metric-open {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.v5-w03-metric-open strong {
  font-family: var(--display);
  font-size: clamp(1.35rem, 2.1vw, 1.85rem);
  font-weight: 640;
  line-height: 1.06;
  color: #F4F7FC;
}

.v5-w03-metric-open span {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #93A2B6;
}

/* Randlos schwebendes CNC-Hardware-Makro mit Maus-Lichtkegel (fließt direkt ins 3D-Display!) */
.v5-w03-macro-bridge {
  position: relative;
  background: #070A0F;
  color: #EDF2F8;
  padding: clamp(36px, 5.5vh, 72px) 0 clamp(24px, 4vh, 48px);
  overflow: clip;
  border-bottom: 0;
}

.v5-w03-macro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.85fr);
  gap: clamp(24px, 4vw, 60px);
  align-items: center;
}

.v5-w03-macro-figure {
  position: relative;
  margin: 0;
  width: 100%;
  aspect-ratio: 16 / 10;
  transform: translate3d(0, var(--v5-glide-y, 0px), 0);
  will-change: transform;
}

.v5-w03-macro-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.v5-w03-macro-copy {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.v5-w03-macro-copy h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.65rem, 2.8vw, 2.55rem);
  line-height: 1.07;
  letter-spacing: -0.025em;
  color: #F4F7FC;
}

.v5-w03-macro-copy p {
  margin: 0;
  color: #A2AEC0;
  line-height: 1.62;
}

.v5-w03-macro-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  padding-top: 10px;
  border-top: 1px solid rgba(237, 242, 248, 0.1);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #2EE6A6;
}

/* W03: Randlos frei schwebendes 27″ Studio-Display + CNC-Pult + Smartphone */
.v5-w03-rig-section {
  position: relative;
  background:
    radial-gradient(ellipse 64% 52% at 50% 54%, rgba(46, 230, 166, 0.09), transparent 64%),
    radial-gradient(ellipse 46% 40% at 78% 72%, rgba(255, 120, 73, 0.06), transparent 60%),
    #070A0F;
  color: #EDF2F8;
  padding: clamp(44px, 6.5vh, 84px) 0 clamp(56px, 8vh, 96px);
  overflow: clip;
  border-bottom: 0;
}

.v5-w03-rig-header {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 18px 40px;
  align-items: end;
  margin-bottom: clamp(18px, 3vh, 30px);
}

.v5-w03-rig-header h2 {
  margin: 8px 0 0;
  font-family: var(--display);
  font-size: clamp(1.85rem, 3.1vw, 2.8rem);
  line-height: 1.06;
  letter-spacing: -0.026em;
  color: #F4F7FC;
}

.v5-w03-rig-header p {
  margin: 0;
  color: #A2AEC0;
  line-height: 1.6;
}

.v5-sync-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.07em;
  color: #2EE6A6;
}

/* ==========================================================================
   WELT W04 (/ki-unterstuetzung/) · RANDLOSER TRESOR-KORRIDOR · #050907
   Radial verschmolzener Basalt-Tresor · GPU-Taschenlampe · Dual-GPU + Aura
   ========================================================================== */
.v5-w04-opening {
  position: relative;
  background:
    radial-gradient(circle at 76% 24%, rgba(52, 211, 153, 0.09), transparent 46%),
    radial-gradient(circle at 18% 82%, rgba(229, 169, 78, 0.05), transparent 44%),
    #050907;
  color: #ECF5F1;
  padding: calc(var(--nav-h, 68px) + clamp(28px, 4.2vh, 52px)) 0 clamp(32px, 5vh, 64px);
  overflow: clip;
  border-bottom: 0;
}

.v5-w04-wrap {
  width: 100%;
  max-width: 1360px;
  margin-inline: auto;
  padding-inline: clamp(18px, 4vw, 56px);
}

.v5-w04-split {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  gap: clamp(28px, 5vw, 68px);
  align-items: start;
}

/* Linke 45% Sticky-Spalte · Ruhige Typografie ohne Box-Rahmen */
.v5-w04-sticky {
  position: sticky;
  top: calc(var(--nav-h, 68px) + 28px);
  display: flex;
  flex-direction: column;
  gap: clamp(18px, 2.4vh, 26px);
}

.v5-w04-title {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2.55rem, 4.8vw, 4.65rem);
  font-weight: 640;
  line-height: 0.97;
  letter-spacing: -0.034em;
  color: #F2FAF6;
  text-wrap: balance;
}

.v5-w04-title span {
  display: block;
  margin-top: 0.1em;
  color: #93AEA4;
  font-weight: 500;
}

.v5-w04-lead {
  margin: 0;
  max-width: 46ch;
  font-size: clamp(1rem, 1.18vw, 1.13rem);
  line-height: 1.64;
  color: #B4C8C0;
}

/* Offene Haarlinien-Beweisliste statt eingesperrter Box */
.v5-w04-proof-board {
  margin-top: 6px;
  border: 0;
  border-top: 1px solid rgba(52, 211, 153, 0.24);
  border-radius: 0;
  background: transparent;
}

.v5-w04-proof-row {
  display: grid;
  grid-template-columns: 7.2rem minmax(0, 1fr);
  gap: 12px;
  align-items: baseline;
  padding: 13px 0;
  border-bottom: 1px solid rgba(236, 245, 241, 0.1);
}

.v5-w04-proof-row strong {
  font-family: var(--display);
  font-size: 1.14rem;
  color: #34D399;
}

.v5-w04-proof-row span {
  font-size: 0.88rem;
  line-height: 1.45;
  color: #C7DBD3;
}

/* Rechte 55% Spalte: Randlos verschmolzener Basalt-Tresor + GPU-Taschenlampen-Makro */
.v5-w04-portal-col {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.v5-w04-video-portal {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 4.25;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  transform: translate3d(0, var(--v5-glide-y, 0px), 0);
  will-change: transform;
  --v6-scrub-glow: #34D399;
  --v6-scrub-accent: #34D399;
}

.v5-w04-portal-whisper {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px 16px;
  padding: 0 6px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: #97B0A6;
}

.v5-w04-portal-whisper strong {
  color: #34D399;
}

/* Randloses GPU-Kühlrippen-Makro mit Studio-Taschenlampen-Enthüllung */
.v5-w04-silicon-card {
  position: relative;
  width: 86%;
  margin: -34px auto 0 0;
  z-index: 3;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  transform: translate3d(0, var(--v5-glide-y, 0px), 0);
  will-change: transform;
}

.v5-w04-silicon-card img {
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
  display: block;
}

.v5-w04-silicon-cap {
  position: relative;
  z-index: 3;
  padding: 8px 6px 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px 14px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #9BB4AA;
  background: transparent;
  border-top: 0;
}

.v5-w04-silicon-cap strong {
  color: #E5A94E;
}

/* W04: Randlos schwebende Dual-GPU-Workstation mit lebendiger Raum-Aura (data-v6-aura) */
.v5-w04-rig-section {
  position: relative;
  background-color: #050907;
  color: #ECF5F1;
  padding: clamp(44px, 6.5vh, 88px) 0 clamp(56px, 8vh, 96px);
  overflow: clip;
  border-bottom: 0;
  --v6-w04-aura-a: rgba(229, 169, 78, 0.14);
  --v6-w04-aura-b: rgba(52, 211, 153, 0.08);
  transition: background-color 480ms ease;
}

.v5-w04-rig-section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 58% 58% at 34% 48%, var(--v6-w04-aura-a), transparent 64%),
    radial-gradient(ellipse 46% 48% at 72% 62%, var(--v6-w04-aura-b), transparent 62%);
  transition: opacity 420ms ease;
}

.v5-w04-rig-section[data-v6-aura="idle"] {
  --v6-w04-aura-a: rgba(120, 168, 158, 0.10);
  --v6-w04-aura-b: rgba(52, 211, 153, 0.05);
}

.v5-w04-rig-section[data-v6-aura="infer"] {
  --v6-w04-aura-a: rgba(229, 169, 78, 0.19);
  --v6-w04-aura-b: rgba(255, 132, 68, 0.09);
}

.v5-w04-rig-section[data-v6-aura="guard"] {
  --v6-w04-aura-a: rgba(52, 211, 153, 0.20);
  --v6-w04-aura-b: rgba(22, 163, 120, 0.09);
}

.v5-w04-rig-grid {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1360px;
  margin-inline: auto;
  padding-inline: clamp(18px, 4vw, 56px);
  display: grid;
  grid-template-columns: minmax(0, 7.2fr) minmax(0, 4.8fr);
  gap: clamp(24px, 4vw, 52px);
  align-items: center;
}

.v5-w04-console {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.v5-w04-console h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.85rem, 3vw, 2.7rem);
  line-height: 1.07;
  letter-spacing: -0.025em;
  color: #F2FAF6;
}

.v5-w04-console p {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.64;
  color: #A8C0B7;
}

/* Offene, rahmenlose Konsolen-Leiste (kein Kasten, kein Schatten!) */
.v5-w04-mode-panel,
.v5-mode-grid {
  border: 0;
  border-top: 1px solid rgba(236, 245, 241, 0.12);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 18px 0 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.v5-w04-mode-leds {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.v5-mode-led {
  padding: 10px 0 8px;
  border: 0;
  border-top: 1px solid rgba(236, 245, 241, 0.14);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.05em;
  color: #9AB5AA;
  transition: border-color 240ms ease, color 240ms ease;
}

.v5-mode-led strong {
  display: block;
  margin-bottom: 2px;
  color: #ECF5F1;
  font-size: 11px;
}

.v5-mode-led.is-on {
  border-top: 2px solid #34D399;
  color: #D7F8EA;
}

.v5-mode-led.is-on[data-mode-led="inferenz"] {
  border-top-color: #E5A94E;
  color: #FCE6BD;
}

.v5-w04-action-pair {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  padding-top: 6px;
}

.v5-w04-action-pair .v5-key-pill {
  margin-bottom: 0;
  border-bottom: 1px solid rgba(236, 245, 241, 0.24);
  color: #ECF5F1;
}

.v5-w04-action-pair .v5-key-pill:hover,
.v5-w04-action-pair .v5-key-pill:focus-visible,
.v5-w04-action-pair .v5-key-pill[aria-pressed="true"] {
  border-bottom-color: #34D399;
  color: #34D399;
}

/* ==========================================================================
   NAHTLOSER RANDLOSER GUSS: Opening → Foto → 3D → Signatur → Akte 2–5 (W02–W04)
   Exakte Farbton-Bindung ohne Kanten, Kasten-Kapseln oder Helligkeitssprünge
   ========================================================================== */
.v5-w02-workbench + .soty-sig-sec {
  border-top: 0;
  background: #F4F1EA;
}

.v5-w03-rig-section + .soty-sig-sec {
  border-top: 0;
  --sig-bg: #070A0F;
}

.v5-w04-rig-section + .soty-sig-sec {
  border-top: 0;
  --sig-bg: #050907;
}

/* W02 (/webdesign/) Akte 2–5: Harmonische Papier- & Nacht-Flächen ohne Kapsel-Box */
html[data-world="W02"] .sw-act[data-climate="night"] {
  --sw-bg: #0B0E14;
  --sw-bg2: #121721;
  --sw-fg: #EEF2F8;
  --sw-mute: #A4B0C2;
  --sw-a1: #DFAA52;
  --sw-line: rgba(238, 242, 248, 0.13);
  --sw-line-strong: rgba(238, 242, 248, 0.28);
}

html[data-world="W02"] .sw-act[data-climate="daylight"],
html[data-world="W02"] .sw-act[data-climate="warm"],
html[data-world="W02"] .sw-act:not([data-climate]) {
  --sw-bg: #F4F1EA;
  --sw-bg2: #EAE6DC;
  --sw-fg: #0E1116;
  --sw-mute: #464B55;
  --sw-a1: #85540E;
  --sw-line: rgba(14, 17, 22, 0.13);
  --sw-line-strong: rgba(14, 17, 22, 0.28);
}

/* W03 (/software/) Akte 2–5: Tiefes Obsidian #070A0F ↔ Blaupause #EDF2F8 */
html[data-world="W03"] .sw-act:not([data-climate]) {
  --sw-bg: #070A0F;
  --sw-bg2: #0F141D;
  --sw-fg: #EDF2F8;
  --sw-mute: #9FAAC0;
  --sw-a1: #2EE6A6;
  --sw-line: rgba(237, 242, 248, 0.12);
  --sw-line-strong: rgba(237, 242, 248, 0.28);
}

html[data-world="W03"] .sw-act[data-climate="blueprint"] {
  --sw-bg: #EDF2F8;
  --sw-bg2: #E1E8F0;
  --sw-fg: #0F1720;
  --sw-mute: #3F4E5E;
  --sw-a1: #14546B;
  --sw-line: rgba(15, 23, 32, 0.14);
  --sw-line-strong: rgba(15, 23, 32, 0.30);
}

/* W04 (/ki-unterstuetzung/) Akte 2–5: Vulkan-Schwarz #050907 ↔ Papier #F4F1EA */
html[data-world="W04"] .sw-act:not([data-climate]) {
  --sw-bg: #050907;
  --sw-bg2: #0B1410;
  --sw-fg: #ECF5F1;
  --sw-mute: #A4BCB3;
  --sw-a1: #34D399;
  --sw-line: rgba(236, 245, 241, 0.13);
  --sw-line-strong: rgba(236, 245, 241, 0.28);
}

html[data-world="W04"] .sw-act[data-climate="daylight"] {
  --sw-bg: #F4F1EA;
  --sw-bg2: #EAE6DC;
  --sw-fg: #0E1116;
  --sw-mute: #464B55;
  --sw-a1: #0F6A4A;
  --sw-line: rgba(14, 17, 22, 0.13);
  --sw-line-strong: rgba(14, 17, 22, 0.28);
}

/* Explizite Kastenfreiheit für .sw-capsule & alle Container in W02/W03/W04 */
html[data-world="W02"] .sw-capsule,
html[data-world="W03"] .sw-capsule,
html[data-world="W04"] .sw-capsule {
  border: 0;
  border-top: 1px solid var(--sw-line);
  border-bottom: 1px solid var(--sw-line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

/* ==========================================================================
   RESPONSIVE · TABLET & MOBIL (390×844 · 0 px Überlauf!)
   ========================================================================== */
@media (max-width: 1020px) {
  .v5-w02-edgeless-stage,
  .v5-w03-macro-grid,
  .v5-w03-rig-header,
  .v5-w04-split,
  .v5-w04-rig-grid {
    grid-template-columns: 1fr;
  }

  .v5-w02-copy {
    padding-inline: clamp(18px, 4vw, 56px);
  }

  .v5-w02-cinema-bleed,
  .v5-w02-cinema-bleed .v5-cinema-frame {
    min-height: 300px;
    height: clamp(280px, 44vh, 420px);
  }

  .v5-w02-proof,
  .v5-w03-metrics-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .v5-w04-sticky {
    position: static;
  }

  .v5-w04-video-portal {
    width: 100%;
    aspect-ratio: 16 / 11;
  }

  .v5-w04-silicon-card {
    width: 100%;
    margin: 12px 0 0;
  }

  .v5-photo-dance {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 8px 0;
  }

  .v5-photo-card[data-slot="0"],
  .v5-photo-card[data-slot="1"],
  .v5-photo-card[data-slot="2"] {
    aspect-ratio: 4 / 3;
    margin-inline: 0;
    --v5-offset-y: 0px;
  }

  .v5-photo-card.is-pushed-left,
  .v5-photo-card.is-pushed-right {
    --v5-px: 0px;
    --v5-scale: 0.985;
  }

  .v5-photo-card.is-active {
    --v5-scale: 1.015;
  }
}

@media (max-width: 560px) {
  .v5-w02-wrap,
  .v5-w02-copy,
  .v5-w03-wrap,
  .v5-w04-wrap,
  .v5-w04-rig-grid {
    padding-inline: 16px;
  }

  .v5-w02-workbench {
    padding-left: 16px;
    padding-right: 16px;
  }

  .v5-w04-proof-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .v5-w04-mode-leds {
    grid-template-columns: 1fr;
  }

  .v5-rig-stage,
  .v5-rig-stage-wide {
    min-height: 320px;
  }

  .v5-w03-horizon-frame {
    height: clamp(230px, 38vh, 340px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .v5-photo-card,
  .v5-w03-macro-figure,
  .v5-w04-video-portal,
  .v5-w04-silicon-card {
    transform: none !important;
    transition: opacity 200ms ease !important;
  }
}
