/* Design tokens: fonts, colors, themes */
@import url('tokens.css');

/* Site-specific variables (not shared with apps) */
[data-theme="dark"] {
  --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"] {
  --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;
  --frame-w: 1920px;
  --frame-l: max(0px, calc((100vw - var(--frame-w)) / 2));
  --frame-r: max(0px, calc((100vw - var(--frame-w)) / 2));
}
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; box-shadow: 0 0 8px var(--gold-soft), 0 0 20px var(--gold-trace) }

/* Dashboard base hide (full styles in style-game.css) */
.dashboard-btn { display: none }
.dashboard-panel { opacity: 0; pointer-events: none; position: fixed }

/* 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: calc(var(--frame-l) + 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;
}
.toggle svg, .settings-btn svg, .dashboard-btn svg {
  pointer-events: none;
  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: calc(var(--frame-l) + 82px); z-index: 500;
  font-family: var(--sans); font-size: .55rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--t3); font-weight: 400; cursor: pointer; pointer-events: auto;
  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: calc(var(--frame-l) + 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: calc(var(--frame-l) + 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-row-speed { gap: 16px }
.speed-slider { display: flex; flex-direction: column; gap: 5px; min-width: 100px }
.speed-track {
  position: relative; height: 3px; border-radius: 2px;
  background: color-mix(in srgb, var(--t4) 18%, transparent);
  cursor: pointer;
}
.speed-fill {
  position: absolute; left: 0; top: 0; height: 100%; border-radius: 2px;
  background: var(--gold); transition: width .2s ease-out; pointer-events: none;
}
.speed-thumb {
  position: absolute; top: 50%; width: 10px; height: 10px; border-radius: 50%;
  background: var(--gold); transform: translate(-50%, -50%);
  transition: left .2s ease-out;
}
.speed-labels {
  display: flex; justify-content: space-between;
  font-family: var(--sans); font-size: .5rem; letter-spacing: .06em; text-transform: uppercase;
  color: color-mix(in srgb, var(--t4) 60%, transparent); font-weight: 400;
}
.speed-labels span { cursor: pointer; transition: color .15s ease-out; padding: 0 }
.speed-labels span:hover { color: var(--t3) }
.speed-labels span.active { color: var(--gold); font-weight: 500 }

.settings-divider {
  height: 1px; background: var(--border); margin: 6px 24px;
}

/* Auth section in settings panel */
.settings-auth-login { color: var(--gold); cursor: pointer }
.settings-auth-login:hover { color: var(--t1) }
.settings-auth-login svg { stroke: var(--gold); transition: stroke .15s ease-out }
.settings-auth-login:hover svg { stroke: var(--t1) }
.settings-user {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 24px;
}
.settings-user-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--gold); flex-shrink: 0;
}
.settings-user-email {
  font-family: var(--sans); font-size: .65rem; color: var(--t3);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  letter-spacing: .02em;
}
.settings-link {
  text-decoration: none; color: var(--t2);
}
.settings-link svg { stroke: var(--t3); transition: stroke .15s ease-out }
.settings-link:hover svg { stroke: var(--gold) }
.settings-logout { color: var(--t3); cursor: pointer }
.settings-logout:hover { color: var(--err) }

/* Mobile auth link in nav (hidden on desktop) */
.nav-auth-link { display: none }
.nav-auth-link svg { stroke: var(--t3); transition: stroke .2s }
.nav-auth-link:hover svg { stroke: var(--gold) }

/* Nav links */
.nav-links {
  position: fixed; top: 36px; right: calc(var(--frame-r) + 36px); z-index: 500;
  display: flex; gap: 14px; align-items: center;
  opacity: 0; animation: fadeIn .4s var(--ease) .6s forwards;
  transition: top .4s var(--ease), opacity .4s var(--ease);
}
.nav-hidden { top: -40px; opacity: 0; pointer-events: none }
.nav-link { font-size: .72rem; font-weight: 400; letter-spacing: .08em; color: var(--t3); transition: all .3s var(--ease) }
.nav-link:hover { color: var(--gold); letter-spacing: .10em }
.nav-dot { color: var(--gold-trace); font-size: .55rem; user-select: none }

/* Newsletter */
.contact-newsletter { margin-top: 48px; padding-top: 0; border-top: none }
.contact-newsletter-title { font-family: var(--sans); font-size: .68rem; font-weight: 450; letter-spacing: .1em; text-transform: uppercase; color: var(--t3); margin-bottom: 6px }
.contact-newsletter-title .gold { display: none }
.contact-newsletter-sub { font-family: var(--sans); font-size: .72rem; color: var(--t3); margin-bottom: 14px }
.notify-tags { display: flex; gap: 6px; justify-content: center; margin-bottom: 14px; flex-wrap: wrap }
.notify-tag {
  font-family: var(--sans); font-size: .65rem; font-weight: 450;
  letter-spacing: .04em; padding: 4px 12px;
  background: none; border: 1px solid var(--border); border-radius: 16px;
  color: var(--t3); cursor: pointer; transition: all .2s var(--ease);
}
.notify-tag:hover { border-color: var(--gold-dim); color: var(--t2) }
.notify-tag.active { border-color: var(--gold); color: var(--gold) }
.contact-newsletter .notify-block { border-top: none; padding-top: 0; margin-top: 0 }
.contact-newsletter .notify-form { justify-content: center; max-width: 340px; margin: 0 auto }
.contact-newsletter .notify-hint { text-align: center }
.contact-newsletter .notify-success { text-align: center }
.notify-block { margin-top: 32px; padding: 28px 0; border-top: 1px solid var(--border) }
.notify-text { font-family: var(--serif); font-size: .95rem; color: var(--t2); margin-bottom: 16px }
.notify-form { display: flex; gap: 10px; max-width: 420px }
.notify-input {
  flex: 1; padding: 8px 14px; font-family: var(--sans); font-size: .78rem;
  background: transparent; border: 1px solid var(--border); border-radius: 4px;
  color: var(--t1); outline: none; transition: border-color .2s var(--ease);
}
.notify-input:focus { border-color: var(--gold) }
.notify-input::placeholder { color: var(--t3) }
.notify-btn {
  padding: 8px 18px; font-family: var(--sans); font-size: .72rem; font-weight: 500;
  letter-spacing: .04em; white-space: nowrap; color: var(--gold);
}
.notify-hint { font-family: var(--sans); font-size: .68rem; color: var(--t3); margin-top: 10px }
.notify-success { font-family: var(--sans); font-size: .82rem; color: var(--gold); margin-top: 12px }
.notify-error { font-family: var(--sans); font-size: .82rem; color: #e74c3c; margin-top: 12px }

/* Rights form */
.rights-form { margin-top: 32px }
.rights-form label { display: block; margin-top: 24px; margin-bottom: 6px }
.rights-form label:first-child { margin-top: 0 }
.rights-form select,
.rights-form input,
.rights-form textarea {
  display: block; width: 100%; padding: 10px 14px; margin-bottom: 4px;
  font-family: var(--sans); font-size: .82rem; color: var(--t1);
  background: transparent; border: 1px solid var(--border); border-radius: 4px;
  outline: none; transition: border-color .2s var(--ease);
  -webkit-appearance: none; appearance: none;
}
.rights-form select { cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%238a8a8a'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 10px; padding-right: 36px }
.rights-form select:focus,
.rights-form input:focus,
.rights-form textarea:focus { border-color: var(--gold) }
.rights-form input::placeholder,
.rights-form textarea::placeholder { color: var(--t3) }
.rights-form select option { background: var(--bg2); color: var(--t1) }
.rights-form textarea { resize: vertical; min-height: 120px }
.submit-btn {
  display: inline-block; margin-top: 28px; padding: 13px 36px;
  font-family: var(--sans); font-size: .78rem; font-weight: 500; letter-spacing: .04em;
  color: var(--t1); background: transparent;
  border: 1px solid var(--border-btn); border-radius: 32px;
  cursor: pointer; position: relative;
  transition: transform .2s ease-out, background .3s var(--ease);
}
.submit-btn::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;
}
.submit-btn::after {
  content: ''; position: absolute; inset: -1px; border-radius: 32px;
  border: 1px solid transparent; transition: box-shadow 0s; pointer-events: none;
}
.submit-btn:hover { border-color: transparent; background: var(--gold-trace); transform: scale(1.05) }
.submit-btn:hover::before { clip-path: inset(0 0 0 0) }
.submit-btn:hover::after { border-color: var(--gold-dim); box-shadow: 0 0 24px var(--gold-glow), 0 8px 32px rgba(0,0,0,0.2) }

/* Footer */
footer { padding: 48px 0; border-top: 1px solid var(--border) }
.footer-inner {
  max-width: var(--frame-w); margin: 0 auto; padding: 0 48px;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: start; gap: 48px;
}
.footer-center { text-align: center }
.footer-right { text-align: right }
.foot { font-size: .72rem; color: var(--t3); letter-spacing: .06em; font-family: var(--serif); font-style: italic }

/* Footer social — override .contact-social opacity/transform (those are for scroll-reveal in .contact) */
footer .footer-social-icons { opacity: 1; transform: none; margin-bottom: 0; justify-content: flex-start }
footer .footer-social-icons a { width: 36px; height: 36px }
footer .footer-social-icons svg { width: 14px; height: 14px }

/* Footer newsletter */
.footer-newsletter-label {
  font-family: var(--serif); font-size: .95rem; font-weight: 400;
  font-style: italic; color: var(--t2); margin-bottom: 16px;
}
.footer-tags { justify-content: flex-end; margin-bottom: 16px; gap: 8px }
.footer-tags .notify-tag { font-size: .62rem; padding: 5px 14px; border-radius: 20px }
.footer-notify-block { margin-top: 0; padding: 0; border-top: none }
.footer-notify-block .notify-form {
  display: flex; gap: 0; margin-left: auto;
  border: 1px solid var(--border); border-radius: 32px;
  overflow: visible; transition: border-color .2s ease;
}
.footer-notify-block .notify-form:focus-within { border-color: var(--gold-dim) }
.footer-notify-block .notify-input {
  padding: 11px 20px; font-size: .78rem; border: none; border-radius: 0;
  flex: 1; min-width: 180px; background: transparent;
}
.footer-notify-block .notify-input:focus { border-color: transparent }
.footer-notify-block .notify-btn {
  padding: 11px 28px; font-size: .72rem; letter-spacing: .04em;
  border-radius: 0; white-space: nowrap; border: none; border-left: 1px solid var(--border);
  background: transparent; transition: background .2s ease, color .2s ease;
}
.footer-notify-block .notify-btn:hover { background: var(--gold-trace); color: var(--gold) }
.footer-notify-block .notify-success, .footer-notify-block .notify-error { font-size: .72rem; margin-top: 10px; text-align: right }

/* ═══════════════════════════════════════════
   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: 1200px; 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: 64px 0; opacity: 0; transform: translateY(20px) }
.block--wide .w { max-width: 1060px }
.block--accent { background: var(--bg2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border) }
.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 }

/* ═══════════════════════════════════════════
   REVEAL VARIANTS — Directional scroll animations
   ═══════════════════════════════════════════ */

.reveal-up { opacity: 0; transform: translate3d(0, 24px, 0); transition: opacity .7s var(--ease), transform .7s var(--ease) }
.reveal-left { opacity: 0; transform: translate3d(-28px, 0, 0); transition: opacity .7s var(--ease), transform .7s var(--ease) }
.reveal-right { opacity: 0; transform: translate3d(28px, 0, 0); transition: opacity .7s var(--ease), transform .7s var(--ease) }
.reveal-scale { opacity: 0; transform: scale(0.96); transition: opacity .7s var(--ease), transform .7s var(--ease) }

.block.vis .reveal-up, .block.vis .reveal-left, .block.vis .reveal-right, .block.vis .reveal-scale,
.sec.vis .reveal-up, .sec.vis .reveal-left, .sec.vis .reveal-right, .sec.vis .reveal-scale,
.about-block.vis .reveal-up, .about-block.vis .reveal-left, .about-block.vis .reveal-right, .about-block.vis .reveal-scale,
.manifest.vis .reveal-up, .manifest.vis .reveal-left {
  opacity: 1; transform: translate3d(0, 0, 0) scale(1);
}

.reveal-d1 { transition-delay: .1s }
.reveal-d2 { transition-delay: .18s }
.reveal-d3 { transition-delay: .26s }
.reveal-d4 { transition-delay: .34s }

/* In-overlay: show all reveals immediately */
html.in-overlay .reveal-up, html.in-overlay .reveal-left,
html.in-overlay .reveal-right, html.in-overlay .reveal-scale {
  opacity: 1 !important; transform: none !important;
}

/* ═══════════════════════════════════════════
   BUILDING BLOCKS — Article layout variation
   ═══════════════════════════════════════════ */

/* Statement break — big typographic moment */
.block--statement { padding: 80px 0 }
.block--statement .statement-t {
  font-family: var(--serif); font-size: clamp(1.8rem, 1.2rem + 2.5vw, 2.8rem);
  font-weight: 700; text-align: center; line-height: 1.15; letter-spacing: -0.03em;
  max-width: 900px; margin: 0 auto;
}
.block--statement .statement-t em { font-style: italic; color: var(--gold) }

/* Wide image — breaks out of .w */
.block--wide-img { max-width: 1100px; margin: 48px auto; padding: 0 48px }
.block--wide-img img { width: 100%; border-radius: 8px; display: block }

/* Spec block — elevated spec table */
.spec-block {
  background: var(--bg2); border-left: 2px solid var(--gold);
  padding: 32px 36px; margin: 40px 0; border-radius: 0 8px 8px 0;
}
.spec-block .spec-table { margin: 0 }
.spec-block .spec-table td { padding: 10px 0 }

/* Aside — indented context block */
.block--aside {
  border-left: 1px solid var(--border); padding-left: 28px;
  margin: 32px 0; color: var(--t2); font-size: .95rem; line-height: 1.8;
}

/* Spacer — intentional breathing room */
.block--spacer { padding: 40px 0; display: flex; justify-content: center }

/* Contrast block — dramatic number comparison */
.about-contrast {
  display: flex; align-items: center; justify-content: center; gap: clamp(32px, 6vw, 80px);
  padding: 20px 0;
}
.about-contrast-item { text-align: center; }
.about-contrast-num {
  font-family: var(--serif); font-size: clamp(3rem, 2rem + 4vw, 5.5rem);
  font-weight: 300; letter-spacing: -0.04em; line-height: 1;
  display: block; color: var(--t1);
}
.about-contrast-label {
  display: block; margin-top: 12px;
  font-size: .75rem; letter-spacing: .15em; text-transform: uppercase;
  color: var(--t3);
}

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

.body-list {
  font-size: 1.05rem; color: var(--t2); font-weight: 350; line-height: 1.9;
  margin-bottom: 24px; max-width: 600px; padding-left: 24px; list-style: none;
}
.body-list li { position: relative; padding-left: 16px; margin-bottom: 6px }
.body-list li::before { content: '—'; position: absolute; left: -8px; color: var(--gold) }
.body-list li 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.8rem, 1.2rem + 2.5vw, 2.8rem);
  font-weight: 700; line-height: 1.1; letter-spacing: -0.035em;
  text-align: center; padding: 80px 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 {
  display: none;
}
.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 border-left removed — too distracting */

