/* Dark "Nebula Globe" look: a full-screen hero (color nebula, a rotating
   globe of characters, the name in particles), then the tabs on a sheet of
   black glass that slides up over it. */
:root {
  color-scheme: dark;
  --bg: #08090a;
  --s1: #101113;
  --s2: #16171a;
  --rule: #23252a;
  --rule-2: #34343a;
  --text: #f7f8f8;
  --body: #d0d6e0;
  --muted: #8a8f98;
  --link: #a5b4fc;
  --link-bg: rgba(165, 180, 252, .1);
  --panel: #101113;
  --warn: #fbbf24;
  --grad: linear-gradient(120deg, #6d8bff, #a78bfa 45%, #f472b6 75%, #fb923c);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 6.5rem; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--body);
  font: 17px/1.65 Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  letter-spacing: -.011em;
  overflow-x: hidden;
}
a { color: var(--link); }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid #fff; outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }

/* ---------- Hero ---------- */
.hero {
  position: sticky; top: 0; z-index: 0;
  height: 100vh; height: 100svh; min-height: 560px;
  display: grid; place-items: center; text-align: center;
  overflow: hidden; color: #fff; background: #07071a;
}
.hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero .neb { filter: saturate(1.25); }
.hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(8,9,10,.15), rgba(8,9,10,.05) 40%, rgba(8,9,10,.85)); }
.hero .id { position: relative; z-index: 2; padding: 0 20px; width: 100%; max-width: 1200px; }
.hero-links { position: absolute; top: 18px; right: 20px; z-index: 3; }
.hero-links .links { justify-content: flex-end; }
.hero-links .btn { min-height: 0; padding: 6px 12px; font-size: 13px; font-weight: 500; border-radius: 999px; background: rgba(30,28,60,.45); border: 1px solid rgba(255,255,255,.22); color: #fff; }
.hero-links .btn:hover { background: rgba(255,255,255,.16); color: #fff; }
.hero-links .btn::after { content: none; }

.pilltop { display: flex; width: fit-content; margin-inline: auto !important; gap: 8px; align-items: center; margin: 0; font-size: 13px; padding: 6px 12px; border-radius: 999px; background: rgba(30,28,60,.45); border: 1px solid rgba(255,255,255,.28); }
.pilltop i { width: 7px; height: 7px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 10px #4ade80; flex: none; }

.name { margin: 14px 0 8px; font: 600 clamp(48px, 9.5vw, 132px)/1 Inter, sans-serif; letter-spacing: -.055em; }
.name-btn { display: inline-block; color: #fff; padding: 0 .05em; text-shadow: 0 2px 40px rgba(31,85,241,.35); }
.swarm-on .name-btn { color: transparent; text-shadow: none; }
.tagline { font-size: 19px; margin: 0; opacity: .92; }

/* Tabs: a frosted pill bar, with the project sub-tabs as a second row */
.tabs { display: inline-flex; flex-direction: column; align-items: center; gap: 8px; margin-top: 28px; }
.tabrow, .subrow { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 4px; padding: 5px; border-radius: 999px; background: rgba(30,28,60,.45); border: 1px solid rgba(255,255,255,.28); box-shadow: 0 10px 30px rgba(10,10,40,.25); }
.subrow { background: rgba(20,20,40,.4); border-color: rgba(255,255,255,.16); }
.tabs a { color: #fff; text-decoration: none; font-size: 15px; padding: 8px 16px; border-radius: 999px; transition: background .2s, color .2s; }
.subrow a { font-size: 14px; padding: 6px 14px; color: rgba(255,255,255,.82); }
.tabs a:hover { background: rgba(255,255,255,.14); }
.tabs a[aria-current="page"], .tabs .parent.has-active { background: #fff; color: #08090a; }
.subrow a[aria-current="page"] { background: rgba(255,255,255,.9); }

.hint { position: absolute; bottom: 84px; left: 50%; transform: translateX(-50%); z-index: 2; margin: 0; font-size: 12px; color: rgba(255,255,255,.6); white-space: nowrap; }
.scroll { position: absolute; bottom: 48px; left: 50%; transform: translateX(-50%); z-index: 2; font: 12px Inter, sans-serif; color: rgba(255,255,255,.8); background: none; border: 0; padding: 6px 10px; cursor: pointer; animation: bob 2.4s ease-in-out infinite; }
@keyframes bob { 50% { transform: translate(-50%, 6px); } }

/* The bar that stays on top once the hero is gone */
.bar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 30;
  display: flex; align-items: center; justify-content: center; gap: 14px; padding: 10px 16px;
  background: rgba(8,9,10,.82); border-bottom: 1px solid var(--rule);
  transform: translateY(-110%); visibility: hidden; transition: transform .35s cubic-bezier(.2,.8,.2,1), visibility 0s .35s;
}
@supports (backdrop-filter: blur(1px)) { .bar { background: rgba(8,9,10,.6); backdrop-filter: blur(16px) saturate(1.4); } }
.bar.on { transform: none; visibility: visible; transition: transform .35s cubic-bezier(.2,.8,.2,1); }
.bar .lm { font: 600 14px Inter, sans-serif; color: #fff; background: none; border: 0; cursor: pointer; padding: 6px; letter-spacing: .02em; }
.bar .tabs { flex-direction: row; margin: 0; flex-wrap: wrap; justify-content: center; }
.bar .tabrow, .bar .subrow { background: transparent; border-color: var(--rule); box-shadow: none; padding: 3px; }
.bar .tabs a { font-size: 14px; padding: 5px 12px; }
.bar .subrow a { font-size: 13px; padding: 4px 10px; }

/* ---------- Sheet with the tabs' content ---------- */
.sheet {
  position: relative; z-index: 2; background: var(--bg);
  border-radius: 28px 28px 0 0; margin-top: -28px; border-top: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 -30px 80px rgba(0,0,0,.6); padding: 40px 20px 40px;
}
main { max-width: 44rem; margin: 0 auto; min-width: 0; }
.panel:focus { outline: none; }
.panel { animation: rise .5s cubic-bezier(.2,.7,.2,1); }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }
@media (prefers-reduced-motion: reduce) { .panel, .scroll { animation: none; } }

section { padding: 1.5rem 0 .5rem; }
section + section { border-top: 1px solid var(--rule); margin-top: 2rem; padding-top: 2.5rem; }
h2 { font: 600 clamp(28px, 4vw, 36px)/1.15 Inter, sans-serif; letter-spacing: -.04em; color: var(--text); margin: 2.5rem 0 1rem; text-wrap: balance; }
section > h2:first-child { margin-top: 0; }
h3 { font: 600 19px/1.3 Inter, sans-serif; letter-spacing: -.02em; color: var(--text); margin: 2rem 0 .5rem; }
p, ul, ol { margin: 0 0 1rem; }
ul, ol { padding-left: 1.3rem; }
li { margin-bottom: .35rem; }
strong, b { color: var(--text); }
.pitch { font-size: 1.2rem; color: var(--text); }
.note {
  position: relative; margin: 0 0 1.5rem; padding: .85rem 1rem .85rem 2.6rem;
  border: 1px solid rgba(251,191,36,.35); background: rgba(251,191,36,.08); border-radius: 12px;
  color: #fde68a; font-size: .95rem; line-height: 1.55;
}
.note::before { content: "!"; position: absolute; left: 1rem; top: .95rem; width: 1.1rem; height: 1.1rem; border-radius: 50%; background: var(--warn); color: #08090a; font: 700 .75rem/1.1rem Inter, sans-serif; text-align: center; }
.callout { background: var(--s1); border: 1px solid var(--rule); border-radius: 16px; padding: 1.1rem 1.25rem; margin: 1.25rem 0; }
.callout p:last-child { margin-bottom: 0; }
.callout .links { margin-bottom: .75rem; }

.links { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .6rem; }
.links li { margin: 0; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: .5rem 1rem;
  border: 1px solid var(--rule-2); border-radius: 999px; background: var(--s1);
  color: var(--text); font-weight: 500; font-size: .95rem; text-decoration: none; transition: background .2s, border-color .2s;
}
.btn::after { content: "\2197"; margin-left: .4rem; opacity: .7; }
.btn:hover { background: var(--s2); border-color: #4a4b52; }
.btn.mailto::after { content: none; }

.inpage ul { list-style: none; padding: 0; margin: 0 0 1.25rem; display: flex; flex-wrap: wrap; gap: .4rem; }
.inpage li { margin: 0; }
.inpage a { display: inline-block; font-size: 14px; color: var(--body); text-decoration: none; padding: 4px 12px; border: 1px solid var(--rule); border-radius: 999px; }
.inpage a:hover { color: #fff; border-color: var(--rule-2); }

/* Media */
video { width: 100%; height: auto; display: block; border: 1px solid var(--rule); border-radius: 16px; background: #000; }
figure { margin: 1.25rem 0; }
figcaption { font-size: .9rem; color: var(--muted); margin-top: .4rem; }
.shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 1rem; margin: 1.25rem 0; }
.shots figure { margin: 0; }
.shots img { width: 100%; height: auto; display: block; border: 1px solid var(--rule); border-radius: 12px; }

/* Live stats */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); gap: 12px; margin: 1rem 0 .75rem; }
.stat { background: var(--s1); border: 1px solid var(--rule); border-radius: 16px; padding: 16px 18px; transition: transform .3s, border-color .3s, box-shadow .3s; }
.stat:hover { transform: translateY(-3px); border-color: var(--rule-2); box-shadow: 0 20px 40px -12px rgba(128,82,255,.3); }
.stat b { display: block; font: 600 34px/1.1 Inter, sans-serif; letter-spacing: -.045em; font-variant-numeric: tabular-nums; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { display: block; margin-top: 6px; font-size: 13px; color: var(--muted); line-height: 1.45; }
.stat-wide { grid-column: 1 / -1; }
.stat-wide b { font-size: 48px; }
.stat-text b { font-size: 17px; padding: .5rem 0 .3rem; background: none; color: var(--text); }
.stamp { font-size: 13px; color: var(--muted); margin: 0 0 1.25rem; font-family: "JetBrains Mono", ui-monospace, monospace; letter-spacing: 0; }
table.daily { border-collapse: collapse; margin: .5rem 0 .75rem; font-size: .95rem; font-variant-numeric: tabular-nums; }
table.daily th, table.daily td { border-bottom: 1px solid var(--rule); padding: .35rem 1.5rem .35rem 0; text-align: left; }
table.daily th { color: var(--muted); font-weight: 500; }
table.daily td:last-child, table.daily th:last-child { text-align: right; padding-right: 0; }

details { border-top: 1px solid var(--rule); padding: .75rem 0; }
details:last-of-type { border-bottom: 1px solid var(--rule); }
summary { cursor: pointer; font-weight: 600; color: var(--text); }
details p { margin: .6rem 0 0; }
code { background: var(--s2); border: 1px solid var(--rule); border-radius: 6px; padding: .05em .4em; font: .88em "JetBrains Mono", ui-monospace, monospace; letter-spacing: 0; color: var(--text); word-break: break-all; }

footer { position: relative; z-index: 2; background: var(--bg); padding: 2rem 20px 4rem; text-align: center; }

/* ---------- Phones ---------- */
@media (max-width: 700px) {
  body { font-size: 16px; }
  .name { font-size: 17vw; line-height: 1; }
  .hint { display: none; }
  .hero-links { left: 12px; right: 12px; top: 12px; }
  .hero-links .links { justify-content: center; }
  .tabs { margin-top: 22px; }
  .bar { gap: 6px; padding: 8px 8px; }
  .bar .lm { display: none; }
  .bar .tabs a { padding: 4px 10px; }
  .sheet { padding: 32px 16px 32px; }
  .stat-wide b { font-size: 40px; }
}
