/* lukaskoeppl.com — modern personal brand site (redesign 2026-10-26).
   Neutral surfaces, cobalt accent (shared with EllTec Analysis and Kiawak),
   Geist / Geist Mono, rounded cards in a bento grid. */

@font-face { font-family: "Geist"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(/fonts/geist-latin-wght-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: "Geist"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(/fonts/geist-latin-ext-wght-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, 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: "Geist Mono"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(/fonts/geist-mono-latin-wght-normal.woff2) format("woff2"); }

:root {
  --bg: #fafaf9;
  --surface: #ffffff;
  --surface-2: #f3f3f1;
  --line: #e6e5e1;
  --line-2: #d4d2cc;
  --text: #0c0c0e;
  --text-2: #3f3f46;
  --muted: #6b6b74;
  --accent: #2b50e6;
  --accent-text: #2343c7;
  --accent-soft: #edf1ff;
  --ok: #16a34a;
  --inv-bg: #0c0c0e;
  --inv-text: #f5f5f4;
  --inv-muted: #a1a1aa;
  --inv-line: #2a2a30;
  --shadow: 0 1px 2px rgb(12 12 14 / 0.04), 0 8px 24px -12px rgb(12 12 14 / 0.12);
  --radius: 22px;
  --radius-sm: 14px;
  --sans: "Geist", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b0b0d; --surface: #141417; --surface-2: #1b1b1f; --line: #26262c; --line-2: #34343b;
    --text: #f5f5f4; --text-2: #d4d4d8; --muted: #9a9aa3; --accent: #7d96ff; --accent-text: #9db0ff; --accent-soft: #1a2142;
    --ok: #4ade80; --inv-bg: #f5f5f4; --inv-text: #0c0c0e; --inv-muted: #52525b; --inv-line: #d9d9d6;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 8px 24px -12px rgb(0 0 0 / 0.5); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0b0b0d; --surface: #141417; --surface-2: #1b1b1f; --line: #26262c; --line-2: #34343b;
  --text: #f5f5f4; --text-2: #d4d4d8; --muted: #9a9aa3; --accent: #7d96ff; --accent-text: #9db0ff; --accent-soft: #1a2142;
  --ok: #4ade80; --inv-bg: #f5f5f4; --inv-text: #0c0c0e; --inv-muted: #52525b; --inv-line: #d9d9d6;
  --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 8px 24px -12px rgb(0 0 0 / 0.5); color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; overflow-x: clip; }
body {
  margin: 0; background: var(--bg); color: var(--text); overflow-x: clip;
  font: 400 16.5px/1.6 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "cv11";
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--accent); color: #fff; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
.sr, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--text); color: var(--bg); padding: 8px 14px; border-radius: 8px; }
.skip:focus { top: 12px; }
.i { width: 1.05em; height: 1.05em; flex: none; }
.flip { transform: rotate(180deg); }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.wrap.narrow { max-width: 820px; }
.muted { color: var(--muted); }
.fine { font-size: 12.5px; line-height: 1.5; color: var(--muted); }

