:root {
  --bg: #0b0b12;
  --bg-2: #11111b;
  --fg: #f4f4f8;
  --muted: #a0a0b8;
  --accent-1: #7c5cff;
  --accent-2: #00d4ff;
  --card: rgba(255, 255, 255, 0.04);
  --card-hover: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.1);
  --radius: 18px;
  --maxw: 1100px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

h1, h2, h3, .display { font-family: "Space Grotesk", sans-serif; letter-spacing: -0.02em; line-height: 1.1; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* Background decoration */
.glow { position: fixed; border-radius: 50%; filter: blur(110px); opacity: 0.35; pointer-events: none; z-index: -1; }
.glow.one { width: 460px; height: 460px; background: var(--accent-1); top: -160px; left: -140px; }
.glow.two { width: 420px; height: 420px; background: var(--accent-2); top: 40vh; right: -180px; opacity: 0.22; }

.grad {
  background: linear-gradient(90deg, var(--accent-1), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  background: rgba(11, 11, 18, 0.7);
  border-bottom: 1px solid var(--border);
}
.nav .container { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 1.15rem; }
.logo-mark { width: 32px; height: 32px; border-radius: 10px; background: linear-gradient(135deg, var(--accent-1), var(--accent-2)); display: grid; place-items: center; }
.nav-links { display: flex; gap: 24px; font-size: 0.92rem; color: var(--muted); }
.nav-links a:hover { color: var(--fg); }
@media (max-width: 640px) { .nav-links { gap: 14px; font-size: 0.85rem; } .nav-links .hide-sm { display: none; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 20px; border-radius: 12px; font-weight: 600; font-size: 0.95rem;
  border: 1px solid var(--border); background: var(--card);
  transition: transform 0.15s, background 0.15s, border-color 0.15s;
  cursor: pointer;
}
.btn:hover { background: var(--card-hover); transform: translateY(-1px); }
.btn.primary { background: linear-gradient(135deg, var(--accent-1), var(--accent-2)); border-color: transparent; color: #fff; }
.btn.primary:hover { filter: brightness(1.08); }
.btn svg { width: 18px; height: 18px; }

/* Sections */
section { padding: 80px 0; }
.eyebrow { color: var(--accent-2); font-weight: 600; font-size: 0.82rem; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 10px; }
.section-title { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 14px; }
.section-lead { color: var(--muted); max-width: 60ch; }

/* Hero */
.hero { padding: 110px 0 70px; text-align: center; }
.hero h1 { font-size: clamp(2.6rem, 7.5vw, 5rem); max-width: 16ch; margin: 0 auto; }
.hero p { color: var(--muted); font-size: clamp(1rem, 2.2vw, 1.2rem); max-width: 58ch; margin: 22px auto 0; }
.hero .actions { margin-top: 34px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border: 1px solid var(--border); background: var(--card); border-radius: 999px; font-size: 0.85rem; color: var(--muted); margin-bottom: 26px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #2ee59d; box-shadow: 0 0 10px #2ee59d; }

/* Team cards */
.team-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 40px; }
@media (max-width: 900px) { .team-grid { grid-template-columns: 1fr; max-width: 520px; margin-left: auto; margin-right: auto; } }

.member-card {
  border: 1px solid var(--border); background: var(--card); border-radius: var(--radius);
  padding: 26px; display: flex; flex-direction: column; gap: 16px;
  transition: transform 0.2s, background 0.2s, border-color 0.2s;
}
.member-card:hover { transform: translateY(-4px); background: var(--card-hover); border-color: rgba(124, 92, 255, 0.45); }
.member-head { display: flex; align-items: center; gap: 14px; }
.avatar {
  width: 64px; height: 64px; border-radius: 50%; flex-shrink: 0; object-fit: cover;
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  display: grid; place-items: center; font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 1.3rem; color: #fff;
}
.avatar.lg { width: 120px; height: 120px; font-size: 2.4rem; }
.member-card h3 { font-size: 1.3rem; }
.member-card .role { color: var(--accent-2); font-size: 0.9rem; font-weight: 500; }
.member-card p { color: var(--muted); font-size: 0.95rem; }
.member-card .card-actions { margin-top: auto; display: flex; gap: 10px; flex-wrap: wrap; }

/* Tags */
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { padding: 4px 11px; border-radius: 999px; font-size: 0.8rem; border: 1px solid var(--border); background: rgba(124, 92, 255, 0.1); color: #d6ccff; }

/* Stack / combined skills */
.panel { border: 1px solid var(--border); background: var(--card); border-radius: var(--radius); padding: 30px; }
.stack-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 36px; }
@media (max-width: 900px) { .stack-grid { grid-template-columns: 1fr; } }
.stack-grid h3 { font-size: 1.1rem; margin-bottom: 12px; }

/* Contact */
.contact { text-align: center; }
.contact .actions { margin-top: 26px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

footer { border-top: 1px solid var(--border); padding: 30px 0; color: var(--muted); font-size: 0.88rem; }
footer .container { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* Profile page */
.profile-hero { padding: 70px 0 40px; }
.profile-hero .container { display: flex; gap: 32px; align-items: center; flex-wrap: wrap; }
.profile-hero h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
.profile-hero .role { color: var(--accent-2); font-size: 1.1rem; font-weight: 500; margin-top: 6px; }
.profile-hero .meta { color: var(--muted); margin-top: 8px; font-size: 0.95rem; }
.profile-hero .actions { margin-top: 20px; display: flex; gap: 10px; flex-wrap: wrap; }

.profile-body { padding: 20px 0 80px; }
.profile-body .container { display: grid; grid-template-columns: 300px 1fr; gap: 28px; align-items: start; }
@media (max-width: 860px) { .profile-body .container { grid-template-columns: 1fr; } }
.profile-body aside { display: flex; flex-direction: column; gap: 20px; position: sticky; top: 84px; }
@media (max-width: 860px) { .profile-body aside { position: static; } }
.profile-body .main { display: flex; flex-direction: column; gap: 20px; }
.panel h2 { font-size: 1.3rem; margin-bottom: 16px; }
.panel p { color: var(--muted); }

.timeline-item { padding-left: 18px; border-left: 2px solid var(--border); position: relative; }
.timeline-item + .timeline-item { margin-top: 22px; }
.timeline-item::before { content: ""; position: absolute; left: -6px; top: 6px; width: 10px; height: 10px; border-radius: 50%; background: linear-gradient(135deg, var(--accent-1), var(--accent-2)); }
.timeline-item h3 { font-size: 1.05rem; }
.timeline-item .sub { color: var(--accent-2); font-size: 0.9rem; }
.timeline-item .period { color: var(--muted); font-size: 0.85rem; }
.timeline-item ul { margin: 8px 0 0 18px; color: var(--muted); font-size: 0.95rem; }

.projects { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 640px) { .projects { grid-template-columns: 1fr; } }
.project { border: 1px solid var(--border); border-radius: 14px; padding: 18px; background: rgba(255, 255, 255, 0.02); display: flex; flex-direction: column; gap: 10px; }
.project h3 { font-size: 1.05rem; }
.project p { font-size: 0.92rem; }
.project .links { display: flex; gap: 14px; font-size: 0.88rem; color: var(--accent-2); margin-top: auto; }
.project .links a:hover { text-decoration: underline; }

.link-list { display: flex; flex-direction: column; gap: 10px; }
.link-list a { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 0.93rem; word-break: break-all; }
.link-list a:hover { color: var(--fg); }
.link-list svg { width: 18px; height: 18px; flex-shrink: 0; }

.back { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 0.9rem; margin-bottom: 18px; }
.back:hover { color: var(--fg); }

.not-found { text-align: center; padding: 140px 20px; }

@media print {
  .nav, .glow, .actions, .back, footer { display: none !important; }
  body { background: #fff; color: #000; }
  .panel, .project { border-color: #ccc; background: none; }
}

/* Particles background (particles.js) */
.particles-container.particles-bg { position: fixed; inset: 0; z-index: -1; pointer-events: none; }
.particles-container { position: relative; width: 100%; height: 100%; overflow: hidden; }
.particles-canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }

/* Holo photo cards (holocard.js) */
.holo-card {
  --hc-w: 320px;
  --hc-ratio: 0.716;
  --hc-radius: 14px;
  position: relative;
  display: inline-block;
  width: var(--hc-w);
  max-width: 100%;
  aspect-ratio: var(--hc-ratio);
  border-radius: var(--hc-radius);
  outline: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: pan-y;
}
.holo-card__shadow {
  position: absolute;
  inset: 10% 7% -4%;
  border-radius: var(--hc-radius);
  background: rgba(0, 0, 0, 0.42);
  filter: blur(26px);
  pointer-events: none;
  will-change: transform;
}
.holo-card__rotor { position: absolute; inset: 0; transform-style: preserve-3d; will-change: transform; }
.holo-card__face {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: var(--hc-radius);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.holo-card__face img,
.holo-card__face canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.holo-card__face img { object-fit: cover; pointer-events: none; -webkit-user-drag: none; }
.holo-card__face canvas { opacity: 0; transition: opacity 0.3s ease; }
.holo-card[data-ready] .holo-card__face canvas { opacity: 1; }

.member-holo { display: flex; justify-content: center; padding: 6px 0 4px; min-height: 120px; }
.profile-holo { flex-shrink: 0; }
.member-card .member-name h3 { font-size: 1.3rem; }
.member-card .member-name .role { color: var(--accent-2); font-size: 0.9rem; font-weight: 500; }

/* ---------- Multi-page additions ---------- */
.nav-links a.active { color: var(--fg); }
.nav-links a.active::after { content: ""; display: block; height: 2px; margin-top: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--accent-1), var(--accent-2)); }
footer .footer-links { display: flex; gap: 18px; }
footer .footer-links a:hover { color: var(--fg); }

section.tight { padding-top: 10px; }

/* Inner page header */
.page-hero { padding: 80px 0 40px; }
.page-hero h1 { font-size: clamp(2.4rem, 6vw, 4rem); }
.page-hero p { color: var(--muted); font-size: clamp(1rem, 2vw, 1.15rem); max-width: 60ch; margin-top: 16px; }
.page-hero .actions { margin-top: 22px; display: flex; gap: 12px; flex-wrap: wrap; }

/* Home: focus areas */
.focus-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 36px; }
@media (max-width: 900px) { .focus-grid { grid-template-columns: 1fr; } }
.focus h3 { font-size: 1.15rem; margin: 14px 0 8px; }
.focus p { font-size: 0.95rem; }
.focus-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--accent-1), var(--accent-2)); }
.focus-icon svg { width: 22px; height: 22px; }

/* Home: the three of us */
.mind-list { display: flex; flex-direction: column; gap: 14px; margin-top: 30px; }
.mind-row { display: flex; align-items: center; gap: 18px; padding: 18px 22px; border: 1px solid var(--border); background: var(--card); border-radius: var(--radius); transition: background 0.2s, border-color 0.2s, transform 0.2s; }
.mind-row:hover { background: var(--card-hover); border-color: rgba(124, 92, 255, 0.45); transform: translateX(4px); }
.mind-row img.avatar { object-position: top; background: #fff; }
.mind-text { flex: 1; min-width: 0; }
.mind-text h3 { font-size: 1.15rem; }
.mind-text .role { color: var(--accent-2); font-size: 0.9rem; font-weight: 500; }
.mind-text p { color: var(--muted); font-size: 0.92rem; margin-top: 2px; }
.mind-go { color: var(--muted); }
.mind-go svg { width: 22px; height: 22px; }
.mind-row:hover .mind-go { color: var(--fg); }

/* Contact page */
.contact-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 960px) { .contact-grid { grid-template-columns: 1fr; max-width: 560px; } }
.contact-card { display: flex; flex-direction: column; gap: 18px; }
.contact-card h3 { font-size: 1.2rem; }
.contact-card .role { color: var(--accent-2); font-size: 0.9rem; font-weight: 500; }
.contact-card .meta { color: var(--muted); font-size: 0.85rem; }
.contact-card img.avatar { object-position: top; background: #fff; }
.contact-card .card-actions { margin-top: auto; display: flex; gap: 10px; flex-wrap: wrap; }

/* Profile page: other members */
.also { margin-top: 18px; color: var(--muted); font-size: 0.9rem; }
.also a { color: var(--accent-2); }
.also a:hover { text-decoration: underline; }

/* Home: one screen, no scroll */
body.home { height: 100vh; height: 100dvh; display: flex; flex-direction: column; overflow: hidden; }
.home-hero { flex: 1; min-height: 0; display: flex; align-items: center; text-align: center; padding: 24px 0 40px; }
.home-hero h1 { font-size: clamp(2.2rem, 6.2vw, 5rem); margin: 0 auto; }
.home-hero p { color: var(--muted); font-size: clamp(0.98rem, 1.8vw, 1.15rem); max-width: 60ch; margin: 18px auto 0; }
.home-hero .badge { margin-bottom: 22px; }
.home-hero .actions { margin-top: 30px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.minds { margin-top: 34px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.mind {
  display: flex; align-items: center; gap: 12px; text-align: left;
  padding: 10px 18px 10px 10px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--card);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transition: transform 0.2s, background 0.2s, border-color 0.2s;
}
.mind:hover { transform: translateY(-3px); background: var(--card-hover); border-color: rgba(124, 92, 255, 0.5); }
.mind .avatar { width: 48px; height: 48px; font-size: 1rem; }
.mind img.avatar { object-position: top; background: #fff; }
.mind .mind-text { display: flex; flex-direction: column; line-height: 1.25; }
.mind strong { font-family: "Space Grotesk", sans-serif; font-size: 1rem; }
.mind .mind-text span { color: var(--accent-2); font-size: 0.82rem; }

/* Small or short screens: allow scrolling rather than cutting content off */
@media (max-width: 720px), (max-height: 640px) {
  body.home { height: auto; min-height: 100dvh; overflow: auto; }
  .mind { width: 100%; max-width: 340px; }
}

/* ---------- Projects ("What we've built") ---------- */
body.fit { height: 100vh; height: 100dvh; display: flex; flex-direction: column; overflow: hidden; }
.work { flex: 1; min-height: 0; display: flex; align-items: center; padding: 20px 0 36px; }
.work > .container { width: 100%; }

.work-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 26px; }
.work-head h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
.work-head p { color: var(--muted); max-width: 38ch; font-size: 0.95rem; }

.tabs {
  position: relative; display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 5px;
  border: 1px solid var(--border); background: rgba(255, 255, 255, 0.03); border-radius: 16px;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.tab-pill {
  position: absolute; top: 0; left: 0; border-radius: 12px; pointer-events: none;
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  box-shadow: 0 6px 24px rgba(124, 92, 255, 0.35);
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), width 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.tab {
  position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 8px;
  font: inherit; font-size: 0.92rem; font-weight: 500; color: var(--muted);
  padding: 10px 18px; border: 0; border-radius: 12px; background: none; cursor: pointer; transition: color 0.2s;
}
.tab svg { width: 17px; height: 17px; }
.tab:hover { color: var(--fg); }
.tab[aria-selected="true"] { color: #fff; }
.tab:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; }
.tab-blurb { color: var(--muted); font-size: 0.95rem; margin: 14px 0 22px; min-height: 1.5em; }

.work-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.work-card {
  --mx: 50%; --my: 0%;
  position: relative; display: flex; flex-direction: column; gap: 10px; overflow: hidden;
  padding: 22px; border-radius: 20px; border: 1px solid var(--border);
  background:
    radial-gradient(420px circle at var(--mx) var(--my), rgba(124, 92, 255, 0.14), transparent 45%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  opacity: 0; transform: translateY(14px);
  animation: card-in 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) var(--d, 0ms) forwards;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}
.work-card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.7), rgba(0, 212, 255, 0.5), transparent 60%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity 0.25s;
}
.work-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35); }
.work-card:hover::before { opacity: 1; }
@keyframes card-in { to { opacity: 1; transform: none; } }

.work-top { display: flex; align-items: center; justify-content: space-between; }
.work-num {
  font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 2.1rem; line-height: 1;
  color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, 0.22);
}
.work-icon { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; color: var(--accent-2); background: rgba(0, 212, 255, 0.1); border: 1px solid rgba(0, 212, 255, 0.2); }
.work-icon svg { width: 19px; height: 19px; }
.work-highlight {
  align-self: flex-start; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.02em;
  padding: 4px 10px; border-radius: 999px; border: 1px solid rgba(124, 92, 255, 0.35); background: rgba(124, 92, 255, 0.1);
  color: #cbbcff;
}
.work-card h2 { font-size: 1.3rem; }
.work-card p { color: var(--muted); font-size: 0.92rem; line-height: 1.55; }
.work-card .tags { margin-top: 2px; }
.work-links { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--border); display: flex; gap: 16px; font-size: 0.88rem; font-weight: 600; }
.work-links a { color: var(--accent-2); transition: color 0.15s; }
.work-links a:hover { color: #fff; }
.work-private { color: var(--muted); font-weight: 500; font-size: 0.82rem; }

@media (max-width: 960px) { .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .work-grid { grid-template-columns: 1fr; } .tab span { font-size: 0.85rem; } .tab { padding: 9px 12px; } }
/* Small or short screens: allow scrolling rather than cutting content off */
@media (max-width: 960px), (max-height: 700px) {
  body.fit { height: auto; min-height: 100dvh; overflow: auto; }
}
@media (prefers-reduced-motion: reduce) { .work-card { animation: none; opacity: 1; transform: none; } .tab-pill { transition: none; } }

/* ---------- Top bar (logo only; navigation lives in the dock) ---------- */
.nav-tag { color: var(--muted); font-size: 0.85rem; letter-spacing: 0.02em; }
@media (max-width: 560px) { .nav-tag { display: none; } }

/* ---------- Logo loop (logoloop.js, from React Bits) ---------- */
.logoloop { position: relative; overflow: hidden; --logoloop-gap: 32px; --logoloop-logoHeight: 28px; --logoloop-fadeColorAuto: #0b0b12; }
.logoloop--scale-hover { padding-top: calc(var(--logoloop-logoHeight) * 0.1); padding-bottom: calc(var(--logoloop-logoHeight) * 0.1); }
.logoloop__track { display: flex; width: max-content; will-change: transform; user-select: none; position: relative; z-index: 0; }
.logoloop__list { display: flex; align-items: center; list-style: none; margin: 0; padding: 0; }
.logoloop__item { flex: 0 0 auto; margin-right: var(--logoloop-gap); line-height: 1; }
.logoloop--fade::before, .logoloop--fade::after { content: ""; position: absolute; top: 0; bottom: 0; width: clamp(24px, 10%, 140px); pointer-events: none; z-index: 10; }
.logoloop--fade::before { left: 0; background: linear-gradient(to right, var(--logoloop-fadeColor, var(--logoloop-fadeColorAuto)) 0%, rgba(0, 0, 0, 0) 100%); }
.logoloop--fade::after { right: 0; background: linear-gradient(to left, var(--logoloop-fadeColor, var(--logoloop-fadeColorAuto)) 0%, rgba(0, 0, 0, 0) 100%); }
@media (prefers-reduced-motion: reduce) { .logoloop__track { transform: translate3d(0, 0, 0) !important; } }

/* Tech pills inside the loop */
.tech {
  display: inline-flex; align-items: center; gap: 10px; padding: 9px 16px 9px 12px;
  border-radius: 999px; border: 1px solid var(--border); background: rgba(255, 255, 255, 0.03);
  color: var(--muted); font-size: 0.92rem; font-weight: 500; white-space: nowrap;
  transition: color 0.2s, border-color 0.2s, background 0.2s, transform 0.2s;
}
.tech-ico {
  width: var(--logoloop-logoHeight); height: var(--logoloop-logoHeight); flex: none;
  background: currentColor; -webkit-mask: var(--icon) center / contain no-repeat; mask: var(--icon) center / contain no-repeat;
  transition: background 0.2s;
}
.tech:hover { color: var(--fg); border-color: color-mix(in srgb, var(--brand) 60%, transparent); background: color-mix(in srgb, var(--brand) 12%, transparent); transform: translateY(-2px); }
.tech:hover .tech-ico { background: var(--brand); }

.tech-strip { margin-top: 34px; }
.tech-label { color: var(--muted); font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 12px; }
.home-hero .tech-strip { width: min(100%, 980px); margin-left: auto; margin-right: auto; }
.team-loop { margin: 30px 0 22px; }
.skills-cloud .tags { gap: 10px; }

/* ---------- Dock (dock.js, from React Bits) ---------- */
.dock-host { position: fixed; left: 0; right: 0; bottom: 0; height: 0; z-index: 60; }
body.has-dock { padding-bottom: 96px; }
body.has-dock.home, body.has-dock.fit { padding-bottom: 0; }
body.has-dock.home .home-hero, body.has-dock.fit .work { padding-bottom: 104px; }

.dock {
  position: absolute; z-index: 10; display: flex; gap: var(--dock-gap); box-sizing: border-box;
  padding: var(--dock-pad); border-radius: calc(var(--dock-base) * var(--dock-round) * 0.5 + var(--dock-pad));
  background: var(--dock-panel);
  box-shadow: inset 0 0 0 1px var(--dock-panel-edge), inset 0 1px 0 var(--dock-panel-highlight), var(--dock-panel-shadow);
  -webkit-backdrop-filter: blur(20px) saturate(1.6); backdrop-filter: blur(20px) saturate(1.6);
  touch-action: none;
}
.dock::before { content: ""; position: absolute; z-index: -1; display: none; }
.dock:hover::before { display: block; }
.dock--bottom { left: 50%; bottom: 14px; height: var(--dock-thickness); transform: translateX(-50%); align-items: flex-end; }
.dock--bottom::before { left: 0; right: 0; height: calc(var(--dock-reach) + 8px); bottom: 100%; }
.dock-item {
  position: relative; flex: none; display: block; width: var(--dock-base); height: var(--dock-base);
  margin: 0; padding: 0; border: 0; background: none; color: var(--dock-ink); font: inherit; cursor: pointer; outline: none;
  -webkit-tap-highlight-color: transparent; -webkit-touch-callout: none; user-select: none;
}
.dock-item:hover, .dock-item:focus-visible { z-index: 1; }
.dock-tile { position: absolute; top: 0; left: 0; width: var(--dock-base); height: var(--dock-base); transform-origin: 0 0; pointer-events: none; }
.dock-face {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; overflow: hidden;
  border-radius: calc(var(--dock-base) * var(--dock-round) * 0.5);
  background: var(--dock-tile);
  box-shadow: inset 0 0 0 1px var(--dock-tile-edge), inset 0 1px 0 var(--dock-tile-highlight), var(--dock-tile-shadow);
  font-size: calc(var(--dock-base) * 0.46); line-height: 1; transition: filter 0.2s ease;
}
.dock-item:active .dock-face { filter: var(--dock-press); transition-duration: 0s; }
.dock-item:focus-visible .dock-face { outline: 2px solid var(--dock-accent); outline-offset: 3px; }
.dock-item[aria-current="page"] .dock-face { background: linear-gradient(135deg, var(--accent-1), var(--accent-2)); color: #fff; }
.dock-member .dock-face { background: #fff; border-radius: 50%; }
.dock-member[aria-current="page"] .dock-face { background: #fff; box-shadow: 0 0 0 2px var(--accent-2), var(--dock-tile-shadow); }
.dock-photo { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.dock-initials { font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 0.8em; background: linear-gradient(135deg, var(--accent-1), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.dock-dot { position: absolute; width: 4px; height: 4px; border-radius: 50%; background: var(--dock-dot); pointer-events: none; }
.dock--bottom .dock-dot { left: 50%; margin-left: -2px; top: calc(100% + max(var(--dock-pad) / 2, 5px) - 2px); }
.dock-separator { flex: none; align-self: center; border-radius: 1px; background: var(--dock-separator); }
.dock--bottom .dock-separator { width: 1px; height: calc(var(--dock-base) * 0.72); }
.dock-label {
  position: absolute; padding: 6px 10px; border-radius: 8px; background: var(--dock-label); color: var(--dock-label-ink);
  box-shadow: inset 0 0 0 1px var(--dock-panel-edge), 0 8px 20px -8px rgba(0, 0, 0, 0.35);
  font-size: 12px; font-weight: 500; line-height: 1; white-space: nowrap; pointer-events: none; opacity: 0;
  transition: opacity 0.16s ease, transform 0.16s ease;
}
.dock--bottom .dock-label { bottom: calc(100% + 12px); left: 50%; transform: translate(-50%, 4px); }
.dock-item:focus-visible .dock-label { opacity: 1; transform: translate(-50%, 0); }
@media (hover: hover) { .dock-item:hover .dock-label { opacity: 1; transform: translate(-50%, 0); } }
.dock .dock-item[data-hop] .dock-label { opacity: 0; }
@media print { .dock-host { display: none; } }

/* ---------- Compact project cards (fit above the dock) ---------- */
.work-head { margin-bottom: 18px; }
.tab-blurb { margin: 10px 0 16px; }
.work-card { padding: 18px 20px; gap: 8px; }
.work-top { gap: 10px; justify-content: flex-start; }
.work-num { font-size: 1.15rem; -webkit-text-stroke: 0; color: rgba(255, 255, 255, 0.28); }
.work-top .work-highlight { order: 2; }
.work-top .work-icon { order: 3; margin-left: auto; width: 34px; height: 34px; }
.work-card h2 { font-size: 1.22rem; }
.work-card p { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.work-links { padding-top: 10px; }

/* Fade the loop edges with a transparency mask so it blends over glows and particles */
.logoloop--fade::before, .logoloop--fade::after { display: none; }
.logoloop--fade {
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 12%, #000 88%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0, #000 12%, #000 88%, transparent 100%);
}
.work-card p { -webkit-line-clamp: 4; }