.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: 56px 0; display: flex; justify-content: center; position: relative }
.dot-i { width: 4px; height: 4px; border-radius: 50%; background: var(--gold); animation: dotBreathe 3s cubic-bezier(0.45, 0, 0.15, 1) infinite; position: relative; z-index: 1 }
.dot-i::after {
  content: ''; position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 120px; height: 80px; border-radius: 50%;
  background: radial-gradient(ellipse, rgba(196,162,101,0.08) 0%, transparent 70%);
  animation: dotGlow 3s cubic-bezier(0.45, 0, 0.15, 1) infinite;
  pointer-events: none; z-index: -1;
}

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

.hero { min-height: 100vh; min-height: 100svh; display: flex; align-items: center; position: relative }
.hero::before {
  content: ''; position: absolute; top: 40%; left: 50%;
  transform: translate(-50%, -50%);
  width: 600px; height: 500px;
  background: radial-gradient(ellipse, rgba(196,162,101,0.04) 0%, transparent 70%);
  pointer-events: none; z-index: 0;
}
.hero > * { position: relative; z-index: 1 }
.hero ~ .ctrl-bar { animation-delay: 1.9s }
.hero ~ .nav-links { animation-delay: 1.9s }

/* Cinematic hero layout */
.hero--cinematic { padding: 0 }
.hero-layout {
  display: grid; grid-template-columns: 1.2fr 1fr;
  min-height: 100vh; min-height: 100svh;
  align-items: center; padding: 0 48px;
  max-width: 1920px; margin: 0 auto;
  position: relative; z-index: 1;
}
.hero-left { padding-bottom: 40px }
.hero-right { padding-left: 40px; padding-top: 96px; }
.hero-line--vert {
  width: 2px; height: 80px; background: var(--gold); margin-bottom: 40px;
  opacity: 0; transform-origin: top; animation: lineGrow .8s var(--ease) .3s forwards;
}
@keyframes lineGrow { from { opacity: 0; transform: scaleY(0) } to { opacity: 1; transform: scaleY(1) } }
.hero-accent {
  font-size: 1.15em; display: block;
}

.hero-name {
  font-family: var(--serif); font-size: clamp(5.5rem, 3rem + 10vw, 12rem); 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: 96px; height: 2px; background: var(--gold); margin: 60px 0 48px; 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: 540px; line-height: 2.0; margin-bottom: 36px; opacity: 0; transform: translate3d(0, 14px, 0); animation: rise .6s var(--ease) .85s 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) 1.2s forwards }
.hero-nav > .hero-btn-group:nth-child(2) .btn-3d-wrap,
.hero-nav > :nth-child(2) { animation: rise .4s var(--ease) 1.28s forwards }
.hero-nav > .hero-btn-group:nth-child(3) .btn-3d-wrap,
.hero-nav > :nth-child(3) { animation: rise .4s var(--ease) 1.36s 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: calc(var(--frame-l) + 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: 300px 0 160px }
.sec[id] { scroll-margin-top: -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: 36px 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), transform .35s var(--ease), box-shadow .35s 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; transform: translateY(-3px); box-shadow: 0 6px 24px rgba(0,0,0,0.2) }
.row:hover::after { width: 100% }
.sec.vis .row, .block.vis .row { opacity: 1; transform: translate3d(0, 0, 0); transition: padding .25s var(--ease), border-color .25s var(--ease), transform .35s var(--ease), box-shadow .35s ease, opacity .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.5rem, 1.3rem + .7vw, 1.9rem); font-weight: 400; transition: color .25s var(--ease), letter-spacing .3s ease }
.row:hover .row-t { color: var(--gold); letter-spacing: 0.01em }
.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: 620px }
.row-thumb {
  width: 160px; height: 160px; object-fit: cover; border-radius: 12px;
  border: 1px solid var(--border); opacity: .7;
  transition: opacity .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease), filter .3s ease;
  flex-shrink: 0; justify-self: center;
}
.row:hover .row-thumb { opacity: 1; border-color: var(--gold); transform: scale(1.08); filter: brightness(1.1) }
.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: 72px;
  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: 48px; padding: 20px 0 20px 24px;
  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, .sec.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.1rem, .95rem + .5vw, 1.3rem);
  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: 340px; margin: 0 0 20px 40px;
  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: 200px 48px; text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: center; background: var(--bg2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border) }