/* ---------- Primitives ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 2.6vw, 32px); box-shadow: var(--shadow); }
.card-label { margin: 0 0 14px; font: 500 12px/1.4 var(--mono); letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.pill {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 18px; padding: 6px 12px 6px 10px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line); font: 500 12.5px/1 var(--mono); letter-spacing: 0.02em; color: var(--text-2);
}
.pill .num { color: var(--accent-text); }
.pill-inv { background: transparent; border-color: var(--inv-line); color: var(--inv-muted); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 20px; border-radius: 999px;
  font: 550 15px/1 var(--sans); text-decoration: none; cursor: pointer; border: 1px solid transparent;
  transition: background .15s, color .15s, border-color .15s, transform .15s;
}
.btn:active { transform: translateY(1px); }
.btn .i { width: 16px; height: 16px; transition: transform .2s; }
.btn:hover .i { transform: translateX(2px); }
.btn-primary { background: var(--text); color: var(--bg); }
.btn-primary:hover { background: var(--accent); color: #fff; }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--text); }
.btn-block { width: 100%; }
.chip { display: inline-flex; align-items: center; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface-2); font-size: 13px; text-decoration: none; color: var(--text-2); }
.chip:hover { border-color: var(--text); color: var(--text); }
.tag { display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-text); font: 500 11.5px/1.3 var(--mono); letter-spacing: 0.02em; }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font: 500 12px/1.4 var(--mono); color: var(--muted); }

/* ---------- Header ---------- */
.top { position: sticky; top: 0; z-index: 50; padding: 12px 0; }
.top-in {
  max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); display: flex; align-items: center; gap: 16px;
}
.top-in > * { position: relative; }
.top::before {
  content: ""; position: absolute; inset: 0; background: color-mix(in srgb, var(--bg) 80%, transparent);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .2s;
}
.top.is-scrolled::before { border-bottom-color: var(--line); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--text); color: var(--bg); font: 600 13px/1 var(--mono); letter-spacing: -0.02em; }
.brand-name { font: 600 16px/1 var(--sans); letter-spacing: -0.02em; }
.nav { display: flex; align-items: center; gap: 2px; padding: 4px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.nav a { text-decoration: none; padding: 8px 14px; font-size: 14.5px; color: var(--text-2); border-radius: 999px; transition: background .15s, color .15s; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); background: var(--surface-2); }
.nav .nav-cta { background: var(--text); color: var(--bg); margin-left: 4px; }
.nav .nav-cta:hover { background: var(--accent); color: #fff; }
.top-tools { display: flex; align-items: center; gap: 6px; }
.lang, .tool {
  display: grid; place-items: center; height: 38px; min-width: 38px; padding: 0 10px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); color: var(--text); cursor: pointer;
  font: 600 12px/1 var(--mono); text-decoration: none;
}
.lang:hover, .tool:hover { border-color: var(--text); }
.tool .i { width: 17px; height: 17px; }
.i-sun { display: none; }
[data-theme="dark"] .i-sun { display: block; }
[data-theme="dark"] .i-moon { display: none; }
.menu-btn { display: none; }
.menu-btn .i-close { display: none; }
@media (max-width: 900px) {
  .menu-btn { display: grid; }
  .nav {
    position: fixed; top: 70px; left: var(--gutter); right: var(--gutter); flex-direction: column; align-items: stretch; gap: 2px; padding: 8px;
    border-radius: var(--radius); transform: translateY(-6px) scale(.98); opacity: 0; visibility: hidden; transition: opacity .18s, transform .18s, visibility .18s;
  }
  .nav a { padding: 14px 16px; font-size: 17px; border-radius: 14px; }
  .nav .nav-cta { margin: 6px 0 0; text-align: center; }
  body.menu-open .nav { transform: none; opacity: 1; visibility: visible; }
  body.menu-open .menu-btn .i-open { display: none; }
  body.menu-open .menu-btn .i-close { display: block; }
}

/* ---------- Hero ---------- */
.hero { padding: clamp(28px, 5vw, 64px) 0 clamp(48px, 6vw, 80px); position: relative; }
.hero::before {
  content: ""; position: absolute; inset: -80px 0 auto 0; height: 640px; z-index: -1; pointer-events: none;
  background:
    radial-gradient(600px 300px at 15% 20%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 70%),
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 56px 56px,
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 30% 30%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 30% 30%, #000 30%, transparent 75%);
  opacity: 0.6;
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 420px); gap: clamp(28px, 5vw, 72px); align-items: center; }
.badge { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 10px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); font-size: 13.5px; color: var(--text-2); margin: 0 0 26px; }
.badge-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ok) 20%, transparent); }
.hero-name { margin: 0; font: 650 clamp(52px, 8.6vw, 116px)/0.95 var(--sans); letter-spacing: -0.055em; }
.hero-lede { max-width: 36em; margin: 24px 0 32px; font-size: clamp(17px, 1.5vw, 20px); line-height: 1.55; color: var(--text-2); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }

.portrait { margin: 0; }
.portrait-frame {
  position: relative; padding: 10px; border-radius: calc(var(--radius) + 10px); background: var(--surface);
  border: 1px solid var(--line); box-shadow: var(--shadow);
}
.portrait-frame img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 15%; border-radius: var(--radius); }
.portrait-cap {
  position: absolute; left: 22px; right: 22px; bottom: 22px; display: grid; gap: 2px; padding: 12px 16px; border-radius: 16px;
  background: color-mix(in srgb, var(--surface) 82%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid color-mix(in srgb, var(--line) 70%, transparent); font-size: 13px; color: var(--muted);
}
.portrait-cap strong { color: var(--text); font-weight: 600; font-size: 14px; }

.bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: clamp(40px, 5vw, 64px); }
.wave-card { grid-column: span 2; grid-row: span 2; display: flex; flex-direction: column; color: var(--accent); overflow: hidden; }
.wave-card .card-label { color: var(--muted); }
.wave { width: 100%; height: auto; flex: 1; min-height: 160px; overflow: visible; }
.wave-cap { margin: 10px 0 0; font-size: 13.5px; color: var(--muted); }
.wave-fib { stroke: var(--line-2); stroke-width: 1; stroke-dasharray: 3 6; fill: none; vector-effect: non-scaling-stroke; }
.wave-area { opacity: 0; animation: fadein 1s ease 1.6s forwards; }
.wave-line {
  fill: none; stroke: var(--accent); stroke-width: 2.5; vector-effect: non-scaling-stroke; stroke-linejoin: round; stroke-linecap: round;
  stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 2.2s cubic-bezier(.6, .1, .2, 1) .2s forwards;
}
.wave-pt { opacity: 0; animation: fadein .5s ease forwards; animation-delay: calc(var(--d) * 2); }
.wave-pt circle { fill: var(--surface); stroke: var(--accent); stroke-width: 2; vector-effect: non-scaling-stroke; }
.wave-pt text { font: 600 26px var(--mono); fill: var(--text); text-anchor: middle; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fadein { to { opacity: 1; } }
.stat { display: flex; flex-direction: column; justify-content: space-between; gap: 18px; min-height: 140px; }
.stat-v { font: 650 clamp(34px, 3.6vw, 48px)/1 var(--sans); letter-spacing: -0.045em; }
.stat-l { font-size: 14px; color: var(--muted); line-height: 1.4; }

/* ---------- Sections ---------- */
.sec { padding: clamp(64px, 8vw, 112px) 0; }
.sec-tint { background: var(--surface-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sec-tint .card { box-shadow: none; }
.page-top { padding-top: clamp(32px, 5vw, 64px); }
.sec-head { max-width: 760px; margin-bottom: clamp(32px, 4vw, 48px); }
.sec-title { margin: 0; font: 650 clamp(34px, 4.6vw, 56px)/1.02 var(--sans); letter-spacing: -0.045em; }
.sec-intro { margin: 16px 0 0; font-size: clamp(16.5px, 1.4vw, 19px); color: var(--text-2); max-width: 40em; }
.lead { font-size: clamp(17px, 1.5vw, 19.5px); line-height: 1.55; color: var(--text); margin-top: 0; }
.lang-note { font: 500 12.5px/1.5 var(--mono); color: var(--muted); margin: -16px 0 24px; }

/* ---------- Ventures ---------- */
.ventures { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.venture { display: flex; flex-direction: column; }
.v-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 22px; }
.v-logo { width: 64px; height: 64px; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); display: grid; place-items: center; flex: none; }
.v-logo-ink { background: #000; }
.v-logo-ink img { width: 100%; height: 100%; object-fit: cover; }
.v-logo-paper { background: #fff; padding: 8px; }
[data-theme="dark"] .v-logo-paper { background: #1b1b1f; }
.only-dark { display: none; }
[data-theme="dark"] .only-dark { display: block; }
[data-theme="dark"] .only-light { display: none; }
.status { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); font: 500 12.5px/1 var(--mono); color: var(--text-2); }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }
.v-name { margin: 0; font: 650 clamp(28px, 3vw, 38px)/1.05 var(--sans); letter-spacing: -0.04em; }
.v-claim { margin: 6px 0 16px; font-size: 17px; font-weight: 500; color: var(--accent-text); }
.v-text { margin: 0 0 20px; color: var(--text-2); }
.checks { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 9px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
.checks .i { width: 18px; height: 18px; margin-top: 2px; color: var(--accent); stroke-width: 2.2; }
.v-facts { margin: 0 0 24px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.v-facts div { padding: 12px 14px; border-radius: var(--radius-sm); background: var(--surface-2); border: 1px solid var(--line); }
.v-facts dt { font: 500 11.5px/1.3 var(--mono); text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); margin-bottom: 4px; }
.v-facts dd { margin: 0; font-size: 14.5px; font-weight: 500; }
.v-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.v-social { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 20px 0 0; padding-top: 18px; border-top: 1px solid var(--line); }
.v-social > span { font: 500 12px var(--mono); text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); margin-right: 4px; }

/* ---------- Portfolio ---------- */
.pf-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(280px, 1fr); gap: 16px; align-items: start; }
.pf-main p:not(.lead):not(.card-label) { color: var(--text-2); }
.pf-main p:last-child { margin-bottom: 0; }
.tags { list-style: none; margin: 0 0 22px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { padding: 7px 12px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-text); font-size: 13.5px; font-weight: 500; }
.sheet { grid-column: 2; grid-row: 1 / span 3; position: sticky; top: 96px; }
.sheet-name { margin: -4px 0 14px; font: 650 34px/1 var(--sans); letter-spacing: -0.04em; }
.sheet-rows { margin: 0 0 20px; }
.sheet-rows div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.sheet-rows dt { font-size: 14px; color: var(--muted); }
.sheet-rows dd { margin: 0; font: 500 14px/1.4 var(--mono); text-align: right; }
.sheet-rows small { display: block; font: 400 11.5px/1.4 var(--sans); color: var(--muted); }
.sheet-actions { display: grid; gap: 8px; }
.sheet .fine { margin: 12px 0 0; }
.risk-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.risk-rows li { display: grid; grid-template-columns: 140px minmax(0, 1fr) 80px; gap: 16px; align-items: center; font-size: 14.5px; }
.rr-bar { position: relative; height: 10px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); }
.rr-bar span { position: absolute; top: -1px; bottom: -1px; border-radius: 999px; background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 55%, transparent), var(--accent)); transform-origin: left; animation: grow 1s cubic-bezier(.3, .7, .2, 1) both; }
.rr-v { font: 500 13px/1 var(--mono); text-align: right; }
.risk-scale { position: relative; height: 16px; margin: 12px 96px 0 156px; font: 500 11px/1 var(--mono); color: var(--muted); }
.risk-scale span { position: absolute; transform: translateX(-50%); }
.risk-scale span:first-child { transform: none; }
@keyframes grow { from { transform: scaleX(0); } }
.rules dl { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.rules dl div { padding: 14px; border-radius: var(--radius-sm); background: var(--surface-2); border: 1px solid var(--line); }
.rules dt { font: 500 11.5px/1.3 var(--mono); text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); margin-bottom: 6px; }
.rules dd { margin: 0; font-size: 15px; font-weight: 500; line-height: 1.35; }
.pf-disclaimer { max-width: 60em; margin: 18px 0 0; }

