/* Cormorant Garamond — local, latin + latin-ext */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url(fonts/cormorant-normal-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url(fonts/cormorant-normal-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 300 500;
  font-display: swap;
  src: url(fonts/cormorant-italic-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 300 500;
  font-display: swap;
  src: url(fonts/cormorant-italic-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Inter — local, latin + latin-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url(fonts/inter-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url(fonts/inter-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ═══════════════════════════════════════════
   VARIABLES
   ═══════════════════════════════════════════ */

:root {
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Inter', -apple-system, sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --gold: #c4a265;
  --gold-soft: rgba(196,162,101,0.3);
  --gold-dim: rgba(196,162,101,0.12);
  --gold-trace: rgba(196,162,101,0.05);
  --gold-glow: rgba(196,162,101,0.15);
}

[data-theme="dark"] {
  --bg: #060606;
  --bg2: #0a0a0a;
  --bg3: #111;
  --border: rgba(255,255,255,0.10);
  --border-h: rgba(255,255,255,0.20);
  --border-btn: rgba(255,255,255,0.18);
  --t1: #f0f0f0;
  --t2: #c0c0c0;
  --t3: #8a8a8a;
  --t4: #3a3a3a;
  --glow: rgba(196,162,101,0.05);
  --progress: rgba(196,162,101,0.5);
  --img-shadow: rgba(0,0,0,0.3);
  --node-bg: rgba(10,10,10,0.9);
  --node-active-bg: rgba(196,162,101,0.06);
  --node-locked-bg: rgba(20,20,20,0.5);
}

[data-theme="light"] {
  --bg: #f0ece4;
  --bg2: #e8e3da;
  --bg3: #ddd6ca;
  --border: rgba(0,0,0,0.07);
  --border-h: rgba(0,0,0,0.15);
  --border-btn: rgba(0,0,0,0.14);
  --t1: #111;
  --t2: #555;
  --t3: #888;
  --t4: #cec5b8;
  --glow: rgba(196,162,101,0.07);
  --progress: rgba(196,162,101,0.6);
  --img-shadow: rgba(0,0,0,0.12);
  --node-bg: rgba(240,236,228,0.9);
  --node-active-bg: rgba(196,162,101,0.08);
  --node-locked-bg: rgba(220,216,208,0.5);
}

/* ═══════════════════════════════════════════
   RESET & BASE
   ═══════════════════════════════════════════ */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box }
html { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; scroll-behavior: smooth; font-size: 18px }
body { font-family: var(--sans); background: var(--bg); color: var(--t1); overflow-x: hidden; transition: background .5s var(--ease), color .5s var(--ease) }
::selection { background: var(--gold); color: var(--bg) }
html, body { scrollbar-width: none }
::-webkit-scrollbar { display: none }
a { color: inherit; text-decoration: none }

/* Noise texture overlay */
body::after {
  content: ''; position: fixed; inset: 0; z-index: 10000;
  pointer-events: none; opacity: .015;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}

/* ═══════════════════════════════════════════
   GLOBAL COMPONENTS
   ═══════════════════════════════════════════ */

/* Progress bar */
.progress { position: fixed; top: 0; left: 0; height: 2px; background: var(--progress); z-index: 9999; width: 0 }

/* Cursor glow */
.cursor-glow {
  position: fixed; width: 800px; height: 800px; border-radius: 50%;
  background: radial-gradient(circle, var(--glow) 0%, transparent 60%);
  pointer-events: none; z-index: 1; transform: translate3d(-400px,-400px,0);
  will-change: transform; opacity: 0; transition: opacity .6s var(--ease);
}
.cursor-glow.active { opacity: 1 }
@media (hover: none) { .cursor-glow { display: none } }

/* Theme toggle (big, top-left like original) */
.toggle {
  position: fixed; top: 32px; left: 36px; z-index: 500;
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--bg2); border: 1px solid var(--border-h);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: border-color .2s ease-out, background .2s ease-out;
  opacity: 0; animation: fadeIn .4s var(--ease) .3s forwards;
  transform-origin: center bottom;
}
.toggle::before {
  content: ''; position: absolute; inset: -1px; border-radius: 50%;
  border: 1px solid var(--gold);
  clip-path: inset(0 50% 0 50%); transition: clip-path .2s ease-out;
  pointer-events: none;
}
.toggle:hover { border-color: transparent; transform: scale(1.08) }
.toggle:hover::before { clip-path: inset(0 0 0 0) }
.toggle svg { width: 16px; height: 16px; stroke: var(--t2); fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; transition: stroke .2s ease-out }
.toggle:hover svg { stroke: var(--t1) }
.toggle-label {
  position: fixed; top: 42px; left: 82px; z-index: 500;
  font-family: var(--sans); font-size: .55rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--t3); font-weight: 400;
  opacity: 0; animation: fadeIn .4s var(--ease) .4s forwards;
  pointer-events: none;
}

/* Settings gear (always visible, below toggle) */
.settings-btn {
  position: fixed; top: 78px; left: 40px; z-index: 501;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--bg2); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: border-color .2s ease-out, background .2s ease-out, transform .3s var(--ease);
  opacity: 0; animation: fadeIn .4s var(--ease) .5s forwards;
}

.settings-btn::before {
  content: ''; position: absolute; inset: -1px; border-radius: 50%;
  border: 1px solid var(--gold);
  clip-path: inset(0 50% 0 50%); transition: clip-path .2s ease-out;
  pointer-events: none;
}
.settings-btn:hover { border-color: transparent; transform: scale(1.1) }
.settings-btn:hover::before { clip-path: inset(0 0 0 0) }
.settings-btn svg { width: 11px; height: 11px; stroke: var(--t3); fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; transition: stroke .2s ease-out }
.settings-btn:hover svg { stroke: var(--t1) }

/* Settings panel */
.settings-panel {
  position: fixed; top: 114px; left: 36px; z-index: 501;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: 16px; padding: 24px 0 20px; min-width: 240px;
  opacity: 0; transform: translateY(-8px) scale(0.98); pointer-events: none;
  transition: opacity .2s var(--ease), transform .25s var(--ease);
  box-shadow: 0 8px 32px rgba(0,0,0,0.12), 0 0 0 0.5px rgba(255,255,255,0.04) inset;
}
.settings-panel.open { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto }
.settings-label {
  font-family: var(--sans); font-size: .55rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--t3); padding: 0 24px;
  margin-bottom: 16px; font-weight: 500;
}
.settings-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 24px; cursor: pointer;
  font-family: var(--sans); font-size: .78rem; font-weight: 350; letter-spacing: .01em;
  color: var(--t2); transition: color .15s ease-out, background .15s ease-out;
  user-select: none;
}
.settings-row:hover { color: var(--t1); background: color-mix(in srgb, var(--t4) 8%, transparent) }
.settings-val {
  font-family: var(--sans); font-size: .6rem; letter-spacing: .06em;
  text-transform: uppercase; color: var(--t3); font-weight: 450;
  padding: 4px 12px; background: color-mix(in srgb, var(--t4) 12%, transparent);
  border: none; border-radius: 6px; transition: color .15s, background .15s;
}
.settings-row:hover .settings-val { color: var(--t1); background: color-mix(in srgb, var(--t4) 22%, transparent) }
.settings-divider {
  height: 1px; background: var(--border); margin: 6px 24px;
}

/* Nav links */
.nav-links {
  position: fixed; top: 36px; right: 36px; z-index: 500;
  display: flex; gap: 24px;
  opacity: 0; animation: fadeIn .4s var(--ease) .6s forwards;
}
.nav-link { font-size: .8rem; font-weight: 500; letter-spacing: .06em; color: var(--t2); transition: all .3s var(--ease) }
.nav-link:hover { color: var(--gold); letter-spacing: .08em }

/* Footer */
footer { padding: 56px 0; text-align: center; border-top: 1px solid var(--border) }
.foot { font-size: .78rem; color: var(--t3); letter-spacing: .06em; font-family: var(--serif); font-style: italic }

/* ═══════════════════════════════════════════
   LAYOUT
   ═══════════════════════════════════════════ */

.w { max-width: 900px; margin: 0 auto; padding: 0 48px }
.w-narrow { max-width: 720px; margin: 0 auto; padding: 0 48px }
.w-wide { max-width: 960px; margin: 0 auto; padding: 0 48px }
.gold { color: var(--gold) }
a.gold { transition: letter-spacing .3s var(--ease), opacity .3s var(--ease) }
a.gold:hover { letter-spacing: .03em; opacity: .7 }

/* ═══════════════════════════════════════════
   SHARED CONTENT BLOCKS
   ═══════════════════════════════════════════ */

.block { padding: 48px 0; opacity: 0; transform: translateY(20px) }
.block.vis { opacity: 1; transform: translateY(0); transition: all .9s var(--ease) }
.block .reveal { opacity: 0; transform: translate3d(0, 18px, 0); transition: opacity .6s var(--ease), transform .6s var(--ease) }
.block.vis .reveal { opacity: 1; transform: translate3d(0, 0, 0) }
.block.vis .reveal:nth-child(2) { transition-delay: .04s }

.body-p {
  font-size: 1.05rem;
  color: var(--t2); font-weight: 350; line-height: 1.9;
  margin-bottom: 24px; max-width: 560px;
}
.body-p:last-child { margin-bottom: 0 }
.body-p strong { font-weight: 500; color: var(--t1) }

.body-h {
  font-family: var(--serif);
  font-size: clamp(2rem, 1.5rem + 2vw, 3rem);
  font-weight: 300; letter-spacing: -0.03em; line-height: 1.1;
  margin-bottom: 24px;
}

.blog-rule { width: 40px; height: 1px; background: var(--gold); margin-bottom: 40px }

.pull {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 1rem + 2vw, 2.4rem);
  font-weight: 700; line-height: 1.1; letter-spacing: -0.035em;
  text-align: center; padding: 60px 0;
  max-width: 700px; margin: 0 auto;
}
.pull em { font-style: italic; color: var(--gold) }

