/* ==========================================================================
   Digitale Mitarbeiter · STAMPFLI SOLUTIONS
   Self-hosted OFL fonts (Newsreader, Nunito Sans). No external dependencies.
   ========================================================================== */

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

/* ---------- Tokens ---------- */
:root {
  --bg: #07080d;
  --bg-2: #0c0e16;
  --bg-3: #121524;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-2: rgba(255, 255, 255, 0.06);
  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.16);
  --text: #f1eef7;
  --text-soft: #cfcadb;
  --muted: #a3a0b5;
  --violet: #a98cff;
  --violet-2: #7c5cff;
  --brand: #5e456e;
  --amber: #f4bb6f;
  --mint: #72e3b4;
  --rose: #ff9f8c;
  --grad: linear-gradient(120deg, #c8b6ff 0%, #a98cff 35%, #f4bb6f 100%);
  --serif: "Newsreader", "Iowan Old Style", Palatino, "Times New Roman", serif;
  --sans: "Nunito Sans", "Avenir Next", "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --max: 1200px;
  --radius: 18px;
  --radius-s: 10px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --header-h: 72px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
body::before { /* film grain */
  content: "";
  position: fixed; inset: 0;
  pointer-events: none; z-index: 100;
  opacity: 0.05;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; line-height: 1.08; letter-spacing: -0.01em; }
h2, .h2 { font-family: var(--serif); font-size: clamp(2.2rem, 4.6vw, 4rem); }
h3 { font-family: var(--sans); font-weight: 700; font-size: 1.2rem; line-height: 1.3; letter-spacing: 0; }
h2 em, .h2 em, h1 em, .hero-title em, .final-title em, .big-quote em, .day-end em {
  font-style: italic;
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  padding-right: 0.06em;
}
p { margin: 0 0 1em; }
strong { color: var(--text); font-weight: 700; }
::selection { background: var(--violet-2); color: #fff; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(100% - 32px, var(--max)); margin-inline: auto; }
.center { text-align: center; }
.section { position: relative; padding: clamp(88px, 12vw, 160px) 0; }
.section-head { max-width: 780px; margin-bottom: clamp(40px, 6vw, 72px); }
.section-head.center { margin-inline: auto; }
.section-head.center .lede { margin-inline: auto; }
.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  margin: 0 0 18px;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--violet);
}
.kicker::before { content: ""; width: 26px; height: 1px; background: currentColor; opacity: 0.6; }
.lede { font-size: clamp(1.08rem, 1.6vw, 1.28rem); color: var(--text-soft); max-width: 640px; margin-top: 22px; }
.fineprint { font-size: 0.82rem; color: var(--muted); margin-top: 18px; }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 200; background: var(--amber); color: #000; padding: 10px 16px; border-radius: 8px; }
.skip:focus { left: 16px; }

/* ---------- Buttons ---------- */
.btn {
  --bx: 0px; --by: 0px;
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 24px;
  border-radius: 999px; border: 1px solid transparent;
  font: 700 0.98rem/1 var(--sans); text-decoration: none; cursor: pointer;
  transform: translate(var(--bx), var(--by));
  transition: transform 0.35s var(--ease), background 0.25s, border-color 0.25s, box-shadow 0.35s var(--ease), color 0.25s;
}
.btn span[aria-hidden] { transition: transform 0.3s var(--ease); }
.btn:hover span[aria-hidden] { transform: translateX(4px); }
.btn:active { transform: translate(var(--bx), var(--by)) scale(0.97); }
.btn-primary {
  color: #0b0a12;
  background: linear-gradient(120deg, #d9ccff, #a98cff 45%, #f4bb6f);
  background-size: 200% 100%;
  box-shadow: 0 10px 40px -10px rgba(169, 140, 255, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}
.btn-primary:hover { background-position: 100% 0; box-shadow: 0 16px 60px -10px rgba(244, 187, 111, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.6); }
.btn-ghost { color: var(--text); border-color: var(--line-2); background: rgba(255, 255, 255, 0.03); backdrop-filter: blur(6px); }
.btn-ghost:hover { border-color: var(--violet); background: rgba(169, 140, 255, 0.1); }
.btn-small { min-height: 40px; padding: 9px 18px; font-size: 0.9rem; }
.btn-large { min-height: 60px; padding: 18px 34px; font-size: 1.08rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.btn-row.center { justify-content: center; }

/* ---------- Progress + cursor glow ---------- */
.progress { position: fixed; inset: 0 0 auto 0; height: 2px; z-index: 60; pointer-events: none; }
.progress span { display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: var(--grad); }
.cursor-glow {
  position: fixed; left: 0; top: 0; width: 520px; height: 520px; margin: -260px 0 0 -260px;
  border-radius: 50%; pointer-events: none; z-index: 0;
  background: radial-gradient(circle, rgba(124, 92, 255, 0.13), transparent 62%);
  transform: translate3d(-999px, -999px, 0);
  transition: opacity 0.4s;
}
@media (hover: none) { .cursor-glow { display: none; } }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--header-h);
  transition: background 0.35s, border-color 0.35s, transform 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled { background: rgba(7, 8, 13, 0.72); backdrop-filter: blur(16px) saturate(1.4); border-color: var(--line); }
.site-header.is-hidden { transform: translateY(-100%); }
.header-inner { height: 100%; width: min(100% - 32px, 1320px); margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; min-height: 44px; }
.brand { gap: 10px; }
.brand-icon { position: relative; display: block; height: 36px; aspect-ratio: 1; flex: none; }
.brand-icon img { width: 100%; height: 100%; transition: transform 0.5s var(--ease); }
.brand-word { height: 21px; width: auto; }

/* Logo animation (header only): intro, periodic neural impulse, hover spark */
.site-header .brand-icon { animation: brainGlow 8s var(--ease-in-out) 1.4s infinite; }
.site-header .brand-icon img { animation: iconIn 0.9s var(--ease) both; }
.site-header .brand-icon::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, 0.95) 50%, transparent 62%) 100% 0 / 300% 100% no-repeat;
  -webkit-mask: url("../media/logo-icon.png") center / contain no-repeat;
  mask: url("../media/logo-icon.png") center / contain no-repeat;
  animation: brainSpark 8s var(--ease-in-out) 1.4s infinite;
}
.site-header .brand-word { animation: wordIn 1.1s var(--ease) 0.25s both; }
.site-header .brand:hover .brand-icon img { transform: scale(1.08) rotate(-4deg); }
.site-header .brand:hover .brand-icon::after { animation: brainSparkFast 0.9s var(--ease) 1; }
@keyframes iconIn { from { opacity: 0; transform: scale(0.6) rotate(-20deg); } to { opacity: 1; transform: none; } }
@keyframes wordIn { from { clip-path: inset(0 100% 0 0); opacity: 0; transform: translateX(-6px); } to { clip-path: inset(0 0 0 0); opacity: 1; transform: none; } }
@keyframes brainSpark { 0%, 78% { background-position: 100% 0; } 100% { background-position: 0% 0; } }
@keyframes brainSparkFast { from { background-position: 100% 0; } to { background-position: 0% 0; } }
@keyframes brainGlow {
  0%, 76%, 100% { filter: drop-shadow(0 0 0 rgba(200, 80, 255, 0)); }
  88% { filter: drop-shadow(0 0 9px rgba(200, 80, 255, 0.75)); }
}
.nav { display: flex; align-items: center; gap: 6px; }
.nav a:not(.btn) { position: relative; padding: 10px 12px; font-size: 0.92rem; font-weight: 600; color: var(--text-soft); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; transition: color 0.2s; }
.nav a:not(.btn)::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 8px; height: 1px; background: var(--violet); transform: scaleX(0); transform-origin: left; transition: transform 0.3s var(--ease); }
.nav a:not(.btn):hover, .nav a[aria-current="true"] { color: var(--text); }
.nav a:not(.btn):hover::after, .nav a[aria-current="true"]::after { transform: scaleX(1); }
.nav .btn { margin-left: 10px; }
.nav-toggle { display: none; }

