:root {
  --bg: #FAF7F2;
  --surface: #FFFFFF;
  --text: #2A2B33;
  --muted: #6B6C76;
  --line: #ECE6DC;
  --accent: #2F8F83;
  --accent-soft: #DCEFEC;
  --coral: #E98A6B;
  --sun: #E8B54A;
  --skin: #F3CBA5;
  --hair: #2C2B33;
  --shirt: #2F8F83;
  --shadow: 0 6px 24px rgba(42, 43, 51, .07);
  --radius: 18px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #17191E; --surface: #20232A; --text: #E9E7E2; --muted: #A3A4AC;
    --line: #2E3139; --accent: #5BC0B2; --accent-soft: #23403C;
    --shirt: #3AA597; --shadow: 0 6px 24px rgba(0,0,0,.3);
  }
}
:root[data-theme="dark"] {
  --bg: #17191E; --surface: #20232A; --text: #E9E7E2; --muted: #A3A4AC;
  --line: #2E3139; --accent: #5BC0B2; --accent-soft: #23403C;
  --shirt: #3AA597; --shadow: 0 6px 24px rgba(0,0,0,.3);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "IBM Plex Sans Thai", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.75;
  transition: background .4s, color .4s;
  overflow-x: hidden;
}
h1, h2, h3 { font-family: "Kanit", "IBM Plex Sans Thai", sans-serif; font-weight: 500; line-height: 1.35; margin: 0; }
a { color: var(--accent); }

/* ---------- background blobs ---------- */
.bg-blobs { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.bg-blobs span {
  position: absolute; width: 380px; height: 380px; border-radius: 50%;
  filter: blur(70px); opacity: .22; animation: drift 22s ease-in-out infinite alternate;
}
.bg-blobs span:nth-child(1) { background: var(--accent); top: -120px; left: -100px; }
.bg-blobs span:nth-child(2) { background: var(--coral); top: 40%; right: -140px; animation-delay: -7s; }
.bg-blobs span:nth-child(3) { background: var(--sun); bottom: -160px; left: 30%; animation-delay: -14s; }
@keyframes drift { to { transform: translate(60px, 40px) scale(1.15); } }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; gap: 16px;
  max-width: 1080px; margin: 0 auto; padding: 14px 20px;
  backdrop-filter: blur(10px);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
}
.brand {
  width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center;
  background: var(--accent); color: #fff; text-decoration: none; font-family: "Kanit"; font-size: 18px;
  transition: transform .3s;
}
.brand:hover { transform: rotate(-8deg) scale(1.06); }
.nav nav { display: flex; gap: 4px; margin-left: auto; }
.nav nav a {
  color: var(--text); text-decoration: none; padding: 6px 12px; border-radius: 999px; font-size: 15px;
  transition: background .2s;
}
.nav nav a:hover { background: var(--accent-soft); }
.theme-btn {
  border: 1px solid var(--line); background: var(--surface); color: var(--text);
  width: 38px; height: 38px; border-radius: 12px; cursor: pointer; display: grid; place-items: center;
}

main { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* ---------- hero ---------- */
.hero {
  display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 40px;
  min-height: calc(100vh - 70px); padding: 30px 0 60px;
}
.hello { font-size: 18px; color: var(--muted); margin: 0 0 6px; }
.wave-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--coral); margin-left: 4px; animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.5); opacity: .5; } }
.hero h1 { font-size: clamp(34px, 6vw, 54px); }
.hl { color: var(--accent); position: relative; white-space: nowrap; }
.hl::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 10px; z-index: -1;
  background: var(--sun); opacity: .45; border-radius: 6px;
  transform-origin: left; animation: underline 1s .8s both cubic-bezier(.6,0,.2,1);
}
@keyframes underline { from { transform: scaleX(0); } }
.role { font-size: 19px; font-weight: 500; margin: 10px 0 4px; }
.intro { color: var(--muted); max-width: 34em; margin: 10px 0 26px; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: 11px 22px; border-radius: 999px; text-decoration: none; font-weight: 500;
  transition: transform .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn.primary { background: var(--accent); color: #fff; }
.btn.ghost { border: 1.5px solid var(--line); color: var(--text); background: var(--surface); }

.hero-art { position: relative; display: grid; place-items: center; }
.avatar { width: min(340px, 80vw); height: auto; animation: float 5s ease-in-out infinite; overflow: visible; }
@keyframes float { 50% { transform: translateY(-10px); } }
.halo { fill: var(--accent-soft); }
.skin { fill: var(--skin); }
.hair { fill: var(--hair); }
.shirt { fill: var(--shirt); }
.collar { fill: none; stroke: rgba(255,255,255,.75); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.sleeve { fill: none; stroke: var(--shirt); stroke-width: 20; stroke-linecap: round; }
.eyes ellipse { fill: var(--hair); }
.eyes { transform-box: fill-box; transform-origin: center; animation: blink 4.5s infinite; }
@keyframes blink { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(.1); } }
.brow { fill: none; stroke: var(--hair); stroke-width: 3; stroke-linecap: round; }
.cheek { fill: var(--coral); opacity: .35; }
.smile { fill: none; stroke: var(--hair); stroke-width: 3.5; stroke-linecap: round; }
.head { transform-box: view-box; transform-origin: 120px 160px; animation: tilt 6s ease-in-out infinite; }
@keyframes tilt { 50% { transform: rotate(-3deg); } }
.wave-arm { transform-box: view-box; transform-origin: 172px 196px; animation: wave 2.4s ease-in-out infinite; }
@keyframes wave { 0%, 60%, 100% { transform: rotate(0); } 10%, 30% { transform: rotate(14deg); } 20%, 40% { transform: rotate(-8deg); } }
.board { fill: #fff; stroke: var(--line); stroke-width: 2; }
.clip { fill: var(--sun); }
.bars rect { fill: var(--accent); transform-box: fill-box; transform-origin: bottom; animation: grow 3s ease-in-out infinite; }
.bars rect:nth-child(2) { fill: var(--coral); animation-delay: .2s; }
.bars rect:nth-child(3) { animation-delay: .4s; }
.bars rect:nth-child(4) { fill: var(--sun); animation-delay: .6s; }
@keyframes grow { 0%, 100% { transform: scaleY(.4); } 50% { transform: scaleY(1); } }

.bubble {
  position: absolute; top: 4%; right: 2%; background: var(--surface); color: var(--text);
  padding: 8px 16px; border-radius: 16px 16px 16px 4px; box-shadow: var(--shadow); font-size: 15px;
  animation: pop .6s 1.2s both cubic-bezier(.3,1.6,.5,1), float 5s 2s ease-in-out infinite;
}
@keyframes pop { from { transform: scale(0); opacity: 0; } }
.spark { width: 200px; margin-top: -6px; }
.spark path {
  fill: none; stroke: var(--coral); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 320; stroke-dashoffset: 320; animation: draw 2.2s 1s forwards ease-out;
}
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ---------- sections ---------- */
.section { padding: 70px 0 30px; }
.section h2 { font-size: clamp(26px, 4vw, 34px); margin-bottom: 22px; display: inline-block; position: relative; }
.section h2::after {
  content: ""; display: block; width: 40px; height: 4px; border-radius: 4px; background: var(--coral); margin-top: 8px;
}
.about-text { max-width: 44em; }
.about-text p { margin: 0 0 12px; }
.muted { color: var(--muted); }

.focus-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 30px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow);
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.card:hover { transform: translateY(-4px); border-color: var(--accent); }
.card h3 { font-size: 19px; margin: 12px 0 6px; }
.card p { margin: 0; color: var(--muted); font-size: 15.5px; }
.icon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.icon svg { width: 24px; height: 24px; }

/* works */
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.chip-btn {
  border: 1.5px solid var(--line); background: var(--surface); color: var(--text);
  padding: 6px 16px; border-radius: 999px; font: inherit; font-size: 15px; cursor: pointer;
  transition: all .2s;
}
.chip-btn:hover { border-color: var(--accent); }
.chip-btn.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.work-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.work { display: flex; flex-direction: column; }
.work .cat { font-size: 13px; font-weight: 600; letter-spacing: .02em; }
.work h3 { margin-top: 4px; }
.work .tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: auto; padding-top: 14px; }
.tag { font-size: 13px; padding: 2px 10px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); color: var(--muted); }
.work .more { font-size: 14px; margin-top: 10px; font-weight: 500; text-decoration: none; }
.work.hide { display: none; }
.work.show { animation: fadeUp .45s both; }
.cat-report { color: var(--coral); }
.cat-app { color: var(--accent); }
.cat-plan { color: #B88A1E; }
:root[data-theme="dark"] .cat-plan { color: var(--sun); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .cat-plan { color: var(--sun); } }

.tools { display: flex; flex-wrap: wrap; gap: 10px; }
.tools span {
  padding: 8px 16px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line);
  font-size: 15px; transition: transform .2s;
}
.tools span:hover { transform: translateY(-3px) rotate(-1.5deg); }

