:root {
  --paper: #fff;
  --cream: #fafbfc;
  --ink: #1a2230;
  --muted: #77808e;
  --line: #e4e8ee;
  --sage: #e8edf4;
  --green: #3b5bb4;
  --moss: #203b65;
  --blue: #5275eb;
  --orange: #a58a5b;
  --surface: #fff;
  --surface-soft: #f5f7fb;
  --header-bg: rgba(255,255,255,.46);
  --header-shadow: 0 12px 40px #2339590c, 0 2px 6px #23395905;
  --glass-edge: rgba(255,255,255,.9);
  --glass-shine: rgba(255,255,255,.8);
  --glass-nav: rgba(235,241,249,.46);
  --serif: 'DM Serif Display', 'Songti SC', SimSun, Georgia, serif;
  --sans: 'Manrope', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --mono: 'DM Mono', Consolas, monospace;
}

:root { color-scheme: light; }
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #0b1019; --cream: #0f1622; --ink: #e6ecf7;
  --muted: #9ba9bf; --line: #263247; --sage: #1b2a40;
  --green: #9db8fa; --moss: #99b3d8; --blue: #8eaaff; --orange: #d7b980;
  --surface: #121c2b; --surface-soft: #1a273a;
  --header-bg: rgba(15,23,36,.52);
  --header-shadow: 0 12px 40px #0004, 0 2px 6px #0002;
  --glass-edge: rgba(191,214,255,.28);
  --glass-shine: rgba(185,217,255,.28);
  --glass-nav: rgba(37,54,79,.44);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 130px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 15px/1.65 var(--sans); -webkit-font-smoothing: antialiased; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--blue); outline-offset: 5px; }
