:root{
  --bg:#f3f6fb;--card:#fff;--text:#0f172a;--muted:#6b7b93;--line:#e5eaf1;
  --blue:#2563eb;--blue2:#0ea5e9;--navy:#0b1325;--orange:#f59e0b;
  --shadow:0 16px 45px rgba(20,34,60,.08);--radius:28px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--bg);color:var(--text);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif}
button{font:inherit}
.site{max-width:1220px;margin:0 auto;padding:18px 24px 40px}
.topbar{position:sticky;top:0;z-index:10;display:flex;align-items:center;gap:18px;padding:10px 0 16px;background:rgba(243,246,251,.9);backdrop-filter:blur(14px)}
.icon-btn,.theme-btn{width:48px;height:48px;border:1px solid var(--line);background:var(--card);border-radius:16px;box-shadow:0 8px 24px rgba(15,23,42,.04);cursor:pointer}
.icon-btn{display:grid;place-content:center;gap:4px}
.icon-btn span{width:18px;height:2px;background:var(--blue);border-radius:4px}
.title-wrap{flex:1}.title-wrap small,.page-intro small,.section-head small,.about-card small{font-size:10px;letter-spacing:1.8px;color:var(--blue);font-weight:900}.title-wrap h1{margin:2px 0 0;font-size:23px}
.page{display:none}.page.active{display:block;animation:fade .22s ease}@keyframes fade{from{opacity:.45;transform:translateY(5px)}to{opacity:1;transform:none}}
.hero{min-height:560px;display:grid;grid-template-columns:1.05fr .95fr;gap:20px;padding:42px;background:
 radial-gradient(circle at 86% 22%,rgba(59,130,246,.12),transparent 25%),
 radial-gradient(circle at 80% 88%,rgba(245,158,11,.14),transparent 25%),
 linear-gradient(135deg,#fff,#f9fbff);
 border:1px solid var(--line);border-radius:32px;box-shadow:var(--shadow);overflow:hidden}
.hero-copy{align-self:center;position:relative;z-index:2}
.pill{display:inline-flex;padding:7px 11px;border-radius:999px;background:#eef5ff;color:var(--blue);font-size:11px;font-weight:800}
.hero h2{font-size:clamp(42px,5vw,70px);line-height:1.02;letter-spacing:-2.4px;margin:24px 0 18px}.hero h2 em{font-style:normal;color:var(--blue)}
.lead{color:var(--muted);font-size:15px;line-height:1.9;max-width:650px}.brand-line{margin-top:16px;font-weight:800;color:#334155}.brand-line span{margin-left:8px}
.hero-actions{display:flex;gap:12px;margin-top:28px}.btn{padding:13px 20px;border-radius:16px;border:1px solid var(--line);font-weight:800;cursor:pointer}.btn b{font-size:20px;margin-left:10px}.primary{background:var(--navy);color:#fff;border-color:var(--navy)}.secondary{background:#fff;color:var(--text)}
.hero-art{position:relative;min-height:460px;display:grid;place-items:center;isolation:isolate}
.dawn{position:relative;z-index:4;width:min(74%,390px);filter:drop-shadow(0 18px 20px rgba(15,23,42,.16))}
.hero-logo{position:absolute;right:0;top:4%;width:90px;height:90px;object-fit:contain;z-index:5}
.ring{position:absolute;border-radius:50%;border:2px solid rgba(59,130,246,.22);z-index:1}.ring-a{width:94%;height:56%;transform:rotate(-18deg)}.ring-b{width:82%;height:46%;transform:rotate(19deg);border-color:rgba(245,158,11,.28)}
.tag{position:absolute;z-index:6;background:rgba(255,255,255,.92);border:1px solid var(--line);border-radius:999px;padding:9px 13px;font-size:11px;font-weight:900;box-shadow:0 8px 20px rgba(15,23,42,.08)}
.tag-tool{left:4%;top:32%}.tag-game{right:1%;top:56%}.tag-think{left:8%;bottom:15%}
.sunflower{position:absolute;width:120px;height:120px;z-index:2}.flower-left{left:3%;bottom:6%}.flower-right{right:5%;bottom:12%;transform:scale(.62)}
.sunflower:before{content:"";position:absolute;inset:0;border-radius:50%;background:repeating-conic-gradient(#ffd42a 0 16deg,#f6a400 16deg 32deg);-webkit-mask:radial-gradient(circle,transparent 0 28px,#000 29px);mask:radial-gradient(circle,transparent 0 28px,#000 29px)}
.sunflower i{position:absolute;left:34px;top:34px;width:52px;height:52px;border-radius:50%;background:radial-gradient(circle at 35% 35%,#92400e,#5b2b0a);z-index:2}
.leaf{position:absolute;width:28px;height:14px;border-radius:100% 0 100% 0;background:#7fbf46;z-index:2}.leaf-a{left:13%;bottom:5%;transform:rotate(25deg)}.leaf-b{right:17%;bottom:7%;transform:rotate(-24deg)}.leaf-c{right:10%;bottom:4%;transform:rotate(10deg) scale(.7)}
.spark{position:absolute;color:#f7b733;z-index:5}.spark-a{right:8%;top:28%;font-size:26px}.spark-b{right:24%;top:18%;font-size:17px}.ground-shadow{position:absolute;bottom:4%;width:65%;height:22px;border-radius:50%;background:rgba(44,82,130,.12);filter:blur(10px);z-index:0}
.stats-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-top:16px}.stat{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:14px;background:var(--card);border:1px solid var(--line);border-radius:22px;padding:18px;box-shadow:0 8px 24px rgba(15,23,42,.04)}.stat>span{font-size:28px;color:#c2cbd8}.stat-icon{width:48px;height:48px;border-radius:15px;display:grid;place-items:center}.stat-icon svg{width:25px;fill:none;stroke:currentColor;stroke-width:1.8}.blue{background:#eef5ff;color:#2563eb}.cyan{background:#ecfbff;color:#0ea5e9}.green{background:#ecfdf5;color:#10b981}.orange{background:#fff7ed;color:#f59e0b}.stat small{display:block;color:var(--muted);font-size:11px}.stat strong{display:block;margin:4px 0;font-size:23px}.stat p{margin:0;color:var(--muted);font-size:11px}.status{font-size:15px!important}.status i{display:inline-block;width:9px;height:9px;border-radius:50%;background:#10b981;margin-right:6px}.next{font-size:15px!important}
.section-head{display:flex;justify-content:space-between;align-items:end;margin:34px 4px 14px}.section-head h3{margin:4px 0 0;font-size:27px}.section-head button{border:0;background:transparent;color:var(--blue);font-weight:800;cursor:pointer}
.projects{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.project{background:var(--card);border:1px solid var(--line);border-top:4px solid var(--accent);border-radius:24px;padding:24px;min-height:220px;position:relative;overflow:hidden}.project:after{content:"";position:absolute;width:130px;height:130px;border-radius:50%;right:-40px;bottom:-48px;background:var(--accent);opacity:.06}.project-top{display:flex;justify-content:space-between;align-items:center}.project-top b{font-size:11px;color:var(--muted);border:1px solid var(--line);padding:6px 9px;border-radius:999px}.emoji{font-size:28px}.project h4{font-size:20px;margin:24px 0 10px}.project p{color:var(--muted);font-size:13px;line-height:1.8;margin:0}.chips{display:flex;gap:8px;flex-wrap:wrap;margin-top:18px}.chips span{font-size:10px;color:var(--muted);border:1px solid var(--line);border-radius:999px;padding:5px 8px}.p-blue{--accent:#2563eb}.p-orange{--accent:#f59e0b}.p-violet{--accent:#7c3aed}.p-cyan{--accent:#0891b2}.p-red{--accent:#dc2626}.p-green{--accent:#16a34a}
.page-intro,.about-card{background:var(--card);border:1px solid var(--line);border-radius:26px;padding:30px;box-shadow:var(--shadow);margin-bottom:16px}.page-intro h2,.about-card h2{font-size:34px;margin:5px 0 8px}.page-intro p,.about-card p{color:var(--muted);line-height:1.8;margin:0}.about-card{display:grid;grid-template-columns:110px 1fr;gap:24px;align-items:center}.about-card img{width:100px;height:100px;object-fit:contain;background:#fff;border-radius:24px;padding:10px;border:1px solid var(--line)}
footer{text-align:center;padding:28px 8px 4px;color:#94a3b8;font-size:10px}
.drawer{position:fixed;z-index:30;left:0;top:0;bottom:0;width:270px;background:#0f172a;color:#fff;padding:24px 18px;transform:translateX(-100%);transition:.22s ease;display:flex;flex-direction:column}.drawer.open{transform:none}.drawer-brand{display:flex;align-items:center;gap:12px;padding:4px 6px 22px}.drawer-brand img{width:42px;height:42px;object-fit:contain;background:#fff;border-radius:13px;padding:4px}.drawer-brand b,.drawer-brand small{display:block}.drawer-brand small{color:#94a3b8;font-size:9px;letter-spacing:1.5px;margin-top:3px}.drawer nav{display:flex;flex-direction:column;gap:6px}.nav{border:0;background:transparent;color:#94a3b8;text-align:left;padding:12px 14px;border-radius:13px;cursor:pointer;font-weight:700}.nav.active,.nav:hover{background:rgba(255,255,255,.08);color:#fff}.drawer-note{margin-top:auto;border-top:1px solid rgba(255,255,255,.08);padding:16px 8px;color:#94a3b8;font-size:10px}.drawer-note i{display:inline-block;width:7px;height:7px;border-radius:50%;background:#22c55e;margin-right:8px}.overlay{display:none;position:fixed;inset:0;background:rgba(15,23,42,.4);z-index:20}.overlay.show{display:block}
body.dark{--bg:#0a1220;--card:#101a2a;--text:#e8eef7;--muted:#91a0b6;--line:#20304a;--shadow:0 18px 50px rgba(0,0,0,.26)}body.dark .topbar{background:rgba(10,18,32,.9)}body.dark .hero{background:radial-gradient(circle at 86% 22%,rgba(59,130,246,.18),transparent 25%),radial-gradient(circle at 80% 88%,rgba(245,158,11,.12),transparent 25%),linear-gradient(135deg,#101a2a,#0e1726)}body.dark .secondary,body.dark .tag{background:#101a2a;color:var(--text)}
@media(max-width:900px){.site{padding:14px 16px 32px}.hero{grid-template-columns:1fr;padding:28px}.hero-art{min-height:400px}.stats-grid{grid-template-columns:1fr 1fr}.projects{grid-template-columns:1fr 1fr}}
@media(max-width:620px){.topbar{padding-bottom:12px}.title-wrap small{display:none}.title-wrap h1{font-size:18px}.hero{padding:22px;border-radius:25px;gap:6px}.hero h2{font-size:40px;letter-spacing:-1.5px}.lead{font-size:13px}.brand-line{font-size:12px;line-height:1.7}.hero-actions{gap:9px}.btn{padding:12px 15px;font-size:13px}.hero-art{min-height:360px;margin-top:4px}.dawn{width:70%}.hero-logo{width:66px;height:66px;right:3%;top:5%}.tag{padding:7px 10px;font-size:9px}.sunflower{width:85px;height:85px}.sunflower i{left:24px;top:24px;width:37px;height:37px}.sunflower:before{-webkit-mask:radial-gradient(circle,transparent 0 20px,#000 21px);mask:radial-gradient(circle,transparent 0 20px,#000 21px)}.stats-grid{grid-template-columns:1fr 1fr;gap:10px}.stat{grid-template-columns:auto 1fr;padding:14px;gap:10px}.stat>span{display:none}.stat-icon{width:40px;height:40px}.stat strong{font-size:19px}.projects{grid-template-columns:1fr}.project{min-height:200px}.about-card{grid-template-columns:1fr}.section-head h3{font-size:24px}}


/* ===== V0.4.1 Visual polish only =====
   Goal: shorter hero, tighter headline, move Dawn upward,
   simplify decorative competition, preserve V0.4 structure.
*/
@media (min-width: 621px){
  .hero{
    min-height:500px;
    padding:34px 38px;
  }
  .hero h2{
    font-size:clamp(38px,4.4vw,62px);
    line-height:1.04;
    margin:20px 0 15px;
  }
  .hero-art{
    min-height:410px;
  }
  .dawn{
    transform:translateY(-26px);
    width:min(70%,360px);
  }
  .hero-logo{
    width:72px;
    height:72px;
    right:2%;
    top:2%;
  }
  .tag{
    padding:7px 10px;
    font-size:10px;
  }
  .flower-left{
    width:92px;
    height:92px;
    left:5%;
    bottom:5%;
  }
  .flower-right{display:none}
}

/* mobile refinement */
@media(max-width:620px){
  .site{padding:12px 14px 28px}
  .topbar{padding:8px 0 10px}
  .icon-btn,.theme-btn{
    width:46px;height:46px;border-radius:15px;
  }

  .hero{
    padding:20px 18px 16px;
    gap:0;
    min-height:auto;
    border-radius:24px;
  }
  .hero-copy{
    text-align:left;
  }
  .pill{
    padding:6px 10px;
    font-size:10px;
  }
  .hero h2{
    font-size:34px;
    line-height:1.04;
    letter-spacing:-1.1px;
    margin:18px 0 14px;
  }
  .hero h2 br{
    display:none;
  }
  .hero h2 em{
    display:block;
    margin-top:2px;
  }
  .lead{
    font-size:12px;
    line-height:1.78;
  }
  .brand-line{
    margin-top:13px;
    font-size:11px;
    line-height:1.65;
  }
  .brand-line span{
    margin-left:6px;
  }
  .hero-actions{
    margin-top:20px;
    gap:8px;
  }
  .btn{
    padding:11px 14px;
    border-radius:15px;
    font-size:12px;
  }
  .btn b{
    font-size:17px;
    margin-left:7px;
  }

  .hero-art{
    min-height:280px;
    margin-top:-4px;
    overflow:visible;
  }
  .dawn{
    width:64%;
    transform:translateY(-28px);
  }
  .hero-logo{
    width:52px;
    height:52px;
    right:4%;
    top:2%;
  }
  .ring-a{
    width:88%;
    height:49%;
    transform:rotate(-15deg) translateY(-18px);
  }
  .ring-b{
    width:74%;
    height:39%;
    transform:rotate(18deg) translateY(-18px);
  }

  .tag{
    padding:6px 9px;
    font-size:8px;
    box-shadow:0 6px 16px rgba(15,23,42,.06);
  }
  .tag-tool{left:6%;top:28%}
  .tag-game{right:3%;top:52%}
  .tag-think{left:8%;bottom:13%}

  /* one main sunflower only; leaves keep the second side alive */
  .flower-left{
    width:72px;height:72px;
    left:5%;bottom:5%;
  }
  .flower-left i{
    left:20px;top:20px;width:32px;height:32px;
  }
  .flower-left:before{
    -webkit-mask:radial-gradient(circle,transparent 0 17px,#000 18px);
            mask:radial-gradient(circle,transparent 0 17px,#000 18px);
  }
  .flower-right{display:none}
  .leaf-b{right:13%;bottom:8%}
  .leaf-c{right:7%;bottom:5%}

  .spark-a{right:10%;top:26%;font-size:20px}
  .spark-b{right:24%;top:17%;font-size:13px}
  .ground-shadow{
    bottom:5%;
    width:58%;
    height:16px;
  }

  .stats-grid{
    margin-top:12px;
  }
}


/* ===== V0.4.2 Unified Icon System ===== */
.ui-icon{
  width:42px;height:42px;border-radius:14px;
  display:inline-grid;place-items:center;
  flex:0 0 auto;
  border:1px solid rgba(15,23,42,.05);
  box-shadow:0 8px 18px rgba(15,23,42,.05);
}
.ui-icon svg{
  width:22px;height:22px;
  fill:none;stroke:currentColor;stroke-width:1.8;
  stroke-linecap:round;stroke-linejoin:round;
}
.icon-blue{background:#eef5ff;color:#2563eb}
.icon-orange{background:#fff7ed;color:#f59e0b}
.icon-violet{background:#f5f3ff;color:#7c3aed}
.icon-cyan{background:#ecfeff;color:#0891b2}
.icon-red{background:#fff1f2;color:#dc2626}
.icon-green{background:#ecfdf5;color:#16a34a}

.project-ip-icon{
  width:46px;height:46px;object-fit:contain;
  border-radius:15px;padding:2px;
  background:linear-gradient(145deg,#f8fbff,#eef5ff);
  border:1px solid #dbe7f5;
  box-shadow:0 8px 18px rgba(37,99,235,.08);
}

.brand-line{
  display:flex;align-items:center;gap:7px;flex-wrap:wrap;
}
.brand-line span{
  display:inline-flex;align-items:center;gap:7px;
  margin-left:8px;
}
.brand-mini{
  width:24px;height:24px;object-fit:contain;
  vertical-align:middle;
}
.dawn-mini{
  width:26px;height:26px;
}

.tag{
  display:inline-flex;align-items:center;gap:6px;
}
.tag .ui-icon{
  width:22px;height:22px;border-radius:7px;
  box-shadow:none;border:0;
}
.tag .ui-icon svg{width:13px;height:13px}

.footer-brand{
  display:inline-flex;align-items:center;justify-content:center;gap:6px;flex-wrap:wrap;
}
.footer-brand img{
  width:18px;height:18px;object-fit:contain;
}

.project-top .ui-icon,
.project-top .project-ip-icon{
  width:44px;height:44px;
}

body.dark .ui-icon{
  border-color:rgba(255,255,255,.05);
}
body.dark .icon-blue{background:#132542}
body.dark .icon-orange{background:#2b2112}
body.dark .icon-violet{background:#241b3d}
body.dark .icon-cyan{background:#10282d}
body.dark .icon-red{background:#32181c}
body.dark .icon-green{background:#11281c}
body.dark .project-ip-icon{
  background:#f8fbff;
  border-color:#263955;
}

@media(max-width:620px){
  .ui-icon{width:38px;height:38px;border-radius:12px}
  .ui-icon svg{width:20px;height:20px}
  .project-top .ui-icon,
  .project-top .project-ip-icon{
    width:40px;height:40px;
  }
  .brand-mini{width:21px;height:21px}
  .dawn-mini{width:23px;height:23px}
}


/* ===== V0.4.3 Hero visual refinement ===== */
.hero-art-v043{
  position:relative;
  min-height:430px;
  display:grid;
  place-items:center;
  overflow:hidden;
  border-radius:26px;
}
.hero-scene{
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center 48%;
  border-radius:26px;
  box-shadow:0 18px 40px rgba(15,23,42,.10);
  border:1px solid rgba(15,23,42,.05);
}
.hero-art-v043 .tag{
  position:absolute;
  z-index:4;
  backdrop-filter:blur(8px);
  background:rgba(255,255,255,.88);
}
.hero-art-v043 .tag-tool{left:4%;top:18%}
.hero-art-v043 .tag-game{right:4%;top:54%}
.hero-art-v043 .tag-think{left:7%;bottom:10%}

/* hide legacy decorations if old rules still match descendants */
.hero-art-v043 .ring,
.hero-art-v043 .sunflower,
.hero-art-v043 .leaf,
.hero-art-v043 .spark,
.hero-art-v043 .ground-shadow,
.hero-art-v043 .dawn,
.hero-art-v043 .hero-logo{display:none!important}

/* homepage Dawn game quick entry */
.quick-game-card{
  margin-top:16px;
  display:grid;
  grid-template-columns:auto 1fr auto;
  align-items:center;
  gap:16px;
  padding:18px 20px;
  background:linear-gradient(135deg,#ffffff,#f7fbff);
  border:1px solid var(--line);
  border-radius:22px;
  box-shadow:0 10px 28px rgba(15,23,42,.05);
  cursor:pointer;
  transition:.2s ease;
}
.quick-game-card:hover{
  transform:translateY(-2px);
  box-shadow:0 16px 34px rgba(15,23,42,.08);
}
.quick-game-icon{
  width:58px;height:58px;border-radius:18px;
  display:grid;place-items:center;
  background:linear-gradient(145deg,#eef5ff,#fff7ed);
  color:#2563eb;
  border:1px solid #dce7f7;
}
.quick-game-icon svg{
  width:34px;height:34px;
  fill:none;stroke:currentColor;stroke-width:2.4;
  stroke-linecap:round;stroke-linejoin:round;
}
.quick-game-copy small{
  display:block;
  font-size:9px;
  letter-spacing:1.6px;
  font-weight:900;
  color:var(--blue);
}
.quick-game-copy strong{
  display:block;
  margin-top:3px;
  font-size:18px;
}
.quick-game-copy p{
  margin:5px 0 0;
  color:var(--muted);
  font-size:12px;
  line-height:1.6;
}
.quick-game-arrow{
  font-size:24px;
  color:var(--blue);
  font-weight:800;
}

body.dark .hero-art-v043 .tag{
  background:rgba(16,26,42,.88);
}
body.dark .quick-game-card{
  background:linear-gradient(135deg,#101a2a,#0e1726);
}
body.dark .quick-game-icon{
  background:linear-gradient(145deg,#132542,#2b2112);
  border-color:#263955;
}

@media(max-width:620px){
  .hero-art-v043{
    min-height:320px;
    margin-top:12px;
    border-radius:22px;
  }
  .hero-scene{
    border-radius:22px;
    object-position:center 46%;
  }
  .hero-art-v043 .tag-tool{left:4%;top:16%}
  .hero-art-v043 .tag-game{right:3%;top:56%}
  .hero-art-v043 .tag-think{left:5%;bottom:8%}

  .quick-game-card{
    margin-top:12px;
    padding:15px 16px;
    gap:12px;
    border-radius:18px;
  }
  .quick-game-icon{
    width:48px;height:48px;border-radius:15px;
  }
  .quick-game-icon svg{width:28px;height:28px}
  .quick-game-copy strong{font-size:16px}
  .quick-game-copy p{font-size:11px}
  .quick-game-arrow{font-size:20px}
}

/* Mobile First V1 — compact first screens, desktop layout preserved. */
@media (max-width:620px){
  .site{padding:10px 14px 18px}
  .topbar{gap:12px;padding:0 0 10px}
  .icon-btn,.theme-btn{width:44px;height:44px;flex-shrink:0}
  .page{min-width:0}
  #home.active{display:flex;flex-direction:column}
  #home .hero{order:0}
  #home .section-head{order:1}
  #home .projects{order:2}
  #home .stats-grid{order:3;margin-top:18px}
  .hero{padding:16px;gap:10px;min-height:0}
  .pill{padding:4px 9px;font-size:10px}
  .hero h2{font-size:24px;line-height:1.22;letter-spacing:-.7px;margin:10px 0 8px}
  .hero h2 em{margin-top:0}
  .lead{font-size:12px;line-height:1.6;margin:0}
  .brand-line{font-size:10px;line-height:1.6;margin:8px 0 0}
  .brand-line span{margin-left:3px}
  .brand-mini{width:17px;height:17px}
  .brand-mini.dawn-mini{width:19px;height:19px}
  .hero-actions{margin-top:10px;gap:8px}
  .btn{min-height:44px;padding:9px 13px;font-size:12px;border-radius:13px}
  .hero-art-v043{height:clamp(120px,20svh,170px);min-height:0;margin-top:0;border-radius:16px;overflow:hidden}
  .hero-scene{height:100%;object-fit:contain;border-radius:16px;background:#f8fbff}
  body.dark .hero-scene{background:#101a2a}
  .hero-art-v043 .tag{font-size:8px;padding:4px 6px;box-shadow:none}
  .hero-art-v043 .tag-tool{left:2%;top:12%}
  .hero-art-v043 .tag-game{right:2%;top:50%}
  .hero-art-v043 .tag-think{left:3%;bottom:8%}
  .section-head{margin:14px 0 10px;gap:8px}
  .section-head small{font-size:8px}
  .section-head h3{font-size:20px;margin:2px 0 0}
  .section-head button{min-height:44px;font-size:11px;padding:4px}
  #home .projects{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
  #home .project{padding:12px 10px;min-height:0;border-radius:17px}
  #home .project-top .ui-icon{width:30px;height:30px;border-radius:10px}
  #home .project-top .ui-icon svg{width:18px;height:18px}
  #home .project-top b{padding:3px 5px;font-size:8px}
  #home .project h4{font-size:13px;line-height:1.4;margin:10px 0 6px;letter-spacing:-.3px}
  #home .project p{font-size:10px;line-height:1.6}
  #home .chips{gap:4px;margin-top:8px}
  #home .chips span{font-size:8px;padding:3px 4px}
  .stats-grid{gap:8px}
  .stat{padding:12px;gap:8px;min-width:0}
  .stat-icon{width:30px;height:30px}
  .stat strong{font-size:17px}
  .stat .status,.stat .next{font-size:12px}
  .stat p{font-size:10px}
  .page-intro{padding:20px;margin-bottom:12px;border-radius:22px}
  .page-intro h2{font-size:28px;line-height:1.2;margin:5px 0 8px}
  .page-intro p{font-size:13px;line-height:1.65}
  .page:not(#home) .projects{grid-template-columns:minmax(0,1fr);gap:12px}
  .page:not(#home) .project{padding:18px;min-height:0;border-radius:21px}
  .page:not(#home) .project h4{font-size:19px;line-height:1.3;margin:12px 0 8px}
  .page:not(#home) .project p{font-size:13px;line-height:1.65}
  .about-card{padding:24px;gap:18px;border-radius:24px;margin-bottom:0}
  .about-card img{width:76px;height:76px;border-radius:20px}
  .about-card h2{font-size:26px;line-height:1.3;margin:8px 0 12px}
  .about-card p{font-size:14px;line-height:1.8}
  footer{padding:18px 0 2px;font-size:9px}
  .footer-brand{gap:4px;flex-wrap:wrap;justify-content:center}
}
@media(max-width:620px) and (max-height:740px){
  .hero{padding:14px;gap:8px}
  .hero-art-v043{height:120px}
  .hero h2{margin:8px 0 6px;font-size:23px}
  .hero-actions{margin-top:8px}
  #home .project{padding:10px 8px}
  #home .section-head{margin-top:10px;margin-bottom:6px}
}

/* Unified Hero: one outer surface, complete Dawn artwork. */
#home .hero{grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr)}
#home .hero-art-v043{
  min-width:0;min-height:0;height:430px;margin:0;
  border:0;border-radius:0;background:transparent;box-shadow:none;
  overflow:visible;
}
#home .hero-scene{
  display:block;width:100%;height:100%;object-fit:contain;object-position:center;
  border:0;border-radius:0;box-shadow:none;background:transparent;
  /* Fade only the empty outer margin into the shared Hero surface. */
  -webkit-mask-image:linear-gradient(to right,transparent,#000 5%,#000 95%,transparent),linear-gradient(to bottom,transparent,#000 5%,#000 95%,transparent);
  -webkit-mask-composite:source-in;
  mask-image:linear-gradient(to right,transparent,#000 5%,#000 95%,transparent),linear-gradient(to bottom,transparent,#000 5%,#000 95%,transparent);
  mask-composite:intersect;
}
#home .hero-art-v043 .tag{
  border:0;background:transparent;box-shadow:none;backdrop-filter:none;
  color:var(--muted);font-size:8px;font-weight:600;opacity:.65;padding:3px 5px;
}
#home .hero-art-v043 .tag .ui-icon{background:transparent;border:0}
#home .hero-art-v043 .tag-tool{left:0;top:8%}
#home .hero-art-v043 .tag-game{right:0;top:48%}
#home .hero-art-v043 .tag-think{left:0;bottom:5%}
@media(max-width:900px){
  #home .hero{grid-template-columns:minmax(0,1fr)}
  #home .hero-art-v043{height:350px}
}
@media(max-width:620px){
  #home .hero{gap:6px;padding:16px 16px 10px}
  #home .hero-copy{min-width:0}
  #home .hero-art-v043{height:clamp(180px,32svh,240px);margin:0;min-height:0}
  #home .hero-actions{flex-wrap:wrap}
  #home .hero-actions .btn{flex-shrink:0}
  #home .hero-art-v043 .tag{font-size:7px;opacity:.55}
  #home .hero-art-v043 .tag-tool{left:2%;top:12%}
  #home .hero-art-v043 .tag-game{right:2%;top:52%}
  #home .hero-art-v043 .tag-think{left:2%;bottom:8%}
}
@media(max-width:620px) and (max-height:740px){
  #home .hero{padding:14px 14px 8px;gap:4px}
  #home .hero-art-v043{height:180px}
}

/* V0.5.0 Hero composition — left copy / right Dawn on every screen. */
#home .hero{
  position:relative;grid-template-columns:minmax(0,58fr) minmax(0,42fr);
  align-items:center;gap:0;isolation:isolate;
}
#home .hero-copy{position:relative;z-index:2;min-width:0}
#home .hero-art-v043{position:relative;z-index:1;height:430px;width:100%;min-width:0}
@media(max-width:900px){
  #home .hero{grid-template-columns:minmax(0,58fr) minmax(0,42fr)}
  #home .hero-art-v043{height:390px}
}
@media(max-width:620px){
  #home .hero{
    height:auto;min-height:0;
    padding:18px 16px;gap:0;border-radius:24px;
    grid-template-columns:minmax(0,58fr) minmax(0,42fr);
    overflow:hidden;
    background:radial-gradient(ellipse at 91% 65%,rgba(245,158,11,.13),transparent 48%),linear-gradient(135deg,#fff,#f9fbff);
  }
  #home .hero-copy{align-self:center}
  #home .hero .pill{font-size:9px;padding:5px 8px;letter-spacing:0}
  #home .hero h2{font-size:24px;line-height:1.28;letter-spacing:-.7px;margin:14px 0 12px}
  #home .hero h2 br{display:none}
  #home .hero h2 em{display:block;margin-top:5px}
  #home .hero .lead{font-size:12px;line-height:1.7;margin:0;max-width:none}
  #home .hero .brand-line{font-size:10px;line-height:1.8;margin-top:14px}
  #home .hero .brand-line span{display:block;margin:4px 0 0}
  #home .hero-actions{flex-direction:column;align-items:flex-start;gap:8px;margin-top:18px}
  #home .hero-actions .btn{min-height:44px;max-width:100%;padding:10px 13px;font-size:12px;white-space:nowrap}
  #home .hero-art-v043{height:100%;align-self:stretch;margin:0;overflow:visible}
  #home .hero-scene{
    position:absolute;top:50%;right:-30px;transform:translateY(-50%);
    width:210px;height:210px;max-width:none;
    object-fit:contain;object-position:center;
  }
  body.dark #home .hero{background:radial-gradient(ellipse at 91% 65%,rgba(245,158,11,.1),transparent 48%),linear-gradient(135deg,#101a2a,#0e1726)}
}
@media(max-width:374px){
  #home .hero h2{font-size:22px}
  #home .hero-scene{width:190px;height:190px;right:-27px}
}

/* Final Hero polish: keep the keyword whole and actions on one row. */
#home .hero-title-word{white-space:nowrap;display:inline-block}
#home .hero-scene{transform:scale(1.05)}
@media(max-width:620px){
  #home .hero-actions{flex-direction:row;flex-wrap:nowrap;align-items:stretch;gap:6px}
  #home .hero-actions .btn{flex:1 1 0;min-width:0;padding:10px 6px;font-size:11px}
  #home .hero-actions .btn b{font-size:14px;margin-left:3px}
  #home .hero-scene{transform:translateY(-50%) scale(1.05)}
}

/* Orbit title: a single 1.3s entrance, then a subtle light breath. */
#home .hero h2.orbit-title{position:relative;display:flex;flex-direction:column;justify-content:center;gap:16px;height:210px;margin:14px 0 12px;letter-spacing:0;isolation:isolate}
#home .orbit-concepts{position:relative;display:flex;align-items:center;gap:18px;width:fit-content;max-width:100%;font-size:22px;line-height:1.4;font-weight:700}
#home .orbit-concepts::before{content:"";position:absolute;inset:-12px -9px;border:1px solid rgba(37,99,235,.1);border-radius:50%;transform:rotate(-7deg);background:linear-gradient(110deg,transparent,rgba(37,99,235,.035),transparent);z-index:-1;pointer-events:none;animation:orbit-light-in .7s ease-out both,orbit-light-breathe 7s ease-in-out 1.3s infinite}
#home .orbit-concepts>span{display:block;white-space:nowrap;animation:orbit-word-in .4s ease-out both}
#home .orbit-concepts>span:nth-child(1){animation-delay:.04s}
#home .orbit-concepts>span:nth-child(2){animation-delay:.22s}
#home .orbit-concepts>span:nth-child(3){animation-delay:.4s}
#home .orbit-here{display:block;font-size:30px;line-height:1.2;color:var(--text);animation:orbit-word-in .4s ease-out .62s both}
#home .orbit-grow{display:block;white-space:nowrap;font-size:clamp(34px,4.4vw,58px);line-height:1.18;letter-spacing:-1px;color:var(--blue);animation:orbit-grow-in .45s cubic-bezier(.2,.7,.2,1) .85s both}
@keyframes orbit-word-in{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:translateY(0)}}
@keyframes orbit-grow-in{from{opacity:0;transform:translateY(7px)}to{opacity:1;transform:translateY(0)}}
@keyframes orbit-light-in{from{opacity:0}to{opacity:1}}
@keyframes orbit-light-breathe{0%,100%{opacity:.7}50%{opacity:.9}}
@media(max-width:620px){
  #home .hero h2.orbit-title{height:180px;gap:18px;margin:14px 0 12px}
  #home .orbit-concepts{font-size:15px;gap:13px}
  #home .orbit-concepts::before{inset:-10px -6px}
  #home .orbit-here{font-size:23px}
  #home .orbit-grow{font-size:34px;letter-spacing:-.8px}
}
@media(prefers-reduced-motion:reduce){
  #home .orbit-concepts::before,#home .orbit-concepts>span,#home .orbit-here,#home .orbit-grow{animation:none;opacity:1;transform:none}
  #home .orbit-concepts::before{transform:rotate(-7deg)}
}

/* Unified Hero entrance: overlapping stages settle by 2.1 seconds. */
#home .hero h2.orbit-title{height:140px;gap:0;margin:12px 0 10px}
#home .orbit-here{margin-top:7px}
#home .orbit-grow{margin-top:6px}
#home .hero-lead>span{display:block;animation:hero-lead-in .6s ease-out .95s both}
#home .hero-lead>span+span{animation-delay:1.15s}
#home .hero .hero-brand .brand-half{display:inline-block;margin:0;animation:hero-brand-in .45s ease-out 1.4s both}
#home .hero .hero-brand .brand-half+span{margin-left:6px;animation-delay:1.55s}
#home .hero-actions{animation:hero-actions-in .3s ease-out 1.8s both}
@keyframes hero-lead-in{from{opacity:0;transform:translateY(3px)}to{opacity:1;transform:translateY(0)}}
@keyframes hero-brand-in{from{opacity:0;transform:translateX(-2px)}to{opacity:1;transform:translateX(0)}}
@keyframes hero-actions-in{from{opacity:0}to{opacity:1}}
@media(max-width:620px){
  #home .hero h2.orbit-title{height:140px;gap:0;margin:12px 0 10px}
  #home .hero .hero-brand .brand-half{display:block;margin:0}
  #home .hero .hero-brand .brand-half+span{margin:4px 0 0}
}
@media(prefers-reduced-motion:reduce){
  #home .hero-lead>span,#home .hero .hero-brand .brand-half,#home .hero-actions{animation:none;opacity:1;transform:none}
}

/* Release candidate polish: preserve all layout boxes and entrance timing. */
#home .hero .hero-lead{color:color-mix(in srgb,var(--muted) 88%,var(--card))}
#home .hero-brand .brand-mini{transform:scale(.9);transform-origin:center}

/* Eye-only overlay: no layout contribution or character movement. */
#home .dawn-blink{position:absolute;pointer-events:none;overflow:visible;opacity:0;z-index:1}
#home .dawn-blink.is-blinking{opacity:1}
#home .blink-lid{transform-box:fill-box;transform:scaleY(0)}
#home .blink-top{transform-origin:center top}
#home .blink-bottom{transform-origin:center bottom}
#home .is-blinking .blink-lid{animation:dawn-eye-close .16s ease-in-out both}
@keyframes dawn-eye-close{0%,100%{transform:scaleY(0)}45%,55%{transform:scaleY(1)}}
@media(prefers-reduced-motion:reduce){#home .dawn-blink{display:none!important}#home .blink-lid{animation:none!important}}

/* Floating story in the upper-right visual area; no document-flow height. */
#home .hero-chase{position:absolute;top:3px;right:6px;height:52px;width:calc(42% - 6px);overflow:hidden;pointer-events:none;opacity:1;isolation:isolate;z-index:3}
.hero-chase svg{display:block;width:100%;height:100%}
.hero-chase .chase-ground{position:absolute;inset:0;color:rgba(74,132,173,.36)}
.chase-sun{position:absolute;right:25%;top:3px;width:48px!important;height:29px!important;opacity:.9}
.chase-flower{position:absolute;bottom:9px;width:23px;height:34px;transform-origin:center bottom;animation:chase-flower-sway 9s ease-in-out infinite}
.flower-one{left:20%;width:20px;height:30px;animation-delay:1.5s}.flower-two{left:49%;animation-delay:0s}.flower-three{left:78%;width:17px;height:26px;animation-delay:-1.5s}
.chase-runner{position:absolute;bottom:7px;left:calc(100% + 80px);width:42px;height:34px;z-index:2;animation:chase-cross 9s linear infinite}
.chase-robot{width:48px;height:45px;animation-name:chase-follow}
.chase-bob{animation:chase-bob .3s ease-in-out infinite}.robot-bob{animation:chase-bob .4s ease-in-out infinite}
.chase-foot,.robot-leg{transform-box:fill-box;transform-origin:center;animation:chase-step .22s ease-in-out infinite alternate}.foot-b{animation-delay:-.22s}
.robot-leg{animation-duration:.3s}.robot-leg.foot-b{animation-delay:-.3s}
.robot-arm{transform-box:fill-box;transform-origin:right top;animation:chase-arm .4s ease-in-out infinite alternate}
.hamster-look{transform-box:fill-box;transform-origin:center;animation:chase-look 9s ease-in-out infinite}
.chase-morning{position:absolute;top:13px;right:14%;width:32%;height:40px;background:linear-gradient(110deg,transparent,rgba(255,196,80,.22),transparent);opacity:0;animation:chase-morning 9s ease-in-out infinite}
@keyframes chase-cross{0%{transform:translateX(0)}76%,100%{transform:translateX(calc(-100cqw - 162px))}}
@keyframes chase-follow{0%,4.5%{transform:translateX(0)}80.5%,100%{transform:translateX(calc(-100cqw - 162px))}}
@keyframes chase-bob{0%,100%{transform:translateY(0)}50%{transform:translateY(-1.5px)}}
@keyframes chase-step{from{transform:translateX(-2px) rotate(-9deg)}to{transform:translateX(2px) rotate(9deg)}}
@keyframes chase-arm{from{transform:rotate(-9deg)}to{transform:rotate(9deg)}}
@keyframes chase-look{0%,34%,45%,100%{transform:rotate(0)}38%,41%{transform:scaleX(-1) rotate(5deg)}}
@keyframes chase-flower-sway{0%,36%,52%,100%{transform:rotate(0)}41%{transform:rotate(-4deg)}46%{transform:rotate(3deg)}}
@keyframes chase-morning{0%,12%,35%,100%{opacity:0;transform:translateX(0)}23%{opacity:1;transform:translateX(-15px)}}
.hero-chase.is-paused *{animation-play-state:paused!important}
@media(prefers-reduced-motion:reduce){
 .hero-chase *{animation:none!important}
 .hero-chase .chase-hamster{left:40%}.hero-chase .chase-robot{left:58%}
 .hero-chase .chase-morning{display:none}
}

/* Crisp morning accents, confined to the decorative story. */
.hero-chase .chase-robot svg{filter:drop-shadow(0 1px 1px rgba(51,99,143,.13))}
.hero-chase .chase-robot ellipse[fill="#00c8ec"]{filter:drop-shadow(0 0 1px rgba(0,183,232,.32))}
.hero-chase .chase-runner::after{content:"";position:absolute;right:-10px;bottom:11px;width:8px;height:1px;background:rgba(79,145,187,.32);box-shadow:3px -4px 0 rgba(79,145,187,.2);border-radius:2px}
@media(prefers-reduced-motion:reduce){.hero-chase .chase-runner::after{display:none}}

/* Tools intro ornament: absolute, restricted to the empty title-row area. */
#tools .page-intro{position:relative;isolation:isolate}
#tools .engineering-network{position:absolute;right:20px;top:14px;width:clamp(140px,24vw,240px);height:78px;pointer-events:none;overflow:visible;z-index:-1}
#tools .engineering-links{stroke:rgba(56,151,202,.25);stroke-width:1}
#tools .engineering-flow{stroke:#49a9cc;stroke-width:1.2;stroke-dasharray:3 15;opacity:.5;animation:engineering-flow 5s linear infinite}
#tools .engineering-nodes{fill:#69b5d4;opacity:.65;animation:engineering-breathe 5.5s ease-in-out infinite}
#tools .engineering-icon{stroke:#408ac2;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;animation:engineering-float 5s ease-in-out infinite}
#tools .engineering-icon>circle{fill:var(--card);stroke:rgba(82,156,201,.16);stroke-width:1}
#tools .tool-ruler{stroke:#329eae;animation-delay:-1.2s}
#tools .tool-folder{animation-delay:-2.5s}
#tools .tool-wrench{stroke:#329eae;animation-delay:-3.7s}
@keyframes engineering-float{0%,100%{transform:translateY(0)}50%{transform:translateY(-3px)}}
@keyframes engineering-breathe{0%,100%{opacity:.5}50%{opacity:.8}}
@keyframes engineering-flow{to{stroke-dashoffset:-36}}
@media(max-width:620px){#tools .engineering-network{width:140px;height:62px;top:10px;right:16px}}
@media(prefers-reduced-motion:reduce){#tools .engineering-network *{animation:none!important}}

/* Tools ornament polish: 10% larger, with slightly clearer connections. */
#tools .engineering-network{transform:scale(1.1);transform-origin:right top}
#tools .engineering-links{stroke:rgba(56,151,202,.34)}
#tools .engineering-flow{opacity:.6}
#tools .engineering-nodes{fill:#4ea5ca}

/* Companion themes use the confirmed tools ornament dimensions and cadence. */
#games .page-intro,#thoughts .page-intro{position:relative;isolation:isolate}
#games{--theme-line:rgba(67,142,197,.34);--theme-blue:#408ac2;--theme-accent:#d99a35;--theme-node:#dba64b}
#thoughts{--theme-line:rgba(110,110,199,.34);--theme-blue:#5088bd;--theme-accent:#8a70c2;--theme-node:#8c86cc}
:is(#games,#thoughts) .theme-network{position:absolute;right:20px;top:14px;width:clamp(140px,24vw,240px);height:78px;pointer-events:none;overflow:visible;z-index:-1;transform:scale(1.1);transform-origin:right top}
:is(#games,#thoughts) .theme-links{stroke:var(--theme-line);stroke-width:1}
:is(#games,#thoughts) .theme-flow{stroke:var(--theme-accent);stroke-width:1.2;stroke-dasharray:3 15;opacity:.6;animation:engineering-flow 5s linear infinite}
:is(#games,#thoughts) .theme-nodes{fill:var(--theme-node);opacity:.65;animation:engineering-breathe 5.5s ease-in-out infinite}
:is(#games,#thoughts) .theme-icon{stroke:var(--theme-blue);stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;animation:engineering-float 5s ease-in-out infinite}
:is(#games,#thoughts) .theme-icon>circle{fill:var(--card);stroke:var(--theme-line);stroke-opacity:.47;stroke-width:1}
:is(#games,#thoughts) .theme-two{stroke:var(--theme-accent);animation-delay:-1.2s}
:is(#games,#thoughts) .theme-three{animation-delay:-2.5s}
:is(#games,#thoughts) .theme-four{stroke:var(--theme-accent);animation-delay:-3.7s}
#games .theme-two>g{animation:engineering-breathe 5s ease-in-out infinite}
#thoughts .theme-one>g{animation:engineering-breathe 5.5s ease-in-out infinite}
@media(max-width:620px){:is(#games,#thoughts) .theme-network{width:140px;height:62px;top:10px;right:16px}}
@media(prefers-reduced-motion:reduce){:is(#games,#thoughts) .theme-network *{animation:none!important}}

/* About is a compact brand page, independent of the feature intro template. */
#about .about-brand-hero{position:relative;padding:26px;border:1px solid var(--line);border-radius:26px;background:radial-gradient(ellipse at 92% 15%,rgba(245,183,61,.09),transparent 55%),var(--card);box-shadow:var(--shadow)}
#about .about-brand-hero>small{display:block;font-size:10px;letter-spacing:1.6px;font-weight:800;color:var(--blue)}
#about .about-brand-visual{display:flex;align-items:center;gap:10px;margin:18px 0 12px;width:fit-content}
#about .about-brand-visual img{width:48px;height:48px;object-fit:contain;border-radius:14px}
#about .about-brand-visual span{color:var(--muted);font-size:16px;font-weight:500}
#about .about-brand-hero h2{font-size:30px;line-height:1.3;margin:0 0 8px;letter-spacing:-.5px}
#about .about-signature{font-size:15px;line-height:1.6;font-weight:700;margin:0;color:var(--text)}
#about .about-position{font-size:13px;line-height:1.7;color:var(--muted);margin:12px 0 0}
#about .about-directions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:14px}
#about .about-direction{min-width:0;background:var(--card);border:1px solid var(--line);border-radius:20px;padding:18px}
#about .about-direction h3{font-size:15px;margin:12px 0 6px}
#about .about-direction p{font-size:12px;line-height:1.6;color:var(--muted);margin:0}
#about .about-brand-note{padding:16px 4px 0}
#about .about-brand-note p{font-size:12px;line-height:1.75;color:var(--muted);margin:0 0 4px;overflow-wrap:anywhere}
@media(max-width:620px){
 #about .about-brand-hero{padding:20px;border-radius:22px}
 #about .about-brand-visual{margin:14px 0 10px;gap:8px}
 #about .about-brand-visual img{width:42px;height:42px;border-radius:12px}
 #about .about-brand-hero h2{font-size:26px}
 #about .about-signature{font-size:13px}
 #about .about-position{font-size:12px;margin-top:10px}
 #about .about-directions{gap:8px;margin-top:12px}
 #about .about-direction{padding:12px 10px;border-radius:18px}
 #about .about-direction .ui-icon{width:32px;height:32px;border-radius:10px}
 #about .about-direction .ui-icon svg{width:19px;height:19px}
 #about .about-direction h3{font-size:14px;margin:9px 0 5px}
 #about .about-direction p{font-size:11px;line-height:1.6;min-height:35.2px}
 #about .about-brand-note{padding-top:14px}
 #about .about-brand-note p{font-size:11px}
}

/* Final About brand hierarchy; no changes to copy or direction-card structure. */
#about .about-brand-visual{gap:8px}
#about .about-brand-visual img{width:38px;height:38px;padding:3px;border:1px solid var(--line);border-radius:12px;background:var(--card);object-fit:contain;opacity:.92}
#about .about-brand-visual span{font-size:14px;color:var(--muted);opacity:.7}
#about .about-brand-note{width:100%;margin-top:14px;padding:14px 16px;border:1px solid var(--line);border-radius:18px;background:color-mix(in srgb,var(--card) 65%,var(--bg));}
#about .about-brand-note p{margin:0;font-size:12px;line-height:1.8;color:var(--muted)}
#about .about-brand-note p+p{margin-top:5px}
.site:has(#about.active)>footer{font-size:9px;color:color-mix(in srgb,var(--muted) 70%,var(--bg))}
.site:has(#about.active)>footer .footer-brand img{opacity:.7}
@media(max-width:620px){
 #about .about-brand-visual img{width:36px;height:36px;border-radius:11px}
 #about .about-brand-note{padding:12px 14px}
 #about .about-brand-note p{font-size:11px;line-height:1.8}
 .site:has(#about.active)>footer{font-size:8px}
}

/* V0.5.0 · Phase 1 baseline: shared finishing rules. */
:root{--surface-radius:26px;--card-radius:24px;--card-shadow:0 8px 24px rgba(15,23,42,.04)}
.page-intro,#about .about-brand-hero{border-radius:var(--surface-radius);border-color:var(--line);box-shadow:var(--shadow)}
:is(#tools,#games,#thoughts) .page-intro h2{line-height:1.2}
.project{border-radius:var(--card-radius);box-shadow:var(--card-shadow);min-width:0}
.project-top b,.chips span{display:inline-flex;align-items:center;justify-content:center;line-height:1.4;white-space:nowrap}
#thoughts .p-green{--accent:#2563eb}
#thoughts .icon-green{background:#eef5ff;color:#2563eb}
footer,.site:has(#about.active)>footer{font-size:9px;color:var(--muted)}
.footer-brand{gap:5px}
.footer-brand img{width:16px;height:16px;opacity:.75}
.site:has(#about.active)>footer .footer-brand img{opacity:.75}
body.dark .brand-line{color:var(--text)}
body.dark .icon-blue,body.dark #thoughts .icon-green{background:#132542;color:#79adff}
body.dark .icon-cyan{color:#59c9dc}
body.dark .icon-orange{color:#f4b957}
body.dark .icon-violet{color:#b29af4}
body.dark .icon-green{color:#73c791}
body.dark .icon-red{color:#ef8d99}
body.dark #home .hero-scene,body.dark #home .dawn-blink{filter:brightness(.82) saturate(.9)}
body.dark #tools .engineering-icon{stroke:#76afd9}
body.dark #tools .tool-ruler,body.dark #tools .tool-wrench{stroke:#68c2ce}
body.dark #games{--theme-blue:#76afd9;--theme-accent:#e5b663;--theme-line:rgba(110,170,216,.4)}
body.dark #thoughts{--theme-blue:#76afd9;--theme-accent:#b2a0dd;--theme-line:rgba(151,139,218,.4)}
#home .hero-chase{container-type:inline-size}
#home .chase-runner{left:calc(100% + 12px)}
#home .chase-robot{left:calc(100% + 52px)}
body.motion-paused *{animation-play-state:paused!important}
@media(max-width:620px){
 :root{--surface-radius:22px;--card-radius:21px}
 :is(#tools,#games,#thoughts) .page-intro p{min-height:42.9px}
 :is(#tools,#games,#thoughts) .project p{min-height:42.9px}
 #home .project h4{min-height:36.4px}
 #home .project p{min-height:32px}
 #home .project-top .ui-icon{width:32px;height:32px}
 footer,.site:has(#about.active)>footer{font-size:9px}
}
@media(prefers-reduced-motion:reduce){
 html{scroll-behavior:auto}
 *,*::before,*::after{animation:none!important;transition:none!important}
 #home .chase-hamster{left:12%;transform:none}
 #home .chase-robot{left:56%;transform:none}
}

/* Thought cards: native full-card navigation. */
#thoughts a.project{display:block;color:inherit;text-decoration:none;cursor:pointer;-webkit-tap-highlight-color:rgba(79,124,255,.18)}
#thoughts a.project::after{pointer-events:none}
#thoughts a.project:focus-visible{outline:3px solid var(--blue);outline-offset:3px}
#thoughts a.project:active{box-shadow:inset 0 0 0 2px var(--accent),var(--card-shadow)}
body.dark #thoughts a.project:focus-visible{outline-color:#9dbfff}