.contact { text-align: center; padding-bottom: 60px; }
.contact h2::after { margin-left: auto; margin-right: auto; }
.links { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-top: 16px; }

.footer { text-align: center; color: var(--muted); font-size: 14px; padding: 24px 20px 40px; border-top: 1px solid var(--line); max-width: 1080px; margin: 0 auto; }

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } }

/* ---------- responsive ---------- */
@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; text-align: center; min-height: auto; gap: 20px; padding-top: 10px; }
  .hero-art { order: -1; }
  .intro { margin-left: auto; margin-right: auto; }
  .cta { justify-content: center; }
  .focus-grid { grid-template-columns: 1fr; }
  .avatar { width: min(260px, 70vw); }
}
@media (max-width: 480px) {
  body { font-size: 16px; }
  .nav nav a { padding: 6px 8px; font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .spark path { stroke-dashoffset: 0; }
}

/* ---------- added sections ---------- */
.focus-grid { grid-template-columns: repeat(4, 1fr); }
.path-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 18px; }
.path { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; box-shadow: var(--shadow); }
.path h3 { font-size: 18px; margin-bottom: 12px; color: var(--accent); }
.timeline { list-style: none; margin: 0; padding: 0 0 0 18px; border-left: 2px dashed var(--line); }
.timeline li { position: relative; padding: 0 0 14px 6px; font-size: 15.5px; line-height: 1.6; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: ""; position: absolute; left: -25px; top: 6px; width: 12px; height: 12px; border-radius: 50%;
  background: var(--surface); border: 2px solid var(--accent);
}
.timeline li.now::before { background: var(--accent); box-shadow: 0 0 0 0 var(--accent); animation: ring 2.2s infinite; }
@keyframes ring { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 50%, transparent); } 100% { box-shadow: 0 0 0 10px transparent; } }
.now-tag { font-size: 12px; background: var(--accent-soft); color: var(--accent); padding: 1px 8px; border-radius: 999px; margin-left: 4px; }

