/* Schriften, selbst gehostet (kein Google-Fonts-Abruf) */
@font-face { font-family: "Anton"; font-style: normal; font-weight: 400; font-display: swap; src: url("assets/fonts/anton-400-latin.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 600; font-display: swap; src: url("assets/fonts/inter-latin.woff2") format("woff2"); }

/* rhinodigits – Brand-Tokens
   Claim: "Wir stellen Ihr Softwareprojekt auf solide Füße."
   ink   = Nashornhaut, schwer, Basis
   bone  = Horn/Knochen, warmes Weiß für Text
   rhino = Grauhaut, gedämpfte Zweitfarbe
   horn  = Signalfarbe, Bernstein: Akzent für Hover, CTA, Marke
*/
:root {
  --ink: #0B0B0C;
  --ink-2: #151517;
  --bone: #F3F0E9;
  --rhino: #8E949C;
  --rhino-2: #3A3D42;
  --horn: #F2B135;
  --horn-2: #FFD071;

  --font-display: "Anton", "Impact", "Arial Narrow", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: clamp(16px, 4vw, 56px);
  --maxw: 1400px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  padding-top: 72px; /* Platz für den fixierten Header */
  background: var(--ink);
  color: var(--bone);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
::selection { background: var(--horn); color: var(--ink); }
img, svg { display: block; max-width: 100%; }

.wrap { width: min(100% - 2 * var(--gutter), var(--maxw)); margin-inline: auto; }
.display {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 0.9;
  margin: 0;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--gutter);
  width: 100%; margin: 0 auto; height: 72px;
  background: color-mix(in srgb, var(--ink) 82%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rhino-2);
}
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 600; letter-spacing: 0.02em; }
.brand svg { height: 24px; width: auto; color: var(--horn); }
.brand span { text-transform: uppercase; letter-spacing: 0.1em; }
.brand span b { color: var(--horn); font-weight: 600; }
.topnav { display: flex; gap: 28px; font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--rhino); }
.topnav a:hover, .topnav a:focus-visible { color: var(--bone); }
.nav-toggle { display: none; }
@media (max-width: 720px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; margin-left: auto;
    background: none; border: 1px solid var(--rhino-2); border-radius: 999px; color: var(--bone); cursor: pointer; position: relative; z-index: 2; }
  .nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .3s cubic-bezier(.2,.8,.2,1), opacity .2s; }
  .nav-toggle span { position: relative; }
  .nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
  .nav-toggle span::before { top: -6px; } .nav-toggle span::after { top: 6px; }
  .site-header.open .nav-toggle span { background: transparent; }
  .site-header.open .nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
  .site-header.open .nav-toggle span::after { transform: translateY(-6px) rotate(-45deg); }
  /* Hinweis: backdrop-filter im Header macht ihn zum Containing Block, daher feste Höhe statt bottom: 0 */
  .topnav { display: flex; flex-direction: column; gap: 0; position: fixed; left: 0; right: 0; top: 72px; height: calc(100svh - 72px);
    padding: 16px var(--gutter) 40px; background: var(--ink); overflow-y: auto; box-sizing: border-box;
    opacity: 0; pointer-events: none; transform: translateY(-10px); transition: opacity .25s ease, transform .35s cubic-bezier(.2,.8,.2,1); }
  .site-header.open .topnav { opacity: 1; pointer-events: auto; transform: none; }
  .topnav a { font-family: var(--font-display); font-size: clamp(34px, 10vw, 48px); letter-spacing: 0; line-height: 1; color: var(--bone);
    padding: 18px 0; border-bottom: 1px solid var(--rhino-2); opacity: 0; transform: translateY(12px); transition: opacity .3s, transform .4s cubic-bezier(.2,.8,.2,1); transition-delay: calc(var(--i, 0) * 50ms); }
  .site-header.open .topnav a { opacity: 1; transform: none; }
  .topnav a:nth-child(1) { --i: 1; } .topnav a:nth-child(2) { --i: 2; } .topnav a:nth-child(3) { --i: 3; } .topnav a:nth-child(4) { --i: 4; } .topnav a:nth-child(5) { --i: 5; }
  .topnav a::after { display: none; }
  .topnav a.active, .topnav a[aria-current="page"] { color: var(--horn); }
  body.nav-open { overflow: hidden; }
}