/* AI Voice — standout quotes spoken by the AI, not the author */
.ai-voice {
  font-family: var(--serif);
  font-size: clamp(1.2rem, .85rem + 1.4vw, 1.7rem);
  font-weight: 350; font-style: italic; line-height: 1.5; letter-spacing: 0.01em;
  color: var(--t1); text-align: center;
  padding: 40px 0; max-width: 560px; margin: 0 auto;
  position: relative;
}
.ai-voice::before, .ai-voice::after {
  content: ''; display: block; width: 60px; height: 1px;
  background: color-mix(in srgb, var(--gold) 40%, transparent);
  margin: 0 auto;
}
.ai-voice::before { margin-bottom: 32px }
.ai-voice::after { margin-top: 32px }
.ai-voice em { font-style: normal; color: var(--gold); font-weight: 500 }

/* AI-authored page — subtle visual distinction for AI-written content */
.ai-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--sans); font-size: .75rem; font-weight: 500;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--gold); opacity: .7;
  padding: 6px 14px; margin-top: 24px;
  border: 1px solid color-mix(in srgb, var(--gold) 30%, transparent);
  border-radius: 4px;
}
.ai-authored .block .w { border-left: 1px solid color-mix(in srgb, var(--gold) 12%, transparent); padding-left: 52px }
.ai-authored .article-header .w { border-left: none; padding-left: 48px }

.ai-footer {
  border-top: 1px solid var(--border); padding-top: 20px; margin-top: 16px;
}
.ai-footer p {
  font-family: var(--sans); font-size: .8rem; font-weight: 400;
  color: var(--t3); line-height: 1.6; letter-spacing: .01em;
}

.callout { border-left: 2px solid var(--gold); padding: 20px 0 20px 28px; margin: 32px 0 }
.callout p {
  font-family: var(--serif);
  font-size: clamp(1rem, .9rem + .5vw, 1.15rem);
  font-weight: 400; line-height: 1.6; color: var(--t1);
}

/* Big callout — statement with gold bar */
.callout-big {
  border-left: 3px solid var(--gold); padding: 40px 0 40px 40px; margin: 32px 0;
  position: relative; animation: calloutBreathe 4s cubic-bezier(0.45, 0, 0.15, 1) infinite;
}
.callout-big::before {
  content: ''; position: absolute; left: -1px; top: 0; bottom: 0; width: 80px;
  background: linear-gradient(to right, var(--gold-trace), transparent);
  pointer-events: none; animation: calloutGlow 4s cubic-bezier(0.45, 0, 0.15, 1) infinite;
}
.callout-big p {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 1.1rem + 1.5vw, 2.2rem);
  font-weight: 400; line-height: 1.4; color: var(--t1); letter-spacing: -0.02em;
}
.callout-big em { font-style: italic; color: var(--gold) }
.callout-big strong { font-weight: 600; color: var(--t1) }

/* Material scatter */
.mat-grid {
  display: flex; flex-wrap: wrap; gap: 16px; margin: 32px 0;
}
.mat-card {
  display: flex; align-items: center; gap: 16px;
  padding: 20px 28px; border: 1px solid var(--border); border-radius: 16px;
  background: var(--bg2); cursor: default;
  transition: all .4s var(--ease);
  opacity: 0; transform: translate3d(0, 10px, 0);
}
.mat-card:hover { border-color: var(--gold); background: var(--gold-trace); transform: translate3d(0, -2px, 0) }
.mat-icon { width: 32px; height: 32px; flex-shrink: 0 }
.mat-icon svg { width: 32px; height: 32px; stroke: var(--t3); fill: none; stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; transition: stroke .3s var(--ease) }
.mat-card:hover .mat-icon svg { stroke: var(--gold) }
.mat-name { font-family: var(--serif); font-size: 1.15rem; font-weight: 400; transition: color .3s var(--ease) }
.mat-card:hover .mat-name { color: var(--gold) }
.mat-desc { font-size: .82rem; color: var(--t3); line-height: 1.6; margin-top: 2px }
.mat-text { display: flex; flex-direction: column }

.about-block.vis .mat-card { opacity: 1; transform: translate3d(0, 0, 0) }
.about-block.vis .mat-card:nth-child(1) { transition-delay: .04s }
.about-block.vis .mat-card:nth-child(2) { transition-delay: .08s }
.about-block.vis .mat-card:nth-child(3) { transition-delay: .12s }
.about-block.vis .mat-card:nth-child(4) { transition-delay: .16s }
.about-block.vis .mat-card:nth-child(5) { transition-delay: .2s }
.about-block.vis .mat-card:nth-child(6) { transition-delay: .24s }

/* Specs table */
.specs { margin: 32px 0; border-top: 1px solid var(--border) }
.spec { display: grid; grid-template-columns: 160px 1fr; gap: 20px; padding: 14px 0; border-bottom: 1px solid var(--border); font-size: .84rem }
.spec-label { color: var(--t3); font-weight: 400; text-transform: uppercase; letter-spacing: .04em; font-size: .72rem }
.spec-val { color: var(--t2); font-weight: 300; line-height: 1.6 }

/* Images */
.img-full { width: 100%; margin: 24px 0; opacity: 0; transform: translateY(16px) }
.vis .img-full { opacity: 1; transform: translateY(0); transition: all .9s var(--ease) .1s }
.img-full img { width: 100%; height: auto; display: block; box-shadow: 0 16px 48px var(--img-shadow) }
.img-cap { font-size: .72rem; color: var(--t3); margin-top: 10px; font-style: italic; letter-spacing: .02em }

/* Next/CTA link */
.next { text-align: center; padding: 80px 0 48px; border-top: 1px solid var(--border); margin-top: 48px }
.next-label { font-size: .72rem; color: var(--t3); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 12px }
.next-title { font-family: var(--serif); font-size: clamp(1.4rem, 1.1rem + 1.5vw, 2rem); font-weight: 300; letter-spacing: -0.02em; margin-bottom: 24px }
.next-a { font-family: var(--serif); font-size: .95rem; font-style: italic; color: var(--gold); display: inline-flex; align-items: center; gap: 12px; transition: all .5s var(--ease) }
.next-a:hover { gap: 18px }
.next-line { width: 36px; height: 1px; background: var(--gold); transition: width .5s var(--ease) }
.next-a:hover .next-line { width: 56px }

/* Dot separator */
.dot-wrap { padding: 40px 0; display: flex; justify-content: center }
.dot-i { width: 4px; height: 4px; border-radius: 50%; background: var(--gold); animation: dotBreathe 3s cubic-bezier(0.45, 0, 0.15, 1) infinite }

/* ═══════════════════════════════════════════
   INDEX — HERO
   ═══════════════════════════════════════════ */

.hero { min-height: 100vh; min-height: 100svh; display: flex; align-items: center; position: relative }
.hero ~ .ctrl-bar { animation-delay: 1.6s }
.hero ~ .nav-links { animation-delay: 1.6s }

.hero-name {
  font-family: var(--serif); font-size: 5.5rem; font-weight: 400;
  letter-spacing: -0.05em; line-height: .82;
  opacity: 0; transform: translate3d(0, 40px, 0);
  animation: rise .9s var(--ease) .1s forwards;
}
.hero-line { width: 72px; height: 2px; background: var(--gold); margin: 52px 0 44px; opacity: 0; transform-origin: left; animation: lineIn .6s var(--ease) .5s forwards }
.hero-text { font-size: 1.05rem; color: var(--t2); font-weight: 300; max-width: 500px; line-height: 1.9; margin-bottom: 64px; opacity: 0; transform: translate3d(0, 14px, 0); animation: rise .6s var(--ease) .7s forwards }

.hero-nav { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-start }
.hero-btn-group { position: relative }
.hero-expand { cursor: pointer; color: var(--t1); font-family: inherit; font-weight: 500; font-size: .92rem; letter-spacing: .03em }

.btn-3d-wrap { perspective: 800px }
.hero-nav .btn-3d-wrap { opacity: 0; transform: translate3d(0, 10px, 0) }
.hero-nav > .hero-btn-group:nth-child(1) .btn-3d-wrap,
.hero-nav > :nth-child(1) { animation: rise .4s var(--ease) 1s forwards }
.hero-nav > .hero-btn-group:nth-child(2) .btn-3d-wrap,
.hero-nav > :nth-child(2) { animation: rise .4s var(--ease) 1.07s forwards }
.hero-nav > .hero-btn-group:nth-child(3) .btn-3d-wrap,
.hero-nav > :nth-child(3) { animation: rise .4s var(--ease) 1.14s forwards }

/* Hero branches (floating popup menu) */
.hero-branches {
  position: absolute; left: 50%; top: calc(100% + 12px);
  transform: translateX(-50%);
  display: flex; flex-direction: column; gap: 8px;
  padding: 16px; min-width: 200px;
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: 20px; box-shadow: 0 12px 48px rgba(0,0,0,.25), 0 0 0 1px var(--border);
  opacity: 0; pointer-events: none;
  transform: translateX(-50%) scale(.97) translateY(-4px);
  transition: opacity .15s ease-out, transform .15s ease-out;
  z-index: 100;
}
.hero-branches.open {
  opacity: 1; pointer-events: auto;
  transform: translateX(-50%) scale(1) translateY(0);
}
.hero-branch {
  display: block; perspective: 800px;
  padding: 12px 28px; border: 1px solid var(--border-btn); border-radius: 32px;
  font-size: .88rem; font-weight: 500; letter-spacing: .03em; color: var(--t1);
  background: transparent; cursor: pointer; text-decoration: none;
  position: relative; white-space: nowrap;
  will-change: transform;
  opacity: 0; transform: translate3d(0, -4px, 0);
  transition: box-shadow 0s, opacity .1s ease-out;
}
.hero-branch::before {
  content: ''; position: absolute; inset: -1px; border-radius: 32px;
  border: 1px solid var(--gold);
  clip-path: inset(0 50% 0 50%); transition: clip-path .2s ease-out;
  pointer-events: none;
}
.hero-branch::after { content: ''; position: absolute; inset: -1px; border-radius: 32px; border: 1px solid transparent; transition: box-shadow 0s; pointer-events: none }
.hero-branch:hover::before { clip-path: inset(0 0 0 0) }
.hero-branch:hover { border-color: transparent }
.hero-branches.open .hero-branch { transition: transform .2s ease-out, box-shadow 0s }
.hero-branches.open .hero-branch:hover { transform: scale(1.05) translate3d(0,-4px,0) }
.hero-branch:hover::after { border-color: var(--gold-dim); box-shadow: 0 0 24px var(--gold-glow), 0 8px 32px rgba(0,0,0,0.2) }
.hero-branches.open .hero-branch {
  opacity: 1; transform: translate3d(0, 0, 0);
}
.hero-branches.open .hero-branch:nth-child(1) { transition-delay: 0s }
.hero-branches.open .hero-branch:nth-child(2) { transition-delay: .03s }
.hero-branches.open .hero-branch:nth-child(3) { transition-delay: .06s }
.hero-branches.open .hero-branch:nth-child(4) { transition-delay: .09s }
.hero-expand.active { border-color: var(--gold); background: var(--gold-trace) }