::selection { background: #e5ebff; color: #213a80; }

.header {
  width: calc(100% - 10vw); max-width: 1480px; min-height: 90px; margin: 20px auto 0; padding: 15px 22px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  position: sticky; top: 16px; z-index: 20; background: transparent;
  border: 1px solid var(--glass-edge); border-radius: 22px; box-shadow: var(--header-shadow);
  --glass-x: 50%; --glass-y: 50%; --glass-energy: 0; --glass-drift: 0px;
}
.glass-filter-defs { position: absolute; pointer-events: none; }
.header > .brand, .header > nav, .header > .header-actions { position: relative; z-index: 2; }
.header-glass {
  position: absolute; inset: 0; border-radius: inherit; overflow: hidden; pointer-events: none;
  background: var(--header-bg);
  -webkit-backdrop-filter: blur(16px) saturate(145%);
  backdrop-filter: blur(16px) saturate(145%);
  box-shadow: inset 0 1px 1px #ffffffa6, inset 0 -1px 2px #7a9ac02b, inset 1px 0 2px #ffffff66, inset -1px 0 2px #aac4e733;
}
@supports (backdrop-filter: url("#liquidGlass")) {
  .header-glass { backdrop-filter: blur(7px) url("#liquidGlass") saturate(145%); }
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .header-glass { background: var(--surface); }
}
.header-glass::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit;
  background: linear-gradient(155deg, var(--glass-shine), transparent 19% 65%, #94b2df13), radial-gradient(ellipse at var(--glass-x) 0%, var(--glass-shine), transparent 63%);
  opacity: .55;
}
.header-glass::after {
  content: ''; position: absolute; inset: 1px; border: 1px solid var(--glass-edge); border-radius: inherit;
  box-shadow: inset 0 2px 4px #ffffff24, inset 0 -3px 7px #708fb515;
  mask-image: linear-gradient(135deg, #000, transparent 35% 60%, #000);
}
.glass-caustics {
  position: absolute; inset: -100% -8%; pointer-events: none;
  background: radial-gradient(ellipse at var(--glass-x) 0%, transparent 57%, var(--glass-shine) 59%, transparent 61%), radial-gradient(ellipse at 85% 100%, transparent 60%, #b6ceef3d 62%, transparent 64%);
  opacity: calc(.13 + var(--glass-energy) * .37);
  transform: translate3d(0, var(--glass-drift), 0);
}
.glass-ripple {
  position: absolute; left: var(--glass-x); top: var(--glass-y); width: 22%; aspect-ratio: 1;
  border: 1px solid var(--glass-shine); border-radius: 50%; opacity: 0;
  transform: translate(-50%, -50%) scale(.1, .3); pointer-events: none;
  box-shadow: 0 0 0 7px #ffffff09, inset 0 0 18px #c7dfff0a;
}
.reading .header-glass { -webkit-backdrop-filter: blur(16px) saturate(120%); backdrop-filter: blur(16px) saturate(120%); }
.reading .glass-caustics, .reading .glass-ripple { display: none; }
[data-theme="dark"] .header-glass { box-shadow: inset 0 1px 1px #bfd5ff38, inset 0 -1px 2px #5c8bca33, inset 1px 0 2px #a6caff26; }
.brand { display: flex; align-items: center; gap: 13px; color: inherit; text-decoration: none; flex: none; }
.brand-avatar { position: relative; width: 52px; height: 52px; flex: none; }
.brand-avatar img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 17px; border: 1px solid #ffffff80; box-shadow: 0 3px 9px #152b4617; }
.brand-avatar i { position: absolute; right: -2px; bottom: -2px; width: 10px; height: 10px; border-radius: 50%; background: #62ad99; border: 2px solid var(--surface); }
.brand-copy b { display: flex; align-items: center; gap: 11px; font: 600 19px/1.3 var(--sans); letter-spacing: .07em; }
.brand-badge { border: 1px solid var(--line); border-radius: 5px; padding: 3px 6px; color: var(--muted); font: 400 8px/1.3 var(--sans); letter-spacing: .02em; }
.brand-copy small { display: block; font: 10px/1.4 var(--sans); letter-spacing: .06em; color: var(--muted); margin-top: 7px; }
.header nav { display: flex; gap: 3px; padding: 5px; border: 1px solid var(--glass-edge); background: var(--glass-nav); border-radius: 13px; }
.header nav a { display: block; position: relative; color: var(--muted); text-decoration: none; font: 11px var(--sans); padding: 11px 17px; border-radius: 9px; white-space: nowrap; transition: background .2s, color .2s, box-shadow .2s; }
.header nav a.active { color: var(--ink); background: var(--surface); box-shadow: 0 2px 6px #1329460b; }
.header nav a:hover { color: var(--ink); background: var(--surface); }
.header nav .nav-contact { display: none; }
.header-actions { display: flex; gap: 8px; align-items: center; flex: none; }
.mode-btn, .theme-toggle, .mobile-menu { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 39px; border: 1px solid transparent; border-radius: 10px; background: transparent; color: var(--muted); padding: 9px 10px; font: 11px var(--sans); transition: background .2s, color .2s; }
.mode-btn svg, .theme-toggle svg { display: block; width: 17px; height: 17px; flex: none; }
.mode-btn:hover, .theme-toggle:hover, .mode-btn[aria-pressed="true"] { color: var(--ink); background: var(--surface-soft); }
.theme-toggle { border-color: var(--line); background: var(--surface); }
.theme-toggle .theme-sun { display: none; }
[data-theme="dark"] .theme-toggle .theme-moon { display: none; }
[data-theme="dark"] .theme-toggle .theme-sun { display: block; }
.header-contact { display: inline-flex; align-items: center; gap: 16px; padding: 11px 15px; border-radius: 10px; background: var(--ink); color: var(--paper); font: 11px var(--sans); text-decoration: none; transition: opacity .2s; }
.header-contact:hover { opacity: .8; }
.header-contact span { opacity: .6; }
.mobile-menu { display: none; width: 39px; flex-direction: column; gap: 5px; border-color: var(--line); }
.mobile-menu span { width: 15px; height: 1px; background: currentColor; transition: transform .2s; }
.mobile-menu[aria-expanded="true"] span:first-child { transform: translateY(3px) rotate(45deg); }
.mobile-menu[aria-expanded="true"] span:last-child { transform: translateY(-3px) rotate(-45deg); }

/* A white, open composition: the instrument floats directly on the page. */
.hero {
  padding: 46px 7vw 42px; min-height: min(720px, calc(100svh - 118px));
  display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(20px, 3vw, 54px);
  align-items: center; border-bottom: 1px solid var(--line); overflow: hidden;
}
.hero-copy { min-width: 0; padding-bottom: 6px; animation: hero-text-enter 1.9s cubic-bezier(.16,1,.3,1) .12s both; }
@keyframes hero-text-enter { from { opacity: 0; transform: translateY(52px); } to { opacity: 1; transform: translateY(0); } }
.eyebrow { font: 9px/1.6 var(--mono); letter-spacing: .09em; color: #687a98; margin: 0 0 26px; }
.hero .eyebrow { display: flex; align-items: center; gap: 9px; font-size: clamp(8px, .72vw, 10px); letter-spacing: .04em; }
.status-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 4px #eef2ff; flex: none; }
.hero h1 { font: 500 clamp(38px, 4vw, 66px)/1.18 var(--sans); letter-spacing: -.055em; margin: 0; white-space: nowrap; }
.hero h1 em { font-style: normal; color: #566b8d; }
.hero-lead { font-size: 14px; line-height: 2.05; color: #77818e; max-width: 440px; margin: 0; }
.hero-links { display: flex; gap: 10px; margin-top: 32px; flex-wrap: wrap; }
.pill { display: inline-flex; align-items: center; gap: 18px; border: 1px solid #e1e6ed; border-radius: 5px; color: #546175; text-decoration: none; padding: 13px 17px; font: 10px var(--mono); background: #fff; transition: transform .25s, box-shadow .25s, border-color .25s; }
.pill.primary { background: #202c42; color: #fff; border-color: #202c42; box-shadow: 0 6px 14px #18263e12, inset 0 1px #ffffff18; }
.pill.primary span { color: #aabbde; font-size: 16px; line-height: 1; }
.pill:hover { transform: translateY(-2px); border-color: #a9b7ce; box-shadow: 0 8px 22px #253f6810; }
.hero-footnote { display: flex; gap: 20px; flex-wrap: wrap; margin-top: 55px; font: 7px var(--mono); letter-spacing: .1em; color: #9aa3b0; }

.chrono { min-width: 0; width: 100%; max-width: 470px; justify-self: center; }
.chrono-stage {
  position: relative; aspect-ratio: 1; width: 100%; container-type: inline-size;
  perspective: 1100px; perspective-origin: 50% 43%;
  --clock-rx: 15deg; --clock-ry: -19deg; --clock-light-x: 32%; --clock-light-y: 20%;
}
.chrono-stage::before { content: ''; position: absolute; left: 16%; right: 10%; bottom: 2%; height: 12%; background: radial-gradient(ellipse, #294a8130, transparent 68%); filter: blur(14px); pointer-events: none; }
.chrono-stage::after { content: ''; position: absolute; inset: 12%; z-index: -1; background: radial-gradient(ellipse, #6a9dff12, transparent 68%); pointer-events: none; }
.chrono-float { position: absolute; inset: 2% 3% 4%; transform-style: preserve-3d; animation: chrono-levitate 7s ease-in-out infinite; }
.chrono-assembly {
  position: absolute; inset: 0; transform-style: preserve-3d;
  transform: rotateX(var(--clock-rx)) rotateY(var(--clock-ry)) rotateZ(-7deg);
  transition: transform .65s cubic-bezier(.2,.7,.25,1);
}
.chrono-shell, .chrono-rib { position: absolute; inset: 7.15%; border-radius: 50%; pointer-events: none; }
.chrono-shell {
  transform: translateZ(-34px); border: 1px solid #8c9eb5;
  background: conic-gradient(from 35deg, #d1dbe7, #f7faff 15%, #9cacbf 32%, #e2e9f3 46%, #9dadc2 64%, #f9fbff 82%, #d1dbe7);
  box-shadow: 0 2px 0 #e9f2ff, 0 6px 0 #9daec4, 0 8px 0 #d2e0f2, 0 17px 32px #2d487b20;
}
.chrono-rib { border: 2px solid #b5c4d6; background: radial-gradient(circle at 35% 20%, #f8fbff, #e5edf7 70%); box-shadow: inset 0 0 0 3px #ffffffb3, 0 2px 0 #9fafc5; }
.chrono-rib-back { transform: translateZ(-25px); border-color: #7599cb; box-shadow: 0 0 9px #548cff40, inset 0 0 0 3px #d6e8ff; }
.chrono-rib-middle { transform: translateZ(-16px); }
.chrono-rib-front { transform: translateZ(-7px); border-color: #a8bcd6; box-shadow: 0 0 0 1px #fff, 0 2px 0 #6a90c3, 0 5px 12px #4d8ae548; }
.chrono-dial { position: absolute; inset: 0; display: block; width: 100%; height: 100%; overflow: visible; transform: translateZ(2px); }
.chrono-lens {
  position: absolute; inset: 18.1%; border-radius: 50%; transform: translateZ(22px); pointer-events: none;
  border: 1px solid #c6d9f280;
  background: radial-gradient(ellipse at var(--clock-light-x) var(--clock-light-y), #ffffffb3, #ffffff12 42%, #80afff09 72%, #72a3ec17);
  box-shadow: inset 0 2px 4px #fff, inset 0 -1px 10px #85aaf226, 0 10px 20px #345e9d08;
}
.chrono-gimbal {
  position: absolute; inset: 1%; border: 1px solid #c4d3e5; border-radius: 50%; transform-style: preserve-3d;
  box-shadow: inset 0 0 0 1px #ffffffb3, 0 1px 0 #91a8c7;
  pointer-events: none;
}
.chrono-gimbal-back { transform: translateZ(-42px) rotateX(63deg) rotateY(-23deg); border-width: 2px; }
.chrono-gimbal-front { inset: -1.5%; transform: translateZ(12px) rotateY(66deg) rotateX(-25deg); border-color: #9ebde5a6; }
.chrono-gimbal i { position: absolute; inset: -2px; border: 2px solid transparent; border-top-color: #669aff; border-right-color: #96d8ff; border-radius: 50%; transform: translateZ(1px); animation: chrono-energy 16s linear infinite; }
.chrono-gimbal i::after { content: ''; position: absolute; left: 14%; top: 14%; width: 5px; height: 5px; background: #e7f7ff; border-radius: 50%; box-shadow: 0 0 0 2px #6f9fe9, 0 0 12px #4385ff; }
.chrono-gimbal-front i { animation-direction: reverse; animation-duration: 22s; border-top-color: #b1c9f1; border-right-color: transparent; }
.chrono-satellite { position: absolute; width: 9px; height: 9px; border-radius: 50%; background: radial-gradient(circle at 30% 25%, #fff, #d7eaff 36%, #477bcd 80%); box-shadow: 0 0 15px #679dff66; pointer-events: none; }
.chrono-satellite-one { top: 15%; right: 10%; transform: translateZ(68px); }
.chrono-satellite-two { bottom: 14%; left: 10%; width: 6px; height: 6px; transform: translateZ(35px); }
.chrono-floor { position: absolute; width: 72%; height: 25%; left: 17%; bottom: -1%; transform: rotateX(73deg); border: 1px solid #d5e3f6; border-radius: 50%; background: radial-gradient(ellipse, #eaf2ff50, transparent 65%); pointer-events: none; }
.chrono-floor i { position: absolute; inset: 12%; border: 1px solid #e0eaf8; border-radius: 50%; }
.chrono-floor i:nth-child(2) { inset: 27%; border-style: dashed; border-color: #c5d9f6; }
.chrono-floor i:nth-child(3) { inset: -14%; border-color: #edf2f9; }
@keyframes chrono-levitate { 0%, 100% { transform: translateY(4px); } 50% { transform: translateY(-9px); } }
@keyframes chrono-energy { to { transform: translateZ(1px) rotateZ(360deg); } }
.chrono-orbit { transform-origin: 300px 300px; animation: orbital-drift 120s linear infinite; }
.chrono-ticks line { stroke: #bdc7d5; stroke-width: 1; }
.chrono-ticks line.major { stroke: #71819a; stroke-width: 1.5; }
.chrono-ticks line.quarter { stroke: #3f5576; stroke-width: 2; }
.chrono-numerals { font: 9px var(--mono); letter-spacing: .12em; }
.chrono-progress { opacity: .85; }
.chrono-core { position: absolute; inset: 26% 17% 24%; display: flex; flex-direction: column; align-items: center; justify-content: center; pointer-events: none; transform: translateZ(46px); }
.chrono-kicker { font: clamp(6px, 1.45cqw, 9px)/1 var(--mono); letter-spacing: .16em; color: #a0a9b7; margin-bottom: 23px; }
.chrono-zone { display: flex; align-items: center; gap: 9px; font: clamp(6px, 1.55cqw, 9px)/1 var(--mono); color: #71809a; letter-spacing: .07em; }
.chrono-zone i { width: 3px; height: 3px; border-radius: 50%; background: #6c88d0; }
.chrono-time { display: flex; align-items: baseline; justify-content: center; margin: 14px 0 13px; font: 400 clamp(44px, 17cqw, 98px)/1.06 var(--sans); font-variant-numeric: tabular-nums; letter-spacing: -.065em; color: #26354c; text-shadow: 0 1px 0 #fff, 0 2px 0 #d2deef, 0 3px 0 #bccce2, 0 7px 14px #35558e20; }
.chrono-colon { color: #aab5c8; font-size: .74em; font-weight: 400; margin: 0 .065em; transform: translateY(-.045em); }
.chrono-date { display: flex; gap: 9px; font: clamp(7px, 1.8cqw, 10px)/1 var(--mono); letter-spacing: .055em; color: #8893a4; white-space: nowrap; }
.chrono-date-dot { color: #bbc4d1; }
.chrono-seconds { margin-top: 25px; display: flex; align-items: center; gap: 10px; font: clamp(6px, 1.35cqw, 8px) var(--mono); letter-spacing: .09em; color: #99a3b1; }
.chrono-seconds b { font: 400 clamp(11px, 2.6cqw, 16px) var(--mono); color: #5779d5; font-variant-numeric: tabular-nums; min-width: 2ch; }
.chrono-second-meter { width: 37px; height: 8px; position: relative; background: repeating-linear-gradient(to right, #dce3ee 0 1px, transparent 1px 4px); }
.chrono-second-meter i { display: block; height: 100%; width: 100%; transform-origin: left; transform: scaleX(0); background: repeating-linear-gradient(to right, #6584d8 0 1px, transparent 1px 4px); }
@keyframes orbital-drift { to { transform: rotate(360deg); } }

h2 em { font-style: italic; color: #647a9d; }
.work { padding: 44px 7vw 64px; border-bottom: 1px solid var(--line); }
.contact h2 { font: clamp(36px, 4.2vw, 64px)/1.08 var(--serif); letter-spacing: -.06em; margin: 14px 0 0; }
.work-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.project { position: relative; min-height: 0; border: 1px solid var(--line); border-radius: 16px; background: #fff; transition: transform .35s, box-shadow .35s, border-color .35s; display: flex; flex-direction: row; overflow: hidden; }
.project:hover { transform: translateY(-5px); border-color: #bbc8da; box-shadow: 0 15px 40px #30456b0d; }
.project::before { content: ''; position: absolute; inset: 0; z-index: 4; pointer-events: none; opacity: 0; transition: opacity .3s; background: radial-gradient(circle at var(--mx,50%) var(--my,50%), #ffffff44, transparent 28%); }
.project:hover::before { opacity: 1; }
.project-art { flex: 0 0 47%; width: 47%; height: clamp(320px, 25vw, 480px); min-width: 0; position: relative; overflow: hidden; display: flex; justify-content: center; align-items: center; background: #edf1f7; isolation: isolate; }
.project-art img { display: block; width: auto; height: auto; object-fit: contain; }
.project-art .project-art-backdrop { position: absolute; z-index: -1; inset: -18px; width: calc(100% + 36px); height: calc(100% + 36px); filter: blur(18px); opacity: .52; }
.project-art .project-art-image { position: relative; z-index: 1; max-width: 100%; max-height: 100%; filter: drop-shadow(0 4px 12px #17233818); }
.art-note { position: absolute; left: 20px; top: 18px; font: 9px var(--mono); color: #ffffffb8; z-index: 2; }
.river { background: linear-gradient(145deg, #16304e, #436b8a 55%, #bdcfdd); }
.river-path { position: absolute; width: 600px; height: 230px; border: 1px solid #d4ecff80; border-radius: 50%; left: -60px; top: 115px; transform: rotate(22deg); }
.river-path::after { content: ''; position: absolute; width: 500px; height: 180px; border: 1px solid #d4ecff59; border-radius: 50%; left: 60px; top: 40px; }
.river-device { position: absolute; z-index: 1; width: 245px; height: 295px; left: 50%; top: 65px; transform: translateX(-50%) rotate(-3deg); background: linear-gradient(145deg, #fff, #dfe8ef); color: var(--ink); border: 1px solid #c3d0db; border-radius: 16px; box-shadow: 13px 15px 0 #0a2a4a29, 0 10px 28px #0727441a; padding: 17px; }
.device-head { display: flex; justify-content: space-between; font: 10px var(--mono); }
.device-head small { font-size: 8px; color: #70859d; }
.river-task { display: grid; grid-template-columns: 27px 1fr 16px; gap: 9px; align-items: center; border-top: 1px solid #c9d5df; margin-top: 25px; padding-top: 17px; }
.river-task.muted { opacity: .55; margin-top: 14px; }
.river-task i { font-style: normal; color: var(--blue); font-size: 17px; }
.river-task b, .river-task small { display: block; }
.river-task b { font-size: 11px; }
.river-task small { font: 8px var(--mono); color: var(--muted); margin-top: 4px; }
.river-task strong { color: var(--blue); }
.moss { background: linear-gradient(145deg, #e4ebf1, #aebfd0); }
.moss-window { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -48%); width: 205px; background: linear-gradient(145deg, #162a43, #2a4b6b); border: 1px solid #829bb3; border-radius: 10px; color: #e5edf7; padding: 21px 18px; box-shadow: 10px 10px 0 #1f3e5d20; }
.moss-window small { font: 9px var(--mono); color: #abc9dc; }
.moss-window strong { display: block; font: 29px/1.2 var(--serif); margin: 24px 0; }
.moss-check { display: grid; grid-template-columns: 18px 1fr; gap: 8px; font: 10px var(--mono); color: #d5e8f4; }
.moss-check .empty { color: #a6b3c8; }
.dusk { background: linear-gradient(145deg, #e8ebf3, #b3bdd2); }
.dusk-watch { position: absolute; width: 180px; height: 180px; border: 1px solid #6c7fa8; border-radius: 50%; left: 50%; top: 50%; transform: translate(-50%, -50%); display: grid; place-content: center; text-align: center; background: #f5f9ff59; box-shadow: inset 0 0 0 10px #6274ff08, 0 0 0 1px #ffffff99; color: #354768; }
.watch-time { font: 28px var(--mono); }
.dusk-watch small { font: 9px var(--mono); color: #657da7; margin-top: 5px; }
.dusk-watch i { position: absolute; width: 7px; height: 7px; background: var(--blue); border-radius: 50%; top: 20px; right: 28px; }
.dusk-star { position: absolute; right: 24px; top: 17px; color: #7486b1; font-size: 37px; transform: rotate(12deg); }
.project-copy { min-width: 0; padding: 28px clamp(18px, 1.5vw, 28px); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; flex: 1; }
.project-meta { width: 100%; display: flex; justify-content: space-between; font: 9px var(--mono); color: #8995a6; gap: 12px; }
.project-meta b { font-weight: 400; color: #617b9b; }
.project-meta b.blue { color: #6a7cbe; }
.project-meta b.orange { color: var(--orange); }
.project h3 { font: 26px/1.35 var(--serif); margin: 20px 0 10px; }
.project p { color: var(--muted); margin: 0 0 17px; max-width: 410px; }
.tech { display: flex; gap: 6px; flex-wrap: wrap; }
.tech span { font: 9px var(--mono); color: #7b899b; border: 1px solid var(--line); border-radius: 3px; padding: 4px 7px; }
.open-case { border: 0; border-bottom: 1px solid #71829a; background: none; padding: 0; margin-top: 20px; font: 700 11px var(--sans); color: #4f6381; }
.open-case:hover { color: var(--blue); border-color: var(--blue); }

.case-modal { display: none; position: fixed; inset: 0; background: #111e30; color: #fff; z-index: 40; overflow: auto; }
.case-modal.open { display: block; }
.case-close { position: absolute; right: 6vw; top: 4vw; background: none; border: 0; color: #fff; font-size: 48px; font-weight: 200; }
.case-modal-inner { max-width: 900px; margin: 16vh auto; padding: 0 25px; }
.case-modal .eyebrow { color: #a6bce9; }
.case-modal h2 { font: clamp(56px, 8vw, 112px)/1.05 var(--serif); letter-spacing: -.06em; margin: 25px 0; }
.case-lead { font: 28px/1.4 var(--serif); color: #c7d3e5; max-width: 690px; margin-bottom: 55px; }
.case-detail-list { border-top: 1px solid #34465e; }
.case-detail-list div { display: flex; justify-content: space-between; gap: 25px; border-bottom: 1px solid #34465e; padding: 15px 0; font: 11px var(--mono); color: #a1b1c8; }
.case-detail-list strong { font-weight: 400; color: #e4ebf5; }
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 10vw; padding: 120px 11vw; border-bottom: 1px solid var(--line); background: #fff; }
.contact h2 { margin-top: 14px; }
.contact-copy { padding-top: 25px; display: flex; flex-direction: column; }
.contact-copy > p { color: var(--muted); max-width: 420px; }
.mail { display: inline-block; align-self: flex-start; color: #4f6483; font: clamp(24px, 2.2vw, 32px) var(--serif); text-decoration: none; border-bottom: 1px solid #bac6d6; margin-top: 22px; }
.socials { display: flex; flex-wrap: wrap; justify-content: flex-start; align-self: flex-start; gap: 12px; margin-top: 35px; }
.socials a { min-height: 50px; padding: 9px 15px; display: inline-flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface-soft); font: 12px var(--sans); color: var(--muted); text-decoration: none; transition: color .2s, transform .2s, border-color .2s, background .2s; }
.socials a:hover { color: var(--blue); border-color: #9cb4df; transform: translateY(-2px); }
.social-icon { width: 30px; height: 30px; flex: 0 0 30px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; object-fit: contain; }
.bilibili-icon { color: #00a1d6; }
.douyin-icon { fill: none; stroke-width: 2.6; }
.douyin-cyan { stroke: #25f4ee; }
.douyin-red { stroke: #fe2c55; }
.douyin-main { stroke: #161823; }
.xiaohongshu-icon { fill: #ff2442; stroke: none; }
.xiaohongshu-icon text { fill: #fff; font: 700 8px 'Microsoft YaHei', 'PingFang SC', sans-serif; }
[data-theme="dark"] .douyin-main { stroke: #fff; }
footer { padding: 26px 11vw; font: 12px var(--mono); color: #8c97a7; }
footer .footer-meta { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 20px; }
footer .footer-meta > :last-child { justify-self: end; }
footer a { color: #5c6c82; text-decoration: none; white-space: nowrap; }
footer .icp-filing { margin: 0; text-align: center; font: 12px/1.8 var(--sans); }
footer .icp-filing a { display: inline-block; padding: 4px 0; }
footer .icp-filing a:hover, footer .icp-filing a:focus-visible { text-decoration: underline; text-underline-offset: 4px; }

.reveal { opacity: 0; transform: translateY(42px); transition: opacity .95s cubic-bezier(.16,1,.3,1), transform 1.15s cubic-bezier(.16,1,.3,1); }
.reveal.visible { opacity: 1; transform: none; }
.project.reveal .project-copy > * { opacity: 0; transform: translateY(16px); transition: opacity .7s cubic-bezier(.16,1,.3,1), transform .8s cubic-bezier(.16,1,.3,1); }
.project.reveal.visible .project-copy > * { opacity: 1; transform: none; }
.project.reveal.visible .project-copy > :nth-child(1) { transition-delay: .08s; }
.project.reveal.visible .project-copy > :nth-child(2) { transition-delay: .16s; }
.project.reveal.visible .project-copy > :nth-child(3) { transition-delay: .24s; }
.project.reveal.visible .project-copy > :nth-child(4) { transition-delay: .32s; }
.project.reveal.visible .project-copy > :nth-child(5) { transition-delay: .4s; }
.toast { position: fixed; bottom: 22px; left: 50%; transform: translate(-50%,15px); opacity: 0; transition: .3s; background: #263750; color: #fff; padding: 10px 16px; border-radius: 4px; font: 10px var(--mono); z-index: 50; }
.toast.show { opacity: 1; transform: translate(-50%,0); }
.reading .chrono-orbit, .chrono-paused .chrono-orbit,
.reading .chrono-float, .chrono-paused .chrono-float,
.reading .chrono-gimbal i, .chrono-paused .chrono-gimbal i { animation-play-state: paused; }
.reading .project { box-shadow: none; }
.reading .project::before { display: none; }
.reading .reveal { transition: none; }
.reading .project p { color: #566274; }

/* Night appearance uses the same materials with graphite and cool illuminated edges. */
[data-theme="dark"] ::selection { background: #314c78; color: #f4f7ff; }
[data-theme="dark"] .hero h1 em,
[data-theme="dark"] h2 em,
[data-theme="dark"] .eyebrow,
[data-theme="dark"] .hero-lead,
[data-theme="dark"] .project-meta,
[data-theme="dark"] .tech span,
[data-theme="dark"] .hero-footnote,
[data-theme="dark"] footer { color: #9aaac2; }
[data-theme="dark"] .status-dot { box-shadow: 0 0 0 4px #8faaff14; }
[data-theme="dark"] .pill,
[data-theme="dark"] .pill.primary { color: #111c30; background: #b9cefa; border-color: #b9cefa; box-shadow: 0 8px 24px #0002; }
[data-theme="dark"] .project { color: #e6ecf7; background: #121c2b; border-color: #2b3b53; box-shadow: 0 14px 38px #0003; }
[data-theme="dark"] .project:hover { background: #162338; }
[data-theme="dark"] .project-art { background: #101927; }
[data-theme="dark"] .project-art-backdrop { filter: blur(20px) brightness(.62) saturate(.82); opacity: .58; }
[data-theme="dark"] .project h3 { color: #e6ecf7; }
[data-theme="dark"] .project p { color: #aab8cd; }
[data-theme="dark"] .tech span { color: #aabbd3; background: #182539; border-color: #344761; }
[data-theme="dark"] .pill.primary span { color: #345279; }
[data-theme="dark"] .project:hover { border-color: #516b94; box-shadow: 0 18px 40px #0005; }
[data-theme="dark"] .project::before { background: radial-gradient(circle at var(--mx,50%) var(--my,50%), #95b9ff14, transparent 28%); }
[data-theme="dark"] .note-index,
[data-theme="dark"] .open-case,
[data-theme="dark"] .mail,
[data-theme="dark"] .project-meta b,
[data-theme="dark"] .project-meta b.blue,
[data-theme="dark"] footer a { color: #b2c9ed; }
[data-theme="dark"] .project-meta b.orange { color: #d7b980; }
[data-theme="dark"] .river { background: linear-gradient(145deg, #102137, #234366 60%, #476985); }
[data-theme="dark"] .river-device { background: linear-gradient(145deg, #26394f, #16263a); border-color: #57718d; }
[data-theme="dark"] .river-task { border-color: #415670; }
[data-theme="dark"] .device-head small,
[data-theme="dark"] .river-task small { color: #9caec6; }
[data-theme="dark"] .moss { background: linear-gradient(145deg, #1b2c40, #3c526f); }
[data-theme="dark"] .dusk { background: linear-gradient(145deg, #25324b, #404d70); }
[data-theme="dark"] .dusk-watch { color: #dce8ff; background: #131d3140; border-color: #89a5d4; box-shadow: inset 0 0 0 10px #a4bdff09, 0 0 0 1px #c2d3ff1a; }
[data-theme="dark"] .dusk-watch small { color: #a4b9db; }
[data-theme="dark"] .contact { background: var(--paper); }
[data-theme="dark"] .reading .project p { color: #bdcbe0; }
[data-theme="dark"] .toast { background: #d0dff9; color: #172741; }
[data-theme="dark"] .chrono-shell { background: conic-gradient(from 35deg, #283d57, #8ca1bc 15%, #24334c 32%, #5c7497 46%, #25354f 64%, #97acc7 82%, #283d57); border-color: #6f8eaf; box-shadow: 0 2px 0 #a0c4ef, 0 6px 0 #2b435f, 0 8px 0 #5e81aa, 0 17px 32px #0006; }
[data-theme="dark"] .chrono-rib { background: radial-gradient(circle at 35% 20%, #354c6c, #15253c 70%); border-color: #577397; box-shadow: inset 0 0 0 3px #a0bcdf17, 0 2px 0 #355270; }
[data-theme="dark"] .chrono-rib-back,
[data-theme="dark"] .chrono-rib-front { border-color: #6c9de6; box-shadow: 0 0 10px #488aff59, inset 0 0 0 2px #aacfff20; }
[data-theme="dark"] #clockFace stop { stop-color: #16253b; }
[data-theme="dark"] #clockFace stop:first-child { stop-color: #233953; }
[data-theme="dark"] #clockFace stop:last-child { stop-color: #102037; }
[data-theme="dark"] #clockMetal stop { stop-color: #8a9fb9; }
[data-theme="dark"] #clockMetal stop:nth-child(2),
[data-theme="dark"] #clockMetal stop:nth-child(4) { stop-color: #c9def5; }
[data-theme="dark"] .chrono-dial > circle:not(#clockProgress) { stroke: #526c8a; }
[data-theme="dark"] .chrono-guides,
[data-theme="dark"] .chrono-axis { stroke: #3b5270; }
[data-theme="dark"] .chrono-orbit circle { stroke: #6284b0; }
[data-theme="dark"] .chrono-ticks line { stroke: #6e85a5; }
[data-theme="dark"] .chrono-ticks line.major,
[data-theme="dark"] .chrono-ticks line.quarter { stroke: #abc8f0; }
[data-theme="dark"] .chrono-numerals { fill: #acbfdb; }
[data-theme="dark"] .chrono-lens { border-color: #6b94cd66; background: radial-gradient(ellipse at var(--clock-light-x) var(--clock-light-y), #9bc7ff14, #b3d2ff03 42%, #80afff0a 72%, #72a3ec1a); box-shadow: inset 0 2px 4px #99caff2b, inset 0 -1px 10px #85aaf226, 0 10px 20px #0002; }
[data-theme="dark"] .chrono-time { color: #e0eeff; text-shadow: 0 1px 0 #436189, 0 2px 0 #344c70, 0 3px 0 #243d60, 0 0 22px #6d9dff30; }
[data-theme="dark"] .chrono-kicker,
[data-theme="dark"] .chrono-zone,
[data-theme="dark"] .chrono-date,
[data-theme="dark"] .chrono-seconds,
[data-theme="dark"] .chrono-seconds b { color: #a6caff; }
[data-theme="dark"] .chrono-gimbal { border-color: #729dd066; box-shadow: inset 0 0 0 1px #a6cfff17, 0 1px 0 #587ca5; }
[data-theme="dark"] .chrono-floor,
[data-theme="dark"] .chrono-floor i { border-color: #5579b033; }
[data-theme="dark"] .chrono-floor { background: radial-gradient(ellipse, #639aff1f, transparent 65%); }

@media (min-width: 1600px) {
  .hero { padding-left: max(7vw, calc((100vw - 1460px)/2)); padding-right: max(7vw, calc((100vw - 1460px)/2)); }
}
@media (max-width: 1100px) {
  .header { gap: 15px; padding: 14px 16px; }
  .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .project { min-height: 0; flex-direction: column; }
  .project-art { flex: 0 0 auto; width: 100%; min-height: 0; height: clamp(240px, 30vw, 330px); }
  .brand-badge { display: none; }
  .header nav a { padding: 11px 12px; }
  .mode-btn span { display: none; }
  .hero { gap: 20px; padding-left: 5vw; padding-right: 5vw; }
  .hero h1 { font-size: clamp(34px, 4.1vw, 48px); }
  .hero-links { gap: 8px; }
  .pill { padding: 12px; font-size: 9px; }
  .hero-footnote { gap: 12px; margin-top: 38px; font-size: 6px; }
  .chrono-kicker { margin-bottom: 18px; }
  .chrono-seconds { margin-top: 20px; }
}
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding: 56px 9vw 48px; gap: 34px; min-height: 0; }
  .hero-copy { max-width: 620px; }
  .hero h1 { font-size: clamp(36px, 6vw, 56px); }
  .hero .eyebrow { font-size: 8px; }
  .hero-lead { max-width: 510px; }
  .chrono { max-width: 430px; }
  .chrono-kicker { margin-bottom: 23px; }
  .chrono-seconds { margin-top: 25px; }
}
@media (max-width: 820px) {
  .header { width: calc(100% - 32px); min-height: 80px; margin-top: 16px; top: 12px; padding: 12px 15px; gap: 12px; border-radius: 18px; }
  .header nav { display: none; }
  .header nav.open { display: flex; position: absolute; top: calc(100% + 10px); left: 0; right: 0; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--header-shadow); padding: 10px; gap: 3px; justify-content: space-between; border-radius: 14px; }
  .header nav a { flex: 1; padding: 14px 8px; text-align: center; }
  .header nav .nav-contact { display: block; }
  .mobile-menu { display: inline-flex; }
  .header-contact { display: none; }
  .hero, .work, .contact { padding-left: 7vw; padding-right: 7vw; }
  .work { padding-top: 56px; padding-bottom: 64px; }
  .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
  .project-art { height: clamp(210px, 34vw, 280px); }
  .contact { display: block; padding-top: 76px; padding-bottom: 76px; }
  .contact-copy { padding-top: 26px; }
  footer { padding: 25px 7vw; line-height: 1.8; }
  footer .footer-meta { grid-template-columns: 1fr; gap: 7px; text-align: center; }
  footer .footer-meta > :last-child { justify-self: center; }
}
@media (max-width: 560px) {
  .work-grid { grid-template-columns: 1fr; gap: 20px; }
}
@media (max-width: 480px) {
  .header { width: calc(100% - 24px); margin-top: 12px; padding: 12px; min-height: 76px; }
  .brand { gap: 10px; }
  .brand-avatar { width: 43px; height: 43px; }
  .brand-avatar img { border-radius: 14px; }
  .brand-copy b { font-size: 17px; }
  .brand-copy small { font-size: 8px; margin-top: 5px; letter-spacing: .01em; }
  .header-actions { gap: 6px; }
  .theme-toggle { width: 37px; min-height: 37px; padding: 8px; }
  .theme-toggle span { display: none; }
  .mobile-menu { width: 37px; min-height: 37px; }
  .mode-btn { display: none; }
  .chrono-stage { perspective: 800px; }
  .chrono-core { transform: translateZ(30px); }
  .chrono-assembly { transform: rotateX(12deg) rotateY(-14deg) rotateZ(-5deg); }
  .hero { padding-top: 42px; gap: 26px; padding-bottom: 36px; }
  .hero h1 { font-size: clamp(29px, 7.6vw, 38px); letter-spacing: -.065em; }
  .hero-lead { font-size: 13px; line-height: 1.95; }
  .hero .eyebrow { font-size: 7px; gap: 8px; }
  .hero-links { margin-top: 26px; }
  .pill { font-size: 9px; padding: 12px 13px; gap: 12px; }
  .chrono-core { inset: 25% 17% 23%; }
  .chrono-kicker { margin-bottom: 15px; letter-spacing: .1em; }
  .chrono-zone { gap: 6px; letter-spacing: .025em; }
  .chrono-time { margin: 10px 0; }
  .chrono-date { gap: 6px; }
  .chrono-seconds { margin-top: 15px; gap: 7px; }
  .chrono-second-meter { width: 29px; height: 6px; }
  .contact h2 { font-size: 43px; }
  .project-copy { padding: 22px; }
  .project-meta { font-size: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .chrono-orbit, .chrono-float, .chrono-gimbal i { animation: none; }
  .chrono-assembly { transition: none; }
  .reveal { opacity: 1; transform: none; }
  .header-glass { -webkit-backdrop-filter: blur(16px) saturate(120%); backdrop-filter: blur(16px) saturate(120%); }
  .glass-ripple, .glass-caustics { display: none; }
}
