/* =====================================================================
   COEUR DE TIGRE – Startseite aufgeräumt v3 (Paul, 14.11.2026): Herz-Intro zurück
   Kopie von Web/Reveal-Vorschau/A_Probe-Intro/assets/css/herz-intro.css (= Probe v5.1, abgenommen 24.10.2026), Werte unverändert.
   Nur drei Ergänzungen (unten, Block „v3“): (1) Fläche nach ENTER Marken-Schwarz #141210 wie Intro v2 (vorher #000),
   (2) Logo rechts unten aus Intro v2 (gleiche Werte wie intro.css „D55“), (3) Rand-Fix Handy (Streifen beim Schwenk).
   ===================================================================== */
/* =====================================================================
   COEUR DE TIGRE – Herz-Countdown-Intro (Probe v5.1, abgenommen 24.10.2026) als Eingang der Startseite
   REVEAL-VORSCHAU A (Paul, 31.10.2026). Aus Web/Probe-Herz-Countdown/assets/probe.css übernommen,
   Klassen mit „hi__“ versehen (die Startseite nutzt selbst .stage, .tag …), Probe-Leiste und Probe-Etikett entfernt.
   Neu gegenüber der Probe: KEIN iframe mehr. Die echte Startseite liegt unter dem Intro; beim Kameraschwenk
   schiebt herz-intro.js Header, Inhalt, Daumen-Leiste und Footer von rechts herein (gleiches Bild wie in der Probe).
   Werte (Größen, Zeiten, Farben, Gate) unverändert aus der Probe.
   ===================================================================== */
.hi {
  --hi-ink: #141210;
  --hi-cream: #EFE6D6;
  --hi-orange: #E9782A;
  --hi-muted: #A39A8C;
  --hi-ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --hi-display: "Abril Fatface", "Didot", "Bodoni 72", Georgia, serif;
  --hi-body: "Archivo", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --hi-gutter: 16px;
  --hi-radius: 2px;
  display: none;
}
@media (min-width: 768px) { .hi { --hi-gutter: 32px; } }
.intro-on .hi {
  display: block; position: fixed; inset: 0; z-index: 200; overflow: hidden;
  /* 99,6 % Schwarz statt 100 %: für das Auge schwarz, aber der Browser zeichnet die Startseite darunter schon während
     des Gates vor (Bilder dekodiert, Kacheln fertig) → kein Stocken, wenn sie beim Schwenk hereinkommt. */
  background: rgba(0, 0, 0, .996); color: var(--hi-cream); font-family: var(--hi-body);
  -webkit-tap-highlight-color: transparent; overscroll-behavior: none; color-scheme: dark;
}
/* Kein Seitenwechsel der Breite, wenn die Bildlaufleiste nach dem Intro zurückkommt (Herz liegt pixelgenau) */
html.intro-on { scrollbar-gutter: stable; }
.hi img, .hi video, .hi canvas { max-width: none; }

/* Ab dem Vorzeichnen (is-under) und beim Schwenk ist der Grund durchsichtig: darunter liegt die echte Startseite */
.hi[data-step="play"]:not(.is-fade), .hi[data-step="pan"]:not(.is-fade), .hi[data-step="home"]:not(.is-fade) { background: transparent; }