/* ---------- Hero / typografische Navigation (Referenz-Prinzip) ---------- */
.hero {
  min-height: calc(100svh - 72px);
  display: grid;
  grid-template-rows: 1fr auto;
  padding-block: clamp(32px, 6vh, 80px) 32px;
}
.hero-grid { display: grid; grid-template-columns: 1fr; align-items: center; align-self: center; gap: 24px; }
@media (min-width: 1000px) { .hero-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); } }
.bignav { display: flex; flex-direction: column; align-self: center; min-width: 0; }
.bignav a {
  font-size: clamp(48px, 12vw, 160px);
  color: var(--bone);
  transition: color .25s ease, transform .25s ease;
  width: max-content;
  max-width: 100%;
}
.bignav a { animation: rise .9s cubic-bezier(.2,.8,.2,1) backwards; animation-delay: calc(var(--i, 0) * 90ms + 80ms); }
.bignav a:nth-child(1) { --i: 0; } .bignav a:nth-child(2) { --i: 1; } .bignav a:nth-child(3) { --i: 2; } .bignav a:nth-child(4) { --i: 3; }
@keyframes rise { from { opacity: 0; transform: translateY(55%); clip-path: inset(0 0 100% 0); } to { opacity: 1; transform: none; clip-path: inset(0 0 -12% 0); } }
.hero-meta { animation: fadeup .9s cubic-bezier(.2,.8,.2,1) .55s backwards; position: relative; }
@keyframes fadeup { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.bignav a:hover { color: var(--horn); transform: translateX(0.04em); }
.bignav:has(a:hover) a:not(:hover) { color: var(--rhino-2); }

/* ---------- Nashorn aus Ziffern ---------- */
.digits-rhino { display: block; position: relative; height: clamp(200px, 52vw, 300px); cursor: crosshair; touch-action: pan-y;
  mask-image: radial-gradient(70% 70% at 50% 50%, #000 55%, transparent 100%); -webkit-mask-image: radial-gradient(70% 70% at 50% 50%, #000 55%, transparent 100%); }
.digits-rhino canvas { display: block; width: 100%; height: 100%; }
@media (min-width: 900px) { .digits-rhino { height: clamp(340px, 44vh, 520px); } }

.hero-meta {
  display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: end;
  margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--rhino-2);
}
.hero-meta .claim { font-size: clamp(18px, 2.2vw, 26px); max-width: 32ch; margin: 0; line-height: 1.3; }
.hero-meta .claim em { font-style: normal; color: var(--horn); }
.hero-meta .loc { color: var(--rhino); font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; text-align: right; }
@media (max-width: 720px) { .hero-meta { grid-template-columns: 1fr; } .hero-meta .loc { text-align: left; } }

/* ---------- Karte: Deutschland mit Dortmund-Marker ---------- */
.map-wrap { position: relative; margin-top: clamp(32px, 6vh, 64px); max-width: 420px; }
.map { width: 100%; height: auto; overflow: visible; display: block; }
.map-fill { fill: var(--ink-2); }
.map-dots { opacity: .55; }
.map-line { fill: none; stroke: var(--rhino-2); stroke-width: .7; stroke-linejoin: round; }
.map-glow { fill: url(#map-glow); }
.map-pin { transform-box: view-box; transform-origin: 0 0; transform: translate(17.9px, 63.3px); }
.map-dot { fill: var(--horn); }
.map-dot-core { fill: var(--ink); }
.map-pulse { fill: none; stroke: var(--horn); stroke-width: .5; transform-box: fill-box; transform-origin: center; animation: pulse 2.4s cubic-bezier(.2,.6,.3,1) infinite; }
.map-pulse.second { animation-delay: 1.2s; }
.map-leader { fill: none; stroke: var(--horn); stroke-width: .5; opacity: .9; }
.map-label { font-family: var(--font-display); font-size: 9px; letter-spacing: .06em; fill: var(--bone); }
.map-sub { font-family: var(--font-body); font-size: 3.6px; letter-spacing: .14em; fill: var(--rhino); text-transform: uppercase; }
.map-caption { display: block; margin-top: 14px; color: var(--rhino); font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; }
@keyframes pulse { from { transform: scale(.3); opacity: 1; } to { transform: scale(2.4); opacity: 0; } }


/* ---------- Karte: Deutschland, Zoom auf Dortmund ---------- */
@keyframes pulse { from { transform: scale(.4); opacity: .9; } to { transform: scale(2.6); opacity: 0; } }

/* ---------- Sections ---------- */
.section { padding-block: clamp(72px, 12vh, 150px); border-top: 1px solid var(--rhino-2); scroll-margin-top: 72px; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; margin-bottom: clamp(28px, 5vh, 56px); }
.kicker { color: var(--horn); font-size: 13px; letter-spacing: 0.2em; text-transform: uppercase; }
.section-head .num { font-family: var(--font-display); font-size: 48px; color: var(--rhino-2); line-height: 1; }

/* Wortliste – wie beim Vorbild: Leistungen/Projekte als riesige Wörter */
.wordlist { list-style: none; margin: 0; padding: 0; }
.wordlist li { border-top: 1px solid var(--rhino-2); }
.wordlist li:last-child { border-bottom: 1px solid var(--rhino-2); }
.wordlist > li > a, .wordlist > li > .row {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 36ch);
  gap: 24px; align-items: center;
  padding: clamp(14px, 2.4vh, 26px) 0;
  transition: color .2s ease, padding-left .25s ease;
}
.wordlist .word { font-size: clamp(36px, 7vw, 104px); overflow-wrap: anywhere; }
.wordlist .accent-dot { color: var(--horn); }
.wordlist .desc { color: var(--rhino); font-size: 15px; max-width: 36ch; }
.wordlist .meta { display: block; margin-top: 10px; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--rhino); opacity: 0.75; }
.wordlist li:hover .meta { color: var(--horn); }
.wordlist > li:hover > a, .wordlist > li:hover > .row { color: var(--horn); padding-left: 0.3em; }
.wordlist li:hover .desc { color: var(--bone); }
@media (max-width: 860px) { .wordlist > li > a, .wordlist > li > .row { grid-template-columns: 1fr; gap: 6px; } }

/* ---------- Über / Nashorn ---------- */
.about { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.about h2.display { font-size: clamp(44px, 7vw, 120px); }
.about h2 .accent { color: var(--horn); }
.values { list-style: none; margin: 0; padding: 0; counter-reset: v; max-width: 56ch; }
.values li { counter-increment: v; position: relative; padding: 18px 0 18px 52px; border-top: 1px solid var(--rhino-2); color: var(--rhino); }
.values li:last-child { border-bottom: 1px solid var(--rhino-2); }
.values li::before { content: "0" counter(v); position: absolute; left: 0; top: 16px; font-family: var(--font-display); font-size: 26px; line-height: 1; color: var(--horn); }
.values li strong { color: var(--bone); font-weight: 600; }
.person { display: flex; align-items: center; gap: 24px; margin-bottom: 32px; }
.portrait { width: clamp(120px, 14vw, 168px); height: auto; aspect-ratio: 1; border-radius: 50%; object-fit: cover; border: 2px solid var(--rhino-2); box-shadow: 0 0 0 6px var(--ink); flex-shrink: 0; }
.person-text { display: grid; gap: 4px; }
.person-text strong { font-size: 20px; font-weight: 600; color: var(--bone); }
.person-text span { color: var(--rhino); font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; } }

/* ---------- Kontakt ---------- */
.contact h2.display { font-size: clamp(56px, 13vw, 200px); }
.contact h2 a { color: var(--bone); transition: color .2s; }
.contact h2 a:hover { color: var(--horn); }
.contact .sub { color: var(--rhino); max-width: 48ch; margin-top: 24px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  margin-top: 32px; padding: 14px 22px;
  background: var(--horn); color: var(--ink);
  font-weight: 600; letter-spacing: 0.04em;
  border-radius: 999px; transition: background .2s, transform .2s;
}
.btn:hover { background: var(--horn-2); transform: translateY(-1px); }
.btn.ghost { background: transparent; color: var(--bone); border: 1px solid var(--rhino-2); margin-left: 8px; }
.btn.ghost:hover { border-color: var(--bone); }

/* ---------- Blog ---------- */
.blog { padding-block: clamp(48px, 8vh, 96px) 120px; }
.blog-head { margin-bottom: clamp(40px, 7vh, 80px); }
.blog-head h1 { font-size: clamp(56px, 10vw, 150px); margin-top: 12px; }
.blog-head .sub, .post .sub { color: var(--rhino); max-width: 60ch; margin-top: 20px; }
.year { display: grid; grid-template-columns: 140px 1fr; gap: 24px; padding-block: 32px; border-top: 1px solid var(--rhino-2); }
.year-label { font-size: 48px; color: var(--rhino-2); line-height: 1; }
.postlist { list-style: none; margin: 0; padding: 0; }
.postlist li { border-bottom: 1px solid var(--rhino-2); }
.postlist a { display: grid; grid-template-columns: 150px 1fr; gap: 6px 24px; padding: 18px 0; align-items: baseline; transition: color .2s, padding-left .25s; }
.postlist a:hover { color: var(--horn); padding-left: 0.4em; }
.post-date { color: var(--rhino); font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; }
.post-title { font-size: clamp(18px, 2.2vw, 24px); font-weight: 600; line-height: 1.3; }
.post-cats { grid-column: 2; color: var(--rhino); font-size: 13px; }
@media (max-width: 720px) { .year { grid-template-columns: 1fr; gap: 8px; } .postlist a { grid-template-columns: 1fr; gap: 4px; } .post-cats { grid-column: 1; } }

.post { max-width: 76ch; }
.post-head { margin-bottom: 40px; }
.post-head h1 { font-size: clamp(40px, 6.5vw, 88px); margin-top: 12px; }
.backlink { display: inline-block; margin-bottom: 28px; color: var(--rhino); font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; }
.backlink:hover { color: var(--horn); }
.prose { color: var(--rhino); font-size: 17px; line-height: 1.7; }
.prose h1, .prose h2, .prose h3, .prose h4 { color: var(--bone); font-family: var(--font-body); font-weight: 600; line-height: 1.25; margin: 2em 0 0.6em; }
.prose h2 { font-size: 26px; } .prose h3 { font-size: 21px; } .prose h4 { font-size: 18px; }
.prose p, .prose ul, .prose ol, .prose blockquote, .prose table, .video-consent { aspect-ratio: 16 / 9; display: flex; flex-direction: column; justify-content: center; gap: 4px; padding: 24px; margin: 8px 0 1.2em; background: var(--ink-2); border: 1px solid var(--rhino-2); border-radius: 8px; font-size: 15px; }
.video-consent p { margin: 0 0 12px; max-width: 60ch; }
.video-consent .btn { margin-right: 16px; }
.gist-src { font-size: 14px; margin-top: -0.6em; }
@media (max-width: 560px) { .video-consent { aspect-ratio: auto; } }
.prose pre { margin: 0 0 1.2em; }
.prose strong { color: var(--bone); font-weight: 600; }
.prose a { color: var(--horn); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--horn) 40%, transparent); text-underline-offset: 3px; overflow-wrap: anywhere; }
.prose a:hover { text-decoration-color: var(--horn); }
.prose img, .prose iframe { max-width: 100%; height: auto; border-radius: 8px; border: 1px solid var(--rhino-2); margin: 8px 0; }
.prose iframe { aspect-ratio: 16 / 9; width: 100%; height: auto; }
.prose pre { background: var(--ink-2); border: 1px solid var(--rhino-2); border-radius: 8px; padding: 16px 18px; overflow-x: auto; font-size: 14px; line-height: 1.55; color: var(--bone); }
.prose code { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 0.92em; }
.prose :not(pre) > code { background: var(--ink-2); border: 1px solid var(--rhino-2); border-radius: 4px; padding: 1px 6px; color: var(--bone); }
.prose blockquote { border-left: 3px solid var(--horn); padding-left: 18px; color: var(--bone); }
.prose table { border-collapse: collapse; width: 100%; font-size: 15px; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--rhino-2); padding: 8px 10px; text-align: left; vertical-align: top; }
.prose th { color: var(--bone); }
.prose hr { border: 0; border-top: 1px solid var(--rhino-2); margin: 2em 0; }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 40px 0 0; padding: 0; }
.tags li { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--rhino); border: 1px solid var(--rhino-2); border-radius: 999px; padding: 6px 12px; }
.post-nav { margin-top: 40px; }
.post-nav .btn.ghost { margin-left: 0; }