@media (max-width: 960px) {
  .nav-toggle {
    display: inline-flex; align-items: center; gap: 10px;
    min-height: 44px; padding: 8px 14px; border-radius: 999px;
    background: var(--surface-2); color: var(--text); border: 1px solid var(--line-2);
    font: 700 0.88rem var(--sans); cursor: pointer;
  }
  .nav-toggle-bars, .nav-toggle-bars::before { display: block; width: 16px; height: 2px; background: currentColor; border-radius: 2px; transition: transform 0.3s var(--ease); }
  .nav-toggle-bars { position: relative; transform: translateY(-3px); }
  .nav-toggle-bars::before { content: ""; position: absolute; top: 6px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars { transform: rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(-6px) rotate(-90deg); }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 12px 16px 24px;
    background: rgba(7, 8, 13, 0.96); backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--line);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity 0.25s, transform 0.3s var(--ease), visibility 0s 0.3s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity 0.25s, transform 0.3s var(--ease); }
  .nav a:not(.btn) { font-size: 1.1rem; padding: 14px 4px; border-bottom: 1px solid var(--line); }
  .nav a:not(.btn)::after { display: none; }
  .nav .btn { margin: 18px 0 0; }
}

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); filter: blur(6px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease), filter 0.9s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.is-in { opacity: 1; transform: none; filter: none; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; padding: calc(var(--header-h) + 48px) 0 40px; display: flex; flex-direction: column; justify-content: center; isolation: isolate; overflow: hidden; }
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero-aurora {
  position: absolute; inset: -20% -10% auto; height: 120%; z-index: -2;
  background:
    radial-gradient(40% 50% at 78% 30%, rgba(124, 92, 255, 0.35), transparent 70%),
    radial-gradient(35% 40% at 15% 70%, rgba(244, 187, 111, 0.14), transparent 70%),
    radial-gradient(50% 60% at 50% 110%, rgba(94, 69, 110, 0.55), transparent 70%);
  filter: blur(20px);
  animation: aurora 18s var(--ease-in-out) infinite alternate;
}
.hero::after { content: ""; position: absolute; inset: auto 0 0; height: 180px; background: linear-gradient(transparent, var(--bg)); z-index: -1; }
.hero-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 12px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.04); font-family: var(--sans); font-size: 0.84rem; font-weight: 600; line-height: 1.4; letter-spacing: 0; color: var(--text-soft); margin: 0 0 28px; }
.pulse-dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 12px var(--mint); flex: none; }
.pulse-dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid var(--mint); animation: ping 2s var(--ease) infinite; }
.hero-title { margin: 0; font-weight: 400; font-family: var(--serif); font-size: clamp(2.7rem, 5.4vw, 5.9rem); line-height: 0.98; letter-spacing: -0.025em; }
.hero-title .line { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.hero-title .line > span { display: inline-block; }
.js .hero-title .line > span { transform: translateY(110%); animation: rise 1.2s var(--ease) forwards; }
.js .hero-title .line:nth-child(2) > span { animation-delay: 0.12s; }
.js .hero-title .line:nth-child(3) > span { animation-delay: 0.24s; }
.hero .lede { max-width: 560px; }

/* Console */
.console {
  position: relative;
  border-radius: 22px; padding: 18px;
  background: linear-gradient(160deg, rgba(30, 26, 52, 0.75), rgba(12, 13, 22, 0.8));
  border: 1px solid var(--line-2);
  box-shadow: 0 40px 120px -30px rgba(124, 92, 255, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
  transform: perspective(1400px) rotateY(var(--ry, -8deg)) rotateX(var(--rx, 4deg));
  transition: transform 0.6s var(--ease);
}
.console::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; background: linear-gradient(140deg, rgba(169, 140, 255, 0.8), transparent 40%, transparent 60%, rgba(244, 187, 111, 0.6)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.console-bar { display: flex; align-items: center; gap: 12px; padding: 2px 4px 14px; border-bottom: 1px solid var(--line); }
.dots { display: flex; gap: 6px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, 0.14); }
.console-title { font-family: var(--mono); font-size: 0.8rem; color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; }
.live { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; font-size: 0.76rem; font-weight: 700; color: var(--mint); text-transform: uppercase; letter-spacing: 0.1em; }
.live .pulse-dot { width: 6px; height: 6px; }
.console-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 14px 0; }
.console-stats > div { padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line); }
.console-stats .k { display: block; font-size: 0.7rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }
.console-stats .v { display: block; font-family: var(--mono); font-size: 1.2rem; font-weight: 600; color: var(--text); font-variant-numeric: tabular-nums; }
.feed { --row: 66px; list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; height: calc(var(--row) * 4 + 24px); overflow: hidden; }
.feed-item {
  display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: 12px;
  flex: none; height: var(--row); padding: 0 12px; border-radius: 14px;
  background: rgba(255, 255, 255, 0.035); border: 1px solid var(--line);
  animation: feedIn 0.7s var(--ease) both;
}
.feed-item img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; object-position: 50% 20%; border: 1px solid var(--line-2); }
.feed-item b { display: block; font-size: 0.78rem; color: var(--violet); font-weight: 700; }
.feed-item span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 0.9rem; line-height: 1.3; color: var(--text); }
.feed-item.is-leaving { animation: feedOut 0.5s var(--ease) forwards; }
.st { font-style: normal; font-size: 0.7rem; font-weight: 700; padding: 5px 9px; border-radius: 999px; white-space: nowrap; letter-spacing: 0.02em; }
.st-done { color: var(--mint); background: rgba(114, 227, 180, 0.1); border: 1px solid rgba(114, 227, 180, 0.3); }
.st-review { color: var(--amber); background: rgba(244, 187, 111, 0.1); border: 1px solid rgba(244, 187, 111, 0.35); }
.st-handover { color: var(--rose); background: rgba(255, 159, 140, 0.1); border: 1px solid rgba(255, 159, 140, 0.35); }