/* ---------- Timeline ---------- */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; display: grid; gap: 12px; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 12px; bottom: 12px; width: 2px; background: var(--line); border-radius: 2px; }
.timeline li { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 24px; align-items: center; padding-left: 36px; position: relative; }
.timeline li::before { content: ""; position: absolute; left: 0; top: 50%; width: 16px; height: 16px; margin-top: -8px; border-radius: 50%; background: var(--bg); border: 2px solid var(--line-2); }
.timeline li.is-mark::before { border-color: var(--accent); background: var(--accent); box-shadow: 0 0 0 5px var(--accent-soft); }
.tl-when { font: 600 15px/1.2 var(--mono); color: var(--text-2); }
.timeline li.is-mark .tl-when { color: var(--accent-text); }
.tl-body { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px 20px; }
.tl-body h3 { margin: 0 0 2px; font: 600 16.5px/1.35 var(--sans); letter-spacing: -0.01em; }
.tl-body p { margin: 0; color: var(--muted); font-size: 15px; }

/* ---------- Article cards ---------- */
.cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.acard { display: flex; flex-direction: column; height: 100%; padding: 0; overflow: hidden; text-decoration: none; transition: transform .2s, border-color .2s; }
.acard:hover { transform: translateY(-3px); border-color: var(--line-2); }
.acard-img { display: block; aspect-ratio: 16 / 9; background: var(--surface-2); border-bottom: 1px solid var(--line); overflow: hidden; }
.acard-img img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .4s; }
.acard:hover .acard-img img { transform: scale(1.03); }
.acard-body { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px 20px; flex: 1; }
.acard-title { font: 650 22px/1.15 var(--sans); letter-spacing: -0.03em; margin-top: 4px; }
.acard-sub { color: var(--muted); font-size: 14.5px; }
.acard-foot { margin-top: auto; padding-top: 10px; display: flex; align-items: center; justify-content: space-between; font: 500 12px var(--mono); color: var(--muted); }
.acard-arrow { color: var(--text); transition: transform .2s; }
.acard:hover .acard-arrow { transform: translateX(3px); color: var(--accent); }
.news-teaser { margin-top: 32px; display: grid; gap: 8px; }
.news-teaser a { text-decoration: none; font-weight: 500; }
.news-teaser time { font: 500 12px var(--mono); color: var(--muted); margin-right: 10px; }