/* ---------- 404 ---------- */
.notfound { min-height: calc(100svh - 72px - 64px); display: grid; align-content: center; padding-block: 64px; position: relative; }
.notfound h1 { font-size: clamp(56px, 12vw, 180px); margin-top: 12px; }
.notfound h1 .accent { color: var(--horn); }
.notfound .sub { color: var(--rhino); max-width: 48ch; margin-top: 24px; }
.notfound .actions { display: flex; flex-wrap: wrap; gap: 8px; }
.notfound .actions .btn.ghost { margin-left: 0; }
.notfound .mark { position: absolute; right: 0; bottom: 48px; width: clamp(160px, 28vw, 420px); color: var(--rhino-2); z-index: -1; }

/* ---------- Mobile Feinschliff ---------- */
@media (max-width: 720px) {
  body { font-size: 16px; }
  .hero { padding-block: 24px 24px; min-height: auto; }
  .hero-grid { gap: 8px; }
  .bignav a { font-size: clamp(44px, 15vw, 64px); }
  .hero-meta { margin-top: 28px; gap: 12px; }
  .section { padding-block: 56px; }
  .section-head { margin-bottom: 20px; }
  .section-head .num { font-size: 36px; }
  .wordlist .word { font-size: clamp(32px, 10.5vw, 44px); }
  .wordlist > li > a, .wordlist > li > .row { padding: 16px 0; }
  .wordlist .desc { font-size: 14px; }
  .about h2.display { font-size: clamp(44px, 14vw, 64px); }
  .map-wrap { max-width: 100%; margin-top: 24px; }
  .person { gap: 16px; }
  .portrait { width: 96px; }
  .values li { padding: 14px 0 14px 44px; font-size: 15px; }
  .values li::before { font-size: 22px; top: 13px; }
  .contact h2.display { font-size: clamp(52px, 17vw, 80px); }
  .contact .btn { width: 100%; justify-content: center; }
  .blog { padding-block: 32px 80px; }
  .blog-head h1 { font-size: clamp(44px, 14vw, 64px); }
  .post-head h1 { font-size: clamp(32px, 10vw, 44px); }
  .prose { font-size: 16px; }
  .prose pre { font-size: 13px; padding: 12px; }
  .site-footer { font-size: 11px; gap: 10px; }
  .notfound h1 { font-size: clamp(44px, 15vw, 72px); }
  .notfound .mark { width: 45vw; opacity: .5; }
}