.btn-3d {
  display: inline-block; font-size: .92rem; font-weight: 500; letter-spacing: .03em;
  padding: 15px 36px; border: 1px solid var(--border-btn); border-radius: 32px;
  background: transparent; transform-style: preserve-3d;
  transition: transform .2s ease-out, box-shadow .3s var(--ease), background .3s var(--ease);
  will-change: transform; position: relative;
}
.btn-3d::before {
  content: ''; position: absolute; inset: -1px; border-radius: 32px;
  border: 1px solid var(--gold);
  clip-path: inset(0 50% 0 50%); transition: clip-path .2s ease-out;
  pointer-events: none;
}
.btn-3d::after { content: ''; position: absolute; inset: -1px; border-radius: 32px; border: 1px solid transparent; transition: box-shadow 0s; pointer-events: none }
.btn-3d:hover { border-color: transparent; background: var(--gold-trace) }
.btn-3d:hover::before { clip-path: inset(0 0 0 0) }
.btn-3d:hover::after { border-color: var(--gold-dim); box-shadow: 0 0 24px var(--gold-glow), 0 8px 32px rgba(0,0,0,0.2) }
.btn-3d.btn-gold { font-family: var(--serif); font-size: 1.2rem; font-style: italic; color: var(--gold); padding: 17px 52px; border-radius: 36px; border-color: var(--gold-soft) }
.btn-3d.btn-gold::before, .btn-3d.btn-gold::after { border-radius: 36px }

.scroll-i { position: absolute; bottom: 40px; left: 48px; width: 1px; height: 52px; overflow: hidden; opacity: 0; animation: fadeIn .4s var(--ease) 2s forwards }
.scroll-i::after { content: ''; position: absolute; top: -52px; left: 0; width: 1px; height: 52px; background: var(--gold); opacity: .4; animation: drop 2.4s cubic-bezier(0.45, 0, 0.15, 1) infinite }

/* ═══════════════════════════════════════════
   INDEX — SECTIONS
   ═══════════════════════════════════════════ */

.sec { padding: 140px 0 120px }
.sec .reveal { opacity: 0; transform: translate3d(0, 18px, 0); transition: opacity .6s var(--ease), transform .6s var(--ease) }
.sec.vis .reveal { opacity: 1; transform: translate3d(0, 0, 0) }
.sec.vis .reveal:nth-child(2) { transition-delay: .04s }
.sec.vis .reveal:nth-child(3) { transition-delay: .08s }

.sec-n { font-family: var(--serif); font-size: 1.25rem; color: var(--gold); letter-spacing: .14em; margin-bottom: 20px }
.sec-h { font-family: var(--serif); font-size: clamp(2.8rem, 2rem + 4vw, 4.5rem); font-weight: 400; letter-spacing: -0.03em; line-height: 1.04; margin-bottom: 28px }
.sec-p { font-size: 1.05rem; color: var(--t2); font-weight: 300; max-width: 520px; line-height: 1.9; margin-bottom: 64px }

/* Rows */
.rows { border-top: 1px solid var(--border) }
.row {
  display: grid; grid-template-columns: 1fr auto 28px; align-items: center; gap: 20px;
  padding: 30px 0; border-bottom: 1px solid var(--border);
  cursor: pointer; text-decoration: none;
  opacity: 0; transform: translate3d(0, 10px, 0);
  transition: padding .25s var(--ease), border-color .25s var(--ease);
  position: relative;
}
.row::after { content: ''; position: absolute; bottom: -1px; left: 0; width: 0; height: 2px; background: var(--gold); transition: width .4s var(--ease) }
.row:hover { padding-left: 16px; border-bottom-color: transparent }
.row:hover::after { width: 100% }
.sec.vis .row { opacity: 1; transform: translate3d(0, 0, 0); transition: padding .25s var(--ease), border-color .25s var(--ease), opacity .5s var(--ease), transform .5s var(--ease) }
.sec.vis .row:nth-child(1) { transition-delay: .06s }
.sec.vis .row:nth-child(2) { transition-delay: .1s }
.sec.vis .row:nth-child(3) { transition-delay: .14s }
.sec.vis .row:nth-child(4) { transition-delay: .18s }

.row-content { display: flex; flex-direction: column; gap: 8px }
.row-top { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap }
.row-t { font-family: var(--serif); font-size: clamp(1.35rem, 1.2rem + .6vw, 1.7rem); font-weight: 400; transition: color .25s var(--ease) }
.row:hover .row-t { color: var(--gold) }
.row-m { font-size: .72rem; color: var(--t3); letter-spacing: .05em; text-transform: uppercase }
.row-d { font-size: .95rem; color: var(--t2); line-height: 1.8; max-width: 560px }
.row-thumb {
  width: 108px; height: 108px; object-fit: cover; border-radius: 10px;
  border: 1px solid var(--border); opacity: .7;
  transition: opacity .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease);
  flex-shrink: 0; justify-self: center;
}
.row:hover .row-thumb { opacity: 1; border-color: var(--gold); transform: scale(1.05) }
.row-arrow { width: 24px; height: 24px; stroke: var(--gold); fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; opacity: 0; transform: translate3d(-12px, 0, 0); transition: opacity .3s var(--ease), transform .3s var(--ease) }
.row:hover .row-arrow { opacity: 1; transform: translate3d(0, 0, 0) }

.sec-cta {
  display: inline-flex; align-items: center; gap: 16px; margin-top: 56px;
  font-family: var(--serif); font-size: 1.25rem; font-style: italic;
  color: var(--t2); cursor: pointer; letter-spacing: 0em;
  opacity: 0; transform: translate3d(0, 8px, 0);
  transition: color .25s var(--ease), gap .25s var(--ease), letter-spacing .3s var(--ease);
}
.sec.vis .sec-cta, .about-block.vis .sec-cta, .block.vis .sec-cta { opacity: 1; transform: translate3d(0, 0, 0); transition: color .25s var(--ease), gap .25s var(--ease), letter-spacing .3s var(--ease), opacity .5s var(--ease) .2s, transform .5s var(--ease) .2s }
.sec-cta:hover { color: var(--gold); gap: 24px; letter-spacing: .04em }

/* Inline CTA — compact row-style link with gold accent at rest */
.inline-cta {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  margin-top: 40px; padding: 16px 0 16px 20px;
  border-left: 2px solid color-mix(in srgb, var(--gold) 35%, transparent);
  border-bottom: 1px solid var(--border);
  cursor: pointer; text-decoration: none; position: relative;
  opacity: 0; transform: translate3d(0, 8px, 0);
  transition: padding .25s var(--ease), border-color .25s var(--ease), border-left-color .3s var(--ease);
  animation: cta-breathe 3s ease-in-out infinite;
}
@keyframes cta-breathe {
  0%, 100% { border-left-color: color-mix(in srgb, var(--gold) 25%, transparent) }
  50% { border-left-color: color-mix(in srgb, var(--gold) 55%, transparent) }
}
.inline-cta::after {
  content: ''; position: absolute; bottom: -1px; left: 0;
  width: 0; height: 2px; background: var(--gold);
  transition: width .4s var(--ease);
}
.inline-cta:hover { padding-left: 24px; border-bottom-color: transparent; border-left-color: var(--gold); animation: none }
.inline-cta:hover::after { width: 100% }
.about-block.vis .inline-cta, .block.vis .inline-cta {
  opacity: 1; transform: translate3d(0, 0, 0);
  transition: padding .25s var(--ease), border-color .25s var(--ease), border-left-color .3s var(--ease), opacity .5s var(--ease) .2s, transform .5s var(--ease) .2s;
}
.inline-cta-t {
  font-family: var(--serif); font-size: clamp(1.05rem, .9rem + .4vw, 1.2rem);
  font-weight: 400; font-style: italic; color: var(--t2);
  transition: color .25s var(--ease);
}
.inline-cta:hover .inline-cta-t { color: var(--gold) }
.inline-cta-arrow {
  width: 20px; height: 20px; stroke: var(--gold); fill: none;
  stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
  opacity: .35; transform: translate3d(0, 0, 0);
  transition: opacity .3s var(--ease), transform .3s var(--ease);
  flex-shrink: 0;
}
.inline-cta:hover .inline-cta-arrow { opacity: 1; transform: translate3d(4px, 0, 0) }
.cta-l { width: 48px; height: 1.5px; background: var(--gold); transition: width .35s var(--ease) }

/* Article images — full-width within .w container */
.article-img { width: 100%; border-radius: 6px; display: block }

/* Prototyp A: Inline-Thumbnail */
.img-inline {
  display: inline-block; width: 48px; height: 48px;
  border-radius: 4px; object-fit: cover;
  vertical-align: middle; margin: 0 4px;
  border: 1px solid color-mix(in srgb, var(--gold) 40%, transparent);
  cursor: pointer; transition: border-color .2s ease;
}
.img-inline:hover { border-color: var(--gold) }

/* Randbild (Float) */
.img-float-wrap { overflow: hidden }
.img-float {
  float: right; width: 280px; margin: 0 0 16px 32px;
  border-radius: 6px; border: 1px solid color-mix(in srgb, var(--gold) 30%, transparent);
  cursor: pointer; transition: border-color .2s ease;
}
.img-float:hover { border-color: var(--gold) }

/* Prototyp C: Aufklapp-Bild */
.img-reveal { color: var(--gold); cursor: pointer; border-bottom: 1px solid color-mix(in srgb, var(--gold) 40%, transparent); transition: border-color .2s ease }
.img-reveal:hover { border-color: var(--gold) }
.img-reveal-target {
  max-height: 0; overflow: hidden; transition: max-height .5s ease;
  border-radius: 6px; margin-top: 16px;
}
.img-reveal-target.open { max-height: 800px }
.img-reveal-target img { width: 100%; border-radius: 6px; display: block }

