/* Mark Schommarz CV: liquid-glass edition.
   Glass follows Apple's Liquid Glass rules: a translucent layer for navigation
   and controls that floats above the content. Content panels use a thicker,
   more opaque glass so text stays legible. Refraction (SVG displacement) runs
   only in Chromium; other browsers get blur + saturation + specular edges. */

@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 100%;
  font-display: swap;
  src: url('../assets/fonts/archivo-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 100%;
  font-display: swap;
  src: url('../assets/fonts/archivo-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --ink: #201e1d;
  --ink-2: #444141;
  --ink-3: #605d5d;
  --paper: #fbfaf9;
  --accent: #ff7900;
  --accent-600: #db6300;
  --accent-700: #ad4c00;
  --accent-900: #4a2100;
  --accent-100: #fff4e8;
  --line: color-mix(in srgb, var(--ink) 14%, transparent);

  /* Glass material: three thicknesses, one edge recipe */
  --glass-clear: rgba(255, 255, 255, 0.16);
  --glass-regular: rgba(255, 255, 255, 0.38);
  --glass-thick: rgba(255, 255, 255, 0.66);
  --glass-tint: rgba(255, 121, 0, 0.78);
  --glass-dark: rgba(32, 30, 29, 0.78);
  --glass-blur: 18px;
  --glass-sat: 180%;
  --glass-edge:
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    inset 0 -1px 0 rgba(255, 255, 255, 0.25),
    inset 0 0 0 1px rgba(255, 255, 255, 0.38),
    inset 0 -14px 24px -18px rgba(255, 255, 255, 0.7);
  --glass-lift: 0 10px 34px -10px rgba(32, 30, 29, 0.22), 0 2px 6px rgba(32, 30, 29, 0.06);

  --r-pill: 999px;
  --r-lg: 28px;
  --r-md: 20px;
  --r-sm: 14px;

  --font: 'Archivo', system-ui, -apple-system, sans-serif;
  --nav-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  overflow-x: clip;
}
h1, h2, h3, h4, h5, h6 { font-weight: 800; line-height: 1.1; letter-spacing: -0.02em; margin: 0; }
p { margin: 0; }
a { color: inherit; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--accent-700); outline-offset: 3px; }
::selection { background: color-mix(in srgb, var(--accent) 35%, transparent); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: var(--r-pill); background: var(--ink); color: var(--paper); }
.skip-link:focus { top: 12px; }

/* ── Ambient backdrop: gives the glass something to bend ── */
.ambient { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; background: var(--paper); }
/* the scene is taller than the viewport and slides up as you scroll (--sp: 0 → 1) */
.ambient-layer { position: absolute; left: 0; right: 0; top: 0; height: 145vh; height: 145lvh; transform: translate3d(0, calc(var(--sp, 0) * -45vh), 0); transform: translate3d(0, calc(var(--sp, 0) * -45lvh), 0); will-change: transform; }
.ambient span {
  position: absolute; border-radius: 50%; filter: blur(60px); opacity: 0.55;
  animation: drift 26s ease-in-out infinite alternate;
}
.ambient .b1 { width: 52vmax; height: 52vmax; left: -14vmax; top: -18vmax; background: radial-gradient(circle at 40% 40%, #ff9a3c, #ff7900 60%, transparent 70%); }
.ambient .b2 { width: 40vmax; height: 40vmax; right: -12vmax; top: 22vh; background: radial-gradient(circle, #ffc98f, #ffa64d 55%, transparent 70%); animation-duration: 32s; }
.ambient .b4 { width: 38vmax; height: 38vmax; left: -10vmax; top: 88vh; top: 88lvh; background: radial-gradient(circle, #ffb870, #ff8a1f 55%, transparent 70%); opacity: 0.4; animation-duration: 30s; }
.ambient .b3 { width: 46vmax; height: 46vmax; left: 20vw; bottom: -26vmax; background: radial-gradient(circle, #ff5e3a, #ec3013 50%, transparent 70%); opacity: 0.32; animation-duration: 38s; }
.ambient .grid {
  position: absolute; inset: 0; border-radius: 0; filter: none; opacity: 0.5; animation: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 50% 20%, #000 20%, transparent 75%);
}
@keyframes drift {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(6vw, 4vh, 0) scale(1.08); }
  100% { transform: translate3d(-4vw, 8vh, 0) scale(0.96); }
}

/* ── Glass material ── */
.glass {
  position: relative;
  isolation: isolate;
  background: var(--glass-regular);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-sat));
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-sat));
  box-shadow: var(--glass-edge), var(--glass-lift);
  border: 0;
}
/* specular highlight that follows the pointer */
.glass::after {
  content: '';
  position: absolute; inset: 0; z-index: -1;
  border-radius: inherit; pointer-events: none;
  background:
    radial-gradient(180px circle at var(--mx, 30%) var(--my, 0%), rgba(255, 255, 255, 0.55), transparent 60%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.35), transparent 38%);
  opacity: 0.75;
  transition: opacity 0.3s;
}
.glass-clear { background: var(--glass-clear); }
.glass-thick { background: var(--glass-thick); --glass-blur: 26px; }
.glass-tint { background: var(--glass-tint); color: var(--ink); }
.glass-dark { background: var(--glass-dark); color: var(--paper); --glass-edge: inset 0 1px 0 rgba(255,255,255,0.22), inset 0 0 0 1px rgba(255,255,255,0.1); }
.glass-dark::after { opacity: 0.18; }

/* Chromium: real refraction on the navigation layer */
.has-refract .glass.refract {
  -webkit-backdrop-filter: url(#lg-refract) blur(6px) saturate(var(--glass-sat));
  backdrop-filter: url(#lg-refract) blur(6px) saturate(var(--glass-sat));
}

/* ── Controls (glass buttons) ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; min-height: 44px;
  border-radius: var(--r-pill);
  font-weight: 700; font-size: 15px; line-height: 1.2; letter-spacing: 0.005em;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: transform 0.25s cubic-bezier(.2, .9, .3, 1.4), background-color 0.2s, box-shadow 0.2s;
}
.btn:hover { transform: translateY(-1px) scale(1.03); }
.btn:active { transform: scale(0.96); }
.btn svg { flex: none; }
.btn-sm { min-height: 38px; padding: 8px 14px; font-size: 14px; }
.btn.glass-tint:hover { background: rgba(255, 121, 0, 0.9); }

/* ── Floating navigation capsule ── */
.site-nav {
  position: fixed; z-index: 40; top: 12px; left: 50%; transform: translateX(-50%);
  width: min(1180px, calc(100% - 24px));
  display: flex; align-items: center; gap: 20px;
  padding: 8px 8px 8px 14px; min-height: 56px;
  border-radius: var(--r-pill);
  background: var(--glass-clear);
}
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; text-decoration: none; font-weight: 800; font-size: 15px; letter-spacing: 0.02em; }
.brand-mark { width: 30px; height: 30px; flex: none; overflow: hidden; border-radius: 50%; }
.brand-mark img { animation: swim 9s ease-in-out infinite; }
@keyframes swim { 0%,72% { transform: translateX(0); } 76% { transform: translateX(40px); } 76.01% { transform: translateX(-40px); } 82%,100% { transform: translateX(0); } }
.nav-links { display: flex; align-items: center; gap: 4px; margin-left: auto; font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.nav-links a { text-decoration: none; padding: 8px 12px; border-radius: var(--r-pill); transition: background-color 0.2s; }
.nav-links a:hover { background: rgba(255, 255, 255, 0.5); }
.nav-menu { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: var(--r-pill); cursor: pointer; font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.nav-menu kbd { font-family: var(--font); font-weight: 800; }
.site-nav > .btn { margin-left: 0; }

/* ── Layout ── */
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 32px; }
section { position: relative; scroll-margin-top: calc(var(--nav-h) + 20px); }
.section-pad { padding: 88px 0; }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-700); }
.section-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 12px 20px; margin-bottom: 32px; }
.section-head h2 { font-size: clamp(28px, 3.4vw, 44px); letter-spacing: -0.025em; }

/* ── Hero ── */
.hero { padding: calc(var(--nav-h) + 72px) 0 64px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 48px; align-items: center; perspective: 1400px; }
.hero-copy { animation: rise 0.7s ease-out both; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; margin-bottom: 28px; font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); }
.chip { display: inline-flex; align-items: center; padding: 5px 12px; border-radius: var(--r-pill); font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap; }
.chip.glass-tint { color: var(--accent-900); }
.hero h1 { font-size: clamp(40px, 6vw, 84px); line-height: 0.98; letter-spacing: -0.03em; margin-bottom: 28px; text-wrap: balance; }
.hero h1 em { font-style: normal; color: var(--accent-600); }
.hero-lede { font-size: 18px; line-height: 1.5; max-width: 560px; margin-bottom: 32px; color: var(--ink-2); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

.portrait {
  position: relative; aspect-ratio: 4 / 5;
  border-radius: 36px; overflow: hidden;
  transform-style: preserve-3d; transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 0.18s ease-out;
  background: var(--glass-clear);
}
.portrait .rings { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.portrait .rings svg { width: 92%; height: 92%; overflow: visible; }
.ring-spin { transform-origin: 200px 200px; animation: spin 24s linear infinite; }
.ring-spinr { transform-origin: 200px 200px; animation: spin 40s linear infinite reverse; }
.ring-slow { transform-origin: 200px 200px; animation: spin 60s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.portrait-img { position: absolute; left: 50%; bottom: -2%; width: 88%; height: auto; transform: translateX(-50%) translateZ(60px); pointer-events: none; }
.portrait-label { position: absolute; z-index: 2; padding: 6px 12px; border-radius: var(--r-pill); font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; max-width: calc(100% - 28px); }
.portrait-label.tl { left: 14px; top: 14px; }
.portrait-label.br { right: 14px; bottom: 14px; color: var(--accent-900); }

/* ── Facts strip ── */
.facts { padding: 8px 0 24px; }
.facts-bar { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 6px; padding: 6px; border-radius: var(--r-lg); }
.fact { padding: 14px 18px; border-radius: 22px; }
.fact-k { font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-900); }
.fact-v { font-weight: 800; font-size: 16px; margin-top: 2px; }

/* ── Journey board ── */
.journey { border-top: 0; }
.journey-pin { position: sticky; top: calc(var(--nav-h) + 16px); padding: 24px 0 28px; }
.journey .section-head { margin-bottom: 20px; }
.journey .section-head h2 { font-size: clamp(22px, 3vw, 36px); }
.board { border-radius: var(--r-lg); overflow: hidden; }
.board-scroll { overflow-x: auto; }
.board-grid { min-width: 760px; position: relative; display: grid; grid-template-columns: 132px minmax(0, 1fr); }
.board-cell-head { padding: 12px 16px; font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); }
.board-years { display: grid; grid-template-columns: repeat(15, minmax(0, 1fr)); border-bottom: 1px solid var(--line); }
.board-years div { padding: 12px 0 12px 6px; font-weight: 800; font-size: 11px; letter-spacing: 0.04em; color: var(--ink-3); border-left: 1px solid var(--line); white-space: nowrap; overflow: hidden; }
.board-years div.next { color: var(--accent-700); }
.track-name { padding: 0 16px; display: flex; align-items: center; font-weight: 800; font-size: 13px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.track-lane { position: relative; border-bottom: 1px solid var(--line); background-image: linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: calc(100% / 15) 100%; }
.bar {
  position: absolute; display: flex; align-items: center; padding: 0 10px;
  border-radius: var(--r-pill); font-size: 12px; font-weight: 700; white-space: nowrap; overflow: hidden;
  cursor: pointer; transition: opacity 0.2s, box-shadow 0.2s, transform 0.2s;
  font: inherit; font-size: 12px; font-weight: 700; text-align: left;
  --glass-blur: 10px;
}
.bar span { overflow: hidden; text-overflow: ellipsis; }
.bar:hover, .bar.is-sel { transform: scale(1.02); box-shadow: var(--glass-edge), 0 0 0 2px var(--accent-900), var(--glass-lift); }
.bar.t0 { background: rgba(32, 30, 29, 0.9); color: var(--paper); }
.bar.t1 { background: var(--glass-tint); color: var(--ink); }
.bar.t2 { background: rgba(255, 255, 255, 0.85); color: var(--ink); box-shadow: var(--glass-edge), inset 0 0 0 1.5px var(--ink); }
.bar::after { opacity: 0.35; }
.bar.t0, .bar.t1 { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), inset 0 0 0 1px rgba(255, 255, 255, 0.12), 0 2px 8px rgba(32, 30, 29, 0.14); }
.sweep { position: absolute; top: 0; bottom: 0; left: 132px; right: 0; pointer-events: none; }
.sweep-line { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--accent); box-shadow: 0 0 12px var(--accent); }
.sweep-tag { position: absolute; top: 6px; padding: 2px 8px; border-radius: var(--r-pill); background: var(--accent); font-weight: 800; font-size: 11px; }