.statement-t { font-family: var(--serif); font-size: clamp(2rem, 1.4rem + 2.8vw, 3.2rem); max-width: 800px; line-height: 1.3; 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: 140px 48px; text-align: center;
  background: var(--bg2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.tree-teaser-inner { max-width: 680px; margin: 0 auto }
.tree-teaser h2 { font-family: var(--serif); font-size: clamp(2.4rem, 1.8rem + 3vw, 3.5rem); 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: 56px; 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: 240px 48px 200px; text-align: center }
.contact-h { font-family: var(--serif); font-size: clamp(2.8rem, 2rem + 4vw, 5rem); font-weight: 400; letter-spacing: -0.025em; margin-bottom: 24px; opacity: 0; transform: translate3d(0, 14px, 0) }
.contact-sub { font-size: 1.05rem; color: var(--t2); font-weight: 300; margin-bottom: 72px; 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: 220px 0 96px }
.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(3rem, 2rem + 4vw, 5.5rem);
  font-weight: 300; letter-spacing: -0.04em; line-height: .92;
  margin-bottom: 28px;
  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: 64px 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: Asymmetric grid (text + side element) */
.about-grid { display: grid; grid-template-columns: 1fr 280px; gap: 64px; align-items: start }
.about-grid-side { padding-top: 8px }
.about-side-link {
  display: flex; flex-direction: column; gap: 8px;
  padding: 32px 28px; border: 1px solid var(--border); border-radius: 12px;
  text-decoration: none; color: inherit;
  transition: border-color .4s, background .4s;
}
.about-side-link:hover { border-color: var(--gold-dim); background: var(--gold-trace) }
.about-side-link:hover .sig-arrow { opacity: 1; color: var(--gold) }
.about-side-label { font-size: .6rem; text-transform: uppercase; letter-spacing: .12em }
.about-side-title { font-family: var(--serif); font-size: 1.3rem; font-style: italic; line-height: 1.2; transition: color .4s }
.about-side-link:hover .about-side-title { color: var(--gold) }

/* About: Dual CTA cards */
.about-cta-dual { display: grid; grid-template-columns: 1fr 1fr; gap: 20px }
.about-cta-card {
  padding: 48px 40px; border: 1px solid var(--border); border-radius: 12px;
  text-decoration: none; color: inherit;
  transition: border-color .4s, background .4s, transform .4s var(--ease);
}
.about-cta-card:hover { border-color: var(--gold-dim); background: var(--gold-trace); transform: translateY(-4px) }
.about-cta-card:hover .sig-arrow { opacity: 1; color: var(--gold) }
.about-cta-card-label { font-size: .6rem; text-transform: uppercase; letter-spacing: .12em; color: var(--gold); opacity: .6; margin-bottom: 12px; display: block }
.about-cta-card-title { font-family: var(--serif); font-size: clamp(1.6rem, 1.2rem + 1.5vw, 2.4rem); font-weight: 300; letter-spacing: -0.02em; margin-bottom: 16px; transition: color .4s }
.about-cta-card:hover .about-cta-card-title { color: var(--gold) }

/* About CTA */
.about-cta { text-align: center; padding: 100px 0 60px; border-top: 1px solid var(--border); margin-top: 64px }
.about-cta-label { font-size: .72rem; color: var(--t3); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 16px }
.about-cta-title { font-family: var(--serif); font-size: clamp(1.6rem, 1.2rem + 1.5vw, 2.4rem); font-weight: 300; letter-spacing: -0.02em; margin-bottom: 28px }
.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: 20px; margin-top: 24px;
}
.st-view-btn {
  font-family: var(--serif); font-size: .82rem; font-weight: 400;
  letter-spacing: .03em; padding: 0;
  background: none; border: none; color: var(--t4);
  cursor: pointer; transition: all .3s var(--ease);
  position: relative;
}
.st-view-btn.active { color: var(--t1) }
.st-view-btn.active::after {
  content: ''; position: absolute; bottom: -4px; left: 0; right: 0;
  height: 1px; background: var(--gold);
}
.st-view-btn:not(.active):hover { color: var(--t2) }

/* 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: 900px; margin: 0 auto; padding: 40px 48px 80px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}
.st-ord-section { border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.st-ord-header {
  display: flex; align-items: center; gap: 14px;
  padding: 24px 28px; 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-empty .st-ord-header { cursor: default; opacity: .6 }
.st-ord-empty .st-ord-header:hover { background: color-mix(in srgb, var(--bg2) 60%, transparent) }
.st-ord-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0 }
.st-ord-label-wrap { flex: 1; display: flex; flex-direction: column; gap: 2px }
.st-ord-label { font-family: var(--serif); font-size: 1.2rem; color: var(--t1); transition: color .3s var(--ease) }
.st-ord-header:hover .st-ord-label { color: var(--gold) }
.st-ord-count {
  font-family: var(--sans); font-size: .68rem; color: var(--t3);
  background: var(--border); padding: 2px 8px; border-radius: 10px;
}
.st-ord-soon {
  font-family: var(--sans); font-size: .68rem; color: var(--t4);
  font-style: italic; letter-spacing: .03em;
}
.st-ord-page-arrow {
  color: var(--gold); font-size: .9rem; cursor: pointer;
  transition: transform .2s var(--ease); padding: 4px;
}
.st-ord-page-arrow:hover { transform: translateX(3px) }
.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 set by JS */ }
.st-ord-desc {
  font-family: var(--sans); font-size: .72rem; color: var(--t3); line-height: 1.4;
}
.st-ord-node {
  padding: 14px 28px; border-bottom: 1px solid var(--border);
  position: relative; transition: padding .2s var(--ease);
}
.st-ord-node.linked { cursor: pointer; padding-right: 40px }
.st-ord-node.linked:hover { background: var(--bg2); padding-left: 36px }
.st-ord-node.dimmed { opacity: .5 }
.st-ord-node-label { font-family: var(--serif); font-size: .95rem; color: var(--t1) }
.st-ord-node-sub { font-family: var(--sans); font-size: .72rem; color: var(--t3); margin-top: 2px }
.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) }

/* Timeline */
.st-timeline { max-width: 700px; margin: 48px auto 60px; padding: 0 24px; overflow-x: auto }
.st-timeline-heading {
  font-family: var(--serif); font-size: .85rem; color: var(--t3);
  letter-spacing: .04em; margin-bottom: 20px;
}
.st-timeline-track { position: relative; height: 110px; min-width: 300px }
.st-timeline-line { position: absolute; top: 36px; left: 0; right: 0; height: 1px; background: var(--border) }
.st-timeline-year {
  position: absolute; top: 12px; font-family: var(--sans); font-size: .65rem;
  color: var(--t4); letter-spacing: .05em; transform: translateX(-50%);
}
.st-timeline-dot {
  position: absolute; top: 30px; width: 12px; height: 12px; border-radius: 50%;
  transform: translateX(-50%); transition: transform .2s var(--ease);
}
.st-timeline-dot.linked { cursor: pointer }
.st-timeline-dot.linked:hover { transform: translateX(-50%) scale(1.4) }
.st-timeline-label {
  position: absolute; top: 52px; transform: translateX(-50%);
  text-align: center; white-space: nowrap;
  font-family: var(--serif); font-size: .75rem; color: var(--t2);
}
.st-timeline-sub { font-family: var(--sans); font-size: .6rem; color: var(--t3); display: block; margin-top: 2px }

/* 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: 220px 0 64px; position: relative; overflow: hidden }
.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(2.4rem, 1.5rem + 4vw, 4.5rem); font-weight: 300; letter-spacing: -0.035em; line-height: .92; margin-bottom: 24px; opacity: 0; transform: translateY(20px); animation: rise 1s var(--ease) .2s forwards }
.article-meta { font-size: .72rem; color: var(--t3); letter-spacing: .06em; display: flex; gap: 20px; flex-wrap: wrap; opacity: 0; animation: fadeIn .6s var(--ease) .5s forwards }
.article-meta span { text-transform: uppercase }

/* Craft article header — hero image background */
.article-header--craft { padding: 240px 0 80px }
.article-header--craft::before {
  content: ''; position: absolute; inset: 0;
  background: var(--craft-bg, none);
  background-size: cover; background-position: center;
  opacity: .12; pointer-events: none;
}
.article-header--craft::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to bottom, var(--bg) 0%, transparent 30%, transparent 60%, var(--bg) 100%);
  pointer-events: none;
}
.article-header--craft .w { position: relative; z-index: 1 }
.article-header--craft .article-title { font-size: clamp(3rem, 2rem + 4vw, 5rem) }

/* Software article header — clean with glow */
.article-header--sys { padding: 220px 0 72px }
.article-header--sys::before {
  content: ''; position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 600px; height: 400px;
  background: radial-gradient(ellipse, rgba(196,162,101,.04) 0%, transparent 70%);
  pointer-events: none;
}
.article-header--sys .w { position: relative; z-index: 1 }
.article-header--sys .article-meta {
  padding: 16px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  margin-top: 8px;
}

/* Editorial article header — oversized title */
.article-header--editorial { padding: 220px 0 56px }
.article-header--editorial .article-title { font-size: clamp(2.8rem, 2rem + 4vw, 5rem); margin-bottom: 32px }
.article-header--editorial .article-sub {
  font-family: var(--serif); font-size: 1.15rem; font-style: italic;
  color: var(--t2); line-height: 1.6; max-width: 520px;
  opacity: 0; animation: fadeIn .6s var(--ease) .6s forwards;
}

/* 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 dotGlow { 0%, 100% { opacity: .3; transform: translate(-50%, -50%) scale(0.8) } 50% { opacity: 1; transform: translate(-50%, -50%) scale(1.2) } }
@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) }
}

/* ═══════════════════════════════════════════
   NOISE/GRAIN TEXTURE OVERLAY
   ═══════════════════════════════════════════ */

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

/* ═══════════════════════════════════════════
   MARQUEE TEXT STRIPS
   ═══════════════════════════════════════════ */

.marquee { overflow: hidden; padding: 28px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border) }
.marquee-track { display: flex; width: max-content; animation: marqueeScroll 45s linear infinite }
.marquee-track span {
  font-family: var(--serif); font-size: clamp(.85rem, .7rem + .8vw, 1.2rem);
  font-weight: 300; letter-spacing: .25em; text-transform: uppercase;
  color: var(--gold-dim); white-space: nowrap; padding-right: 2em;
}
@keyframes marqueeScroll { to { transform: translateX(-50%) } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none } }

/* Reverse direction variant */
.marquee--reverse .marquee-track { animation-direction: reverse }

/* ═══════════════════════════════════════════
   BACKGROUND WATERMARK TYPOGRAPHY
   ═══════════════════════════════════════════ */

.sec--watermark { position: relative; overflow: hidden }
.sec--watermark::after {
  content: attr(data-watermark);
  position: absolute; top: 50%; right: -5%; transform: translateY(-50%);
  font-family: var(--serif); font-size: clamp(12rem, 8rem + 18vw, 28rem);
  font-weight: 200; color: var(--gold-trace); opacity: .35;
  pointer-events: none; line-height: 1; letter-spacing: -0.05em;
  white-space: nowrap; z-index: 0;
}
.sec--watermark > * { position: relative; z-index: 1 }

/* ═══════════════════════════════════════════
   STATS COUNTER STRIP
   ═══════════════════════════════════════════ */

.stats-strip {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--border);
}
.stat-item { background: var(--bg); padding: 56px 32px; text-align: center; transition: background .4s }
.stat-item:hover { background: var(--bg2) }
.stat-num {
  font-family: var(--serif); font-size: clamp(2.4rem, 1.5rem + 3vw, 4rem);
  font-weight: 200; color: var(--gold); display: block;
  letter-spacing: -0.03em; line-height: 1;
}
.stat-label {
  font-size: .6rem; text-transform: uppercase; letter-spacing: .12em;
  color: var(--t3); margin-top: 12px; display: block;
}

/* ═══════════════════════════════════════════
   SPLIT-SCREEN BLOCKS (About)
   ═══════════════════════════════════════════ */

.about-split {
  display: grid; grid-template-columns: 1fr 1fr; min-height: 70vh;
  max-width: 1200px; margin: 0 auto;
  opacity: 0; transform: translateY(20px);
}
.about-split.vis { opacity: 1; transform: translateY(0); transition: all .9s var(--ease) }
.about-split-left {
  padding: 100px 80px; display: flex; flex-direction: column; justify-content: center;
  border-right: 1px solid var(--border);
}
.about-split-right {
  padding: 100px 80px; display: flex; flex-direction: column; justify-content: center;
  background: var(--bg2); position: relative; overflow: hidden;
}
.about-split-right::before {
  content: ''; position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 400px; height: 400px;
  background: radial-gradient(ellipse, rgba(196,162,101,.06) 0%, transparent 70%);
  pointer-events: none;
}

/* ═══════════════════════════════════════════
   HORIZONTAL IMAGE GALLERY (Articles)
   ═══════════════════════════════════════════ */

.img-gallery {
  display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 40px 0; margin: 32px -48px; padding-left: 48px; padding-right: 48px;
  scrollbar-width: none;
}
.img-gallery::-webkit-scrollbar { display: none }
.img-gallery img {
  flex-shrink: 0; width: 280px; height: 380px; object-fit: cover;
  border-radius: 8px; scroll-snap-align: start;
  border: 1px solid var(--border); cursor: pointer;
  transition: border-color .3s, transform .6s var(--ease);
}
.img-gallery img:hover { border-color: var(--gold); transform: scale(1.02) }