/* Specs-Tabelle */
.spec-table { width: 100%; border-collapse: collapse; margin-top: 16px }
.spec-table td {
  padding: 10px 0; border-bottom: 1px solid var(--border);
  font-size: .95rem; line-height: 1.6;
}
.spec-table td:first-child {
  font-weight: 500; color: var(--t2); white-space: nowrap;
  padding-right: 32px; width: 160px;
}

/* Lightbox */
.lb-overlay { position: fixed; inset: 0; z-index: 9999; background: rgba(0,0,0,.85); display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity .3s ease }
.lb-overlay.active { opacity: 1 }
.lb-img { max-width: 85%; max-height: 85%; border-radius: 6px; box-shadow: 0 0 40px rgba(0,0,0,.5); cursor: pointer; transition: opacity .2s ease }
.lb-counter { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,.5); font-size: 13px; font-family: var(--sans); letter-spacing: .05em }
.lb-btn { position: absolute; top: 50%; transform: translateY(-50%); background: none; border: none; color: rgba(255,255,255,.6); font-size: 36px; cursor: pointer; padding: 16px; line-height: 1; transition: color .2s ease; z-index: 1 }
.lb-btn:hover { color: #fff }
.lb-prev { left: 12px }
.lb-next { right: 12px }

@media (max-width: 600px) {
  .img-float { float: none; width: 100%; margin: 0 0 20px 0 }
  .spec-table td:first-child { white-space: normal; width: auto; padding-right: 16px }
}

.sec-cta:hover .cta-l { width: 80px }

/* Statement */
.statement { padding: 125px 48px; text-align: center; display: flex; align-items: center; justify-content: center }
.statement-t { font-family: var(--serif); font-size: 2.4rem; font-weight: 700; line-height: 1.1; letter-spacing: -0.035em; max-width: 1000px; transform: translate3d(0, 20px, 0) }
.statement-t:not(.scroll-words), .pull:not(.scroll-words) { opacity: 0 }
.statement-t.scroll-words, .pull.scroll-words { opacity: 1 }
.statement-t em { font-style: italic; color: var(--gold) }
.vis .statement-t { opacity: 1; transform: translate3d(0, 0, 0); transition: transform .8s var(--ease) }

/* Skill tree teaser (on index) */
.tree-teaser {
  padding: 100px 48px; text-align: center;
  background: var(--bg2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.tree-teaser-inner { max-width: 600px; margin: 0 auto }
.tree-teaser h2 { font-family: var(--serif); font-size: 2.4rem; font-weight: 400; margin-bottom: 16px; opacity: 0; transform: translate3d(0, 14px, 0) }
.tree-teaser p { font-size: 1rem; color: var(--t2); font-weight: 300; line-height: 1.8; margin-bottom: 40px; opacity: 0; transform: translate3d(0, 8px, 0) }
.vis .tree-teaser h2, .tree-teaser.vis h2 { opacity: 1; transform: translate3d(0, 0, 0); transition: all .6s var(--ease) }
.vis .tree-teaser p, .tree-teaser.vis p { opacity: 1; transform: translate3d(0, 0, 0); transition: all .6s var(--ease) .06s }

.tree-nodes { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-bottom: 40px }
.tree-node {
  padding: 10px 20px; border: 1px solid var(--border); border-radius: 24px;
  font-size: .8rem; font-weight: 500; letter-spacing: .04em; color: var(--t2);
  transition: all .3s var(--ease); cursor: default;
  opacity: 0; transform: translate3d(0, 6px, 0);
}
.tree-node.active { border-color: var(--gold); color: var(--gold); background: var(--gold-trace) }
.tree-node.locked { opacity: .3; border-style: dashed }
.vis .tree-node, .tree-teaser.vis .tree-node { opacity: 1; transform: translate3d(0, 0, 0) }
.vis .tree-node.locked, .tree-teaser.vis .tree-node.locked { opacity: .3 }
.vis .tree-node:nth-child(1), .tree-teaser.vis .tree-node:nth-child(1) { transition-delay: .1s }
.vis .tree-node:nth-child(2), .tree-teaser.vis .tree-node:nth-child(2) { transition-delay: .14s }
.vis .tree-node:nth-child(3), .tree-teaser.vis .tree-node:nth-child(3) { transition-delay: .18s }
.vis .tree-node:nth-child(4), .tree-teaser.vis .tree-node:nth-child(4) { transition-delay: .22s }
.vis .tree-node:nth-child(5), .tree-teaser.vis .tree-node:nth-child(5) { transition-delay: .26s }
.vis .tree-node:nth-child(6), .tree-teaser.vis .tree-node:nth-child(6) { transition-delay: .3s }
.vis .tree-node:nth-child(7), .tree-teaser.vis .tree-node:nth-child(7) { transition-delay: .34s }
.vis .tree-node:nth-child(8), .tree-teaser.vis .tree-node:nth-child(8) { transition-delay: .38s }
.vis .tree-node:nth-child(9), .tree-teaser.vis .tree-node:nth-child(9) { transition-delay: .42s }
.vis .tree-node:nth-child(10), .tree-teaser.vis .tree-node:nth-child(10) { transition-delay: .46s }
.vis .tree-node:nth-child(11), .tree-teaser.vis .tree-node:nth-child(11) { transition-delay: .5s }
.vis .tree-node:nth-child(12), .tree-teaser.vis .tree-node:nth-child(12) { transition-delay: .54s }

.tree-link {
  font-family: var(--serif); font-size: 1.1rem; font-style: italic;
  color: var(--gold); display: inline-flex; align-items: center; gap: 12px;
  transition: gap .3s var(--ease); opacity: 0;
}
.vis .tree-link, .tree-teaser.vis .tree-link { opacity: 1; transition: opacity .5s var(--ease) .6s, gap .3s var(--ease) }
.tree-link:hover { gap: 20px }
.tree-link span { width: 36px; height: 1px; background: var(--gold); transition: width .3s var(--ease) }
.tree-link:hover span { width: 56px }

/* Contact (on index) */
.contact { padding: 120px 48px 80px; text-align: center }
.contact-h { font-family: var(--serif); font-size: clamp(2.4rem, 1.6rem + 3.5vw, 4rem); font-weight: 400; letter-spacing: -0.025em; margin-bottom: 20px; opacity: 0; transform: translate3d(0, 14px, 0) }
.contact-sub { font-size: 1.05rem; color: var(--t2); font-weight: 300; margin-bottom: 56px; opacity: 0; transform: translate3d(0, 8px, 0) }
/* Primary CTA */
.contact-primary {
  perspective: 800px; margin-bottom: 56px;
  opacity: 0; transform: translate3d(0, 8px, 0);
}

/* Secondary links (phone, wa, tg) */
.contact-alt {
  display: flex; align-items: center; justify-content: center; gap: 20px;
  margin-bottom: 24px; opacity: 0; transform: translate3d(0, 8px, 0);
}
.contact-alt-link {
  font-size: .85rem; color: var(--t3); font-weight: 400; letter-spacing: .04em;
  transition: color .3s var(--ease), letter-spacing .3s var(--ease);
}
.contact-alt-link:hover { color: var(--gold); letter-spacing: .08em }
.contact-alt-dot {
  width: 3px; height: 3px; border-radius: 50%; background: var(--t4);
}

/* Social icons */
.contact-social {
  display: flex; justify-content: center; gap: 20px;
  opacity: 0; transform: translate3d(0, 8px, 0);
}
.contact-social a {
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border: 1px solid var(--border-btn);
  border-radius: 50%; position: relative;
  transition: transform .2s ease-out, background .3s var(--ease);
}
.contact-social a::before {
  content: ''; position: absolute; inset: -1px; border-radius: 50%;
  border: 1px solid var(--gold);
  clip-path: inset(0 50% 0 50%); transition: clip-path .2s ease-out;
  pointer-events: none;
}
.contact-social a:hover { border-color: transparent; background: var(--gold-trace); transform: scale(1.2); transform-origin: bottom }
.contact-social a:hover::before { clip-path: inset(0 0 0 0) }
.contact-social svg { width: 18px; height: 18px; transition: all .3s var(--ease) }
.contact-social svg path { fill: var(--t3); stroke: none; transition: fill .3s var(--ease) }
.contact-social svg polygon { fill: var(--bg); stroke: none }
.contact-social svg rect, .contact-social svg circle { fill: none; stroke: var(--t3); stroke-width: 1.4; transition: stroke .3s var(--ease) }
.contact-social a:hover svg path { fill: var(--gold) }
.contact-social a:hover svg rect, .contact-social a:hover svg circle { stroke: var(--gold) }

.vis .contact-h, .contact.vis .contact-h { opacity: 1; transform: translate3d(0, 0, 0); transition: all .6s var(--ease) }
.vis .contact-sub, .contact.vis .contact-sub { opacity: 1; transform: translate3d(0, 0, 0); transition: all .6s var(--ease) .04s }
.contact.vis .contact-primary { opacity: 1; transform: translate3d(0, 0, 0); transition: all .6s var(--ease) .08s }
.contact.vis .contact-alt { opacity: 1; transform: translate3d(0, 0, 0); transition: all .6s var(--ease) .12s }
.contact.vis .contact-social { opacity: 1; transform: translate3d(0, 0, 0); transition: all .6s var(--ease) .16s }

/* ═══════════════════════════════════════════
   ABOUT PAGE
   ═══════════════════════════════════════════ */

.about-header { padding: 200px 0 80px }
.about-tag {
  font-family: var(--serif); font-size: .85rem; color: var(--gold);
  letter-spacing: .14em; margin-bottom: 20px;
  opacity: 0; animation: rise .8s var(--ease) .1s forwards;
}
.about-name {
  font-family: var(--serif);
  font-size: clamp(2.6rem, 2rem + 3vw, 4.2rem);
  font-weight: 300; letter-spacing: -0.04em; line-height: .95;
  margin-bottom: 24px;
  opacity: 0; transform: translate3d(0, 30px, 0);
  animation: rise 1s var(--ease) .2s forwards;
}
.about-sub {
  font-size: 1.05rem; color: var(--t2); font-weight: 300; line-height: 1.9;
  max-width: 500px;
  opacity: 0; animation: fadeIn .6s var(--ease) .5s forwards;
}

.about-block { padding: 48px 0; opacity: 0; transform: translateY(20px) }
.about-block.vis { opacity: 1; transform: translateY(0); transition: all .9s var(--ease) }
.about-block .reveal { opacity: 0; transform: translate3d(0, 18px, 0); transition: opacity .6s var(--ease), transform .6s var(--ease) }
.about-block.vis .reveal { opacity: 1; transform: translate3d(0, 0, 0) }
.about-block.vis .reveal:nth-child(2) { transition-delay: .04s }
.about-block.vis .reveal:nth-child(3) { transition-delay: .08s }

/* Domain grid */
.domains {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
  background: var(--border); margin: 32px 0;
}
.domain { background: var(--bg); padding: 32px 28px; transition: background .3s var(--ease) }
.domain:hover { background: var(--bg2) }
.domain-name { font-family: var(--serif); font-size: 1.2rem; font-weight: 400; margin-bottom: 8px; transition: color .3s var(--ease) }
.domain:hover .domain-name { color: var(--gold) }
.domain-desc { font-size: .82rem; color: var(--t3); line-height: 1.7; font-weight: 300 }

/* About CTA */
.about-cta { text-align: center; padding: 80px 0 48px; border-top: 1px solid var(--border); margin-top: 48px }
.about-cta-label { font-size: .72rem; color: var(--t3); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 12px }
.about-cta-title { font-family: var(--serif); font-size: clamp(1.4rem, 1.1rem + 1.5vw, 2rem); font-weight: 300; letter-spacing: -0.02em; margin-bottom: 24px }
.about-cta-a {
  font-family: var(--serif); font-size: .95rem; font-style: italic;
  color: var(--gold); display: inline-flex; align-items: center; gap: 12px;
  transition: all .5s var(--ease);
}
.about-cta-a:hover { gap: 18px }
.about-cta-line { width: 36px; height: 1px; background: var(--gold); transition: width .5s var(--ease) }
.about-cta-a:hover .about-cta-line { width: 56px }

/* ═══════════════════════════════════════════
   SKILL TREE PAGE
   ═══════════════════════════════════════════ */

.tree-header { padding: 180px 0 40px; text-align: center }
.tree-tag { font-family: var(--serif); font-size: .85rem; color: var(--gold); letter-spacing: .14em; margin-bottom: 20px; opacity: 0; animation: rise .8s var(--ease) .1s forwards }
.tree-title { font-family: var(--serif); font-size: clamp(2.6rem, 2rem + 3vw, 4.2rem); font-weight: 300; letter-spacing: -0.04em; line-height: .95; margin-bottom: 20px; opacity: 0; transform: translate3d(0, 30px, 0); animation: rise 1s var(--ease) .2s forwards }
.tree-sub { font-size: .95rem; color: var(--t2); font-weight: 300; line-height: 1.85; max-width: 480px; margin: 0 auto; opacity: 0; animation: fadeIn .6s var(--ease) .5s forwards }
.tree-legend { display: flex; gap: 24px; justify-content: center; margin-top: 32px; opacity: 0; animation: fadeIn .4s var(--ease) .7s forwards }
.legend-item { display: flex; align-items: center; gap: 8px; font-size: .72rem; color: var(--t3); letter-spacing: .04em }
.legend-dot { width: 8px; height: 8px; border-radius: 50% }
.legend-dot.active { background: var(--gold) }
.legend-dot.locked { border: 1px dashed var(--t3); background: transparent }

.tree-container { padding: 60px 24px 100px; max-width: 1100px; margin: 0 auto }

/* Category */
.cat { margin-bottom: 64px; opacity: 0; transform: translateY(24px) }
.cat.vis { opacity: 1; transform: translateY(0); transition: all .9s var(--ease) }
.cat-header { display: flex; align-items: baseline; gap: 16px; margin-bottom: 24px; padding-bottom: 12px; border-bottom: 1px solid var(--border) }
.cat-name { font-family: var(--serif); font-size: 1.6rem; font-weight: 400; letter-spacing: -0.02em }
.cat-count { font-size: .72rem; color: var(--t3); letter-spacing: .06em }

/* Nodes */
.nodes { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1px; background: var(--border) }
.node {
  background: var(--node-bg); padding: 28px 24px;
  cursor: pointer; position: relative;
  transition: all .4s var(--ease);
}
.node:hover { background: var(--node-active-bg) }
.node.locked { background: var(--node-locked-bg); cursor: default }
.node.locked:hover { background: var(--node-locked-bg) }

.node-status { position: absolute; top: 20px; right: 20px; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); transition: all .3s var(--ease) }
.node:hover .node-status { box-shadow: 0 0 12px var(--gold-soft) }
.node.locked .node-status { background: transparent; border: 1px dashed var(--t3) }
.node.locked:hover .node-status { box-shadow: none }

.node-name { font-family: var(--serif); font-size: 1.2rem; font-weight: 400; margin-bottom: 6px; transition: color .3s var(--ease); padding-right: 20px }
.node:hover .node-name { color: var(--gold) }
.node.locked .node-name { color: var(--t3) }
.node.locked:hover .node-name { color: var(--t3) }

.node-desc { font-size: .78rem; color: var(--t3); line-height: 1.65; font-weight: 300; margin-bottom: 12px }

.node-tags { display: flex; flex-wrap: wrap; gap: 6px }
.node-tag { font-size: .62rem; padding: 3px 8px; border: 1px solid var(--border); border-radius: 12px; color: var(--t3); letter-spacing: .04em; text-transform: uppercase }
.node.locked .node-tag { opacity: .4 }

.node-link { font-family: var(--serif); font-size: .82rem; font-style: italic; color: var(--gold); opacity: 0; transform: translateY(4px); transition: all .3s var(--ease); margin-top: 12px; display: inline-flex; align-items: center; gap: 8px }
.node:hover .node-link { opacity: 1; transform: translateY(0) }
.node-link-line { width: 20px; height: 1px; background: var(--gold); transition: width .3s var(--ease) }
.node:hover .node-link-line { width: 32px }

/* Stats */
.tree-stats { display: flex; gap: 1px; background: var(--border); margin-top: 64px }
.stat { flex: 1; background: var(--bg); padding: 32px 24px; text-align: center }
.stat-num { font-family: var(--serif); font-size: 2.4rem; font-weight: 300; color: var(--gold); letter-spacing: -0.03em }
.stat-label { font-size: .68rem; color: var(--t3); letter-spacing: .08em; text-transform: uppercase; margin-top: 6px }

/* Tree CTA */
.tree-cta { text-align: center; padding: 80px 0 48px }
.tree-cta-p { font-family: var(--serif); font-size: 1.2rem; font-style: italic; color: var(--t2); margin-bottom: 24px }
.tree-cta-a { font-family: var(--serif); font-size: .95rem; font-style: italic; color: var(--gold); display: inline-flex; align-items: center; gap: 12px; transition: all .5s var(--ease) }
.tree-cta-a:hover { gap: 18px }
.tree-cta-line { width: 36px; height: 1px; background: var(--gold); transition: width .5s var(--ease) }
.tree-cta-a:hover .tree-cta-line { width: 56px }

/* ═══════════════════════════════════════════
   SKILL TREE — SVG INTERACTIVE (.st-*)
   ═══════════════════════════════════════════ */

.st-wrap {
  position: relative; width: 100%; height: calc(100vh - 200px); min-height: 500px;
  overflow: hidden; touch-action: none; cursor: grab;
}
.st-svg { width: 100%; height: 100%; display: block; user-select: none; -webkit-user-select: none }
.st-teaser-wrap { height: 520px; max-width: 600px; margin: 0 auto }

/* Lines */
.st-line { stroke: var(--border-h); stroke-width: 1; fill: none; opacity: .6 }
.st-line-linked { stroke: var(--gold-dim); opacity: 1 }

/* Node circles */
.st-circle {
  fill: var(--bg2); stroke: var(--border); stroke-width: 1;
  transition: stroke .3s var(--ease), fill .3s var(--ease);
}
.st-linked { fill: var(--gold-trace); stroke: var(--gold-dim) }
.st-tier-0 { fill: var(--gold); stroke: var(--gold) }
.st-node-group:hover .st-circle { stroke: var(--gold) }
.st-node-group:hover .st-linked { fill: var(--gold-dim) }
.st-clickable { cursor: pointer }

/* Glow on hover */
.st-glow {
  fill: var(--gold-glow); opacity: 0;
  transition: opacity .3s var(--ease);
}
.st-node-group:hover .st-glow { opacity: 1 }

/* Labels */
.st-label {
  font-family: var(--sans); font-size: 12px; fill: var(--t3);
  text-anchor: middle; pointer-events: none;
  transition: fill .3s var(--ease);
}
.st-label-t0 { font-family: var(--serif); font-size: 18px; fill: var(--gold); font-weight: 400 }
.st-label-t1 { font-family: var(--serif); font-size: 15px; fill: var(--t2); font-weight: 400 }
.st-label-t2 { font-size: 9px; fill: var(--t3) }
.st-label-t3 { font-size: 10px; fill: var(--t4) }
.st-node-group:hover .st-label { fill: var(--t1) }
.st-node-group:hover .st-label-t0 { fill: var(--gold) }

/* Tooltip */
.st-tooltip {
  position: absolute; z-index: 50; pointer-events: auto;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border); border-radius: 14px;
  padding: 0; max-width: 280px; min-width: 180px;
  opacity: 0; transform: translateY(6px) translateX(-50%);
  transition: opacity .2s var(--ease), transform .25s var(--ease);
  box-shadow: 0 12px 40px rgba(0,0,0,0.15), 0 0 0 0.5px rgba(255,255,255,0.03) inset;
  overflow: hidden;
}
.st-tooltip.visible { opacity: 1; transform: translateY(0) translateX(-50%) }
.st-tooltip-gold-line {
  width: 100%; height: 2px; background: var(--gold);
}
.st-tooltip-title {
  font-family: var(--serif); font-size: 1.1rem; font-weight: 400;
  letter-spacing: -0.01em; color: var(--t1);
  padding: 14px 20px 0;
}
.st-tooltip-desc {
  font-family: var(--sans); font-size: .72rem; color: var(--t3);
  line-height: 1.7; font-weight: 350; padding: 6px 20px 0;
}
.st-tooltip-link {
  font-family: var(--serif); font-style: italic; font-size: .82rem;
  color: var(--gold); padding: 10px 20px 14px;
  display: flex; align-items: center; gap: 8px;
  letter-spacing: .01em; cursor: pointer; text-decoration: none;
  transition: gap .3s var(--ease);
}
.st-tooltip-link:hover { gap: 14px }
.st-tooltip-arrow {
  display: inline-block; width: 20px; height: 1px; background: var(--gold);
  transition: width .3s var(--ease);
}
.st-tooltip-link:only-child { padding-top: 14px }
.st-tooltip-divider {
  width: calc(100% - 40px); height: 1px; background: var(--border); margin: 4px 20px 8px;
}
.st-tooltip-conns { padding: 0 20px 14px; display: flex; flex-direction: column; gap: 4px }
.st-tooltip-conn {
  display: flex; align-items: center; gap: 8px; padding: 4px 6px;
  border-radius: 6px; cursor: pointer; transition: background .15s ease;
}
.st-tooltip-conn:hover { background: color-mix(in srgb, var(--t3) 10%, transparent) }
.st-tooltip-conn-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0 }
.st-tooltip-conn-name { font-family: var(--sans); font-size: .72rem; color: var(--t2) }