.journey-detail { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 8px; margin-top: 8px; }
.detail-card { padding: 22px 24px; border-radius: var(--r-lg); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 24px; }
.detail-kicker { font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-700); }
.detail-title { font-weight: 800; font-size: 22px; letter-spacing: -0.02em; margin-top: 6px; line-height: 1.08; text-wrap: balance; }
.detail-org { font-weight: 600; font-size: 14px; margin-top: 6px; color: var(--ink-2); }
.detail-body { font-size: 13px; line-height: 1.45; color: var(--ink-2); text-wrap: pretty; }
.detail-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.next-card { padding: 22px 24px; border-radius: var(--r-lg); display: flex; flex-direction: column; justify-content: space-between; gap: 16px; }
.next-card .detail-kicker { color: var(--accent); }
.next-card p { font-size: 13px; margin-top: 6px; color: rgba(255,255,255,0.72); }
.next-card .btn { align-self: flex-start; }

/* hover card for timeline entries */
.bar-pop {
  position: fixed; z-index: 45; width: min(360px, calc(100vw - 24px));
  padding: 16px 18px; border-radius: var(--r-md); pointer-events: none;
  background: rgba(255, 255, 255, 0.82);
  animation: pop 0.18s cubic-bezier(.2, .9, .3, 1.25) both;
}
.bar-pop[hidden] { display: none; }
.bar-pop .detail-title { font-size: 18px; }
.bar-pop .detail-org { font-size: 13px; }
.bar-pop .detail-body { display: block !important; margin-top: 8px; }
.bar-pop .detail-tags { display: flex !important; }

/* compact: board + details must fit one viewport */
.journey.compact .track-name, .journey.compact .track-lane { height: 44px; }
.journey.compact .detail-body, .journey.compact .detail-tags, .journey.compact .next-card p { display: none; }
.journey.compact .detail-card, .journey.compact .next-card { padding: 12px 16px; gap: 16px; }
.journey.compact .detail-title { font-size: 16px; }
.journey.compact .next-card { flex-direction: row; align-items: center; }
.journey.compact .section-head h2 { font-size: 18px; }

/* vertical board for phones */
.vboard { display: none; position: relative; grid-template-columns: 52px repeat(3, minmax(0, 1fr)); border-radius: var(--r-lg); overflow: hidden; }
.vboard .vh { padding: 8px 6px; font-weight: 800; font-size: 11px; border-bottom: 1px solid var(--line); border-left: 1px solid var(--line); }
.vboard .vh:first-child { font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); border-left: 0; }
.vyears { border-right: 1px solid var(--line); }
.vyears div { height: var(--vrow, 44px); padding: 2px 6px; font-weight: 800; font-size: 10px; color: var(--ink-3); border-top: 1px solid var(--line); }
.vyears div.next { color: var(--accent-700); }
.vlane { position: relative; border-left: 1px solid var(--line); background-image: linear-gradient(var(--line) 1px, transparent 1px); background-size: 100% var(--vrow, 44px); }
.vlane .bar { padding: 6px 0; justify-content: center; align-items: flex-start; border-radius: 12px; }
.vlane .bar span { writing-mode: vertical-rl; font-size: 10px; line-height: 1; max-height: 100%; }
.vboard.tiny .bar span { display: none; }
.vsweep { position: absolute; left: 0; right: 0; top: 31px; bottom: 0; pointer-events: none; }
.vsweep .sweep-line { top: 0; bottom: auto; left: 0; right: 0; width: auto; height: 2px; }
.vsweep .sweep-tag { right: 4px; top: 0; transform: translateY(4px); }

/* ── Tags ── */
.tag { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: var(--r-pill); font-size: 11px; letter-spacing: 0.02em; white-space: nowrap; background: rgba(255, 255, 255, 0.55); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent-700) 55%, transparent); color: var(--accent-700); }
.glass-dark .tag { background: rgba(255,255,255,0.08); color: var(--accent); box-shadow: inset 0 0 0 1px rgba(255,121,0,0.6); }

/* ── Work ── */
.work-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; perspective: 1200px; }
.work-card { padding: 28px; border-radius: var(--r-lg); display: flex; flex-direction: column; gap: 14px; transition: transform 0.35s cubic-bezier(.2, .9, .3, 1.2), box-shadow 0.3s; transform-style: preserve-3d; }
.work-card:hover { transform: translateZ(24px) rotateX(2deg); }
.work-meta { display: flex; justify-content: space-between; gap: 12px; font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); }
.work-meta span:last-child { color: var(--accent-700); }
.work-card h3 { font-size: 24px; text-wrap: balance; }
.work-org { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.work-card p { font-size: 15px; line-height: 1.55; color: var(--ink-2); text-wrap: pretty; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 8px; }

/* ── Projects & process ── */
.proj-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.proj-card { padding: 28px; border-radius: var(--r-lg); display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.proj-wide { grid-column: 1 / -1; gap: 18px; }
.proj-card h3 { font-size: 24px; text-wrap: balance; }
.proj-wide h3 { font-size: clamp(24px, 2.6vw, 32px); }
.proj-card p { font-size: 15px; line-height: 1.55; color: var(--ink-2); text-wrap: pretty; }
.proj-intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 12px 40px; align-items: start; }
.proj-intro .work-org { margin-top: 8px; }
.proj-title { display: flex; align-items: center; gap: 14px; }
.proj-icon { flex: none; width: 48px; height: 48px; border-radius: 12px; object-fit: cover; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.5), 0 0 0 1px var(--line), 0 6px 16px -6px rgba(32,30,29,0.35); }
.proj-wide .proj-icon { width: 56px; height: 56px; border-radius: 14px; }
.proj-icon-ai { display: grid; place-items: center; background: linear-gradient(145deg, #2c2a29, var(--ink)); color: var(--accent); }
.proj-icon-ai svg { width: 58%; height: 58%; }
.proj-link { color: var(--accent-700); font-weight: 700; text-underline-offset: 3px; }
.proj-label { font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 10px; }
.glass-dark .proj-label { color: var(--accent); }

.steps { list-style: none; margin: -4px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 6px; counter-reset: none; }
.step { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 14px 16px 16px; border-radius: var(--r-md); background: var(--accent-100); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent-700) 28%, transparent), 0 1px 3px rgba(32, 30, 29, 0.06); }
.step::after { content: ''; position: absolute; top: 27px; right: -6px; width: 6px; height: 2px; background: var(--accent); }
.step:last-child::after { display: none; }
.step-n { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; margin-bottom: 4px; border-radius: 50%; background: var(--accent); color: var(--ink); font-weight: 800; font-size: 12px; }
.step strong { font-size: 15px; font-weight: 800; }
.step span:last-child { font-size: 13px; line-height: 1.45; color: var(--ink); text-wrap: pretty; }