/* ═══════════════════════════════════════════
   SIGNATURE PIECES — Asymmetric Grid Layout
   ═══════════════════════════════════════════ */

/* Section intro (line + label) */
.sig-intro { display: flex; align-items: center; gap: 20px; margin-bottom: 24px }
.sig-intro-line { width: 48px; height: 1px; background: var(--gold); flex-shrink: 0 }
.sig-intro-label { font-size: .72rem; text-transform: uppercase; letter-spacing: .15em; color: var(--gold); opacity: .7 }

/* Larger section headline for signature sections */
.sig-sec-h { font-family: var(--serif); font-size: clamp(3.2rem, 2.4rem + 4vw, 5.5rem); font-weight: 300; letter-spacing: -0.03em; line-height: 1.0; margin-bottom: 24px }
.sig-sec-h em { font-style: italic }
.sig-sec-p { font-size: 1.1rem; color: var(--t2); font-weight: 300; max-width: 560px; line-height: 1.9; margin-bottom: 72px }

/* Grid layout */
.sig-grid { display: grid; grid-template-columns: 7fr 5fr; gap: 48px; align-items: start; margin-bottom: 120px; text-decoration: none; color: inherit }
.sig-grid--flip { grid-template-columns: 5fr 7fr }
.sig-grid--flip .sig-img { order: 2; aspect-ratio: 16 / 11 }
.sig-grid--flip .sig-detail { order: 1 }

/* Image container */
.sig-img { aspect-ratio: 4 / 5; overflow: hidden; border-radius: 8px; background: var(--bg2); position: relative }
.sig-img img { width: 100%; height: 100%; object-fit: cover; opacity: .6; transition: opacity 2s var(--ease), transform 2s var(--ease) }
.sig-link:hover .sig-img img { opacity: .8; transform: scale(1.03) }

/* Glass overlay on image */
.sig-glass { position: absolute; bottom: -1px; right: -1px; padding: 24px 28px; background: rgba(6,6,6,.6); backdrop-filter: blur(20px); border: 1px solid var(--border); border-radius: 8px 0 8px 0; max-width: 300px }
.sig-glass--top { bottom: auto; right: auto; top: -1px; left: -1px; border-radius: 0 8px 0 8px }
.sig-glass-label { font-size: .6rem; font-weight: 500; text-transform: uppercase; letter-spacing: .15em; color: var(--gold); margin-bottom: 8px; display: flex; align-items: center; gap: 8px }
.sig-glass-label::before { content: ''; width: 4px; height: 4px; background: var(--gold); border-radius: 50%; flex-shrink: 0 }
.sig-glass p { font-size: .82rem; color: var(--t3); line-height: 1.6 }

/* Detail column */
.sig-detail { padding-top: 48px }
.sig-label { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--t3); display: block; margin-bottom: 12px }
.sig-title { font-family: var(--serif); font-size: clamp(2.2rem, 1.8rem + 2vw, 3.5rem); font-weight: 400; font-style: italic; letter-spacing: -0.03em; line-height: 1.08; margin-bottom: 28px; transition: color .5s }
.sig-desc { font-size: .92rem; color: var(--t3); line-height: 1.7; margin-top: 20px; max-width: 400px }

/* Compact spec-table in signature context */
.sig-detail .spec-table td { padding: 8px 0; font-size: .88rem }
.sig-detail .spec-table td:first-child { width: 110px; font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 400 }
.sig-detail .spec-table td:last-child { font-family: var(--serif); font-style: italic }

/* Link behavior */
.sig-link { cursor: pointer }
.sig-link:hover .sig-title { color: var(--gold) }
.sig-arrow { display: inline-block; margin-top: 24px; font-size: .85rem; color: var(--t3); letter-spacing: .04em; opacity: 0; transition: opacity .4s, letter-spacing .3s, color .3s }
.sig-link:hover .sig-arrow { opacity: 1; color: var(--gold); letter-spacing: .08em }

/* Pull quote for section intros */
.sig-pull { font-family: var(--serif); font-size: clamp(1.4rem, 1rem + 1.5vw, 2rem); font-style: italic; color: var(--t2); max-width: 600px; line-height: 1.4; margin-bottom: 72px; opacity: 0; transform: translate3d(0, 12px, 0); transition: opacity .6s var(--ease), transform .6s var(--ease) }
.sec.vis .sig-pull { opacity: 1; transform: translate3d(0, 0, 0); transition-delay: .12s }

/* CTA row for "Weitere Projekte" */
.sig-cta-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 28px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  text-decoration: none; color: var(--t2);
  transition: padding .4s var(--ease), color .3s;
  margin-bottom: 16px;
}
.sig-cta-row:hover { padding-left: 16px; color: var(--gold) }
.sig-cta-row-text { font-family: var(--serif); font-size: 1.1rem; font-style: italic; letter-spacing: -0.01em }
.sig-cta-row-arrow { font-size: 1.2rem; color: var(--t3); transition: transform .3s, color .3s }
.sig-cta-row:hover .sig-cta-row-arrow { transform: translateX(6px); color: var(--gold) }

/* ═══════════════════════════════════════════
   SOFTWARE — Protocol Cards (3 Spalten)
   ═══════════════════════════════════════════ */

.sys-cards {
  display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 20px;
  margin-bottom: 40px;
}
.sys-card {
  padding: 40px 32px; border-radius: 12px;
  background: var(--bg2); border: 1px solid var(--border);
  text-decoration: none; color: inherit;
  display: flex; flex-direction: column;
  transition: border-color .4s, transform .4s var(--ease), box-shadow .4s;
  opacity: 0; transform: translateY(16px);
  transition: opacity .6s var(--ease), transform .6s var(--ease), border-color .4s, box-shadow .4s;
}
.sec.vis .sys-card { opacity: 1; transform: translateY(0) }
.sec.vis .sys-card:nth-child(1) { transition-delay: .1s }
.sec.vis .sys-card:nth-child(2) { transition-delay: .18s }
.sec.vis .sys-card:nth-child(3) { transition-delay: .26s }
.sys-card:hover { border-color: var(--gold-dim); transform: translateY(-4px); box-shadow: 0 12px 48px rgba(0,0,0,.25) }

/* Hero card: elevated, gold accent */
.sys-card--hero {
  background: color-mix(in srgb, var(--bg2) 85%, var(--gold) 15%);
  border-color: var(--gold-dim);
  transform: scale(1.02) translateY(16px);
}
.sec.vis .sys-card--hero { transform: scale(1.02) translateY(0) }
.sys-card--hero:hover { transform: scale(1.02) translateY(-4px) }

.sys-card-icon { width: 80px; height: 80px; border-radius: 16px; overflow: hidden; margin-bottom: 28px }
.sys-card-icon img { width: 100%; height: 100%; object-fit: cover }
.sys-card-label { font-size: .6rem; text-transform: uppercase; letter-spacing: .15em; color: var(--t3); margin-bottom: 16px }
.sys-card-title { font-family: var(--serif); font-size: clamp(1.6rem, 1.3rem + 1vw, 2.2rem); font-weight: 400; font-style: italic; letter-spacing: -0.02em; margin-bottom: 6px; transition: color .4s }
.sys-card:hover .sys-card-title { color: var(--gold) }
.sys-card-meta { font-size: .65rem; text-transform: uppercase; letter-spacing: .08em; color: var(--t3); margin-bottom: 20px }
.sys-card-desc { font-size: .85rem; color: var(--t3); line-height: 1.7; flex: 1 }
.sys-card-bar { height: 2px; margin-top: 28px; background: var(--gold-dim); width: 0; transition: width .7s var(--ease) }
.sys-card--hero .sys-card-bar { width: 100%; background: var(--gold-soft) }
.sys-card:hover .sys-card-bar { width: 100% }

/* ═══════════════════════════════════════════
   PERSPEKTIVEN — Editorial / Magazin
   ═══════════════════════════════════════════ */

/* Giant pull quote */
.persp-quote {
  font-family: var(--serif); font-size: clamp(2rem, 1.4rem + 3vw, 3.5rem);
  font-weight: 300; line-height: 1.2; letter-spacing: -0.03em;
  max-width: 700px; margin-bottom: 80px;
  opacity: 0; transform: translate3d(0, 16px, 0);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.sec.vis .persp-quote { opacity: 1; transform: translate3d(0, 0, 0); transition-delay: .12s }
.persp-quote em { font-style: italic; color: var(--gold) }

/* Full-width image banner */
.persp-banner {
  display: block; position: relative; overflow: hidden;
  border-radius: 12px; margin-bottom: 64px;
  text-decoration: none; color: inherit;
  min-height: 320px;
  opacity: 0; transform: translateY(16px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.sec.vis .persp-banner { opacity: 1; transform: translateY(0); transition-delay: .2s }
.persp-banner-bg { position: absolute; inset: 0 }
.persp-banner-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .25; transition: opacity 1.5s var(--ease), transform 2s var(--ease) }
.persp-banner:hover .persp-banner-bg img { opacity: .4; transform: scale(1.03) }
.persp-banner-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to right, var(--bg) 30%, transparent 80%) }
.persp-banner-content {
  position: relative; z-index: 1; padding: 56px 64px;
  max-width: 500px;
}
.persp-banner-title {
  font-family: var(--serif); font-size: clamp(2.2rem, 1.8rem + 2vw, 3.5rem);
  font-weight: 400; font-style: italic; letter-spacing: -0.03em;
  line-height: 1.08; margin-bottom: 16px;
  transition: color .5s;
}
.persp-banner:hover .persp-banner-title { color: var(--gold) }
.persp-banner-desc { font-size: .92rem; color: var(--t2); line-height: 1.7; margin-bottom: 8px }

/* Text-style perspective links */
.persp-links { display: flex; flex-direction: column; gap: 0 }
.persp-link-item {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px;
  padding: 28px 0; border-bottom: 1px solid var(--border);
  text-decoration: none; color: inherit;
  transition: padding .3s var(--ease);
  position: relative;
}
a.persp-link-item:hover { padding-left: 16px }
.persp-link-label { font-size: .6rem; text-transform: uppercase; letter-spacing: .12em; color: var(--gold); opacity: .6; min-width: 60px }
.persp-link-title { font-family: var(--serif); font-size: 1.2rem; font-style: italic; transition: color .3s }
a.persp-link-item:hover .persp-link-title { color: var(--gold) }
.persp-link-sub { width: 100%; font-size: .82rem; color: var(--t3); padding-left: 72px; margin-top: 4px }
.persp-link-arrow { font-size: 1.1rem; color: var(--t3); margin-left: auto; transition: transform .3s, color .3s }
a.persp-link-item:hover .persp-link-arrow { transform: translateX(6px); color: var(--gold) }

/* CTA Row subtitle */
.sig-cta-row-sub { display: block; font-family: var(--sans); font-size: .82rem; font-style: normal; color: var(--t3); margin-top: 4px; transition: color .3s }
.sig-cta-row:hover .sig-cta-row-sub { color: var(--t2) }

/* Statement deco */
.statement-deco { display: flex; align-items: center; justify-content: center; gap: 20px; margin-bottom: 48px }