/* Reset button */
.st-reset {
  position: absolute; bottom: 24px; right: 24px; z-index: 10;
  width: 36px; height: 36px; border-radius: 50%;
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: border-color .2s ease-out, transform .2s var(--ease);
}
.st-reset::before {
  content: ''; position: absolute; inset: -1px; border-radius: 50%;
  border: 1px solid var(--gold);
  clip-path: inset(0 50% 0 50%); transition: clip-path .2s ease-out;
  pointer-events: none;
}
.st-reset:hover { border-color: transparent; transform: scale(1.1) }
.st-reset:hover::before { clip-path: inset(0 0 0 0) }
.st-reset svg {
  width: 14px; height: 14px; stroke: var(--t3); fill: none;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  transition: stroke .2s ease-out;
}
.st-reset:hover svg { stroke: var(--t1) }

/* Homepage mini preview */
.st-mini { display: block; margin: 0 auto 40px; max-width: 520px; width: 100% }
.st-mini-center { fill: var(--gold); transition: fill .3s var(--ease) }
.st-mini-node {
  fill: var(--gold-trace); stroke: var(--gold); stroke-width: 1;
  transition: all .3s var(--ease);
  filter: drop-shadow(0 0 4px var(--gold-dim));
}
.st-mini-line { stroke: var(--gold-dim); stroke-width: 1; fill: none }
.st-mini-label {
  font-family: var(--sans); font-size: 8px; fill: var(--t2); text-anchor: middle; letter-spacing: .04em;
  transition: transform .25s var(--ease), fill .25s var(--ease);
  transform-box: fill-box; transform-origin: center;
}
.st-mini-cat-group.st-mini-cat-hover .st-mini-label { transform: scale(1.3); fill: var(--t1) }
.st-mini-center-label { font-family: var(--serif); font-size: 11px; fill: var(--gold); text-anchor: middle; font-weight: 400 }
@keyframes stPulse { 0%, 100% { r: 12 } 50% { r: 14 } }
.st-mini-center { animation: stPulse 3s cubic-bezier(0.45,0,0.15,1) infinite }