/* ---------- Welt: Szene (Herz-Countdown + Tiger) ---------- */
.hi__world { position: absolute; inset: 0; overflow: hidden; visibility: hidden; z-index: 0; }
.hi:not([data-step="gate"]) .hi__world { visibility: visible; }
.hi__scene { position: absolute; inset: 0; z-index: 2; pointer-events: none; overflow: hidden; will-change: transform; background: #000; }
/* Probe v4: Startseite lag zu 0,4 % sichtbar über der schwarzen Szene, damit der Browser sie vorzeichnet (kein Ruckler
   beim Hereinfahren). Hier gleiches Bild andersherum: Szene zu 99,6 % deckend über der Startseite. */
.hi[data-step="play"] .hi__scene { opacity: .996; }
/* Quelle des Tigers liegt unsichtbar hinter den Flächen (iOS spielt nur „sichtbare“ Videos zuverlässig) */
.hi__src { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #000; }

.hi__half { position: absolute; top: 0; bottom: 0; width: 50%; transition: transform 380ms cubic-bezier(.22, 1, .36, 1); }
.hi__half--l { left: 0; background: #000; transform: translate3d(-101%, 0, 0); }
.hi__half--r { right: 0; background: #000; transform: translate3d(101%, 0, 0); }
.hi:not([data-step="gate"]):not([data-step="reset"]) .hi__half { transform: none; }

.hi__hearts { position: absolute; inset: 0; }
.hi__heart { position: absolute; left: 0; top: 0; height: auto; opacity: 0; transform-origin: 50% 50%; will-change: transform, opacity; }
/* Pixel-Herzen: Kanten hart lassen, wenn der Browser vergrößert */
.hi__heart[data-heart="1"], .hi__heart[data-heart="2"] { image-rendering: pixelated; }

.hi__still { position: absolute; left: 0; top: 0; height: auto; opacity: 0; transform: translate3d(-110vw, 0, 0); will-change: transform; }
.hi.is-fallback .hi__still { opacity: 1; }

/* WebGL-Fläche (Tiger + 3D-Herz) liegt über allem, lässt Klicks durch */
.hi__stage { position: absolute; left: 0; top: 0; z-index: 4; width: 100%; height: 100%; pointer-events: none; }

.hi[data-step="home"] .hi__scene, .hi[data-step="home"] .hi__stage { visibility: hidden; }
/* Ohne Schwenk (Überspringen, Escape): Intro blendet aus, Startseite erscheint */
.hi.is-fade[data-step="home"] { opacity: 0; transition: opacity 320ms ease-out; }

/* Startseite während des Schwenks: Transform setzt herz-intro.js; eigene Übergänge (Daumen-Leiste) dabei aus */
.intro-on .hi-pan { transition: none !important; will-change: transform; }

/* ---------- Gate (wie Probe = wie freigegebene Homepage) ---------- */
.hi__gate {
  position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 1rem;
  padding: 2rem var(--hi-gutter); text-align: center;
  transition: opacity 200ms ease-out, transform 200ms var(--hi-ease-out);
}
.hi:not([data-step="gate"]) .hi__gate { opacity: 0; transform: scale(0.98); pointer-events: none; visibility: hidden; transition: opacity 200ms ease-out, transform 200ms var(--hi-ease-out), visibility 0s 200ms; }
.hi__glow {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(60% 45% at 50% 38%, rgba(233,120,42,.30), rgba(233,120,42,0) 70%);
}
.hi__gate > :not(.hi__glow):not(.hi__sound) { position: relative; }
.hi__sound {
  position: fixed; top: 12px; right: 12px; display: inline-grid; place-items: center;
  min-width: 44px; min-height: 44px; padding: 0; background: none; border: 0; cursor: pointer; color: var(--hi-cream);
  border-radius: var(--hi-radius); transition: transform 160ms var(--hi-ease-out);
}
.hi__sound:active { transform: scale(0.94); }
.hi__sound svg { width: 24px; height: 24px; }
.hi__sound[aria-pressed="true"] .snd-off, .hi__sound[aria-pressed="false"] .snd-on { display: none; }
.hi__sound:focus-visible { outline: 2px solid var(--hi-cream); outline-offset: 2px; }
.hi__gate-heart { width: min(58vw, 320px, 36svh); height: auto; filter: drop-shadow(0 12px 40px rgba(233,120,42,.25)); }
.hi__gate-word { width: min(88vw, 660px); height: auto; margin-top: .5rem; }
.hi__line { margin: .5rem 0 0; font-stretch: 75%; font-weight: 800; font-size: .875rem; letter-spacing: .14em; text-transform: uppercase; }
.hi__line strong { color: var(--hi-orange); font-weight: 800; }
.hi__enter {
  min-width: min(320px, 80vw); min-height: 68px; padding: 0 2rem;
  background: var(--hi-orange); color: var(--hi-ink); border: 0; border-radius: var(--hi-radius); cursor: pointer;
  font-family: var(--hi-display); font-size: clamp(2.25rem, 9vw, 3.25rem); line-height: 1; letter-spacing: .04em; text-transform: uppercase;
  transition: transform 160ms var(--hi-ease-out), background-color 160ms ease;
}
@media (hover: hover) and (pointer: fine) { .hi__enter:hover { background: #F08A3E; } }
.hi__enter:active { transform: scale(0.97); }
.hi__enter:focus-visible { outline: 3px solid var(--hi-cream); outline-offset: 6px; }
.hi__note { margin: 0; font-size: .75rem; color: var(--hi-muted); max-width: 34ch; }
.hi[data-step="gate"] .hi__gate-heart { animation: hi-heart-in 620ms var(--hi-ease-out) both, hi-heart-beat 900ms 760ms ease-in-out both; }
.hi[data-step="gate"] .hi__gate-word { animation: hi-rise-in 560ms 180ms var(--hi-ease-out) both; }
.hi[data-step="gate"] .hi__line { animation: hi-rise-in 520ms 320ms var(--hi-ease-out) both; }
.hi[data-step="gate"] .hi__enter { animation: hi-rise-in 520ms 420ms var(--hi-ease-out) both; }
.hi[data-step="gate"] .hi__note { animation: hi-rise-in 520ms 500ms var(--hi-ease-out) both; }
@keyframes hi-heart-in { from { opacity: 0; transform: scale(.92) translateY(10px); } }
@keyframes hi-heart-beat { 0%,100% { transform: scale(1); } 18% { transform: scale(1.07); } 34% { transform: scale(1); } 52% { transform: scale(1.045); } 70% { transform: scale(1); } }
@keyframes hi-rise-in { from { opacity: 0; transform: translateY(12px); } }
@media (max-height: 640px) { .hi__gate-heart { width: min(44vw, 30svh); } .hi__gate { gap: .5rem; } }

/* ---------- Überspringen ---------- */
.hi__skip {
  position: absolute; right: var(--hi-gutter); bottom: calc(24px + env(safe-area-inset-bottom, 0px)); z-index: 3;
  background: rgba(0,0,0,.45); color: var(--hi-cream); border: 1px solid var(--hi-cream); border-radius: var(--hi-radius);
  min-height: 44px; padding: 0 1rem; cursor: pointer;
  font-family: var(--hi-body); font-stretch: 78%; font-weight: 800; font-size: .75rem; letter-spacing: .16em; text-transform: uppercase;
}
.hi[data-step="pan"] .hi__skip, .hi[data-step="home"] .hi__skip { display: none; }

@media (prefers-reduced-motion: reduce) {
  .hi[data-step="gate"] .hi__gate-heart, .hi[data-step="gate"] .hi__gate-word, .hi[data-step="gate"] .hi__line,
  .hi[data-step="gate"] .hi__enter, .hi[data-step="gate"] .hi__note { animation: none; }
  .hi__half { transition: none; }
}

/* =====================================================================
   v3 (Paul, 14.11.2026) – Ergänzungen für die Startseite aufgeräumt
   ===================================================================== */
/* (1) Freigabe 14.11.: nach ENTER „komplett schwarz“ = Marken-Schwarz #141210 (wie Intro v2). Gate bleibt wie bisher. */
.hi__scene, .hi__half--l, .hi__half--r { background: #141210; }
/* (2) Logo rechts unten – Werte 1:1 aus intro.css (D55, 16.10.) bzw. Intro v2: liegt in der rechten Hälfte, gleiche Größe/Lage.
   Es kommt mit der rechten Hälfte herein und gleitet beim Kameraschwenk mit der schwarzen Szene nach links weg. */
.hi__half { overflow: hidden; }
.hi .intro__brand {
  position: absolute; left: 0; right: 0; bottom: 13vh;
  display: grid; justify-items: center; gap: 14px; padding: 0 8%;
}
.hi .intro__brand-heart { width: clamp(64px, 7vw, 104px); height: auto; }
.hi .intro__brand-word { width: min(84%, 340px); height: auto; }
@media (orientation: portrait) {
  .hi .intro__brand { bottom: 19vh; gap: 10px; padding: 0 7%; }
  .hi .intro__brand-heart { width: 56px; }
  .hi .intro__brand-word { width: 88%; }
}
/* (3) Rand-Fix (Befund Tony 31.10., Screenshot A/05): weiche schwarze Kante an der Naht Szene | Startseite beim Schwenk.
   Lage/Breite/Deckkraft setzt cdt_intro_herz_v01.js (setEdge). Liegt über der Startseite, unter Tiger + Herz (WebGL). */
.hi__edge {
  position: absolute; left: 0; top: 0; bottom: 0; width: 48px; z-index: 3; pointer-events: none; opacity: 0;
  background: linear-gradient(90deg, #141210 0%, rgba(20, 18, 16, .88) 30%, rgba(20, 18, 16, .45) 62%, rgba(20, 18, 16, 0) 100%);
  will-change: transform, opacity;
}
.hi[data-step="gate"] .hi__edge, .hi[data-step="home"] .hi__edge { visibility: hidden; }
