/* dorisjovovic.com
   Brand: purple #5D44BA on lavender #F3F2F8 (LinkedIn banner). Hanken Grotesk light plus bold, IBM Plex Mono for labels.
   Same visual language as the AI Ops Playbook: white paper, dark slabs with contour lines. */

:root {
  --paper: #ffffff;
  --paper-2: #f3f2f8;
  --ink: #16132a;
  --ink-soft: #57536f;
  --rule: #dddae9;
  --slab: #13111f;
  --slab-2: #24203a;
  --slab-fg: #f1eefb;
  --slab-mute: #aaa5c6;
  --accent: #5d44ba;
  --accent-ink: #ffffff;
  --accent-soft: #ebe7f9;
  --accent-slab: #b0a0f5;
  --topo: #7a64d6;
  --shadow: 0 1px 0 var(--rule), 0 24px 48px -32px rgba(22, 19, 42, .35);
  --display: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
  --max: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0f0d19; --paper-2: #0a0912; --ink: #ece9f8; --ink-soft: #a7a2c3; --rule: #2a2642;
    --slab: #1a1630; --slab-2: #2a2549; --slab-fg: #f1eefb; --slab-mute: #aaa5c6;
    --accent: #a593f4; --accent-ink: #13111f; --accent-soft: #241e44; --accent-slab: #b0a0f5; --topo: #7c67d8;
    --shadow: 0 1px 0 var(--rule), 0 24px 48px -32px rgba(0, 0, 0, .7);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0f0d19; --paper-2: #0a0912; --ink: #ece9f8; --ink-soft: #a7a2c3; --rule: #2a2642;
  --slab: #1a1630; --slab-2: #2a2549; --slab-fg: #f1eefb; --slab-mute: #aaa5c6;
  --accent: #a593f4; --accent-ink: #13111f; --accent-soft: #241e44; --accent-slab: #b0a0f5; --topo: #7c67d8;
  --shadow: 0 1px 0 var(--rule), 0 24px 48px -32px rgba(0, 0, 0, .7);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper-2);
  color: var(--ink);
  font-family: var(--display);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: var(--accent); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--accent); color: var(--accent-ink); }
h1, h2, h3, h4 { font-family: var(--display); margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--accent); color: var(--accent-ink); padding: 10px 14px; font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }

.wrap { max-width: var(--max); margin: 0 auto; padding-inline: var(--gutter); }
.mono, .tag { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.tag { color: var(--ink-soft); }
.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; }

/* ---------- header ---------- */
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper-2) 85%, transparent);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
  padding-top: env(safe-area-inset-top, 0px);
}
.site-head.scrolled { border-bottom-color: var(--rule); }
.head-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 800; letter-spacing: -.01em; font-size: 17px; }
.logo-mark { width: 30px; height: 30px; background: var(--slab); color: var(--slab-fg); display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; letter-spacing: .02em; }
.logo-mark span { color: var(--accent-slab); }
.logo b { color: var(--accent); }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 500; padding: 8px 12px; border-radius: 999px; transition: background .15s, color .15s; }
.nav a:hover { background: var(--accent-soft); color: var(--accent); }
.nav a[aria-current="true"] { color: var(--accent); }
.nav .nav-cta { background: var(--ink); color: var(--paper); margin-left: 6px; }
.nav .nav-cta:hover { background: var(--accent); color: var(--accent-ink); }
.icon-btn {
  width: 40px; height: 40px; display: inline-grid; place-items: center; flex: none;
  border: 1px solid var(--rule); background: var(--paper); color: var(--ink); border-radius: 999px; cursor: pointer;
  transition: border-color .15s, color .15s;
}
.icon-btn:hover { border-color: var(--accent); color: var(--accent); }
.icon-btn svg { width: 18px; height: 18px; }
.theme-btn .moon { display: none; }
:root[data-theme="dark"] .theme-btn .sun { display: none; }
:root[data-theme="dark"] .theme-btn .moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-btn .sun { display: none; }
  :root:not([data-theme="light"]) .theme-btn .moon { display: block; }
}
.head-tools { display: flex; align-items: center; gap: 8px; }
.menu-btn { display: none; }