/* ═══════════════════════════════════════════
   ZUSAMMENARBEIT — Process & Pricing
   ═══════════════════════════════════════════ */

/* Sub-Labels — einheitlich */
.process-label, .pricing-label, .pricing-examples-intro, .pricing-closer-label {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 1.2rem + 0.8vw, 1.8rem);
  font-weight: 300; letter-spacing: -0.02em;
  color: var(--t1);
  margin: 96px 0 16px;
}
.process-label { margin-top: 0 }
/* Timeline */
.timeline-step {
  display: grid; grid-template-columns: 48px 1fr;
  gap: 32px; padding-bottom: 48px;
  opacity: 0; transform: translateY(16px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.sec.vis .timeline-step:nth-child(1) { opacity: 1; transform: translateY(0); transition-delay: .12s }
.sec.vis .timeline-step:nth-child(2) { opacity: 1; transform: translateY(0); transition-delay: .28s }
.sec.vis .timeline-step:nth-child(3) { opacity: 1; transform: translateY(0); transition-delay: .44s }

.timeline-marker { display: flex; flex-direction: column; align-items: center }
.timeline-n {
  font-family: var(--serif); font-size: 1.4rem;
  font-weight: 300; color: var(--gold); margin-bottom: 12px;
  transition: filter .3s var(--ease);
}
.timeline-line {
  width: 1px; flex: 1;
  background: linear-gradient(to bottom, var(--gold-dim), transparent);
}
.timeline-step:last-child .timeline-line { display: none }

.timeline-step:hover .timeline-n { filter: brightness(1.3) }
.timeline-step:hover .timeline-title { color: var(--gold) }

.timeline-title {
  font-family: var(--serif); font-size: 1.3rem;
  font-weight: 400; letter-spacing: -0.015em; margin-bottom: 8px;
  transition: color .3s var(--ease);
}
.timeline-desc {
  font-size: .95rem; color: var(--t2); font-weight: 300; line-height: 1.7;
}

/* Pricing Intro */
.pricing-intro {
  margin: 8px 0 0;
  font-size: 1.05rem; color: var(--t2); font-weight: 300; line-height: 1.8;
}
.pricing-intro-sub {
  margin: 16px 0 0;
  font-size: 1rem; color: var(--t2); font-weight: 300; line-height: 1.7;
}

/* Pricing Flow — Ab-Preise als schlichte Zeilen */
.pricing-flow {
  margin: 48px auto 0; max-width: 480px;
  display: flex; flex-direction: column;
}

.pricing-item {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 14px 0; border-bottom: 1px solid var(--border);
}
.pricing-item:last-child { border-bottom: none }
.pricing-item:hover .pricing-item-from { color: var(--gold) }

.pricing-item-label { font-size: 1.1rem; color: var(--t1); font-weight: 350 }
.pricing-item-from { font-size: 1.1rem; color: var(--t2); font-weight: 350 }

.pricing-open {
  margin: 24px auto 0; max-width: 480px;
  font-size: .9rem; color: var(--t3); font-weight: 300; letter-spacing: .02em;
  text-align: center;
}

/* Pricing Examples — 2x2 Grid, keine Borders */
.pricing-examples {
  margin: 0;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 48px 64px;
}
.pricing-example-amount {
  display: block; font-size: 1.4rem; font-weight: 400;
  color: var(--gold); margin-bottom: 8px; letter-spacing: -0.01em;
}
.pricing-example-desc {
  font-size: .95rem; color: var(--t2); font-weight: 300; line-height: 1.7;
}

/* Pricing Closer */
.pricing-closer {
  margin: 0; max-width: 560px;
  font-size: 1.05rem; color: var(--t2); font-weight: 300; line-height: 1.7;
}
.pricing-closer a {
  color: var(--gold); letter-spacing: .02em; white-space: nowrap;
  transition: letter-spacing .3s var(--ease);
}
.pricing-closer a:hover { letter-spacing: .06em }

/* ═══════════════════════════════════════════
   CONTACT BLOCK — Gold Container
   ═══════════════════════════════════════════ */

.contact-block {
  position: relative; padding: 80px 64px;
  background: var(--gold-trace); border: 1px solid var(--gold-dim);
  border-radius: 16px; text-align: center;
  overflow: hidden;
}
.contact-block::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, rgba(196,162,101,.06) 0%, transparent 70%);
  pointer-events: none;
}
.contact-block-h {
  font-family: var(--serif); font-size: clamp(3rem, 2rem + 4vw, 5.5rem);
  font-weight: 300; letter-spacing: -0.03em; margin-bottom: 20px;
  position: relative;
}
.contact-block-sub {
  font-size: 1.05rem; color: var(--t2); font-weight: 300; line-height: 1.8;
  margin-bottom: 56px; position: relative;
}
.contact-block .contact-primary { position: relative; margin-bottom: 24px; display: flex; justify-content: center }
.contact-block .contact-alt { position: relative; display: flex; gap: 20px; justify-content: center; align-items: center }
.contact-block-deco-tl {
  position: absolute; top: 20px; left: 24px;
  font-size: .55rem; text-transform: uppercase; letter-spacing: .15em;
  color: var(--gold-soft); opacity: .5;
}
.contact-block-deco-br {
  position: absolute; bottom: 20px; right: 24px;
  font-size: .55rem; text-transform: uppercase; letter-spacing: .15em;
  color: var(--gold-soft); opacity: .5;
}

/* Scroll-reveal for signature grids */
.sig-grid { opacity: 0; transform: translateY(20px); transition: opacity .8s var(--ease), transform .8s var(--ease) }
.sec.vis .sig-grid { opacity: 1; transform: translateY(0) }
.sec.vis .sig-grid + .sig-grid { transition-delay: .15s }
/* sig-intro/sec-h/sec-p reveal now handled by .reveal-left/.reveal-right/.reveal-up classes on each element */
.sig-intro:not([class*="reveal"]), .sig-sec-h:not([class*="reveal"]), .sig-sec-p:not([class*="reveal"]) {
  opacity: 0; transform: translate3d(0, 14px, 0); transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.sec.vis .sig-intro:not([class*="reveal"]) { opacity: 1; transform: translate3d(0, 0, 0) }
.sec.vis .sig-sec-h:not([class*="reveal"]) { opacity: 1; transform: translate3d(0, 0, 0); transition-delay: .04s }
.sec.vis .sig-sec-p:not([class*="reveal"]) { opacity: 1; transform: translate3d(0, 0, 0); transition-delay: .08s }

/* Software/Perspektiven grid variants reveal (uses same .sig-grid reveal) */

/* Contact block reveal */
.contact-block { opacity: 0; transform: translateY(20px); transition: opacity .8s var(--ease), transform .8s var(--ease), border-color .4s }
.contact.vis .contact-block { opacity: 1; transform: translateY(0) }

/* Statement deco reveal */
.statement-deco { opacity: 0; transition: opacity .6s var(--ease) }
.statement.vis .statement-deco, .vis .statement-deco { opacity: 1 }

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

@media (max-width: 600px) {
  html { font-size: 16px; overflow-x: hidden }
  body { overflow-x: hidden; max-width: 100vw }
  .w, .w-narrow, .w-wide { padding: 0 28px }
  .toggle { top: 20px; left: 20px }
  .toggle-label { top: 30px; left: 66px }
  .settings-btn { display: none !important }
  .dashboard-btn { display: none !important }
  .settings-panel { display: none !important }
  .dashboard-panel { display: none !important }
  .nav-links { top: 24px; right: 20px; gap: 10px }
  .nav-auth-link { display: flex !important; align-items: center; margin-left: 4px }
  .nav-links.nav-hidden { top: 24px; opacity: 1; pointer-events: auto }
  .nav-link { font-size: .65rem }
  .nav-dot { display: none }
  .cursor-glow { display: none }
  .custom-cursor { display: none }

  /* Index */
  .hero-layout { grid-template-columns: 1fr; padding: 0 28px 80px; align-items: end }
  .hero-right { padding-left: 0; padding-top: 18px }
  .hero-line--vert { height: 48px; margin-bottom: 24px; width: 1px }
  .hero-name { font-size: clamp(3.5rem, 2.2rem + 6.5vw, 5rem) }
  .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: 90px; height: 90px; 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 }

  /* Signature Pieces */
  .sec { padding: 120px 0 100px }
  .sig-grid, .sig-grid--flip { grid-template-columns: 1fr; gap: 24px; margin-bottom: 72px }
  .sig-grid--flip .sig-img { order: 0; aspect-ratio: 16 / 10 }
  .sig-grid--flip .sig-detail { order: 0 }
  .sig-detail { padding-top: 0 }
  .sig-img { aspect-ratio: 16 / 10 }
  .sig-glass { display: none }
  .sig-sec-h { font-size: clamp(2.4rem, 2rem + 3vw, 3.5rem) }
  .sig-sec-p { margin-bottom: 48px }
  .sig-pull { font-size: 1.2rem; margin-bottom: 48px }
  .sys-cards { grid-template-columns: 1fr; gap: 16px }
  .sys-card--hero { transform: none }
  .sec.vis .sys-card--hero { transform: none }
  .sys-card--hero:hover { transform: translateY(-4px) }
  .sys-card { padding: 28px 24px }
  .persp-quote { font-size: 1.6rem; margin-bottom: 48px }
  .persp-banner { min-height: 240px }
  .persp-banner-content { padding: 32px 28px }
  .persp-banner-title { font-size: 1.8rem }
  .persp-link-sub { padding-left: 0 }
  .stats-strip { grid-template-columns: repeat(2, 1fr) }
  .stat-item { padding: 36px 20px }
  .about-split { grid-template-columns: 1fr; min-height: auto }
  .about-split-left, .about-split-right { padding: 60px 28px }
  .about-split-left { border-right: none; border-bottom: 1px solid var(--border) }
  .sec--watermark::after { font-size: 8rem; opacity: .2 }
  .img-gallery { margin: 24px -28px; padding-left: 28px; padding-right: 28px }
  .img-gallery img { width: 220px; height: 300px }
  .about-grid { grid-template-columns: 1fr; gap: 32px }
  .about-cta-dual { grid-template-columns: 1fr }
  .about-cta-card { padding: 32px 24px }
  .persp-banner-bg::after { background: linear-gradient(to bottom, var(--bg) 0%, transparent 40%, transparent 50%, var(--bg) 100%) }
  .contact-block { padding: 48px 28px }
  .contact-block-h { font-size: clamp(2rem, 1.5rem + 3vw, 3rem) }
  .statement { padding: 120px 28px }
  .contact-block-deco-tl, .contact-block-deco-br { display: none }
  .sig-cta-row-text { font-size: .95rem }
  .dot-wrap { padding: 36px 0 }
  .statement { padding: 80px 28px }
  .tree-teaser h2 { font-size: 2rem }
  .contact { padding: 100px 28px 80px }

  /* Zusammenarbeit */
  .timeline-step { grid-template-columns: 36px 1fr; gap: 20px; padding-bottom: 36px }
  .pricing-label { margin: 48px 0 4px }
  .pricing-examples-intro, .pricing-closer-label { margin: 64px 0 12px }
  .process-label { margin-top: 0 }
  .pricing-examples { grid-template-columns: 1fr; gap: 36px }
  .pricing-closer { margin: 0 }

  /* Footer */
  .footer-inner { grid-template-columns: 1fr; gap: 28px; padding: 0 28px; text-align: center; justify-items: center }
  .footer-social-icons { justify-content: center }
  .footer-right { text-align: center }
  .footer-newsletter-label { text-align: center }
  .footer-tags { justify-content: center }
  .footer-notify-block .notify-form { margin: 0 auto; flex-direction: column; border-radius: 0; border: none; gap: 10px }
  .footer-notify-block .notify-input { min-width: 0; width: 100%; border: 1px solid var(--border); border-radius: 32px; padding: 12px 20px }
  .footer-notify-block .notify-btn { border: 1px solid var(--border); border-radius: 32px; padding: 12px 20px; border-left: 1px solid var(--border) }
  .footer-notify-block .notify-success, .footer-notify-block .notify-error { text-align: center }

  /* About */
  .about-header { padding: 120px 0 60px }
  .domains { grid-template-columns: 1fr }
  .about-contrast { flex-wrap: wrap; gap: 24px 0; }
  .about-contrast-item { width: 50%; }
  .about-contrast-num { font-size: clamp(2rem, 1.5rem + 3vw, 3rem); }

  /* 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 */
  .st-ordner { grid-template-columns: 1fr; padding: 20px 20px 60px; }

  /* Mobile skill tree: show accordion, hide SVG, neuronal toggle, timeline */
  .st-view-toggle { display: none !important }
  .st-timeline { display: none }
  .st-mobile-list { display: none !important }
  .st-wrap:not(.st-teaser-wrap) { display: none }
  .st-teaser-wrap { height: 400px }
  .st-mobile-list { display: block; padding: 0 0 40px }
  .st-expand-toggle { display: none }
  .st-minimap { display: none }
  .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 }
  .article-header--editorial { padding: 120px 0 40px }
  .article-header--editorial .article-title { font-size: clamp(2.2rem, 1.6rem + 3vw, 3.5rem); margin-bottom: 16px }
  .article-header--editorial .article-sub { font-size: .95rem; line-height: 1.5 }
  .article-meta { gap: 8px }
  .article-meta span { display: none }
  .article-meta span:first-child { display: inline }
  .article-meta .reading-time { display: inline }
  .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 }

  /* Systeme mobile — horizontal scroll carousel */
  .sys-grid {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch; gap: 0;
    background: none; scrollbar-width: none;
    padding-bottom: 24px;
  }
  .sys-grid::-webkit-scrollbar { display: none }
  .sys-cell {
    min-width: 100%; max-width: 100%; width: 100%;
    flex-shrink: 0; scroll-snap-align: start;
    box-sizing: border-box;
  }
  .sys-cell-desc, .sys-cell-title { word-wrap: break-word; overflow-wrap: break-word; }
  .sys-cell + .sys-cell { border-left: 1px solid var(--border) }
  .sys-carousel-dots {
    display: flex; justify-content: center; gap: 8px;
    padding: 12px 0 0;
  }
  .sys-carousel-dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--border); transition: background .3s, transform .3s;
  }
  .sys-carousel-dot.active { background: var(--gold); transform: scale(1.3) }
  #software .sec-links { margin-top: 32px !important }

  /* Perspektiven mobile — stacked */
  .persp-grid { grid-template-columns: 1fr; }
  .persp-featured { padding: 0; }
  .persp-featured-content { padding: 24px; }
  .persp-featured-bg { height: 160px; }
  .persp-essays-col { flex-direction: column; }
  .persp-essay { padding: 24px; }

  /* Manifest mobile */
  .manifest { padding: 80px 0; }
  .manifest-line { display: none; }
}

