:root{
  --bg:#070a12;
  --text: rgba(255,255,255,.92);
  --muted: rgba(255,255,255,.64);
  --line: rgba(255,255,255,.10);

  --a: 96,165,250;
  --b: 52,211,153;

  --radius: 18px;
  --shadow: 0 20px 70px rgba(0,0,0,.45);
  --shadow2: 0 10px 30px rgba(0,0,0,.25);
}

*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  color: var(--text);
  background:
    radial-gradient(1000px 700px at 15% -10%, rgba(var(--a),.18), transparent 55%),
    radial-gradient(900px 600px at 90% 0%, rgba(var(--b),.12), transparent 52%),
    var(--bg);
  overflow-x:hidden;
  color-scheme: dark;
}
a{ color: inherit; text-decoration:none; }
a:hover{ text-decoration:none; }

canvas#fx{
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events:none;
}

/* background orbs + grain */
.bg{ position:fixed; inset:0; z-index:0; pointer-events:none; }
.orb{
  position:absolute;
  width: 900px; height: 900px;
  filter: blur(55px);
  opacity: .55;
}
.orb.o1{ left:-260px; top:-280px; background: radial-gradient(circle, rgba(var(--a),.35), transparent 60%); }
.orb.o2{ right:-260px; top:-280px; background: radial-gradient(circle, rgba(var(--b),.28), transparent 60%); }
.grain{
  position:absolute; inset:0;
  opacity:.08;
  background-image: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%27140%27 height=%27140%27%3E%3Cfilter id=%27n%27%3E%3CfeTurbulence type=%27fractalNoise%27 baseFrequency=%270.9%27 numOctaves=%272%27 stitchTiles=%27stitch%27/%3E%3C/filter%3E%3Crect width=%27140%27 height=%27140%27 filter=%27url(%23n)%27 opacity=%270.35%27/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

/* layout */
.wrap{
  position: relative;
  z-index: 2;
  width: min(1100px, calc(100% - 48px));
  margin: 0 auto;
  padding: 22px 0 64px;
}

/* nav */
.navShield{
  position: sticky;
  top: 14px;
  z-index: 30;

  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 16px;

  padding: 14px 16px;
  border-radius: 999px;

  background: rgba(10, 14, 20, .45);
  border: 1px solid rgba(255,255,255,.08);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow2);
}
.brand{
  width: 44px; height: 44px;
  border-radius: 999px;
  display:grid; place-items:center;
  font-weight: 800;
  letter-spacing: .02em;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
}
.navlinks{
  display:flex;
  align-items:center;
  justify-content:center;
  gap: 22px;
  flex: 1;
  color: rgba(255,255,255,.72);
}
.navlinks a{ padding: 8px 10px; border-radius: 10px; }
.navlinks a:hover{ background: rgba(255,255,255,.06); color: rgba(255,255,255,.92); }

.pillLink{
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.05);
  color: rgba(255,255,255,.84);
}
.pillLink:hover{ background: rgba(255,255,255,.08); }

.menuBtn{
  display:none;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.05);
  color: rgba(255,255,255,.85);
  cursor:pointer;
}
.mobileMenu{
  display:none;
  margin-top: 10px;
  border-radius: 16px;
  padding: 10px;
  background: rgba(10, 14, 20, .55);
  border: 1px solid rgba(255,255,255,.10);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.mobileMenu a{
  display:block;
  padding: 10px 12px;
  border-radius: 12px;
  color: rgba(255,255,255,.84);
}
.mobileMenu a:hover{ background: rgba(255,255,255,.06); }
body.menuOpen .mobileMenu{ display:block; }
.mobileMenu.open{ display:block; }

@media (max-width: 900px){
  .navlinks{ display:none; }
  .menuBtn{ display:block; }
}

/* splash hero */
.splash{
  min-height: calc(100vh - 90px);
  display:flex;
  align-items:center;
  justify-content:center;
  padding: 56px 0 120px; /* extra bottom for dock */
  text-align:center;
}
.kicker{
  font-size: 12px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(255,255,255,.58);
  margin-bottom: 18px;
}
.h1{
  font-size: clamp(54px, 7vw, 96px);
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin: 0;
}
.h1 .grad{
  display:inline-block;
  background: linear-gradient(90deg, rgba(var(--a),1), rgba(var(--b),1));
  -webkit-background-clip:text;
  background-clip:text;
  color: transparent;
}
.lead{
  margin: 18px auto 0;
  max-width: 820px;
  color: rgba(255,255,255,.66);
  line-height: 1.7;
  font-size: 16px;
}

/* buttons */
.ctaRow{
  margin-top: 28px;
  display:flex;
  justify-content:center;
  gap: 14px;
  flex-wrap: wrap;
}
.btn{
  display:flex;
  flex-direction:column;
  gap: 4px;
  padding: 14px 18px;
  min-width: 220px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.05);
  box-shadow: var(--shadow2);
}
.btn:hover{ background: rgba(255,255,255,.08); }
.btn.primary{
  background: linear-gradient(180deg, rgba(96,165,250,.28), rgba(96,165,250,.10));
  border-color: rgba(96,165,250,.30);
}
.btnMain{ font-weight: 750; font-size: 18px; }
.btnSub{ color: rgba(255,255,255,.55); font-size: 13px; }

