/* davidbadovinac.com — Light theme, violet accent */
:root {
    --paper: #F4F1EA;
    --ink: #16151A;
    --accent: #5B3FE0;
    --accent-soft: rgba(91, 63, 224, 0.08);
    --accent-dash: rgba(91, 63, 224, 0.4);
    --surface: #FFFFFF;
    --surface-2: #F8F6F1;
    --muted-1: #5F5D66;
    --muted-2: #4D4B54;
    --muted-3: #3A3842;
    --muted-4: #6E6C75;
    --on-ink-muted: #CFCBD6;
    --line-08: rgba(22, 21, 26, 0.08);
    --line-10: rgba(22, 21, 26, 0.10);
    --line-12: rgba(22, 21, 26, 0.12);
    --line-14: rgba(22, 21, 26, 0.14);
    --line-22: rgba(22, 21, 26, 0.22);
    --shadow: 0 40px 80px -30px rgba(40, 30, 80, 0.16);
    --ease-reveal: cubic-bezier(.2, .7, .1, 1);
    --ease-snap: cubic-bezier(.2, .8, .1, 1);
    --gutter: clamp(20px, 4vw, 48px);
    --section-y: clamp(64px, 8vw, 120px);
    --display: 'Bricolage Grotesque', system-ui, sans-serif;
    --mono: 'JetBrains Mono', ui-monospace, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; background: var(--paper); color: var(--ink); -webkit-font-smoothing: antialiased; }