/* Mini node interactive states (homepage teaser) */
.st-mini-node { cursor: pointer; transition: r .25s var(--ease), filter .25s var(--ease) }
.st-mini-node.st-mini-hover { r: 11; filter: drop-shadow(0 0 6px currentColor) }
.st-mini-node.active { r: 10; filter: drop-shadow(0 0 10px currentColor) }

/* Teaser container */
.st-teaser-container { position: relative; margin-bottom: 24px }

/* Teaser SVG sub-node expansion (in-SVG category drill-down) */
.st-mini-cat-group { transition: opacity .4s var(--ease) }
.st-mini-cat-group.st-mini-dim { opacity: .15 }
.st-mini-subs { pointer-events: auto }
.st-mini-sub-line {
  stroke-width: 0.6; opacity: .5;
}
.st-mini-sub-node {
  fill: transparent; stroke-width: 1;
  cursor: default;
  transition: r .2s var(--ease), filter .2s var(--ease);
}
.st-mini-sub-node.st-mini-sub-linked {
  cursor: pointer; stroke-width: 1.2;
}
.st-mini-sub-node.st-mini-sub-linked:hover {
  filter: drop-shadow(0 0 4px currentColor); r: 8;
}
.st-mini-sub-label {
  font-family: var(--sans); font-size: 6px; fill: var(--t2);
  pointer-events: none; font-weight: 400;
}

/* Teaser popup card (HTML overlay on SVG) */
.st-mini-popup {
  position: absolute; z-index: 10;
  left: 50%; top: 50%; transform: translate(-50%, -50%) scale(0.9);
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border); border-radius: 14px;
  padding: 20px 22px; min-width: 220px; max-width: 280px;
  opacity: 0;
  transition: opacity .25s var(--ease), transform .25s var(--ease);
  pointer-events: none;
}
.st-mini-popup.visible { opacity: 1; transform: translate(-50%, -50%) scale(1); pointer-events: auto }
.st-mini-popup-title {
  font-family: var(--serif); font-size: 1.05rem; font-weight: 400;
  color: var(--t1); margin-bottom: 4px;
}
.st-mini-popup-sub {
  font-family: var(--sans); font-size: .7rem; color: var(--t3);
  letter-spacing: .03em; margin-bottom: 10px;
}
.st-mini-popup-desc {
  font-family: var(--sans); font-size: .78rem; color: var(--t2);
  line-height: 1.6; font-weight: 350; margin-bottom: 14px;
}
.st-mini-popup-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--serif); font-style: italic; font-size: .85rem;
  color: var(--gold); text-decoration: none; cursor: pointer;
  transition: gap .3s var(--ease);
}
.st-mini-popup-link:hover { gap: 12px }

/* Cross-category connection lines — neural-net feel */
.st-connection { fill: none; stroke: var(--gold-dim); stroke-width: 0.8; opacity: 0; pointer-events: none }
.st-connection.visible { opacity: 0.6; stroke: var(--gold); stroke-width: 1.5 }
.st-connection.st-ghost { opacity: 0.12; stroke: var(--gold-dim); stroke-width: 0.6; stroke-dasharray: 6 4; pointer-events: none }

/* Node highlighting states */
.st-node-group.st-active .st-circle { transform: scale(1.3); stroke-width: 2 }
.st-node-group.st-active .st-glow { opacity: 1 }
.st-node-group.st-active .st-label { fill: var(--t1) }
.st-node-group.st-connected .st-circle { animation: stConnectedPulse 1.5s ease-in-out infinite }
.st-node-group.st-connected .st-glow { opacity: 0.6 }
.st-node-group.st-connected .st-label { fill: var(--t2) }
.st-node-group.st-dim { opacity: 0.12; transition: opacity .4s var(--ease) }

/* Hover ripple cascade */
.st-node-group.st-ripple .st-circle { filter: drop-shadow(0 0 8px var(--gold-glow)); stroke: var(--gold) !important; transition: filter .15s ease-out }
.st-node-group.st-ripple .st-glow { opacity: 0.8; transition: opacity .15s ease-out }
.st-connection.st-ripple-line { stroke: var(--gold) !important; opacity: 0.8 !important; stroke-width: 2 !important; transition: all .15s ease-out }
.st-line.st-line-dim { opacity: 0.1 }

/* Linked node distinction — clickable tier-2 nodes */
.st-linked { cursor: pointer }
.st-node-group[data-has-url="1"] .st-label { fill: var(--gold) !important }
.st-node-group[data-has-url="1"]:hover .st-circle { filter: drop-shadow(0 0 6px var(--gold-glow)) }

/* First-visit hint text */
.st-hint {
  position: absolute; left: 50%; bottom: 24px; transform: translateX(-50%);
  font-family: var(--serif); font-style: italic; font-size: .9rem;
  color: var(--t3); opacity: 0; pointer-events: none; white-space: nowrap;
  animation: stHintFadeIn 1.2s ease .6s forwards;
  transition: opacity .4s ease;
  z-index: 5;
}
.st-hint.hidden { opacity: 0 !important; animation: none }
@keyframes stHintFadeIn { to { opacity: 1 } }

/* Minimap */
.st-minimap {
  position: absolute; bottom: 16px; left: 16px; z-index: 10;
  width: 100px; height: 100px;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border); border-radius: 8px;
  opacity: 0; pointer-events: none;
  transition: opacity .3s var(--ease);
  overflow: hidden; cursor: pointer;
}
.st-minimap.visible { opacity: 1; pointer-events: auto }
.st-minimap-svg { width: 100%; height: 100%; display: block }
.st-minimap-viewport { fill: color-mix(in srgb, var(--gold) 8%, transparent); stroke: var(--gold); stroke-width: 20; opacity: 0.5; rx: 10 }

@keyframes stConnectedPulse {
  0%, 100% { filter: drop-shadow(0 0 0px currentColor) }
  50% { filter: drop-shadow(0 0 8px currentColor) }
}