.hero-stats { list-style: none; padding: 0; margin-top: clamp(48px, 7vw, 88px); display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.hero-stats li { padding: 22px 20px 0 0; }
.hero-stats li + li { padding-left: 20px; border-left: 1px solid var(--line); }
.hero-stats b { display: block; font-family: var(--serif); font-weight: 400; font-size: clamp(1.8rem, 3vw, 2.6rem); line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-stats span { display: block; font-size: 0.9rem; color: var(--muted); margin-top: 8px; }
.scroll-hint { position: absolute; left: 50%; bottom: 18px; width: 26px; height: 42px; margin-left: -13px; border: 1.5px solid var(--line-2); border-radius: 14px; }
.scroll-hint span { position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 2px; background: var(--text); animation: wheel 1.8s var(--ease) infinite; }

/* ---------- Marquee ---------- */
.marquee { position: relative; overflow: hidden; border-block: 1px solid var(--line); padding: 22px 0; background: var(--bg-2); -webkit-mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; width: max-content; animation: marquee 48s linear infinite; }
.marquee span { font-family: var(--serif); font-style: italic; font-size: clamp(1.4rem, 2.6vw, 2.2rem); color: var(--text-soft); padding: 0 28px; white-space: nowrap; display: inline-flex; align-items: center; gap: 56px; }
.marquee span::after { content: "✦"; font-style: normal; font-size: 0.6em; color: var(--violet); }
.marquee:hover .marquee-track { animation-play-state: paused; }

/* ---------- Monday ---------- */
.monday-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.switch-wrap { margin-top: 36px; }
.switch { display: inline-flex; align-items: center; gap: 16px; min-height: 56px; padding: 8px 22px 8px 8px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface-2); color: var(--text); font: 700 1rem var(--sans); cursor: pointer; transition: border-color 0.3s, background 0.3s, box-shadow 0.4s; }
.switch:hover { border-color: var(--violet); }
.switch-track { position: relative; width: 64px; height: 38px; border-radius: 999px; background: rgba(255, 255, 255, 0.1); transition: background 0.35s var(--ease); flex: none; }
.switch-thumb { position: absolute; top: 4px; left: 4px; width: 30px; height: 30px; border-radius: 50%; background: #fff; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4); transition: transform 0.45s var(--ease); }
.switch[aria-checked="true"] { border-color: rgba(114, 227, 180, 0.5); box-shadow: 0 0 60px -10px rgba(114, 227, 180, 0.4); }
.switch[aria-checked="true"] .switch-track { background: linear-gradient(120deg, var(--violet-2), var(--mint)); }
.switch[aria-checked="true"] .switch-thumb { transform: translateX(26px); }
.switch-note { margin: 14px 0 0 6px; color: var(--muted); font-size: 0.95rem; min-height: 1.6em; transition: color 0.3s; }
.switch-note.is-on { color: var(--mint); }

.pile { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.pile-card {
  --rot: 0deg; --tx: 0px;
  position: relative; display: grid; grid-template-columns: 76px 1fr 34px; align-items: center; gap: 16px;
  padding: 18px 22px; border-radius: 16px;
  background: linear-gradient(135deg, rgba(255, 159, 140, 0.09), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 159, 140, 0.22);
  transform: translateX(var(--tx)) rotate(var(--rot));
  transition: transform 0.7s var(--ease), background 0.6s, border-color 0.6s, box-shadow 0.6s;
  transition-delay: var(--d, 0s);
}
.pile-card:nth-child(1) { --rot: -2.2deg; --tx: 14px; }
.pile-card:nth-child(2) { --rot: 1.6deg; --tx: -10px; }
.pile-card:nth-child(3) { --rot: -1deg; --tx: 22px; }
.pile-card:nth-child(4) { --rot: 2.4deg; --tx: -4px; }
.pile-card:nth-child(5) { --rot: -1.8deg; --tx: 8px; }
.js .pile:not(.is-on) .pile-card { animation: jitter 5s ease-in-out infinite; animation-delay: calc(var(--i, 0) * -0.9s); }
.pile-n { font-family: var(--serif); font-size: 2.6rem; line-height: 1; color: var(--rose); transition: color 0.5s; }
.pile-text { position: relative; display: grid; }
.pile-before, .pile-after { grid-area: 1 / 1; transition: opacity 0.45s, transform 0.55s var(--ease), visibility 0.45s; transition-delay: var(--d, 0s); }
.pile-before { font-weight: 600; font-size: 1.05rem; }
.pile-after { opacity: 0; visibility: hidden; transform: translateY(10px); color: var(--text-soft); }
.pile-check { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; border: 1px dashed rgba(255, 255, 255, 0.2); color: transparent; transition: all 0.5s var(--ease); transition-delay: var(--d, 0s); }
.pile-check svg path { stroke-dasharray: 24; stroke-dashoffset: 24; transition: stroke-dashoffset 0.5s var(--ease); transition-delay: calc(var(--d, 0s) + 0.2s); }
.pile.is-on .pile-card { --rot: 0deg; --tx: 0px; background: linear-gradient(135deg, rgba(114, 227, 180, 0.09), rgba(255, 255, 255, 0.02)); border-color: rgba(114, 227, 180, 0.28); }
.pile.is-on .pile-n { color: var(--mint); }
.pile.is-on .pile-before { opacity: 0; visibility: hidden; transform: translateY(-10px); }
.pile.is-on .pile-after { opacity: 1; visibility: visible; transform: none; }
.pile.is-on .pile-check { background: var(--mint); border-color: var(--mint); color: #06140e; box-shadow: 0 0 24px rgba(114, 227, 180, 0.5); }
.pile.is-on .pile-check svg path { stroke-dashoffset: 0; }

/* ---------- Principle / duel ---------- */
.principle { background: radial-gradient(60% 50% at 50% 0%, rgba(124, 92, 255, 0.12), transparent 70%), var(--bg); }
.duel { max-width: 860px; margin: 0 auto; padding: clamp(20px, 3vw, 36px); border-radius: 28px; background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015)); border: 1px solid var(--line-2); box-shadow: 0 50px 120px -60px rgba(124, 92, 255, 0.6); }
.duel-inbox { padding: 18px 22px; border-radius: 16px; background: rgba(0, 0, 0, 0.3); border: 1px solid var(--line); }
.duel-tag { font-family: var(--mono); font-size: 0.75rem; color: var(--muted); letter-spacing: 0.06em; }
.duel-mail { margin: 8px 0 0; font-family: var(--serif); font-style: italic; font-size: 1.18rem; color: var(--text); }
.segmented { position: relative; display: grid; grid-template-columns: 1fr 1fr; margin: 24px auto; max-width: 440px; padding: 5px; border-radius: 999px; background: rgba(0, 0, 0, 0.35); border: 1px solid var(--line); }
.segmented button { position: relative; z-index: 1; min-height: 46px; border: 0; background: none; color: var(--muted); font: 700 0.95rem var(--sans); border-radius: 999px; cursor: pointer; transition: color 0.3s; }
.segmented button[aria-selected="true"] { color: #0b0a12; }
.segmented-pill { position: absolute; top: 5px; bottom: 5px; left: 5px; width: calc(50% - 5px); border-radius: 999px; background: linear-gradient(120deg, #d9ccff, #a98cff 60%, #f4bb6f); box-shadow: 0 6px 24px -6px rgba(169, 140, 255, 0.8); transition: transform 0.5s var(--ease); }
.segmented[data-active="1"] .segmented-pill { transform: translateX(100%); }
.segmented[data-active="0"] .segmented-pill { background: rgba(255, 255, 255, 0.85); box-shadow: none; }
.duel-stage { min-height: 380px; }
.duel-panel { animation: fadeUp 0.5s var(--ease); }
.bubble { max-width: 520px; margin: 20px auto; padding: 18px 22px; border-radius: 20px 20px 20px 6px; background: rgba(255, 255, 255, 0.08); border: 1px solid var(--line); color: var(--text-soft); }
.duel-result { margin: 24px 0 0; padding: 14px 18px; border-radius: 12px; font-size: 0.98rem; }
.duel-result.bad { background: rgba(255, 159, 140, 0.08); border: 1px solid rgba(255, 159, 140, 0.25); color: var(--text-soft); text-align: center; }
.duel-result.good { background: rgba(114, 227, 180, 0.08); border: 1px solid rgba(114, 227, 180, 0.28); color: var(--text-soft); }
.duel-result b { color: var(--text); }
.timer { font-family: var(--mono); color: var(--mint); font-weight: 700; }
#agent-replay { margin-top: 16px; }
.steps-run { list-style: none; margin: 8px 0 0; padding: 0; counter-reset: s; display: grid; gap: 4px; }
.steps-run li {
  counter-increment: s;
  position: relative; display: grid; grid-template-columns: 34px 1fr; column-gap: 14px;
  padding: 10px 12px; border-radius: 12px;
  opacity: 0.25; transition: opacity 0.4s, background 0.4s;
}
.steps-run li::before {
  content: counter(s); grid-row: span 2; align-self: start;
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  font: 700 0.82rem var(--mono); color: var(--muted); border: 1px solid var(--line-2);
  transition: all 0.4s var(--ease);
}
.steps-run li b { font-weight: 700; }
.steps-run li span { font-size: 0.9rem; color: var(--muted); font-family: var(--mono); }
.steps-run li.is-active { opacity: 1; background: rgba(169, 140, 255, 0.08); }
.steps-run li.is-active::before { content: ""; border-color: var(--violet); border-top-color: transparent; animation: spin 0.8s linear infinite; }
.steps-run li.is-done { opacity: 1; }
.steps-run li.is-done::before { content: "✓"; background: var(--mint); border-color: var(--mint); color: #06140e; font-size: 1rem; }
.steps-run.static li { opacity: 1; }

/* Anatomy */
.anatomy { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(32px, 6vw, 96px); align-items: center; margin-top: clamp(100px, 14vw, 180px); }
.anatomy-core { position: relative; aspect-ratio: 1; max-width: 460px; width: 100%; margin: 0 auto; }
.orb { position: absolute; inset: 22%; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #f3ecff, #a98cff 30%, #5e456e 62%, #14101f 80%); box-shadow: 0 0 120px rgba(169, 140, 255, 0.55), inset -20px -30px 60px rgba(0, 0, 0, 0.5); animation: breathe 6s var(--ease-in-out) infinite; }
.orb span { position: absolute; inset: -18%; border-radius: 50%; border: 1px solid rgba(169, 140, 255, 0.25); animation: ping 4s var(--ease) infinite; }
.orbit { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 60s linear infinite; }
.orbit circle { fill: none; stroke: rgba(255, 255, 255, 0.12); stroke-dasharray: 2 8; }
.orbit circle + circle { stroke: rgba(244, 187, 111, 0.2); stroke-dasharray: 1 14; }
.anatomy-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 34px; }
.glass { position: relative; padding: 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); transition: border-color 0.3s, transform 0.4s var(--ease), background 0.3s; }
.glass:hover { border-color: rgba(169, 140, 255, 0.45); transform: translateY(-4px); background: var(--surface-2); }
.glass .num { font-family: var(--mono); font-size: 0.78rem; color: var(--violet); }
.glass h4 { font-family: var(--serif); font-size: 1.7rem; margin: 6px 0 8px; }
.glass p { color: var(--text-soft); font-size: 0.95rem; margin: 0; }

/* ---------- Roles ---------- */
.roles { background: var(--bg-2); }
.role-explorer { display: grid; grid-template-columns: 260px 1fr; gap: 24px; min-height: 460px; }
.role-tabs { display: flex; flex-direction: column; gap: 6px; }
.role-tabs button {
  position: relative; display: flex; align-items: center; gap: 14px; text-align: left;
  min-height: 56px; padding: 12px 18px; border-radius: 14px;
  border: 1px solid transparent; background: transparent; color: var(--muted);
  font: 700 1.02rem var(--sans); cursor: pointer; transition: color 0.25s, background 0.25s, border-color 0.25s;
}
.role-tabs button:hover { color: var(--text); background: var(--surface); }
.role-tabs button[aria-selected="true"] { color: var(--text); background: var(--surface-2); border-color: var(--line-2); }
.role-tabs button[aria-selected="true"]::after { content: ""; position: absolute; right: -13px; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: var(--violet); box-shadow: 0 0 14px var(--violet); }
.role-idx { font: 600 0.75rem var(--mono); color: var(--violet); }
.role-panel { display: grid; grid-template-columns: 1.3fr 1fr; gap: 28px; padding: clamp(24px, 3.5vw, 44px); border-radius: 26px; background: linear-gradient(145deg, rgba(124, 92, 255, 0.1), rgba(255, 255, 255, 0.02) 55%); border: 1px solid var(--line-2); animation: fadeUp 0.5s var(--ease); }
.role-panel h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.8rem, 3vw, 2.6rem); line-height: 1.08; }
.role-lede { margin-top: 14px; color: var(--text-soft); font-size: 1.05rem; }
.ticks { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 30px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 0.35em; width: 18px; height: 18px; border-radius: 50%; background: rgba(114, 227, 180, 0.15); border: 1px solid rgba(114, 227, 180, 0.5); }
.ticks li::after { content: ""; position: absolute; left: 6px; top: calc(0.35em + 4px); width: 5px; height: 8px; border: solid var(--mint); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.handover { margin: 22px 0 0; padding: 12px 16px; border-radius: 12px; background: rgba(244, 187, 111, 0.08); border: 1px solid rgba(244, 187, 111, 0.25); color: var(--text-soft); font-size: 0.95rem; }
.handover span { color: var(--amber); font-weight: 700; margin-right: 4px; }
.role-log { align-self: start; padding: 18px; border-radius: 16px; background: rgba(0, 0, 0, 0.35); border: 1px solid var(--line); font-family: var(--mono); font-size: 0.84rem; }
.role-log-title { display: block; color: var(--muted); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 12px; }
.log-line { display: grid; grid-template-columns: 48px 1fr; gap: 4px 10px; padding: 10px 0; border-top: 1px dashed var(--line); animation: fadeUp 0.5s var(--ease) both; }
.log-line:nth-of-type(2) { animation-delay: 0.25s; }
.log-line:nth-of-type(3) { animation-delay: 0.5s; }
.log-line:nth-of-type(4) { animation-delay: 0.75s; }
.log-line time { color: var(--violet); grid-row: span 2; }
.log-line em { font-style: normal; color: var(--mint); font-size: 0.78rem; }

/* ---------- 24h day ---------- */
.day { position: relative; height: 420vh; background: var(--bg); }
.day-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; }
.day-sky {
  --sx: 10%; --sy: 95%; --sa: 0;
  position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(180deg, #07080d, #0d1022);
}
.day-sky::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(55% 55% at var(--sx) var(--sy), rgba(244, 187, 111, 0.5), rgba(124, 92, 255, 0.12) 45%, transparent 70%);
  opacity: var(--sa);
}
.day-head { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 24px; }
.day-head .kicker { grid-column: 1 / -1; margin-bottom: 0; }
.day-clock span { font-family: var(--mono); font-size: clamp(2.4rem, 6vw, 5.4rem); font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; color: var(--text); text-shadow: 0 0 40px rgba(169, 140, 255, 0.4); }
.day-track { position: relative; z-index: 1; list-style: none; margin: 48px 0 0; padding: 0 max(16px, calc((100vw - var(--max)) / 2)); display: flex; gap: 20px; width: max-content; will-change: transform; }
.day-card { width: 300px; flex: none; padding: 26px; border-radius: 22px; background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line-2); backdrop-filter: blur(10px); }
.day-card { transition: transform 0.5s var(--ease), border-color 0.4s, box-shadow 0.5s; }
.day-card.is-night { background: rgba(20, 22, 44, 0.65); }
.day-card.is-active { transform: translateY(-10px); border-color: rgba(169, 140, 255, 0.6); box-shadow: 0 30px 80px -30px rgba(124, 92, 255, 0.8); }
.day-card time { display: block; font-family: var(--mono); font-size: 1.9rem; font-weight: 600; color: var(--text); }
.day-role { display: inline-block; margin: 6px 0 14px; font-size: 0.74rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: var(--violet); }
.day-card.is-night .day-role::before { content: "☾ "; color: var(--amber); }
.day-card p { margin: 0; color: var(--text-soft); }
.day-end { display: flex; align-items: center; width: 380px; background: transparent; border-style: dashed; }
.day-end p { font-family: var(--serif); font-size: 1.9rem; line-height: 1.15; color: var(--text); }
.day-bar { position: relative; z-index: 1; width: min(100% - 32px, var(--max)); margin: 40px auto 0; height: 2px; background: var(--line); border-radius: 2px; }
.day-bar span { display: block; height: 100%; background: var(--grad); transform-origin: 0 50%; transform: scaleX(0); border-radius: 2px; }

/* ---------- Benefits bento ---------- */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.bento-card {
  --mx: 50%; --my: 50%;
  position: relative; overflow: hidden; padding: 28px; border-radius: 22px; min-height: 240px;
  background: var(--surface); border: 1px solid var(--line);
  display: flex; flex-direction: column; justify-content: flex-end;
  transition: border-color 0.3s, transform 0.5s var(--ease);
}
.bento-card.wide { grid-column: span 2; }
.spot::before { content: ""; position: absolute; inset: 0; background: radial-gradient(420px circle at var(--mx) var(--my), rgba(169, 140, 255, 0.16), transparent 45%); opacity: 0; transition: opacity 0.4s; pointer-events: none; }
.spot:hover::before { opacity: 1; }
.bento-card:hover { border-color: rgba(169, 140, 255, 0.4); transform: translateY(-4px); }
.bento-big { position: absolute; top: 20px; left: 26px; font-family: var(--serif); font-size: clamp(2.6rem, 4.5vw, 4.2rem); line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.bento-card h3 { margin-top: 90px; font-size: 1.12rem; }
.bento-card p { margin: 8px 0 0; color: var(--text-soft); font-size: 0.95rem; }

/* ---------- Calculator ---------- */
.calc { background: linear-gradient(180deg, var(--bg), var(--bg-3) 50%, var(--bg)); }
.calc-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(40px, 6vw, 88px); align-items: center; }
.calc-form { margin-top: 36px; display: grid; gap: 26px; }
.range label { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; font-weight: 600; color: var(--text-soft); margin-bottom: 12px; }
.range output { font-family: var(--mono); font-size: 1.15rem; font-weight: 700; color: var(--text); min-width: 4ch; text-align: right; }
input[type="range"] {
  --fill: 50%;
  -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: transparent; cursor: pointer; margin: 0;
}
input[type="range"]::-webkit-slider-runnable-track { height: 6px; border-radius: 6px; background: linear-gradient(90deg, var(--violet-2), var(--amber)) 0 / var(--fill) 100% no-repeat, rgba(255, 255, 255, 0.1); }
input[type="range"]::-moz-range-track { height: 6px; border-radius: 6px; background: rgba(255, 255, 255, 0.1); }
input[type="range"]::-moz-range-progress { height: 6px; border-radius: 6px; background: linear-gradient(90deg, var(--violet-2), var(--amber)); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; margin-top: -10px; border-radius: 50%; background: #fff; border: 0; box-shadow: 0 0 0 6px rgba(169, 140, 255, 0.25), 0 6px 16px rgba(0, 0, 0, 0.5); transition: box-shadow 0.25s, transform 0.2s var(--ease); }
input[type="range"]::-moz-range-thumb { width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 0; box-shadow: 0 0 0 6px rgba(169, 140, 255, 0.25), 0 6px 16px rgba(0, 0, 0, 0.5); }
input[type="range"]:hover::-webkit-slider-thumb { box-shadow: 0 0 0 9px rgba(169, 140, 255, 0.3), 0 6px 16px rgba(0, 0, 0, 0.5); }
input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.12); }
input[type="range"]:focus-visible { outline: none; }
input[type="range"]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px var(--amber), 0 6px 16px rgba(0, 0, 0, 0.5); }
input[type="range"]:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 4px var(--amber); }

