body{padding-top:64px!important}.case-shell{position:fixed;inset:0 0 auto;z-index:1000;height:64px;padding:0 28px;display:flex;align-items:center;gap:30px;background:#202b26f5;border-bottom:1px solid #c1cdb22b;color:#e5e6d8;font:12px 'Segoe UI','Microsoft YaHei',sans-serif;backdrop-filter:blur(18px)}.case-shell a{color:inherit;text-decoration:none;white-space:nowrap}.case-shell .case-home{font-size:12px;letter-spacing:1px}.case-shell nav{position:static;display:flex;gap:8px;align-items:center;margin:0 auto;padding:0;max-width:none;font:12px 'Segoe UI','Microsoft YaHei',sans-serif;letter-spacing:0;overflow:auto}.case-shell nav a{padding:10px 15px;color:#94a58f}.case-shell nav a:hover,.case-shell nav a[aria-current]{color:#f1e6c9;background:#ffffff0b}.case-shell .case-list{font-size:10px;color:#a8b298}.case-shell a:focus-visible{outline:2px solid #b7976c;outline-offset:3px}.site-header{top:64px!important}html{scroll-padding-top:135px}@media(max-width:650px){body{padding-top:102px!important}.case-shell{height:102px;flex-wrap:wrap;gap:0;padding:10px 16px}.case-shell nav{order:3;width:100%;margin-top:7px;gap:0}.case-shell nav a{font-size:10px;padding:9px 12px}.case-shell .case-list{margin-left:auto}.site-header{top:102px!important}}@media print{.case-shell{display:none}body{padding-top:0!important}}
/* Shared project introduction */
.case-overview{max-width:1440px;margin:0 auto;padding:56px 44px 48px;display:grid;grid-template-columns:.85fr 1.15fr;gap:44px;background:#e9e7dc;color:#29382e;font-family:'Segoe UI','Microsoft YaHei',sans-serif;position:relative;border:0}.case-overview *{box-sizing:border-box}.case-eyebrow{font-size:9px;letter-spacing:2px;color:#7d816d}.case-overview h1{font-size:clamp(34px,4vw,58px);line-height:1.15;letter-spacing:-1px;font-weight:400;margin:20px 0;color:#29382e}.case-overview .case-premise{font-size:17px;line-height:1.7;color:#59654f;max-width:390px;margin:0 0 25px}.case-overview dl{margin:0}.case-overview dl>div{padding:13px 0;border-top:1px solid #53674828}.case-overview dt{font-size:10px;letter-spacing:1px;color:#898a71;margin-bottom:6px}.case-overview dd{margin:0;font-size:12px;line-height:1.8;color:#58664f}.case-actions{display:flex;gap:18px;flex-wrap:wrap;margin-top:23px}.case-actions a{font-size:11px;color:#334a36;text-decoration:none;border-bottom:1px solid #8a9979;padding-bottom:7px}.case-overview .case-demo{margin:0;align-self:center;min-width:0}.case-demo video,.case-demo>img{display:block;width:100%;aspect-ratio:16/9;max-height:420px;object-fit:contain;background:#17231d;border:0}.case-demo figcaption{padding:15px 0 0;font-size:11px;color:#69765d;line-height:1.7;margin:0}.case-demo figcaption strong{font-size:11px;font-weight:500;color:#3a4d33;display:block}.case-demo figcaption span{display:block;margin-top:5px}.case-demo figcaption a{display:inline-block;font-size:10px;color:#6c7659;margin-top:9px}.case-overview a:focus-visible{outline:2px solid #927350;outline-offset:4px}#case-content,#project-demo{scroll-margin-top:125px}@media(max-width:800px){.case-overview{padding:32px 22px;grid-template-columns:1fr;gap:28px}.case-overview h1{font-size:38px}.case-overview .case-premise{font-size:15px}.case-demo video,.case-demo>img{max-height:none}}
/* Match the editorial portfolio navigation while retaining each project's visual identity. */
.case-shell{background:#f0eee7f5;color:#29332f;border-bottom-color:#29332f25}.case-shell nav a{color:#6f796b}.case-shell nav a:hover,.case-shell nav a[aria-current]{color:#866342;background:#b3936b14}.case-shell .case-list{color:#6e7969}.case-overview{background:#f0eee7}.case-overview h1{font-weight:400}.case-overview .case-eyebrow{letter-spacing:2px}

@media screen {
  .case-shell[data-project="brainrot"] { --bar:#292435; --ink:#e8e0ee; --accent:#f4cf83; --tint:#403748; }
  .case-shell[data-project="fps"] { --bar:#0c1824; --ink:#d4e5ed; --accent:#50e7f5; --tint:#16303c; }
  .case-shell[data-project="burger"] { --bar:#fff6e7; --ink:#634838; --accent:#873616; --tint:#f5e5cf; }
  .case-shell[data-project="labsaver"] { --bar:#eeefe5; --ink:#475a49; --accent:#23573e; --tint:#dce5d6; }
  .case-shell[data-project="grammar-cards"] { --bar:#eef1f8; --ink:#1c2434; --accent:#3b5bdb; --tint:#dce4fb; }
  html body .case-shell[data-project] {
    box-sizing:border-box; display:grid; grid-template-columns:1fr auto 1fr;
    align-items:center; gap:12px; background:var(--bar); color:var(--ink);
    border-bottom:1px solid color-mix(in srgb,var(--ink) 22%,transparent);
  }
  .case-shell[data-project] .case-home { justify-self:start; }
  .case-shell[data-project] .case-list { justify-self:end; color:var(--ink); }
  html body .case-shell[data-project] nav { flex-wrap:nowrap; margin:0; width:auto; }
  .case-shell[data-project] nav a { color:var(--ink); }
  .case-shell[data-project] nav a:is(:hover,[aria-current="page"]) { color:var(--accent); background:var(--tint); }
  .case-shell[data-project] nav a[aria-current="page"] { box-shadow:inset 0 -2px var(--accent); }
  .case-shell[data-project] a:focus-visible { outline:2px solid var(--accent); outline-offset:-2px; }
}
@media screen and (max-width:760px) {
  body:has(.case-shell[data-project]) { padding-top:102px!important; }
  html body .case-shell[data-project] { height:102px; padding:8px 12px; grid-template-columns:1fr 1fr; grid-template-rows:32px 1fr; gap:0; }
  .case-shell[data-project] .case-list { grid-column:2; grid-row:1; }
  html body .case-shell[data-project] nav { grid-column:1/-1; grid-row:2; display:grid; grid-template-columns:auto minmax(0,1fr) auto auto; align-items:stretch; gap:0; }
  .case-shell[data-project] nav a { display:grid; place-items:center; text-align:center; white-space:normal; font-size:11px; line-height:1.2; padding:7px clamp(4px,1.5vw,12px); }
  body:has(.case-shell[data-project]) .site-header { top:102px!important; }
}

@media screen {
  .case-shell[data-project="fps"] nav a { font-family:Consolas,monospace; }
  .case-shell[data-project="fps"] nav a[aria-current] { background:#102733; box-shadow:inset 2px 0 #50e7f5,inset 0 -1px #50e7f5; }
  .case-shell[data-project="brainrot"] nav a[aria-current] { background:transparent; box-shadow:inset 0 -1px #f4cf83; }
  .case-shell[data-project="burger"] nav a[aria-current] { border-radius:20px; background:#833e2e; color:#fff5df; box-shadow:none; }
  .case-shell[data-project="labsaver"] nav a[aria-current] { background:#254e3b; color:#f4f2dc; box-shadow:none; }
}

@media screen {
  .case-shell[data-project] .case-home {
    display:inline-flex;
    align-items:center;
    align-self:stretch;
    padding-inline:10px;
    margin-inline-start:-10px;
    cursor:pointer;
  }
  .case-shell[data-project] .case-home:is(:hover,:focus-visible) {
    color:var(--accent);
    text-decoration:underline;
    text-underline-offset:4px;
  }
}