.proj-split { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 16px 32px; align-items: start; }
.proj-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 32px; align-items: start; }
/* Bubbleate flow diagram: inline SVG, CSS-only loop (10 s, one step per second) */
.fx-fig { margin: 0; display: grid; gap: 10px; }
.fx { display: block; width: 100%; max-width: 100%; height: auto; overflow: visible; }
.fx-m { display: none; }
.fx-node { fill: rgba(255, 255, 255, 0.7); stroke: var(--line); stroke-width: 1.2; }
.fx-node.fx-ai { fill: var(--accent-100); stroke: var(--accent); }
.fx-t { fill: var(--ink); font: 700 14px var(--font); }
.fx-m .fx-t { font-size: 12px; }
.fx-s { fill: var(--ink-3); font: 500 11.5px var(--font); }
.fx-m .fx-s { font-size: 10px; }
.fx-lab { fill: var(--ink-2); font: 600 12px var(--font); paint-order: stroke; stroke: var(--paper); stroke-width: 3px; stroke-linejoin: round; }
.fx-m .fx-lab { font-size: 10.5px; }
.fx-edge { fill: none; stroke: var(--ink-3); stroke-width: 1.5; stroke-opacity: 0.55; animation: fx-glow 10s linear infinite backwards; }
.fx-ah { fill: var(--ink-3); }
.fx-dot { fill: var(--accent); opacity: 0; offset-rotate: 0deg; animation: fx-travel 10s linear infinite; }
@keyframes fx-glow {
  0% { stroke: var(--ink-3); stroke-opacity: 0.55; stroke-width: 1.5; }
  1%, 9% { stroke: var(--accent); stroke-opacity: 1; stroke-width: 2.5; }
  11%, 100% { stroke: var(--ink-3); stroke-opacity: 0.55; stroke-width: 1.5; }
}
@keyframes fx-travel {
  0% { offset-distance: 0%; opacity: 0; }
  1% { offset-distance: 0%; opacity: 1; }
  9% { offset-distance: 100%; opacity: 1; }
  10%, 100% { offset-distance: 100%; opacity: 0; }
}
.fx-s0 { animation-delay: 0s; }
.fx-s1 { animation-delay: 1s; }
.fx-s2 { animation-delay: 2s; }
.fx-s3 { animation-delay: 3s; }
.fx-s4 { animation-delay: 4s; }
.fx-s5 { animation-delay: 5s; }
.fx-s6 { animation-delay: 6s; }
.fx-s7 { animation-delay: 7s; }
.fx-s8 { animation-delay: 8s; }
.fx-s9 { animation-delay: 9s; }
.fx-d-e1 { offset-path: path("M130,190 L230,190"); }
.fx-d-e2 { offset-path: path("M420,160 L470,160 L470,55 L520,55"); }
.fx-d-e3 { offset-path: path("M420,190 L520,190"); }
.fx-d-e10 { offset-path: path("M560,368 L620,368 L620,240"); }
.fx-d-e5 { offset-path: path("M720,190 L820,190"); }
.fx-d-e6 { offset-path: path("M820,220 L720,220"); }
.fx-d-e4 { offset-path: path("M520,220 L420,220"); }
.fx-d-e11 { offset-path: path("M230,220 L130,220"); }
.fx-d-e7 { offset-path: path("M330,250 L330,320"); }
.fx-d-e9 { offset-path: path("M250,250 L150,320"); }
.fx-d-e8 { offset-path: path("M380,320 L380,250"); }
.fx-m-e1 { offset-path: path("M60,66 L60,130"); }
.fx-m-e2 { offset-path: path("M70,190 L70,290"); }
.fx-m-e3 { offset-path: path("M165,190 L165,290"); }
.fx-m-e5 { offset-path: path("M165,354 L165,470"); }
.fx-m-e6 { offset-path: path("M195,470 L195,354"); }
.fx-m-e4 { offset-path: path("M195,290 L195,190"); }
.fx-m-e11 { offset-path: path("M120,130 L120,66"); }
.fx-m-e7 { offset-path: path("M290,190 L290,290"); }
.fx-m-e9 { offset-path: path("M250,130 L250,66"); }
/* Bubbleate mini illustrations: CSS-only loops. The base state of every shape is the finished picture, so with reduced motion it stays as a static drawing. */
.proj-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.feat { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 16px 32px; align-items: center; }
.feat-rev { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); }
.feat-rev .feat-text { order: 2; }
.feat-text { display: grid; gap: 10px; min-width: 0; }
.feat-text .tags { margin-top: 0; padding-top: 4px; }
.feat-lead { margin: 0; font-size: 14px; line-height: 1.5; color: var(--ink-2); text-wrap: pretty; }
.feat-fig { margin: 0; min-width: 0; }
.ai-out0 { offset-path: path("M92,210 L128,210 L128,47 L190,47"); animation: ai-out0 12s linear infinite; }
.ai-back0 { offset-path: path("M190,47 L128,47 L128,210 L92,210"); animation: ai-back0 12s linear infinite; }
@keyframes ai-out0 { 0%,7.9% { offset-distance: 0%; opacity: 0; } 8.0% { offset-distance: 0%; opacity: 1; } 17.0% { offset-distance: 100%; opacity: 1; } 17.1%,100% { offset-distance: 100%; opacity: 0; } }
@keyframes ai-back0 { 0%,21.9% { offset-distance: 0%; opacity: 0; } 22.0% { offset-distance: 0%; opacity: 1; } 30.0% { offset-distance: 100%; opacity: 1; } 30.1%,100% { offset-distance: 100%; opacity: 0; } }
.ai-out1 { offset-path: path("M92,210 L128,210 L128,233 L190,233"); animation: ai-out1 12s linear infinite; }
.ai-back1 { offset-path: path("M190,233 L128,233 L128,210 L92,210"); animation: ai-back1 12s linear infinite; }
@keyframes ai-out1 { 0%,41.2% { offset-distance: 0%; opacity: 0; } 41.3% { offset-distance: 0%; opacity: 1; } 50.3% { offset-distance: 100%; opacity: 1; } 50.4%,100% { offset-distance: 100%; opacity: 0; } }
@keyframes ai-back1 { 0%,55.2% { offset-distance: 0%; opacity: 0; } 55.3% { offset-distance: 0%; opacity: 1; } 63.3% { offset-distance: 100%; opacity: 1; } 63.4%,100% { offset-distance: 100%; opacity: 0; } }
.ai-out2 { offset-path: path("M92,210 L128,210 L128,357 L190,357"); animation: ai-out2 12s linear infinite; }
.ai-back2 { offset-path: path("M190,357 L128,357 L128,210 L92,210"); animation: ai-back2 12s linear infinite; }
@keyframes ai-out2 { 0%,74.5% { offset-distance: 0%; opacity: 0; } 74.6% { offset-distance: 0%; opacity: 1; } 83.6% { offset-distance: 100%; opacity: 1; } 83.7%,100% { offset-distance: 100%; opacity: 0; } }
@keyframes ai-back2 { 0%,88.5% { offset-distance: 0%; opacity: 0; } 88.6% { offset-distance: 0%; opacity: 1; } 96.6% { offset-distance: 100%; opacity: 1; } 96.7%,100% { offset-distance: 100%; opacity: 0; } }
@keyframes ai-lane0 { 0.0% { stroke: var(--line); stroke-width: 1.2; } 16.9% { stroke: var(--line); stroke-width: 1.2; } 17.0% { stroke: var(--accent); stroke-width: 2.4; } 30.0% { stroke: var(--accent); stroke-width: 2.4; } 30.1% { stroke: var(--line); stroke-width: 1.2; } 100.0% { stroke: var(--line); stroke-width: 1.2; } }
.ai-l0 .ai-n { animation: ai-lane0 12s linear infinite; }
@keyframes ai-sel0 { 0.0% { fill: var(--line);  } 1.9% { fill: var(--line);  } 2.0% { fill: var(--accent);  } 30.0% { fill: var(--accent);  } 30.1% { fill: var(--line);  } 100.0% { fill: var(--line);  } }
.ai-sel0 { animation: ai-sel0 12s linear infinite; }
@keyframes ai-edge0 { 0.0% { stroke: var(--ink-3); stroke-opacity: 0.35; } 7.9% { stroke: var(--ink-3); stroke-opacity: 0.35; } 8.0% { stroke: var(--accent); stroke-opacity: 1; } 17.0% { stroke: var(--accent); stroke-opacity: 1; } 17.1% { stroke: var(--ink-3); stroke-opacity: 0.35; } 21.9% { stroke: var(--ink-3); stroke-opacity: 0.35; } 22.0% { stroke: var(--accent); stroke-opacity: 1; } 30.0% { stroke: var(--accent); stroke-opacity: 1; } 30.1% { stroke: var(--ink-3); stroke-opacity: 0.35; } 100.0% { stroke: var(--ink-3); stroke-opacity: 0.35; } }
.ai-e0 { animation: ai-edge0 12s linear infinite; }
@keyframes ai-lane3 { 0.0% { stroke: var(--line); stroke-width: 1.2; } 50.2% { stroke: var(--line); stroke-width: 1.2; } 50.3% { stroke: var(--accent); stroke-width: 2.4; } 63.3% { stroke: var(--accent); stroke-width: 2.4; } 63.4% { stroke: var(--line); stroke-width: 1.2; } 100.0% { stroke: var(--line); stroke-width: 1.2; } }
.ai-l3 .ai-n { animation: ai-lane3 12s linear infinite; }
@keyframes ai-sel3 { 0.0% { fill: var(--line);  } 35.2% { fill: var(--line);  } 35.3% { fill: var(--accent);  } 63.3% { fill: var(--accent);  } 63.4% { fill: var(--line);  } 100.0% { fill: var(--line);  } }
.ai-sel3 { animation: ai-sel3 12s linear infinite; }
@keyframes ai-edge3 { 0.0% { stroke: var(--ink-3); stroke-opacity: 0.35; } 41.2% { stroke: var(--ink-3); stroke-opacity: 0.35; } 41.3% { stroke: var(--accent); stroke-opacity: 1; } 50.3% { stroke: var(--accent); stroke-opacity: 1; } 50.4% { stroke: var(--ink-3); stroke-opacity: 0.35; } 55.2% { stroke: var(--ink-3); stroke-opacity: 0.35; } 55.3% { stroke: var(--accent); stroke-opacity: 1; } 63.3% { stroke: var(--accent); stroke-opacity: 1; } 63.4% { stroke: var(--ink-3); stroke-opacity: 0.35; } 100.0% { stroke: var(--ink-3); stroke-opacity: 0.35; } }
.ai-e3 { animation: ai-edge3 12s linear infinite; }
@keyframes ai-lane5 { 0.0% { stroke: var(--line); stroke-width: 1.2; } 83.5% { stroke: var(--line); stroke-width: 1.2; } 83.6% { stroke: var(--accent); stroke-width: 2.4; } 96.6% { stroke: var(--accent); stroke-width: 2.4; } 96.7% { stroke: var(--line); stroke-width: 1.2; } 100.0% { stroke: var(--line); stroke-width: 1.2; } }
.ai-l5 .ai-n { animation: ai-lane5 12s linear infinite; }
@keyframes ai-sel5 { 0.0% { fill: var(--line);  } 68.5% { fill: var(--line);  } 68.6% { fill: var(--accent);  } 96.6% { fill: var(--accent);  } 96.7% { fill: var(--line);  } 100.0% { fill: var(--line);  } }
.ai-sel5 { animation: ai-sel5 12s linear infinite; }
@keyframes ai-edge5 { 0.0% { stroke: var(--ink-3); stroke-opacity: 0.35; } 74.5% { stroke: var(--ink-3); stroke-opacity: 0.35; } 74.6% { stroke: var(--accent); stroke-opacity: 1; } 83.6% { stroke: var(--accent); stroke-opacity: 1; } 83.7% { stroke: var(--ink-3); stroke-opacity: 0.35; } 88.5% { stroke: var(--ink-3); stroke-opacity: 0.35; } 88.6% { stroke: var(--accent); stroke-opacity: 1; } 96.6% { stroke: var(--accent); stroke-opacity: 1; } 96.7% { stroke: var(--ink-3); stroke-opacity: 0.35; } 100.0% { stroke: var(--ink-3); stroke-opacity: 0.35; } }
.ai-e5 { animation: ai-edge5 12s linear infinite; }
.ai { display: block; width: 100%; max-width: 560px; height: auto; margin: 0 auto; }
.ai-n { stroke: var(--line); }
.ai-bridge { fill: rgba(255, 121, 0, 0.06); stroke: var(--accent); stroke-opacity: 0.45; stroke-dasharray: 5 4; }
.ai-bl { fill: var(--accent-700); font: 700 11px var(--font); letter-spacing: 0.08em; text-transform: uppercase; }
.ai-sel { fill: var(--line); stroke: var(--ink-3); stroke-opacity: 0.6; }
.ai-e { stroke-opacity: 0.35; }
.ai-q { fill: var(--ink-3); animation: ai-q 12s linear infinite; }
.ai-q1 { animation-delay: 0.3s; } .ai-q2 { animation-delay: 0.6s; }
.ai-warm { fill: none; stroke: var(--accent); stroke-width: 2; opacity: 0.8; transform-box: fill-box; transform-origin: center; animation: ai-warm 12s ease-out infinite; }
@keyframes ai-q { 0%, 38% { opacity: 0.35; transform: translateX(0); } 45%, 52% { opacity: 1; transform: translateX(0); } 54% { opacity: 1; transform: translateX(-14px); } 58%, 100% { opacity: 0.35; transform: translateX(0); } }
@keyframes ai-warm { 0%, 50% { transform: scale(1); opacity: 0.8; } 55% { transform: scale(1.5); opacity: 0.3; } 60%, 100% { transform: scale(1); opacity: 0.8; } }
.jv-pl { font-size: 10.5px; }
.jv { display: block; width: 100%; max-width: 520px; height: auto; margin: 0 auto; }
.jv-c0 { animation: jv-ca 10s ease-in-out infinite; } .jv-c1 { animation: jv-cb 10s ease-in-out infinite; } .jv-c3 { animation: jv-cd 10s ease-in-out infinite; }
.jv-ed, .ai-ed { fill: none; stroke: var(--ink-3); stroke-width: 1.5; }
.jv-c1 .jv-cn { animation: jv-cbhl 10s linear infinite; }
.jv-e1 { animation: jv-e1 10s linear infinite; } .jv-e2 { animation: jv-e2 10s linear infinite; } .jv-e3 { animation: jv-e3 10s linear infinite; } .jv-e4 { animation: jv-e4 10s linear infinite; }
.jv-llm .fx-node { animation: jv-llm 10s linear infinite; }
.jv-fb { opacity: 0.55; animation: jv-fbt 10s linear infinite; }
.jv-d1 { offset-path: path("M130,133 L186,133"); animation: jv-d1 10s linear infinite; }
.jv-d2 { offset-path: path("M274,133 L336,133"); animation: jv-d2 10s linear infinite; }
.jv-d3 { offset-path: path("M405,188 L405,214"); animation: jv-d3 10s linear infinite; }
.jv-d4 { offset-path: path("M230,173 L230,214"); animation: jv-d4 10s linear infinite; }
@keyframes jv-ca { 0%, 24% { transform: translateY(0); } 32%, 56% { transform: translateY(42px); } 60%, 100% { transform: translateY(0); } }
@keyframes jv-cb { 0%, 24% { transform: translateY(0); } 32%, 56% { transform: translateY(-42px); } 60%, 100% { transform: translateY(0); } }
@keyframes jv-cd { 0%, 24% { opacity: 1; } 32%, 56% { opacity: 0.4; } 60%, 100% { opacity: 1; } }
@keyframes jv-cbhl { 0%, 30% { stroke: var(--line); stroke-width: 1.2; } 34%, 56% { stroke: var(--accent); stroke-width: 2.6; } 60%, 100% { stroke: var(--line); stroke-width: 1.2; } }
@keyframes jv-llm { 0%, 84% { stroke: var(--line); stroke-width: 1.2; } 88%, 96% { stroke: var(--accent); stroke-width: 2.6; } 99%, 100% { stroke: var(--line); stroke-width: 1.2; } }
@keyframes jv-fbt { 0%, 72% { opacity: 0.55; } 76%, 94% { opacity: 1; } 98%, 100% { opacity: 0.55; } }
@keyframes jv-d2 { 0%,13.9% { offset-distance: 0%; opacity: 0; } 14.0% { offset-distance: 0%; opacity: 1; } 24.0% { offset-distance: 100%; opacity: 1; } 24.1%,100% { offset-distance: 100%; opacity: 0; } }
@keyframes jv-d3 { 0%,37.9% { offset-distance: 0%; opacity: 0; } 38.0% { offset-distance: 0%; opacity: 1; } 48.0% { offset-distance: 100%; opacity: 1; } 48.1%,100% { offset-distance: 100%; opacity: 0; } }
@keyframes jv-d4 { 0%,75.9% { offset-distance: 0%; opacity: 0; } 76.0% { offset-distance: 0%; opacity: 1; } 88.0% { offset-distance: 100%; opacity: 1; } 88.1%,100% { offset-distance: 100%; opacity: 0; } }
@keyframes jv-e1 { 0%, 2% { stroke: var(--ink-3); } 3%, 12% { stroke: var(--accent); } 14%, 62% { stroke: var(--ink-3); } 63%, 72% { stroke: var(--accent); } 74%, 100% { stroke: var(--ink-3); } }
@keyframes jv-e2 { 0%, 13% { stroke: var(--ink-3); } 14%, 24% { stroke: var(--accent); } 26%, 100% { stroke: var(--ink-3); } }
@keyframes jv-e3 { 0%, 37% { stroke: var(--ink-3); } 38%, 48% { stroke: var(--accent); } 50%, 100% { stroke: var(--ink-3); } }
@keyframes jv-e4 { 0%, 75% { stroke: var(--ink-3); } 76%, 88% { stroke: var(--accent); } 90%, 100% { stroke: var(--ink-3); } }
@keyframes jv-d1 { 0%,2.9% { offset-distance: 0%; opacity: 0; } 3% { offset-distance: 0%; opacity: 1; } 12% { offset-distance: 100%; opacity: 1; } 12.1%,62.9% { offset-distance: 100%; opacity: 0; } 63% { offset-distance: 0%; opacity: 1; } 72% { offset-distance: 100%; opacity: 1; } 72.1%,100% { offset-distance: 100%; opacity: 0; } }
/* Bubble feel scene: the app's own bubble CSS (web/bubbleate.css: .mode / .brand .logo / .brandmenu / .think, light theme), with its soap-film texture */
.bfs { container-type: inline-size; position: relative; border-radius: 22px; overflow: hidden; background: #eeede8; }
.bfs-in { --u: .6px; position: relative; width: 100%; height: calc(var(--u) * 320); overflow: hidden;
  --fg: #1c1c1e; --hi: 1; --line: rgba(40, 40, 50, .14); --glass-strong: rgba(255, 255, 255, .84); --rim: rgba(120, 122, 140, .16); --shadow-c: rgba(30, 30, 40, .12);
  --soap-core: rgba(255, 255, 255, .08); --soap-edge: rgba(255, 255, 255, .4); --soap-rim: rgba(255, 255, 255, .95); --soap-blend: normal; --soap-glint: rgba(255, 255, 255, .98); --soap-line: rgba(64, 68, 82, .2);
  --film-o: .5; --film-k: .85; --shape: 48% 52% 51% 49% / 52% 47% 53% 48%;
  background: radial-gradient(120% 70% at 50% -8%, rgba(255, 255, 255, .75) 0, transparent 62%), linear-gradient(rgba(40, 44, 54, .085) 1px, transparent 1px) center / 120px 120px, linear-gradient(90deg, rgba(40, 44, 54, .085) 1px, transparent 1px) center / 120px 120px, linear-gradient(rgba(40, 44, 54, .045) 1px, transparent 1px) center / 24px 24px, linear-gradient(90deg, rgba(40, 44, 54, .045) 1px, transparent 1px) center / 24px 24px, linear-gradient(180deg, #eeede8 0%, #e5e4de 100%); }
@supports (width: 1cqw) { .bfs-in { --u: calc(100cqw / 600); } }
.bfs-w { position: absolute; }
.bfs-wb { left: calc(var(--u) * 50); top: calc(var(--u) * 60); width: calc(var(--u) * 200); height: calc(var(--u) * 200); animation: bfx-def 12s linear infinite; }
.bfs-ws { left: calc(var(--u) * 288); top: calc(var(--u) * 208); width: calc(var(--u) * 84); height: calc(var(--u) * 84); animation: bfx-small 12s linear infinite; }
.bfs-wl { left: calc(var(--u) * 478); top: calc(var(--u) * 54); width: calc(var(--u) * 44); height: calc(var(--u) * 44); animation: bfx-gulp 12s linear infinite; }
.bfx { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; text-align: center; padding: 8%; color: var(--fg); font: 700 calc(var(--u) * 13) / 1.15 var(--font); isolation: isolate;
  border-radius: var(--shape); border: 1px solid rgba(255, 255, 255, calc(.6 * var(--hi)));
  background: radial-gradient(closest-side, var(--soap-core) 0, var(--soap-core) 58%, var(--soap-edge) 88%, var(--soap-rim) 100%);
  box-shadow: 0 0 0 1px var(--soap-line), inset 0 0 0 1px var(--soap-rim), inset 0 -10px 22px var(--rim), 0 12px 26px var(--shadow-c);
  -webkit-backdrop-filter: blur(1.5px) saturate(1.3); backdrop-filter: blur(1.5px) saturate(1.3);
  animation: bfx-wobble 11s ease-in-out infinite, bfx-bob 6s ease-in-out infinite, bfx-wiggle 4.6s ease-in-out infinite; }
.bfx-b { font-size: calc(var(--u) * 19); font-family: Fraunces, Georgia, 'Times New Roman', serif; font-weight: 500; --film-o: .4; --film-t: 44s; animation-duration: 16s, 6s, 4.6s; }
.bfx-s { --film-t: 36s; --film-r: reverse; animation: bfx-wobble 11s ease-in-out infinite, bfx-bob 4.4s ease-in-out infinite, bfx-wiggle 4.6s ease-in-out infinite, bfx-stext 12s linear infinite; }
.bfx-logo { position: absolute; inset: 0; border-radius: 50%; isolation: isolate; --film-t: 40s; display: grid; place-items: center;
  background: radial-gradient(closest-side, var(--soap-core) 0, var(--soap-core) 58%, var(--soap-edge) 88%, var(--soap-rim) 100%);
  box-shadow: 0 0 0 1px var(--soap-line), inset 0 0 0 1px var(--soap-rim), 0 6px 16px var(--shadow-c); }
.bfx-logo svg { width: 56%; height: 56%; color: var(--fg); opacity: .8; }
.bfx::before, .bfx-logo::before { content: ""; position: absolute; inset: 0; border-radius: 50%; z-index: -1; pointer-events: none; background-image: url(../assets/img/projects/bubbleate/soap-film.webp); background-position: 0 0; background-size: 200% auto; background-repeat: repeat;
  -webkit-mask: radial-gradient(closest-side, rgba(0, 0, 0, .1) 0, rgba(0, 0, 0, .14) 52%, rgba(0, 0, 0, .5) 76%, #000 93%, rgba(0, 0, 0, .6) 99%, transparent 100%); mask: radial-gradient(closest-side, rgba(0, 0, 0, .1) 0, rgba(0, 0, 0, .14) 52%, rgba(0, 0, 0, .5) 76%, #000 93%, rgba(0, 0, 0, .6) 99%, transparent 100%);
  opacity: var(--film-o); filter: blur(.6px); mix-blend-mode: var(--soap-blend); animation: bfx-film var(--film-t, 70s) linear infinite var(--film-r, normal); }
.bfx::after, .bfx-logo::after { content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: -1; pointer-events: none;
  background: radial-gradient(20% 12% at 31% 19%, var(--soap-glint) 0, rgba(255, 255, 255, 0) 100%), radial-gradient(7% 5% at 73% 82%, var(--soap-glint) 0, rgba(255, 255, 255, 0) 100%), radial-gradient(closest-side, transparent 80%, rgba(255, 255, 255, .35) 96%, transparent 100%); }
.bfx-think { position: absolute; left: 50%; top: 50%; width: 0; height: 0; pointer-events: none; }
.bfx-think i { position: absolute; left: 0; top: 0; width: var(--s); height: var(--s); margin: calc(var(--s) / -2) 0 0 calc(var(--s) / -2); border-radius: 50%; opacity: 0; translate: var(--x0) var(--y0);
  background: radial-gradient(28% 22% at 32% 28%, var(--soap-glint) 0, rgba(255, 255, 255, 0) 100%), radial-gradient(closest-side, var(--soap-core) 0, var(--soap-core) 50%, var(--soap-edge) 85%, var(--soap-rim) 100%);
  box-shadow: 0 0 0 .5px var(--soap-line), 0 1px 3px var(--shadow-c); animation: bfx-think 2.85s cubic-bezier(.3, .55, .4, 1) var(--d) infinite both; }
.bfs-t1 { --s: calc(var(--u) * 10.27); --x0: calc(var(--u) * 10.27); --y0: calc(var(--u) * -19.07); --xm: calc(var(--u) * 14.67); --ym: calc(var(--u) * -26.41); --x1: calc(var(--u) * 22.01); --y1: calc(var(--u) * -33.74); --d: 0s; }
.bfs-t2 { --s: calc(var(--u) * 7.34); --x0: calc(var(--u) * 3.81); --y0: calc(var(--u) * -21.27); --xm: calc(var(--u) * 1.47); --ym: calc(var(--u) * -27.87); --x1: calc(var(--u) * 5.87); --y1: calc(var(--u) * -35.21); --d: 0.95s; }
.bfs-t3 { --s: calc(var(--u) * 8.80); --x0: calc(var(--u) * 15.40); --y0: calc(var(--u) * -15.40); --xm: calc(var(--u) * 23.47); --ym: calc(var(--u) * -22.01); --x1: calc(var(--u) * 32.27); --y1: calc(var(--u) * -30.81); --d: 1.9s; }
.bfs-menu { position: absolute; left: calc(var(--u) * 368); top: calc(var(--u) * 108); width: calc(var(--u) * 150); padding: calc(var(--u) * 8); isolation: isolate; border-radius: calc(var(--u) * 24); transform-origin: calc(var(--u) * 132) calc(var(--u) * -32);
  background: radial-gradient(130% 90% at 18% 0%, rgba(255, 255, 255, calc(.55 * var(--hi))) 0, transparent 55%), var(--glass-strong);
  -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: 0 0 0 1px var(--soap-line), inset 0 0 0 1px var(--soap-rim), inset 0 -14px 30px rgba(255, 255, 255, calc(.18 * var(--hi))), 0 18px 44px var(--shadow-c); animation: bfx-menu 12s linear infinite; }
.bfs-menu::before { content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: -1; pointer-events: none; background: url(../assets/img/projects/bubbleate/soap-film.webp) center / cover; opacity: calc(.5 * var(--film-k)); filter: blur(1px);
  -webkit-mask: linear-gradient(#000, transparent 14%, transparent 86%, #000), linear-gradient(90deg, #000, transparent 9%, transparent 91%, #000); mask: linear-gradient(#000, transparent 14%, transparent 86%, #000), linear-gradient(90deg, #000, transparent 9%, transparent 91%, #000); }
.bfs-menu::after { content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: -1; pointer-events: none; background: radial-gradient(14% 9% at 16% 8%, var(--soap-glint) 0, rgba(255, 255, 255, 0) 100%), radial-gradient(5% 4% at 90% 92%, var(--soap-glint) 0, rgba(255, 255, 255, 0) 100%); }
.bfs-menu span { display: block; padding: calc(var(--u) * 8) calc(var(--u) * 12); font: 600 calc(var(--u) * 13) / 1.2 var(--font); color: var(--fg); border-radius: calc(var(--u) * 14); }
.bfs-menu span:first-child { background: rgba(255, 255, 255, .6); }
.bfs-f { position: absolute; left: calc(var(--u) * 19); top: calc(var(--u) * 59); width: calc(var(--u) * 22); height: calc(var(--u) * 22); border-radius: 50%; background: rgba(255, 255, 255, .55); box-shadow: 0 0 0 1.5px rgba(28, 28, 30, .35), 0 4px 10px var(--shadow-c); opacity: 0; animation: bfx-touch 12s linear infinite; }
@keyframes bfx-film { to { transform: rotate(1turn); } }
@keyframes bfx-wobble { 0%, 100% { border-radius: 48% 52% 51% 49% / 52% 47% 53% 48%; } 33% { border-radius: 53% 47% 46% 54% / 48% 55% 45% 52%; } 66% { border-radius: 46% 54% 55% 45% / 54% 47% 53% 46%; } }
@keyframes bfx-bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 calc(var(--u) * -9); } }
@keyframes bfx-wiggle { 0%, 100% { scale: 1 1; rotate: 0deg; } 25% { scale: 1.018 .984; rotate: .8deg; } 50% { scale: .99 1.012; rotate: 0deg; } 75% { scale: 1.01 .992; rotate: -.8deg; } }
@keyframes bfx-think { 0% { translate: var(--x0) var(--y0); scale: .2; opacity: 0; } 14% { opacity: 1; scale: 1.14 .86; } 26% { scale: .93 1.07; } 40% { scale: 1.02 .98; } 52% { translate: var(--xm) var(--ym); scale: 1; } 75% { opacity: .8; } 100% { translate: var(--x1) var(--y1); scale: .8; opacity: 0; } }
@keyframes bfx-def { 0%, 19% { transform: scale(1, 1); } 22% { transform: scale(1.1, .9); } 26% { transform: scale(.93, 1.08); } 30% { transform: scale(1.04, .97); } 34% { transform: scale(.99, 1.012); } 38%, 62% { transform: scale(1, 1); } 65% { transform: scale(1.12, .9); } 69% { transform: scale(.94, 1.08); } 73% { transform: scale(1.02, .985); } 77%, 100% { transform: scale(1, 1); } }
@keyframes bfx-touch { 0%, 8% { opacity: 0; transform: translate(0, 0); } 10% { opacity: 1; transform: translate(0, 0); } 19% { opacity: 1; transform: translate(calc(var(--u) * 40), calc(var(--u) * 30)); } 24% { opacity: 1; transform: translate(calc(var(--u) * 40), calc(var(--u) * 30)); } 28%, 100% { opacity: 0; transform: translate(calc(var(--u) * 40), calc(var(--u) * 30)); } }
@keyframes bfx-small { 0%, 38% { transform: translate(0, 0) scale(1, 1); opacity: 1; } 56% { transform: translate(calc(var(--u) * -118), calc(var(--u) * -58)) scale(1, 1); } 58% { transform: translate(calc(var(--u) * -180), calc(var(--u) * -90)) scale(1.28, .78); opacity: 1; } 61% { transform: translate(calc(var(--u) * -180), calc(var(--u) * -90)) scale(.8, 1.22); opacity: .6; } 64% { transform: translate(calc(var(--u) * -180), calc(var(--u) * -90)) scale(.55, .5); opacity: .3; } 67% { transform: translate(calc(var(--u) * -180), calc(var(--u) * -90)) scale(.08, .08); opacity: 0; } 67.1%, 88% { transform: translate(0, 0) scale(.2, .2); opacity: 0; } 94% { transform: translate(0, 0) scale(1.05, .955); opacity: 1; } 97% { transform: translate(0, 0) scale(.985, 1.015); } 100% { transform: translate(0, 0) scale(1, 1); opacity: 1; } }
@keyframes bfx-stext { 0%, 46% { color: #1c1c1e; } 52%, 90% { color: rgba(28, 28, 30, 0); } 97%, 100% { color: #1c1c1e; } }
@keyframes bfx-gulp { 0%, 75% { transform: scale(1, 1); } 78% { transform: scale(1.22, 1.12); } 81% { transform: scale(.94, 1); } 84%, 100% { transform: scale(1, 1); } }
@keyframes bfx-menu { 0%, 77% { transform: scale(.07); opacity: 0; filter: blur(3px); } 79% { opacity: 1; filter: blur(0); } 83% { transform: scale(1.05, .95); } 86% { transform: scale(.97, 1.035); } 89% { transform: scale(1.015, .99); } 91%, 94% { transform: none; opacity: 1; } 95% { transform: scale(1.025, .975); opacity: 1; } 98%, 100% { transform: scale(.07); opacity: 0; filter: blur(2px); } }

.mx-fig { margin: 4px 0 0; }
.mx { display: block; width: 100%; max-width: 360px; height: auto; overflow: visible; }
.mx-h { font-size: 12px; }
.mx-track { fill: var(--line); }
.mx-fill { fill: var(--ink); transform-box: fill-box; transform-origin: 0 50%; animation: mx-fill 8s ease-in-out infinite -4.5s; }
.mx-assumed { fill: var(--accent-100); stroke: var(--accent); stroke-width: 1; stroke-dasharray: 3 2; animation: mx-asm 8s ease-in-out infinite -4.5s; }
.mx-tag { fill: var(--ink-3); opacity: 0.35; }
.mx-line { fill: var(--ink); opacity: 0.12; }
.mx-tag.mx-asm { fill: var(--accent); opacity: 0.8; }
.mx-line.mx-asm { fill: var(--accent-100); stroke: var(--accent); stroke-width: 1; stroke-dasharray: 3 2; opacity: 1; }
.mx-row { transform-box: fill-box; animation: mx-row 8s ease-out infinite; }
.mx-r0 { animation-delay: -4.5s; } .mx-r1 { animation-delay: -3.6s; } .mx-r2 { animation-delay: -2.7s; } .mx-r3 { animation-delay: -1.8s; }
@keyframes mx-row { 0% { opacity: 0; transform: translateX(-12px); } 10%, 80% { opacity: 1; transform: none; } 92%, 100% { opacity: 0; transform: none; } }
@keyframes mx-fill { 0% { transform: scaleX(0.08); } 70%, 92% { transform: scaleX(1); } 100% { transform: scaleX(0.08); } }
@keyframes mx-asm { 0%, 45% { opacity: 0; } 62%, 92% { opacity: 1; } 100% { opacity: 0; } }

.mx-e1 { animation: mx-e1 10s linear infinite; }
.mx-e2 { animation: mx-e2 10s linear infinite; }
@keyframes mx-e1 { 0%, 4% { stroke: var(--ink-3); } 5%, 16% { stroke: var(--accent); } 18%, 49% { stroke: var(--ink-3); } 50%, 63% { stroke: var(--accent); } 65%, 100% { stroke: var(--ink-3); } }
@keyframes mx-e2 { 0%, 14% { stroke: var(--ink-3); } 15%, 26% { stroke: var(--accent); } 28%, 49% { stroke: var(--ink-3); } 50%, 63% { stroke: var(--accent); } 65%, 100% { stroke: var(--ink-3); } }
.mx-ring { fill: none; stroke: var(--accent); stroke-width: 2; opacity: 0; transform-box: fill-box; transform-origin: center; animation: mx-ring 10s ease-out infinite; }
@keyframes mx-ring { 0%, 14% { opacity: 0; transform: scale(0.85); } 16% { opacity: 0.9; transform: scale(0.95); } 26% { opacity: 0; transform: scale(1.5); } 27%, 61% { opacity: 0; transform: scale(0.85); } 63% { opacity: 0.9; transform: scale(0.95); } 73%, 100% { opacity: 0; transform: scale(1.5); } }
.mx-doc { fill: #fff; stroke: var(--ink-3); stroke-width: 1.2; }
.mx-doc2 { stroke: var(--accent); }
.mx-docs { transform-box: fill-box; transform-origin: center; animation: mx-docs 10s ease-out infinite; }
@keyframes mx-docs { 0%, 64% { opacity: 0; transform: scale(0.85); } 72%, 92% { opacity: 1; transform: none; } 100% { opacity: 0; transform: none; } }
.mx-s-a { offset-path: path("M96,76 L124,56"); animation: mx-ta 10s linear infinite; }
.mx-s-b { offset-path: path("M196,56 L224,76"); animation: mx-tb 10s linear infinite; }
.mx-s-c { offset-path: path("M96,76 L124,56"); animation: mx-tc 10s linear infinite; }
.mx-s-d { offset-path: path("M224,76 L196,56"); animation: mx-tc 10s linear infinite; }
@keyframes mx-ta { 0%,4% { offset-distance: 0%; opacity: 0; } 5% { offset-distance: 0%; opacity: 1; } 15% { offset-distance: 100%; opacity: 1; } 16%,100% { offset-distance: 100%; opacity: 0; } }
@keyframes mx-tb { 0%,14% { offset-distance: 0%; opacity: 0; } 15% { offset-distance: 0%; opacity: 1; } 25% { offset-distance: 100%; opacity: 1; } 26%,100% { offset-distance: 100%; opacity: 0; } }
@keyframes mx-tc { 0%,49% { offset-distance: 0%; opacity: 0; } 50% { offset-distance: 0%; opacity: 1; } 62% { offset-distance: 100%; opacity: 1; } 63%,100% { offset-distance: 100%; opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  .mx *, .mx-fig *, .ai *, .jv *, .bfs *, .bfs *::before, .bfs *::after { animation: none !important; }
  .mx-ptr, .mx-s-a, .mx-s-b, .mx-s-c, .mx-s-d, .ai-d, .jv-d, .bfs-f { display: none; }
}
/* Screenshots: one row that scrolls inside its own box, so the page never scrolls sideways */
.shots { margin: 0; display: grid; gap: 10px; min-width: 0; }
.shots-row { display: flex; gap: 12px; overflow-x: auto; padding: 4px 2px 10px; scroll-snap-type: x proximity; overscroll-behavior-x: contain; }
.shots-row:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: var(--r-sm); }
.shots-row figure { margin: 0; flex: none; scroll-snap-align: start; display: grid; gap: 6px; }
.shots-row img { display: block; height: 320px; width: auto; max-width: none; border-radius: var(--r-sm); border: 1px solid var(--line); box-shadow: var(--glass-lift); background: var(--paper); }
.shots-row figcaption { font-size: 12px; line-height: 1.4; color: var(--ink-3); max-width: 28ch; }

/* More projects: one native details per project, no script */
.more-block { grid-column: 1 / -1; display: grid; gap: 12px; margin-top: 8px; min-width: 0; }
.more-title { font-size: clamp(22px, 2.2vw, 28px); margin: 4px 0 0; }
.more { border-radius: var(--r-lg); min-width: 0; }
.more summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 16px; padding: 18px 56px 18px 24px; position: relative; border-radius: var(--r-lg); }
.more summary::-webkit-details-marker { display: none; }
.more summary::after { content: ''; position: absolute; right: 24px; top: 50%; width: 9px; height: 9px; margin-top: -6px; border-right: 2px solid var(--ink-2); border-bottom: 2px solid var(--ink-2); transform: rotate(45deg); transition: transform 0.2s ease; }
.more[open] summary::after { transform: rotate(225deg); margin-top: -2px; }
.more summary:focus-visible { outline: 2px solid var(--accent); outline-offset: -3px; }
.more-head { display: grid; gap: 2px; min-width: 0; flex: 1; }
.more-t { font-size: 18px; font-weight: 800; letter-spacing: -0.01em; }
.more-d { font-size: 14px; line-height: 1.4; color: var(--ink-2); text-wrap: pretty; }
.more-when { flex: none; font-size: 12px; font-weight: 700; color: var(--ink-3); }
.more-body { display: flex; flex-direction: column; gap: 14px; padding: 4px 24px 24px; }
.more-shots { display: grid; gap: 12px; min-width: 0; }
.more-shots-2 { grid-template-columns: minmax(0, 1.6fr) minmax(0, 0.7fr); align-items: start; }
.card-shots { display: grid; gap: 12px; align-items: start; min-width: 0; }
.cs-billie { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.4fr) minmax(0, 0.6fr); }
.cs-thesis { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); }
.more-fig { margin: 0; display: grid; gap: 6px; min-width: 0; }
.more-fig img { display: block; width: 100%; max-width: 100%; height: auto; border-radius: var(--r-sm); border: 1px solid var(--line); box-shadow: var(--glass-lift); }
.more-fig figcaption { font-size: 12px; line-height: 1.4; color: var(--ink-3); text-wrap: pretty; }
.more-icon { grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 12px; }
.more-icon img { width: 72px; height: 72px; border-radius: 22%; }
.more-body .proj-stats-row .stat-v { font-size: 24px; }
.dp-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; }
.dp-list li { display: flex; gap: 12px; align-items: baseline; padding: 10px 0; border-top: 1px solid var(--line); font-weight: 700; font-size: 14px; }
.dp-list b { flex: none; width: 34px; font-size: 12px; font-weight: 800; color: var(--accent-700); }
.diary { margin: 0; padding: 20px 22px; border-radius: var(--r-md); }
.diary blockquote { margin: 0; font-size: 15px; line-height: 1.5; text-wrap: pretty; }
.diary figcaption { margin-top: 10px; font-size: 12px; font-weight: 700; color: var(--accent); }

.notes { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.notes li { position: relative; padding-left: 18px; font-size: 14px; line-height: 1.5; color: var(--ink-2); text-wrap: pretty; }
.notes li::before { content: ''; position: absolute; left: 2px; top: 0.6em; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.notes b { color: var(--ink); }
.notes code, .proj-card code { font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: 0.88em; padding: 1px 6px; border-radius: 6px; background: rgba(32, 30, 29, 0.07); color: var(--ink); }
.proj-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.stat { padding: 14px 18px; border-radius: var(--r-md); }
.stat-v { font-weight: 800; font-size: 30px; letter-spacing: -0.02em; line-height: 1.1; margin-top: 4px; }
.proj-stats-row { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: auto; }
.proj-stats-row + .tags { margin-top: 0; }
.proj-stats-row .stat { padding: 12px 14px; display: flex; flex-direction: column; justify-content: space-between; }
.proj-stats-row .fact-k { font-size: 10px; line-height: 1.3; }
.proj-card:not(.proj-wide) .proj-stats-row .stat-v { font-size: 24px; }

.gh-bar { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; padding: 14px 14px 14px 24px; border-radius: var(--r-lg); }
.gh-head { display: flex; align-items: center; gap: 14px; min-width: 0; flex: 1 1 260px; }
.gh-head svg { flex: none; }
.gh-head strong { display: block; font-size: 15px; }
.gh-head span { display: block; font-size: 13px; color: var(--ink-2); }
.gh-repos { display: flex; flex-wrap: wrap; gap: 8px; }
.gh-repo { display: flex; flex-direction: column; padding: 8px 14px; border-radius: var(--r-sm); background: rgba(255, 255, 255, 0.7); box-shadow: inset 0 0 0 1px var(--line); }
.gh-repo b { font-size: 13px; }
.gh-repo span { font-size: 11px; color: var(--ink-2); }

/* ── Profile ── */
.profile-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 48px; margin-bottom: 36px; align-items: end; }
.profile-head h2 { font-size: clamp(28px, 3.4vw, 44px); letter-spacing: -0.025em; margin-top: 8px; }
.profile-head p { color: var(--ink-2); max-width: 520px; font-size: 16px; text-wrap: pretty; }
.profile-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.panel { padding: 24px; border-radius: var(--r-lg); }
.panel-head { display: flex; justify-content: space-between; font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 14px; }
.panel-head span:last-child { color: var(--accent-700); }
.glass-dark .panel-head { color: rgba(255,255,255,0.6); }
.glass-dark .panel-head span:last-child { color: var(--accent); }
.row { padding: 12px 0; border-top: 1px solid var(--line); }
.glass-dark .row { border-top-color: rgba(255,255,255,0.14); }
.stack-row { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 14px; align-items: start; }
.row-title { font-weight: 800; font-size: 14px; }
.people-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.people-top .row-title { font-size: 15px; }
.meter { display: flex; gap: 3px; }
.meter i { width: 14px; height: 6px; border-radius: 3px; background: rgba(255,255,255,0.18); }
.meter i.on { background: var(--accent); }
.people-body { font-size: 13px; color: rgba(255,255,255,0.72); margin-top: 4px; line-height: 1.45; text-wrap: pretty; }
.lang-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; }
.lang-level { font-size: 12px; color: var(--ink-3); }
.lang-bar { width: 96px; height: 6px; border-radius: 3px; background: rgba(32, 30, 29, 0.1); overflow: hidden; }
.lang-bar i { display: block; height: 100%; border-radius: 3px; background: var(--accent); }
.lang-bar i.p100 { width: 100%; } .lang-bar i.p92 { width: 92%; } .lang-bar i.p78 { width: 78%; }
.rec-row { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 12px; }
.rec-when { font-size: 12px; font-weight: 600; color: var(--ink-3); padding-top: 2px; }
.rec-sub { font-size: 12px; color: var(--ink-2); margin-top: 2px; }
.beyond { grid-column: 1 / -1; padding: 18px 24px; border-radius: var(--r-pill); display: flex; flex-wrap: wrap; gap: 10px 32px; align-items: center; }
.beyond .eyebrow { color: var(--ink-3); font-size: 11px; }
.beyond strong { font-size: 15px; }

/* ── Contact ── */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr); gap: 48px; align-items: end; }
.contact h2 { font-size: clamp(30px, 6vw, 72px); line-height: 1; letter-spacing: -0.03em; margin: 20px 0 16px; text-wrap: balance; overflow-wrap: anywhere; }
.contact-lede { font-size: clamp(15px, 2vw, 18px); max-width: 520px; color: var(--ink-2); }
.contact-list { display: grid; gap: 6px; padding: 6px; border-radius: var(--r-lg); min-width: 0; }
.contact-item {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 4px 12px;
  padding: 16px 18px; min-width: 0; min-height: 56px; border-radius: 22px; border: 0;
  text-decoration: none; text-align: left; cursor: pointer; font-weight: 800; font-size: 16px;
  background: rgba(255, 255, 255, 0.5); transition: background-color 0.2s, transform 0.25s cubic-bezier(.2, .9, .3, 1.4);
}
.contact-item:hover { background: rgba(255, 255, 255, 0.85); transform: scale(1.015); }
.contact-item span:last-child { font-weight: 400; font-size: 14px; overflow-wrap: anywhere; min-width: 0; }
.contact-item.dark { background: var(--glass-dark); color: var(--paper); }
.contact-item.dark:hover { background: rgba(32, 30, 29, 0.92); }

/* ── Footer ── */
.site-footer { padding: 0 0 24px; }
.footer-bar { display: flex; flex-wrap: wrap; gap: 10px 28px; align-items: center; padding: 14px 24px; border-radius: var(--r-pill); font-size: 12px; color: var(--ink-3); }
.footer-bar button { margin-left: auto; background: none; border: 0; padding: 4px 0; cursor: pointer; font-weight: 600; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

/* ── Sheets: command palette + legal ── */
.overlay { position: fixed; inset: 0; z-index: 60; display: flex; justify-content: center; padding: 24px; background: rgba(32, 30, 29, 0.28); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.overlay[hidden] { display: none; }
.overlay.top { align-items: flex-start; padding-top: 12vh; }
.overlay.center { align-items: center; }
.sheet { width: 100%; border-radius: var(--r-lg); overflow: hidden; animation: pop 0.28s cubic-bezier(.2, .9, .3, 1.25) both; }
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(0.97); } to { opacity: 1; transform: none; } }
.palette { max-width: 560px; }
.palette-search { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.palette-search span { font-weight: 800; color: var(--accent-600); }
.palette-search input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; font: inherit; font-size: 16px; color: var(--ink); }
.palette kbd { font-family: var(--font); font-size: 11px; font-weight: 600; color: var(--ink-3); padding: 2px 8px; border-radius: var(--r-pill); box-shadow: inset 0 0 0 1px var(--line); }
.palette-list { display: grid; padding: 6px; max-height: 50vh; overflow: auto; }
.palette-item { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 11px 12px; border: 0; border-radius: var(--r-sm); background: transparent; cursor: pointer; text-align: left; font-size: 14px; }
.palette-item[aria-selected='true'] { background: rgba(255, 255, 255, 0.75); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.9); }
.palette-item .kind { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-700); width: 64px; flex: none; }
.palette-item .label { font-weight: 600; }
.palette-item .hint { font-size: 12px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.palette-item > span:first-child { display: flex; gap: 12px; align-items: center; min-width: 0; }
.palette-foot { display: flex; gap: 16px; padding: 10px 18px; font-size: 11px; color: var(--ink-3); border-top: 1px solid var(--line); }
.legal { max-width: 640px; max-height: 85vh; overflow: auto; padding: 32px; }
.legal h3 { font-size: 20px; margin: 0 0 12px; }
.legal h3 + p { margin-top: 0; }
.legal p { font-size: 14px; margin-bottom: 12px; }
.legal a { color: var(--accent-700); }
.legal .h-gap { margin-top: 24px; }

/* ── Responsive ── */
@media (max-width: 1023px) {
  .contact-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .more-shots-2, .cs-billie, .cs-thesis { grid-template-columns: minmax(0, 1fr); }
  .proj-intro, .proj-split, .proj-cols, .proj-cols-2, .feat, .feat-rev { grid-template-columns: minmax(0, 1fr); }
  .feat-rev .feat-text { order: 0; }
  .proj-card:not(.proj-wide) .proj-stats-row, .more-body .proj-stats-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .fx-d { display: none; }
  .fx-m { display: block; max-width: 420px; margin: 0 auto; }
}
@media (max-width: 639px) {
  :root { --nav-h: 56px; }
  .wrap { padding: 0 16px; }
  .section-pad { padding: 56px 0; }
  .more summary { padding: 16px 48px 16px 18px; flex-wrap: wrap; gap: 4px 12px; }
  .more summary::after { right: 18px; }
  .more-body { padding: 2px 18px 20px; }
  .more-when { display: none; }
  .shots-row img { height: 260px; }
  .proj-icon, .proj-wide .proj-icon { width: 40px; height: 40px; border-radius: 10px; }
  .proj-stats-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-nav { top: 8px; width: calc(100% - 16px); padding: 6px 6px 6px 12px; min-height: 50px; gap: 10px; }
  .nav-links { display: none; }
  .site-nav > .btn { margin-left: auto; }
  .brand { font-size: 13px; }
  .hero { padding: calc(var(--nav-h) + 40px) 0 40px; }
  .hero-grid, .work-grid, .profile-grid, .profile-head { grid-template-columns: minmax(0, 1fr); }
  .hero-grid { gap: 36px; }
  .portrait { aspect-ratio: 1 / 1; border-radius: var(--r-lg); }
  .portrait-img { width: 66%; }
  .journey-pin { padding: 12px 0 16px; }
  .journey .section-head { margin-bottom: 12px; }
  .journey .section-head h2 { font-size: 18px; }
  .board { display: none; }
  .vboard { display: grid; }
  .journey-detail { grid-template-columns: minmax(0, 1fr); }
  .detail-card, .next-card { grid-template-columns: minmax(0, 1fr); padding: 12px 16px; gap: 10px; }
  .detail-title { font-size: 16px; }
  .detail-tags { display: none; }
  .journey.tiny .detail-body, .journey.tiny .next-card, .journey.tiny .section-head .eyebrow { display: none; }
  .work-card { padding: 22px; }
  .proj-grid { grid-template-columns: minmax(0, 1fr); }
  .proj-card { padding: 22px; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .step { display: grid; grid-template-columns: 26px minmax(0, 1fr); column-gap: 12px; padding: 12px 14px; }
  .step-n { grid-row: span 2; margin: 0; }
  .step::after { display: none; }
  .dp-list { grid-template-columns: minmax(0, 1fr); }
  .gh-bar { padding: 16px; }
  .beyond { border-radius: var(--r-lg); }
  .footer-bar { border-radius: var(--r-lg); }
  .footer-bar button { margin-left: 0; }
  .legal { padding: 24px; }
  .overlay { padding: 12px; }
}
@media (max-width: 359px) {
  .brand { font-size: 12px; gap: 8px; }
  .site-nav > .btn { padding: 8px 12px; font-size: 13px; }
}

/* ── Accessibility: the glass steps aside when asked ── */
@media (prefers-reduced-transparency: reduce) {
  .glass, .glass-clear, .glass-regular, .glass-thick { background: rgba(251, 250, 249, 0.97) !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
  .glass-tint { background: var(--accent) !important; }
  .glass-dark { background: var(--ink) !important; }
  .glass::after { display: none; }
  .ambient span { opacity: 0.25; }
}
@media (prefers-contrast: more) {
  .glass { background: #fff !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; box-shadow: inset 0 0 0 2px var(--ink) !important; }
  .glass-tint { background: var(--accent) !important; }
  .glass-dark { background: var(--ink) !important; }
  .glass::after { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ambient-layer { transform: none; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .portrait { transform: none !important; }
  .fx-dot { display: none; }
  .fx-edge { animation: none; }
  .more summary::after { transition: none; }
}
@media print {
  .ambient, .site-nav, .overlay { display: none !important; }
  .glass { background: #fff !important; box-shadow: none !important; backdrop-filter: none !important; }
}