@media (max-width: 900px) {
  .menu-btn { display: inline-grid; }
  .nav {
    position: fixed; inset: calc(64px + env(safe-area-inset-top, 0px)) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--rule);
    padding: 8px var(--gutter) 20px; box-shadow: var(--shadow);
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .18s, transform .18s, visibility .18s;
  }
  .nav.open { transform: none; opacity: 1; visibility: visible; }
  .nav a { padding: 14px 4px; border-radius: 0; border-bottom: 1px solid var(--rule); font-size: 17px; }
  .nav a:hover { background: transparent; }
  .nav .nav-cta { margin: 14px 0 0; text-align: center; border-radius: 999px; border: 0; }
}

/* ---------- buttons ---------- */
.btns { display: flex; flex-wrap: wrap; gap: 10px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 46px;
  padding: 12px 20px; border-radius: 999px; font-weight: 700; font-size: 15px; text-decoration: none;
  border: 1px solid var(--ink); color: var(--ink); background: transparent;
  transition: background .15s, color .15s, border-color .15s, transform .15s;
}
.btn:hover { transform: translateY(-1px); border-color: var(--accent); color: var(--accent); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.btn .arr { transition: transform .15s; }
.btn:hover .arr { transform: translateX(3px); }

/* ---------- hero ---------- */
.hero { padding-block: clamp(28px, 6vw, 64px) clamp(40px, 6vw, 72px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 48px); align-items: stretch; }
.hero-copy { display: flex; flex-direction: column; gap: 22px; justify-content: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: #2fb67c; box-shadow: 0 0 0 4px color-mix(in srgb, #2fb67c 22%, transparent); }
.hero h1 { font-weight: 300; font-size: clamp(54px, 9.2vw, 128px); line-height: .86; letter-spacing: -.05em; }
.hero h1 b { font-weight: 800; display: block; }
.hero .role { font-size: clamp(20px, 2.3vw, 27px); font-weight: 700; letter-spacing: -.015em; line-height: 1.2; max-width: 24ch; }
.hero .role em { font-style: normal; color: var(--accent); }
.hero .lede { font-size: clamp(16px, 1.4vw, 18px); color: var(--ink-soft); max-width: 54ch; }

.slab {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--slab); color: var(--slab-fg);
}
.slab > canvas.topo { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.hero-card { padding: clamp(20px, 3vw, 32px); display: flex; flex-direction: column; gap: 20px; min-height: 440px; box-shadow: var(--shadow); }
.hero-card .tag { color: var(--slab-mute); }
.now { list-style: none; display: grid; gap: 0; background: color-mix(in srgb, var(--slab) 78%, transparent); border: 1px solid var(--slab-2); }
.now li { padding: 14px 16px; display: grid; gap: 2px; }
.now li + li { border-top: 1px solid var(--slab-2); }
.now b { font-size: 15px; color: var(--slab-fg); }
.now span { font-size: 13px; color: var(--slab-mute); }
.hero-quote { margin-top: auto; font-weight: 300; font-size: clamp(26px, 2.8vw, 36px); line-height: 1.05; letter-spacing: -.03em; max-width: 15ch; }
.hero-quote b { font-weight: 800; }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-card { min-height: 0; }
  .hero-quote { margin-top: 8px; }
}

/* ---------- stats ---------- */
.stats { border-block: 1px solid var(--rule); background: var(--paper); }
.stats-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.stat { padding: clamp(20px, 2.6vw, 30px) clamp(12px, 2vw, 24px); display: grid; gap: 6px; align-content: start; }
.stat + .stat { border-left: 1px solid var(--rule); }
.stat .n { font-weight: 300; font-size: clamp(32px, 3.6vw, 48px); line-height: 1; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.stat .n b { font-weight: 800; color: var(--accent); }
.stat p { font-size: 13.5px; color: var(--ink-soft); line-height: 1.45; }
.stats-note { padding: 12px 0 14px; font-size: 12px; color: var(--ink-soft); border-top: 1px solid var(--rule); font-family: var(--mono); letter-spacing: .04em; }
@media (max-width: 900px) {
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat + .stat { border-left: 0; }
  .stat { border-bottom: 1px solid var(--rule); }
  .stat:nth-child(even) { border-left: 1px solid var(--rule); }
  .stat:last-child { grid-column: 1 / -1; border-left: 0; border-bottom: 0; }
}

/* ---------- sections ---------- */
.section { padding-block: clamp(56px, 8vw, 112px); }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px 48px; align-items: end; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head .num { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; color: var(--accent); display: block; margin-bottom: 14px; }
.section-head h2 { font-weight: 300; font-size: clamp(38px, 5.4vw, 72px); line-height: .95; letter-spacing: -.04em; }
.section-head h2 b { font-weight: 800; }
.section-head p { color: var(--ink-soft); font-size: 16px; max-width: 52ch; }
@media (max-width: 760px) { .section-head { grid-template-columns: 1fr; } }

/* ---------- work ---------- */
.work { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2vw, 24px); }
.card {
  background: var(--paper); border: 1px solid var(--rule); box-shadow: var(--shadow);
  display: flex; flex-direction: column; min-width: 0;
}
.card-body { padding: clamp(20px, 2.6vw, 28px); display: flex; flex-direction: column; gap: 14px; flex: 1; }
.card-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 12px; }
.status { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.status.live { color: #1f9a66; }
.status.build { color: #b7791f; }
.status.build::before { background: transparent; border: 1.5px dashed currentColor; }
.status.done::before { border-radius: 1px; }
:root[data-theme="dark"] .status.live { color: #4fd39a; }
:root[data-theme="dark"] .status.build { color: #e6b35a; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .status.live { color: #4fd39a; }
  :root:not([data-theme="light"]) .status.build { color: #e6b35a; }
}
.card h3 { font-size: clamp(22px, 2.2vw, 28px); font-weight: 800; letter-spacing: -.025em; line-height: 1.1; }
.card .sum { color: var(--ink-soft); font-size: 15px; }
.psr { display: grid; gap: 0; border-top: 1px solid var(--rule); }
.psr div { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--rule); font-size: 14px; }
.psr dt { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); padding-top: 3px; }
.psr dd { margin: 0; color: var(--ink); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 6px; }
.chip { font-family: var(--mono); font-size: 11.5px; padding: 4px 10px; border: 1px solid var(--rule); border-radius: 999px; color: var(--ink-soft); background: var(--paper-2); }
.card-link { font-weight: 700; font-size: 15px; text-decoration: none; display: inline-flex; gap: 6px; align-items: center; }
.card-link .arr { transition: transform .15s; }
.card-link:hover .arr { transform: translateX(3px); }

/* mock visuals: small diagrams that show the shape of each piece of work */
.viz { position: relative; overflow: hidden; isolation: isolate; background: var(--slab); color: var(--slab-fg); padding: 22px; min-height: 210px; display: flex; flex-direction: column; justify-content: flex-end; gap: 12px; }
.viz > canvas.topo { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; opacity: .7; }
.viz .tag { color: var(--slab-mute); }
.viz-label { position: absolute; top: 18px; left: 22px; right: 22px; display: flex; justify-content: space-between; gap: 10px; }

.chain { list-style: none; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; counter-reset: c; }
.chain li { background: var(--slab-2); padding: 10px 6px 8px; font-size: 10.5px; line-height: 1.2; text-align: center; color: var(--slab-fg); position: relative; }
.chain li::after { content: ""; display: block; width: 10px; height: 10px; margin: 8px auto 0; border-radius: 50%; border: 1.5px solid var(--accent-slab); }
.chain li.chk::after { background: var(--accent-slab); }

.bars { display: grid; gap: 10px; }
.bar-row { display: grid; grid-template-columns: 86px minmax(0, 1fr) auto; gap: 10px; align-items: center; font-size: 12px; color: var(--slab-mute); }
.bar-row i { display: block; height: 14px; background: var(--slab-2); position: relative; }
.bar-row i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w, 50%); background: var(--accent-slab); transform-origin: left; }
.bar-row.old i::after { background: var(--slab-mute); opacity: .55; }
.bar-row b { color: var(--slab-fg); font-family: var(--mono); font-size: 12px; font-weight: 500; }

.funnel { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 14px; align-items: end; }
.stages { display: flex; flex-wrap: wrap; gap: 3px; align-content: flex-end; }
.stages i { width: 12px; height: 12px; background: var(--slab-mute); opacity: .5; }
.stages.new i { width: auto; height: auto; padding: 5px 8px; opacity: 1; background: var(--accent-slab); color: var(--slab); font-style: normal; font-size: 10.5px; font-weight: 700; }
.funnel .to { font-family: var(--mono); color: var(--accent-slab); font-size: 18px; padding-bottom: 4px; }
.funnel small { display: block; margin-top: 8px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--slab-mute); }

