:root{
    --bg:#000; --ink:#fff; --mute:#9aa0a6; --hair:rgba(255,255,255,.16);
    --pad:clamp(20px,4vw,72px);
  }
body > nav{position:fixed;top:0;left:0;right:0;z-index:20;display:flex;align-items:center;
      justify-content:space-between;padding:18px clamp(16px,2.2vw,36px);
      background:linear-gradient(180deg,rgba(0,0,0,.92),rgba(0,0,0,0))}
/* WORDMARK (owner, 2026-11-08: "I WANT TRINH TO LOOK LIKE SPACEX LOGO"; 2026-11-09 correction:
     "THAT DOES NOT LOOK LIKE SPACEX FONT"). Archivo Black was the wrong face: it is a grotesque,
     not the wide geometric uppercase SpaceX sets its mark in. The letters are now outlines taken
     from Nasalization (the standard geometric SpaceX lookalike), converted to SVG paths here so
     the mark is fixed artwork: no webfont download, no FOUT, and no font file ever shipped.
     Same construction as SpaceX's own mark: uniform geometric caps plus one tapered launch
     stroke that leaves the last letter and sweeps up past the cap line. */
  .mark{position:relative;display:inline-flex;align-items:center;gap:0;
        line-height:1;padding-right:0;white-space:nowrap}
