/* JiaVerse: open directory, blue brand, pastel project icons. */
:root {
  color-scheme: light;
  --page:#fbfcff; --paper:#fff; --paper-low:#f5f8fd;
  --ink:#0c1730; --secondary:#5f6f89; --muted:#647187;
  --line:#e1e8f3; --line-soft:#e8edf6;
  --accent:#1261f5; --accent-hover:#084fd4; --accent-soft:#e7f0ff;
  --blue-wash:#eff5ff; --hover-wash:#f0f5ff;
  --selected:#1261f5; --selected-ink:#fff; --brand-accent:var(--accent);
  --light-rgb:18,97,245; --shadow-rgb:18,44,91;
  --ease:cubic-bezier(.22,1,.36,1);
  --folder-tab-height:56px;
  --folder-tab-width:240px;
  --folder-inset:24px;
}
html[data-material="dusk"] {
  color-scheme:dark;
  --page:#101a2b; --paper:#17253d; --paper-low:#142138;
  --ink:#f0f5ff; --secondary:#bac8e0; --muted:#a0b1cc;
  --line:#2b3b56; --line-soft:#26364f;
  --accent:#8db4ff; --accent-hover:#b4ceff; --accent-soft:#20385f;
  --blue-wash:#192b49; --hover-wash:#192c4b;
  --selected:#286df2; --selected-ink:#fff;
  --light-rgb:109,161,255; --shadow-rgb:0,6,20;
}
html[data-material="mist"] {
  color-scheme:light;
  --page:#edf3fc; --paper:#f9fbff; --paper-low:#e6eefb;
  --ink:#132442; --secondary:#52698b; --muted:#566b8a;
  --line:#cedcf0; --line-soft:#d7e2f3;
  --accent:#155ee7; --accent-hover:#084bbf; --accent-soft:#dce9ff;
  --blue-wash:#e2edff; --hover-wash:#e0ebfd;
  --selected:#155ee7; --selected-ink:#fff;
  --light-rgb:21,94,231; --shadow-rgb:28,63,115;
}
* { box-sizing:border-box; }
[hidden] { display:none!important; }
html { scroll-behavior:smooth; scrollbar-gutter:stable; scroll-padding-top:28px; }
body {
  margin:0; min-width:0; background:var(--page); color:var(--ink);
  font-family:"Inter","Avenir Next",-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;
  font-size:16px; -webkit-font-smoothing:antialiased;
  transition:background-color .3s,color .3s;
}
::selection { background:var(--accent); color:var(--page); }
button,input { font:inherit; }
button { color:inherit; cursor:pointer; }
a { color:inherit; text-decoration:none; text-underline-offset:4px; }
button,a,input,summary { -webkit-tap-highlight-color:transparent; }
button:focus-visible,a:focus-visible,input:focus-visible,summary:focus-visible { outline:2px solid var(--accent); outline-offset:5px; }
button:disabled { cursor:default; opacity:.45; }
input { caret-color:var(--accent); }
.icon {
  display:inline-block; width:20px; height:20px; flex:0 0 auto; background:currentColor;
  -webkit-mask:var(--icon) center/contain no-repeat; mask:var(--icon) center/contain no-repeat;
}
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.anchor-target { display:block; height:0; }
.skip-link { position:fixed; left:16px; top:12px; z-index:100; padding:12px 18px; border-radius:10px; background:var(--paper); color:var(--accent); transform:translateY(-180%); opacity:0; }
.skip-link:focus { transform:translateY(0); opacity:1; }

/* Local icon masks only; GSAP owns motion. Stars stay outside the content. */
.ambient-stars { position:fixed; inset:0; z-index:0; overflow:hidden; pointer-events:none; display:none; }
html[data-motion="rich"] .ambient-stars { display:block; }
.ambient-star { position:absolute; display:block; width:23px; height:23px; background:var(--accent); opacity:.13; -webkit-mask:url(/home-icons/sparkles.svg) center/contain no-repeat; mask:url(/home-icons/sparkles.svg) center/contain no-repeat; }
.ambient-star:nth-child(1) { left:2.2vw; top:27%; width:20px; height:20px; }
.ambient-star:nth-child(2) { right:2.5vw; top:48%; }
.ambient-star:nth-child(3) { left:2.8vw; top:78%; width:17px; height:17px; }
.ambient-star:nth-child(4) { right:3.2vw; top:16%; width:16px; height:16px; }