.work-top { display: flex; justify-content: space-between; align-items: center; }
.year { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.badge { align-self: flex-start; margin-top: 8px; font-size: 13px; font-weight: 600; padding: 2px 10px; border-radius: 999px; background: color-mix(in srgb, var(--sun) 25%, transparent); color: var(--text); }
.cat-talk { color: var(--coral); }
.cat-paper { color: #7466C9; }
.cat-report { color: #B88A1E; }
:root[data-theme="dark"] .cat-paper { color: #A99CF0; }
:root[data-theme="dark"] .cat-report { color: var(--sun); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .cat-paper { color: #A99CF0; }
  :root:not([data-theme="light"]) .cat-report { color: var(--sun); }
}

.lead { margin: -8px 0 20px; }
.teach-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.teach {
  display: flex; gap: 12px; align-items: baseline; background: var(--surface); border: 1px solid var(--line);
  border-radius: 14px; padding: 14px 16px; font-size: 15.5px; line-height: 1.55; transition: border-color .2s, transform .2s;
}
.teach:hover { border-color: var(--coral); transform: translateX(4px); }
.teach .num { font-family: "Kanit"; color: var(--coral); font-size: 14px; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.train { margin: 0; padding-left: 20px; font-size: 15.5px; line-height: 1.6; }
.train li { margin-bottom: 8px; }
.train li::marker { color: var(--accent); }

@media (max-width: 960px) { .focus-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 820px) {
  .path-grid, .two-col { grid-template-columns: 1fr; }
  .two-col { gap: 0; }
}
@media (max-width: 480px) { .focus-grid { grid-template-columns: 1fr; } }
.nav nav a { white-space: nowrap; }
@media (max-width: 480px) {
  .nav { gap: 8px; padding: 12px 16px; }
  .nav nav { gap: 0; }
  .nav nav a { padding: 6px 7px; font-size: 13.5px; }
  main { padding: 0 16px; }
}

/* =========================================================
   v2 — Kanit headings, portrait cartoon, typer, highlights
   ========================================================= */
h1, h2, h3, .brand, .btn, .chip-btn, .typer, .nav nav a, .floater { font-family: "Kanit", "IBM Plex Sans Thai", sans-serif; }
h1, h2 { font-weight: 500; }
h3 { font-weight: 500; }
.btn, .chip-btn, .nav nav a { font-weight: 400; }

/* typer */
.typer { font-size: clamp(20px, 3vw, 26px); margin: 8px 0 2px; min-height: 1.5em; }
.typer-label { color: var(--muted); margin-right: 6px; }
.typer-word {
  font-weight: 500;
  background: linear-gradient(90deg, var(--accent), var(--coral));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.caret { display: inline-block; width: 3px; height: 1.05em; background: var(--coral); margin-left: 3px; vertical-align: -0.15em; border-radius: 2px; animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.role { font-size: 16px; font-weight: 500; color: var(--muted); }

/* portrait cartoon */
.cartoon { display: grid; place-items: center; }
.avatar { width: min(360px, 80vw); }
.head { transform-origin: 150px 220px; }
.wave-arm { transform-origin: 232px 290px; }
.brow-f { fill: #1C181E; }
.tab-line { fill: none; stroke: var(--coral); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 80; stroke-dashoffset: 80; animation: draw 3s 1s ease-out infinite alternate; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* real photo (when data.photo is set) */
.photo-wrap { position: relative; width: min(280px, 70vw); aspect-ratio: 1; display: grid; place-items: center; animation: float 5s ease-in-out infinite; }
.photo-wrap[hidden] { display: none; }
.photo-wrap img { width: 88%; height: 88%; object-fit: cover; object-position: 50% 50%; border-radius: 50%; border: 5px solid var(--surface); box-shadow: var(--shadow); position: relative; }
.ring { position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(var(--accent), var(--sun), var(--coral), var(--accent)); animation: spin 8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* floating skill badges */
.floaters { position: absolute; inset: 0; pointer-events: none; }
.floater {
  position: absolute; background: var(--surface); color: var(--text); border: 1px solid var(--line);
  padding: 6px 14px; border-radius: 999px; font-size: 14px; box-shadow: var(--shadow); white-space: nowrap;
  animation: pop .6s both cubic-bezier(.3,1.6,.5,1), bob 4.5s ease-in-out infinite;
}
.floater::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 7px; vertical-align: 1px; }
.floater.f0 { top: 8%; left: -2%; animation-delay: 1s, 1.6s; }
.floater.f0::before { background: var(--accent); }
.floater.f1 { top: 40%; right: -4%; animation-delay: 1.2s, 2.2s; }
.floater.f1::before { background: var(--coral); }
.floater.f2 { bottom: 10%; left: 2%; animation-delay: 1.4s, 2.8s; }
.floater.f2::before { background: var(--sun); }
@keyframes bob { 50% { transform: translateY(-8px); } }

/* highlights */
.hl-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.hl-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 22px; overflow: hidden;
  box-shadow: var(--shadow); display: flex; flex-direction: column;
  transition: transform .3s, box-shadow .3s, border-color .3s;
}
.hl-card:hover { transform: translateY(-5px); }
.hl-art { padding: 18px 22px 8px; }
.hl-epi .hl-art { background: linear-gradient(135deg, var(--accent-soft), transparent); }
.hl-web .hl-art { background: linear-gradient(135deg, color-mix(in srgb, var(--coral) 18%, transparent), transparent); }
.hl-ai  .hl-art { background: linear-gradient(135deg, color-mix(in srgb, var(--sun) 22%, transparent), transparent); }
.hl-epi:hover { border-color: var(--accent); }
.hl-web:hover { border-color: var(--coral); }
.hl-ai:hover  { border-color: var(--sun); }
.art { width: 100%; max-width: 260px; height: auto; display: block; }
.hl-body { padding: 14px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.hl-body h3 { font-size: 24px; }
.hl-sub { color: var(--muted); margin: 2px 0 12px; font-size: 15.5px; }
.hl-points { list-style: none; padding: 0; margin: 0 0 4px; font-size: 15.5px; line-height: 1.6; }
.hl-points li { position: relative; padding-left: 24px; margin-bottom: 8px; }
.hl-points li::before {
  content: ""; position: absolute; left: 2px; top: 6px; width: 12px; height: 7px;
  border-left: 2.5px solid var(--accent); border-bottom: 2.5px solid var(--accent); transform: rotate(-45deg);
}
.hl-web .hl-points li::before { border-color: var(--coral); }
.hl-ai .hl-points li::before { border-color: #C9962A; }
.hl-body .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 14px; }

/* compact card spans full row, art on the side */
.hl-card.compact { grid-column: 1 / -1; flex-direction: row; align-items: stretch; }
.hl-card.compact .hl-art { flex: 0 0 280px; display: grid; place-items: center; padding: 20px; }

/* art animations */
.epi-bars rect { fill: var(--accent); opacity: .85; transform-box: fill-box; transform-origin: bottom; animation: rise 3.2s ease-in-out infinite; }
@keyframes rise { 0%, 100% { transform: scaleY(.25); } 45%, 70% { transform: scaleY(1); } }
.epi-line { fill: none; stroke: var(--coral); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 260; stroke-dashoffset: 260; animation: drawLoop 3.2s ease-in-out infinite; }
@keyframes drawLoop { 0% { stroke-dashoffset: 260; } 50%, 80% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: -260; } }
.win { fill: var(--surface); stroke: var(--line); stroke-width: 2; }
.win-line { stroke: var(--line); stroke-width: 2; }
.blk { fill: var(--accent-soft); }
.mini { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.code { fill: var(--coral); opacity: .75; animation: type1 3.6s ease-in-out infinite; }
.c2 { fill: var(--accent); animation-name: type2; animation-delay: .5s; }
.c3 { fill: var(--sun); animation-name: type3; animation-delay: 1s; }
@keyframes type1 { 0% { width: 0; } 40%, 85% { width: 96px; } 100% { width: 0; } }
@keyframes type2 { 0% { width: 0; } 40%, 85% { width: 70px; } 100% { width: 0; } }
@keyframes type3 { 0% { width: 0; } 40%, 85% { width: 84px; } 100% { width: 0; } }
.links path { fill: none; stroke: var(--line); stroke-width: 2.5; }
:root .art-ai .links path { stroke: color-mix(in srgb, var(--sun) 55%, var(--line)); }
.node { fill: var(--surface); stroke: #C9962A; stroke-width: 3; transform-box: fill-box; transform-origin: center; animation: nodePulse 1.5s ease-in-out infinite; }
@keyframes nodePulse { 0%, 100% { fill: var(--surface); transform: scale(1); } 50% { fill: var(--sun); transform: scale(1.25); } }

@media (max-width: 820px) {
  .hl-grid { grid-template-columns: 1fr; }
  .hl-card.compact { flex-direction: column; }
  .hl-card.compact .hl-art { flex: none; display: block; padding: 18px 22px 8px; }
  .floater { font-size: 12.5px; padding: 4px 11px; }
  .floater.f1 { right: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .code { width: 80px; }
  .epi-line, .tab-line { stroke-dashoffset: 0; }
}
.floater.f0 { top: 4%; left: 0; }
.floater.f1 { top: auto; bottom: 6%; right: 0; }
.floater.f2 { bottom: auto; top: 44%; left: -6%; }
.bars rect { fill: var(--accent); }
@media (max-width: 820px) { .floater.f2 { left: 0; } }
@media (max-width: 600px) { .floaters { display: none; } }
.cartoon[hidden] { display: none; }

/* works: video thumbnails + link button */
.cat-media { color: #C2577A; }
:root[data-theme="dark"] .cat-media { color: #F08FB0; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .cat-media { color: #F08FB0; } }
.thumb { display: block; position: relative; margin: -22px -22px 14px; aspect-ratio: 16/9; overflow: hidden; border-radius: var(--radius) var(--radius) 0 0; background: var(--line); }
.thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.thumb:hover img { transform: scale(1.05); }
.play { position: absolute; inset: 0; margin: auto; width: 56px; height: 56px; border-radius: 50%; background: rgba(0,0,0,.6); transition: background .2s, transform .2s; }
.play::after { content: ""; position: absolute; left: 22px; top: 17px; border-left: 18px solid #fff; border-top: 11px solid transparent; border-bottom: 11px solid transparent; }
.thumb:hover .play { background: #E0352B; transform: scale(1.08); }
.work .more { align-self: flex-start; padding: 4px 12px; border-radius: 999px; background: var(--accent-soft); transition: background .2s, color .2s; }
.work .more:hover { background: var(--accent); color: #fff; }