/* ═══════════════════════════════════════════
   SYSTEME — Digital/Logisch visuelles System
   ═══════════════════════════════════════════ */

/* ═══════════════════════════════════════════
   MANIFEST
   ═══════════════════════════════════════════ */

.manifest {
  position: relative;
  padding: 120px 0;
  opacity: 0; transform: translateY(20px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}
.manifest.vis { opacity: 1; transform: translateY(0); }

.manifest-line {
  position: absolute;
  left: calc(var(--frame-l) + 48px);
  top: 40px; bottom: 40px;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--gold) 30%, var(--gold) 70%, transparent);
  opacity: 0.3;
}

/* ═══════════════════════════════════════════
   SYSTEME — Horizontal grid
   ═══════════════════════════════════════════ */

.sys-grid {
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  gap: 1px; background: var(--border);
  opacity: 0; transform: translateY(16px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.sec.vis .sys-grid { opacity: 1; transform: translateY(0); transition-delay: .12s; }

.sys-cell {
  display: flex; flex-direction: column;
  background: var(--bg); padding: 36px 32px;
  text-decoration: none; color: inherit;
  position: relative;
  transition: background .3s var(--ease), padding .3s var(--ease);
}

.sys-cell:hover {
  background: var(--bg2);
  padding-top: 28px;
  border-color: var(--gold);
}

.sys-cell::after {
  content: '→'; position: absolute; bottom: 28px; right: 28px;
  font-size: 1.1rem; color: var(--gold);
  opacity: 0; transform: translateX(-8px);
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}

.sys-cell:hover::after { opacity: 1; transform: translateX(0); }

.sys-cell-tags {
  display: flex; gap: 6px; margin-bottom: 16px;
}

.sys-cell-tags span {
  font-size: .5rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--t3); padding: 3px 8px;
  border: 1px solid var(--border); border-radius: 10px;
}

.sys-cell-title {
  font-family: var(--serif); font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.8rem);
  font-weight: 400; letter-spacing: -0.02em;
  margin-bottom: 10px;
  transition: color .3s var(--ease);
}

.sys-cell:hover .sys-cell-title { color: var(--gold); }

.sys-cell-desc {
  font-size: .85rem; color: var(--t2); line-height: 1.7;
  flex: 1;
}

.sys-cell-status {
  font-size: .55rem; letter-spacing: .15em; text-transform: uppercase;
  color: var(--t3); margin-top: 20px; opacity: .6;
}

.sys-cell--muted .sys-cell-title { color: var(--t3); }
.sys-cell--muted .sys-cell-desc { color: var(--t3); opacity: .6; }
.sys-cell--muted:hover .sys-cell-title { color: var(--t2); }

/* ═══════════════════════════════════════════
   PERSPEKTIVEN — Asymmetric Grid
   ═══════════════════════════════════════════ */

.persp-grid {
  display: grid; grid-template-columns: 1.3fr 1fr;
  gap: 1px; background: var(--border);
  margin-top: 48px;
  opacity: 0; transform: translateY(16px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.sec.vis .persp-grid { opacity: 1; transform: translateY(0); transition-delay: .16s; }

.persp-featured {
  display: block; text-decoration: none; color: inherit;
  background: var(--bg); padding: 0;
  position: relative; overflow: hidden;
  transition: background .4s var(--ease);
}

.persp-featured:hover { background: var(--bg2); }

.persp-featured-bg {
  width: 100%; height: 200px; object-fit: cover;
  opacity: 0.2; transition: opacity 1s var(--ease), transform 2s var(--ease);
}

.persp-featured:hover .persp-featured-bg { opacity: 0.35; transform: scale(1.03); }

.persp-featured-content { padding: 32px 40px 40px; }

.persp-featured-title {
  font-family: var(--serif); font-size: clamp(2rem, 1.6rem + 2vw, 3rem);
  font-weight: 400; font-style: italic; letter-spacing: -0.03em;
  line-height: 1.08; margin: 16px 0;
  transition: color .4s;
}

.persp-featured:hover .persp-featured-title { color: var(--gold); }

.persp-featured-quote {
  font-size: .88rem; color: var(--t2); line-height: 1.8;
  margin-bottom: 20px; padding-left: 16px;
  border-left: 1px solid var(--gold); opacity: 0.7;
}

.persp-featured-desc {
  font-size: .88rem; color: var(--t3); line-height: 1.7;
}

.persp-essays-col {
  display: flex; flex-direction: column;
  gap: 1px; background: var(--border);
}

.persp-essay {
  display: block; text-decoration: none; color: inherit;
  background: var(--bg); padding: 32px 28px; flex: 1;
  transition: background .3s var(--ease), padding .3s var(--ease);
}

.persp-essay:hover { background: var(--bg2); padding-left: 36px; }

.persp-essay-label {
  font-size: .55rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--gold); opacity: .5; margin-bottom: 12px; display: block;
}

.persp-essay-title {
  font-family: var(--serif); font-size: clamp(1.2rem, 1rem + 0.8vw, 1.6rem);
  font-weight: 400; font-style: italic; letter-spacing: -0.02em;
  line-height: 1.2; margin-bottom: 10px;
  transition: color .3s;
}

.persp-essay:hover .persp-essay-title { color: var(--gold); }

.persp-essay-excerpt {
  font-size: .8rem; color: var(--t3); line-height: 1.6;
}

/* About link — integrated into perspektiven */
.persp-about-link {
  display: block; text-decoration: none; color: inherit;
  padding: 40px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  position: relative;
  transition: padding .3s var(--ease);
}
.persp-about-link:hover { padding-left: 20px; }
.persp-about-link::after {
  content: ''; position: absolute; bottom: -1px; left: 0;
  width: 0; height: 1px; background: var(--gold);
  transition: width .4s var(--ease);
}
.persp-about-link:hover::after { width: 100%; }
.persp-about-label {
  font-size: .6rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--gold); opacity: .5; display: block; margin-bottom: 12px;
}
.persp-about-title {
  font-family: var(--serif); font-size: clamp(1.4rem, 1.2rem + 1vw, 2rem);
  font-weight: 400; font-style: italic; letter-spacing: -0.02em;
  display: block; margin-bottom: 12px;
  transition: color .3s;
}
.persp-about-link:hover .persp-about-title { color: var(--gold); }

/* ═══════════════════════════════════════════
   SEC-LINKS — Integrated section navigation
   ═══════════════════════════════════════════ */