/* ---------- Footer ---------- */
.site-footer {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 22px var(--gutter);
  border-top: 1px solid var(--rhino-2);
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--rhino);
}
.site-footer nav { display: flex; gap: 20px; }
.site-footer a:hover { color: var(--bone); }

/* ---------- Unterseiten (Impressum / Datenschutz) ---------- */
.legal { padding-block: 64px 120px; max-width: 72ch; }
.legal h1 { font-size: clamp(44px, 8vw, 110px); margin-bottom: 32px; }
.legal h2 { font-size: 20px; margin-top: 40px; }
.legal p, .legal li { color: var(--rhino); }
.legal strong { color: var(--bone); }
.legal h3 { font-size: 16px; margin: 24px 0 6px; color: var(--bone); }
.legal ul { color: var(--rhino); padding-left: 20px; }
.legal a { color: var(--horn); }
.legal .stand { font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; margin-top: -16px; margin-bottom: 32px; }

/* ---------- Reveal & Stagger ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
.stagger > * { opacity: 0; transform: translateY(22px); transition: opacity .55s cubic-bezier(.2,.8,.2,1), transform .55s cubic-bezier(.2,.8,.2,1); transition-delay: var(--d, 0ms); }
.reveal.in .stagger > *, .stagger.in > * { opacity: 1; transform: none; }
.section-head .kicker, .section-head .num { display: inline-block; }

/* Scroll-Fortschritt */
.progress { position: fixed; top: 0; left: 0; z-index: 60; height: 2px; width: 100%; transform-origin: 0 50%; transform: scaleX(var(--progress, 0)); background: var(--horn); pointer-events: none; }

