/* jimmy-rose.com: resume-style and text-first (direction changed 9 Nov 2026: the tile
   layout read as "cheesy, AI-made"). Plain type, thin rules, small radii, no gradients,
   no shadows. Blue accent, matching the resume. */
:root {
  --bg: #fcfcfa;
  --soft: #f4f4f0;
  --card: #ffffff;
  --ink: #16181d;
  --text: #2a2e35;
  --muted: #646b76;
  --line: #e2e2dc;
  --blue: #1f5fbf;
  --blue-ink: #17468d;
  --blue-soft: #eef3fb;
  --blue-line: #cfdcf2;
  --radius: 6px;
  --sans: "Inter", "Avenir Next", system-ui, -apple-system, sans-serif;
  --serif: "Source Serif 4", Charter, Georgia, serif;
  --max: 900px;
  --gutter: clamp(16px, 4vw, 32px);
}
@media (prefers-color-scheme: dark) {
:root:not([data-theme="light"]):not([data-theme="light"]) {
    --bg: #111317; --soft: #171a1f; --card: #1a1d23; --ink: #f1f2f4; --text: #d9dce1;
    --muted: #9aa1ab; --line: #2b2f37; --blue: #7fb0ff; --blue-ink: #a9c9ff; --blue-soft: #16202f; --blue-line: #263a5a;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 64px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16.5px/1.6 var(--sans); overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: var(--blue); text-underline-offset: 2px; }
a:hover { color: var(--ink); }
h1, h2, h3 { color: var(--ink); line-height: 1.2; margin: 0 0 .4em; font-weight: 600; letter-spacing: -.01em; }
h1 { font: 600 clamp(2rem, 5vw, 2.8rem)/1.1 var(--serif); letter-spacing: -.015em; }
h2 { font-size: 1.35rem; }
h3 { font-size: 1.02rem; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.wrap { width: min(var(--max), 100%); margin: 0 auto; padding: 0 var(--gutter); }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: var(--bg); position: sticky; top: 0; z-index: 10; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 56px; }
.brand { font: 600 1.05rem var(--serif); color: var(--ink); text-decoration: none; }
.brand em { font-style: normal; }
.nav { display: flex; gap: 20px; align-items: center; font-size: .92rem; }
.nav a { color: var(--muted); text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav .lock-link { border-left: 1px solid var(--line); padding-left: 18px; }
.nav-toggle { display: none; font: 500 .9rem var(--sans); background: none; border: 1px solid var(--line); color: var(--ink); border-radius: var(--radius); padding: 5px 12px; }
@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; }
  .nav { display: none; position: absolute; top: 56px; left: 0; right: 0; flex-direction: column; align-items: flex-start; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 14px; }
  .nav.open { display: flex; }
  .nav a { padding: 8px 0; }
  .nav .lock-link { border: 0; padding-left: 0; }
}

/* Sections */
main > section { padding: clamp(28px, 5vw, 44px) 0; }
main > section + section { border-top: 1px solid var(--line); }
section.tight { padding: 22px 0; }
section.soft, section.dark { background: transparent; }
.eyebrow { font: 600 .74rem var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.section-label { display: grid; grid-template-columns: 170px 1fr; gap: 28px; }
.section-label > .eyebrow { margin-top: 4px; }
.section-label > * { min-width: 0; }
@media (max-width: 760px) { .section-label { grid-template-columns: 1fr; gap: 4px; } }
.lede { font-size: 1.08rem; color: var(--muted); max-width: 62ch; }

/* Resume header (home) */
.intro .who { display: grid; grid-template-columns: 112px 1fr; gap: 24px; align-items: start; }
.intro .who img { width: 112px; height: 112px; object-fit: cover; border-radius: 50%; }
@media (max-width: 560px) { .intro .who { grid-template-columns: 1fr; } .intro .who img { width: 88px; height: 88px; } }
.intro h1 { margin-bottom: .15em; }
.intro .roles { font-weight: 600; color: var(--ink); margin-bottom: .3em; }
.intro .meta { color: var(--muted); font-size: .95rem; }
.avatar { width: 88px; height: 88px; border-radius: 50%; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }

/* Buttons */
.btns { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.btn { display: inline-flex; align-items: center; gap: 6px; font: 500 .92rem var(--sans); padding: 8px 16px; border-radius: var(--radius); border: 1px solid var(--line); color: var(--ink); background: var(--card); text-decoration: none; cursor: pointer; }
.btn:hover { border-color: var(--ink); color: var(--ink); }
.btn.primary { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn.primary:hover { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn[disabled] { opacity: .5; cursor: default; }

/* "Good fit for" */
.fit { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px 28px; }
.fit h3 { margin-bottom: .2em; }
.fit p { color: var(--muted); font-size: .93rem; margin: 0; }

/* Skills: one block per line of work, short lists inside */
.skill-jump { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .9rem; margin: 0 0 18px; padding: 0; list-style: none; }
.skill-jump a { color: var(--muted); }
.skill-jump a:hover { color: var(--blue); }
.skills { display: grid; gap: 22px; }
.skills .area { scroll-margin-top: 80px; }
.skills .area + .area { border-top: 1px dashed var(--line); padding-top: 20px; }
.skills h3 { margin: 0 0 10px; }
.skills .cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px 28px; }
.skills h4 { font: 600 .72rem var(--sans); letter-spacing: .07em; text-transform: uppercase; color: var(--muted); margin: 0 0 5px; }
.skills ul { margin: 0; padding-left: 1.05em; font-size: .93rem; }
.skills li { margin-bottom: .18em; }

/* Carousel: a swipeable strip of photos with arrows */
.carousel .track { position: relative; display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; overscroll-behavior-x: contain; }
.carousel .track::-webkit-scrollbar { display: none; }
.carousel .track:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; }
.carousel figure { flex: 0 0 auto; display: grid; margin: 0; scroll-snap-align: start; }
.carousel img { height: 300px; width: auto; max-width: 80vw; object-fit: cover; border-radius: var(--radius); background: var(--soft); }
.carousel figcaption { width: 0; min-width: 100%; font-size: .86rem; color: var(--text); margin-top: 6px; line-height: 1.4; }
.carousel .controls { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.carousel .controls button { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: var(--card); color: var(--ink); cursor: pointer; font: 500 1.05rem/1 var(--sans); }
.carousel .controls button:hover:not(:disabled) { border-color: var(--ink); }
.carousel .controls button:disabled { opacity: .35; cursor: default; }
.carousel .count { font-size: .85rem; color: var(--muted); margin-left: 4px; }
.carousel.phones img { height: 420px; border: 1px solid var(--line); }
@media (max-width: 560px) { .carousel img { height: 230px; } .carousel.phones img { height: 340px; } }
.group-intro { margin: -4px 0 12px; font-size: .93rem; }
.app + .app { margin-top: 22px; padding-top: 18px; border-top: 1px dashed var(--line); }
.app > p { margin: 6px 0 12px; font-size: .95rem; max-width: 64ch; }
.app-head { display: flex; align-items: center; gap: 12px; }
.app-head img { width: 44px; height: 44px; border-radius: 22.37%; border: 1px solid var(--line); }
.app-head h4 { margin: 0; font-size: 1rem; }
.app-head p { margin: 0; font-size: .85rem; color: var(--muted); }
.proof.one { grid-template-columns: minmax(0, 360px); }
@media (prefers-reduced-motion: reduce) { .carousel .track { scroll-behavior: auto; } }

/* Experience entries */
.job { padding: 4px 0 18px; }
.job + .job { border-top: 1px dashed var(--line); padding-top: 18px; }
.job header { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: baseline; }
.job h3 { margin: 0; }
.job .when { color: var(--muted); font-size: .9rem; white-space: nowrap; }
.job .org { color: var(--muted); font-size: .93rem; margin: 2px 0 8px; }
.job ul { margin: 0; padding-left: 1.1em; }
.job li { margin-bottom: .3em; }
.job .more { font-size: .9rem; margin: 6px 0 0; }

/* Proof of work */
.proof { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px 16px; }
@media (max-width: 760px) { .proof { grid-template-columns: repeat(2, 1fr); } }
.proof figure img, .proof .ph { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.proof figcaption { font-size: .86rem; color: var(--text); margin-top: 6px; line-height: 1.4; }
.proof figcaption a { color: inherit; }
.proof-group + .proof-group { margin-top: 26px; }
.proof-group h3 { margin-bottom: 10px; }
.proof-group h3 .more-link { font: 500 .85rem var(--sans); color: var(--muted); margin-left: 8px; }
.proof-group h3 .more-link:hover { color: var(--blue); }

/* Placeholder (swap for a real photo: see PHOTOS.md) */
.ph { position: relative; display: flex; align-items: flex-end; min-height: 120px; background: var(--soft); border: 1px dashed var(--line); border-radius: var(--radius); overflow: hidden; }
.ph span { margin: 10px; font: 500 .76rem/1.3 var(--sans); color: var(--muted); }

/* Hero (detail pages): title, then an optional wide image */
.hero { display: flex; flex-direction: column; padding: clamp(32px, 6vw, 56px) 0 clamp(20px, 3vw, 28px); }
.hero .wrap { order: 1; width: 100%; }
.hero .bg { order: 2; width: calc(min(var(--max), 100%) - 2 * var(--gutter)); margin: 24px auto 0; aspect-ratio: 16 / 7; object-fit: cover; border-radius: var(--radius); min-height: 0; height: auto; }

/* Tiles: a plain grid of linked cards */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 760px) { .tiles { grid-template-columns: repeat(2, 1fr); } }
.tile { position: relative; text-decoration: none; color: var(--text); display: block; }
.tile .media { position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background: var(--soft); display: grid; place-items: center; border: 1px solid var(--line); }
.tile .media > img { width: 100%; height: 100%; object-fit: cover; }
.tile .media > img.icon { width: 40%; height: auto; aspect-ratio: 1; border-radius: 22.37%; }
.tile .media .glyph { font: 600 1.6rem var(--serif); color: var(--muted); text-align: center; }
.tile .media .glyph small { display: block; font: 500 .72rem var(--sans); margin-top: 6px; }
.tile .body { padding: 8px 0 0; }
.tile h3 { margin: 0; font-size: .98rem; }
.tile:hover h3 { color: var(--blue); }
.tile p { margin: 0; color: var(--muted); font-size: .86rem; line-height: 1.4; }
.badge { position: absolute; top: 8px; left: 8px; z-index: 1; font: 600 .68rem var(--sans); background: var(--card); color: var(--ink); padding: 2px 7px; border-radius: 4px; border: 1px solid var(--line); }

/* Two-column split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 4vw, 44px); align-items: start; }
.split.flip > :first-child { order: 2; }
.split > img, .split figure img, .split > .ph { border-radius: var(--radius); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
@media (max-width: 760px) { .split { grid-template-columns: 1fr; } .split.flip > :first-child { order: 0; } }

/* Prose, lists, small components */
.prose { max-width: 66ch; }
main ul { padding-left: 1.1em; }
.prose li { margin-bottom: .4em; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 8px 22px; margin: 0; }
.kv dt { font-weight: 600; color: var(--ink); }
.kv dd { margin: 0; color: var(--text); }
@media (max-width: 600px) { .kv { grid-template-columns: 1fr; gap: 2px; } .kv dd { margin-bottom: 10px; } }
.pill-row { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.pill { font-size: .93rem; color: var(--text); }
.pill + .pill::before { content: "·"; margin-right: 14px; color: var(--muted); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }
.stat b { display: block; font: 600 1.4rem var(--serif); color: var(--ink); }
.stat span { font-size: .86rem; color: var(--muted); }
.panel { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; background: var(--card); }
.panel h3 { margin-top: 2px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.gallery img, .gallery .ph { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); min-height: 0; }
.gallery.phone-shots { grid-template-columns: repeat(auto-fit, minmax(140px, 200px)); }
.gallery.phone-shots img { aspect-ratio: auto; object-fit: contain; }
figure { margin: 0; }
figcaption { font-size: .85rem; color: var(--muted); margin-top: 6px; }
.app-icon { width: 120px; height: 120px; object-fit: cover; border-radius: 22.37%; }
.split img.app-icon { width: 120px; height: 120px; aspect-ratio: 1; }
.notice { border-left: 3px solid var(--line); padding: 2px 0 2px 12px; color: var(--muted); font-size: .93rem; }
.back { display: inline-block; margin-bottom: 14px; font-size: .9rem; color: var(--muted); text-decoration: none; }

/* Forms (contact, password) */
.form { display: grid; gap: 14px; max-width: 560px; }
.form label { display: grid; gap: 5px; font-size: .9rem; font-weight: 500; color: var(--ink); }
.form label small { font-weight: 400; color: var(--muted); }
.form input, .form textarea, .form select, .gate input[type=password] {
  font: 16px var(--sans); padding: 10px 12px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--card); color: var(--ink); width: 100%;
}
.form textarea { min-height: 140px; resize: vertical; }
.form input:focus, .form textarea:focus, .form select:focus, .gate input:focus { outline: 2px solid var(--blue); outline-offset: 1px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .form .row { grid-template-columns: 1fr; } }
.status { font-size: .93rem; margin: 0; min-height: 1.4em; }
.status.error { color: #b42318; }
.status.ok { color: #157f3b; }
.steps { display: flex; gap: 18px; font-size: .85rem; color: var(--muted); margin-bottom: 16px; flex-wrap: wrap; padding: 0; list-style: none; }
.steps .on { color: var(--ink); font-weight: 600; }
[hidden] { display: none !important; }

/* Chat */
.chat { border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); max-width: 680px; }
.chat .log { padding: 14px 16px; display: grid; gap: 10px; max-height: 420px; overflow-y: auto; }
.chat .msg { max-width: 88%; padding: 8px 12px; border-radius: var(--radius); font-size: .95rem; line-height: 1.5; white-space: pre-wrap; margin: 0; }
.chat .msg.user { justify-self: end; background: var(--ink); color: var(--bg); }
.chat .msg.bot { justify-self: start; background: var(--soft); color: var(--text); }
.chat form { display: flex; gap: 8px; border-top: 1px solid var(--line); padding: 10px; }
.chat input { flex: 1; font: 16px var(--sans); padding: 9px 11px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); color: var(--ink); min-width: 0; }
.chat .suggest { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 16px 12px; }
.chat .suggest button { font: 500 .82rem var(--sans); border: 1px solid var(--line); background: var(--bg); color: var(--text); border-radius: 999px; padding: 4px 10px; cursor: pointer; }
.chat .captcha { padding: 0 16px 12px; }
.chat .note { font-size: .8rem; color: var(--muted); padding: 0 16px 12px; margin: 0; }

/* Gate (password / invite) */
.gate { min-height: calc(100vh - 56px); display: grid; place-items: center; padding: 40px var(--gutter) 80px; }
.gate .box { width: min(420px, 100%); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 4vw, 32px); background: var(--card); }
.gate h1 { font-size: clamp(1.6rem, 4vw, 2rem); }
.gate p { color: var(--muted); }
.gate form { display: grid; gap: 10px; margin-top: 16px; }
.gate label { font-size: .88rem; color: var(--muted); }
.gate .error { color: #b42318; display: none; margin: 0; }
.gate .error.show { display: block; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 28px 0 40px; font-size: .88rem; color: var(--muted); }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.site-footer a { color: var(--ink); }

:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
@media print {
  .site-header, .site-footer, #ask, .btns, .chat { display: none !important; }
  body { background: #fff; font-size: 11pt; }
  main > section { padding: 10px 0; }
}

/* ---- Interactive home page: filter bar, foldable sections, chips, logos ---- */
[hidden] { display: none !important; }
.trackbar { position: sticky; top: 56px; z-index: 9; background: var(--bg); border-bottom: 1px solid var(--line); }
.trackbar .wrap { display: flex; align-items: center; gap: 8px 12px; flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; }
.trackbar .label { font: 600 .74rem var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.track-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.track-chips button, .fold-all button { font: 500 .85rem var(--sans); padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--text); cursor: pointer; }
.track-chips button:hover, .fold-all button:hover { border-color: var(--ink); }
.track-chips button[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.fold-all { margin-left: auto; display: flex; gap: 6px; }
.fold-all button { border-radius: var(--radius); color: var(--muted); }
@media (max-width: 760px) {
  .trackbar { position: static; }
  .track-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; max-width: 100%; }
  .track-chips button { flex: 0 0 auto; }
  .fold-all { margin-left: 0; }
}
main section[id] { scroll-margin-top: 120px; }

.fit-card { all: unset; box-sizing: border-box; display: block; cursor: pointer; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.fit-card:hover, .fit-card:focus-visible { border-color: var(--ink); }
.fit-card:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.fit-card h3 { font-size: 1rem; margin-bottom: .25em; }
.fit-card p { color: var(--muted); font-size: .9rem; margin: 0 0 8px; line-height: 1.5; }
.fit-card .pick { font-size: .8rem; color: var(--blue); }

details.fold > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
details.fold > summary::-webkit-details-marker { display: none; }
details.fold > summary::before { content: "▸"; color: var(--muted); font-size: .85rem; transition: transform .15s; width: 10px; }
details.fold[open] > summary::before { transform: rotate(90deg); }
details.fold > summary h3 { margin: 0; display: flex; align-items: center; gap: 8px; }
details.fold > summary .more-link { font: 500 .85rem var(--sans); color: var(--muted); }
details.fold.area > summary { margin-bottom: 10px; }
.proof-group { scroll-margin-top: 120px; }
.proof-group + .proof-group { margin-top: 22px; padding-top: 20px; border-top: 1px dashed var(--line); }
.proof-group .group-intro { margin: 8px 0 0; font-size: .93rem; max-width: 66ch; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 10px 0 12px; }
.chips li { font-size: .78rem; padding: 2px 9px; border-radius: 999px; background: var(--soft); border: 1px solid var(--line); color: var(--text); }
ul.plain { margin: 0; padding-left: 1.1em; }
.list-tools { display: flex; justify-content: flex-end; margin-bottom: 8px; font-size: .88rem; color: var(--muted); }
.list-tools select { font: inherit; margin-left: 6px; padding: 3px 6px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); color: var(--text); }

.logo { display: inline-block; width: 18px; height: 18px; flex: 0 0 auto; background: currentColor; -webkit-mask: var(--src) center / contain no-repeat; mask: var(--src) center / contain no-repeat; vertical-align: -3px; }
summary h3 .logo { width: 20px; height: 20px; color: var(--ink); }
.social { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 18px; padding: 0; margin: 14px 0 0; font-size: .92rem; }
.social a { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); }
.social a:hover { color: var(--ink); }

/* AI section */
.ai-lead { font-size: 1.3rem; margin-bottom: 16px; }
.ai-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px 28px; }
.ai-cols h3 { font-size: 1rem; }
.ai-cols ul, .demo ul { margin: 0; padding-left: 1.1em; font-size: .93rem; }
.ai-cols li, .demo li { margin-bottom: .3em; }
.demo { margin-top: 20px; padding: 14px 16px; border: 1px solid var(--line); border-left: 3px solid var(--blue); border-radius: var(--radius); background: var(--card); }
.demo h3 { font-size: 1rem; }
.logo-wall { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.logo-wall .tool { display: inline-flex; align-items: center; gap: 6px; font-size: .82rem; padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: var(--text); }
.logo-wall .tool .logo { width: 15px; height: 15px; color: var(--ink); }
.app .built { font-size: .9rem; color: var(--muted); }
.book-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px 28px; margin-top: 12px; }
.book-cols h3 { font-size: 1rem; }
.book-cols ul { margin: 0; padding-left: 1.1em; font-size: .93rem; }
.book-photo { width: 100%; max-width: 260px; margin-top: 14px; border-radius: var(--radius); }
.gallery figure { margin: 0; }
.gallery figcaption { font-size: .86rem; color: var(--text); margin-top: 6px; line-height: 1.4; }
.gallery.tall { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.gallery.tall img { aspect-ratio: 3 / 4; object-position: center 30%; }
.books-top { display: grid; grid-template-columns: 220px 1fr; gap: 24px; align-items: start; margin-top: 16px; }
.books-top > * { min-width: 0; }
@media (max-width: 760px) { .books-top { grid-template-columns: 1fr; } .books-top .book-photo { max-width: 200px; } }
.book-chips { margin-bottom: 12px; }
.carousel.books figure { width: 150px; }
.carousel.books .cover { width: 150px; height: 225px; object-fit: cover; border-radius: 4px; border: 1px solid var(--line); background: var(--soft); max-width: none; }
.carousel.books figcaption { font-size: .8rem; line-height: 1.35; color: var(--muted); }
.carousel.books figcaption strong { color: var(--ink); font-weight: 600; }
.text-cover { display: flex; flex-direction: column; justify-content: center; gap: 8px; padding: 14px; box-sizing: border-box; font: 600 1rem/1.25 var(--serif); color: var(--ink); }
.text-cover small { font: 400 .78rem var(--sans); color: var(--muted); }
details.fold.proof-group:not([open]) > summary h3 { color: var(--text); }
details.fold.proof-group:not([open]) > summary::after { content: "Show photos"; font-size: .8rem; color: var(--blue); margin-left: 4px; }
.intro .legal { color: var(--muted); font-size: .9rem; margin: -2px 0 6px; }
.contact-icons { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 14px 0 0; }
.contact-icons a { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: var(--text); text-decoration: none; font-size: .88rem; }
.contact-icons a:hover { border-color: var(--ink); color: var(--ink); }
.contact-icons .logo { width: 16px; height: 16px; color: var(--ink); }

/* ---- 10 Nov polish: blue accent, brand icons, personality, timeline ---- */
.eyebrow { color: var(--blue); }
.btn.primary { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn.primary:hover { background: var(--blue-ink); border-color: var(--blue-ink); }
.track-chips button[aria-pressed="true"] { background: var(--blue); border-color: var(--blue); color: #fff; }
.intro { background: linear-gradient(180deg, var(--blue-soft), transparent 85%); }
.intro .who img { box-shadow: 0 0 0 3px var(--card), 0 0 0 4px var(--blue-line); }
.intro .roles { color: var(--blue-ink); }
.fit-card { border-top: 3px solid var(--blue); }
.chips li { background: var(--blue-soft); border-color: var(--blue-line); color: var(--blue-ink); }
.logo { background: var(--c, currentColor); }
img.brand { width: 20px; height: 20px; border-radius: 5px; object-fit: contain; vertical-align: -4px; flex: 0 0 auto; }
summary h3 img.brand { width: 22px; height: 22px; }
.job h3 img.brand { width: 18px; height: 18px; margin-right: 8px; vertical-align: -3px; }
.logo-wall { display: grid; gap: 10px; margin-top: 8px; }
.tool-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.tool-cat { font: 600 .72rem var(--sans); letter-spacing: .07em; text-transform: uppercase; color: var(--muted); width: 100%; margin-top: 4px; }
.logo-wall .tool img.brand { width: 16px; height: 16px; border-radius: 4px; }
.tools-h { font-size: 1rem; margin-top: 22px; }
.early { margin-top: 22px; }
.early h3 { font-size: 1rem; }
.timeline { list-style: none; margin: 8px 0 0; padding: 0 0 0 14px; border-left: 2px solid var(--blue-line); }
.timeline li { position: relative; display: grid; grid-template-columns: 88px 1fr; gap: 10px; padding: 5px 0; font-size: .93rem; }
.timeline li::before { content: ""; position: absolute; left: -20px; top: 12px; width: 10px; height: 10px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 3px var(--bg); }
.timeline .when { font-weight: 600; color: var(--blue-ink); }
@media (max-width: 560px) { .timeline li { grid-template-columns: 1fr; gap: 0; } }
.who-lead { font-size: 1.3rem; margin-bottom: 14px; }
.traits { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.traits > div { padding: 12px 14px; border: 1px solid var(--line); border-left: 3px solid var(--blue); border-radius: var(--radius); background: var(--card); }
.traits h3 { font-size: .98rem; margin-bottom: .2em; }
.traits p { margin: 0; font-size: .9rem; color: var(--muted); }
.assessment { margin-top: 18px; padding: 16px 18px; border: 1px solid var(--blue-line); border-radius: var(--radius); background: var(--blue-soft); }
.assessment p { font-size: .94rem; }
.assess-head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.assess-head img.brand { width: 32px; height: 32px; }
.assess-head h3 { margin: 0; font-size: 1rem; }
.assess-head p { margin: 0; color: var(--muted); font-size: .85rem; }
.chips.big li { font-size: .9rem; padding: 4px 12px; font-weight: 600; }
.territories { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; margin: 10px 0 4px; }
.territories > div { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); font-size: .88rem; }
.territories .when { font: 600 .72rem var(--sans); letter-spacing: .05em; text-transform: uppercase; color: var(--blue); }
.territories strong { color: var(--ink); }
.territories span:last-child { color: var(--muted); }

/* Uncropped galleries: photos keep their own shape (masonry columns) */
.gallery { display: block; columns: 2 200px; column-gap: 12px; }
.gallery > img, .gallery > figure, .gallery > .ph { display: block; width: 100%; margin: 0 0 12px; break-inside: avoid; }
.gallery img { aspect-ratio: auto !important; height: auto; object-fit: contain; }
.gallery.tall img { aspect-ratio: auto !important; }
.gallery.phone-shots { display: grid; columns: auto; }
.proof.one figure img { aspect-ratio: auto; max-height: 420px; width: auto; max-width: 100%; }
.intro h1 .legal { display: inline-block; font: 500 .9rem var(--sans); color: var(--muted); letter-spacing: 0; margin-left: 10px; vertical-align: middle; }
.team-logo { width: 18px; height: 18px; border-radius: 50%; vertical-align: -3px; margin-right: 6px; }
.split .gallery { columns: 3 130px; }

/* ---- 10 Nov (2): focus areas, headline numbers, resume links, hands-on divider */
.resume-links { margin: 10px 0 0; font-size: .88rem; color: var(--muted); }
.resume-links a { color: var(--blue-ink); }
.resume-links a.current { font-weight: 600; }
.numbers { border-bottom: 1px solid var(--line); background: var(--card); }
.numbers .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0; padding-top: 18px; padding-bottom: 18px; }
.numbers .wrap > div { padding: 4px 18px; border-left: 1px solid var(--line); }
.numbers .wrap > div:first-child { border-left: 0; padding-left: 0; }
.numbers b { display: block; font-size: 1.55rem; line-height: 1.15; color: var(--blue-ink); font-weight: 700; letter-spacing: -.01em; }
.numbers span { display: block; font-size: .82rem; color: var(--muted); line-height: 1.35; margin-top: 2px; }
.numbers:not(:has(.wrap > div:not([hidden]))) { display: none; }
.sub-divider { margin: 22px 0 6px; padding-top: 16px; border-top: 1px solid var(--line); font-size: .95rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.sub-divider span { text-transform: none; letter-spacing: 0; font-weight: 400; margin-left: 6px; }
.proof-divider { margin: 34px 0 12px; padding: 18px 20px; border-radius: var(--radius); background: var(--blue-soft); border: 1px solid var(--blue-line); }
.proof-divider h3 { margin: 0 0 4px; font-size: 1.05rem; color: var(--blue-ink); }
.proof-divider p { margin: 0; color: var(--text); font-size: .93rem; }
.fit-card[data-pick="hands"] { border-top-color: var(--line); background: transparent; }
@media (max-width: 600px) {
  .numbers .wrap { grid-template-columns: 1fr 1fr; row-gap: 14px; }
  .numbers .wrap > div { border-left: 0; padding: 0; }
}
.awards { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; }
.awards > div { padding: 14px 16px; border: 1px solid var(--line); border-top: 3px solid var(--blue); border-radius: var(--radius); background: var(--card); }
.awards .when { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--blue-ink); margin-bottom: 4px; }
.awards h3 { margin: 0 0 4px; font-size: 1rem; }
.awards p { margin: 0; color: var(--muted); font-size: .9rem; line-height: 1.5; }

/* ---- 10 Nov (3): sign-in funnel, chat bubble, cookies, portfolio head, AI depth */
a.ext { color: inherit; text-decoration: underline; text-decoration-color: var(--blue-line); text-underline-offset: 2px; }
a.ext:hover { color: var(--blue-ink); text-decoration-color: var(--blue); }
.logo-wall a.tool { text-decoration: none; transition: border-color .15s, transform .15s; }
.logo-wall a.tool:hover { border-color: var(--blue); color: var(--blue-ink); transform: translateY(-1px); }
.book-link { display: block; color: inherit; text-decoration: none; }
.book-link:hover figcaption strong { color: var(--blue-ink); text-decoration: underline; }

/* access form (landing, sign-in page, chat) */
.access-form { display: grid; gap: 12px; }
.access-form .grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px; }
.access-form.compact .grid2 { grid-template-columns: 1fr; }
.access-form label { display: grid; gap: 4px; font-size: .85rem; color: var(--muted); font-weight: 500; }
.access-form .opt { font-weight: 400; color: var(--muted); opacity: .8; }
.access-form input:not([type=checkbox]), .access-form select { font: 16px var(--sans); padding: 9px 11px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); color: var(--ink); width: 100%; box-sizing: border-box; }
.access-form input:focus, .access-form select:focus { outline: 2px solid var(--blue); outline-offset: 1px; border-color: var(--blue); }
.access-form label.consent { display: flex; gap: 8px; align-items: flex-start; font-weight: 400; line-height: 1.45; }
.access-form label.consent input { margin-top: 3px; }
.access-form .row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.access-form .status { font-size: .88rem; }
.access-form .status.error { color: #b42318; }
.access-form .status.ok { color: var(--blue-ink); }
.access-form .captcha:empty { display: none; }
.fine { font-size: .8rem; color: var(--muted); margin: 12px 0 0; }
.gate .box.wide { width: min(640px, 100%); }
.gate .access-form { margin-top: 18px; }
@media (max-width: 560px) { .access-form .grid2 { grid-template-columns: 1fr; } }

/* landing: the funnel band */
.access-band { background: linear-gradient(180deg, var(--blue-soft), var(--bg)); border-top: 1px solid var(--blue-line); border-bottom: 1px solid var(--line); }
.access-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(24px, 5vw, 56px); align-items: start; }
.access-band h2 { font-family: var(--serif); font-size: clamp(1.6rem, 3.4vw, 2.2rem); margin: 6px 0 8px; color: var(--ink); }
.access-band .lede { color: var(--muted); margin: 0 0 18px; }
.inside { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.inside li { display: grid; gap: 2px; padding: 10px 14px; border-left: 3px solid var(--blue); background: var(--card); border-radius: 0 var(--radius) var(--radius) 0; }
.inside strong { color: var(--ink); }
.inside span { color: var(--muted); font-size: .9rem; }
.access-card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: clamp(18px, 3vw, 26px); box-shadow: 0 10px 30px rgba(23, 70, 141, .08); }
.access-card h3 { margin: 0 0 12px; font-size: 1.15rem; }
.have-access p { margin: 0 0 10px; color: var(--muted); }
@media (max-width: 820px) { .access-grid { grid-template-columns: 1fr; } }

/* floating chat bubble */
.chat-bubble { position: fixed; right: 18px; bottom: 18px; z-index: 60; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.bubble-btn { display: inline-flex; align-items: center; gap: 8px; padding: 6px 16px 6px 6px; border: 0; border-radius: 999px; background: var(--blue); color: #fff; font: 600 .92rem var(--sans); cursor: pointer; box-shadow: 0 8px 24px rgba(23, 70, 141, .35); }
.bubble-btn img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(255,255,255,.85); }
.bubble-btn:hover { background: var(--blue-ink); }
.chat-bubble.open .bubble-btn { display: none; }
.chat-panel { width: min(380px, calc(100vw - 24px)); max-height: min(620px, calc(100vh - 100px)); display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 18px 50px rgba(0,0,0,.18); overflow: hidden; }
.chat-panel[hidden] { display: none; }
.chat-panel header { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: var(--blue); color: #fff; }
.chat-panel header img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.chat-panel header strong { display: block; font-size: .98rem; }
.chat-panel header span { display: block; font-size: .76rem; opacity: .85; }
.chat-panel header .close { margin-left: auto; background: none; border: 0; color: #fff; font-size: 1.5rem; line-height: 1; cursor: pointer; padding: 2px 6px; }
.chat-gate { padding: 14px 16px 16px; overflow-y: auto; }
.chat-gate > p { margin: 0 0 12px; color: var(--text); font-size: .92rem; }
.chat-panel .chat { border: 0; border-radius: 0; max-width: none; display: flex; flex-direction: column; min-height: 0; flex: 1; }
.chat-panel .chat[hidden] { display: none; }
.chat-panel .chat .log { flex: 1; max-height: none; min-height: 180px; }
.chat-panel .chat .suggest { padding-top: 4px; }
@media (max-width: 560px) {
  .chat-bubble { right: 12px; bottom: 12px; }
  .bubble-btn span { display: none; }
  .bubble-btn { padding: 6px; }
  .bubble-btn img { width: 44px; height: 44px; }
}
@media print { .chat-bubble, .cookie-note { display: none !important; } }

/* cookie notice */
.cookie-note { position: fixed; left: 18px; bottom: 18px; z-index: 55; max-width: 420px; display: flex; gap: 12px; align-items: center; padding: 12px 14px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 8px 24px rgba(0,0,0,.12); font-size: .85rem; }
.cookie-note[hidden] { display: none; }
.cookie-note p { margin: 0; color: var(--text); }
@media (max-width: 560px) { .cookie-note { left: 12px; right: 76px; bottom: 12px; max-width: none; } }

/* portfolio head and resume cards */
.portfolio-head { background: linear-gradient(180deg, var(--blue-soft), var(--bg)); border-bottom: 1px solid var(--line); }
.portfolio-head h1 { font-family: var(--serif); font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 6px 0 8px; }
.portfolio-head .lede { color: var(--muted); max-width: 60ch; }
.resume-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; margin-top: 18px; }
.resume-card { display: grid; gap: 4px; padding: 14px 16px; border: 1px solid var(--line); border-top: 3px solid var(--blue); border-radius: var(--radius); background: var(--card); color: var(--ink); text-decoration: none; transition: transform .15s, box-shadow .15s; }
.resume-card:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(23,70,141,.12); }
.resume-card.current { background: var(--blue-soft); border-color: var(--blue-line); }
.resume-card .kind { font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.resume-card strong { font-size: 1rem; }
.resume-card .dl { font-size: .85rem; color: var(--blue-ink); font-weight: 600; }
.resume-card .dl::after { content: " ↓"; }

/* AI depth */
.ai-deep { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 22px 0; }
.ai-card { padding: 18px 20px; border: 1px solid var(--blue-line); border-radius: 12px; background: var(--card); }
.ai-card h3 { margin: 0 0 8px; color: var(--blue-ink); }
.ai-card p, .ai-card li { font-size: .93rem; line-height: 1.55; }
.ai-card ul { padding-left: 18px; margin: 8px 0 0; display: grid; gap: 6px; }
ol.flow { list-style: none; counter-reset: f; padding: 0; margin: 10px 0; display: grid; gap: 6px; }
ol.flow li { counter-increment: f; position: relative; padding-left: 34px; }
ol.flow li::before { content: counter(f); position: absolute; left: 0; top: 1px; width: 22px; height: 22px; border-radius: 50%; background: var(--blue); color: #fff; font: 600 .75rem/22px var(--sans); text-align: center; }
@media (max-width: 820px) { .ai-deep { grid-template-columns: 1fr; } }

/* Criteria chart */
.criteria-chart { margin: 14px 0; padding: 10px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.criteria-chart img { width: 100%; height: auto; display: block; }
.criteria-chart figcaption { font-size: .8rem; color: var(--muted); margin-top: 6px; text-align: center; }

/* privacy page */
.prose-page .narrow { max-width: 760px; }
.prose-page h1 { font-family: var(--serif); }
.prose-page h2 { margin-top: 1.6em; font-size: 1.25rem; }
.prose-page h3 { margin-top: 1.1em; font-size: 1rem; }
.plain-table { width: 100%; border-collapse: collapse; font-size: .9rem; margin: 10px 0; }
.plain-table th, .plain-table td { text-align: left; vertical-align: top; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.plain-table th { color: var(--muted); font-weight: 600; }
@media (max-width: 560px) { .plain-table { font-size: .82rem; } .plain-table th, .plain-table td { padding: 6px; } }
.access-form label:not(.consent) { display: block; }
.access-form label:not(.consent) input, .access-form label:not(.consent) select { display: block; margin-top: 4px; }
.chat-panel .chat .log { align-content: start; }

/* ---- 11 Nov: one photo size everywhere. Every photo is a 4:3 frame, cropped
   around its subject (content/focal.json); app screenshots and book covers keep
   their own shape. Replaces the uneven masonry columns. */
.gallery { display: grid; columns: auto; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.gallery > img, .gallery > figure, .gallery > .ph { margin: 0; }
.gallery img, .gallery.tall img { width: 100%; height: auto; aspect-ratio: 4 / 3 !important; object-fit: cover; }
.split .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gallery.phone-shots { grid-template-columns: repeat(auto-fit, minmax(140px, 200px)); }
.gallery.phone-shots img { aspect-ratio: auto !important; object-fit: contain; }
.carousel:not(.phones):not(.books) img { width: 400px; height: 300px; max-width: 80vw; object-fit: cover; }
@media (max-width: 560px) { .carousel:not(.phones):not(.books) img { width: 300px; height: 225px; } }
.proof.one figure img { aspect-ratio: 4 / 3; width: 100%; max-height: none; object-fit: cover; }
/* Same tile size in every section: four across at full width, two across beside text. */
.gallery:not(.phone-shots) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.split .gallery:not(.phone-shots) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 760px) { .gallery:not(.phone-shots) { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* Tile photos fill their 4:3 frame exactly, so object-position (the framing) applies. */
.tile .media > img:not(.icon) { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ---- 11 Nov: motion. Content is visible without JS; motion.js adds .motion to
   <html> (never under prefers-reduced-motion) and .rv/.in to reveal on scroll. */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60; background: linear-gradient(90deg, var(--blue), #4fa3ff); transform-origin: 0 50%; transform: scaleX(0); pointer-events: none; }
.nav a { position: relative; transition: color .2s; }
.nav a.here { color: var(--ink); }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; background: var(--blue); transform: scaleX(0); transform-origin: 0 50%; transition: transform .3s ease; }
.nav a.here::after, .nav a:hover::after { transform: scaleX(1); }

.motion .rv { opacity: 0; transform: translateY(22px); transition: opacity .7s cubic-bezier(.2,.7,.2,1) var(--d, 0ms), transform .7s cubic-bezier(.2,.7,.2,1) var(--d, 0ms); }
.motion .rv.in { opacity: 1; transform: none; }
.motion .criteria-chart.rv img { clip-path: inset(0 100% 0 0); transition: clip-path 1.2s cubic-bezier(.6,0,.2,1) .2s; }
.motion .criteria-chart.rv.in img { clip-path: inset(0 0 0 0); }
.motion .timeline { border-left-color: transparent; position: relative; }
.motion .timeline::before { content: ""; position: absolute; left: -2px; top: 0; bottom: 0; width: 2px; background: var(--blue-line); transform: scaleY(0); transform-origin: 50% 0; transition: transform 1.4s ease .1s; }
.motion .early.in .timeline::before, .motion .timeline:has(.in)::before { transform: scaleY(1); }

/* Hero: a slow-drifting light behind the introduction, and a staggered entrance */
.intro { position: relative; overflow: hidden; isolation: isolate; }
.intro::before, .intro::after { content: ""; position: absolute; z-index: -1; border-radius: 50%; filter: blur(60px); opacity: .55; pointer-events: none; }
.intro::before { width: 420px; height: 420px; right: -80px; top: -140px; background: radial-gradient(circle, #9cc3ff, transparent 70%); }
.intro::after { width: 360px; height: 360px; left: 30%; bottom: -220px; background: radial-gradient(circle, #c9dcff, transparent 70%); }
@media (prefers-color-scheme: dark) {
:root:not([data-theme="light"]) .intro::before,
:root:not([data-theme="light"]) .intro::after { opacity: .18; }
}
.motion .intro::before { animation: drift 18s ease-in-out infinite alternate; }
.motion .intro::after { animation: drift 22s ease-in-out infinite alternate-reverse; }
@keyframes drift { from { transform: translate(0, 0) scale(1); } to { transform: translate(-60px, 40px) scale(1.15); } }
.motion .intro .who > * , .motion .intro .who > div > * { animation: rise .8s cubic-bezier(.2,.7,.2,1) backwards; }
.motion .intro .who > img { animation: pop .9s cubic-bezier(.2,.7,.2,1) backwards; }
.motion .intro .who > div > :nth-child(2) { animation-delay: .08s; }
.motion .intro .who > div > :nth-child(3) { animation-delay: .16s; }
.motion .intro .who > div > :nth-child(4) { animation-delay: .24s; }
.motion .intro .who > div > :nth-child(5) { animation-delay: .32s; }
.motion .intro .who > div > :nth-child(n+6) { animation-delay: .4s; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes pop { from { opacity: 0; transform: scale(.85); } to { opacity: 1; transform: none; } }

/* Cards respond to the pointer */
.traits > div, .fit-card, .ai-card, .awards > div, .tile .media, .tool, .access-card, .job { transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.traits > div:hover, .fit-card:hover, .ai-card:hover, .awards > div:hover, .job:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(23,70,141,.10); }
.tile .media > img:not(.icon) { transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.tile:hover .media > img:not(.icon) { transform: scale(1.05); }
a.tool:hover { transform: translateY(-2px); }
.gallery img { transition: transform .4s ease, box-shadow .4s ease; }
.gallery img:hover { transform: scale(1.02); box-shadow: 0 10px 24px rgba(0,0,0,.12); }

/* The agent team, running live */
.agent-live { display: flex; align-items: center; gap: 8px; margin: 2px 0 12px; font-size: .82rem; color: var(--muted); }
.agent-live .dot { width: 8px; height: 8px; border-radius: 50%; background: #22a06b; box-shadow: 0 0 0 0 rgba(34,160,107,.5); animation: ping 2s infinite; }
.agent-live b { font-variant-numeric: tabular-nums; color: var(--ink); font-weight: 600; }
@keyframes ping { 70% { box-shadow: 0 0 0 8px rgba(34,160,107,0); } 100% { box-shadow: 0 0 0 0 rgba(34,160,107,0); } }
ol.flow.live { position: relative; }
ol.flow.live li { transition: background-color .4s, color .4s, transform .4s; border-radius: var(--radius); }
ol.flow.live li.on { background: var(--blue-soft); transform: translateX(4px); }
ol.flow.live li.on strong { color: var(--blue-ink); }
.numbers b { display: inline-block; font-variant-numeric: tabular-nums; }

@media (prefers-reduced-motion: reduce) {
  .progress { display: none; }
  .traits > div:hover, .fit-card:hover, .ai-card:hover, .awards > div:hover, .job:hover, a.tool:hover, .gallery img:hover, .tile:hover .media > img:not(.icon) { transform: none; }
  .agent-live .dot { animation: none; }
}
ol.flow.live li { padding: 5px 10px 5px 40px; margin-left: -6px; }
ol.flow.live li::before { left: 8px; top: 6px; transition: transform .4s, box-shadow .4s; }
ol.flow.live li.on::before { transform: scale(1.12); box-shadow: 0 0 0 4px var(--blue-line); }
.intro .pitch { font: 500 1.35rem/1.35 var(--serif); color: var(--ink); margin: .6em 0 .5em; max-width: 34ch; }
@media print { .motion .rv { opacity: 1; transform: none; } .progress, .intro::before, .intro::after { display: none; } }

/* ---- 11 Nov (2): tool wall as larger app-style tiles that drift gently and
   lean toward the pointer (motion.js sets --bob, --mx, --my). */
.logo-wall { gap: 18px; }
.tool-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 12px; }
.tool-cat { grid-column: 1 / -1; margin-top: 6px; }
.logo-wall .tool { flex-direction: column; justify-content: center; gap: 8px; min-height: 96px; padding: 14px 8px 10px; border-radius: 18px; font-size: .76rem; line-height: 1.25; text-align: center; color: var(--text); background: var(--card); border-color: var(--line); box-shadow: 0 1px 2px rgba(16,24,40,.04);
  transform: translate(var(--mx, 0px), var(--my, 0px)); transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .3s, border-color .3s; }
.logo-wall .tool .logo, .logo-wall .tool img.brand { width: 38px; height: 38px; border-radius: 10px; }
.logo-wall .tool .logo { -webkit-mask-size: 82%; mask-size: 82%; }
.motion .logo-wall .tool { animation: bob 7s ease-in-out infinite; animation-delay: var(--bob, 0s); }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -4px; } }
.logo-wall a.tool:hover, .logo-wall a.tool:focus-visible { transform: translate(var(--mx, 0px), var(--my, 0px)) scale(1.08); border-color: var(--blue-line); box-shadow: 0 14px 30px rgba(23,70,141,.14); color: var(--ink); }
@media (max-width: 560px) { .tool-row { grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)); gap: 10px; } .logo-wall .tool { min-height: 86px; } .logo-wall .tool .logo, .logo-wall .tool img.brand { width: 32px; height: 32px; } }
@media (prefers-reduced-motion: reduce) { .logo-wall .tool { transform: none; animation: none; } }

/* Photos: a soft shimmer while loading, then a fade in, instead of a flat grey box */
img.loading { background: linear-gradient(100deg, var(--soft) 30%, var(--line) 50%, var(--soft) 70%); background-size: 300% 100%; animation: shimmer 1.4s linear infinite; }
img.fresh { animation: fadein .5s ease both; }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: 0 0; } }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { img.loading { animation: none; } img.fresh { animation: none; } }

/* ---- 11 Nov (3), from the site audit: one quiet card style (no colored edge
   stripes), hover lift only on things you can click, readable dark-mode buttons. */
.fit-card, .traits > div, .awards > div, .resume-card, .demo, .inside li { border-top-width: 1px !important; border-left-width: 1px !important; border-color: var(--line) !important; border-radius: 12px; }
.traits > div:hover, .ai-card:hover, .awards > div:hover, .job:hover { transform: none; box-shadow: none; }
.fit-card:hover, .resume-card:hover { border-color: var(--blue-line) !important; }
@media (prefers-color-scheme: dark) {
:root:not([data-theme="light"]) .btn.primary,
:root:not([data-theme="light"]) .bubble-btn,
:root:not([data-theme="light"]) .chat-panel header,
:root:not([data-theme="light"]) .track-chips button[aria-pressed="true"],
:root:not([data-theme="light"]) ol.flow li::before { background: #2b63c4 !important; color: #fff !important; border-color: #2b63c4 !important; }
}

/* ---- 11 Nov (4): each skill area has its own icon and color; each cell its own icon */
.area-badge { display: inline-grid; place-items: center; width: 34px; height: 34px; margin-right: 10px; border-radius: 10px; color: #fff; vertical-align: middle;
  background: linear-gradient(150deg, var(--g1, var(--blue)), var(--g2, var(--blue-ink))); box-shadow: 0 6px 14px color-mix(in srgb, var(--g2, #1f5fbf) 30%, transparent), inset 0 1px 0 rgba(255,255,255,.3); }
details.fold.area { position: relative; overflow: hidden; border-radius: 16px; }
details.fold.area > summary { position: relative; }
details.fold.area > summary::before { content: ""; position: absolute; inset: -14px -16px auto -16px; height: 120%; background: linear-gradient(100deg, color-mix(in srgb, var(--g1) 12%, transparent), transparent 70%); pointer-events: none; border-radius: 16px 16px 0 0; }
.area-mark { position: absolute; right: -10px; top: -26px; color: var(--g1); opacity: .09; pointer-events: none; transform: rotate(-8deg); }
.motion details.fold.area[open] .area-mark { animation: markdrift 14s ease-in-out infinite alternate; }
@keyframes markdrift { from { transform: rotate(-8deg) translateY(0); } to { transform: rotate(-2deg) translateY(10px); } }
.area .cols h4 { display: flex; align-items: center; gap: 8px; }
.cell-ico { display: inline-grid; place-items: center; width: 26px; height: 26px; flex: 0 0 auto; border-radius: 8px; color: var(--g2, var(--blue)); background: color-mix(in srgb, var(--g1, #3b82f6) 14%, transparent); transition: transform .3s; }
.area .cols > div:hover .cell-ico { transform: rotate(-8deg) scale(1.1); }
@media (prefers-color-scheme: dark) {
:root:not([data-theme="light"]) .cell-ico { color: var(--g1); }
}
.fit-card .area-badge { margin: 0 0 10px; width: 38px; height: 38px; }
@media (prefers-reduced-motion: reduce) { .area .cols > div:hover .cell-ico { transform: none; } }

/* ---- 11 Nov (5): traits as soft, slowly shape-shifting pebbles. The title shows;
   hover, focus or a tap opens the line under it. On touch screens every line shows. */
.traits.pebbles { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 16px 14px; padding: 14px 0 22px; }
.traits.pebbles > .pebble { --tint: #e4eeff; position: relative; max-width: 250px; padding: 18px 24px; text-align: center; cursor: default; outline: none;
  border: 1px solid color-mix(in srgb, var(--tint) 60%, var(--line)) !important; border-radius: 46% 54% 52% 48% / 55% 45% 55% 45%;
  background: radial-gradient(circle at 30% 22%, #ffffff 0%, var(--tint) 78%); box-shadow: 0 10px 26px rgba(23,70,141,.08);
  transition: transform .45s cubic-bezier(.2,.7,.2,1), box-shadow .35s ease; }
.traits.pebbles > .pebble:nth-child(4n+2) { --tint: #def3ef; }
.traits.pebbles > .pebble:nth-child(4n+3) { --tint: #fbefd9; }
.traits.pebbles > .pebble:nth-child(4n+4) { --tint: #eceff4; }
.traits.pebbles > .pebble:nth-child(3n+1) { padding: 24px 30px; }
.traits.pebbles > .pebble:nth-child(3n+1) h3 { font-size: 1.18rem; }
.traits.pebbles > .pebble:nth-child(5n+3) { padding: 14px 20px; }
.pebble h3 { margin: 0; font: 600 1.02rem/1.2 var(--serif); color: var(--ink); }
.pebble p { max-height: 0; opacity: 0; overflow: hidden; margin: 0; font-size: .88rem; line-height: 1.45; color: var(--text); transition: max-height .5s ease, opacity .35s ease, margin .35s ease; }
.traits.pebbles > .pebble:hover, .traits.pebbles > .pebble:focus-visible { transform: translateY(-4px) scale(1.04); box-shadow: 0 18px 36px rgba(23,70,141,.16); z-index: 2; }
.traits.pebbles > .pebble:focus-visible { box-shadow: 0 0 0 3px var(--blue-line), 0 18px 36px rgba(23,70,141,.16); }
.pebble:hover p, .pebble:focus p, .pebble:focus-within p { max-height: 9em; opacity: 1; margin-top: 6px; }
.motion .pebble { animation: morph 14s ease-in-out infinite alternate, float 8s ease-in-out infinite; animation-delay: calc(var(--i) * -1.7s), calc(var(--i) * -1.1s); }
@keyframes morph {
  0% { border-radius: 46% 54% 52% 48% / 55% 45% 55% 45%; }
  50% { border-radius: 58% 42% 40% 60% / 45% 58% 42% 55%; }
  100% { border-radius: 40% 60% 55% 45% / 60% 40% 60% 40%; } }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -6px; } }
@media (hover: none) { .pebble p { max-height: none; opacity: 1; margin-top: 6px; } }
@media (prefers-color-scheme: dark) {
:root:not([data-theme="light"]) .traits.pebbles > .pebble { background: radial-gradient(circle at 30% 22%, color-mix(in srgb, var(--tint) 22%, var(--card)), var(--card) 80%); }
}
@media (prefers-reduced-motion: reduce) { .pebble { animation: none !important; } }

/* Core skills band, and the same items in bold inside the full lists */
.core-skills { margin: 0 0 22px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); }
.core-skills h3 { margin: 0 0 12px; font-size: 1.05rem; }
.core-skills ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.core-skills li { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px 7px 9px; border-radius: 999px; font-size: .86rem; font-weight: 600; color: var(--ink);
  background: color-mix(in srgb, var(--g1) 11%, var(--card)); border: 1px solid color-mix(in srgb, var(--g1) 30%, transparent); transition: transform .25s, box-shadow .25s; }
.core-skills li svg { color: var(--g2); flex: 0 0 auto; }
.core-skills li:hover { transform: translateY(-2px); box-shadow: 0 8px 18px color-mix(in srgb, var(--g2) 18%, transparent); }
.core-skills .muted { margin: 12px 0 0; font-size: .82rem; }
.area .cols li.key { font-weight: 600; color: var(--ink); }
.area .cols li:not(.key) { color: var(--muted); }
@media (prefers-color-scheme: dark) {
:root:not([data-theme="light"]) .core-skills li svg { color: var(--g1); }
}
h2.eyebrow { margin-top: 0; line-height: 1.4; }
.tile:hover .media > img:not(.icon) { transform: scale(1.03); }
/* pebbles size to their word; the line underneath only takes width when it opens */
.traits.pebbles { gap: 18px 16px; max-width: 760px; margin-inline: auto; }
.traits.pebbles > .pebble { flex: 0 0 auto; width: auto; max-width: 280px; padding: 22px 28px; min-height: 0; }
.pebble h3 { white-space: nowrap; }
.pebble p { max-width: 0; transition: max-height .5s ease, max-width .5s ease, opacity .35s ease, margin .35s ease; }
.pebble:hover p, .pebble:focus p, .pebble:focus-within p { max-width: 230px; }
.traits.pebbles > .pebble:nth-child(3n+1) { padding: 30px 36px; }
.traits.pebbles > .pebble:nth-child(5n+3) { padding: 16px 22px; }
.traits.pebbles > .pebble:nth-child(odd) { margin-top: 14px; }
.traits.pebbles > .pebble:nth-child(4n) { margin-top: -6px; }
@media (hover: none) { .pebble p { max-width: 230px; } .pebble h3 { white-space: normal; } }

/* ---- 11 Nov (6): value points under the pitch; headline numbers grouped by category */
.intro .values { list-style: none; margin: 4px 0 18px; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
.intro .values li { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 16px; background: color-mix(in srgb, var(--card) 85%, transparent); border: 1px solid var(--line); backdrop-filter: blur(6px); transition: transform .3s, box-shadow .3s; }
.intro .values li:hover { transform: translateY(-2px); box-shadow: 0 12px 26px color-mix(in srgb, var(--g2) 14%, transparent); }
.intro .values svg { flex: 0 0 auto; width: 38px; height: 38px; padding: 9px; border-radius: 11px; color: #fff; background: linear-gradient(150deg, var(--g1), var(--g2)); box-shadow: 0 6px 14px color-mix(in srgb, var(--g2) 28%, transparent); }
.intro .values strong { display: block; font-size: 1rem; color: var(--ink); margin-bottom: 2px; }
.intro .values span { display: block; font-size: .86rem; color: var(--muted); line-height: 1.45; }
.numbers .wrap.num-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; padding-top: 22px; padding-bottom: 22px; }
.numbers .num-group { border: 1px solid var(--line) !important; border-left-width: 1px !important; padding: 14px 16px 6px !important; border-radius: 16px; background: linear-gradient(160deg, color-mix(in srgb, var(--g1) 10%, var(--card)), var(--card) 60%); }
.numbers .num-group h3 { display: flex; align-items: center; margin: 0 0 8px; font-size: .9rem; color: var(--ink); }
.numbers .num-group .area-badge { width: 28px; height: 28px; border-radius: 8px; margin-right: 8px; }
.numbers .num { padding: 8px 0; border-top: 1px solid var(--line); }
.numbers .num:first-of-type { border-top: 0; }
.numbers .num b { display: block; font: 700 1.9rem/1.05 var(--serif); color: var(--g2); letter-spacing: -.01em; }
.numbers .num span { display: block; font-size: .82rem; color: var(--muted); margin-top: 2px; }
@media (prefers-color-scheme: dark) {
:root:not([data-theme="light"]) .numbers .num b { color: var(--g1); }
}

/* ---- 11 Nov (7): each trait with a painting that shows it, hung like a small gallery wall */
.art-traits { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 18px 16px; margin: 6px 0 24px; }
.art-trait { margin: 0; }
.art-frame { position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 14px; background: #1b1b1b; box-shadow: 0 1px 0 rgba(255,255,255,.4) inset, 0 10px 24px rgba(20,20,30,.16); }
.art-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.02); transition: transform 1.2s cubic-bezier(.2,.7,.2,1), filter .6s; filter: saturate(.92); }
.art-frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(10,12,18,.78)); pointer-events: none; }
.art-frame h3 { position: absolute; left: 14px; right: 14px; bottom: 12px; z-index: 1; margin: 0; font: 600 1.18rem/1.15 var(--serif); color: #fff; text-shadow: 0 1px 8px rgba(0,0,0,.4); }
.art-trait:hover .art-frame img { transform: scale(1.08); filter: saturate(1.05); }
.art-trait figcaption p { margin: 9px 2px 3px; font-size: .88rem; line-height: 1.45; color: var(--text); }
.art-trait figcaption small { display: block; margin: 0 2px; font-size: .72rem; line-height: 1.35; color: var(--muted); font-style: italic; }
.motion .art-frame img { animation: drift-art 22s ease-in-out infinite alternate; }
.art-trait:nth-child(odd) .art-frame img { animation-direction: alternate-reverse; }
@keyframes drift-art { from { transform: scale(1.03) translate(0, 0); } to { transform: scale(1.09) translate(-1.5%, -1%); } }
.art-trait:hover .art-frame img { animation-play-state: paused; }
@media (max-width: 560px) { .art-traits { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 10px; } .art-frame h3 { font-size: 1rem; } }
@media (prefers-reduced-motion: reduce) { .art-frame img { animation: none !important; transition: none; } }
.art-traits { grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); }
@media (max-width: 1000px) { .intro .values { grid-template-columns: 1fr; } .intro .values li { padding: 11px 14px; } }
.numbers .num-group .area-badge { color: #fff !important; display: inline-grid !important; font-size: inherit; margin-top: 0; }

/* Traits carousel: paintings in a sliding row instead of a tall grid */
.art-carousel { margin: 6px 0 26px; }
.art-carousel .track { gap: 16px; padding-bottom: 4px; }
.art-carousel figure.art-trait { flex: 0 0 auto; width: 236px; display: block; }
.carousel.art-carousel .art-frame img { width: 100%; height: 100%; max-width: none; border-radius: 0; background: none; }
.art-carousel figcaption { width: auto; min-width: 0; }
.art-trait figcaption small a { color: inherit; text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 2px; }
.art-trait figcaption small a:hover { color: var(--blue-ink); text-decoration-color: currentColor; }
@media (max-width: 560px) { .art-carousel figure.art-trait { width: 72vw; } }
.intro .values svg { width: 46px; height: 46px; padding: 11px; border-radius: 14px; stroke-width: 1.7; box-shadow: 0 8px 18px color-mix(in srgb, var(--g2) 30%, transparent), inset 0 1px 0 rgba(255,255,255,.35); transition: transform .35s cubic-bezier(.2,.7,.2,1); }
.intro .values li:hover svg { transform: rotate(-6deg) scale(1.06); }

/* ---- 11 Nov (8): trait cards line up (art, line, credit), views, autoplay pause */
.who-lead { display: inline-block; margin-right: 12px; }
.view-chips { float: right; margin: 0 0 10px; }
.view-chips button { padding: 5px 12px; font-size: .8rem; }
.art-carousel .track { align-items: stretch; }
.art-trait { display: flex; flex-direction: column; }
.art-trait figcaption { display: flex; flex-direction: column; flex: 1; }
.art-trait figcaption p { flex: 1; }
.art-trait figcaption small { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line); }
.art-carousel .controls .pause { width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 50%; background: var(--card); color: var(--ink); font-size: .62rem; letter-spacing: -1px; cursor: pointer; }
/* grid view */
.art-carousel[data-view="grid"] .track { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); overflow: visible; scroll-snap-type: none; }
.art-carousel[data-view="grid"] figure.art-trait { width: auto; }
.art-carousel[data-view="grid"] .controls, .art-carousel[data-view="list"] .controls { display: none; }
/* list view: words only */
.art-carousel[data-view="list"] .track { display: grid; grid-template-columns: 1fr; gap: 0; overflow: visible; }
.art-carousel[data-view="list"] figure.art-trait { width: auto; display: grid; grid-template-columns: 180px 1fr; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line); }
.art-carousel[data-view="list"] .art-frame { aspect-ratio: auto; background: none; box-shadow: none; border-radius: 0; overflow: visible; }
.art-carousel[data-view="list"] .art-frame img, .art-carousel[data-view="list"] .art-frame::after { display: none; }
.art-carousel[data-view="list"] .art-frame h3 { position: static; color: var(--ink); text-shadow: none; font-size: 1.05rem; }
.art-carousel[data-view="list"] figcaption p { margin-top: 0; }
@media (max-width: 560px) { .view-chips { float: none; } .art-carousel[data-view="list"] figure.art-trait { grid-template-columns: 1fr; gap: 4px; } }

/* Value points: a real photo with a small animated badge */
.intro .values li { align-items: center; }
.intro .values li > .v-pic { position: relative; flex: 0 0 auto; width: 76px; height: 76px; }
.intro .values .v-pic img { width: 100%; height: 100%; object-fit: cover; border-radius: 18px; box-shadow: 0 8px 20px rgba(16,24,40,.16); transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.intro .values li:hover .v-pic img { transform: scale(1.05) rotate(-1.5deg); }
.intro .values .v-pic i { position: absolute; right: -8px; bottom: -8px; display: grid; place-items: center; }
.intro .values .v-pic i svg { width: 36px; height: 36px; padding: 8px; border-radius: 12px; border: 2px solid var(--card); }
.motion .intro .v-win .v-pic i svg { animation: shake 3.2s ease-in-out infinite; transform-origin: 50% 60%; }
.motion .intro .v-keep .v-pic i svg { animation: beat 2.4s ease-in-out infinite; }
.motion .intro .v-save .v-pic i svg { animation: tick 4s steps(1) infinite; }
@keyframes shake { 0%, 70%, 100% { transform: rotate(0); } 75% { transform: rotate(-12deg); } 80% { transform: rotate(10deg); } 85% { transform: rotate(-8deg); } 90% { transform: rotate(5deg); } }
@keyframes beat { 0%, 60%, 100% { transform: scale(1); } 68% { transform: scale(1.14); } 76% { transform: scale(1); } 84% { transform: scale(1.1); } }
@keyframes tick { 0% { transform: rotate(0); } 25% { transform: rotate(8deg); } 50% { transform: rotate(0); } 75% { transform: rotate(-8deg); } }
.intro .values li:hover .v-pic i svg { transform: rotate(-6deg) scale(1.08); }
@media (prefers-reduced-motion: reduce) { .intro .values .v-pic i svg { animation: none !important; } }

/* Where to find me: brand-colored icons with the handle under the name */
.socials { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.socials a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; min-height: 48px; border-radius: 14px; color: var(--ink); text-decoration: none; transition: background .2s, transform .25s; }
.socials a:hover { background: color-mix(in srgb, var(--card) 70%, var(--blue-soft)); transform: translateY(-2px); }
.socials .logo { width: 36px; height: 36px; flex: 0 0 auto; border-radius: 11px; background: var(--bg) !important; -webkit-mask: none; mask: none; position: relative; box-shadow: 0 4px 10px rgba(0,0,0,.12); }
.socials .logo::after { content: ""; position: absolute; inset: 8px; background: var(--fg, #fff); -webkit-mask: var(--src) center / contain no-repeat; mask: var(--src) center / contain no-repeat; }
.socials b { display: block; font-size: .86rem; line-height: 1.2; }
.socials small { display: block; font-size: .74rem; color: var(--muted); line-height: 1.2; }
.motion .socials a:hover .logo { animation: pop-in .4s cubic-bezier(.2,.7,.2,1); }
@keyframes pop-in { 50% { transform: scale(1.12) rotate(-4deg); } }
.art-carousel figure.art-trait { display: flex; flex-direction: column; }
.art-carousel[data-view="list"] figure.art-trait { display: grid; }

/* Core skills without icons: a small color dot marks the area */
.core-skills li { padding: 7px 14px; }
.core-skills li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: linear-gradient(150deg, var(--g1), var(--g2)); flex: 0 0 auto; }

/* Value points: big photos, the badge sitting on the photo's corner */
.intro .values { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.intro .values li { flex-direction: column; align-items: stretch; padding: 0; overflow: hidden; gap: 0; }
.intro .values li > .v-pic { width: 100%; height: auto; aspect-ratio: 4 / 3; }
.intro .values .v-pic img { border-radius: 0; box-shadow: none; }
.intro .values .v-pic i { right: 12px; bottom: -18px; z-index: 1; }
.intro .values li > div { padding: 22px 16px 16px; }
@media (max-width: 1000px) { .intro .values { grid-template-columns: repeat(3, minmax(0, 1fr)); } .intro .values li { padding: 0; } }
@media (max-width: 700px) { .intro .values { grid-template-columns: 1fr; } .intro .values li > .v-pic { aspect-ratio: 16 / 9; } }

/* Footer: four columns, then a base line */
.site-footer .footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 24px; padding-top: 34px; padding-bottom: 20px; }
.site-footer .f-brand .brand { font: 600 1.15rem var(--serif); color: var(--ink); text-decoration: none; }
.site-footer .f-brand p { margin: 8px 0 0; font-size: .86rem; color: var(--muted); max-width: 34ch; }
.site-footer nav h2 { margin: 0 0 8px; font: 600 .72rem var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.site-footer nav a { display: block; padding: 4px 0; font-size: .88rem; color: var(--text); text-decoration: none; }
.site-footer nav a:hover { color: var(--blue-ink); }
.site-footer .footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding-top: 14px; padding-bottom: 26px; border-top: 1px solid var(--line); font-size: .78rem; color: var(--muted); }
@media (max-width: 760px) { .site-footer .footer-grid { grid-template-columns: 1fr 1fr; } .site-footer .f-brand { grid-column: 1 / -1; } }
.intro .values li > .v-pic { overflow: visible; }
.intro .values .v-pic img { position: absolute; inset: 0; width: 100%; height: 100%; }
.intro .values li > .v-pic { border-radius: 16px 16px 0 0; overflow: hidden; }
.intro .values .v-pic i { right: 12px; bottom: 10px; }

/* ---- 11 Nov (9): the AI agent robot. data-step (1-6, set by motion.js) shows the
   prop for that step and switches the robot's pose. */
.agent-bot { margin: 4px 0 14px; padding: 10px 12px 8px; border-radius: 16px; background: linear-gradient(180deg, var(--blue-soft), transparent); border: 1px solid var(--blue-line); }
.agent-bot svg { display: block; width: 100%; max-width: 340px; height: auto; margin: 0 auto; overflow: visible; }
.agent-bot .agent-live { display: block; margin: 6px 0 0; text-align: center; font-size: .82rem; color: var(--muted); }
.agent-bot .agent-live .dot { display: inline-block; vertical-align: middle; margin-right: 6px; }
.agent-bot svg * { transform-box: fill-box; }
.b-shadow { fill: rgba(23,70,141,.12); }
.b-head { fill: #eaf1ff; stroke: #9fbbe9; stroke-width: 2; }
.b-face { fill: #17305f; }
.b-eyes circle { fill: #7fe3ff; }
.b-mouth { fill: none; stroke: #7fe3ff; stroke-width: 2.5; stroke-linecap: round; }
.b-limb { fill: #d6e3fb; stroke: #9fbbe9; stroke-width: 2; }
.b-core { fill: #3b82f6; }
.b-antenna { fill: #f59e0b; }
.b-stroke { fill: none; stroke: #4b6aa3; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.b-card { fill: #fff; stroke: #b7c9ea; stroke-width: 2; }
.b-accent { fill: #2563eb; }
.b-white { fill: #fff; }
.b-grid rect { fill: #eef3fb; stroke: #c9d7ef; }
.b-check { fill: none; stroke: #16a34a; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.b-white-stroke { stroke: #fff; }
.b-laptop { fill: #1f2a44; }
.b-code rect { fill: #7fe3ff; }
.b-gear circle:first-child { fill: none; stroke: #94a3b8; stroke-width: 6; stroke-dasharray: 5 4; }
.b-hole { fill: #94a3b8; }
.b-sun circle { fill: #fbbf24; } .b-sun path { stroke: #fbbf24; stroke-width: 3; stroke-linecap: round; }
.b-screen { fill: #e0ecff; }
.b-qmark { font: 700 26px var(--sans); fill: #2563eb; text-anchor: middle; }
.b-shield { fill: #16a34a; }
.b-stop { stroke: #dc2626; stroke-width: 3.5; stroke-linecap: round; }
.b-sym { font: 700 16px var(--sans); fill: #475569; text-anchor: middle; }
.b-moon { fill: #fde68a; } .b-stars circle { fill: #fde68a; }
.b-lock { fill: #334155; } .b-scan { fill: #22d3ee; opacity: .8; }
/* which prop shows */
.agent-bot .p { opacity: 0; transition: opacity .5s ease; }
.agent-bot[data-step="1"] .p1, .agent-bot[data-step="2"] .p2, .agent-bot[data-step="3"] .p3,
.agent-bot[data-step="4"] .p4, .agent-bot[data-step="5"] .p5, .agent-bot[data-step="6"] .p6 { opacity: 1; }
/* always alive: a gentle bob and a blink */
.motion .b-robot { animation: bot-bob 3s ease-in-out infinite; }
.motion .b-eyes { animation: bot-blink 4s infinite; transform-origin: 50% 50%; }
.motion .b-antenna { animation: bot-glow 1.6s ease-in-out infinite; }
@keyframes bot-bob { 50% { transform: translateY(-3px); } }
@keyframes bot-blink { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(.1); } }
@keyframes bot-glow { 50% { fill: #fde047; } }
.b-armL { transform-origin: 50% 8%; transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.b-armR { transform-origin: 50% 8%; transition: transform .5s cubic-bezier(.2,.7,.2,1); }
/* 1 planner: points at the board while checks draw in */
.agent-bot[data-step="1"] .b-armL { transform: rotate(62deg); }
.motion .agent-bot[data-step="1"] .b-check { stroke-dasharray: 40; animation: draw 2.4s ease infinite; }
@keyframes draw { from { stroke-dashoffset: 40; } 60%, to { stroke-dashoffset: 0; } }
/* 2 worker: types fast, gear spins, code lines grow */
.motion .agent-bot[data-step="2"] .b-armL { animation: type .28s ease-in-out infinite alternate; }
.motion .agent-bot[data-step="2"] .b-armR { animation: type .28s ease-in-out infinite alternate-reverse; }
@keyframes type { from { transform: rotate(-8deg); } to { transform: rotate(-20deg); } }
.motion .agent-bot[data-step="2"] .b-gear { animation: spin 2.5s linear infinite; transform-origin: 50% 50%; }
.motion .agent-bot[data-step="2"] .b-code rect { animation: grow 1.2s ease-in-out infinite alternate; transform-origin: 0 50%; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes grow { from { transform: scaleX(.2); } to { transform: scaleX(1); } }
/* 3 morning briefing: holds the phone up, the notice pops, the sun turns */
.agent-bot[data-step="3"] .b-armR { transform: rotate(-58deg); }
.motion .agent-bot[data-step="3"] .b-notif { animation: pop 2.6s ease infinite; transform-origin: 50% 100%; }
.motion .agent-bot[data-step="3"] .b-sun { animation: spin 12s linear infinite; transform-origin: 50% 50%; }
@keyframes pop { 0%, 15% { transform: scale(0); opacity: 0; } 30%, 80% { transform: scale(1); opacity: 1; } 100% { transform: scale(1); opacity: 0; } }
/* 4 questions with a default: asks, waits, then goes ahead */
.agent-bot[data-step="4"] .b-eyes { transform: translateY(-2px); }
.motion .agent-bot[data-step="4"] .b-q { animation: phase1 2.6s ease infinite; }
.motion .agent-bot[data-step="4"] .b-timer { animation: phase2 2.6s ease infinite; }
.motion .agent-bot[data-step="4"] .b-done { stroke-dasharray: 40; animation: phase3 2.6s ease infinite; }
@keyframes phase1 { 0%, 45% { opacity: 1; } 55%, 100% { opacity: .25; } }
@keyframes phase2 { 0%, 30% { opacity: 0; } 40%, 70% { opacity: 1; } 80%, 100% { opacity: .25; } }
@keyframes phase3 { 0%, 70% { stroke-dashoffset: 40; } 90%, 100% { stroke-dashoffset: 0; } }
/* 5 guardrails: raises the shield, blocks the spend */
.agent-bot[data-step="5"] .b-armR { transform: rotate(-40deg); }
.motion .agent-bot[data-step="5"] .b-shield { animation: shield 1.4s ease-in-out infinite; transform-origin: 50% 50%; }
@keyframes shield { 50% { transform: scale(1.08); filter: drop-shadow(0 0 6px rgba(22,163,74,.6)); } }
/* 6 nightly: scans for secrets, uploads, the moon is out */
.motion .agent-bot[data-step="6"] .b-scan { animation: scan 1.6s ease-in-out infinite alternate; }
.motion .agent-bot[data-step="6"] .b-up { animation: up 1.4s ease-in-out infinite; }
.motion .agent-bot[data-step="6"] .b-stars circle { animation: twinkle 1.8s ease-in-out infinite alternate; }
.agent-bot[data-step="6"] .b-eyes circle { fill: #c7d2fe; }
@keyframes scan { from { transform: translateY(0); } to { transform: translateY(18px); } }
@keyframes up { 0% { transform: translateY(4px); opacity: 0; } 50% { opacity: 1; } 100% { transform: translateY(-6px); opacity: 0; } }
@keyframes twinkle { to { opacity: .2; } }


/* ---- Theme switch. Dark rules above apply when the system is dark unless the visitor
   picked light; the same rules repeat here for a visitor who picked dark.
   New dark-mode CSS must follow the same pattern. */
:root[data-theme="dark"] { color-scheme: dark; }
:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"]:not([data-theme="light"]) {
    --bg: #111317; --soft: #171a1f; --card: #1a1d23; --ink: #f1f2f4; --text: #d9dce1;
    --muted: #9aa1ab; --line: #2b2f37; --blue: #7fb0ff; --blue-ink: #a9c9ff; --blue-soft: #16202f; --blue-line: #263a5a;
  }
:root[data-theme="dark"] .intro::before,
:root[data-theme="dark"] .intro::after { opacity: .18; }
:root[data-theme="dark"] .btn.primary,
:root[data-theme="dark"] .bubble-btn,
:root[data-theme="dark"] .chat-panel header,
:root[data-theme="dark"] .track-chips button[aria-pressed="true"],
:root[data-theme="dark"] ol.flow li::before { background: #2b63c4 !important; color: #fff !important; border-color: #2b63c4 !important; }
:root[data-theme="dark"] .cell-ico { color: var(--g1); }
:root[data-theme="dark"] .traits.pebbles > .pebble { background: radial-gradient(circle at 30% 22%, color-mix(in srgb, var(--tint) 22%, var(--card)), var(--card) 80%); }
:root[data-theme="dark"] .core-skills li svg { color: var(--g1); }
:root[data-theme="dark"] .numbers .num b { color: var(--g1); }

/* Header switches: light/dark and pause animations */
.site-header .wrap { gap: 12px; }
.prefs { display: flex; gap: 6px; margin-left: 4px; }
.pref { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); color: var(--ink); cursor: pointer; transition: border-color .2s, transform .2s; }
.pref:hover { border-color: var(--blue-line); transform: translateY(-1px); }
.pref:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.pref svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pref .i-moon path, .pref .i-play path { fill: currentColor; stroke: none; }
.pref .i-sun, .pref .i-play { display: none; }
:root[data-theme="dark"] .pref .i-moon { display: none; }
:root[data-theme="dark"] .pref .i-sun { display: block; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .pref .i-moon { display: none; } :root:not([data-theme="light"]) .pref .i-sun { display: block; } }
.pref[aria-pressed="true"] .i-pause { display: none; }
.pref[aria-pressed="true"] .i-play { display: block; }
/* Pause animations: everything rests and nothing stays hidden */
html.no-motion *, html.no-motion *::before, html.no-motion *::after { animation-play-state: paused !important; transition-duration: 0s !important; scroll-behavior: auto !important; }
html.no-motion .rv { opacity: 1 !important; transform: none !important; }
html.no-motion .progress { display: none; }
@media (max-width: 760px) { .prefs { margin-left: auto; } }

/* Accessibility fixes (axe, WCAG 2.2 AA) */
.more-line { margin: 6px 0 10px; }
.more-line .more-link { display: inline-flex; align-items: center; min-height: 32px; font: 600 .86rem var(--sans); color: var(--blue-ink); }
.access-form .opt { opacity: 1; color: var(--muted); }
.criteria-chart figcaption { color: #3a3f47; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 14px; border-radius: 10px; background: var(--ink); color: var(--bg); font-weight: 600; text-decoration: none; transition: top .15s; }
.skip-link:focus { top: 10px; outline: 3px solid var(--blue); outline-offset: 2px; }
main:focus { outline: none; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.nav a { white-space: nowrap; }
.site-header .brand { white-space: nowrap; }
@media (max-width: 1080px) and (min-width: 761px) { .nav { gap: 14px; font-size: .86rem; } .site-header .wrap { gap: 10px; } }

/* ---- 11 Nov (10): value cards with animated scenes instead of photos */
.intro .values { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1100px) { .intro .values { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .intro .values { grid-template-columns: 1fr; } }
.intro .values .v-art { display: block; aspect-ratio: 16 / 10; background: linear-gradient(160deg, color-mix(in srgb, var(--g1) 18%, var(--card)), color-mix(in srgb, var(--g2) 8%, var(--card))); border-bottom: 1px solid var(--line); }
.intro .values .v-art svg { display: block; width: 100%; height: 100%; }
.vx * { transform-box: fill-box; }
.vx-glow { fill: color-mix(in srgb, var(--g1) 16%, transparent); }
/* win: hands meet and shake, a deal sparks, a coin drops in */
.vx-sleeve-a { fill: var(--g2); } .vx-cuff-a { fill: #fff; stroke: var(--g2); stroke-width: 2; }
.vx-sleeve-b { fill: #f59e0b; } .vx-cuff-b { fill: #fff; stroke: #f59e0b; stroke-width: 2; }
.vx-spark path { stroke: #fbbf24; stroke-width: 4; stroke-linecap: round; }
.vx-coin circle { fill: #fbbf24; stroke: #d97706; stroke-width: 2; } .vx-coin text { font: 700 14px var(--sans); fill: #92400e; text-anchor: middle; }
.vx-door rect { fill: none; stroke: color-mix(in srgb, var(--g2) 50%, transparent); stroke-width: 3; } .vx-door circle { fill: color-mix(in srgb, var(--g2) 50%, transparent); }
.motion .vx-left { animation: hand-l 3.2s ease-in-out infinite; }
.motion .vx-right { animation: hand-r 3.2s ease-in-out infinite; }
@keyframes hand-l { 0% { transform: translateX(-26px); } 30%, 80% { transform: translateX(0); } 40%, 60% { transform: translate(0, -5px); } 50%, 70% { transform: translate(0, 5px); } 100% { transform: translateX(-26px); } }
@keyframes hand-r { 0% { transform: translateX(26px); } 30%, 80% { transform: translateX(0); } 40%, 60% { transform: translate(0, -5px); } 50%, 70% { transform: translate(0, 5px); } 100% { transform: translateX(26px); } }
.motion .vx-spark { animation: spark 3.2s ease-in-out infinite; transform-origin: 50% 100%; }
@keyframes spark { 0%, 35% { opacity: 0; transform: scale(.4); } 50%, 75% { opacity: 1; transform: scale(1); } 90%, 100% { opacity: 0; } }
.motion .vx-coin { animation: coin 3.2s ease-in-out infinite; }
@keyframes coin { 0%, 45% { opacity: 0; transform: translateY(-14px); } 60%, 85% { opacity: 1; transform: translateY(0); } 100% { opacity: 0; } }
/* keep: a beating heart, reminders orbiting, the bell rings, the phone calls back */
.vx-heart { fill: #ef4444; }
.vx-ring { fill: none; stroke: color-mix(in srgb, var(--g2) 35%, transparent); stroke-width: 2; stroke-dasharray: 4 6; }
.vx-sat circle { fill: #fff; stroke: var(--g2); stroke-width: 2.5; } .vx-sat path { fill: none; stroke: var(--g2); stroke-width: 2.5; stroke-linecap: round; }
.vx-bell path { fill: #fbbf24; } .vx-bell circle { fill: #d97706; }
.vx-phone rect { fill: #fff; stroke: var(--g2); stroke-width: 2.5; } .vx-phone path { stroke: var(--g2); stroke-width: 2.5; stroke-linecap: round; }
.motion .vx-heart { animation: beat 1.6s ease-in-out infinite; transform-origin: 50% 50%; }
.motion .vx-orbit { animation: spin 9s linear infinite; transform-origin: 50% 50%; transform-box: view-box; transform-origin: 120px 75px; }
.motion .vx-orbit .vx-sat { animation: spin 9s linear infinite reverse; transform-origin: 50% 50%; }
.motion .vx-bell { animation: ring 2.4s ease-in-out infinite; transform-origin: 50% 0; }
@keyframes ring { 0%, 60%, 100% { transform: rotate(0); } 65% { transform: rotate(16deg); } 72% { transform: rotate(-14deg); } 79% { transform: rotate(9deg); } 86% { transform: rotate(-5deg); } }
.motion .vx-phone { animation: buzz 2.4s ease-in-out infinite; }
@keyframes buzz { 0%, 20%, 100% { transform: translateX(0); } 4%, 12% { transform: translateX(-2px); } 8%, 16% { transform: translateX(2px); } }
/* more in less time: the stopwatch hand races while tasks check off */
.vx-face { fill: #fff; stroke: var(--g2); stroke-width: 4; } .vx-crown { stroke: var(--g2); stroke-width: 4; stroke-linecap: round; }
.vx-hand-s { stroke: #ef4444; stroke-width: 3.5; stroke-linecap: round; } .vx-pin { fill: var(--g2); }
.vx-tasks rect { fill: #fff; stroke: color-mix(in srgb, var(--g2) 40%, transparent); stroke-width: 2; } .vx-tasks .ln { fill: color-mix(in srgb, var(--g2) 25%, transparent); stroke: none; }
.vx-tasks .ck { fill: none; stroke: #16a34a; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 16; }
.vx-speed { stroke: color-mix(in srgb, var(--g2) 45%, transparent); stroke-width: 3; stroke-linecap: round; }
.motion .vx-hand-s { animation: spin 1.2s linear infinite; transform-box: view-box; transform-origin: 72px 78px; }
.motion .vx-tasks .t { animation: task 3.6s ease-in-out infinite; }
.motion .vx-tasks .t2 { animation-delay: .4s; } .motion .vx-tasks .t3 { animation-delay: .8s; }
.motion .vx-tasks .ck { animation: tick-draw 3.6s ease-in-out infinite; }
.motion .vx-tasks .t2 .ck { animation-delay: .4s; } .motion .vx-tasks .t3 .ck { animation-delay: .8s; }
@keyframes task { 0% { opacity: 0; transform: translateX(16px); } 15%, 80% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateX(-10px); } }
@keyframes tick-draw { 0%, 25% { stroke-dashoffset: 16; } 40%, 100% { stroke-dashoffset: 0; } }
/* whatever comes up: the scene cycles through a contract, a phone app, a ranch gate and a house */
.vx-range .r rect, .vx-range .r path:not(.ln) { fill: #fff; stroke: var(--g2); stroke-width: 3; stroke-linejoin: round; }
.vx-range .ln { fill: none; stroke: var(--g2); stroke-width: 3; stroke-linecap: round; }
.vx-range .scr { fill: color-mix(in srgb, var(--g1) 30%, #fff); stroke: none !important; }
.vx-range .ln-f { fill: var(--g2); }
.vx-range text { font: 700 16px var(--sans); fill: #16a34a; text-anchor: middle; }
.vx-range .r { opacity: 0; }
.vx-range .r1 { opacity: 1; }
.motion .vx-range .r { animation: cyc 8s ease-in-out infinite; transform-origin: 50% 50%; }
.motion .vx-range .r2 { animation-delay: 2s; } .motion .vx-range .r3 { animation-delay: 4s; } .motion .vx-range .r4 { animation-delay: 6s; }
@keyframes cyc { 0% { opacity: 0; transform: scale(.85) rotate(-4deg); } 6%, 22% { opacity: 1; transform: none; } 28%, 100% { opacity: 0; transform: scale(.9); } }
@media (prefers-reduced-motion: reduce) { .vx * { animation: none !important; } }
/* Snapchat: the white ghost with its black outline, on yellow */
.socials a.snap .logo::before { content: ""; position: absolute; inset: 6px; background: #000; -webkit-mask: var(--src) center / contain no-repeat; mask: var(--src) center / contain no-repeat; }
.socials a.snap .logo::after { inset: 8.5px; }
.intro .values .v-art svg { background: none; padding: 0; border-radius: 0; box-shadow: none; width: 100%; height: 100%; transform: none; }
.intro .values li:hover .v-art svg { transform: none; }
.intro .values .v-art { display: grid; place-items: center; }
.intro .values .v-anim { width: 46%; max-width: 132px; height: auto; filter: drop-shadow(0 10px 14px rgba(16,24,40,.18)); transition: transform .4s cubic-bezier(.2,.7,.2,1); }
.intro .values li:hover .v-anim { transform: scale(1.08) rotate(-3deg); }
.site-footer .footer-base a { color: inherit; }

/* ---- Traits cover-flow (carousel view): full width, the front card up close, the rest on a curve */
.art-carousel[data-view="carousel"] { position: relative; overflow: hidden; padding: 6px 0 0; }
.art-carousel[data-view="carousel"]:focus-visible { outline: 3px solid var(--blue); outline-offset: -3px; }
.art-carousel[data-view="carousel"] .track { display: block; position: relative; height: 650px; overflow: visible; perspective: 1500px; scroll-snap-type: none; }
.art-carousel[data-view="carousel"] figure.art-trait { position: absolute; left: 50%; top: 8px; width: 310px; cursor: pointer; transform-origin: 50% 40%;
  transition: transform .8s cubic-bezier(.2,.75,.2,1), opacity .6s ease; will-change: transform; }
.art-carousel[data-view="carousel"] figure.art-trait.center { cursor: default; }
.art-carousel[data-view="carousel"] figure.art-trait .art-frame { box-shadow: 0 24px 50px rgba(15,20,35,.28); }
.art-carousel[data-view="carousel"] figcaption { transition: opacity .45s ease; }
.art-carousel[data-view="carousel"] figure:not(.center) figcaption { opacity: 0; }
.art-carousel[data-view="carousel"] .controls { justify-content: center; margin-top: 2px; }
@media (max-width: 560px) {
  .art-carousel[data-view="carousel"] .track { height: 600px; }
  .art-carousel[data-view="carousel"] figure.art-trait { width: 68vw; }
}
html.no-motion .art-carousel[data-view="carousel"] figure.art-trait { transition: none; }
.art-carousel[data-view="carousel"] .track { height: 590px; }
.intro .values .v-anim { border-radius: 0; box-shadow: none; object-fit: contain; aspect-ratio: 1; }

/* ---- 11 Nov (11): jobs read clearly: bigger titles and company logos */
.job header { align-items: center; }
.job h3 { display: flex; align-items: center; gap: 12px; font-size: 1.14rem; line-height: 1.3; }
.job h3 img.brand { width: 40px; height: 40px; margin: 0; flex: 0 0 auto; border-radius: 10px; object-fit: contain; background: #fff; border: 1px solid var(--line); padding: 3px; vertical-align: 0; }
.job .org { font-size: .95rem; }
.job .org a.ext { color: var(--ink); font-weight: 600; }
.art-carousel[data-view="carousel"] figure.art-trait { top: 48px; }
.art-carousel[data-view="carousel"] .track { height: 630px; }

/* ---- Core skills: four tidy columns, one per area */
.core-skills { padding: 22px 24px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); box-shadow: 0 1px 2px rgba(16,24,40,.04); }
.core-skills .core-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; margin-bottom: 16px; }
.core-skills .core-head h3 { margin: 0; font-size: 1.15rem; }
.core-skills .core-head p { margin: 0; font-size: .86rem; color: var(--muted); }
.core-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 1000px) { .core-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .core-grid { grid-template-columns: 1fr; } }
.core-col { padding-top: 12px; border-top: 3px solid var(--g1); }
.core-col h4 { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font-size: .95rem; color: var(--ink); text-transform: none; letter-spacing: 0; }
.core-col h4 .area-badge { width: 28px; height: 28px; margin: 0; border-radius: 8px; }
.core-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.core-col li { position: relative; padding-left: 22px; font-size: .9rem; line-height: 1.4; color: var(--text); }
.core-col li::before { content: ""; position: absolute; left: 2px; top: .38em; width: 11px; height: 6px; border-left: 2.5px solid var(--g2); border-bottom: 2.5px solid var(--g2); transform: rotate(-45deg); }
:root[data-theme="dark"] .core-col li::before { border-color: var(--g1); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .core-col li::before { border-color: var(--g1); } }

/* ---- Bubble view (shared by /lab/bubbles and the portfolio's tools) */
.lab-bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin: 14px 0; }
.lab-bar .track-chips { margin: 0; }
.bubble-stage { position: relative; height: min(74vh, 640px); border-radius: 28px; overflow: hidden; user-select: none;
  background: radial-gradient(120% 90% at 50% 45%, #1d2a3d 0%, #0b0f16 72%); box-shadow: inset 0 0 0 1px rgba(255,255,255,.06), 0 30px 60px rgba(13,17,24,.25); }
.bubble { --d: 64px; position: absolute; left: 0; top: 0; width: var(--d); height: var(--d); text-decoration: none; transform-origin: 50% 50%; will-change: transform; cursor: pointer; }
.bubble-stage { --d: 64px; }
.bubble .ico { position: relative; display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%; overflow: hidden; background: #fff; box-shadow: 0 8px 18px rgba(0,0,0,.45); }
.bubble .ico::after { content: ""; position: absolute; inset: 0; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle at 32% 24%, rgba(255,255,255,.8), rgba(255,255,255,.16) 20%, transparent 42%), radial-gradient(circle at 68% 88%, rgba(0,0,0,.34), transparent 58%);
  box-shadow: inset -6px -10px 16px rgba(0,0,0,.3), inset 4px 6px 10px rgba(255,255,255,.26); }
.bubble .ico img, .bubble .ico .logo { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; vertical-align: 0; }
.bubble .ico .logo { width: 56%; height: 56%; border-radius: 0; }
.bubble .lbl { position: absolute; left: 50%; top: calc(100% + 4px); transform: translateX(-50%); width: max(76px, calc(var(--d) * 1.3)); text-align: center; font: 600 .68rem/1.15 var(--sans); color: #dfe7f3; text-shadow: 0 1px 4px rgba(0,0,0,.6); pointer-events: none; }
.bubble.over .lbl { color: #fff; }
.bubble:focus-visible .ico { outline: 3px solid #7fb0ff; outline-offset: 3px; }
.bubble-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; }
.bubble-list a { display: flex; align-items: center; gap: 10px; padding: 8px 12px; min-height: 48px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); color: var(--ink); text-decoration: none; }
.bubble-list a:hover { border-color: var(--blue-line); }
.bubble-list img.brand, .bubble-list .logo { width: 26px; height: 26px; border-radius: 7px; }
.bubble-list .thumb img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; display: block; }

.tools-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin: 26px 0 12px; }
.tools-bar .tools-h { margin: 0; }
.tools-bar .view-chips { float: none; margin: 0; }
.tools-views [data-pane] { display: none; }
.tools-views[data-tools-view="bubbles"] [data-pane="bubbles"] { display: block; }
.tools-views[data-tools-view="grid"] [data-pane="grid"] { display: grid; }
.tools-views[data-tools-view="list"] [data-pane="list"] { display: grid; }
.tools-bubbles .bubble-stage { height: min(64vh, 520px); }
.bubble-hint { margin: 0 0 10px; font-size: .84rem; color: var(--muted); }

/* ---- AI agent team: a sticky stage beside the steps; scrolling moves through them */
.ai-deep .agent-team { grid-column: 1 / -1; }
.agent-team .lead { max-width: 70ch; }
.agent-layout { display: grid; grid-template-columns: minmax(220px, 290px) minmax(0, 1fr); gap: 26px; align-items: start; margin-top: 16px; }
.agent-stage { position: sticky; top: 150px; }
.stage-inner { padding: 18px 16px 14px; border-radius: 20px; text-align: center; background: linear-gradient(180deg, var(--blue-soft), var(--card)); border: 1px solid var(--blue-line); }
.stage-art { position: relative; height: 210px; display: grid; place-items: center; }
.agent-robot { width: 150px; height: 150px; }
.agent-prop { position: absolute; right: 2%; top: 0; width: 86px; height: 86px; opacity: 0; transform: scale(.4) translate(-30px, 40px) rotate(-14deg); transition: opacity .4s ease, transform .6s cubic-bezier(.2,.8,.25,1.25); pointer-events: none; }
.agent-prop.on { opacity: 1; transform: none; }
.motion .stage-art.hop .agent-robot { animation: hop .6s cubic-bezier(.2,.8,.2,1); }
@keyframes hop { 35% { transform: translateY(-16px) rotate(-5deg); } 70% { transform: translateY(3px) rotate(1deg); } }
.stage-label { margin: 6px 0 4px; font-size: .95rem; color: var(--ink); font-weight: 600; min-height: 1.4em; }
.stage-label span { display: none; } .stage-label span.on { display: inline; }
.agent-stage .agent-live { display: block; font-size: .78rem; color: var(--muted); margin: 0; }
.agent-stage .agent-live .dot { display: inline-block; vertical-align: middle; margin-right: 6px; }
.agent-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.agent-steps li { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 12px; padding: 16px 18px; border-radius: 16px; border: 1px solid var(--line); background: var(--card); cursor: pointer; transition: border-color .3s, box-shadow .3s, transform .35s cubic-bezier(.2,.7,.2,1); }
.agent-steps li.on { border-color: var(--blue-line); box-shadow: 0 14px 30px rgba(23,70,141,.12); transform: translateX(4px); }
.agent-steps .n { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: .9rem; background: var(--blue-soft); color: var(--blue-ink); transition: background .3s, color .3s; }
.agent-steps li.on .n { background: var(--blue); color: #fff; }
.agent-steps h4 { margin: 4px 0 4px; font-size: 1.02rem; color: var(--ink); text-transform: none; letter-spacing: 0; }
.agent-steps p { margin: 0 0 6px; font-size: .93rem; line-height: 1.5; }
.agent-steps .benefit { margin: 0; color: var(--muted); font-size: .88rem; }
.agent-steps .benefit b { color: var(--blue-ink); font-weight: 600; }
@media (max-width: 760px) {
  .agent-layout { grid-template-columns: 1fr; }
  .agent-stage { top: 64px; z-index: 5; }
  .stage-inner { display: flex; align-items: center; gap: 12px; padding: 8px 12px; text-align: left; }
  .stage-art { height: 84px; width: 110px; flex: 0 0 auto; }
  .agent-robot { width: 72px; height: 72px; }
  .agent-prop { width: 44px; height: 44px; right: -6px; }
  .agent-stage .agent-live { display: none; }
}
@media (prefers-reduced-motion: reduce) { .agent-prop { transition: none; } }
.ai-deep { grid-template-columns: 1fr; }
.ai-deep .ai-card:not(.agent-team) ul { columns: 2 320px; column-gap: 32px; }
.ai-deep .ai-card:not(.agent-team) li { break-inside: avoid; margin-bottom: 10px; }
.resume-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .resume-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---- 11 Nov (12): a wider page so grids breathe; paragraphs keep a readable measure */
:root { --max: 1120px; }
.section-label > div > p, .section-label > div > .lede, .intro p, .prose p, .group-intro { max-width: 72ch; }
.core-skills .core-col li { display: block; background: none; border: 0; border-radius: 0; box-shadow: none; padding: 0 0 0 22px; font-weight: 400; font-size: .9rem; color: var(--text); transform: none; }
.core-skills .core-col li:hover { transform: none; box-shadow: none; }
.core-skills .core-col li::before { background: none; border-radius: 0; width: 11px; height: 6px; left: 2px; top: .38em; }
/* Pause means no animation at all (not frozen mid-way), so nothing is left hidden */
html.no-motion *, html.no-motion *::before, html.no-motion *::after { animation: none !important; }
.socials .soc-img { width: 36px; height: 36px; flex: 0 0 auto; border-radius: 11px; box-shadow: 0 4px 10px rgba(0,0,0,.12); }
.intro .socials .soc-img { width: 36px; height: 36px; border-radius: 11px; box-shadow: 0 4px 10px rgba(0,0,0,.12); object-fit: cover; }

/* Paintings zoom from near the top, so heads at the top edge are never cropped */
.art-frame img { transform-origin: 50% 6%; }
@keyframes drift-art { from { transform: scale(1.0); } to { transform: scale(1.05); } }
.art-trait:hover .art-frame img { transform: scale(1.04); }

/* Carousel controls sit on the front card: arrows on its edges, pause in the middle */
.art-carousel { --cw: 310px; }
.art-carousel[data-view="carousel"] figure.art-trait { width: var(--cw); }
.art-carousel[data-view="carousel"] .controls { position: absolute; z-index: 300; left: 50%; top: calc(48px + var(--cw) * 1.25 / 2 + 6px); width: calc(var(--cw) + 44px); transform: translate(-50%, -50%); display: flex; justify-content: space-between; align-items: center; margin: 0; pointer-events: none; }
.art-carousel[data-view="carousel"] .controls button { pointer-events: auto; width: 46px; height: 46px; border: 0; border-radius: 50%; background: rgba(255,255,255,.92); color: #111; font-size: 1.3rem; box-shadow: 0 6px 18px rgba(0,0,0,.25); }
.art-carousel[data-view="carousel"] .controls button:hover { background: #fff; transform: scale(1.06); }
.art-carousel[data-view="carousel"] .controls .pause { order: 2; width: 52px; height: 52px; font-size: .78rem; opacity: 0; transition: opacity .25s; }
.art-carousel[data-view="carousel"] .controls .next { order: 3; }
.art-carousel[data-view="carousel"]:hover .controls .pause, .art-carousel[data-view="carousel"] .controls .pause:focus-visible, .art-carousel[data-view="carousel"] .controls .pause[aria-pressed="true"] { opacity: 1; }
@media (hover: none) { .art-carousel[data-view="carousel"] .controls .pause { opacity: .9; } }
.art-carousel[data-view="carousel"] .controls .count { display: none; }
.art-carousel[data-view="carousel"] .track { height: 600px; }
@media (max-width: 560px) { .art-carousel { --cw: 68vw; } .art-carousel[data-view="carousel"] .track { height: calc(68vw * 1.25 + 230px); } }

/* ---- Wide company logos (Sapphire wordmark, Rize) keep their shape */
.job h3 img.brand.wide { width: auto; max-width: 160px; height: 40px; padding: 5px 8px; }

/* ---- AI: the "under the hood" line spans the three columns */
.ai-foundation { margin: 22px 0 0; padding: 14px 18px; border-left: 3px solid var(--blue); background: var(--blue-soft); border-radius: 0 10px 10px 0; font-size: .95rem; }
#ai .ai-foundation, .ai-foundation.ai-foundation { max-width: none; }

/* ---- AI agent team, v3: a live system diagram instead of the robot. The stage stays
   centred beside the step being read; each step lights its part of the system. */
.agent-stage { top: max(150px, calc(50vh - 170px)); }
.stage-art { height: auto; display: block; }
.agent-stage .sys { display: block; width: 100%; height: auto; overflow: visible; }
.sys text { font: 600 11px var(--sans); fill: var(--ink); }
.sys .as-cap { font-weight: 500; font-size: 10px; fill: var(--muted); }
.as-node rect { fill: var(--card); stroke: var(--blue-line); stroke-width: 1.5; transition: stroke .35s, fill .35s; }
.as-core { fill: var(--blue); }
.as-led { fill: var(--muted); transition: fill .35s; }
.as-wire { fill: none; stroke: var(--blue-line); stroke-width: 2; transition: stroke .35s; }
.as-fillb { fill: var(--blue); }
.as-sc { opacity: 0; transition: opacity .45s ease; }
.as-sc.on { opacity: 1; }
.agent-team[data-step="1"] .as-planner rect, .agent-team[data-step="2"] .as-worker rect { stroke: var(--blue); fill: var(--blue-soft); }
.agent-team[data-step="1"] .as-wire, .agent-team[data-step="2"] .as-wire { stroke: var(--blue); }
.agent-team[data-step="2"] .as-led { fill: #22a06b; }
.as-card { fill: var(--card); stroke: var(--line); stroke-width: 1.5; }
.as-line { fill: none; stroke: var(--muted); stroke-width: 2.5; stroke-linecap: round; }
.as-box { fill: none; stroke: var(--blue); stroke-width: 1.5; }
.as-chip { fill: var(--blue); opacity: 0; }
.as-pkt { fill: #22a06b; opacity: 0; }
.as-chip.c1, .as-pkt.p1 { offset-path: path("M150 50 C150 80 62 82 62 112"); }
.as-chip.c2, .as-pkt.p2 { offset-path: path("M150 50 L150 112"); }
.as-chip.c3, .as-pkt.p3 { offset-path: path("M150 50 C150 80 238 82 238 112"); }
.as-track { fill: var(--line); }
.as-bar { fill: var(--blue); transform-box: fill-box; transform-origin: 0 50%; }
.as-flow { fill: none; stroke: var(--blue); stroke-width: 2; stroke-dasharray: 3 4; }
.as-phone { fill: var(--card); stroke: var(--ink); stroke-width: 2; }
.as-note { fill: color-mix(in srgb, var(--blue) 28%, transparent); stroke: var(--blue); stroke-width: 1.2; }
.as-sun circle { fill: #f59e0b; } .as-sun path { stroke: #f59e0b; stroke-width: 2; stroke-linecap: round; }
.as-sun { transform-box: fill-box; transform-origin: center; }
.as-ask rect { fill: var(--blue-soft); stroke: var(--blue); stroke-width: 1.5; }
.sys .as-ask text { font-size: 18px; font-weight: 700; fill: var(--blue-ink); }
.as-face { fill: var(--card); stroke: var(--line); stroke-width: 3; }
.as-sweep { fill: none; stroke: var(--blue); stroke-width: 3; stroke-linecap: round; }
.as-hand { stroke: var(--ink); stroke-width: 2; stroke-linecap: round; transform-box: view-box; transform-origin: 150px 204px; }
.as-ok { fill: none; stroke: #22a06b; stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; }
.as-loop path { fill: none; stroke: var(--blue); stroke-width: 2.5; stroke-linecap: round; }
.as-loop { transform-box: fill-box; transform-origin: center; }
.as-shield { fill: rgba(34,160,107,.06); stroke: #22a06b; stroke-width: 2; stroke-dasharray: 7 5; }
.as-ic circle { fill: var(--card); stroke: var(--line); stroke-width: 1.5; }
.sys .as-ic text { font-size: 15px; font-weight: 700; }
.as-glyph { fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linejoin: round; }
.as-lock { fill: #22a06b; transform-box: fill-box; transform-origin: center; }
.as-moon path { fill: #c7d2fe; } .as-star { fill: #fbbf24; }
.as-scan { fill: #22a06b; opacity: .75; }
.as-cloud path:first-child { fill: var(--blue-soft); stroke: var(--blue); stroke-width: 1.5; }
.as-upa { fill: none; stroke: var(--blue); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }

/* the motion, only while it is that step's turn */
.motion .agent-team[data-step="1"] .as-wire, .motion .agent-team[data-step="2"] .as-wire { stroke-dasharray: 5 5; animation: as-march .9s linear infinite; }
.motion .as-sc.on .as-chip { animation: as-deal 2.6s cubic-bezier(.45,.05,.3,1) infinite; }
.motion .as-sc.on .as-chip.c2 { animation-delay: .5s; } .motion .as-sc.on .as-chip.c3 { animation-delay: 1s; }
.motion .as-sc.on .as-line.l1, .motion .as-sc.on .as-line.l2, .motion .as-sc.on .as-line.l3 { stroke-dasharray: 50; animation: as-write 3.2s ease infinite; }
.motion .as-sc.on .as-line.l2 { animation-delay: .35s; } .motion .as-sc.on .as-line.l3 { animation-delay: .7s; }
.motion .agent-team[data-step="1"] .as-core { animation: as-glow 1.6s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.motion .as-sc.on .as-pkt { animation: as-deal 1.4s linear infinite; }
.motion .as-sc.on .as-pkt.p2 { animation-delay: .45s; } .motion .as-sc.on .as-pkt.p3 { animation-delay: .9s; }
.motion .as-sc.on .as-bar.b1 { animation: as-fill 2.8s ease-in-out infinite; }
.motion .as-sc.on .as-bar.b2 { animation: as-fill 3.6s ease-in-out infinite .4s; }
.motion .as-sc.on .as-bar.b3 { animation: as-fill 2.2s ease-in-out infinite .8s; }
.motion .agent-team[data-step="2"] .as-led { animation: as-blink 1s steps(2) infinite; }
.motion .as-sc.on .as-flow { animation: as-march .8s linear infinite; }
.motion .as-sc.on .as-note.n1 { animation: as-n1 6s ease infinite; }
.motion .as-sc.on .as-note.n2 { animation: as-n2 6s ease infinite; }
.motion .as-sc.on .as-note.n3 { animation: as-n3 6s ease infinite; }
.motion .as-sc.on .as-sun { animation: spin 14s linear infinite; }
.motion .as-sc.on .as-ask { animation: as-n1 5s ease infinite; }
.motion .as-sc.on .as-sweep { stroke-dasharray: 107; animation: as-sweep 5s linear infinite; }
.motion .as-sc.on .as-hand { animation: as-hand 5s linear infinite; }
.motion .as-sc.on .as-timer { animation: as-time 5s ease infinite; }
.motion .as-sc.on .as-ok { stroke-dasharray: 32; animation: as-ok 5s ease infinite; }
.motion .as-sc.on .as-loop { animation: spin 3s linear infinite; }
.motion .as-sc.on .as-shield { animation: as-march 1.6s linear infinite; }
.motion .as-sc.on .as-lock { animation: as-lock 2.4s ease infinite; }
.motion .as-sc.on .i2 .as-lock { animation-delay: .3s; } .motion .as-sc.on .i3 .as-lock { animation-delay: .6s; } .motion .as-sc.on .i4 .as-lock { animation-delay: .9s; }
.motion .as-sc.on .as-scan { animation: as-scan 1.8s ease-in-out infinite alternate; }
.motion .as-sc.on .as-upa { animation: up 1.6s ease-in-out infinite; }
.motion .as-sc.on .as-star { animation: twinkle 1.8s ease-in-out infinite alternate; }
.motion .as-sc.on .as-star.s2 { animation-delay: .6s; } .motion .as-sc.on .as-star.s3 { animation-delay: 1.2s; }
@keyframes as-march { to { stroke-dashoffset: -20; } }
@keyframes as-deal { 0% { offset-distance: 0%; opacity: 0; } 12% { opacity: 1; } 78% { offset-distance: 100%; opacity: 1; } 100% { offset-distance: 100%; opacity: 0; } }
@keyframes as-write { 0% { stroke-dashoffset: 50; } 40%, 85% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 0; opacity: .3; } }
@keyframes as-glow { 50% { transform: scale(1.35); } }
@keyframes as-fill { 0% { transform: scaleX(.05); } 70%, 85% { transform: scaleX(1); } 100% { transform: scaleX(.05); } }
@keyframes as-blink { 50% { fill: var(--muted); } }
@keyframes as-n1 { 0% { opacity: 0; transform: translateY(-6px); } 8%, 88% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes as-n2 { 0%, 28% { opacity: 0; transform: translateY(-6px); } 36%, 88% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes as-n3 { 0%, 56% { opacity: 0; transform: translateY(-6px); } 64%, 88% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes as-sweep { 0% { stroke-dashoffset: 107; } 70%, 100% { stroke-dashoffset: 0; } }
@keyframes as-hand { 0% { transform: rotate(0); } 70%, 100% { transform: rotate(360deg); } }
@keyframes as-time { 0%, 70% { opacity: 1; } 80%, 95% { opacity: .15; } 100% { opacity: 1; } }
@keyframes as-ok { 0%, 72% { stroke-dashoffset: 32; opacity: 1; } 86%, 95% { stroke-dashoffset: 0; opacity: 1; } 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes as-lock { 0%, 55%, 100% { transform: translateY(0); } 65% { transform: translateY(-4px); } 75% { transform: translateY(0); } 82% { transform: translateY(-2px); } }
@keyframes as-scan { from { transform: translateY(0); } to { transform: translateY(48px); } }
@media (max-width: 760px) {
  .agent-stage { top: 64px; }
  .stage-art { width: 170px; height: auto; }
  .sys .as-cap { display: none; }
}
.tl-lede { margin: 2px 0 12px; color: var(--muted); font-size: .95rem; }
@media (min-width: 981px) { .agent-layout { grid-template-columns: minmax(250px, 340px) minmax(0, 1fr); } }
@media (max-width: 980px) and (min-width: 761px) { .agent-layout { grid-template-columns: minmax(220px, 280px) minmax(0, 1fr); gap: 18px; } }

/* ---- Job logos: one size for every company, large enough to read */
.job h3 img.brand, .job h3 img.brand.wide { width: 104px; height: 56px; max-width: none; padding: 7px 10px; border-radius: 12px; object-fit: contain; background: #fff; border: 1px solid var(--line); flex: 0 0 auto; }
@media (max-width: 560px) { .job h3 img.brand, .job h3 img.brand.wide { width: 84px; height: 46px; padding: 5px 8px; } }

/* ---- Proof-of-work photos: the same cover-flow as the traits, arrows on the photo */
.carousel.flow { position: relative; overflow: hidden; padding: 8px 0 6px; --pw: min(500px, 80%); }
.carousel.flow:focus-visible { outline: 3px solid var(--blue); outline-offset: -3px; }
.carousel.flow .track { display: block; position: relative; height: 430px; overflow: visible; perspective: 1400px; scroll-snap-type: none; }
.carousel.flow figure { position: absolute; left: 50%; top: 6px; width: var(--pw); margin: 0; display: block; cursor: pointer; transform-origin: 50% 45%; transition: transform .7s cubic-bezier(.2,.75,.2,1), opacity .5s ease; }
.carousel.flow figure.center { cursor: default; }
.carousel.flow img, .carousel.flow:not(.phones):not(.books) img { display: block; width: 100%; height: auto; max-width: none; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 14px; box-shadow: 0 20px 44px rgba(10,15,30,.28); }
.carousel.flow.phones { --pw: 230px; }
.carousel.flow.phones img { aspect-ratio: auto; object-fit: contain; border: 1px solid var(--line); }
.carousel.flow figcaption { width: auto; min-width: 0; margin-top: 12px; text-align: center; transition: opacity .4s ease; }
.carousel.flow figure:not(.center) figcaption { opacity: 0; }
.carousel.flow .controls { position: absolute; z-index: 300; left: 50%; top: calc(14px + var(--ch, 375px) / 2); width: calc(var(--cw, 500px) - 20px); transform: translate(-50%, -50%); display: flex; justify-content: space-between; align-items: center; margin: 0; pointer-events: none; }
.carousel.flow .controls button { pointer-events: auto; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255,255,255,.92); color: #111; font-size: 1.3rem; box-shadow: 0 6px 18px rgba(0,0,0,.25); }
.carousel.flow .controls button:hover:not(:disabled) { background: #fff; transform: scale(1.06); }
.carousel.flow .controls .count { position: absolute; left: 50%; top: calc(var(--ch, 375px) / 2 - 12px); transform: translateX(-50%); margin: 0; padding: 3px 10px; border-radius: 99px; background: rgba(0,0,0,.6); color: #fff; font-size: .78rem; white-space: nowrap; }
html.no-motion .carousel.flow figure { transition: none; }
@media (prefers-reduced-motion: reduce) { .carousel.flow figure { transition: opacity .2s; } }
@media (max-width: 560px) { .carousel.flow { --pw: 84%; } .carousel.flow.phones { --pw: 62%; } .carousel.flow .controls button { width: 38px; height: 38px; } }

/* ---- AI agent team, scroll story: the diagram is pinned and large; scrolling through
   the tall track swaps the step text beside it, one step at a time. */
.agent-story { position: relative; height: calc(var(--steps) * 60vh + 100vh - 170px); margin-top: 18px; }
.agent-pin { position: sticky; top: 150px; height: calc(100vh - 170px); min-height: 420px; max-height: 700px; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 36px; align-items: center; }
.agent-pin .agent-stage { position: static; top: auto; }
.agent-pin .stage-inner { display: block; padding: 22px 22px 16px; text-align: center; }
.agent-pin .stage-art { width: 100%; height: auto; }
.agent-pin .sys { width: 100%; max-height: calc(100vh - 340px); min-height: 220px; }
.agent-pin .sys .as-cap { display: inline; }
.agent-text { position: relative; }
.agent-pin .agent-steps { position: relative; display: block; min-height: 300px; }
.agent-pin .agent-steps li { position: absolute; inset: 0 0 auto 0; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; padding: 0; border: 0; background: none; box-shadow: none; cursor: default; opacity: 0; transform: translateY(26px); transition: opacity .45s ease, transform .6s cubic-bezier(.2,.75,.2,1); pointer-events: none; }
.agent-pin .agent-steps li.on { opacity: 1; transform: none; pointer-events: auto; }
.agent-pin .agent-steps .n { width: 40px; height: 40px; font-size: 1.05rem; background: var(--blue); color: #fff; }
.agent-pin .agent-steps h4 { font-size: 1.45rem; line-height: 1.25; margin: 4px 0 10px; }
.agent-pin .agent-steps p { font-size: 1.04rem; line-height: 1.6; margin-bottom: 12px; }
.agent-pin .agent-steps .benefit { font-size: .98rem; }
.agent-dots { display: flex; gap: 8px; margin: 8px 0 0 58px; }
.agent-dots button { width: 10px; height: 10px; padding: 0; border: 0; border-radius: 99px; background: var(--line); cursor: pointer; transition: width .3s, background .3s; }
.agent-dots button[aria-current="true"] { width: 28px; background: var(--blue); }
.agent-dots button:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
html.no-motion .agent-pin .agent-steps li { transition: none; }
@media (max-width: 760px) {
  .agent-story { height: calc(var(--steps) * 70vh + 100vh - 80px); }
  .agent-pin { top: 64px; height: calc(100vh - 80px); max-height: none; grid-template-columns: 1fr; grid-template-rows: auto 1fr; gap: 14px; align-items: start; }
  .agent-pin .stage-inner { display: block; padding: 10px 10px 8px; }
  .agent-pin .stage-art { width: 100%; }
  .agent-pin .sys { max-height: 36vh; min-height: 0; }
  .agent-pin .stage-label { margin: 2px 0; }
  .agent-pin .agent-live { display: none; }
  .agent-pin .agent-steps { min-height: 260px; }
  .agent-pin .agent-steps li { grid-template-columns: 34px minmax(0, 1fr); gap: 10px; }
  .agent-pin .agent-steps .n { width: 32px; height: 32px; font-size: .9rem; }
  .agent-pin .agent-steps h4 { font-size: 1.12rem; margin-bottom: 6px; }
  .agent-pin .agent-steps p { font-size: .95rem; line-height: 1.5; margin-bottom: 8px; }
  .agent-dots { margin-left: 44px; }
}
/* step dots: 24px touch targets around the small visible dot */
.agent-dots { gap: 0; }
.agent-dots button { width: 24px; height: 24px; background: transparent; position: relative; }
.agent-dots button::after { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 10px; border-radius: 99px; background: var(--line); transform: translate(-50%, -50%); transition: width .3s, background .3s; }
.agent-dots button[aria-current="true"] { width: 38px; background: transparent; }
.agent-dots button[aria-current="true"]::after { width: 28px; background: var(--blue); }

/* ---- Tools: the grid shows first; the Bubbles button waves for attention, with little
   balls bouncing out of it, until someone tries it. */
[data-tool-view="bubbles"] { position: relative; overflow: visible; }
.lure-balls { display: none; }
.lure .lure-balls { display: block; position: absolute; inset: 0; pointer-events: none; }
.lure-balls i { position: absolute; left: 50%; top: 50%; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; border-radius: 50%; opacity: 0;
  background: radial-gradient(circle at 32% 30%, #fff 0 18%, var(--b) 45%); }
.lure-balls i:nth-child(1) { --b: #f97316; --dx: -34px; --dy: -30px; }
.lure-balls i:nth-child(2) { --b: #22c55e; --dx: -10px; --dy: -42px; animation-delay: .18s !important; }
.lure-balls i:nth-child(3) { --b: #3b82f6; --dx: 16px; --dy: -38px; animation-delay: .32s !important; }
.lure-balls i:nth-child(4) { --b: #eab308; --dx: 36px; --dy: -26px; animation-delay: .46s !important; }
.motion .lure { animation: lure-pulse 3.6s ease-in-out infinite; }
.motion .lure .lure-balls i { animation: lure-pop 3.6s cubic-bezier(.2,.8,.3,1) infinite; }
@keyframes lure-pulse { 0%, 60%, 100% { box-shadow: 0 0 0 0 rgba(31,95,191,0); transform: none; } 8% { transform: scale(1.06); } 16% { transform: scale(.98); } 22% { transform: scale(1.03); box-shadow: 0 0 0 7px rgba(31,95,191,.18); } 40% { box-shadow: 0 0 0 12px rgba(31,95,191,0); transform: none; } }
@keyframes lure-pop { 0% { opacity: 0; transform: translate(0, 0) scale(.4); } 8% { opacity: 1; } 22% { transform: translate(var(--dx), var(--dy)) scale(1); } 30% { transform: translate(calc(var(--dx) * 1.15), calc(var(--dy) * .55)) scale(1); } 36% { transform: translate(calc(var(--dx) * 1.25), calc(var(--dy) * .8)) scale(1); opacity: 1; } 48%, 100% { transform: translate(calc(var(--dx) * 1.3), calc(var(--dy) * .4)) scale(.6); opacity: 0; } }

/* Book a call (12 Nov 2026): the band at the end of the portfolio and the /book page. */
.book-band { padding: clamp(40px, 7vw, 72px) 0; }
.book-card { display: flex; align-items: center; justify-content: space-between; gap: 20px 32px; flex-wrap: wrap;
  background: linear-gradient(135deg, var(--blue-soft), var(--card)); border: 1px solid var(--blue-line);
  border-radius: 14px; padding: clamp(20px, 4vw, 34px); box-shadow: 0 10px 30px rgba(23, 70, 141, .08); }
.book-card h2 { font-family: var(--serif); font-size: clamp(1.5rem, 3.2vw, 2rem); margin: 4px 0 6px; }
.book-card p { margin: 0; color: var(--muted); max-width: 46ch; }
.book-card .btns { margin: 0; }
.book-page { padding: clamp(32px, 6vw, 56px) 0; }
.book-page .lede { max-width: 60ch; }
.book-frame { margin: 22px 0 10px; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #fff;
  box-shadow: 0 10px 30px rgba(23, 70, 141, .08); }
.book-frame iframe { display: block; width: 100%; height: min(760px, 85vh); border: 0; }
.book-page .fine { font-size: .9rem; color: var(--muted); }