.phases { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--slab-2); border: 1px solid var(--slab-2); }
.phases div { background: color-mix(in srgb, var(--slab) 88%, transparent); padding: 10px; display: grid; gap: 2px; }
.phases b { font-size: 12.5px; }
.phases span { font-size: 11px; color: var(--slab-mute); }
.phases .on { background: var(--accent); }
.phases .on span { color: var(--slab-fg); }

.cover-viz { min-height: 100%; justify-content: space-between; }
.cover-viz h4 { font-weight: 300; font-size: clamp(44px, 5.4vw, 76px); line-height: .86; letter-spacing: -.045em; }
.cover-viz h4 b { font-weight: 800; }
.card.feature { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); }
.card.feature .viz { min-height: 360px; }
.card.feature.flip .viz { order: 2; min-height: 100%; }

@media (max-width: 860px) {
  .work { grid-template-columns: 1fr; }
  .card.feature { grid-template-columns: 1fr; }
  .card.feature .viz { min-height: 280px; }
  .card.feature.flip .viz { order: 0; min-height: 210px; }
}
@media (max-width: 520px) {
  .chain { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .psr div { grid-template-columns: 1fr; gap: 2px; }
  .phases { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bar-row { grid-template-columns: 70px minmax(0, 1fr) auto; }
}

/* ---------- AI section ---------- */
.ai { background: var(--slab); color: var(--slab-fg); position: relative; overflow: hidden; isolation: isolate; }
.ai > canvas.topo { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; opacity: .55; }
.ai .section-head p { color: var(--slab-mute); }
.ai .section-head .num { color: var(--accent-slab); }
.loop { list-style: none; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0; border: 1px solid var(--slab-2); margin-bottom: clamp(28px, 4vw, 44px); background: color-mix(in srgb, var(--slab) 80%, transparent); }
.loop li { padding: 18px 16px; display: grid; gap: 6px; align-content: start; position: relative; }
.loop li + li { border-left: 1px solid var(--slab-2); }
.loop .k { font-family: var(--mono); font-size: 11px; color: var(--accent-slab); letter-spacing: .08em; }
.loop b { font-size: 16px; letter-spacing: -.01em; }
.loop p { font-size: 13px; color: var(--slab-mute); line-height: 1.45; }
.loop li.hl { background: var(--accent); }
.loop li.hl .k, .loop li.hl p { color: var(--slab-fg); }
@media (max-width: 960px) {
  .loop { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .loop li:nth-child(4) { border-left: 0; }
  .loop li:nth-child(n+4) { border-top: 1px solid var(--slab-2); }
}
@media (max-width: 560px) {
  .loop { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .loop li:nth-child(odd) { border-left: 0; }
  .loop li:nth-child(4) { border-left: 1px solid var(--slab-2); }
  .loop li:nth-child(n+3) { border-top: 1px solid var(--slab-2); }
}
.systems { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--slab-2); border: 1px solid var(--slab-2); }
.sys { background: color-mix(in srgb, var(--slab) 92%, transparent); padding: clamp(18px, 2.4vw, 26px); display: grid; gap: 10px; align-content: start; }
.sys .row { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; flex-wrap: wrap; }
.sys h3 { font-size: 19px; font-weight: 800; letter-spacing: -.015em; }
.sys p { color: var(--slab-mute); font-size: 14.5px; }
.sys .where { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-slab); }
.principles { margin-top: clamp(28px, 4vw, 44px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.principles > div { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 12px; }
.principles .n { font-weight: 300; font-size: 30px; line-height: 1; color: var(--accent-slab); letter-spacing: -.03em; }
.principles b { display: block; font-size: 16px; margin-bottom: 4px; }
.principles p { font-size: 14px; color: var(--slab-mute); }
.ai-foot { margin-top: clamp(28px, 4vw, 44px); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; border-top: 1px solid var(--slab-2); padding-top: 24px; }
.ai-foot p { color: var(--slab-mute); font-size: 14px; max-width: 60ch; }
.ai .btn { border-color: var(--slab-fg); color: var(--slab-fg); }
.ai .btn:hover { border-color: var(--accent-slab); color: var(--accent-slab); }
.ai .btn-primary { background: var(--slab-fg); color: var(--slab); border-color: var(--slab-fg); }
.ai .btn-primary:hover { background: var(--accent-slab); border-color: var(--accent-slab); color: var(--slab); }
@media (max-width: 860px) { .systems, .principles { grid-template-columns: 1fr; } }

/* ---------- experience ---------- */
.xp { list-style: none; display: grid; border-top: 1px solid var(--ink); }
.xp > li { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); gap: 12px 40px; padding: clamp(20px, 3vw, 32px) 0; border-bottom: 1px solid var(--rule); }
.xp .when { font-family: var(--mono); font-size: 12px; letter-spacing: .04em; color: var(--ink-soft); display: grid; gap: 4px; align-content: start; }
.xp .when b { color: var(--accent); font-weight: 500; }
.xp h3 { font-size: clamp(19px, 1.8vw, 22px); font-weight: 800; letter-spacing: -.015em; line-height: 1.2; }
.xp h3 span { font-weight: 400; color: var(--ink-soft); }
.xp .about { color: var(--ink-soft); font-size: 14.5px; margin-top: 6px; max-width: 70ch; }
.xp ul { list-style: none; display: grid; gap: 8px; margin-top: 14px; }
.xp ul li { position: relative; padding-left: 20px; font-size: 15px; max-width: 72ch; }
.xp ul li::before { content: ""; position: absolute; left: 0; top: .62em; width: 8px; height: 8px; border: 1.5px solid var(--accent); border-radius: 50%; }
.xp ul li b { font-weight: 700; }
.xp .promo { display: inline-block; margin-top: 8px; font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; background: var(--accent-soft); color: var(--accent); padding: 3px 8px; }
.earlier { margin-top: 0; }
.earlier summary { cursor: pointer; font-weight: 700; padding: 20px 0; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; border-bottom: 1px solid var(--rule); }
.earlier summary::-webkit-details-marker { display: none; }
.earlier summary .plus { font-family: var(--mono); color: var(--accent); font-size: 20px; transition: transform .2s; }
.earlier[open] summary .plus { transform: rotate(45deg); }
.earlier .xp { border-top: 0; }
@media (max-width: 700px) { .xp > li { grid-template-columns: 1fr; } }

/* ---------- capabilities ---------- */
.caps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.cap { background: var(--paper); padding: clamp(20px, 2.6vw, 28px); display: grid; gap: 10px; align-content: start; transition: background .2s; }
.cap:hover { background: var(--accent-soft); }
.cap .n { font-family: var(--mono); font-size: 12px; color: var(--accent); }
.cap h3 { font-size: 19px; font-weight: 800; letter-spacing: -.015em; }
.cap p { color: var(--ink-soft); font-size: 14.5px; }
@media (max-width: 900px) { .caps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .caps { grid-template-columns: 1fr; } }

.tools { margin-top: clamp(28px, 4vw, 44px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.tools h3 { font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 12px; padding-bottom: 8px; border-bottom: 1px solid var(--ink); }
.tools .chip { background: var(--paper); font-size: 12.5px; color: var(--ink); }
.tools .chips { margin: 0; padding: 0; }
@media (max-width: 760px) { .tools { grid-template-columns: 1fr; } }

.edu { margin-top: clamp(40px, 6vw, 72px); display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 48px); }
.edu h3.label { font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 4px; padding-bottom: 8px; border-bottom: 1px solid var(--ink); }
.edu ul { list-style: none; }
.edu li { padding: 14px 0; border-bottom: 1px solid var(--rule); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; }
.edu li b { font-size: 15.5px; }
.edu li span { color: var(--ink-soft); font-size: 14px; grid-column: 1; }
.edu li time { font-family: var(--mono); font-size: 12px; color: var(--ink-soft); grid-row: 1; grid-column: 2; white-space: nowrap; }
.langs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.langs li { grid-template-columns: 1fr; }
@media (max-width: 760px) { .edu { grid-template-columns: 1fr; } }

/* ---------- contact ---------- */
.contact { padding-block: clamp(24px, 4vw, 40px) clamp(48px, 6vw, 80px); }
.contact-card { padding: clamp(28px, 5vw, 64px); display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); box-shadow: var(--shadow); }
.contact-card h2 { font-weight: 300; font-size: clamp(44px, 6.6vw, 96px); line-height: .9; letter-spacing: -.045em; }
.contact-card h2 b { font-weight: 800; }
.contact-card .lede { color: var(--slab-mute); font-size: 17px; max-width: 44ch; margin-top: 18px; }
.contact-list { list-style: none; display: grid; align-content: end; }
.contact-list li { display: grid; gap: 2px; padding: 14px 0; border-bottom: 1px solid var(--slab-2); }
.contact-list .tag { color: var(--slab-mute); }
.contact-list a, .contact-list span.v { color: var(--slab-fg); font-size: 17px; font-weight: 700; text-decoration: none; overflow-wrap: anywhere; }
.contact-list a:hover { color: var(--accent-slab); }
.copy-btn { font: inherit; font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; background: transparent; border: 1px solid var(--slab-mute); color: var(--slab-mute); border-radius: 999px; padding: 3px 10px; cursor: pointer; margin-left: 10px; vertical-align: middle; }
.copy-btn:hover { border-color: var(--accent-slab); color: var(--accent-slab); }
@media (max-width: 760px) { .contact-card { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
.site-foot { border-top: 1px solid var(--rule); padding-block: 24px calc(24px + env(safe-area-inset-bottom, 0px)); font-size: 13px; color: var(--ink-soft); }
.foot-in { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px 24px; }
.site-foot a { color: var(--ink-soft); }
.site-foot a:hover { color: var(--accent); }

/* ---------- reveal on scroll (only when JS runs) ---------- */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
.js .bar-row i::after { transform: scaleX(0); transition: transform 1s cubic-bezier(.2, .7, .2, 1) .2s; }
.js .in .bar-row i::after { transform: scaleX(1); }

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

@media print {
  .site-head, .theme-btn, .menu-btn, canvas, .skip { display: none !important; }
  body { background: #fff; color: #000; }
  .slab, .ai, .viz { background: #fff !important; color: #000 !important; }
}