body { font-family: var(--display); min-height: 100vh; position: relative; overflow-x: hidden; }
a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--accent); }
::selection { background: var(--accent); color: var(--paper); }
input, textarea, select, button { font: inherit; }
[id] { scroll-margin-top: 80px; }
.mono { font-family: var(--mono); }
.accent { color: var(--accent); }
.wrap { max-width: 1320px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.grid-bg {
    position: fixed; inset: 0; pointer-events: none; z-index: 0;
    background-image: linear-gradient(rgba(22,21,26,0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(22,21,26,0.035) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: linear-gradient(180deg, #000 0%, transparent 70%);
    -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 70%);
}
main, footer { position: relative; z-index: 1; }

/* ---------- Motion ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes clipup { from { transform: translateY(105%); } to { transform: none; } }
@keyframes grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
@keyframes drawline { from { stroke-dashoffset: 600; } to { stroke-dashoffset: 0; } }

.rise { animation: rise .9s var(--ease-reveal) both; animation-delay: var(--d, 0s); }
.clip { display: block; overflow: hidden; padding-bottom: 0.06em; }
.clip > span { display: block; animation: clipup 1s var(--ease-snap) both; animation-delay: var(--d, .1s); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: pulse 2s infinite; flex-shrink: 0; }

/* Scroll-triggered reveals: hidden only once JS confirms it can reveal them */
.js [data-reveal] { opacity: 0; }
.js [data-reveal].in { animation: rise .8s var(--ease-reveal) both; animation-delay: var(--d, 0s); }
.js [data-play] .grow-bar, .js [data-play] .chat-step, .js [data-play] .trend { animation-play-state: paused; }
.js [data-play].in .grow-bar, .js [data-play].in .chat-step, .js [data-play].in .trend { animation-play-state: running; }

/* ---------- Header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 20;
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    background: rgba(244, 241, 234, 0.8);
    border-bottom: 1px solid var(--line-08);
}
.site-nav { max-width: 1320px; margin: 0 auto; padding: 16px var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-tile { width: 36px; height: 36px; border-radius: 10px; background: var(--accent); color: var(--paper); display: grid; place-items: center; font-weight: 800; font-size: 15px; letter-spacing: -0.04em; }
.brand-name { font-weight: 600; font-size: 16px; letter-spacing: -0.01em; white-space: nowrap; }
.nav-links { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; font-family: var(--mono); font-size: 13px; }
.nav-links a { padding: 8px 14px; border-radius: 999px; color: var(--muted-2); white-space: nowrap; transition: background .2s, color .2s; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); background: rgba(22, 21, 26, 0.06); }
.nav-end { display: flex; align-items: center; gap: 8px; }
.btn-call { display: flex; align-items: center; gap: 10px; padding: 11px 18px; border-radius: 999px; background: var(--accent); color: var(--paper); font-weight: 600; font-size: 14px; white-space: nowrap; transition: transform .2s; }
.btn-call:hover { transform: translateY(-2px); color: var(--paper); }
.btn-call .dot { width: 7px; height: 7px; background: var(--paper); animation-duration: 1.8s; }
.menu-toggle { display: none; padding: 10px 14px; border-radius: 999px; border: 1px solid var(--line-22); background: transparent; color: var(--ink); font-family: var(--mono); font-size: 13px; cursor: pointer; }

@media (max-width: 719px) {
    .menu-toggle { display: inline-flex; }
    .nav-links { display: none; order: 3; width: 100%; flex-direction: column; align-items: stretch; padding-top: 8px; }
    .nav-links a { padding: 12px 14px; }
    .site-header.open .nav-links { display: flex; }
    .btn-call { padding: 10px 14px; }
    .site-nav { gap: 12px; }
}
@media (max-width: 459px) { .brand-name { display: none; } }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; padding: 16px 26px; border-radius: 999px; font-weight: 600; font-size: 15px; transition: all .25s; white-space: nowrap; }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: var(--accent); color: var(--paper); }
.btn-outline { border: 1px solid var(--line-22); font-weight: 500; }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.pill-link { font-family: var(--mono); font-size: 14px; padding: 12px 20px; border-radius: 999px; border: 1px solid var(--line-22); white-space: nowrap; }
.pill-link:hover { border-color: var(--accent); }

/* ---------- Type ---------- */
.eyebrow { font-family: var(--mono); font-size: 13px; color: var(--accent); }
.h2 { margin: 16px 0 0; font-size: clamp(44px, 6vw, 88px); line-height: 0.95; letter-spacing: -0.045em; font-weight: 700; }
.page-h1 { margin: 24px 0 0; font-size: clamp(64px, 11vw, 168px); line-height: 0.86; letter-spacing: -0.06em; font-weight: 700; }
.lede { margin: 28px 0 0; max-width: 640px; font-size: 19px; line-height: 1.55; color: var(--muted-1); text-wrap: pretty; }
.body-copy { font-size: 17px; line-height: 1.6; color: var(--muted-1); text-wrap: pretty; }
.section { padding-top: var(--section-y); padding-bottom: var(--section-y); }
.section-tight { padding-bottom: var(--section-y); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 32px; flex-wrap: wrap; }

/* ---------- Hero ---------- */
.hero { padding-top: clamp(56px, 9vw, 120px); padding-bottom: 64px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 480px), 1fr)); gap: 56px; align-items: end; }
.hero-eyebrow { display: flex; align-items: center; gap: 10px; }
.hero-name { margin: 28px 0 0; font-size: clamp(48px, 16vw, 156px); line-height: 0.88; letter-spacing: -0.055em; font-weight: 700; }
/* Two-column hero: size the name to its half-width column so "Badovinac" isn't clipped */
@media (min-width: 1100px) { .hero-name { font-size: min(8.4vw, 136px); } }
.hero-name .outline { color: transparent; -webkit-text-stroke: 1.5px var(--ink); }
.hero-lead { margin: 32px 0 0; font-size: clamp(22px, 2.4vw, 30px); line-height: 1.2; letter-spacing: -0.02em; font-weight: 500; max-width: 620px; }
.hero-body { margin: 20px 0 0; max-width: 560px; }
.hero-ctas { margin-top: 36px; display: flex; gap: 12px; flex-wrap: wrap; }