.calc-result { padding: clamp(28px, 4vw, 44px); border-radius: 28px; background: linear-gradient(160deg, rgba(124, 92, 255, 0.16), rgba(255, 255, 255, 0.02) 60%); border: 1px solid var(--line-2); box-shadow: 0 50px 120px -50px rgba(124, 92, 255, 0.7); text-align: center; }
.result-ring { position: relative; width: min(100%, 260px); aspect-ratio: 1; margin: 0 auto 28px; }
.result-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring-bg { fill: none; stroke: rgba(255, 255, 255, 0.08); stroke-width: 10; }
.ring-fg { fill: none; stroke: var(--violet); stroke-width: 10; stroke-linecap: round; stroke-dasharray: 553; stroke-dashoffset: 553; transition: stroke-dashoffset 0.8s var(--ease), stroke 0.4s; filter: drop-shadow(0 0 10px rgba(169, 140, 255, 0.7)); }
.ring-center { position: absolute; inset: 0; display: grid; place-content: center; }
.ring-center b { font-family: var(--serif); font-weight: 400; font-size: clamp(3rem, 6vw, 4.4rem); line-height: 1; font-variant-numeric: tabular-nums; }
.ring-center span { font-size: 0.86rem; color: var(--muted); margin-top: 6px; }
.result-list { margin: 0; display: grid; gap: 10px; text-align: left; }
.result-list > div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 12px 16px; border-radius: 12px; background: rgba(0, 0, 0, 0.25); border: 1px solid var(--line); }
.result-list dt { color: var(--muted); font-size: 0.9rem; }
.result-list dd { margin: 0; color: var(--text-soft); font-size: 0.95rem; text-align: right; }
.result-list b { font-family: var(--mono); color: var(--text); font-size: 1.1rem; font-variant-numeric: tabular-nums; }