.page-shell { position:relative; z-index:1; width:min(1200px,calc(100% - 80px)); margin-inline:auto; padding:24px 0 22px; }
.site-header { display:flex; align-items:center; gap:30px; min-height:64px; padding-bottom:18px; border-bottom:1px solid var(--line); }
.brand { display:inline-flex; align-items:center; gap:13px; min-height:44px; font-size:26px; line-height:1; letter-spacing:-.045em; font-weight:900; }
.brand-mark { display:inline-block; width:29px; height:29px; flex:0 0 auto; background:var(--accent); -webkit-mask:url(/home-icons/sparkles.svg) center/contain no-repeat; mask:url(/home-icons/sparkles.svg) center/contain no-repeat; transform-origin:center; }
.header-nav { display:flex; align-items:center; gap:38px; margin-left:auto; font-size:15px; font-weight:600; }
.header-nav a { position:relative; display:inline-flex; align-items:center; min-height:44px; color:var(--secondary); transition:color .2s; }
.header-nav a.current,.header-nav a[aria-current="page"] { color:var(--ink); }
.header-nav a.current::after,.header-nav a[aria-current="page"]::after { content:""; position:absolute; left:50%; bottom:2px; width:20px; height:3px; border-radius:2px; background:var(--accent); transform:translateX(-50%); }
.header-nav a:hover { color:var(--accent); }
.icon-button { display:inline-flex; align-items:center; justify-content:center; width:44px; height:44px; padding:0; flex:0 0 auto; border:0; border-radius:12px; background:transparent; }
.github-link { margin-right:-8px; color:var(--secondary); transition:color .2s,background-color .2s; }
.github-link:hover { color:var(--accent); background:var(--accent-soft); }
.github-link .icon { width:22px; height:22px; }
.mobile-nav { display:none; position:relative; }
.mobile-nav summary { display:grid; place-items:center; width:44px; height:44px; border-radius:10px; cursor:pointer; list-style:none; }
.mobile-nav summary::-webkit-details-marker { display:none; }
.mobile-nav summary::marker { content:""; }
.mobile-nav summary .icon { width:24px; height:24px; }
.mobile-nav[open] summary { color:var(--accent); background:var(--accent-soft); }
.mobile-nav > nav { position:absolute; top:calc(100% + 9px); right:0; z-index:20; min-width:190px; padding:8px; background:var(--paper); border:1px solid var(--line); border-radius:14px; box-shadow:0 12px 36px rgba(var(--shadow-rgb),.12); }
.mobile-nav a { display:flex; align-items:center; min-height:44px; padding:10px 14px; border-radius:8px; font-size:15px; }
.mobile-nav a:hover { color:var(--accent); background:var(--accent-soft); }