/* ---------- Personal ---------- */
.personal { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 16px; align-items: stretch; }
.interests { list-style: none; margin: 0 0 22px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.interests li { padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface-2); font-size: 15px; font-weight: 500; }
.interests li:nth-child(-n + 2) { background: var(--accent-soft); color: var(--accent-text); border-color: transparent; }
.study { margin: 0; color: var(--text-2); }
.goals { display: grid; gap: 12px; }
.goal { display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 14px; padding: 20px 24px; }
.goal-n { grid-row: span 2; font: 600 13px/1.9 var(--mono); color: var(--accent-text); }
.goal h3 { margin: 0; font: 600 17px/1.4 var(--sans); }
.goal p { margin: 2px 0 0; color: var(--muted); font-size: 15px; }

/* ---------- Newsletter ---------- */
.nl-sec { padding-top: 0; }
.nl-card {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center;
  padding: clamp(28px, 5vw, 64px); border-radius: calc(var(--radius) + 8px); background: var(--inv-bg); color: var(--inv-text); position: relative; overflow: hidden;
}
.nl-card::after {
  content: ""; position: absolute; right: -120px; top: -160px; width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 45%, transparent), transparent 65%); pointer-events: none;
}
.nl-card > * { position: relative; z-index: 1; }
.nl-card-sm { margin-bottom: 56px; }
.nl-title { margin: 0 0 12px; font: 650 clamp(32px, 4.4vw, 52px)/1.02 var(--sans); letter-spacing: -0.045em; }
.nl-text { margin: 0; color: var(--inv-muted); max-width: 32em; }
.nl-form { width: 100%; }
.nl-row { display: flex; gap: 8px; padding: 6px; border-radius: 999px; background: color-mix(in srgb, var(--inv-text) 8%, transparent); border: 1px solid var(--inv-line); }
.nl-row:focus-within { border-color: var(--accent); }
.nl-row input { flex: 1; min-width: 0; background: transparent; border: 0; color: inherit; padding: 0 14px; font: 400 16px var(--sans); }
.nl-row input::placeholder { color: var(--inv-muted); }
.nl-row input:focus { outline: none; }
.nl-row button {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 20px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--accent); color: #fff; font: 600 15px/1 var(--sans);
}
.nl-row button:hover { filter: brightness(1.1); }
.nl-row button .i { width: 16px; height: 16px; }
.nl-note { margin: 12px 4px 0; font-size: 12.5px; color: var(--inv-muted); }
.nl-note a { color: inherit; }
.nl-msg { margin: 12px 4px 0; font-weight: 600; min-height: 1.5em; }
.nl-msg.is-error { color: #ff8a7a; }
.nl-form.is-done .nl-row, .nl-form.is-done .nl-note { display: none; }
.nl-form.is-done .nl-msg { font-size: 18px; }

/* ---------- Footer ---------- */
.foot { border-top: 1px solid var(--line); padding: clamp(48px, 6vw, 80px) 0 32px; background: var(--surface-2); }
.foot-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.eyebrow { margin: 0 0 12px; font: 500 12px/1.3 var(--mono); letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.foot-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 15px; }
.foot-links a { text-decoration: none; color: var(--text-2); }
.foot-links a:hover { color: var(--accent-text); }
.foot-base { margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.foot-base p { margin: 0; }
.foot-disclaimer { max-width: 62ch; }
.social-icons { list-style: none; margin: 28px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.si { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--text-2); transition: color .15s, border-color .15s, transform .15s; }
.si svg { width: 19px; height: 19px; }
.si:hover { color: var(--accent); border-color: var(--accent); transform: translateY(-2px); }

/* ---------- Article ---------- */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60; pointer-events: none; }
.progress span { display: block; height: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; }
.art-head { padding-top: clamp(24px, 4vw, 48px); padding-bottom: clamp(28px, 4vw, 48px); }
.back { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; text-decoration: none; color: var(--muted); margin-bottom: 28px; }
.back:hover { color: var(--text); }
.art-head .meta { margin-bottom: 16px; }
.art-title { margin: 0; font: 650 clamp(40px, 7vw, 84px)/1 var(--sans); letter-spacing: -0.05em; max-width: 14em; }
.art-sub { margin: 16px 0 0; font-size: clamp(18px, 2vw, 23px); color: var(--text-2); max-width: 32em; }
.art-head .lang-note { margin: 20px 0 0; }
.also { margin: 22px 0 0; display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 10px 16px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.also a { color: var(--text); font-weight: 600; display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
.also a .i { width: 15px; height: 15px; }
.art-grid { display: block; padding-top: 32px; background: linear-gradient(var(--line), var(--line)) no-repeat top center / calc(100% - 2 * var(--gutter)) 1px; }
.art-grid.has-toc { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.toc { position: sticky; top: 96px; max-height: calc(100vh - 120px); overflow: auto; font-size: 14px; padding-bottom: 16px; scrollbar-width: thin; }
.toc summary { cursor: pointer; list-style: none; }
.toc summary::-webkit-details-marker { display: none; }
.toc ol { list-style: none; margin: 0; padding: 0; }
.toc li a { display: block; padding: 6px 0 6px 14px; text-decoration: none; color: var(--muted); border-left: 2px solid var(--line); line-height: 1.35; }
.toc li.lv3 a { padding-left: 28px; font-size: 13px; }
.toc li a:hover { color: var(--text); }
.toc li a.is-active { color: var(--accent-text); border-left-color: var(--accent); }
.prose { max-width: 720px; font-size: 17.5px; line-height: 1.75; }
.prose > :first-child { margin-top: 0; }
.prose p, .prose ul, .prose ol { margin: 0 0 1.15em; }
.prose li { margin: 0.25em 0; }
.prose li > p { margin: 0; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li::marker { color: var(--accent); }
.prose h2 { font: 650 clamp(26px, 3vw, 34px)/1.15 var(--sans); letter-spacing: -0.035em; margin: 2em 0 0.6em; scroll-margin-top: 96px; }
.prose h3 { font: 600 21px/1.3 var(--sans); letter-spacing: -0.02em; margin: 1.8em 0 0.5em; scroll-margin-top: 96px; }
.prose h4 { font: 600 13px/1.4 var(--mono); letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); margin: 1.6em 0 0.6em; }
.prose a { color: var(--accent-text); text-decoration-thickness: 1.5px; }
.prose strong { font-weight: 650; }
.prose hr { border: 0; height: 1px; background: var(--line); margin: 3em 0; }
.prose figure { margin: 2em 0; }
.prose figure img { width: 100%; border-radius: var(--radius-sm); border: 1px solid var(--line); background: #fff; }
.prose figcaption { margin-top: 10px; font-size: 13px; color: var(--muted); }
.prose figcaption a { color: var(--muted); }
.prose blockquote { margin: 1.5em 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--accent); color: var(--text-2); }
.prose .epigraph { font: 600 clamp(24px, 3vw, 32px)/1.25 var(--sans); letter-spacing: -0.03em; color: var(--accent-text); margin-bottom: 1.2em; }
.prose .embed a { display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 16px 20px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface); text-decoration: none; color: var(--text); font-weight: 600; }
.prose .embed a::after { content: "→"; color: var(--accent); }
.prose .embed a:hover { border-color: var(--text); }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; }
.prose th, .prose td { border-bottom: 1px solid var(--line); padding: 8px; text-align: left; }
.art-end { padding-top: 48px; }
.more-label { margin: 0 0 20px; font: 650 28px/1.1 var(--sans); letter-spacing: -0.035em; }

/* ---------- News, messages, legal ---------- */
.news-list { list-style: none; padding: 0; margin: 0 0 40px; display: grid; gap: 10px; }
.news-list a { display: grid; grid-template-columns: 170px minmax(0, 1fr) 20px; gap: 16px; align-items: center; padding: 18px 22px; text-decoration: none; }
.news-list time { font: 500 12.5px var(--mono); color: var(--muted); }
.nw-t { font: 600 18px/1.3 var(--sans); letter-spacing: -0.02em; }
.empty { font-size: 18px; color: var(--muted); margin-bottom: 40px; }
.msg-card { text-align: left; }
.msg-wave { color: var(--accent); max-height: 150px; margin-bottom: 24px; }
.msg-title { margin: 0 0 14px; font: 650 clamp(32px, 5vw, 52px)/1.05 var(--sans); letter-spacing: -0.045em; }
.msg form { margin: 24px 0; }
.legal .art-title { font-size: clamp(38px, 6vw, 64px); margin-bottom: 24px; }
.legal h2 { font: 600 19px/1.3 var(--sans); margin: 2em 0 0.5em; }
.legal p { color: var(--text-2); max-width: 46em; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wave-card { grid-row: auto; }
  .pf-grid { grid-template-columns: minmax(0, 1fr); }
  .sheet { grid-column: auto; grid-row: auto; position: static; }
}
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .portrait { max-width: 420px; width: 100%; }
  .ventures, .personal, .nl-card { grid-template-columns: minmax(0, 1fr); }
  .art-grid.has-toc { grid-template-columns: minmax(0, 1fr); }
  .toc { position: static; max-height: none; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; background: var(--surface); }
  .toc summary { margin: 0; }
  .toc details[open] summary { margin-bottom: 10px; }
  .toc summary::after { content: " +"; }
  .toc details[open] summary::after { content: " –"; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .brand-name { font-size: 15px; }
  .lang, .tool { height: 36px; min-width: 36px; }
  .hero-name { font-size: clamp(46px, 14vw, 72px); }
  .bento { gap: 10px; }
  .stat { min-height: 120px; padding: 18px; }
  .stat-v { font-size: 32px; }
  .stat-l { font-size: 13px; }
  .v-facts, .rules dl { grid-template-columns: minmax(0, 1fr); }
  .risk-rows li { grid-template-columns: minmax(0, 1fr) auto; gap: 8px 12px; }
  .rr-bar { grid-column: 1 / -1; grid-row: 2; }
  .risk-scale { display: none; }
  .timeline li { grid-template-columns: minmax(0, 1fr); gap: 6px; align-items: start; }
  .timeline li::before { top: 4px; margin-top: 0; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-grid > :last-child { grid-column: 1 / -1; }
  .news-list a { grid-template-columns: minmax(0, 1fr) 20px; }
  .news-list time { grid-column: 1 / -1; }
  .nl-row { flex-direction: column; border-radius: 20px; }
  .nl-row input { min-height: 44px; }
  .portrait-cap { left: 18px; right: 18px; bottom: 18px; }
}
@media (max-width: 360px) {
  .brand-name { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-delay: 0s !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .wave-line { stroke-dashoffset: 0; }
  .wave-pt, .wave-area { opacity: 1; }
}
@media print {
  .top, .foot, .nl-sec, .art-end, .progress, .toc { display: none !important; }
  body { background: #fff; color: #000; }
}
