/* Neutral Liquid: no coloured ambient glow; interface accents and original images stay in colour. */
::selection { color: var(--accent-ink); background: var(--accent); }
body { overflow-x: clip; }
.wrap { width: min(1200px, calc(100% - 64px)); }
.glass {
  isolation: isolate;
  border-color: var(--glass-edge);
  background: linear-gradient(145deg, color-mix(in srgb, var(--glass-fill), var(--bg-0) 14%), var(--glass-fill) 48%, color-mix(in srgb, var(--glass-fill), transparent 22%));
  box-shadow: var(--glass-shadow);
  transition: border-color .3s ease, translate .55s var(--ease-out);
}
.glass::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  border-radius: inherit;
  padding: 1.5px;
  background: linear-gradient(145deg, var(--glass-rim) 5%, var(--glass-edge) 22%, var(--glass-cut) 46%, transparent 55%, var(--glass-rim) 78%, var(--glass-cut));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.glass::after {
  content: "";
  position: absolute;
  inset: 4px;
  z-index: 3;
  border-radius: inherit;
  border: 1px solid transparent;
  border-top-color: color-mix(in srgb, var(--glass-rim) 55%, transparent);
  border-bottom-color: color-mix(in srgb, var(--glass-rim) 38%, transparent);
  box-shadow: 0 1px 2px var(--glass-cut), inset 0 1px 1px var(--glass-rim);
  opacity: .55;
  pointer-events: none;
}
/* Static silver ribbons give the clear material something to transmit. */
.atmosphere::after {
  content: "";
  position: absolute;
  inset: -20%;
  background: linear-gradient(118deg, transparent 29%, color-mix(in srgb, var(--ambient-shadow) 55%, transparent) 38%, var(--ambient-light) 40%, transparent 43%, transparent 65%, color-mix(in srgb, var(--ambient-shadow) 38%, transparent) 73%, transparent 78%);
  opacity: .65;
}
.glass-sheen {
  position: absolute;
  top: 0;
  left: 0;
  width: 380px;
  height: 380px;
  z-index: 2;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, var(--sheen), transparent 65%);
  pointer-events: none;
  opacity: 0;
  transition: opacity .45s ease;
}
.glass.is-pointed > .glass-sheen { opacity: .9; }
.glass-caustic { position: absolute; inset: 0; z-index: 3; border-radius: inherit; overflow: hidden; pointer-events: none; opacity: 0; transition: opacity .4s ease; }
.glass-caustic::before { content: ""; position: absolute; inset: -60%; border-radius: 42%; border: 14px solid var(--glass-rim); box-shadow: 0 0 14px var(--sheen), inset 0 0 12px var(--sheen); transform: translate(-24%, -22%) rotate(-30deg); }
.is-pointed > .glass-caustic { opacity: .22; }
.nav {
  width: min(1200px, calc(100% - 40px));
  top: 18px;
  margin-top: 18px;
  padding: 10px 16px;
  border-radius: 24px;
  -webkit-backdrop-filter: blur(18px) saturate(1.1);
  backdrop-filter: blur(18px) saturate(1.1);
}
.nav-links { position: relative; isolation: isolate; }
.nav-links a { position: relative; z-index: 1; transition: color .25s; }
.nav-links a:hover, .nav-links a:focus-visible { background: transparent; }
.nav-indicator {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  height: 100%;
  border: 1px solid var(--glass-edge);
  border-radius: 99px;
  background: var(--chip);
  box-shadow: var(--glass-shadow);
  pointer-events: none;
  opacity: 0;
  transition: opacity .25s ease;
}
.nav-progress { position: absolute; bottom: 0; left: 20px; right: 20px; height: 2px; overflow: hidden; border-radius: 2px; pointer-events: none; }
.nav-progress span { display: block; height: 100%; background: linear-gradient(90deg, transparent, var(--accent)); transform: scaleX(0); transform-origin: left; opacity: .65; }
.nav-more-panel, .dock { -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px); }
.nav-more-panel { border-color: var(--glass-edge); border-radius: 22px; transform-origin: top right; }
.brand-avatar { box-shadow: 0 4px 10px -4px rgba(0,0,0,.25); }
.hero-bento { margin: 30px 0 46px; }
.identity {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: 0 20px;
  padding: 44px 44px 0;
  border-radius: 36px;
  background: linear-gradient(120deg, color-mix(in srgb, var(--glass-fill), var(--bg-0) 13%), color-mix(in srgb, var(--glass-fill) 65%, transparent));
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.identity-copy { position: relative; z-index: 4; gap: 20px; padding: 12px 0 38px; }
.hero-eyebrow { display: flex; align-items: center; gap: 8px; font-size: 9px; letter-spacing: .12em; }
.status-beacon { position: relative; flex: 0 0 auto; display: inline-block; width: 6px; height: 6px; border-radius: 50%; color: var(--good); background: currentColor; }
.status-beacon::after { content: ""; position: absolute; inset: -4px; border: 1px solid currentColor; border-radius: 50%; animation: beacon 3s ease-out infinite; }
.identity-top { grid-template-columns: 72px minmax(0, 1fr); gap: 20px; }
.avatar-frame { position: relative; width: 72px; height: 72px; border-radius: 25px; padding: 5px; border-color: var(--glass-edge); background: var(--glass-fill); box-shadow: var(--glass-shadow); }
.hero-avatar { width: 60px; height: 60px; border-radius: 19px; }
.identity .kicker { margin-bottom: 7px; font: 500 12px/1.4 var(--font); letter-spacing: .03em; }
.identity h1 { font: 680 clamp(38px, 4.5vw, 64px)/1.08 var(--font-display); letter-spacing: -.065em; white-space: nowrap; }
.name-dot { color: var(--accent); }
.headline { margin: 0; max-width: 20ch; font-size: clamp(21px, 2.2vw, 28px); font-weight: 570; line-height: 1.55; letter-spacing: -.035em; }
.headline-animated { display: grid; }
.headline-measure, .headline-live { grid-area: 1 / 1; }
.headline-measure { visibility: hidden; pointer-events: none; }
.headline-live::after, .headline-measure::after { content: ""; display: inline-block; width: 2px; height: .85em; margin-left: .15em; vertical-align: -.03em; background: currentColor; }
.headline-live::after { opacity: 0; }
.typing-active .headline-live::after { animation: typing-caret 1.1s steps(1) infinite; }
.typing-active.is-typing .headline-live::after { animation: none; opacity: .65; }
.lead { max-width: 440px; font-size: 13px; line-height: 1.9; }
.hero-actions { gap: 20px; margin-top: 2px; }
.hero-actions .btn { min-height: 46px; padding: 0 22px; }
.hero-link { position: relative; font-size: 12px; gap: 6px; transition: color .2s, translate .4s var(--ease-out); }
.hero-link::after { content: ""; position: absolute; bottom: 5px; left: 0; width: 100%; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease-out); }
.hero-link:hover::after { transform: scaleX(1); }
.hero-bottom { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; grid-column: 1 / -1; align-items: center; min-height: 110px; padding-block: 24px; border-top: 1px solid var(--line); }
.stat-row { display: flex; gap: clamp(22px, 3vw, 48px); margin: 0; padding: 0; border: 0; }
.stat { display: flex; flex-direction: column; gap: 8px; }
.stat b { font: 600 27px/1 var(--font-display); font-variant-numeric: tabular-nums; letter-spacing: -.05em; }
.stat span { font-size: 10px; }
.now { position: relative; gap: 6px; padding-left: 24px; border-left: 1px solid var(--line); }
.now-kicker { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 10px; }
.now-text { color: var(--sub); font-size: 12px; line-height: 1.7; font-weight: 400; }
.now .admin-only { position: absolute; top: 0; right: 0; }
/* The desk uses nested anchors / floating wrappers so tilt, float and hover never fight. */
.liquid-scene { position: relative; align-self: stretch; min-height: 388px; perspective: 1000px; }
.scene-caption { position: absolute; z-index: 2; top: 0; left: 22px; right: 0; display: flex; justify-content: space-between; margin: 0; color: var(--muted); font: 500 9px/1 var(--font-mono); letter-spacing: .16em; }
.scene-caption > span { font-size: 17px; }
.scene-parallax { position: absolute; inset: 0; transform-style: preserve-3d; }
.scene-orbit { position: absolute; top: 45%; left: 50%; width: 320px; height: 320px; margin: -160px; border: 1px solid var(--line); border-radius: 50%; pointer-events: none; }
.scene-orbit-a::after { content: ""; position: absolute; top: 39px; left: 39px; width: 5px; height: 5px; border-radius: 50%; background: var(--glass-edge); box-shadow: 0 0 12px var(--sheen); }
.scene-orbit-a { animation: orbit-turn 40s linear infinite; }
.scene-orbit-b { width: 250px; height: 250px; margin: -125px; border-style: dashed; opacity: .65; animation: orbit-turn 65s linear reverse infinite; }
.scene-lens { position: absolute; top: 45%; left: 50%; width: 296px; height: 296px; margin: -148px; overflow: hidden; border: 1px solid var(--glass-rim); border-radius: 50%; background: radial-gradient(circle at 30% 18%, var(--glass-rim), transparent 38%), radial-gradient(circle at 70% 85%, var(--ambient-shadow), transparent 65%); box-shadow: inset 3px 4px 5px var(--glass-rim), inset -4px -6px 9px var(--glass-cut), inset 0 0 30px var(--sheen), 0 26px 40px -24px rgba(0,0,0,.25); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.scene-lens::before, .scene-lens::after { content: ""; position: absolute; inset: 10px; border-radius: inherit; border: 1px solid var(--glass-rim); box-shadow: inset 0 2px 8px var(--glass-cut), 0 2px 6px var(--glass-rim); }
.scene-lens::after { inset: 20px; opacity: .35; }
.scene-lens span { position: absolute; width: 145%; height: 75%; left: -25%; top: -24%; border-bottom: 2px solid var(--glass-rim); border-radius: 50%; background: linear-gradient(transparent 45%, var(--sheen)); transform: rotate(-30deg); opacity: .8; }
.scene-app { position: absolute; z-index: 2; }
.scene-app-0 { top: 21%; left: 21%; width: 64%; z-index: 3; }
.scene-app-1 { top: 9%; left: 0; width: 48%; }
.scene-app-2 { top: 7%; right: -3%; width: 42%; }
.scene-app-3 { bottom: 6%; left: -2%; width: 45%; z-index: 4; }
.scene-app-4 { bottom: 3%; right: -3%; width: 45%; z-index: 4; }
.scene-float { animation: desk-float 6s ease-in-out infinite; }
.scene-app-1 .scene-float { animation-name: desk-drift; animation-delay: -1.3s; animation-duration: 7s; }
.scene-app-2 .scene-float { animation-name: desk-drift; animation-delay: -3s; animation-duration: 5.8s; animation-direction: reverse; }
.scene-app-3 .scene-float { animation-name: desk-drift; animation-delay: -2s; animation-duration: 6.5s; }
.scene-app-4 .scene-float { animation-name: desk-drift; animation-delay: -.8s; animation-duration: 7.5s; animation-direction: reverse; }
.scene-chip { display: block; padding: 13px; border-radius: 22px; color: var(--ink); text-decoration: none; -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: var(--glass-shadow), 0 20px 32px -22px rgba(0,0,0,.2); }
.scene-chip { background: linear-gradient(135deg, color-mix(in srgb, var(--glass-fill), var(--bg-0) 18%), var(--glass-fill)); }
.scene-app-copy { position: relative; z-index: 4; }
/* SVG displacement is an optional Chromium enhancement; the frosted base stays portable. */
.nav.refraction-ready { backdrop-filter: var(--glass-refraction) blur(10px) saturate(1.08); }
.scene-chip.refraction-ready { backdrop-filter: var(--glass-refraction) blur(1.5px) saturate(1.08); }
.scene-app-1 .scene-chip { rotate: -8deg; }
.scene-app-2 .scene-chip { rotate: 8deg; }
.scene-app-3 .scene-chip { rotate: -6deg; }
.scene-app-4 .scene-chip { rotate: 7deg; }
.scene-featured { padding: 7px; border-radius: 27px; rotate: -4deg; }
.scene-preview { height: 128px; overflow: hidden; border-radius: 20px; background: #191919; }
.scene-preview img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.scene-preview picture { display: block; height: 100%; animation: preview-breathe 10s ease-in-out infinite; }
.scene-app-copy { display: flex; align-items: center; gap: 9px; min-width: 0; }
.scene-app-copy .app-icon { width: 34px; height: 34px; border-radius: 11px; box-shadow: 0 5px 12px -5px rgba(0,0,0,.18); }
.scene-app-copy > span:not(.scene-arrow) { min-width: 0; display: grid; gap: 4px; }
.scene-app-copy small { color: var(--muted); font-size: 8px; }
.scene-app-copy strong { font-size: 11px; letter-spacing: -.02em; white-space: nowrap; }
.scene-arrow { margin-left: auto; color: var(--muted); font-size: 14px; }
.scene-featured .scene-app-copy { padding: 12px 8px 7px; }
.scene-featured .scene-app-copy strong { font-size: 14px; }
.scene-featured .scene-app-copy .app-icon { width: 37px; height: 37px; }
.scene-foot { position: absolute; bottom: 0; left: 22px; right: 0; display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 9px; letter-spacing: .06em; }
.scene-foot > span:last-child { margin-left: auto; color: var(--accent); font-size: 15px; animation: orbit-turn 12s linear infinite; }
.btn { position: relative; isolation: isolate; overflow: hidden; border-color: var(--glass-edge); border-radius: 99px; background: var(--glass-fill); box-shadow: inset 0 1px 0 var(--glass-edge), 0 4px 10px -6px rgba(0,0,0,.16); transition: color .2s, border-color .2s, background-color .2s, translate .5s var(--ease-out); }
.btn.primary { border-color: color-mix(in srgb, var(--accent) 65%, white); background: linear-gradient(155deg, color-mix(in srgb, var(--accent) 85%, white), var(--accent)); box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 6px 14px -9px rgba(0,0,0,.24); }
.btn.primary:hover { background: color-mix(in srgb, var(--accent) 88%, var(--accent-ink)); }
.pill.degraded .live-dot { background: transparent; border: 1px solid currentColor; }
.btn::before { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(110deg, transparent 25%, rgba(255,255,255,.28), transparent 75%); transform: translateX(-110%); transition: transform .65s var(--ease-out); }
.btn:hover::before { transform: translateX(110%); }
.btn:active { opacity: 1; translate: 0 1px; }
.btn.ghost { box-shadow: none; }
.palette-entry, .nav-more summary, .marquee-toggle, .dock, .avatar-frame { box-shadow: var(--glass-shadow); }
.palette-entry, .nav-more summary { background: var(--glass-fill); border-color: var(--glass-edge); }
.palette-entry, .nav-more summary, .theme-btn, .marquee-toggle, .dock-toggle, .avatar-frame { position: relative; overflow: hidden; }
.hero-actions .btn { border: 1px solid color-mix(in srgb, var(--accent) 55%, white); box-shadow: inset 0 2px 2px rgba(255,255,255,.5), inset 0 -3px 6px rgba(0,0,0,.14), 0 8px 18px -9px rgba(0,0,0,.35); }
.tap-ripple { position: absolute; width: 120px; height: 120px; margin: -60px; border: 1px solid var(--glass-edge); border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.3), transparent 70%); pointer-events: none; }
.section { margin-top: 64px; }
.section-head { margin-bottom: 16px; border: 0; padding-bottom: 0; }
.section h2 { font-size: 28px; font-weight: 630; letter-spacing: -.05em; }
.kicker { color: var(--muted); }
.card { border-radius: 25px; gap: 14px; padding-bottom: 22px; }
.card .shot { padding: 7px 7px 0; border: 0; border-radius: 24px 24px 0 0; background: transparent; }
.card .shot picture { display: block; height: 100%; overflow: hidden; border-radius: 18px; background: #191919; }
.card .shot img { transition: transform .9s var(--ease-out); }
.card:hover .shot img { transform: scale(1.035); opacity: 1; }
.card h3 { font-size: 22px; font-weight: 620; }
.card p { font-size: 13px; }
.card .well.app { width: 40px; height: 40px; }
.card .app-icon { border-radius: 12px; box-shadow: 0 6px 12px -7px rgba(0,0,0,.18); }
.card .pill:not(.live):not(.degraded) { margin-bottom: 8px; padding-left: 0; background: transparent; font-size: 9px; font-weight: 500; }
.pill.live .live-dot { box-shadow: 0 0 0 3px color-mix(in srgb, var(--good) 9%, transparent); }
body.marquee-on .board-marquee { padding-block: 12px 26px; margin-inline: -18px; }
body.marquee-on .project-board .card { width: min(80vw, 344px); margin-right: 20px; }
body.marquee-on .project-board .card[data-id="predict-pulse"] { padding-bottom: 22px; }
body.marquee-on .project-board .card[data-id="predict-pulse"] .shot { border: 0; }
body.marquee-on .board-marquee:focus-within .project-board,
body.marquee-paused .project-board,
body.motion-hidden .project-board,
.board-marquee.is-offscreen .project-board { animation-play-state: paused; }
.marquee-toggle { min-height: 38px; border-radius: 99px; background: var(--glass-fill); border-color: var(--glass-edge); box-shadow: var(--glass-shadow); }
.marquee-controls { display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin: 4px 0 4px; color: var(--muted); font-size: 10px; }
.marquee-controls[hidden] { display: none; }
.marquee-key-hint { margin-inline: 5px; }
.speed-key { width: 30px; height: 28px; padding: 0; border: 1px solid var(--glass-edge); border-radius: 9px; color: var(--sub); background: var(--glass-fill); box-shadow: inset 0 1px 0 var(--glass-edge), 0 3px 6px -4px rgba(0,0,0,.25); font: 15px/1 var(--font); cursor: pointer; touch-action: none; transition: transform .2s, color .2s, background .2s; }
.speed-key.is-held, .speed-key:active { transform: translateY(2px); color: var(--accent-ink); background: var(--ink); box-shadow: none; }
.marquee-speed { min-width: 4.7ch; text-align: center; color: var(--ink); font: 11px/1 var(--font-mono); font-variant-numeric: tabular-nums; }
.speed-meter { display: flex; align-items: center; gap: 3px; height: 18px; margin-left: 4px; }
.speed-meter i { width: 2px; height: 12px; border-radius: 2px; background: currentColor; opacity: .35; transform: scaleY(.35); transition: transform .4s var(--ease-out), opacity .3s; }
.speed-meter i:nth-child(2), .speed-meter i:nth-child(4) { transform: scaleY(.65); }
.speed-meter i:nth-child(3) { transform: scaleY(1); }
[data-direction="fast"] .speed-meter i { animation: speed-wave .5s ease-in-out infinite alternate; opacity: .8; }
[data-direction="fast"] .speed-meter i:nth-child(2n) { animation-delay: -.3s; }
[data-direction="slow"] .speed-meter i { transform: scaleY(.2); opacity: .25; }
body.marquee-on.marquee-steering:not(.marquee-paused):not(.motion-hidden) .board-marquee:not(.is-offscreen) .project-board { animation-play-state: running; }
.note, .sector, .contact { border-radius: 25px; }
.note h3 { font-size: 23px; font-weight: 620; line-height: 1.45; }
.magazine .section { margin-top: 46px; }
.magazine { gap: 26px; }
.contact { transition: translate .5s var(--ease-out), border-color .3s; }
@media (hover: hover) and (pointer: fine) {
  .card:hover, .note:hover, .contact:hover, .scene-chip:hover, .archive-item:hover, .rss-entry:hover { translate: 0 -6px; border-color: var(--glass-edge); }
  .sector:hover { translate: 0 -3px; }
}
.liquid-scene.is-offscreen *, body.motion-hidden .scene-float, body.motion-hidden .scene-orbit, body.motion-hidden .scene-preview picture, body.motion-hidden .headline-live::after, body.motion-hidden .blob, body.motion-hidden .status-beacon::after { animation-play-state: paused !important; }
.hero-enter .identity-copy > * { animation: hero-in .9s var(--ease-out) both; }
.hero-enter .identity-copy > :nth-child(2) { animation-delay: .06s; }
.hero-enter .identity-copy > :nth-child(3) { animation-delay: .12s; }
.hero-enter .identity-copy > :nth-child(4) { animation-delay: .18s; }
.hero-enter .identity-copy > :nth-child(5) { animation-delay: .24s; }
.hero-enter .scene-app { animation: scene-in 1.2s var(--ease-out) both; }
.hero-enter .scene-app-0 { animation-delay: .12s; }
.hero-enter .scene-app-1 { animation-delay: .22s; }
.hero-enter .scene-app-2 { animation-delay: .3s; }
.hero-enter .scene-app-3 { animation-delay: .38s; }
.hero-enter .scene-app-4 { animation-delay: .46s; }
.hero-enter .hero-bottom { animation: hero-in .9s .3s var(--ease-out) both; }
dialog { border-radius: 26px; }
.modal { border-radius: 26px; }
dialog[open] { animation: materialize .5s var(--ease-out); }
dialog[open]::backdrop { animation: backdrop-in .35s ease-out; }
.nav-more[open] .nav-more-panel { animation: materialize .4s var(--ease-out); }
.rss-ring { animation: rss-ripple 4s ease-in-out infinite; }
.rss-ring-b { animation-delay: -2s; }
@keyframes hero-in { from { opacity: 0; transform: translate3d(0, 24px, 0); } to { opacity: 1; transform: none; } }
@keyframes scene-in { from { opacity: 0; transform: translate3d(0, 32px, 0) scale(.8); } to { opacity: 1; transform: none; } }
@keyframes desk-float { 0%, 100% { transform: translate3d(0, 1px, 0) rotate(.6deg); } 50% { transform: translate3d(3px, -17px, 0) rotate(-.8deg); } }
@keyframes desk-drift { 0%, 100% { transform: translate3d(-3px, 3px, 0) rotate(-1deg); } 50% { transform: translate3d(4px, -13px, 0) rotate(1.3deg); } }
@keyframes preview-breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.045) translateY(-1%); } }
@keyframes typing-caret { 0%, 45% { opacity: .65; } 46%, 100% { opacity: 0; } }
@keyframes speed-wave { from { transform: scaleY(.3); } to { transform: scaleY(1); } }
@keyframes orbit-turn { to { transform: rotate(360deg); } }
@keyframes beacon { 0% { opacity: .5; transform: scale(.6); } 75%, 100% { opacity: 0; transform: scale(1.5); } }
@keyframes materialize { from { opacity: 0; transform: translateY(14px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes backdrop-in { from { opacity: 0; } }
@keyframes rss-ripple { 0%, 100% { opacity: .2; transform: scale(.94); } 50% { opacity: .65; transform: scale(1.06); } }
@media (max-width: 1050px) and (min-width: 721px) {
  .identity { padding: 32px 30px 0; gap: 0 16px; }
  .identity-top { grid-template-columns: 58px minmax(0,1fr); gap: 13px; }
  .avatar-frame { width: 58px; height: 58px; padding: 4px; border-radius: 20px; }
  .hero-avatar { width: 48px; height: 48px; border-radius: 15px; }
  .identity h1 { font-size: 46px; }
  .liquid-scene { min-height: 368px; }
  .scene-preview { height: 116px; }
  .scene-app-copy { gap: 6px; }
  .scene-app-copy .app-icon { width: 27px; height: 27px; border-radius: 9px; }
  .scene-chip { padding: 10px; border-radius: 19px; }
  .scene-featured { padding: 6px; border-radius: 25px; }
  .scene-arrow { display: none; }
  .scene-app-copy strong { font-size: 10px; }
  .hero-eyebrow { font-size: 8px; letter-spacing: .04em; }
  .hero-actions { gap: 14px; }
  .hero-actions .btn { padding-inline: 18px; }
}
@media (max-width: 880px) {
  .nav { padding: 10px 12px 8px; border-radius: 24px; }
  .nav-indicator { height: calc(100% - 4px); top: 4px; }
}
@media (max-width: 720px) {
  .wrap { width: calc(100% - 28px); }
  .nav { width: calc(100% - 24px); top: 10px; margin-top: 10px; }
  .hero-bento { margin: 20px 0 32px; }
  .identity { grid-template-columns: 1fr; gap: 0; padding: 28px 22px 0; border-radius: 30px; }
  .identity-copy { gap: 18px; padding: 0; }
  .hero-eyebrow { font-size: 7.5px; letter-spacing: .05em; }
  .identity-top { grid-template-columns: 60px minmax(0,1fr); gap: 15px; }
  .avatar-frame { width: 60px; height: 60px; padding: 4px; border-radius: 21px; }
  .hero-avatar { width: 50px; height: 50px; border-radius: 16px; }
  .identity h1 { font-size: clamp(35px, 10vw, 52px); }
  .identity .kicker { font-size: 11px; }
  .headline { max-width: 19ch; font-size: 23px; line-height: 1.5; }
  .lead { font-size: 12px; line-height: 1.85; }
  .hero-actions { gap: 20px; margin-top: 0; }
  .hero-actions .btn { min-height: 44px; padding-inline: 18px; }
  .liquid-scene { min-height: 308px; margin: 26px -6px 12px; }
  .scene-caption { left: 3px; font-size: 8px; }
  .scene-orbit { width: 260px; height: 260px; margin: -130px; }
  .scene-orbit-b { width: 200px; height: 200px; margin: -100px; }
  .scene-lens { width: 230px; height: 230px; margin: -115px; }
  .scene-app-0 { top: 21%; left: 19%; width: 65%; }
  .scene-app-1 { top: 11%; left: 0; width: 46%; }
  .scene-app-2 { top: 10%; right: -1%; width: 43%; }
  .scene-app-3 { bottom: 2%; left: -1%; width: 45%; }
  .scene-app-4 { bottom: 0%; right: -1%; width: 45%; }
  .scene-chip { padding: 10px; border-radius: 18px; }
  .scene-featured { padding: 6px; border-radius: 23px; }
  .scene-preview { height: 104px; border-radius: 17px; }
  .scene-app-copy { gap: 6px; }
  .scene-app-copy .app-icon { width: 29px; height: 29px; border-radius: 10px; }
  .scene-app-copy strong { font-size: 10px; }
  .scene-app-copy small { font-size: 7px; }
  .scene-arrow { display: none; }
  .scene-featured .scene-app-copy { padding: 9px 5px 4px; }
  .scene-featured .scene-app-copy strong { font-size: 12px; }
  .scene-featured .scene-app-copy .app-icon { width: 31px; height: 31px; }
  .scene-foot { bottom: -4px; left: 3px; font-size: 8px; }
  .hero-bottom { grid-template-columns: 1fr; gap: 18px; padding-block: 22px; }
  .stat-row { justify-content: space-between; gap: 12px; }
  .stat b { font-size: 25px; }
  .stat span { font-size: 9px; }
  .now { padding: 14px 0 0; border-left: 0; border-top: 1px solid var(--line); }
  .now-text { font-size: 11px; }
  .section, .magazine .section { margin-top: 38px; }
  #sites { margin-top: 0; }
  .section-head { gap: 10px; padding-inline: 8px; }
  .section h2 { font-size: 25px; }
  .section-head .kicker { font-size: 9px; }
  .section-tools { gap: 0; }
  .marquee-toggle { padding-inline: 10px; font-size: 10px; min-height: 36px; }
  .marquee-controls { justify-content: center; gap: 6px; margin-top: 12px; }
  .marquee-key-hint { margin-inline: 0; font-size: 9px; }
  .speed-key { width: 44px; height: 44px; }
  .speed-meter { display: none; }
  body.marquee-on .board-marquee { margin-inline: -8px; }
  body.marquee-on .project-board .card { width: min(80vw, 320px); margin-right: 14px; }
  .magazine { gap: 0; }
  .note, .sector { padding: 22px; }
  .contact { border-radius: 22px; }
  .blob { width: 110vw; }
  .blob-b { left: -65%; }
}
@media (max-width: 359px) {
  .identity { padding-inline: 18px; }
  .hero-actions { gap: 13px; }
  .scene-app-copy strong { font-size: 9px; }
  .scene-chip { padding: 8px; }
  .scene-featured { padding: 5px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  body :is(.glass, .btn, .nav-links a, .shot img, .scene-parallax, .nav-indicator) { transform: none !important; translate: none !important; }
  .glass-sheen, .glass-caustic, .tap-ripple, .nav-indicator { display: none; }
  body :is(.btn, .scene-chip, .theme-btn, .marquee-toggle, .palette-entry, .dock-toggle, .avatar-frame, .nav-more summary) { scale: none !important; }
}
@media (prefers-reduced-transparency: reduce) {
  .glass, .identity, .scene-chip, .scene-lens, .nav-more-panel, .dock { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; background: var(--bg-0); }
  .glass-sheen, .glass-caustic, .scene-lens, .atmosphere { display: none; }
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .nav, .identity, .scene-chip, .nav-more-panel, .dock { background: var(--glass-thick); }
}

/* Source-only projects share the glass material without pretending to be hosted sites. */
.repo-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.repo-card { padding-top: 22px; min-width: 0; }
.repo-card .card-top { padding-top: 0; }
.repo-card h3 { font-size: 20px; overflow-wrap: anywhere; }
#repositoryCount { max-width: 36ch; font-size: 11px; }
@media (max-width: 980px) { .repo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px) { .repo-grid { grid-template-columns: 1fr; gap: 14px; } #repositoryCount { max-width: none; text-align: left; } }