/* ---------- Control ---------- */
.control-box { max-width: 900px; margin: 0 auto; padding: clamp(24px, 4vw, 48px); border-radius: 28px; background: var(--surface); border: 1px solid var(--line-2); }
.flow { display: grid; grid-template-columns: auto 1fr auto 1fr auto; align-items: center; gap: 12px; margin-bottom: 40px; }
.flow-node { display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 0.85rem; font-weight: 600; color: var(--text-soft); text-align: center; }
.flow-icon { width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center; font-size: 1.4rem; background: rgba(169, 140, 255, 0.12); border: 1px solid rgba(169, 140, 255, 0.4); color: var(--violet); }
.flow-node:last-child .flow-icon { background: rgba(114, 227, 180, 0.12); border-color: rgba(114, 227, 180, 0.4); color: var(--mint); }
.flow-line { position: relative; height: 2px; background: var(--line-2); overflow: hidden; border-radius: 2px; }
.flow-line i { position: absolute; top: 0; left: -30%; width: 30%; height: 100%; background: linear-gradient(90deg, transparent, var(--violet), transparent); animation: flow var(--flow-speed, 2.4s) linear infinite; }
.flow-gate { padding: 12px 18px; border-radius: 999px; font-weight: 700; font-size: 0.88rem; white-space: nowrap; border: 1px solid; transition: all 0.45s var(--ease); }
.flow-gate[data-level="0"] { color: var(--amber); border-color: rgba(244, 187, 111, 0.5); background: rgba(244, 187, 111, 0.1); box-shadow: 0 0 40px -10px rgba(244, 187, 111, 0.6); }
.flow-gate[data-level="1"] { color: #ffd9a6; border-color: rgba(244, 187, 111, 0.35); background: rgba(244, 187, 111, 0.06); }
.flow-gate[data-level="2"] { color: var(--violet); border-color: rgba(169, 140, 255, 0.45); background: rgba(169, 140, 255, 0.1); }
.flow-gate[data-level="3"] { color: var(--mint); border-color: rgba(114, 227, 180, 0.45); background: rgba(114, 227, 180, 0.1); box-shadow: 0 0 40px -10px rgba(114, 227, 180, 0.6); }
.range-steps label { justify-content: flex-start; gap: 10px; }
.range-labels { display: flex; justify-content: space-between; margin-top: 10px; font-size: 0.8rem; color: var(--muted); }
.control-text { margin: 26px 0 0; font-size: 1.1rem; color: var(--text-soft); min-height: 3.4em; transition: opacity 0.25s; }
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 40px; }
.pillar { padding: 22px; border-top: 1px solid var(--violet); }
.pillar p { margin: 8px 0 0; color: var(--text-soft); font-size: 0.95rem; }
.big-quote { margin: clamp(72px, 10vw, 120px) auto 0; max-width: 980px; text-align: center; }
.big-quote p { margin: 0; font-family: var(--serif); font-size: clamp(2rem, 4.6vw, 3.8rem); line-height: 1.12; }
.big-quote::before { content: "«"; display: block; font-family: var(--serif); font-size: 5rem; line-height: 0.6; color: var(--violet); opacity: 0.5; }