.intro { display:flex; align-items:center; justify-content:space-between; gap:32px; padding:50px 0 48px; }
.intro-copy { min-width:0; }
.intro-actions { display:flex; align-items:center; gap:18px; flex:0 0 auto; }
.intro h1 { margin:0; font-size:clamp(38px,3.55vw,52px); font-weight:800; line-height:1.25; letter-spacing:-.045em; }
.intro-phrase { display:inline; }
.intro .emphasis { color:var(--accent); font-style:normal; }
.intro p { margin:12px 0 0; color:var(--secondary); font-size:18px; line-height:1.65; letter-spacing:.005em; }
.wander-button { display:inline-flex; align-items:center; justify-content:center; gap:14px; flex:0 0 auto; min-height:52px; padding:0 22px; border:0; border-radius:999px; background:var(--selected); color:var(--selected-ink); font-size:16px; font-weight:650; white-space:nowrap; box-shadow:0 5px 15px rgba(var(--light-rgb),.13); transition:background-color .2s,box-shadow .2s; }
.wander-button:hover { background:color-mix(in srgb,var(--selected) 91%,#082d86); box-shadow:0 7px 18px rgba(var(--light-rgb),.2); }
.wander-symbol { display:inline-flex; align-items:center; justify-content:center; }
.wander-symbol .icon { width:24px; height:24px; }
.wander-button > .icon { width:18px; height:18px; margin-left:4px; }

/* Search belongs to the whole directory, outside each category outline. */
.workspace { position:relative; }
.search-control { position:relative; display:flex; align-items:center; gap:11px; width:252px; height:48px; margin:0; padding:0 12px; border:1px solid var(--line); border-radius:12px; background:var(--paper); color:var(--secondary); transition:background-color .25s,border-color .2s,box-shadow .2s; }
.search-control > .icon { width:20px; height:20px; }
.search-control:focus-within { border-color:var(--accent); box-shadow:0 0 0 3px color-mix(in srgb,var(--accent) 13%,transparent); }
.search-control input { min-width:0; width:100%; height:44px; padding:0; border:0; outline:0!important; background:transparent; color:var(--ink); font-size:15px; line-height:24px; }
.search-control input::placeholder { color:var(--muted); opacity:1; }
.search-control input::-webkit-search-cancel-button { -webkit-appearance:none; appearance:none; }
.search-control kbd { flex:0 0 auto; padding:4px 6px; border-radius:5px; background:var(--paper-low); color:var(--muted); font-family:inherit; font-size:12px; line-height:1.2; white-space:nowrap; }
.search-control:focus-within kbd,.search-control.has-query kbd { display:none; }
.search-reset { width:44px; height:44px; margin-right:-10px; color:var(--muted); }
.search-reset:hover { color:var(--accent); }
.search-reset .icon { width:18px; height:18px; }
.search-summary { display:flex; align-items:center; justify-content:space-between; gap:16px; min-height:44px; margin:0 0 20px; color:var(--secondary); font-size:14px; line-height:1.6; }
.search-summary button { display:inline-flex; align-items:center; gap:8px; min-height:44px; padding:0; border:0; background:transparent; color:var(--accent); font-size:14px; }
.search-summary button .icon { width:17px; height:17px; }
.directory { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:32px; align-items:stretch; }
.folder-panel { position:relative; min-width:0; margin-top:var(--folder-tab-height); padding:var(--folder-inset); border:1px solid var(--line); border-radius:0 14px 14px 14px; background:transparent; }
.interest-section { display:grid; grid-template-rows:auto 1fr; }
.section-heading { margin-bottom:16px; }
.section-tab { position:absolute; z-index:1; top:calc(-1 * var(--folder-tab-height)); left:-1px; display:flex; align-items:center; gap:14px; width:var(--folder-tab-width); max-width:calc(100% - 16px); height:var(--folder-tab-height); padding:0 var(--folder-inset); border:1px solid var(--line); border-bottom:0; border-radius:14px 14px 0 0; background:var(--page); }
.section-tab h2 { min-width:0; margin:0; font-size:24px; font-weight:750; line-height:32px; letter-spacing:-.025em; white-space:nowrap; }
.section-symbol { display:inline-flex; align-items:center; justify-content:center; width:28px; height:28px; flex:0 0 auto; color:var(--accent); }
.section-symbol .icon { width:28px; height:28px; }
.section-description { margin:0; color:var(--secondary); font-size:16px; line-height:26px; }
.self-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); grid-template-rows:repeat(3,auto); column-gap:24px; align-content:space-between; }
.project-item { position:relative; min-width:0; margin:0; }
.project-link { position:relative; display:grid; grid-template-columns:48px minmax(0,1fr) 18px; align-items:center; gap:14px; min-width:0; min-height:80px; border-radius:12px; transition:background-color .22s; }
.project-link:hover,.project-link:focus-visible { background:var(--hover-wash); }
.project-symbol { display:inline-flex; align-items:center; justify-content:center; width:48px; height:48px; flex:0 0 auto; border-radius:14px; background:var(--symbol-bg,var(--accent-soft)); color:var(--symbol-ink,var(--accent)); transform-origin:center; }
.project-symbol .icon { width:28px; height:28px; }
.family-blue { --symbol-bg:#d7e8ff; --symbol-ink:#105ef1; }
.family-cyan { --symbol-bg:#c9efff; --symbol-ink:#006b9c; }
.family-yellow { --symbol-bg:#ffe99d; --symbol-ink:#785100; }
.family-mint { --symbol-bg:#d8f9df; --symbol-ink:#146b36; }
.family-coral { --symbol-bg:#ffd6d2; --symbol-ink:#b32626; }
.family-violet { --symbol-bg:#e7e4ff; --symbol-ink:#3c4cee; }
html[data-material="dusk"] .family-blue { --symbol-bg:#213c65; --symbol-ink:#a4c5ff; }
html[data-material="dusk"] .family-cyan { --symbol-bg:#183e52; --symbol-ink:#8ddcff; }
html[data-material="dusk"] .family-yellow { --symbol-bg:#4b4025; --symbol-ink:#ffde87; }
html[data-material="dusk"] .family-mint { --symbol-bg:#254533; --symbol-ink:#a2e8b4; }
html[data-material="dusk"] .family-coral { --symbol-bg:#4e2c35; --symbol-ink:#ffb8af; }
html[data-material="dusk"] .family-violet { --symbol-bg:#302c59; --symbol-ink:#beb8ff; }
.project-copy { min-width:0; }
.project-copy h3 { margin:0; font-size:18px; font-weight:700; line-height:1.4; letter-spacing:-.025em; transition:color .2s; }
.project-copy p { margin:4px 0 0; color:var(--secondary); font-size:14px; line-height:1.5; }
.project-arrow { width:18px; height:18px; color:var(--muted); justify-self:end; transition:color .2s; }
.project-link:hover .project-copy h3,.project-link:hover .project-arrow { color:var(--accent); }
.self-grid .project-link { min-height:80px; padding:12px 0; }
.self-grid .project-item:nth-last-child(n + 3) { border-bottom:1px solid var(--line-soft); }
.self-grid .project-item:nth-child(odd)::after { content:""; position:absolute; top:14px; bottom:14px; right:-12px; width:1px; background:var(--line-soft); }
.move-list { margin:0; }
.move-list .project-item + .project-item { border-top:1px solid var(--line-soft); }
.move-list .project-link { padding:12px 0; }
.workspace.is-searching .self-grid { grid-template-rows:none; align-content:start; align-items:start; }
.workspace.is-searching .self-grid .project-item { border-bottom:1px solid var(--line-soft); }
.workspace.is-searching .self-grid .project-item::after { display:none; }
.workspace.is-searching .move-list .project-item { border-top:0; border-bottom:1px solid var(--line-soft); }
.directory:has(> .self-section[hidden]),.directory:has(> .move-section[hidden]) { grid-template-columns:1fr; }
.directory[data-visible-groups="self"],.directory[data-visible-groups="move"] { grid-template-columns:1fr; }
.directory[data-visible-groups="none"] { display:none; }

/* The same attached title contains both exploration links. */
.elsewhere { display:grid; grid-template-columns:1.3fr 1fr 1fr; align-items:center; gap:28px; min-height:112px; margin-top:calc(var(--folder-tab-height) + 24px); }
.elsewhere-intro { min-width:0; }
.elsewhere .section-description { font-size:15px; }
.elsewhere > .project-item { border-left:1px solid var(--line); padding-left:28px; }
.elsewhere .project-link { min-height:64px; }
.elsewhere .project-copy h3 { font-size:18px; }
.elsewhere .project-copy p { font-size:15px; }
.workspace.is-searching .elsewhere { grid-template-columns:1.3fr 1fr 1fr; }
.empty-state { display:flex; flex-direction:column; align-items:center; justify-content:center; min-height:330px; padding:36px 20px; text-align:center; }
.empty-state > .icon { width:34px; height:34px; color:var(--accent); }
.empty-state h3 { margin:20px 0 6px; font-size:24px; font-weight:700; }
.empty-state p { max-width:38em; margin:8px 0 20px; font-size:15px; line-height:1.75; color:var(--secondary); }
.noscript-note { margin:20px 0; color:var(--secondary); font-size:14px; line-height:1.7; }

.journal { margin-top:24px; padding:8px 0 16px; border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
.journal-heading { position:relative; display:flex; align-items:center; gap:10px; min-height:40px; margin-bottom:2px; }
.journal-heading > .icon { width:20px; height:20px; color:var(--accent); }
.journal-heading h2 { margin:0; font-size:16px; font-weight:700; line-height:1.5; }
.all-writing { display:inline-flex; align-items:center; justify-content:flex-end; gap:8px; min-height:44px; margin-left:auto; padding:0 0 0 16px; color:var(--secondary); font-size:13px; }
.all-writing .icon { width:16px; height:16px; }
.all-writing:hover { color:var(--accent); text-decoration:underline; }
.journal-entry { display:grid; grid-template-columns:112px minmax(0,1fr) auto; align-items:center; gap:40px; min-height:52px; border-radius:9px; }
.journal-meta { display:flex; flex-direction:column; gap:4px; color:var(--muted); font-size:13px; line-height:1.5; font-variant-numeric:tabular-nums; }
.journal-entry h3 { margin:0; font-size:20px; font-weight:650; line-height:1.6; letter-spacing:-.018em; transition:color .2s; }
.journal-open { display:inline-flex; align-items:center; gap:14px; min-height:44px; margin-left:auto; color:var(--secondary); font-size:14px; white-space:nowrap; }
.journal-open .icon { width:18px; height:18px; }
.journal-entry:hover h3,.journal-entry:hover .journal-open { color:var(--accent); }
.about { display:flex; align-items:baseline; justify-content:space-between; gap:24px; padding-top:13px; color:var(--muted); font-size:13px; line-height:1.7; }
.about p { margin:0; }
.site-footer { display:flex; align-items:center; justify-content:space-between; gap:24px; min-height:44px; margin-top:0; color:var(--muted); font-size:13px; }
.experience-controls { display:flex; align-items:center; gap:19px; }
.control-label { margin-right:4px; color:var(--muted); font-size:12px; white-space:nowrap; }
.material-controls,.motion-controls { display:flex; align-items:center; gap:1px; }
.material-controls { position:relative; padding-right:17px; }
.material-controls::after { content:""; position:absolute; right:0; top:14px; bottom:14px; width:1px; background:var(--line); }
.material-button { display:grid; place-items:center; width:44px; height:44px; border:0; padding:0; border-radius:10px; background:transparent; }
.material-button > span { display:block; position:relative; width:18px; height:18px; border-radius:50%; box-shadow:inset 0 0 0 1px rgba(33,57,96,.16); }
.material-button.pearl > span { background:#f7f9ff; }
.material-button.dusk > span { background:#20314f; }
.material-button.mist > span { background:#b8d2fa; }
.material-button[aria-pressed="true"] > span::after { content:""; position:absolute; inset:-4px; border:1px solid var(--accent); border-radius:50%; }
.motion-controls button { min-width:44px; min-height:44px; padding:0 11px; border:1px solid transparent; border-radius:10px; color:var(--secondary); background:transparent; font-size:12px; transition:color .2s,background-color .2s,border-color .2s; }
.motion-controls button[aria-pressed="true"] { border-color:var(--line); background:var(--paper); color:var(--ink); box-shadow:0 2px 7px rgba(var(--shadow-rgb),.035); }
.motion-controls button:hover { color:var(--accent); }
.system-motion-note { margin:8px 0 0; color:var(--muted); font-size:12px; line-height:1.6; text-align:right; }

.primary-button,.secondary-button { display:inline-flex; align-items:center; justify-content:center; gap:10px; min-height:48px; padding:11px 18px; border-radius:12px; font-size:15px; font-weight:600; }
.primary-button { border:1px solid transparent; color:var(--selected-ink); background:var(--selected); }
.primary-button:hover { background:color-mix(in srgb,var(--selected) 91%,#082d86); }
.secondary-button { border:1px solid var(--line); color:var(--secondary); background:transparent; }
.secondary-button:hover { color:var(--accent); background:var(--accent-soft); }
.primary-button .icon,.secondary-button .icon { width:18px; height:18px; }
.discover-dialog { position:fixed; width:min(480px,calc(100% - 40px)); max-height:calc(100dvh - 48px); margin:auto; padding:34px; overflow-y:auto; border:1px solid var(--line); border-radius:24px; background:var(--paper); color:var(--ink); box-shadow:0 28px 90px rgba(var(--shadow-rgb),.24); }
html.discovery-open { overflow:hidden; }
.discover-dialog::backdrop { background:rgba(11,25,50,.28); -webkit-backdrop-filter:blur(7px); backdrop-filter:blur(7px); }
.dialog-close { position:absolute; top:12px; right:12px; color:var(--muted); }
.dialog-close:hover { color:var(--accent); background:var(--accent-soft); }
.discovery-symbol { display:grid; place-items:center; width:76px; height:76px; margin-bottom:24px; border-radius:22px; background:var(--symbol-bg,var(--accent-soft)); color:var(--symbol-ink,var(--accent)); }
.discovery-symbol .icon { width:42px; height:42px; }
.discovery-kicker { margin:0 0 9px; color:var(--accent); font-size:13px; font-weight:600; letter-spacing:.035em; }
.discover-dialog h2 { margin:0; font-size:29px; line-height:1.35; letter-spacing:-.03em; }
.discovery-description { margin:14px 0; color:var(--secondary); font-size:16px; line-height:1.8; }
.discovery-facts { display:flex; flex-wrap:wrap; gap:8px 16px; margin:16px 0 25px; color:var(--muted); font-size:13px; line-height:1.6; }
.discovery-actions { display:grid; grid-template-columns:1fr 1fr; gap:12px; }

/* The main directory stays paired at 1024px; search gets its own row first. */
@media (max-width:1279px) {
  .ambient-stars { display:none!important; }
}
@media (max-width:1179px) {
  .page-shell { width:calc(100% - 56px); }
  .intro { gap:24px; padding-top:44px; padding-bottom:36px; }
  .intro h1 { font-size:41px; }
  .intro p { max-width:39em; font-size:16px; }
  .wander-button { gap:10px; padding-inline:19px; font-size:15px; }
  .intro-actions { gap:12px; }
  .search-control { width:220px; }
  .workspace.is-searching { padding-top:0; }
  .search-summary { margin-top:-12px; }
  .directory { gap:24px; }
  .self-grid { column-gap:24px; }
  .self-grid .project-item:nth-child(odd)::after { right:-12px; }
  .project-link { grid-template-columns:48px minmax(0,1fr) 16px; gap:12px; min-height:96px; }
  .project-symbol { width:48px; height:48px; border-radius:14px; }
  .project-symbol .icon { width:28px; height:28px; }
  .project-copy h3 { font-size:18px; }
  .project-copy p { font-size:14px; }
  .self-grid .project-link { min-height:96px; }
  .move-list .project-link { padding-left:0; }
  .move-list .project-symbol { width:48px; height:48px; border-radius:14px; }
  .project-arrow { width:16px; height:16px; }
  .elsewhere { grid-template-columns:1.3fr 1fr 1fr; gap:20px; margin-inline:0; }
  .elsewhere > .project-item { padding-left:20px; }
  .elsewhere .section-description { font-size:14px; }
  .elsewhere .project-link { grid-template-columns:44px minmax(0,1fr) 16px; gap:13px; }
  .elsewhere .project-symbol { width:44px; height:44px; border-radius:13px; }
  .elsewhere .project-symbol .icon { width:26px; height:26px; }
  .elsewhere .project-copy h3 { font-size:17px; }
  .elsewhere .project-copy p { font-size:14px; }
  .journal-entry { grid-template-columns:98px minmax(0,1fr) auto; gap:24px; }
}
@media (max-width:1023px) {
  .page-shell { width:calc(100% - 64px); }
  .site-header { gap:23px; }
  .header-nav { gap:24px; font-size:14px; }
  .brand { font-size:24px; }
  .intro { flex-direction:column; align-items:flex-start; gap:22px; }
  .intro-actions { width:100%; gap:18px; }
  .search-control { flex:1; width:auto; }
  .intro h1 { font-size:40px; max-width:15em; }
  .intro p { max-width:34em; }
  .wander-button { margin-top:0; }
  .directory { grid-template-columns:1fr; gap:36px; }
  .self-grid { column-gap:40px; }
  .self-grid .project-link { min-height:108px; }
  .self-grid .project-item:nth-child(odd)::after { right:-20px; }
  .project-link { grid-template-columns:52px minmax(0,1fr) 18px; gap:19px; }
  .project-symbol { width:52px; height:52px; border-radius:15px; }
  .project-symbol .icon { width:29px; height:29px; }
  .project-copy h3 { font-size:19px; }
  .project-copy p { font-size:15px; }
  .move-list { margin-top:0; }
  .move-list .project-link { grid-template-columns:52px minmax(0,1fr) 18px; gap:20px; min-height:85px; padding-inline:0; }
  .move-list .project-symbol { width:52px; height:52px; }
  .elsewhere,.workspace.is-searching .elsewhere { grid-template-columns:repeat(2,minmax(0,1fr)); gap:19px 28px; }
  .elsewhere-intro { grid-column:1/-1; }
  .elsewhere > .project-item { padding:0; border-left:0; border-top:1px solid var(--line); }
  .elsewhere .project-link { min-height:89px; padding-top:12px; }
  .elsewhere .project-copy h3 { font-size:18px; }
  .elsewhere .project-copy p { font-size:15px; }
  .journal { margin-top:28px; }
  .journal-entry { grid-template-columns:98px minmax(0,1fr) 22px; gap:20px; }
  .journal-entry h3 { font-size:18px; }
  .journal-open { font-size:0; gap:0; }
  .journal-open > span:not(.icon) { display:none; }
  .about { font-size:12px; }
  .site-footer { gap:12px; font-size:12px; }
  .experience-controls { gap:13px; }
  .material-controls { padding-right:12px; }
  .control-label { margin-right:0; }
}
@media (max-width:767px) {
  .intro { flex-direction:column; gap:22px; }
  .intro h1 { max-width:none; }
  .intro p { max-width:36em; }
  .wander-button { margin-top:0; }
  .site-footer { flex-wrap:wrap; padding-top:6px; }
  .experience-controls { margin-left:auto; }
}
@media (max-width:639px) {
  :root { --folder-inset:18px; }
  html { scroll-padding-top:20px; }
  .page-shell { width:auto; margin:0; padding:18px max(22px,env(safe-area-inset-right)) 24px max(22px,env(safe-area-inset-left)); }
  .site-header { min-height:58px; gap:8px; padding-bottom:13px; }
  .brand { gap:10px; font-size:23px; }
  .brand-mark { width:27px; height:27px; }
  .header-nav,.github-link { display:none; }
  .mobile-nav { display:block; margin-left:auto; }
  .intro { gap:20px; padding:34px 0 28px; }
  .intro h1 { max-width:10em; font-size:clamp(29px,9vw,36px); line-height:1.3; letter-spacing:-.04em; }
  .intro-phrase { display:block; }
  .intro p { margin-top:14px; max-width:28em; font-size:16px; line-height:1.8; }
  .intro-actions { flex-direction:column; align-items:flex-start; gap:16px; }
  .wander-button { min-height:48px; padding-inline:19px; gap:13px; font-size:15px; }
  .wander-symbol .icon { width:22px; height:22px; }
  .search-control { flex:none; width:100%; height:50px; margin-bottom:0; border-radius:12px; padding-inline:14px; }
  .search-control input { font-size:16px; }
  .search-control kbd { display:none; }
  .search-summary { margin-top:-12px; margin-bottom:22px; font-size:14px; }
  .search-summary button { font-size:13px; }
  .directory { gap:29px; }
  .section-tab { gap:12px; }
  .section-tab h2 { font-size:22px; }
  .section-description { font-size:15px; line-height:24px; }
  .self-grid { grid-template-columns:1fr; grid-template-rows:none; margin-top:0; }
  .self-grid .project-item { border-bottom:1px solid var(--line-soft); }
  .self-grid .project-item:last-child { border-bottom:0; }
  .self-grid .project-item::after { display:none; }
  .self-grid .project-link,.move-list .project-link { grid-template-columns:48px minmax(0,1fr) 18px; gap:16px; min-height:87px; padding:14px 0; }
  .project-symbol,.move-list .project-symbol { width:48px; height:48px; border-radius:14px; }
  .project-symbol .icon,.move-list .project-symbol .icon { width:28px; height:28px; }
  .project-copy h3 { font-size:18px; line-height:1.45; }
  .project-copy p { margin-top:4px; font-size:14px; line-height:1.6; }
  .project-arrow { width:18px; height:18px; }
  .move-list { margin-top:0; }
  .elsewhere,.workspace.is-searching .elsewhere { grid-template-columns:1fr; gap:0; }
  .elsewhere-intro { grid-column:auto; padding-bottom:17px; }
  .elsewhere .section-description { font-size:14px; line-height:1.6; }
  .elsewhere .project-link { grid-template-columns:44px minmax(0,1fr) 16px; gap:15px; min-height:87px; padding:14px 0; }
  .elsewhere .project-copy h3 { font-size:17px; }
  .elsewhere .project-copy p { font-size:14px; }
  .journal { margin-top:27px; padding:8px 0 19px; }
  .journal-heading { gap:8px; margin-bottom:10px; }
  .journal-heading h2 { font-size:16px; }
  .all-writing { font-size:12px; }
  .journal-entry { grid-template-columns:minmax(0,1fr) 20px; gap:8px 12px; }
  .journal-meta { grid-column:1/-1; flex-direction:row; flex-wrap:wrap; gap:12px; font-size:12px; }
  .journal-entry h3 { font-size:18px; line-height:1.7; }
  .journal-open { min-height:44px; margin:0; }
  .about { display:block; padding-top:16px; font-size:12px; line-height:1.8; }
  .site-footer { flex-direction:column; align-items:flex-start; gap:12px; padding-top:7px; font-size:12px; }
  .experience-controls { width:100%; margin:0; justify-content:space-between; flex-wrap:wrap; gap:8px 14px; }
  .material-controls { padding-right:0; gap:1px; }
  .material-controls::after { display:none; }
  .material-button { width:44px; height:44px; }
  .material-button > span { width:20px; height:20px; }
  .motion-controls { gap:0; }
  .motion-controls button { min-width:44px; min-height:44px; padding-inline:8px; font-size:12px; }
  .control-label { margin-right:2px; font-size:12px; }
  .system-motion-note { text-align:left; font-size:12px; }
  .empty-state { min-height:300px; padding-inline:0; }
  .empty-state h3 { font-size:22px; }
  .empty-state p { font-size:14px; }
  .discover-dialog { width:calc(100% - 32px); max-height:calc(100dvh - 32px); padding:27px 24px; border-radius:21px; }
  .discovery-symbol { width:66px; height:66px; border-radius:19px; margin-bottom:22px; }
  .discovery-symbol .icon { width:36px; height:36px; }
  .discover-dialog h2 { font-size:27px; padding-right:10px; }
  .discovery-description { font-size:15px; }
  .discovery-actions { grid-template-columns:1fr; gap:10px; }
}
html[data-motion="off"] { scroll-behavior:auto; }
/* One authored color change, originating at the selected swatch. Native fallback stays immediate. */
html.theme-transitioning::view-transition { pointer-events:none; }
html.theme-transitioning::view-transition-old(root),
html.theme-transitioning::view-transition-new(root) { animation:none; mix-blend-mode:normal; }
html.theme-transitioning::view-transition-old(root) { z-index:1; }
html.theme-transitioning::view-transition-new(root) { z-index:2; }
html.theme-transitioning::view-transition-group(root) { animation-duration:.48s; }
html.theme-transitioning *,html.theme-transitioning { transition:none!important; }
.project-symbol .icon { transform-origin:50% 55%; }
html[data-motion="off"] *,html[data-motion="off"] *::before,html[data-motion="off"] *::after { animation:none!important; transition:none!important; scroll-behavior:auto!important; }
html[data-motion="off"] .ambient-stars { display:none!important; }
@media (prefers-reduced-motion:reduce) {
  html { scroll-behavior:auto; }
  *,*::before,*::after { animation:none!important; transition:none!important; scroll-behavior:auto!important; }
  .ambient-stars { display:none!important; }
}