.card-panel { border: 1px solid var(--line-12); border-radius: 24px; background: linear-gradient(180deg, #FFFFFF, var(--surface-2)); padding: 24px; box-shadow: var(--shadow); }
.panel-bar { display: flex; justify-content: space-between; align-items: center; font-family: var(--mono); font-size: 12px; color: var(--muted-1); }
.live { display: flex; align-items: center; gap: 6px; color: var(--accent); }
.live .dot { width: 6px; height: 6px; animation-duration: 1.4s; }
.impact-figure { margin-top: 22px; display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.impact-figure strong { font-size: 56px; font-weight: 700; letter-spacing: -0.04em; line-height: 1; }
.impact-figure span { font-family: var(--mono); font-size: 12px; color: var(--accent); }
.bars { margin-top: 24px; height: 170px; display: flex; align-items: flex-end; gap: 8px; border-bottom: 1px solid var(--line-12); position: relative; }
.grow-bar { flex: 1; border-radius: 6px 6px 2px 2px; transform-origin: bottom; animation: grow 1.1s var(--ease-snap) both; animation-delay: var(--d, 0s); background: rgba(22, 21, 26, 0.16); }
.grow-bar.hi { background: rgba(91, 63, 224, 0.55); }
.grow-bar.top { background: var(--accent); }
.bars svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.trend { animation: drawline 2.2s ease-out .9s both; }
.axis { display: flex; justify-content: space-between; margin-top: 10px; font-family: var(--mono); font-size: 11px; color: var(--muted-4); }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); border-top: 1px solid var(--line-12); border-bottom: 1px solid var(--line-12); }
.stat { padding: 36px 24px 32px 0; }
.stat-num { font-size: clamp(48px, 5.5vw, 76px); font-weight: 700; letter-spacing: -0.05em; line-height: 1; font-variant-numeric: tabular-nums; }
.stat-num span { color: var(--accent); }
.stat-label { margin-top: 12px; font-family: var(--mono); font-size: 13px; color: var(--muted-1); }

/* ---------- Marquee ---------- */
.marquee { padding: 44px 0; overflow: hidden; }
.marquee-track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee-track span { display: flex; align-items: center; gap: 36px; padding-right: 36px; font-size: clamp(36px, 5vw, 64px); font-weight: 300; letter-spacing: -0.03em; white-space: nowrap; color: var(--muted-3); }
.marquee-track i { color: var(--accent); font-size: 0.5em; font-style: normal; }

/* ---------- Services ---------- */
.services-intro { margin: 0; max-width: 420px; }
.services { margin-top: 56px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 12px; }
.service { background: var(--paper); color: var(--ink); padding: 36px 32px 40px; min-height: 300px; border-radius: 24px; border: 1px solid var(--line-12); display: flex; flex-direction: column; justify-content: space-between; gap: 40px; transition: background .35s, color .35s, border-color .35s; }
.service:hover { background: var(--accent); color: var(--paper); border-color: var(--accent); }
.service-top { display: flex; justify-content: space-between; align-items: center; font-family: var(--mono); font-size: 13px; }
.service-top span:last-child { font-size: 20px; }
.service h3 { margin: 0; font-size: 28px; line-height: 1.08; letter-spacing: -0.03em; font-weight: 600; }
.service p { margin: 14px 0 0; font-size: 16px; line-height: 1.55; opacity: 0.78; text-wrap: pretty; }

/* ---------- AI ---------- */
.ai-panel { position: relative; overflow: hidden; border-radius: 32px; border: 1px solid var(--line-12); background: radial-gradient(120% 80% at 100% 0%, rgba(91, 63, 224, 0.10), transparent 55%), var(--surface-2); padding: clamp(28px, 5vw, 64px); }
.ai-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: 56px; align-items: start; }
.ai-intro { margin: 24px 0 0; max-width: 520px; }
.pillars { margin-top: 40px; display: flex; flex-direction: column; border-top: 1px solid var(--line-12); }
.pillar { display: grid; grid-template-columns: 48px 1fr; gap: 16px; padding: 24px 0; border-bottom: 1px solid var(--line-12); }
.pillar > span { font-family: var(--mono); font-size: 13px; color: var(--accent); padding-top: 6px; }
.pillar h3 { margin: 0; font-size: 26px; letter-spacing: -0.03em; font-weight: 600; line-height: 1.1; }
.pillar p { margin: 10px 0 0; font-size: 16px; line-height: 1.55; color: var(--muted-1); text-wrap: pretty; }
.tags { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 6px; }
.tag { padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line-14); font-family: var(--mono); font-size: 12px; color: var(--muted-3); }
.ai-side { display: flex; flex-direction: column; gap: 16px; }
.chat { border: 1px solid var(--line-12); border-radius: 24px; background: var(--paper); padding: 22px; box-shadow: var(--shadow); }
.chat .panel-bar { padding-bottom: 16px; border-bottom: 1px solid var(--line-08); }
.chat-body { display: flex; flex-direction: column; gap: 12px; padding-top: 18px; }
.chat-step { animation: rise .6s var(--ease-reveal) both; animation-delay: var(--d, 0s); }
.bubble-user { align-self: flex-end; max-width: 82%; padding: 12px 16px; border-radius: 18px 18px 4px 18px; background: var(--ink); color: var(--paper); font-size: 15px; line-height: 1.45; }
.trace { font-family: var(--mono); font-size: 12px; color: var(--muted-1); display: flex; flex-direction: column; gap: 6px; }
.bubble-bot { max-width: 90%; padding: 14px 16px; border-radius: 18px 18px 18px 4px; background: rgba(22, 21, 26, 0.06); border: 1px solid var(--line-10); font-size: 15px; line-height: 1.5; }
.bubble-bot strong { color: var(--accent); font-weight: 600; }
.mini-bars { margin-top: 12px; height: 54px; display: flex; align-items: flex-end; gap: 5px; }
.mini-bars .grow-bar { border-radius: 3px; animation-duration: .8s; background: rgba(22, 21, 26, 0.18); }
.mini-bars .grow-bar.top { background: var(--accent); }
.automation-note { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 12px; background: var(--accent-soft); border: 1px dashed var(--accent-dash); font-family: var(--mono); font-size: 12px; color: var(--accent); }
.caption { font-family: var(--mono); font-size: 12px; color: var(--muted-4); padding: 0 4px; }
.proof { margin-top: 8px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr)); gap: 10px; }
.proof a { padding: 16px; border-radius: 16px; border: 1px solid var(--line-12); display: flex; flex-direction: column; gap: 6px; color: var(--ink); transition: border-color .3s, transform .3s; }
.proof a:hover { border-color: var(--accent); transform: translateY(-3px); color: var(--ink); }
.proof small { font-family: var(--mono); font-size: 11px; color: var(--accent); }
.proof strong { font-size: 18px; font-weight: 600; letter-spacing: -0.02em; }
.proof span { font-size: 13px; line-height: 1.4; color: var(--muted-1); }