/* Detail panel (side panel) */
.st-detail-panel {
  position: fixed; right: 0; top: 0; bottom: 0; width: 320px; z-index: 200;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  border-left: 1px solid var(--border);
  transform: translateX(100%); transition: transform .3s var(--ease);
  padding: 48px 28px 28px; overflow-y: auto;
  scrollbar-width: none;
}
.st-detail-panel::-webkit-scrollbar { display: none }
.st-detail-panel.open { transform: translateX(0) }
.st-detail-close {
  position: absolute; top: 16px; right: 16px;
  background: none; border: none; color: var(--t3); font-size: 1.4rem;
  cursor: pointer; line-height: 1; padding: 4px 8px;
  transition: color .2s ease-out;
}
.st-detail-close:hover { color: var(--t1) }
.st-detail-cat { font-family: var(--sans); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 8px; font-weight: 500 }
.st-detail-title { font-family: var(--serif); font-size: 1.4rem; font-weight: 400; color: var(--t1); letter-spacing: -0.01em; margin-bottom: 4px }
.st-detail-subtitle { font-family: var(--sans); font-size: .78rem; color: var(--t3); margin-bottom: 16px }
.st-detail-desc { font-family: var(--sans); font-size: .82rem; color: var(--t2); line-height: 1.7; font-weight: 350; margin-bottom: 20px }
.st-detail-open {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--serif); font-style: italic; font-size: .92rem;
  color: var(--gold); text-decoration: none; cursor: pointer;
  transition: gap .3s var(--ease);
}
.st-detail-open:hover { gap: 14px }
.st-detail-arrow { transition: transform .2s var(--ease) }
.st-detail-open:hover .st-detail-arrow { transform: translateX(4px) }
.st-detail-divider { width: 100%; height: 1px; background: var(--border); margin: 24px 0 }
.st-detail-conn-label { font-family: var(--serif); font-size: .88rem; color: var(--t2); margin-bottom: 12px }
.st-detail-conn-list { display: flex; flex-direction: column; gap: 6px }
.st-detail-conn-item {
  display: flex; align-items: center; gap: 10px; padding: 8px 12px;
  border-radius: 10px; cursor: pointer;
  transition: background .2s var(--ease);
}
.st-detail-conn-item:hover { background: var(--bg2) }
.st-detail-conn-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0 }
.st-detail-conn-name { font-size: .82rem; color: var(--t1); flex: 1 }
.st-detail-conn-cat { font-size: .68rem; color: var(--t3); letter-spacing: .04em }

/* Legend: connection line indicator */
.legend-line { width: 16px; height: 0; border-top: 1px dashed var(--gold-dim) }

/* Progressive Disclosure — collapsed tier-2 nodes */
.st-collapsed { opacity: 0; pointer-events: none }

/* Category highlight states */
.st-node-group.st-cat-active .st-circle {
  stroke-width: 2.5;
  filter: drop-shadow(0 0 12px currentColor);
}
.st-node-group.st-cat-active .st-label { fill: var(--t1); font-weight: 600 }
.st-node-group.st-cat-explored .st-circle {
  stroke-width: 1.8;
  filter: drop-shadow(0 0 6px currentColor);
}
.st-node-group.st-cat-explored .st-label { fill: var(--t2) }
.st-node-group[data-tier="1"]:not(.st-cat-active):not(.st-cat-explored) { opacity: 0.7 }
.st-node-group[data-tier="1"]:not(.st-cat-active):not(.st-cat-explored):hover { opacity: 1 }

/* View Toggle: Neuronal / Ordner */
.st-view-toggle {
  display: inline-flex; gap: 0; margin-top: 24px;
  border: 1px solid var(--border); border-radius: 20px; overflow: hidden;
}
.st-view-btn {
  font-family: var(--sans); font-size: .75rem; font-weight: 450;
  letter-spacing: .04em; padding: 7px 20px;
  background: none; border: none; color: var(--t3);
  cursor: pointer; transition: all .2s var(--ease);
}
.st-view-btn.active {
  background: var(--gold); color: var(--bg); font-weight: 550;
}
.st-view-btn:not(.active):hover { color: var(--t1) }

/* Expand-All Toggle */
.st-expand-toggle { margin-top: 16px }
.st-expand-btn {
  font-family: var(--serif); font-size: .82rem; font-style: italic;
  color: var(--gold); background: none; border: none;
  cursor: pointer; letter-spacing: .02em;
  transition: letter-spacing .3s var(--ease), opacity .2s var(--ease);
}
.st-expand-btn:hover { letter-spacing: .06em; opacity: .8 }

/* Ordner View (folder/list alternative) */
.st-ordner {
  max-width: 700px; margin: 0 auto; padding: 20px 24px 60px;
}
.st-ord-section { margin-bottom: 2px }
.st-ord-header {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 20px; cursor: pointer;
  background: color-mix(in srgb, var(--bg2) 60%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-radius: 8px;
  transition: background .2s var(--ease);
}
.st-ord-header:hover { background: var(--bg2) }
.st-ord-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0 }
.st-ord-label { font-family: var(--serif); font-size: 1.05rem; color: var(--t1); flex: 1 }
.st-ord-count {
  font-family: var(--sans); font-size: .68rem; color: var(--t3);
  background: var(--border); padding: 2px 8px; border-radius: 10px;
}
.st-ord-chevron {
  transition: transform .3s var(--ease); color: var(--t3);
}
.st-ord-section.open .st-ord-chevron { transform: rotate(90deg) }
.st-ord-items {
  max-height: 0; overflow: hidden;
  transition: max-height .4s var(--ease);
}
.st-ord-section.open .st-ord-items { max-height: 3000px }
.st-ord-group-label {
  font-family: var(--sans); font-size: .68rem; color: var(--t3);
  letter-spacing: .06em; text-transform: uppercase;
  padding: 14px 24px 6px;
}
.st-ord-node {
  padding: 14px 24px; border-bottom: 1px solid var(--border);
  position: relative;
}
.st-ord-node.linked { cursor: pointer; padding-right: 40px }
.st-ord-node.linked:hover { background: var(--bg2) }
.st-ord-node-label { font-family: var(--serif); font-size: .95rem; color: var(--t1); margin-bottom: 2px }
.st-ord-node-sub { font-family: var(--sans); font-size: .72rem; color: var(--t3); margin-bottom: 6px }
.st-ord-node-desc { font-family: var(--sans); font-size: .8rem; color: var(--t2); line-height: 1.6; font-weight: 350 }
.st-ord-node-arrow {
  position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
  color: var(--gold); font-size: 1rem;
  transition: transform .2s var(--ease);
}
.st-ord-node.linked:hover .st-ord-node-arrow { transform: translateY(-50%) translateX(4px) }

/* Mobile accordion */
.st-mobile-list { display: none }
.st-mob-section { margin-bottom: 2px }
.st-mob-header {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 20px; border-left: 4px solid var(--border);
  background: var(--bg2); cursor: pointer;
  transition: background .2s var(--ease);
}
.st-mob-header:hover { background: var(--bg3, var(--bg2)) }
.st-mob-label { font-family: var(--serif); font-size: 1.05rem; color: var(--t1); flex: 1 }
.st-mob-count {
  font-size: .68rem; color: var(--t3); background: var(--border);
  padding: 2px 8px; border-radius: 10px;
}
.st-mob-chevron {
  transition: transform .3s var(--ease); color: var(--t3);
}
.st-mob-section.open .st-mob-chevron { transform: rotate(90deg) }
.st-mob-items {
  max-height: 0; overflow: hidden;
  transition: max-height .4s var(--ease);
}
.st-mob-section.open .st-mob-items { max-height: 2000px }
.st-mob-group-label {
  font-family: var(--sans); font-size: .68rem; color: var(--t3);
  letter-spacing: .06em; text-transform: uppercase; padding: 14px 24px 6px;
}
.st-mob-node {
  padding: 12px 24px;
  border-bottom: 1px solid var(--border);
}
.st-mob-node.linked { cursor: pointer }
.st-mob-node.linked:hover { background: var(--bg2) }
.st-mob-node-main { display: flex; align-items: center; gap: 8px }
.st-mob-node-label { font-size: .88rem; color: var(--t1); flex: 1 }
.st-mob-node-sub { font-size: .72rem; color: var(--t3); flex-shrink: 0 }
.st-mob-node-arrow { color: var(--gold); font-size: .88rem }
.st-mob-node-conn { font-size: .68rem; color: var(--t3); margin-top: 6px; line-height: 1.5 }

/* ═══════════════════════════════════════════
   ARTICLE / BLOG PAGES
   ═══════════════════════════════════════════ */

.article-header { padding: 200px 0 48px }
.article-tag { font-family: var(--serif); font-size: .85rem; color: var(--gold); letter-spacing: .08em; margin-bottom: 16px; opacity: 0; transform: translateY(12px); animation: rise .8s var(--ease) .1s forwards }
.article-title { font-family: var(--serif); font-size: clamp(2rem, 1.5rem + 3vw, 3.8rem); font-weight: 300; letter-spacing: -0.035em; line-height: .95; margin-bottom: 20px; opacity: 0; transform: translateY(20px); animation: rise 1s var(--ease) .2s forwards }
.article-meta { font-size: .78rem; color: var(--t3); letter-spacing: .04em; display: flex; gap: 20px; flex-wrap: wrap; opacity: 0; animation: fadeIn .6s var(--ease) .5s forwards }
.article-meta span { text-transform: uppercase }

/* Page header (product pages like Sticky Alarm) */
.page-header { padding: 200px 0 80px }
.page-tag { font-family: var(--serif); font-size: .85rem; color: var(--gold); letter-spacing: .14em; margin-bottom: 20px; opacity: 0; animation: rise .8s var(--ease) .1s forwards }
.page-title { font-family: var(--serif); font-size: clamp(2.6rem, 2rem + 3vw, 4.2rem); font-weight: 300; letter-spacing: -0.04em; line-height: .95; margin-bottom: 24px; opacity: 0; transform: translate3d(0, 30px, 0); animation: rise 1s var(--ease) .2s forwards }
.page-sub { font-size: 1.05rem; color: var(--t2); font-weight: 300; line-height: 1.9; max-width: 500px; opacity: 0; animation: fadeIn .6s var(--ease) .5s forwards }

/* ═══════════════════════════════════════════
   LEGAL & LINKS
   ═══════════════════════════════════════════ */

.gold-link { color: var(--gold); transition: opacity .3s var(--ease), letter-spacing .3s var(--ease) }
.gold-link:hover { opacity: .7; letter-spacing: .03em }

.legal-links { display: flex; gap: 16px; justify-content: center; margin-top: 16px }
.legal-links a { font-size: .65rem; color: var(--t3); letter-spacing: .06em; transition: color .3s var(--ease) }
.legal-links a:hover { color: var(--gold) }

/* ═══════════════════════════════════════════
   404 ERROR PAGE
   ═══════════════════════════════════════════ */