/* Aktive Navigation mit wandernder Unterstreichung */
.topnav a { position: relative; padding-bottom: 4px; transition: color .25s; }
.topnav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--horn); transform: scaleX(0); transform-origin: 0 50%; transition: transform .3s cubic-bezier(.2,.8,.2,1); }
.topnav a:hover::after, .topnav a[aria-current="page"]::after, .topnav a.active::after { transform: scaleX(1); }
.topnav a.active { color: var(--bone); }

/* Zeilen: Beschreibung rückt beim Hover nach */
.wordlist .desc { transition: color .25s, transform .3s cubic-bezier(.2,.8,.2,1); }
.wordlist > li:hover .desc { transform: translateX(6px); }

/* Magnetische Buttons und Porträt-Tilt */
.btn { will-change: transform; }
.person { perspective: 800px; }
.portrait { transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s; transform: rotateX(var(--rx, 0)) rotateY(var(--ry, 0)); }

/* Seitenübergang (Start <-> Blog), Header bleibt stehen */
@view-transition { navigation: auto; }
.site-header { view-transition-name: site-header; }
::view-transition-old(root) { animation: 220ms ease-out both vt-out; }
::view-transition-new(root) { animation: 320ms cubic-bezier(.2,.8,.2,1) both vt-in; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-10px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(14px); } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .bignav a, .hero-meta { animation: none; }
  .stagger > * { opacity: 1; transform: none; transition: none; }
  .map-pulse { animation: none; opacity: .5; }
  .progress, .topnav a::after, .portrait, .wordlist .desc { transition: none; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}