/* dock */
.dock{
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 16px;
  width: min(1180px, calc(100% - 32px));
  z-index: 40;

  display:flex;
  align-items:center;
  gap: 12px;

  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(10, 14, 20, .55);
  border: 1px solid rgba(255,255,255,.10);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow2);

  transition: opacity .25s ease, transform .25s ease;
}
.dockLabel{
  font-size: 11px;
  letter-spacing: .20em;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
  padding: 0 8px;
  white-space: nowrap;
}
.dockTrack{
  display:flex;
  align-items:center;
  gap: 10px;
  flex: 1;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.dockTrack::-webkit-scrollbar{ display:none; }
.dockPill{
  display:flex;
  align-items:center;
  gap: 10px;
  height: 44px;
  padding: 0 14px 0 12px;
  border-radius: 14px;
  flex: 0 0 auto;

  color: rgba(255,255,255,.86);
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
}
.dockPill:hover{
  background: rgba(255,255,255,.09);
  border-color: rgba(255,255,255,.14);
}
.dockPill svg{ width: 18px; height: 18px; opacity: .92; }
.dockPill span{ font-size: 13px; color: rgba(255,255,255,.78); white-space: nowrap; }

body.pastSplash .dock{
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(16px);
}

/* sections (small, not huge) */
.section{
  padding: 28px 0 0;
}
.grid2{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (max-width: 800px){
  .grid2{ grid-template-columns: 1fr; }
}
.panel{
  border-radius: 22px;
  padding: 18px 18px;
  background: rgba(10, 14, 20, .42);
  border: 1px solid rgba(255,255,255,.08);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow2);
}
.panel h2{
  margin: 0 0 8px;
  font-size: 22px;
  letter-spacing: -0.01em;
}
.panel p{ margin: 0; color: rgba(255,255,255,.66); line-height: 1.7; }
.panel a.inline{ text-decoration: underline; text-underline-offset: 4px; }

.footer{
  margin-top: 26px;
  padding: 22px 0 0;
  color: rgba(255,255,255,.45);
  text-align:center;
  font-size: 13px;
}

/* reveal */
.reveal{ opacity:1; transform:none; }
html.js .reveal{ opacity:0; transform: translateY(10px); transition: opacity .6s ease, transform .6s ease; }
html.js .reveal.in{ opacity:1; transform:none; }

/* work page */
.pageTitle{
  text-align:center;
  margin: 34px 0 14px;
  font-size: clamp(34px, 4.3vw, 56px);
  letter-spacing: -0.02em;
}
.pageSub{
  text-align:center;
  margin: 0 auto 26px;
  max-width: 820px;
  color: rgba(255,255,255,.62);
  line-height: 1.7;
}
.workGrid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (max-width: 900px){
  .workGrid{ grid-template-columns: 1fr; }
}
.workCard h3{
  margin: 0 0 10px;
  font-size: 18px;
}
.tags{
  display:flex; flex-wrap:wrap;
  gap: 8px;
  margin: 0 0 12px;
}
.tag{
  font-size: 12px;
  color: rgba(255,255,255,.72);
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
}
.workCard ul{
  margin: 0;
  padding-left: 18px;
  color: rgba(255,255,255,.66);
  line-height: 1.7;
}