.sec-links {
  display: flex; gap: 0;
  border-top: 1px solid var(--border);
  margin-top: 48px;
  opacity: 0; transform: translateY(10px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.sec.vis .sec-links { opacity: 1; transform: translateY(0); transition-delay: .24s; }

.sec-link {
  display: flex; align-items: baseline; gap: 14px;
  flex: 1; padding: 28px 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none; color: inherit;
  position: relative;
  transition: padding .3s var(--ease);
}

.sec-link + .sec-link { border-left: 1px solid var(--border); padding-left: 28px; }

.sec-link::after {
  content: ''; position: absolute; bottom: -1px; left: 0;
  width: 0; height: 1px; background: var(--gold);
  transition: width .4s var(--ease);
}

.sec-link:hover { padding-left: 12px; }
.sec-link + .sec-link:hover { padding-left: 40px; }
.sec-link:hover::after { width: 100%; }

.sec-link-label {
  font-size: .55rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--gold); opacity: .5; min-width: 52px;
}

.sec-link-title {
  font-family: var(--serif); font-size: 1.15rem; font-style: italic;
  color: var(--t2); transition: color .3s var(--ease);
}

.sec-link:hover .sec-link-title { color: var(--gold); }

.sec-link-arrow {
  font-size: 1rem; color: var(--t3); margin-left: auto;
  opacity: 0; transform: translateX(-8px);
  transition: opacity .3s var(--ease), transform .3s var(--ease), color .3s;
}

.sec-link:hover .sec-link-arrow { opacity: 1; transform: translateX(0); color: var(--gold); }

@media (max-width: 768px) {
  .sec-links { flex-direction: column; }
  .sec-link + .sec-link { border-left: none; padding-left: 0; }
  .sec-link + .sec-link:hover { padding-left: 12px; }
}

/* ═══════════════════════════════════════════
   MOBILE OVERRIDES — for styles defined after main media query
   ═══════════════════════════════════════════ */
@media (max-width: 600px) {
  /* Systeme carousel */
  .sys-grid {
    display: flex !important; overflow-x: auto; scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    background: none; scrollbar-width: none;
    padding-bottom: 24px;
  }
  .sys-grid::-webkit-scrollbar { display: none }
  .sys-cell {
    min-width: 100%; max-width: 100%; width: 100%;
    flex-shrink: 0; scroll-snap-align: start;
    box-sizing: border-box;
  }
  .sys-cell-desc, .sys-cell-title { word-wrap: break-word; overflow-wrap: break-word; }
  .sys-cell + .sys-cell { border-left: 1px solid var(--border) }

  /* Perspektiven stacked */
  .persp-grid { grid-template-columns: 1fr !important; }
  .persp-featured { padding: 0; }
  .persp-featured-content { padding: 24px; }
  .persp-featured-bg { height: 160px; }
  .persp-essays-col { flex-direction: column; }
  .persp-essay { padding: 24px; }
}

/* ═══════════════════════════════════════════
   GLOBAL — Cursor fix for system cursor mode only
   ═══════════════════════════════════════════ */

[data-cursor="system"] a, [data-cursor="system"] a *,
[data-cursor="system"] button,
[data-cursor="system"] .sig-link, [data-cursor="system"] .sig-link *,
[data-cursor="system"] .sig-grid, [data-cursor="system"] .sig-grid *,
[data-cursor="system"] .sys-entry, [data-cursor="system"] .sys-entry *,
[data-cursor="system"] .sys-cell, [data-cursor="system"] .sys-cell *,
[data-cursor="system"] .persp-featured, [data-cursor="system"] .persp-featured *,
[data-cursor="system"] .persp-essay, [data-cursor="system"] .persp-essay *,
[data-cursor="system"] .inline-cta, [data-cursor="system"] .inline-cta *,
[data-cursor="system"] .btn-3d, [data-cursor="system"] .btn-3d *,
[data-cursor="system"] .sec-cta, [data-cursor="system"] .sig-cta-row,
[data-cursor="system"] .sec-link, [data-cursor="system"] .sec-link *,
[data-cursor="system"] .st-ord-header, [data-cursor="system"] .st-ord-header *,
[data-cursor="system"] .st-ord-node.linked, [data-cursor="system"] .st-ord-node.linked *,
[data-cursor="system"] a.persp-link-item, [data-cursor="system"] a.persp-link-item *,
[data-cursor="system"] .persp-banner, [data-cursor="system"] .persp-banner *,
[data-cursor="system"] .persp-about-link, [data-cursor="system"] .persp-about-link * {
  cursor: pointer !important;
}

/* ═══════════════════════════════════════════
   ARNO CHAT WIDGET
   ═══════════════════════════════════════════ */

/* ── Token Mapping (webseite → widget) ── */
.arno-widget {
  --aw-surface: rgba(255,255,255,0.04);
  --aw-surface-hover: rgba(255,255,255,0.07);
  --aw-surface-strong: rgba(255,255,255,0.10);
  --aw-surface-card: rgba(255,255,255,0.03);
  --aw-text: var(--t1);
  --aw-text-2: var(--t2);
  --aw-text-muted: var(--t3);
  --aw-text-dim: var(--t4);
  --aw-border: var(--border);
  --aw-border-inner: rgba(255,255,255,0.06);
  --aw-border-hover: var(--border-h);
  --aw-border-strong: rgba(255,255,255,0.24);
  --aw-bg-elevated: #161616;
  --aw-error: #ef4444;
  --aw-success: #22c55e;
  --aw-blue: #4a9eff;
  --aw-purple: #8b5cf6;
  --aw-modal-bg: rgba(0,0,0,0.55);
  --aw-t-fast: 0.12s;
  --aw-pill: 999px;
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  color: var(--aw-text);
}
[data-theme="light"] .arno-widget {
  --aw-surface: rgba(0,0,0,0.03);
  --aw-surface-hover: rgba(0,0,0,0.06);
  --aw-surface-strong: rgba(0,0,0,0.09);
  --aw-surface-card: rgba(0,0,0,0.02);
  --aw-border-inner: rgba(0,0,0,0.05);
  --aw-border-strong: rgba(0,0,0,0.22);
  --aw-bg-elevated: #fff;
  --aw-error: #dc2626;
  --aw-success: #16a34a;
  --aw-blue: #2563eb;
  --aw-purple: #7c3aed;
  --aw-modal-bg: rgba(0,0,0,0.35);
}

/* ── FAB ── */
.arno-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9998;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  background: var(--bg);
  color: var(--gold);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}
.arno-fab:hover {
  transform: scale(1.08);
  box-shadow: 0 4px 20px var(--gold-soft);
}
.arno-fab:active {
  transform: scale(0.95);
  transition-duration: 0.06s;
}
.arno-fab__icon {
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
  position: absolute;
}
.arno-fab__icon svg { width: 22px; height: 22px; }
.arno-fab__icon--close {
  opacity: 0;
  transform: rotate(-90deg) scale(0.6);
}
.arno-fab--open .arno-fab__icon--chat {
  opacity: 0;
  transform: rotate(90deg) scale(0.6);
}
.arno-fab--open .arno-fab__icon--close {
  opacity: 1;
  transform: rotate(0) scale(1);
}

/* First-visit pulse */
@keyframes arnoFabPulse {
  0%, 100% { box-shadow: 0 4px 16px rgba(0,0,0,0.3); }
  25% { box-shadow: 0 0 0 8px var(--gold-soft), 0 0 24px var(--gold-dim); }
  50% { box-shadow: 0 4px 16px rgba(0,0,0,0.3); }
  75% { box-shadow: 0 0 0 8px var(--gold-soft), 0 0 24px var(--gold-dim); }
}
.arno-fab--pulse {
  animation: arnoFabPulse 3s var(--ease) 1;
}

/* ── Panel ── */
.arno-panel {
  position: fixed;
  bottom: 84px;
  right: 24px;
  z-index: 9999;
  width: 440px;
  max-height: min(600px, calc(100dvh - 108px));
  background: var(--bg);
  border: 1px solid var(--border-h);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform-origin: bottom right;
  transform: scale(0.92);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.25s var(--ease), opacity 0.2s var(--ease);
}
.arno-panel--open {
  transform: scale(1);
  opacity: 1;
  pointer-events: auto;
}

/* Resize handle (top-left corner) */
.arno-panel__resize {
  position: absolute;
  top: 0;
  left: 0;
  width: 24px;
  height: 24px;
  z-index: 2;
  border-top-left-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5px;
}
.arno-panel__resize svg {
  width: 10px;
  height: 10px;
  color: var(--t4);
  transition: color 0.15s ease;
}
.arno-panel__resize:hover svg { color: var(--gold); }

/* Panel header */
.arno-panel__header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.arno-panel__avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--gold-dim);
  border: 1px solid var(--gold-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--gold);
}
.arno-panel__avatar svg { width: 16px; height: 16px; }
.arno-panel__title {
  flex: 1;
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--t1);
}
.arno-panel__close {
  width: 28px;
  height: 28px;
  border: none;
  background: transparent;
  color: var(--t3);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-xs);
  transition: color var(--aw-t-fast) var(--ease), background var(--aw-t-fast) var(--ease);
}
.arno-panel__close svg { width: 16px; height: 16px; }
.arno-panel__close:hover { color: var(--t1); background: var(--aw-surface-hover); }
.arno-panel__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

/* ── Disclosure ── */
.aw-disclosure {
  font-size: 12px;
  color: var(--aw-text-muted);
  text-align: center;
  padding: 6px 12px;
  border-bottom: 1px solid var(--aw-border);
  flex-shrink: 0;
}

/* ── Messages ── */
.aw-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 0;
}
.aw-messages::-webkit-scrollbar { display: none; }
.aw-messages { scrollbar-width: none; }

/* ── Message ── */
.aw-msg {
  display: flex;
  gap: 8px;
  max-width: 90%;
  animation: awMsgIn 0.25s var(--ease) both;
}
.aw-msg--user { align-self: flex-end; flex-direction: row-reverse; }
.aw-msg--bot { align-self: flex-start; }
.aw-msg--error { align-self: center; max-width: 100%; }
@keyframes awMsgIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Avatar */
.aw-msg__avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--aw-surface-strong);
  border: 1px solid var(--aw-border-inner);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.aw-msg__avatar svg { width: 12px; height: 12px; color: var(--aw-text-muted); }

/* Body & Bubble */
.aw-msg__body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.aw-msg__bubble {
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  line-height: 1.6;
  word-break: break-word;
}
.aw-msg--user .aw-msg__bubble {
  background: var(--aw-surface-strong);
  color: var(--aw-text);
  border: 1px solid var(--aw-border);
  border-bottom-right-radius: var(--radius-xs);
}
.aw-msg--bot .aw-msg__bubble {
  background: var(--aw-surface);
  color: var(--aw-text-2);
  border: 1px solid var(--aw-border-inner);
  border-bottom-left-radius: var(--radius-xs);
}
.aw-msg--error .aw-msg__bubble {
  background: rgba(248,113,113,0.08);
  border: 1px solid rgba(248,113,113,0.2);
  color: var(--aw-error);
  font-size: 13px;
  text-align: center;
}