/* ---------- Robotics ---------- */
.robo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.robo-card { padding: 28px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; }
.robo-card h3 { font-family: var(--serif); font-weight: 400; font-size: 1.7rem; line-height: 1.12; }
.robo-card p { margin: 0; color: var(--text-soft); }
.robo-tag { align-self: flex-start; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; color: var(--violet); border: 1px solid rgba(169, 140, 255, 0.4); }
.robo-now { color: var(--mint); border-color: rgba(114, 227, 180, 0.4); }
.robo-next { color: var(--amber); border-color: rgba(244, 187, 111, 0.45); }
.robo-role { background: linear-gradient(160deg, rgba(124, 92, 255, 0.14), rgba(255, 255, 255, 0.02) 60%); border-color: var(--line-2); }
.chips { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { font-size: 0.85rem; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line); color: var(--text-soft); }
.text-link { margin-top: auto; padding-top: 8px; font-weight: 700; color: var(--violet); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; gap: 8px; }
.text-link:hover { color: var(--amber); }
@media (max-width: 960px) { .robo-grid { grid-template-columns: 1fr; } }

/* ---------- Fit check ---------- */
.check { background: var(--bg-2); }
.check-grid { display: grid; grid-template-columns: 1.3fr 0.9fr; gap: clamp(40px, 6vw, 88px); align-items: start; }
.check-list { list-style: none; padding: 0; margin: 36px 0 0; display: grid; gap: 10px; }
.check-list li { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 14px 16px 14px 20px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.yn { display: inline-flex; gap: 6px; flex: none; }
.yn button { min-width: 64px; min-height: 44px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; color: var(--text-soft); font: 700 0.9rem var(--sans); cursor: pointer; transition: all 0.25s var(--ease); }
.yn button:hover { border-color: var(--violet); color: var(--text); }
.yn button[data-v="1"][aria-pressed="true"] { background: var(--mint); border-color: var(--mint); color: #06140e; transform: scale(1.04); }
.yn button[data-v="0"][aria-pressed="true"] { background: rgba(255, 255, 255, 0.14); border-color: rgba(255, 255, 255, 0.3); color: var(--text); }
.check-result { position: sticky; top: calc(var(--header-h) + 32px); padding: 34px; border-radius: 26px; background: linear-gradient(160deg, rgba(124, 92, 255, 0.14), rgba(255, 255, 255, 0.02) 60%); border: 1px solid var(--line-2); }
.meter { height: 10px; border-radius: 10px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.meter span { display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--rose), var(--amber), var(--mint)); background-size: 300% 100%; transition: transform 0.7s var(--ease); border-radius: 10px; }
.check-score { margin: 20px 0 6px; font-family: var(--mono); color: var(--muted); }
.check-score b { font-family: var(--serif); font-weight: 400; font-size: 3.6rem; color: var(--text); }
.check-result h3 { font-family: var(--serif); font-weight: 400; font-size: 1.8rem; margin-bottom: 10px; }
.check-result p { color: var(--text-soft); }

/* ---------- Team ---------- */
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; }
.member { position: relative; border-radius: 20px; overflow: hidden; background: var(--bg-3); border: 1px solid var(--line); isolation: isolate; }
.member-photo { aspect-ratio: 3 / 4; overflow: hidden; }
.member-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; filter: saturate(0.85); transition: transform 0.9s var(--ease), filter 0.5s; }
.member:hover .member-photo img { transform: scale(1.06); filter: saturate(1.05); }
.member-info { position: absolute; inset: auto 0 0 0; padding: 60px 18px 18px; background: linear-gradient(transparent, rgba(7, 8, 13, 0.92) 55%); }
.member-role { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--violet); }
.member-info h3 { margin-top: 4px; font-size: 1.08rem; }
.member-info p { margin: 0; font-size: 0.88rem; color: var(--text-soft); max-height: 0; opacity: 0; overflow: hidden; transition: max-height 0.5s var(--ease), opacity 0.4s, margin 0.4s; }
.member:hover .member-info p, .member:focus-within .member-info p { max-height: 5em; opacity: 1; margin-top: 6px; }
.member-human { border-color: rgba(244, 187, 111, 0.45); box-shadow: 0 0 60px -20px rgba(244, 187, 111, 0.5); }
.member-human .member-role { color: var(--amber); }
@media (hover: none) { .member-info p { max-height: none; opacity: 1; margin-top: 6px; } }