.mark svg.wm{display:block;height:11px;width:auto;fill:#fff;
               stroke:#fff;stroke-width:40;stroke-linejoin:miter;paint-order:stroke fill}
.mark svg.tail{position:absolute;left:100%;top:-16px;width:86px;height:34px;
                 margin-left:-5px;overflow:visible;pointer-events:none}
.mark svg.tail path{fill:#fff}
body > nav ul{display:flex;gap:26px;list-style:none}
body > nav a{font-size:11px;letter-spacing:.22em;text-transform:uppercase;color:var(--mute)}
body > nav a:hover{color:#fff}
/* STATUS RAIL — the first screen has to answer "what is he doing right now" before anyone scrolls.
     Four live facts, a pulsing dot, and the same hairline language as the rest of the page. */
  /* On a short desktop window the hero must still fit without clipping the kicker under the nav. */
  @media (min-width:901px) and (max-height:820px){
    h1{font-size:clamp(30px,6.2vw,74px)}
    .hero{padding-bottom:clamp(24px,4vh,48px)}
    .status{margin-top:24px;padding-top:14px}
  }
/* Back-to-top — appears after the first screen, returns to the hero in one press. */
  .to-top{position:fixed;right:24px;bottom:24px;z-index:35;width:46px;height:46px;border-radius:50%;
    display:flex;align-items:center;justify-content:center;background:#000;color:#fff;
    border:1px solid rgba(255,255,255,.28);cursor:pointer;opacity:0;visibility:hidden;
    transform:translateY(8px);transition:opacity .2s,transform .2s,visibility .2s,border-color .2s}
.to-top.show{opacity:1;visibility:visible;transform:none}
.to-top:hover{border-color:#fff}
.to-top svg{width:18px;height:18px;stroke:currentColor;stroke-width:1.6;fill:none}
@media (max-width:900px){
  .to-top{right:16px;bottom:16px;width:42px;height:42px}
}
/* NOTES PANEL — the index renders inside the page; no navigation, so there is nothing to go Back from. */
  .navlink{background:none;border:0;padding:0;font:inherit;font-size:11px;letter-spacing:.22em;
    text-transform:uppercase;color:var(--mute);cursor:pointer}
.navlink:hover{color:#fff}
/* MENU — one button on small screens instead of a row of links that never fits. */
  .menu-btn{display:none;background:none;border:1px solid rgba(255,255,255,.25);width:40px;height:34px;
    padding:0;cursor:pointer;flex-direction:column;align-items:center;justify-content:center;gap:4px}
.menu-btn span{display:block;width:16px;height:1.5px;background:#fff}
.menu-btn:hover{border-color:#fff}
@media (max-width:900px){
  nav:not(.rail) ul{display:none}
  .menu-btn{display:flex}
}
/* SIDEBAR — every section and page in one rail, icons on narrow desktops, drawer on phones. */
  .side{background:#000;
    border-right:1px solid var(--hair);display:flex;flex-direction:column;gap:6px;
    overflow-y:auto;transition:transform .22s ease}
.side-home{display:none}
.side-nav{display:flex;flex-direction:column;gap:2px;padding:0 10px}
/* owner 2026-11-09: "increase the tabs brightness by 30%" — #9aa0a6 x1.3 = #c8d0d8. */
  .side-body > nav a{display:flex;align-items:center;gap:12px;padding:11px 12px;text-decoration:none;color:#c8d0d8;
    font-size:11px;letter-spacing:.2em;text-transform:uppercase;border-radius:2px;transition:color .15s,background .15s}
.side-nav a:hover,.side-nav a:focus-visible{color:#fff;background:rgba(255,255,255,.05)}
.side-nav .ico{display:flex;width:18px;height:18px;flex:0 0 18px}
.side-nav .ico svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.4;
    stroke-linecap:round;stroke-linejoin:round}
.side-scrim{position:fixed;inset:0;background:rgba(0,0,0,.6);z-index:25}
@media (min-width:1101px){
  nav{left:236px}
  nav:not(.rail) ul{display:none !important}
  .menu-btn{display:none !important}
}
@media (min-width:901px) and (max-width:1100px){
  .side{width:72px;padding-top:76px}
  .side-body > nav a{justify-content:center;padding:12px 0}
  .side-nav .lbl{display:none}
  nav{left:72px}
  nav:not(.rail) ul{display:none !important}
  .menu-btn{display:none !important}
}
  .to-top{bottom:80px;right:64px}
}
.side-brand-mark{padding:10px 0 26px 20px;display:inline-flex;width:fit-content}
.side-brand-mark svg.wm{height:12px}
.side-brand-mark svg.tail{width:86px;height:34px;top:-16px;margin-left:-5px}
@media (min-width:901px){
  nav .mark{display:none}
  .side{padding-top:18px}
  .side-home{display:none}
}
.side-mark{display:none;width:34px;height:34px;margin:4px auto 18px;border-radius:7px}
@media (min-width:901px) and (max-width:1100px){
  .side{overflow:hidden}
  .side-brand-mark{display:none}
  .side-mark{display:block}
  .side-nav{gap:0}
  .side-body > nav a{padding:10px 0}
}
@media (max-width:900px){
  body > nav ul{gap:16px}
}
@media (max-width:520px){
  body > nav ul{gap:13px}
  nav ul li:nth-child(-n+5){display:none}
  /* The whisk ran across the nav links on a phone, and the hero's bottom-anchored layout pushed the
       kicker under the fixed header when browser chrome shortened the viewport. */
    .mark svg.tail{display:block;width:52px;height:20px;top:-9px;margin-left:-3px}
}

/* Pages that keep their own main (notes, services) need clearance for the fixed header. */
main{padding-top:96px}
@media (max-width:900px){main{padding-top:84px}}

/* Base row style for the sidebar links (lost in extraction; kept here explicitly). */
.side-nav a{display:flex;align-items:center;gap:12px;padding:11px 12px;text-decoration:none;
  color:#c8d0d8;font-size:11px;letter-spacing:.2em;text-transform:uppercase;border-radius:2px;
  transition:color .15s,background .15s}
.side-nav a:hover,.side-nav a:focus-visible{color:#fff;background:rgba(255,255,255,.05)}

/* Page offsets for the rail (lost in the first extraction). */
@media (min-width:1101px){body > nav{left:236px}}
@media (min-width:901px) and (max-width:1100px){body > nav{left:72px}}

/* Active state for the current tab. */
.side-nav a.on{color:#fff;background:rgba(255,255,255,.07)}
.side-nav a.on::before{content:"";position:absolute;left:0;width:2px;height:18px;background:#fff}
.side-nav a{position:relative}

/* ===== RAIL â€” original design (AI-PM directive 2026-11-17) =====
   Desktop: full-height flush-left panel, 232px, square corners, TRINH at top,
   icon + uppercase label per item. Mobile: icon-only rail on the right with tooltip. */

.layout{display:flex;align-items:flex-start;gap:0;max-width:100%}
.layout > *:not(.side){flex:1 1 auto;min-width:0}

aside.side{background:#0a0a0a;display:flex;flex-direction:column;gap:0;
  overflow-y:auto;transition:none;z-index:40}
aside.side .side-nav{display:flex;flex-direction:column;gap:0;padding:0;width:100%}
aside.side a.railitem{position:relative;display:flex;align-items:center;gap:14px;
  height:44px;padding:0 20px;width:100%;box-sizing:border-box;
  color:#b8b8b8;text-decoration:none;border-radius:0}
aside.side a.railitem:hover{background:#111;color:#fff}
aside.side a.railitem.active,aside.side a.railitem.on{background:#141414;color:#fff}
aside.side a.railitem .ico{display:flex;width:18px;height:18px;flex:0 0 18px}
aside.side a.railitem .ico svg{width:18px;height:18px;fill:none;stroke:currentColor;
  stroke-width:1.4;stroke-linecap:round;stroke-linejoin:round}
aside.side a.railitem .txt{font-size:12px;letter-spacing:.08em;text-transform:uppercase;
  white-space:nowrap;line-height:1}

@media (min-width:901px){
  body{padding-left:232px}
  aside.side{
    position:fixed;top:0;left:0;bottom:0;right:auto;
    width:232px;height:100vh;min-height:100vh;
    transform:none;order:0;
    display:flex;flex-direction:column;align-items:stretch;gap:0;
    background:#0a0a0a;border-right:1px solid #1a1a1a;
    border-radius:0;padding:0 0 24px 0;overflow-y:auto;z-index:40;
  }
  aside.side .railbrand{
    display:block;padding:28px 20px 32px;font-size:20px;font-weight:700;
    letter-spacing:.18em;color:#fff;text-decoration:none;
  }
  aside.side a.railitem::after{content:none}
}

@media (max-width:900px){
  body{padding-left:0;padding-right:52px}
  aside.side{position:fixed;top:50%;left:auto;right:0;bottom:auto;
    transform:translateY(-50%);width:44px;height:auto;
    border-radius:10px 0 0 10px;border-right:0;padding:8px 0;z-index:60;
    background:#111;border-left:1px solid var(--hair);overflow:visible}
  aside.side .railbrand{display:none}
  aside.side .side-nav{align-items:center;gap:2px}
  aside.side a.railitem{width:36px;height:36px;padding:0;justify-content:center;gap:0}
  aside.side a.railitem .txt{display:none}
  aside.side a.railitem::after{
    content:attr(data-label);
    position:absolute;right:calc(100% + 10px);top:50%;transform:translateY(-50%);
    white-space:nowrap;opacity:0;visibility:hidden;
    background:#111;color:#fff;padding:5px 9px;border-radius:6px;
    font-size:12px;line-height:1;z-index:70;
    transition:opacity .12s ease,visibility .12s ease;
  }
  aside.side a.railitem:hover::after,aside.side a.railitem:focus-visible::after{opacity:1;visibility:visible}
}
@media print{ aside.side{display:none} }