/* ---------- Recent work ---------- */
.roles { margin-top: 48px; border-top: 1px solid var(--line-12); }
.role-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 12px 32px; align-items: baseline; padding: 28px 8px; border-bottom: 1px solid var(--line-12); color: var(--ink); transition: padding .3s, background .3s; }
.role-row:hover { padding-left: 24px; background: rgba(91, 63, 224, 0.05); color: var(--ink); }
.role-row .co { font-size: clamp(24px, 2.6vw, 34px); font-weight: 600; letter-spacing: -0.03em; }
.role-row .rl { font-size: 17px; color: var(--muted-3); }
.role-row .dt { font-family: var(--mono); font-size: 13px; color: var(--muted-1); justify-self: end; }

/* ---------- Contact ---------- */
.contact-panel { border-radius: 32px; background: var(--accent); color: var(--paper); padding: clamp(32px, 5vw, 72px); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 56px; }
.contact-panel a { color: var(--paper); }
.contact-copy { display: flex; flex-direction: column; justify-content: space-between; gap: 40px; }
.contact-copy .eyebrow { color: var(--paper); }
.contact-h2 { margin: 16px 0 0; font-size: clamp(52px, 7vw, 104px); line-height: 0.9; letter-spacing: -0.055em; font-weight: 700; }
.contact-copy p { margin: 24px 0 0; font-size: 18px; line-height: 1.55; max-width: 440px; }
.socials { display: flex; flex-wrap: wrap; gap: 8px; }
.socials a { padding: 10px 16px; border-radius: 999px; border: 1px solid var(--paper); font-weight: 500; font-size: 14px; white-space: nowrap; transition: background .2s, color .2s; }
.socials a:hover { background: var(--paper); color: var(--accent); }
.contact-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-content: start; }
.contact-form .field { padding: 18px 20px; border-radius: 16px; border: 1px solid rgba(244, 241, 234, 0.4); background: rgba(255, 255, 255, 0.12); color: var(--paper); font-size: 16px; outline: none; width: 100%; min-width: 0; transition: border-color .2s, background .2s; }
.contact-form .field:focus { border-color: var(--paper); background: rgba(255, 255, 255, 0.2); }
.contact-form .field::placeholder { color: rgba(244, 241, 234, 0.75); }
.contact-form select option { color: var(--ink); }
.contact-form textarea { grid-column: 1 / -1; resize: vertical; }
.contact-form button { grid-column: 1 / -1; padding: 20px; border-radius: 16px; border: none; background: var(--paper); color: var(--accent); font-size: 17px; font-weight: 600; cursor: pointer; transition: transform .2s, opacity .2s; }
.contact-form button:hover { transform: translateY(-2px); }
.contact-form.htmx-request button { opacity: .6; pointer-events: none; }
.contact-form .hp { position: absolute; left: -9999px; }
#form-response { grid-column: 1 / -1; }
#form-response:empty { display: none; }
.form-response { padding: 16px 20px; border-radius: 16px; font-size: 16px; line-height: 1.5; }
.form-response.error { background: rgba(22, 21, 26, 0.25); border: 1px solid rgba(244, 241, 234, 0.5); }
.form-response.success { padding: 0; animation: rise .6s both; }
.form-response.success strong { display: block; font-size: 48px; font-weight: 700; letter-spacing: -0.04em; line-height: 1.05; }
.form-response.success p { margin: 12px 0 0; font-size: 17px; }
.contact-form.sent > :not(#form-response) { display: none; }
@media (max-width: 520px) { .contact-form { grid-template-columns: 1fr; } }

/* ---------- Projects ---------- */
.filters { margin-top: 48px; display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 10px 18px; border-radius: 999px; border: 1px solid rgba(22, 21, 26, 0.2); background: transparent; color: var(--muted-3); font-family: var(--mono); font-size: 13px; cursor: pointer; white-space: nowrap; transition: all .2s; }
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip[aria-pressed="true"] { border-color: var(--accent); background: var(--accent); color: var(--paper); }
.projects { margin-top: 32px; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr)); gap: 16px; }
.project { display: flex; flex-direction: column; gap: 28px; padding: 28px; border-radius: 24px; border: 1px solid var(--line-12); background: var(--surface); color: var(--ink); min-height: 320px; transition: transform .35s var(--ease-snap), border-color .35s; animation: rise .7s var(--ease-reveal) both; animation-delay: var(--d, 0s); }
.project:hover { transform: translateY(-6px); border-color: var(--accent); color: var(--ink); }
.project[hidden] { display: none; }
.project.disabled { cursor: default; }
.project.disabled:hover { transform: none; border-color: var(--line-12); }
.project-top { display: flex; justify-content: space-between; align-items: start; gap: 12px; }
.logo-tile { width: 64px; height: 64px; border-radius: 18px; background: var(--ink); color: var(--paper); display: grid; place-items: center; font-weight: 800; font-size: 20px; letter-spacing: -0.04em; overflow: hidden; flex-shrink: 0; }
.logo-tile.img { background: var(--surface); border: 1px solid var(--line-12); padding: 8px; }
.logo-tile.img.bleed { padding: 0; border: none; }
.logo-tile img { width: 100%; height: 100%; object-fit: contain; display: block; }
.logo-tile.bleed img { object-fit: cover; }
.logo-tile.brand-accent { background: var(--accent); }
.status { display: flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-14); font-family: var(--mono); font-size: 12px; color: var(--muted-3); white-space: nowrap; }
.status i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.status[data-s="Launching"] i { background: #F2A65A; }
.status[data-s="Demo"] i { background: #8FB8FF; }
.status[data-s="Coming soon"] i { background: #8C8B80; }
.project-body { flex: 1; }
.project h3 { margin: 0; font-size: 32px; letter-spacing: -0.035em; font-weight: 650; line-height: 1; }
.project p { margin: 14px 0 0; font-size: 16px; line-height: 1.55; color: var(--muted-1); text-wrap: pretty; }
.project-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 20px; border-top: 1px solid var(--line-10); font-family: var(--mono); font-size: 13px; }
.project-foot .host { color: var(--muted-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.project-foot .cta { color: var(--accent); white-space: nowrap; flex-shrink: 0; }
.project.disabled .cta { color: var(--muted-4); }

.courses { margin-top: 48px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); gap: 16px; }
.course { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; gap: 48px; padding: clamp(28px, 4vw, 48px); border-radius: 28px; background: var(--ink); color: var(--paper); min-height: 400px; transition: transform .35s var(--ease-snap); }
.course:hover { transform: translateY(-6px); color: var(--paper); }
.course-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-family: var(--mono); font-size: 13px; white-space: nowrap; }
.course-top span:last-child { padding: 6px 12px; border-radius: 999px; background: var(--paper); color: var(--accent); }
.course-big { font-size: clamp(80px, 10vw, 140px); font-weight: 700; letter-spacing: -0.06em; line-height: 0.85; }
.course h3 { margin: 20px 0 0; font-size: 34px; letter-spacing: -0.035em; font-weight: 650; line-height: 1.05; }
.course p { margin: 14px 0 0; font-size: 16px; line-height: 1.55; max-width: 480px; color: var(--on-ink-muted); }
.course-cta { margin-top: 28px; display: inline-flex; padding: 14px 22px; border-radius: 999px; background: var(--paper); color: var(--ink); font-weight: 600; font-size: 15px; }

/* ---------- Experience ---------- */
.timeline { margin-top: 72px; }
.xp { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 16px 48px; padding: 36px 0; border-top: 1px solid var(--line-12); }
.xp-dates { font-family: var(--mono); font-size: 13px; color: var(--accent); }
.xp-co { margin: 12px 0 0; font-size: clamp(28px, 3vw, 40px); font-weight: 650; letter-spacing: -0.035em; line-height: 1; }
.xp-role { margin-top: 8px; font-size: 17px; color: var(--muted-3); }
.xp ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.xp li { display: grid; grid-template-columns: 20px 1fr; font-size: 16px; line-height: 1.55; color: var(--muted-2); text-wrap: pretty; }
.xp li::before { content: "—"; color: var(--accent); }
.early { margin-top: 80px; padding: clamp(28px, 4vw, 48px); border-radius: 28px; background: var(--surface); border: 1px solid var(--line-10); }
.early h2 { margin: 12px 0 0; font-size: clamp(32px, 4vw, 52px); letter-spacing: -0.04em; font-weight: 700; line-height: 1; }
.toggle { padding: 12px 20px; border-radius: 999px; border: 1px solid var(--line-22); background: transparent; color: var(--ink); font-family: var(--mono); font-size: 13px; cursor: pointer; white-space: nowrap; }
.toggle:hover { border-color: var(--accent); color: var(--accent); }
.early-grid { margin-top: 32px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 12px; }
.early-card { padding: 22px; border-radius: 18px; background: var(--paper); border: 1px solid var(--line-08); }
.early-card .d { font-family: var(--mono); font-size: 12px; color: var(--muted-1); }
.early-card h3 { margin: 10px 0 0; font-size: 21px; font-weight: 600; letter-spacing: -0.02em; }
.early-card .r { margin-top: 4px; font-size: 15px; color: var(--muted-3); }
.early-card ul { margin: 14px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.early-card li { font-size: 14px; line-height: 1.5; color: var(--muted-1); }
.early-card li::before { content: "— "; }
.early:not(.open) .early-card ul { display: none; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line-08); }
.site-footer .wrap { padding-top: 40px; padding-bottom: 40px; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; font-family: var(--mono); font-size: 13px; color: var(--muted-1); }
.site-footer a { color: var(--muted-1); }
.site-footer a:hover { color: var(--accent); }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .js [data-reveal] { opacity: 1; }
    .marquee-track { transform: none; }
}

/* ---------- FAQ ---------- */
.faq { margin-top: 48px; border-top: 1px solid var(--line-12); }
.faq-item { border-bottom: 1px solid var(--line-12); }
.faq-item summary { display: grid; grid-template-columns: 48px 1fr 28px; gap: 16px; align-items: baseline; padding: 28px 8px; cursor: pointer; list-style: none; transition: padding .3s, background .3s; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { padding-left: 24px; background: rgba(91, 63, 224, 0.05); }
.faq-item summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 8px; }
.faq-n { font-family: var(--mono); font-size: 13px; color: var(--accent); }
.faq-item h3 { margin: 0; font-size: clamp(21px, 2.2vw, 28px); font-weight: 600; letter-spacing: -0.025em; line-height: 1.15; }
.faq-icon { position: relative; width: 18px; height: 18px; align-self: center; justify-self: end; }
.faq-icon::before, .faq-icon::after { content: ""; position: absolute; left: 0; top: 8px; width: 18px; height: 2px; background: var(--ink); transition: transform .3s var(--ease-snap); }
.faq-icon::after { transform: rotate(90deg); }
.faq-item[open] .faq-icon::after { transform: rotate(0); }
.faq-item[open] summary .faq-n, .faq-item[open] summary h3 { color: var(--accent); }
.faq-item p { margin: 0; padding: 0 8px 32px 72px; max-width: 860px; font-size: 17px; line-height: 1.6; color: var(--muted-1); text-wrap: pretty; }
@media (max-width: 600px) {
    .faq-item summary { grid-template-columns: 1fr 24px; }
    .faq-n { display: none; }
    .faq-item p { padding-left: 8px; }
}
