/* ==========================================================================
   florian-soechtig.de — V4 „Aurora"
   Spektral-System statt Ein-Akzent: Mint → Cyan → Violett auf tiefem
   Space-Blau. WebGL-Aurora im Hero (pointer-reaktiv), Outline-Watermarks,
   3D-Tilt, Scrub-Choreografie. Type: Clash Display · General Sans · JB Mono
   ========================================================================== */

@font-face {
  font-family: 'Clash Display';
  src: url('/assets/fonts/clash-display-600.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Clash Display';
  src: url('/assets/fonts/clash-display-700.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'General Sans';
  src: url('/assets/fonts/general-sans-400.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'General Sans';
  src: url('/assets/fonts/general-sans-500.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'General Sans';
  src: url('/assets/fonts/general-sans-600.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url('/assets/fonts/jetbrains-mono-400.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url('/assets/fonts/jetbrains-mono-500.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}

:root {
  /* Kohle-Modus (Default) */
  --ground: #0a0d16;
  --surface: #141a2e;
  --line: rgba(233, 236, 245, 0.14);
  --text: #e9ecf5;
  --text-dim: rgba(233, 236, 245, 0.6);
  --accent: #7c5cff;
  --accent-hi: #b18cff;
  --accent-deep: #5438d6;
  --accent-2: #3fd1e6;
  --accent-3: #59f5c8;
  --accent-soft: rgba(124, 92, 255, 0.13);
  --molten: linear-gradient(100deg, #59f5c8 0%, #3fd1e6 34%, #7c5cff 72%, #b18cff 100%);
  --top-fade: rgba(10, 13, 22, 0.82);
  --display: 'Clash Display', 'Arial Narrow', sans-serif;
  --body: 'General Sans', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --shell-w: 76rem;
  --pad: clamp(1.25rem, 4vw, 2.5rem);
}

/* Asche-Modus: die Seite ist „abgekühlt" */
body.theme-ash {
  --ground: #e9eaf2;
  --surface: #dcdeeb;
  --line: rgba(18, 19, 28, 0.16);
  --text: #12131c;
  --text-dim: rgba(18, 19, 28, 0.64);
  --accent: #4f35d0;
  --accent-hi: #5438d6;
  --accent-2: #0b7f92;
  --accent-3: #0d9b78;
  --accent-soft: rgba(79, 53, 208, 0.1);
  --top-fade: rgba(233, 234, 242, 0.85);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
  overflow-x: hidden;
  transition: background-color 0.9s ease, color 0.9s ease;
}

h1, h2, h3, p, dl, dd, dt, ol, ul, figure { margin: 0; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

::selection { background: var(--accent); color: #f4f2ff; }

.shell {
  max-width: var(--shell-w);
  margin-inline: auto;
  padding-inline: var(--pad);
}

/* ---------- Custom Cursor (nur Fine-Pointer-Geräte) ---------- */

.cursor, .cursor-ring {
  position: fixed; top: 0; left: 0; z-index: 90;
  pointer-events: none;
  border-radius: 50%;
  opacity: 0;
}
.cursor {
  width: 8px; height: 8px;
  background: var(--accent);
  box-shadow: 0 0 14px rgba(124, 92, 255, 0.9);
}
.cursor-ring {
  width: 38px; height: 38px;
  border: 1px solid var(--accent);
  transition: width 0.25s, height 0.25s, border-color 0.25s;
}
body.cursor-on .cursor, body.cursor-on .cursor-ring { opacity: 1; }
@media (hover: hover) and (pointer: fine) {
  body.cursor-on, body.cursor-on a, body.cursor-on button,
  body.cursor-on .lang, body.cursor-on .g-item { cursor: none; }
}
body.cursor-hot .cursor-ring { width: 62px; height: 62px; border-color: var(--accent-hi); }
@media (hover: none), (pointer: coarse) {
  .cursor, .cursor-ring { display: none; }
}

/* ---------- Boot / Preloader ---------- */

.boot {
  position: fixed; inset: 0; z-index: 60;
  background: #0a0d16;
  display: flex; align-items: flex-end;
  padding: clamp(1.5rem, 5vw, 4rem);
  transition: opacity 0.5s ease, visibility 0.5s;
}
.boot.done { opacity: 0; visibility: hidden; }
.boot-log {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.8125rem;
  line-height: 1.9;
  color: rgba(233, 236, 245, 0.6);
  white-space: pre-wrap;
}
.boot-log .ok { color: #59f5c8; }
.boot-log .hot { color: #b18cff; }

/* ---------- Top bar ---------- */

.top {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem var(--pad);
  background: linear-gradient(to bottom, var(--top-fade), transparent);
  transition: background 0.9s ease;
}
.top-logo {
  font-family: var(--mono);
  font-size: 0.8125rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.02em;
}
.blink { color: var(--accent); animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.top-nav { display: flex; align-items: center; gap: 1.25rem; }
.lang {
  font-family: var(--mono); font-size: 0.8125rem;
  background: none; border: 1px solid var(--line); border-radius: 2rem;
  color: var(--text-dim); padding: 0.35rem 0.85rem;
  cursor: pointer; letter-spacing: 0.02em;
  transition: border-color 0.25s;
}
.lang:hover, .lang:focus-visible { border-color: var(--accent); }
.theme-btn { min-width: 5.6rem; text-align: center; white-space: nowrap; }
@media (max-width: 40rem) { .theme-btn { min-width: 0; } }
.lang .is-on { color: var(--accent); }
.lang-sep { margin-inline: 0.3rem; opacity: 0.4; }
.top-link {
  font-family: var(--mono); font-size: 0.8125rem;
  color: var(--text-dim); text-decoration: none;
  transition: color 0.25s;
}
.top-link:hover, .top-link:focus-visible { color: var(--accent); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: flex-end;
  isolation: isolate;
  overflow: hidden;
  background: #0a0d16;
}
.hero-video {
  position: absolute; inset: 0; z-index: -4;
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero-aurora {
  position: absolute; inset: 0; z-index: -3;
  width: 100%; height: 100%;
  opacity: 0;
  transition: opacity 1.2s ease;
}
body.gl-on .hero-aurora { opacity: 1; }
body.gl-on .hero-video { visibility: hidden; }
.hero-embers {
  position: absolute; inset: 0; z-index: -1;
  width: 100%; height: 100%;
  mix-blend-mode: screen;
}
.hero-scrim {
  position: absolute; inset: 0; z-index: -2;
  background:
    linear-gradient(to top, #0a0d16 4%, rgba(10, 13, 22, 0.5) 45%, rgba(10, 13, 22, 0.72) 100%);
}
.hero-inner {
  width: 100%;
  padding-block: 7.5rem 9rem;
  display: flex; flex-direction: column; gap: 1.4rem;
  color: #e9ecf5;
}
.hero-name {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(3.4rem, 12.5vw, 9.5rem);
  line-height: 0.92;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
.hero-name .ch { display: inline-block; will-change: transform; }
.hero-claim {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.4rem, 3.4vw, 2.4rem);
  letter-spacing: -0.01em;
  background: var(--molten);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  max-width: 34em;
  color: rgba(233, 236, 245, 0.6);
  font-size: clamp(1rem, 1.6vw, 1.125rem);
}
.scroll-cue {
  position: absolute; bottom: 1.75rem; right: var(--pad);
  display: flex; flex-direction: column; align-items: center; gap: 0.6rem;
  font-family: var(--mono); font-size: 0.75rem;
  color: rgba(233, 236, 245, 0.6); text-decoration: none;
  letter-spacing: 0.14em; text-transform: uppercase;
}
.cue-line {
  width: 1px; height: 3.4rem;
  background: linear-gradient(to bottom, #7c5cff, transparent);
  animation: cue 2.2s ease-in-out infinite;
  transform-origin: top;
}
@keyframes cue { 0%, 100% { transform: scaleY(0.55); } 50% { transform: scaleY(1); } }

/* ---------- Ticker ---------- */

.ticker {
  border-block: 1px solid var(--line);
  overflow: hidden;
  padding-block: 0.8rem;
  background: var(--surface);
  transition: background-color 0.9s ease;
}
.ticker-track {
  display: flex; width: max-content;
  font-family: var(--mono); font-size: 0.8125rem;
  color: var(--text-dim); letter-spacing: 0.06em;
  will-change: transform;
}

/* ---------- Sections ---------- */

.sec { padding-block: clamp(5.5rem, 12vh, 9rem); position: relative; overflow: clip; }
.sec > .shell { position: relative; z-index: 1; }

/* Riesige Outline-Watermarks, ziehen beim Scrollen quer durch */
.wm {
  position: absolute; top: 0.5rem; left: 0;
  z-index: 0;
  font-family: var(--display); font-weight: 700;
  font-size: clamp(7rem, 24vw, 22rem);
  line-height: 1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--line);
  pointer-events: none;
  user-select: none;
  will-change: transform;
}
@media (max-width: 60rem) { .wm { display: none; } }

.eyebrow {
  font-family: var(--mono);
  font-size: 0.8125rem;
  color: var(--text-dim);
  letter-spacing: 0.04em;
  margin-bottom: 2.4rem;
  min-height: 1.4em;
}
.prompt { color: var(--accent); }

.sec-title {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(2.1rem, 5.4vw, 3.9rem);
  line-height: 1.04;
  letter-spacing: -0.015em;
  margin-bottom: 1.6rem;
  max-width: 16em;
}
.sec-lead {
  max-width: 44em;
  color: var(--text-dim);
  font-size: clamp(1.05rem, 1.7vw, 1.2rem);
  margin-bottom: 3rem;
}

/* ---------- Story ---------- */

.story-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.story-portrait {
  position: relative;
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 30px 80px -30px rgba(124, 92, 255, 0.3);
}
.story-portrait img { will-change: transform; }
.story-portrait::after {
  content: '';
  position: absolute; inset: 0;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  pointer-events: none;
}
.story-copy { display: flex; flex-direction: column; gap: 1.15rem; }
.story-copy p { color: var(--text-dim); max-width: 38em; }

.nums {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 1.6rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}
.num { display: flex; flex-direction: column; gap: 0.2rem; }
.num-v {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.9rem, 3.4vw, 2.8rem);
  color: var(--accent);
  line-height: 1;
}
.num dd {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--text-dim);
  letter-spacing: 0.04em;
}

/* ---------- Methode (echter Dreischritt) ---------- */

.method {
  list-style: none; padding: 0;
  display: flex; flex-wrap: wrap; gap: 0.9rem;
  margin-bottom: 3rem;
}
.method li {
  display: flex; align-items: baseline; gap: 0.7rem;
  font-family: var(--display); font-weight: 600;
  font-size: clamp(1.05rem, 1.9vw, 1.35rem);
  letter-spacing: -0.01em;
  border: 1px solid var(--line);
  border-radius: 0.6rem;
  padding: 0.9rem 1.3rem;
  background: var(--ground);
  flex: 1 1 14rem;
  opacity: 0.45;
  transform: scale(0.985);
  transition: background-color 0.9s ease, border-color 0.4s, opacity 0.5s, transform 0.5s, box-shadow 0.5s;
}
.method li.is-live {
  opacity: 1;
  transform: scale(1);
  border-color: var(--accent);
  box-shadow: 0 14px 40px -18px rgba(124, 92, 255, 0.55);
}
.m-num {
  font-family: var(--mono); font-weight: 500;
  font-size: 0.78rem; color: var(--accent);
  letter-spacing: 0.08em;
}
.method li.is-live .m-num { color: var(--accent-3); }

/* ---------- AI cards ---------- */

.sec-ai { background: var(--surface); border-block: 1px solid var(--line); transition: background-color 0.9s ease; }

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
}
.card {
  display: flex; flex-direction: column; gap: 0.9rem;
  background: var(--ground);
  border: 1px solid var(--line);
  border-radius: 0.6rem;
  padding: 0 1.6rem 1.8rem;
  transition: border-color 0.3s, transform 0.3s, background-color 0.9s ease;
}
.card:hover { border-color: rgba(124, 92, 255, 0.5); transform: translateY(-4px); }
.card-bar {
  display: flex; align-items: center; gap: 0.45rem;
  margin-inline: -1.6rem; padding: 0.8rem 1.2rem;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono); font-size: 0.72rem; color: var(--text-dim);
}
.card-bar i {
  width: 0.55rem; height: 0.55rem; border-radius: 50%;
  background: var(--line);
}
.card-bar i:first-child { background: var(--accent); }
.card-bar span { margin-left: auto; letter-spacing: 0.05em; }
.card h3 {
  font-family: var(--display); font-weight: 600;
  font-size: 1.35rem; letter-spacing: -0.01em;
}
.card p { color: var(--text-dim); font-size: 0.975rem; }

.ai-meta {
  margin-top: 3rem;
  padding: 1.4rem 1.6rem;
  border-left: 2px solid var(--accent);
  background: var(--accent-soft);
  border-radius: 0 0.5rem 0.5rem 0;
  font-family: var(--mono);
  font-size: 0.875rem;
  line-height: 1.8;
  color: var(--text);
  max-width: 56em;
}

/* ---------- Timeline ---------- */

.timeline {
  list-style: none;
  padding: 0;
  display: flex; flex-direction: column;
  position: relative;
  --tl-progress: 1;
}
.timeline::before {
  content: '';
  position: absolute; top: 0.4rem; bottom: 0.4rem; left: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent-hi), var(--accent) 30%, var(--line) 95%);
  transform: scaleY(var(--tl-progress));
  transform-origin: top;
}
.tl-item {
  display: grid;
  grid-template-columns: 7rem minmax(0, 1fr);
  gap: 1.5rem;
  padding: 1.6rem 0 1.6rem 2rem;
  position: relative;
}
.tl-item::before {
  content: '';
  position: absolute; left: -0.16rem; top: 2.35rem;
  width: 0.45rem; height: 0.45rem; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(124, 92, 255, 0.8);
}
.tl-item + .tl-item { border-top: 1px solid var(--line); }
.tl-year {
  font-family: var(--mono); font-weight: 500;
  font-size: 0.9rem; color: var(--accent);
  padding-top: 0.3rem;
}
.tl-item h3 {
  font-family: var(--display); font-weight: 600;
  font-size: 1.3rem; letter-spacing: -0.01em;
  margin-bottom: 0.35rem;
}
.tl-item p { color: var(--text-dim); font-size: 0.975rem; max-width: 44em; }

/* ---------- Stack ---------- */

.sec-stack { background: var(--surface); border-block: 1px solid var(--line); transition: background-color 0.9s ease; }

.stack-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr));
  gap: 1.4rem;
}
.stack-panel {
  border: 1px solid var(--line);
  border-radius: 0.6rem;
  padding: 1.8rem;
  background: var(--ground);
  display: flex; flex-direction: column; gap: 1.2rem;
  transition: background-color 0.9s ease;
}
.stack-panel h3 {
  font-family: var(--display); font-weight: 600;
  font-size: 1.3rem;
}
.stack-panel h3 { color: var(--accent); }
.stack-panel:nth-child(2) h3 { color: var(--accent-deep); }
.chips {
  list-style: none; padding: 0;
  display: flex; flex-wrap: wrap; gap: 0.6rem;
}
.chips li {
  font-family: var(--mono); font-size: 0.8125rem;
  border: 1px solid var(--line); border-radius: 2rem;
  padding: 0.4rem 0.95rem;
  color: var(--text-dim);
  letter-spacing: 0.02em;
  transition: border-color 0.25s, color 0.25s;
}
.chips li:hover { border-color: var(--accent); color: var(--text); }

/* ---------- Gallery (horizontaler Scroll auf Desktop) ---------- */

.g-stage { overflow: hidden; }
.gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
  padding-inline: var(--pad);
  max-width: var(--shell-w);
  margin-inline: auto;
}
.g-item {
  position: relative;
  border-radius: 0.5rem;
  overflow: hidden;
  border: 1px solid var(--line);
  transition: border-color 0.3s;
}
.g-item:hover { border-color: rgba(124, 92, 255, 0.55); }
.g-item img {
  aspect-ratio: 3 / 4;
  object-fit: cover;
  width: 100%;
  transition: transform 0.6s ease;
}
.g-item:hover img { transform: scale(1.035); }
.g-item figcaption {
  position: absolute; inset-inline: 0; bottom: 0;
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 2.2rem 1.1rem 0.9rem;
  background: linear-gradient(to top, rgba(9, 10, 18, 0.92), transparent);
  font-family: var(--display); font-weight: 600; font-size: 1.05rem;
  color: #e9ecf5;
}
.g-num {
  font-family: var(--mono); font-weight: 400;
  font-size: 0.72rem; color: #b18cff;
  letter-spacing: 0.08em;
}

@media (min-width: 60rem) {
  .gallery.is-h {
    display: flex;
    width: max-content;
    max-width: none;
    gap: clamp(1.5rem, 3vw, 3rem);
    padding-inline: max(var(--pad), calc((100vw - var(--shell-w)) / 2 + var(--pad)));
    will-change: transform;
  }
  .gallery.is-h .g-item { width: clamp(20rem, 30vw, 26rem); flex: none; }
}

/* ---------- Pack (Cleo & Lotta) ---------- */

.dogs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.4rem, 3vw, 2.4rem);
  max-width: 56rem;
}
.dog-card {
  position: relative;
  border-radius: 0.9rem;
  border: 1px solid transparent;
  background: var(--surface);
  transition: background-color 0.9s ease;
}
/* Holo-Rahmen: wandernder Spektral-Verlauf */
.dog-card::before {
  content: '';
  position: absolute; inset: -1.5px;
  border-radius: inherit;
  padding: 1.5px;
  background: linear-gradient(120deg, #59f5c8, #3fd1e6, #7c5cff, #b18cff, #59f5c8) 0 0 / 300% 100%;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  animation: holo-border 6s linear infinite;
}
@keyframes holo-border { to { background-position: 300% 0; } }
.dog-photo {
  position: relative;
  border-radius: 0.9rem 0.9rem 0 0;
  overflow: hidden;
}
.dog-card img {
  aspect-ratio: 1;
  object-fit: cover;
  width: 100%;
  transition: transform 0.6s ease;
}
.dog-card:hover img { transform: scale(1.04); }
/* Holo-Glanz folgt dem Cursor (nutzt die --gx-Variable des Tilt-Systems) */
.dog-photo::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(105deg,
    transparent 30%,
    rgba(89, 245, 200, 0.14) 42%,
    rgba(233, 236, 245, 0.22) 50%,
    rgba(124, 92, 255, 0.14) 58%,
    transparent 70%) no-repeat;
  background-size: 260% 100%;
  background-position-x: var(--gx, 50%);
  mix-blend-mode: screen;
  pointer-events: none;
}
.dog-rarity {
  position: absolute; top: 0.8rem; left: 0.8rem;
  font-family: var(--mono); font-size: 0.7rem; font-weight: 500;
  letter-spacing: 0.12em;
  padding: 0.32rem 0.7rem;
  border-radius: 2rem;
  background: rgba(10, 13, 22, 0.75);
  backdrop-filter: blur(4px);
  color: #59f5c8;
  border: 1px solid rgba(89, 245, 200, 0.4);
}
.dog-card:nth-child(2) .dog-rarity {
  color: #b18cff;
  border-color: rgba(177, 140, 255, 0.5);
  box-shadow: 0 0 18px rgba(124, 92, 255, 0.45);
}
.dog-card figcaption {
  display: flex; flex-direction: column; gap: 0.3rem;
  padding: 1.1rem 1.25rem 1.3rem;
}
.dog-head { display: flex; align-items: baseline; gap: 0.8rem; flex-wrap: wrap; }
.dog-card strong {
  font-family: var(--display); font-weight: 700;
  font-size: 1.6rem; letter-spacing: -0.01em;
  background: var(--molten);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.dog-role {
  font-family: var(--mono); font-size: 0.72rem;
  letter-spacing: 0.07em; text-transform: uppercase;
  color: var(--accent-3);
}
.dog-card figcaption p {
  color: var(--text-dim);
  font-size: 0.95rem;
  margin-top: 0.35rem;
}
/* Stat-Balken wie auf einer Sammelkarte */
.dog-stats {
  list-style: none; padding: 0;
  margin-top: 0.9rem;
  display: flex; flex-direction: column; gap: 0.45rem;
}
.dog-stats li {
  display: grid;
  grid-template-columns: 9.5rem minmax(0, 1fr) 4.2rem;
  align-items: center; gap: 0.7rem;
  font-family: var(--mono); font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--text-dim);
}
.dog-stats em { font-style: normal; text-align: right; color: var(--text); }
.dog-stats .bar {
  display: block;
  height: 0.45rem;
  border-radius: 1rem;
  background: var(--line);
  overflow: hidden;
}
.dog-stats .bar b {
  display: block;
  height: 100%;
  width: var(--v, 0%);
  border-radius: inherit;
  background: var(--molten);
  transform-origin: left;
}
.pack-status {
  margin-top: 2.2rem;
  max-width: 56rem;
  border: 1px solid var(--line);
  border-radius: 0.6rem;
  background: var(--ground);
  padding: 1.1rem 1.3rem;
  font-family: var(--mono);
  font-size: 0.82rem;
  line-height: 2;
  color: var(--text-dim);
  transition: background-color 0.9s ease;
  overflow-x: auto;
}
.pack-status b { color: var(--text); font-weight: 500; }
.st-dot {
  color: var(--accent-3);
  display: inline-block;
  animation: st-pulse 2.4s ease-in-out infinite;
}
.st-new {
  color: var(--accent-hi);
  animation: st-spin 1.8s linear infinite;
}
@keyframes st-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
@keyframes st-spin { to { transform: rotate(360deg); } }
.st-foot { margin-top: 0.4rem; opacity: 0.75; }

/* Pfoten-Spur durch die Sektion */
.paw {
  position: absolute;
  z-index: 0;
  font-size: clamp(1.3rem, 2.6vw, 2.1rem);
  filter: grayscale(1);
  opacity: 0;
  pointer-events: none;
  user-select: none;
}

/* Schwanzwedeln beim Hover */
.dog-card:hover img { animation: wag 0.7s ease-in-out infinite; }
@keyframes wag {
  0%, 100% { transform: scale(1.04) rotate(-1.3deg); }
  50% { transform: scale(1.04) rotate(1.3deg); }
}

/* Wuff-Sprechblase */
.wuff {
  position: absolute;
  top: 0.9rem; left: 50%;
  z-index: 5;
  font-family: var(--mono); font-size: 0.9rem; font-weight: 500;
  background: var(--ground);
  color: var(--text);
  border: 1px solid var(--accent-3);
  border-radius: 1rem 1rem 1rem 0.2rem;
  padding: 0.4rem 0.9rem;
  pointer-events: none;
  white-space: nowrap;
  box-shadow: 0 10px 30px -10px rgba(124, 92, 255, 0.5);
}
.wuff-paw {
  position: absolute;
  z-index: 4;
  font-size: 1rem;
  filter: grayscale(1);
  pointer-events: none;
}

@media (max-width: 40rem) {
  .dogs { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Contact: Wiederzündung ---------- */

.sec-contact {
  text-align: left;
  padding-block: clamp(7rem, 18vh, 12rem);
  position: relative;
  overflow: hidden;
}
.contact-title {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(3rem, 10vw, 7.5rem);
  line-height: 0.95; letter-spacing: -0.02em;
  text-transform: uppercase;
  margin-bottom: 1.6rem;
  background: var(--molten);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.contact-actions { display: flex; flex-wrap: wrap; gap: 1rem; }
.btn {
  font-family: var(--mono); font-size: 0.95rem;
  text-decoration: none;
  border-radius: 2.5rem;
  padding: 0.95rem 1.9rem;
  letter-spacing: 0.02em;
  display: inline-block;
  transition: box-shadow 0.25s, border-color 0.25s;
  will-change: transform;
}
.btn-primary {
  background: linear-gradient(100deg, #7c5cff, #5438d6);
  color: #f4f2ff;
  font-weight: 500;
  box-shadow: 0 10px 40px -12px rgba(124, 92, 255, 0.7);
}
.btn-primary:hover, .btn-primary:focus-visible {
  box-shadow: 0 16px 50px -12px rgba(124, 92, 255, 0.95);
}
.btn-ghost { border: 1px solid var(--line); color: var(--text); }
.btn-ghost:hover, .btn-ghost:focus-visible { border-color: var(--accent); }

/* ---------- Footer ---------- */

.foot { border-top: 1px solid var(--line); padding-block: 2rem; }
.foot-inner {
  display: flex; flex-wrap: wrap; gap: 1rem;
  align-items: center; justify-content: space-between;
  font-family: var(--mono); font-size: 0.78rem;
  color: var(--text-dim);
}
.foot-inner nav { display: flex; gap: 1.4rem; }
.foot-inner a { color: var(--text-dim); text-decoration: none; }
.foot-inner a:hover, .foot-inner a:focus-visible { color: var(--accent); }
.foot-meta { opacity: 1; }

/* ---------- 3D-Tilt + Glanzlicht ---------- */

.tilt-wrap { perspective: 900px; }
[data-tilt] {
  transform-style: preserve-3d;
  will-change: transform;
}
[data-tilt]::after {
  content: '';
  position: absolute; inset: 0;
  border-radius: inherit;
  background: radial-gradient(420px circle at var(--gx, 50%) var(--gy, 50%),
              rgba(233, 236, 245, 0.16), transparent 55%);
  opacity: 0;
  transition: opacity 0.35s;
  pointer-events: none;
  z-index: 2;
}
[data-tilt]:hover::after { opacity: 1; }

/* Spektral-Kante für Karten beim Hover */
.card, .stack-panel, .g-item, .pack-photo, .story-portrait { position: relative; }
.card:hover, .g-item:hover {
  border-color: transparent;
  background-clip: padding-box;
}
.card:hover::before, .g-item:hover::before {
  content: '';
  position: absolute; inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: var(--molten);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 1;
}

/* ---------- Cursor-Trail ---------- */

.trail {
  position: fixed; top: 0; left: 0; z-index: 89;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent-2);
  pointer-events: none;
  opacity: 0;
}
body.cursor-on .trail { opacity: 0.45; }
@media (hover: none), (pointer: coarse) { .trail { display: none; } }

/* ---------- Hero-Hint (Terminal-Entdeckung) ---------- */

.hero-hint {
  align-self: flex-start;
  margin-top: 0.6rem;
  font-family: var(--mono); font-size: 0.8125rem;
  color: var(--text-dim);
  background: rgba(233, 236, 245, 0.05);
  border: 1px dashed var(--line);
  border-radius: 0.5rem;
  padding: 0.55rem 0.95rem;
  cursor: pointer;
  letter-spacing: 0.02em;
  transition: border-color 0.25s, color 0.25s;
}
.hero-hint:hover, .hero-hint:focus-visible { border-color: var(--accent-3); color: var(--text); }
.hero-hint b { color: var(--accent-3); }

/* ---------- Terminal ---------- */

.term {
  position: fixed; inset: 0; z-index: 80;
  background: rgba(6, 8, 14, 0.72);
  backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  padding: var(--pad);
  opacity: 0; visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s;
}
.term.is-open { opacity: 1; visibility: visible; }
.term-panel {
  width: min(46rem, 100%);
  max-height: 72vh;
  display: flex; flex-direction: column;
  background: #070a12;
  border: 1px solid rgba(124, 92, 255, 0.35);
  border-radius: 0.7rem;
  box-shadow: 0 40px 120px -30px rgba(124, 92, 255, 0.45);
  overflow: hidden;
  transform: translateY(14px) scale(0.985);
  transition: transform 0.25s ease;
}
.term.is-open .term-panel { transform: none; }
.term-bar {
  display: flex; align-items: center; gap: 0.45rem;
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono); font-size: 0.72rem; color: rgba(233, 236, 245, 0.5);
}
.term-bar i { width: 0.55rem; height: 0.55rem; border-radius: 50%; background: rgba(233, 236, 245, 0.18); }
.term-bar i:first-child { background: var(--accent); }
.term-bar span { margin-left: auto; letter-spacing: 0.05em; }
.term-out {
  padding: 1rem 1.1rem;
  overflow-y: auto;
  font-family: var(--mono); font-size: 0.84rem; line-height: 1.75;
  color: #dfe5f1;
  white-space: pre-wrap;
  min-height: 8rem;
}
.term-line { margin-bottom: 0.5rem; }
.term-line.t-art {
  white-space: pre;
  overflow-x: auto;
  line-height: 1.35;
  color: #8fd8e8;
}
.term-out a { color: #59f5c8; }
.t-prompt { color: #7c5cff; }
.t-dim { color: rgba(233, 236, 245, 0.45); }
.t-err { color: #ff6b81; }
.t-ok { color: #59f5c8; }
.t-hot { color: #ffb347; }
.term-in-row {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.8rem 1.1rem;
  border-top: 1px solid var(--line);
  font-family: var(--mono); font-size: 0.84rem;
}
.term-in {
  flex: 1;
  background: none; border: none; outline: none;
  color: #e9ecf5;
  font-family: var(--mono); font-size: 0.84rem;
  caret-color: #59f5c8;
}

/* ---------- Case-Overlays ---------- */

body.no-scroll { overflow: hidden; }
.case {
  position: fixed; inset: 0; z-index: 75;
  background: rgba(6, 8, 14, 0.78);
  backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  padding: var(--pad);
  opacity: 0; visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s;
}
.case.is-open { opacity: 1; visibility: visible; }
.case-panel {
  position: relative;
  width: min(52rem, 100%);
  max-height: 84vh;
  overflow-y: auto;
  background: #0d1120;
  border: 1px solid rgba(124, 92, 255, 0.35);
  border-radius: 0.8rem;
  padding: clamp(1.5rem, 4vw, 2.8rem);
  display: flex; flex-direction: column; gap: 1.1rem;
  transform: translateY(20px) scale(0.98);
  transition: transform 0.3s ease;
  color: #e9ecf5;
}
.case.is-open .case-panel { transform: none; }
.case-panel .eyebrow { margin-bottom: 0; }
.case-panel h3 {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(1.6rem, 3.6vw, 2.4rem);
  letter-spacing: -0.015em;
  background: var(--molten);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.case-panel p { color: rgba(233, 236, 245, 0.72); }
.case-role { font-family: var(--mono); font-size: 0.84rem; }
.case-ascii {
  margin: 0;
  font-family: var(--mono); font-size: clamp(0.62rem, 1.4vw, 0.8rem);
  line-height: 1.7;
  color: #8fd8e8;
  background: #070a12;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  padding: 1rem 1.2rem;
  overflow-x: auto;
}
.case-panel .chips li { color: rgba(233, 236, 245, 0.65); border-color: rgba(233, 236, 245, 0.18); }
.case-result { font-family: var(--mono); font-size: 0.875rem; color: #dfe5f1 !important; }
.case-close {
  position: absolute; top: 1rem; right: 1rem;
  font-family: var(--mono); font-size: 0.72rem;
  background: none; border: 1px solid var(--line); border-radius: 2rem;
  color: rgba(233, 236, 245, 0.6);
  padding: 0.35rem 0.8rem; cursor: pointer;
  transition: border-color 0.25s, color 0.25s;
}
.case-close:hover { border-color: #ff6b81; color: #ff6b81; }

.proj-note {
  font-family: var(--mono);
  font-size: 0.8125rem;
  color: var(--text-dim);
  margin: -1.6rem 0 2.6rem;
}

.card-more {
  align-self: flex-start;
  margin-top: auto;
  font-family: var(--mono); font-size: 0.8125rem;
  background: none;
  border: 1px solid var(--line); border-radius: 2rem;
  color: var(--text-dim);
  padding: 0.5rem 1.05rem;
  cursor: pointer;
  letter-spacing: 0.02em;
  transition: border-color 0.25s, color 0.25s, transform 0.25s;
}
.card-more:hover, .card-more:focus-visible {
  border-color: var(--accent);
  color: var(--text);
  transform: translateX(3px);
}

/* ---------- BBQ-Easter-Egg 🔥 ---------- */

body.theme-bbq {
  --accent: #ff4d00;
  --accent-hi: #ffb347;
  --accent-deep: #c2330f;
  --accent-2: #ff7a3c;
  --accent-3: #ffd08a;
  --accent-soft: rgba(255, 77, 0, 0.13);
  --molten: linear-gradient(100deg, #ffd08a 0%, #ff7a3c 40%, #ff4d00 75%, #c2330f 100%);
}
body.theme-bbq .hero-aurora { filter: hue-rotate(150deg) saturate(1.4); }

/* ---------- Partikel-Porträt ---------- */

.portrait-particles {
  position: absolute; inset: 0; z-index: 1;
  width: 100%; height: 100%;
}

/* ---------- Reveal ---------- */

.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Focus ---------- */

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 0.25rem;
}

/* ---------- Responsive ---------- */

@media (max-width: 60rem) {
  .cards { grid-template-columns: minmax(0, 1fr); }
  .gallery { grid-template-columns: minmax(0, 1fr); }
  .stack-grid { grid-template-columns: minmax(0, 1fr); }
  .story-grid { grid-template-columns: minmax(0, 1fr); }
  .story-portrait { max-width: 24rem; }
  .pack-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pack-copy { grid-column: 1 / -1; padding-right: 0; }
  .nums { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tl-item { grid-template-columns: minmax(0, 1fr); gap: 0.3rem; padding-left: 1.6rem; }
}

@media (max-width: 40rem) {
  .hero-inner { padding-bottom: 8.5rem; }
  .scroll-cue { right: auto; left: var(--pad); bottom: 1.4rem; }
  .top { padding-block: 0.9rem; }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  body { transition: none; }
  .blink, .cue-line { animation: none; }
  .boot, .cursor, .cursor-ring, .trail, .hero-embers, .hero-aurora, .wm, .portrait-particles, .paw { display: none; }
  .card, .g-item img, .btn, .chips li, .method li { transition: none; }
  .method li { opacity: 1; transform: none; }
  .st-dot, .st-new { animation: none; }
  .dog-card:hover img { animation: none; }
  .dog-card::before { animation: none; }
}