/* Markdown in bot bubbles */
.aw-msg--bot .aw-msg__bubble p { margin: 0 0 6px; }
.aw-msg--bot .aw-msg__bubble p:last-child { margin: 0; }
.aw-msg--bot .aw-msg__bubble strong { color: var(--aw-text); font-weight: 600; }
.aw-msg--bot .aw-msg__bubble em { font-style: italic; color: var(--aw-text); }
.aw-msg--bot .aw-msg__bubble code {
  font-family: 'Cascadia Code', monospace;
  font-size: 13px;
  background: var(--aw-bg-elevated);
  padding: 1px 4px;
  border-radius: var(--radius-xs);
  border: 1px solid var(--aw-border-inner);
}
.aw-msg--bot .aw-msg__bubble pre {
  position: relative;
  margin: 6px 0 4px;
  padding: 10px 12px;
  background: var(--aw-bg-elevated);
  border-radius: var(--radius-sm);
  border: 1px solid var(--aw-border-inner);
  overflow-x: auto;
}
.aw-msg--bot .aw-msg__bubble pre code {
  background: none;
  padding: 0;
  border: none;
  font-size: 12.5px;
  line-height: 1.5;
}
.aw-msg--bot .aw-msg__bubble ul,
.aw-msg--bot .aw-msg__bubble ol { margin: 4px 0; padding-left: 18px; }
.aw-msg--bot .aw-msg__bubble li { margin-bottom: 3px; }
.aw-msg--bot .aw-msg__bubble a {
  color: var(--aw-blue);
  text-decoration: none;
}
.aw-msg--bot .aw-msg__bubble a:hover { text-decoration: underline; }
.aw-msg--bot .aw-msg__bubble h1,
.aw-msg--bot .aw-msg__bubble h2,
.aw-msg--bot .aw-msg__bubble h3 {
  color: var(--aw-text);
  font-size: 15.5px;
  font-weight: 600;
  margin: 8px 0 4px;
}
.aw-msg--bot .aw-msg__bubble h1:first-child,
.aw-msg--bot .aw-msg__bubble h2:first-child,
.aw-msg--bot .aw-msg__bubble h3:first-child { margin-top: 0; }
.aw-msg--bot .aw-msg__bubble blockquote {
  border-left: 2px solid var(--aw-border-strong);
  padding-left: 10px;
  margin: 6px 0;
  color: var(--aw-text-muted);
}
.aw-msg--bot .aw-msg__bubble hr {
  border: none;
  border-top: 1px solid var(--aw-border);
  margin: 8px 0;
}

/* Code copy */
.aw-code-copy {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--aw-surface);
  border: 1px solid var(--aw-border);
  border-radius: var(--radius-xs);
  color: var(--aw-text-muted);
  cursor: pointer;
  opacity: 0;
  transition: opacity var(--aw-t-fast) var(--ease);
}
.aw-msg--bot .aw-msg__bubble pre:hover .aw-code-copy { opacity: 1; }
.aw-code-copy:hover { background: var(--aw-surface-hover); color: var(--aw-text); }
.aw-code-copy svg { width: 12px; height: 12px; }
.aw-code-copy--done { color: var(--aw-success) !important; opacity: 1 !important; }

/* Streaming cursor */
.aw-streaming-cursor::after {
  content: '';
  display: inline-block;
  width: 2px;
  height: 13px;
  background: var(--aw-text-muted);
  margin-left: 2px;
  vertical-align: text-bottom;
  animation: awCursorBlink 1s ease infinite;
}
@keyframes awCursorBlink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

/* ── Chips ── */
.aw-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  padding-left: 32px;
}
.aw-chip {
  padding: 6px 13px;
  font-size: 13px;
  font-family: var(--sans);
  font-weight: 500;
  color: var(--aw-text-2);
  background: var(--aw-surface);
  border: 1px solid var(--aw-border);
  border-radius: var(--aw-pill);
  cursor: pointer;
  transition: all var(--aw-t-fast) var(--ease);
  white-space: nowrap;
}
.aw-chip:hover {
  color: var(--aw-text);
  background: var(--aw-surface-hover);
  border-color: var(--aw-border-hover);
  transform: translateY(-1px);
}
.aw-chip:active { transform: scale(0.97); transition-duration: 0.06s; }

/* ── Input Bar ── */
.aw-inputbar {
  padding: 10px 16px 14px;
  border-top: 1px solid var(--aw-border);
  display: flex;
  gap: 8px;
  align-items: flex-end;
  background: var(--bg);
  flex-shrink: 0;
}
.aw-textarea {
  flex: 1;
  padding: 10px 14px;
  font-size: 15px;
  font-family: var(--sans);
  line-height: 1.5;
  background: var(--aw-surface);
  border: 1px solid var(--aw-border);
  border-radius: var(--radius-sm);
  color: var(--aw-text);
  outline: none;
  resize: none;
  min-height: 36px;
  max-height: 100px;
  overflow-y: auto;
  transition: border-color var(--aw-t-fast) var(--ease);
}
.aw-textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold-dim); }
.aw-textarea::placeholder { color: var(--aw-text-dim); }
.aw-textarea:disabled { opacity: 0.5; }
.aw-send {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: var(--gold);
  color: #111;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: opacity var(--aw-t-fast) var(--ease), transform var(--aw-t-fast) var(--ease);
}
.aw-send:hover { opacity: 0.85; }
.aw-send:active { transform: scale(0.93); transition-duration: 0.06s; }
.aw-send:disabled { opacity: 0.3; cursor: not-allowed; }
.aw-send svg { width: 16px; height: 16px; }

/* ── Action Forms ── */
.aw-action-form {
  margin-top: 6px;
  margin-left: 32px;
  width: calc(100% - 32px);
  background: var(--aw-surface-card);
  border: 1px solid var(--aw-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  animation: awMsgIn 0.25s var(--ease) both;
}
.aw-action-form__header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--aw-border-inner);
}
.aw-action-form__header svg { width: 14px; height: 14px; flex-shrink: 0; }
.aw-action-form__title { font-size: 14.5px; font-weight: 600; color: var(--aw-text); }
.aw-action-form__body { padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.aw-action-form__field { display: flex; flex-direction: column; gap: 3px; }
.aw-action-form__label { font-size: 13px; font-weight: 500; color: var(--aw-text-2); }
.aw-action-form__input,
.aw-action-form__textarea {
  padding: 10px 12px;
  font-size: 14.5px;
  font-family: var(--sans);
  background: var(--aw-surface);
  border: 1px solid var(--aw-border);
  border-radius: var(--radius-xs);
  color: var(--aw-text);
  outline: none;
  transition: border-color var(--aw-t-fast) var(--ease);
}
.aw-action-form__input:focus,
.aw-action-form__textarea:focus { border-color: var(--gold); }
.aw-action-form__input::placeholder,
.aw-action-form__textarea::placeholder { color: var(--aw-text-dim); }
.aw-action-form__textarea { resize: none; min-height: 60px; line-height: 1.5; }
.aw-action-form__radios { display: flex; gap: 4px; }
.aw-action-form__radio {
  padding: 5px 12px;
  font-size: 13px;
  font-family: var(--sans);
  font-weight: 500;
  color: var(--aw-text-muted);
  background: transparent;
  border: 1px solid var(--aw-border);
  border-radius: var(--radius-xs);
  cursor: pointer;
  transition: all var(--aw-t-fast) var(--ease);
}
.aw-action-form__radio:hover { color: var(--aw-text-2); border-color: var(--aw-border-hover); }
.aw-action-form__radio.active { color: var(--aw-text); background: var(--aw-surface-strong); border-color: var(--aw-border-hover); }
.aw-action-form__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 14px;
  border-top: 1px solid var(--aw-border-inner);
}
.aw-action-form__review {
  font-size: 13px;
  font-family: var(--sans);
  color: var(--aw-text-muted);
  background: none;
  border: none;
  cursor: pointer;
  padding: 3px 0;
  transition: color var(--aw-t-fast);
}
.aw-action-form__review:hover { color: var(--aw-text); }
.aw-action-form__submit {
  padding: 8px 18px;
  font-size: 13.5px;
  font-weight: 600;
  font-family: var(--sans);
  border: none;
  border-radius: var(--radius-xs);
  cursor: pointer;
  transition: opacity var(--aw-t-fast) var(--ease), transform var(--aw-t-fast) var(--ease);
  color: #fff;
}
.aw-action-form__submit:hover { opacity: 0.85; }
.aw-action-form__submit:active { transform: scale(0.95); transition-duration: 0.06s; }
.aw-action-form__submit:disabled { opacity: 0.4; cursor: not-allowed; }
.aw-action-form--success {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 12px;
  color: var(--aw-success);
  font-size: 13.5px;
  font-weight: 500;
}
.aw-action-form--success svg { width: 14px; height: 14px; }

/* ── Review Overlay ── */
.aw-review-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.aw-review-backdrop {
  position: absolute;
  inset: 0;
  background: var(--aw-modal-bg);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.aw-review-card {
  position: relative;
  width: 400px;
  max-width: 90vw;
  max-height: 70vh;
  overflow-y: auto;
  background: var(--bg2);
  border: 1px solid var(--border-h);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 16px;
}
.aw-review-card__title { font-size: 13px; font-weight: 600; color: var(--t1); margin-bottom: 10px; }
.aw-review-card__pre {
  font-size: 11px;
  font-family: 'Cascadia Code', monospace;
  line-height: 1.5;
  color: var(--t2);
  background: var(--aw-surface);
  border: 1px solid var(--aw-border-inner);
  border-radius: var(--radius-sm);
  padding: 12px;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-all;
}
.aw-review-card__close {
  margin-top: 10px;
  padding: 5px 12px;
  font-size: 11px;
  font-weight: 500;
  font-family: var(--sans);
  background: var(--aw-surface);
  color: var(--t2);
  border: 1px solid var(--aw-border);
  border-radius: var(--radius-xs);
  cursor: pointer;
  transition: all var(--aw-t-fast) var(--ease);
}
.aw-review-card__close:hover { color: var(--t1); background: var(--aw-surface-hover); }

/* ── Toast ── */
.aw-toast {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  padding: 6px 16px;
  font-size: 12px;
  font-weight: 500;
  font-family: var(--sans);
  background: var(--bg2);
  color: var(--t1);
  border: 1px solid var(--border-h);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 10001;
}
.aw-toast--show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ── Mobile scroll lock ── */
@media (max-width: 640px) {
  body.arno-chat-open {
    overflow: hidden;
    position: fixed;
    inset: 0;
    width: 100%;
  }
}

/* ── Mobile ── */
@media (max-width: 640px) {
  .arno-fab {
    bottom: 16px;
    right: 16px;
    width: 44px;
    height: 44px;
  }
  .arno-fab__icon svg { width: 20px; height: 20px; }
  .arno-panel {
    inset: 8px;
    bottom: 8px;
    right: 8px;
    width: auto;
    max-height: none;
    height: calc(100dvh - 16px);
    border-radius: var(--radius-sm);
    overscroll-behavior: contain;
  }
  .aw-msg { max-width: 95%; }
  .aw-chips { padding-left: 0; }
  .aw-action-form { margin-left: 0; width: 100%; }
}

/* Cursor fix for arno widget */
.arno-panel__resize, .arno-panel__resize * { cursor: nw-resize !important; }
[data-cursor="system"] .arno-fab,
[data-cursor="system"] .arno-panel__close,
[data-cursor="system"] .aw-send,
[data-cursor="system"] .aw-chip,
[data-cursor="system"] .aw-code-copy,
[data-cursor="system"] .aw-action-form__radio,
[data-cursor="system"] .aw-action-form__review,
[data-cursor="system"] .aw-action-form__submit,
[data-cursor="system"] .aw-review-card__close {
  cursor: pointer !important;
}
[data-cursor="system"] .arno-panel__resize,
[data-cursor="system"] .arno-panel__resize * {
  cursor: nw-resize !important;
}