.error-page { flex: 1; display: flex; align-items: center; justify-content: center; padding: 48px }
.error-inner { text-align: center; max-width: 500px }
.error-code {
  font-family: var(--serif); font-size: clamp(6rem, 4rem + 10vw, 12rem);
  font-weight: 300; letter-spacing: -0.06em; line-height: .85;
  color: var(--t4); opacity: 0; animation: rise 1s var(--ease) .1s forwards;
  position: relative;
}
.error-code::after {
  content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 60px; height: 2px; background: var(--gold);
  opacity: 0; animation: fadeIn .6s var(--ease) .6s forwards;
}
.error-title {
  font-family: var(--serif); font-size: clamp(1.4rem, 1rem + 2vw, 2.2rem);
  font-weight: 300; letter-spacing: -0.02em; margin-top: 40px;
  opacity: 0; animation: rise .8s var(--ease) .3s forwards;
}
.error-text {
  font-size: .95rem; color: var(--t2); font-weight: 350; line-height: 1.8;
  margin-top: 20px; opacity: 0; animation: fadeIn .6s var(--ease) .5s forwards;
}
.error-home {
  display: inline-flex; align-items: center; gap: 12px; margin-top: 40px;
  font-family: var(--serif); font-size: 1.1rem; font-style: italic;
  color: var(--gold); opacity: 0; animation: fadeIn .6s var(--ease) .7s forwards;
  transition: gap .3s var(--ease);
}
.error-home:hover { gap: 20px }
.error-line { width: 40px; height: 1px; background: var(--gold); transition: width .3s var(--ease) }
.error-home:hover .error-line { width: 64px }

/* ═══════════════════════════════════════════
   OVERLAY / PANEL
   ═══════════════════════════════════════════ */

.overlay {
  position: fixed; inset: 0; z-index: 8000;
  display: flex; align-items: center; justify-content: center;
  pointer-events: none; opacity: 0;
  transition: opacity .35s var(--ease);
}
.overlay.active { pointer-events: auto; opacity: 1 }

.overlay-backdrop {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  cursor: pointer;
}

.overlay-panel {
  position: relative; display: flex; flex-direction: column;
  width: min(94vw, 1400px); height: 92vh;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transform: scale(0);
  transition: transform .5s var(--ease);
}
.overlay.active .overlay-panel { transform: scale(1) }

.overlay-nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 16px; height: 48px; flex-shrink: 0;
  border-bottom: 1px solid var(--border);
  background: var(--bg); position: relative; z-index: 2;
}
.overlay-back {
  width: 32px; height: 32px;
  border: 1px solid var(--border-btn); border-radius: 50%;
  background: var(--bg); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all .3s var(--ease);
}
.overlay-back:hover { border-color: var(--gold) }
.overlay-back svg { stroke: var(--t3); fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; transition: stroke .3s var(--ease) }
.overlay-back:hover svg { stroke: var(--gold) }
.overlay-title {
  font-family: var(--serif); font-size: .9rem;
  color: var(--t3); font-weight: 400;
  position: absolute; left: 50%; transform: translateX(-50%);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  max-width: 50%; pointer-events: none;
}
.overlay-close-btn {
  width: 32px; height: 32px;
  border: 1px solid var(--border-btn); border-radius: 50%;
  background: var(--bg); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all .3s var(--ease);
}
.overlay-close-btn:hover { border-color: var(--gold); background: var(--gold-trace) }
.overlay-close-btn svg { width: 14px; height: 14px; stroke: var(--t3); fill: none; stroke-width: 1.5; stroke-linecap: round; transition: stroke .3s var(--ease) }
.overlay-close-btn:hover svg { stroke: var(--gold) }

.overlay-frame {
  width: 100%; flex: 1;
  border: none; display: block;
  background: var(--bg);
  transition: opacity .2s ease;
}

body.overlay-open { overflow: hidden }
body.overlay-open .cursor-glow,
body.overlay-open .trail-follow { display: none }

/* When loaded inside iframe (overlay) — hide chrome */
html.in-overlay .toggle,
html.in-overlay .toggle-label,
html.in-overlay .settings-btn,
html.in-overlay .dashboard-btn,
html.in-overlay .settings-panel,
html.in-overlay .dashboard-panel,
html.in-overlay .nav-links,
html.in-overlay .cursor-glow,
html.in-overlay .trail-follow,
html.in-overlay footer { display: none }
html.in-overlay .custom-cursor { display: none !important }
html.in-overlay:not([data-cursor="system"]) * { cursor: none !important }
html.in-overlay .hero { min-height: auto; padding-top: 48px }
html.in-overlay .article-header { padding-top: 60px }
html.in-overlay .page-header { padding-top: 60px }
html.in-overlay .about-header { padding-top: 60px }
html.in-overlay .tree-header { padding-top: 60px }
html.in-overlay .st-wrap { height: calc(100vh - 140px) }

/* ═══════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════ */

/* Custom cursor */
.custom-cursor {
  position: fixed; width: 9px; height: 9px; border-radius: 50%;
  background: var(--gold); pointer-events: none; z-index: 10001;
  left: 0; top: 0; margin-left: -4.5px; margin-top: -4.5px;
  opacity: 0;
  transition: width .2s ease-out, height .2s ease-out, opacity .3s ease-out, background .2s ease-out, margin .2s ease-out;
}
.custom-cursor.visible { opacity: 1 }
.custom-cursor.hover { width: 22px; height: 22px; margin-left: -11px; margin-top: -11px; background: rgba(196,162,101,0.7) }
@media (hover: hover) { * { cursor: none !important } }
@media (hover: none) { .custom-cursor { display: none } .cursor-toggle { display: none } }

/* System cursor mode */
[data-cursor="system"] .custom-cursor { display: none !important }
@media (hover: hover) { [data-cursor="system"] * { cursor: auto !important } }
[data-cursor="system"] a, [data-cursor="system"] button, [data-cursor="system"] .btn-3d,
[data-cursor="system"] .hero-branch, [data-cursor="system"] .row,
[data-cursor="system"] .toggle, [data-cursor="system"] .settings-btn,
[data-cursor="system"] .dashboard-btn, [data-cursor="system"] .st-clickable { cursor: pointer !important }

/* Page transition overlay (clean bg fade) */
.page-transition {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--bg); pointer-events: none;
  opacity: 0; transition: opacity .2s ease-out;
}
.page-transition.active { opacity: 1 }

/* Scroll-triggered statement words */
.statement-word {
  display: inline-block; opacity: .1;
  transition: opacity .15s ease-out;
}
.statement-word.vis { opacity: 1 }
.statement-word br { display: contents }

/* Page transition: clean bg fade */

@keyframes rise { from { opacity: 0; transform: translate3d(0, 40px, 0) } to { opacity: 1; transform: translate3d(0, 0, 0) } }
@keyframes fadeIn { from { opacity: 0 } to { opacity: 1 } }
@keyframes lineIn { from { opacity: 0; transform: scaleX(0) } to { opacity: 1; transform: scaleX(1) } }
@keyframes drop { 0% { transform: translateY(0); opacity: .4 } 50% { opacity: .6 } 100% { transform: translateY(104px); opacity: 0 } }
@keyframes dotBreathe { 0%, 100% { transform: scale(1); opacity: .4 } 50% { transform: scale(1.6); opacity: 1 } }
@keyframes calloutBreathe { 0%, 100% { border-left-color: var(--gold) } 50% { border-left-color: var(--gold-soft) } }
@keyframes calloutGlow { 0%, 100% { opacity: 1; width: 80px } 50% { opacity: .5; width: 120px } }

/* Engine breathing animation */
.engine {
  display: inline-block;
  color: var(--gold);
  letter-spacing: .02em;
  text-shadow: 0 0 0 transparent;
  animation: engineIdle 3s cubic-bezier(0.45, 0, 0.15, 1) infinite;
}
@keyframes engineIdle {
  0%, 100% { letter-spacing: .02em; text-shadow: 0 0 0 transparent }
  50% { letter-spacing: .06em; text-shadow: 0 0 12px var(--gold-soft) }
}

/* ═══════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════ */

@media (max-width: 600px) {
  html { font-size: 16px }
  .w, .w-narrow, .w-wide { padding: 0 28px }
  .toggle { top: 20px; left: 20px }
  .toggle-label { top: 30px; left: 66px }
  .settings-btn { top: 64px; left: 24px }
  .settings-panel { top: 98px; left: 16px; min-width: 200px }
  .nav-links { top: 24px; right: 20px; gap: 16px }
  .nav-link { font-size: .7rem }
  .cursor-glow { display: none }
  .custom-cursor { display: none }

  /* Index */
  .hero-name { font-size: 3rem }
  .hero-nav { flex-direction: column }
  .btn-3d-wrap { width: 100% }
  .btn-3d { text-align: center; width: 100% }
  .scroll-i { display: none }
  .sec { padding: 100px 0 80px }
  .row { grid-template-columns: 1fr; gap: 8px }
  .row-thumb { width: 80px; height: 80px; order: -1 }
  .row-arrow { display: none }
  .statement { padding: 80px 28px }
  .statement-t { font-size: 1.8rem }
  .tree-teaser { padding: 80px 28px }
  .contact { padding: 80px 28px 60px }

  /* About */
  .about-header { padding: 120px 0 60px }
  .domains { grid-template-columns: 1fr }

  /* Skill Tree */
  .tree-header { padding: 120px 0 30px }
  .nodes { grid-template-columns: 1fr }
  .tree-stats { flex-direction: column }
  .st-wrap { height: calc(100vh - 160px); min-height: 400px }
  .st-reset { bottom: 16px; right: 16px; width: 32px; height: 32px }
  .st-mini { max-width: 400px }

  /* Mobile skill tree: show accordion, hide SVG (not teaser) */
  .st-wrap:not(.st-teaser-wrap) { display: none }
  .st-teaser-wrap { height: 400px }
  .st-mobile-list { display: block; padding: 0 0 40px }
  .st-view-toggle, .st-expand-toggle { display: none }
  .st-minimap { display: none }
  .st-ordner { display: none !important }
  .st-detail-panel {
    width: 100%; height: auto; max-height: 50vh;
    top: auto; right: 0; left: 0; bottom: 0;
    transform: translateY(100%); border-left: none; border-top: 1px solid var(--border);
    padding: 24px 20px;
  }

  /* Article / Blog */
  .article-header { padding: 120px 0 40px }
  .page-header { padding: 120px 0 60px }
  .spec { grid-template-columns: 1fr; gap: 4px }

  /* Overlay — fullscreen on mobile */
  .overlay-panel { width: 100vw; height: 100vh; border-radius: 0; border: none }
  .overlay-nav { padding: 6px 12px; height: 44px }
  .overlay-frame { border-radius: 0 }
}