/* ---------- Process timeline ---------- */
.timeline { --tl: 0; position: relative; list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.timeline::before { content: ""; position: absolute; top: 27px; left: 0; right: 0; height: 1px; background: var(--line-2); }
.timeline::after { content: ""; position: absolute; top: 27px; left: 0; right: 0; height: 1px; background: var(--grad); transform-origin: 0 50%; transform: scaleX(var(--tl)); transition: transform 0.2s linear; }
.timeline li { position: relative; z-index: 1; }
.tl-n { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--bg); border: 1px solid var(--violet); font: 700 0.9rem var(--mono); color: var(--violet); margin-bottom: 22px; box-shadow: 0 0 0 8px var(--bg); }
.timeline h3 { font-family: var(--serif); font-weight: 400; font-size: 1.9rem; margin-bottom: 10px; }
.timeline p { color: var(--text-soft); font-size: 0.97rem; }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(40px, 6vw, 88px); align-items: start; }
.faq-more { margin-top: 24px; color: var(--text-soft); }
.faq-more a { color: var(--violet); font-weight: 700; text-underline-offset: 3px; }
.faq-more a:hover { color: var(--amber); }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 20px; min-height: 64px; padding: 20px 0; cursor: pointer; list-style: none; font-weight: 700; font-size: 1.1rem; transition: color 0.2s; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--violet); }
.plus { position: relative; width: 32px; height: 32px; flex: none; border-radius: 50%; border: 1px solid var(--line-2); transition: transform 0.4s var(--ease), background 0.3s, border-color 0.3s; }
.plus::before, .plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px; background: currentColor; border-radius: 2px; }
.plus::after { transform: rotate(90deg); transition: transform 0.4s var(--ease); }
.faq details[open] .plus { transform: rotate(180deg); background: var(--violet); border-color: var(--violet); color: #0b0a12; }
.faq details[open] .plus::after { transform: rotate(0deg); }
.faq-body p { margin: 0; padding: 0 48px 24px 0; color: var(--text-soft); }
@supports selector(::details-content) {
  .faq details::details-content { block-size: 0; overflow: hidden; transition: block-size 0.45s var(--ease), content-visibility 0.45s allow-discrete; }
  .faq details[open]::details-content { block-size: auto; }
}
@supports (interpolate-size: allow-keywords) { :root { interpolate-size: allow-keywords; } }

/* ---------- Final CTA ---------- */
.final { position: relative; overflow: hidden; padding: clamp(120px, 16vw, 220px) 0; text-align: center; isolation: isolate; border-top: 1px solid var(--line); }
.final-glow { position: absolute; inset: 0; z-index: -1; background: radial-gradient(50% 60% at 50% 100%, rgba(124, 92, 255, 0.45), transparent 70%), radial-gradient(30% 40% at 50% 100%, rgba(244, 187, 111, 0.35), transparent 70%); animation: breathe 8s var(--ease-in-out) infinite; }
.final-inner .kicker { justify-content: center; }
.final-title { font-family: var(--serif); font-size: clamp(2.2rem, 5.4vw, 4.8rem); line-height: 1.08; max-width: 1080px; margin-inline: auto; min-height: 3.3em; }
@media (max-width: 860px) { .final-title { min-height: 5.5em; } }
.error-page .final-title { min-height: 0; }
.typer { font-style: italic; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.caret { display: inline-block; width: 3px; height: 0.9em; margin-left: 4px; vertical-align: -0.08em; background: var(--amber); animation: blink 1s steps(1) infinite; }
.final .lede { margin: 28px auto 0; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: #05060a; padding: 64px 0 28px; font-size: 0.94rem; color: var(--text-soft); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer-claim { margin-top: 14px; max-width: 340px; color: var(--muted); }
.site-footer address { font-style: normal; line-height: 1.8; }
.site-footer a { text-decoration: none; transition: color 0.2s; }
.site-footer a:hover { color: var(--violet); }
.footer-nav { display: grid; align-content: start; }
.footer-nav a { min-height: 32px; display: inline-flex; align-items: center; }
.legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.86rem; }
/* Same size and spacing as on stampfli.solutions (12px footer font: gap 1.25em, height 2.3em) */
.footer-brand { display: inline-flex; align-items: center; gap: 16px; }
.footer-brand img { height: 28px; width: auto; }
.footer-links { display: flex; gap: 20px; color: var(--text-soft); }
.footer-links a { text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.footer-links a { min-height: 44px; display: inline-flex; align-items: center; }

/* ---------- Keyframes ---------- */
@keyframes rise { to { transform: none; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes ping { 0% { transform: scale(0.8); opacity: 1; } 100% { transform: scale(1.8); opacity: 0; } }
@keyframes aurora { 0% { transform: translate3d(0, 0, 0) scale(1); } 100% { transform: translate3d(-4%, 3%, 0) scale(1.08); } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }
@keyframes feedIn { from { opacity: 0; transform: translateY(-14px) scale(0.98); } to { opacity: 1; transform: none; } }
@keyframes feedOut { to { opacity: 0; transform: translateY(12px) scale(0.98); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes jitter { 0%, 100% { translate: 0 0; } 50% { translate: 0 -4px; } }
@keyframes breathe { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.04); opacity: 0.85; } }
@keyframes flow { to { left: 100%; } }
@keyframes blink { 50% { opacity: 0; } }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; }
  .console { transform: none; max-width: 620px; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .role-explorer { grid-template-columns: 1fr; min-height: 0; }
  .role-tabs { flex-direction: row; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
  .role-tabs button { flex: none; }
  .role-tabs button[aria-selected="true"]::after { display: none; }
  .pillars { grid-template-columns: repeat(2, 1fr); }
  .timeline { grid-template-columns: repeat(2, 1fr); row-gap: 48px; }
  .timeline::before, .timeline::after { display: none; }
}
@media (max-width: 860px) {
  body { font-size: 16px; }
  .monday-grid, .calc-grid, .check-grid, .faq-grid, .anatomy { grid-template-columns: 1fr; }
  .anatomy-core { max-width: 280px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .hero-stats li:nth-child(3) { padding-left: 0; border-left: 0; }
  .role-panel { grid-template-columns: 1fr; }
  .check-result { position: static; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .flow { grid-template-columns: 1fr; justify-items: center; gap: 8px; }
  .flow-line { width: 2px; height: 28px; }
  .flow-line i { left: 0; top: -30%; width: 100%; height: 30%; background: linear-gradient(180deg, transparent, var(--violet), transparent); animation-name: flowV; }
  @keyframes flowV { to { top: 100%; } }
}
@media (max-width: 560px) {
  .anatomy-cards, .bento, .pillars, .timeline { grid-template-columns: 1fr; }
  .bento-card.wide { grid-column: auto; }
  .console-stats .v { font-size: 1rem; }
  .console-stats .k { font-size: 0.62rem; }
  .feed { --row: 92px; height: calc(var(--row) * 3 + 16px); }
  .feed-item { grid-template-columns: 34px 1fr; }
  .feed-item img { width: 34px; height: 34px; }
  .feed-item .st { grid-column: 2; justify-self: start; }
  .pile-card { grid-template-columns: 56px 1fr 30px; padding: 14px 16px; --tx: 0px !important; }
  .switch { text-align: left; }
  .pile-n { font-size: 2rem; }
  .check-list li { flex-direction: column; align-items: flex-start; }
  .day-card { width: 260px; }
  .day-head { grid-template-columns: 1fr; }
  .brand-icon { height: 30px; }
  .brand-word { height: 17px; }
}

/* Day section without sticky scrolling (reduced motion or no JS) */
.day.is-static { height: auto; }
.day.is-static .day-sticky { position: relative; height: auto; padding: 120px 0; }
.day.is-static .day-track { width: auto; flex-wrap: nowrap; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 16px; max-width: 100%; }
.day.is-static .day-card { scroll-snap-align: start; }
.day.is-static .day-bar { display: none; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; filter: none; }
  .js .hero-title .line > span { transform: none; }
  .marquee-track { animation: none; }
  .console { transform: none; }
}

/* ---------- 404 ---------- */
.error-page { min-height: 100svh; display: grid; place-items: center; border-top: 0; }
