/* ── Reset & Base ─────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; border: 0; }

:root {
  --radius: 0.75rem;
  --background: oklch(1 0 0);
  --foreground: oklch(0.19 0.006 260);
  --surface: oklch(0.965 0.003 250);
  --card: oklch(1 0 0);
  --card-foreground: oklch(0.19 0.006 260);
  --primary: oklch(0.19 0.006 260);
  --primary-foreground: oklch(1 0 0);
  --secondary: oklch(0.955 0.003 250);
  --secondary-foreground: oklch(0.19 0.006 260);
  --muted: oklch(0.955 0.003 250);
  --muted-foreground: oklch(0.53 0.008 258);
  --accent: oklch(0.52 0.17 258);
  --accent-foreground: oklch(1 0 0);
  --border: oklch(0.912 0.004 255);
  --input: oklch(0.912 0.004 255);
  --ring: oklch(0.52 0.17 258);
  --online: oklch(0.72 0.16 150);
  --idle: oklch(0.8 0.14 85);
  --dnd: oklch(0.63 0.2 25);
  --font-display: "Archivo", ui-sans-serif, system-ui, sans-serif;
  --font-sans: "Archivo", ui-sans-serif, system-ui, sans-serif;
}

html {
  scroll-behavior: auto;
}

body {
  font-family: var(--font-sans);
  background: var(--background);
  color: var(--foreground);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { cursor: pointer; font-family: inherit; background: none; border: none; }
input, textarea, select { font-family: inherit; }
svg { display: inline-block; vertical-align: middle; }

* { border-color: var(--border); }

::selection {
  background: var(--foreground);
  color: var(--background);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 3px;
}

/* ── Smooth Scroll ────────────────────────────────────── */
html.lenis {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

/* ── Nav ──────────────────────────────────────────────── */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  justify-content: center;
  background: var(--background);
  padding: 0.75rem 1rem;
  backdrop-filter: blur(2px);
}

/* ── Site nav (PillNav, themed with the site palette) ── */
header.site-header {
  background: transparent;
  backdrop-filter: none;
  pointer-events: none;
}

header.site-header > * {
  pointer-events: auto;
}

.site-nav.pill-nav {
  --pn-surface: color-mix(in oklch, var(--background) 82%, transparent);
  --pn-solid: var(--background);
  --pn-edge: var(--border);
  --pn-rim: oklch(1 0 0 / 0.9);
  --pn-shadow: 0 1px 2px oklch(0.19 0.006 260 / 0.04);
  --pn-text: var(--muted-foreground);
  --pn-strong: var(--foreground);
  --pn-pill: var(--primary);
  --pn-pill-ink: var(--primary-foreground);
  --pn-pill-shadow: 0 6px 14px -6px oklch(0.19 0.006 260 / 0.45);
  --pn-dot: var(--foreground);
  --pn-ring: var(--ring);
  --pn-row-hover: var(--secondary);
  --pn-tile: var(--secondary);
  --pn-tile-rim: inset 0 0 0 1px oklch(0.19 0.006 260 / 0.04);
  --pn-x: 18px;
  font-family: var(--font-sans);
}

.site-nav[data-scrolled] {
  --pn-shadow: 0 8px 24px -16px rgb(0 0 0 / 0.45);
}

.site-nav[data-scrolled] .pill-nav__surface,
.site-nav[data-scrolled].pill-nav__surface {
  transition: box-shadow 0.3s ease;
}

.site-nav .pill-nav__item,
.site-nav .pill-nav__ink-item {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.site-nav .pill-nav__item:not([aria-current]) .pill-nav__face {
  color: var(--muted-foreground);
}

.site-nav .pill-nav__slot[data-hover] .pill-nav__face {
  color: var(--foreground);
}

.site-nav .pill-nav__row {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.nav-logo-mark {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 18px;
  line-height: 1;
  letter-spacing: -0.06em;
  color: var(--foreground);
}

@media (max-width: 640px) {
  header.site-header {
    justify-content: center;
  }
}

/* ── PillNav component ─────────────────────────────────── */
.pill-nav {
  --pn-roll: calc(var(--pn-inner) / 2 + 0.7em);
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: var(--pn-gap);
  max-width: 100%;
  font-size: var(--pn-font);
  line-height: 1;
  -webkit-tap-highlight-color: transparent;
}
.pill-nav[data-collapsed] { display: flex; width: 100%; justify-content: space-between; }
.pill-nav[data-collapsed] .pill-nav__bar { display: none; }
.pill-nav:not([data-collapsed]) .pill-nav__toggle { display: none; }
.pill-nav:not([data-panel]) .pill-nav__panel { display: none; }
.pill-nav[data-layout='joined'] { gap: 2px; padding: var(--pn-pad); border-radius: 999px; }
.pill-nav__surface {
  background: var(--pn-surface);
  box-shadow: var(--pn-shadow);
  -webkit-backdrop-filter: var(--pn-blur);
  backdrop-filter: var(--pn-blur);
}
.pill-nav[data-layout='joined'][data-panel] { background: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.pill-nav[data-panel] .pill-nav__rim--root { opacity: 0; }
.pill-nav__rim {
  position: absolute;
  inset: 0;
  z-index: 4;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px var(--pn-edge), inset 0 1px 0 var(--pn-rim);
  pointer-events: none;
}
.pill-nav__logo {
  position: relative;
  z-index: 2;
  display: inline-grid;
  flex: none;
  place-items: center;
  width: var(--pn-h);
  height: var(--pn-h);
  border-radius: 999px;
}
.pill-nav__logo-link {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border-radius: inherit;
  color: var(--pn-strong);
  text-decoration: none;
  outline: none;
}
.pill-nav[data-layout='joined'] .pill-nav__logo { width: var(--pn-inner); height: var(--pn-inner); }
.pill-nav__logo-link:focus-visible,
.pill-nav__toggle:focus-visible { outline: 2px solid var(--pn-ring); outline-offset: 2px; }
.pill-nav__mark { display: grid; place-items: center; width: var(--pn-mark); height: var(--pn-mark); }
.pill-nav__mark img,
.pill-nav__mark svg { display: block; width: 100%; height: 100%; object-fit: contain; }
.pill-nav__bar {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  min-width: 0;
  height: var(--pn-h);
  padding: var(--pn-pad);
  border-radius: 999px;
  box-sizing: border-box;
}
.pill-nav[data-layout='joined'] .pill-nav__bar { height: var(--pn-inner); padding: 0; }
.pill-nav__track { position: relative; height: 100%; }
.pill-nav__list {
  display: flex;
  align-items: stretch;
  gap: var(--pn-item-gap, 2px);
  height: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}
.pill-nav__slot { display: flex; }
.pill-nav__item {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 0 var(--pn-x);
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--pn-text);
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  font-weight: 500;
  letter-spacing: -0.005em;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  outline: none;
  overflow: hidden;
  isolation: isolate;
  transition: color 0.25s ease;
}
.pill-nav__slot[data-lit] .pill-nav__item,
.pill-nav__item[aria-current] { color: var(--pn-strong); }
.pill-nav[data-items='pill'] { --pn-item-gap: 3px; }
.pill-nav[data-items='pill'] .pill-nav__item { background: var(--pn-tile); box-shadow: var(--pn-tile-rim); color: var(--pn-strong); }
.pill-nav__item:focus-visible,
.pill-nav__row:focus-visible { outline: 2px solid var(--pn-ring); outline-offset: -2px; }
.pill-nav__face { display: inline-flex; align-items: center; gap: 0.45em; transition: transform 0.36s cubic-bezier(0.22, 1, 0.36, 1); }
.pill-nav__face svg { width: 1.15em; height: 1.15em; flex: none; }
.pill-nav__face-alt {
  position: absolute;
  inset: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45em;
  color: var(--pn-pill-ink);
  transform: translateY(var(--pn-roll));
  transition: transform 0.36s cubic-bezier(0.22, 1, 0.36, 1);
}
.pill-nav__face-alt svg { width: 1.15em; height: 1.15em; flex: none; }
.pill-nav__slot[data-on] .pill-nav__face,
.pill-nav__slot[data-hover] .pill-nav__face { transform: translateY(calc(var(--pn-roll) * -1)); transition-duration: 0.5s; }
.pill-nav__slot[data-on] .pill-nav__face-alt,
.pill-nav__slot[data-hover] .pill-nav__face-alt { transform: translateY(0); transition-duration: 0.5s; }
.pill-nav__fill {
  position: absolute;
  top: 100%;
  left: 50%;
  z-index: -1;
  width: var(--pn-fill, 200%);
  height: var(--pn-fill, 200%);
  margin: calc(var(--pn-fill, 200%) / -2) 0 0 calc(var(--pn-fill, 200%) / -2);
  border-radius: 50%;
  background: var(--pn-pill);
  transform: scale(0);
  transition: transform 0.36s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}
.pill-nav__slot[data-on] .pill-nav__fill,
.pill-nav__slot[data-hover] .pill-nav__fill { transform: scale(1); transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1); }
.pill-nav__glide {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 0;
  border-radius: 999px;
  background: var(--pn-pill);
  box-shadow: var(--pn-pill-shadow);
  opacity: 0;
  pointer-events: none;
  transform-origin: 50% 50%;
  will-change: transform, width, opacity;
}
.pill-nav[data-focus] .pill-nav__glide { box-shadow: var(--pn-pill-shadow), 0 0 0 2px var(--pn-ring); }
.pill-nav__ink {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: stretch;
  gap: var(--pn-item-gap, 2px);
  color: var(--pn-pill-ink);
  pointer-events: none;
  clip-path: inset(0 100% 0 0);
}
.pill-nav__ink-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45em;
  height: 100%;
  padding: 0 var(--pn-x);
  font-weight: 500;
  letter-spacing: -0.005em;
  white-space: nowrap;
}
.pill-nav__ink-item svg { width: 1.15em; height: 1.15em; flex: none; }
.pill-nav__dot {
  position: absolute;
  bottom: calc((var(--pn-inner) - var(--pn-font)) / 4 - 2px);
  left: 0;
  width: 4px;
  height: 4px;
  margin-left: -2px;
  border-radius: 999px;
  background: var(--pn-dot);
  opacity: 0;
  pointer-events: none;
  transition: background-color 0.3s ease;
  will-change: transform, opacity;
}
.pill-nav[data-dot-lit] .pill-nav__dot { background: var(--pn-pill-ink); }
.pill-nav__toggle {
  position: relative;
  z-index: 3;
  display: inline-grid;
  flex: none;
  place-items: center;
  width: var(--pn-h);
  height: var(--pn-h);
  padding: 0;
  border: 0;
  border-radius: 999px;
  color: var(--pn-strong);
  cursor: pointer;
  outline: none;
}
.pill-nav__toggle--bare { background: transparent; }
.pill-nav[data-layout='joined'] .pill-nav__toggle { width: var(--pn-inner); height: var(--pn-inner); }
.pill-nav__burger { position: relative; width: 16px; height: 10px; }
.pill-nav__line {
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.5px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), top 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.pill-nav__line--top { top: 1.5px; }
.pill-nav__line--bottom { top: 7px; }
.pill-nav[data-open] .pill-nav__line--top { top: 4.25px; transform: rotate(45deg); }
.pill-nav[data-open] .pill-nav__line--bottom { top: 4.25px; transform: rotate(-45deg); }
.pill-nav__panel {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  z-index: 1;
  padding: calc(var(--pn-h) + 10px) 6px 6px;
  border-radius: 24px;
  box-sizing: border-box;
}
.pill-nav[data-layout='joined'] .pill-nav__panel { padding-top: calc(var(--pn-h) + 4px); }
.pill-nav__menu { display: flex; flex-direction: column; gap: 2px; margin: 0; padding: 0; list-style: none; }
.pill-nav__row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  height: calc(var(--pn-h) + 2px);
  padding: 0 16px;
  border: 0;
  border-radius: 18px;
  box-sizing: border-box;
  background: none;
  color: var(--pn-strong);
  font-family: inherit;
  font-size: calc(var(--pn-font) + 1px);
  line-height: 1;
  font-weight: 500;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  outline: none;
  transition: background-color 0.2s ease;
}
.pill-nav__row svg { width: 1.15em; height: 1.15em; flex: none; }
.pill-nav__row:hover { background: var(--pn-row-hover); }
.pill-nav__row[aria-current] { background: var(--pn-pill); box-shadow: var(--pn-pill-shadow); color: var(--pn-pill-ink); }
.pill-nav__measure { position: absolute; top: 0; left: 0; display: flex; gap: 2px; visibility: hidden; pointer-events: none; }
@media (prefers-reduced-motion: reduce) {
  .pill-nav__face, .pill-nav__face-alt, .pill-nav__fill, .pill-nav__line, .pill-nav__item, .pill-nav__row { transition: none; }
}

/* ── Container ────────────────────────────────────────── */
.container {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── Utilities ───────────────────────────────────────── */
.label-caps {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.6875rem;
  font-weight: 600;
}

.grid-texture {
  background-image: radial-gradient(var(--border) 1px, transparent 1px);
  background-size: 22px 22px;
  background-position: -1px -1px;
}

/* ── Animations ───────────────────────────────────────── */
@keyframes nore-marquee {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}

@keyframes nore-spin-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.marquee-track {
  animation: nore-marquee 180s linear infinite;
}

.spin-slow {
  animation: nore-spin-slow 48s linear infinite;
}

/* Content is visible by default. Only once GSAP is running do not-yet-revealed
   elements start hidden, and site.js forces them visible if a tween ever stalls. */
html.has-gsap main[data-page="home"] .reveal:not(.is-visible) {
  opacity: 0;
  transform: translate3d(0, 18px, 0);
}

header.site-header {
  will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
  html.has-gsap main[data-page="home"] .reveal:not(.is-visible) {
    opacity: 1;
    transform: none;
  }
  .marquee-track, .spin-slow {
    animation: none;
  }
}

/* ── Hero Section ─────────────────────────────────────── */
.hero {
  position: relative;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  background: var(--background);
  padding: 6rem 1.5rem 0;
}

@media (min-width: 640px) {
  .hero {
    padding: 8rem 1.5rem 0;
  }
}

.hero-content {
  position: relative;
  max-width: 72rem;
  margin: 0 auto;
  text-align: center;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.geometric-accent {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 42rem;
  height: 42rem;
  transform: translate(-50%, -50%);
  opacity: 0.7;
  pointer-events: none;
  color: var(--border);
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(3rem, 22vw, 16rem);
  line-height: 0.82;
  letter-spacing: -0.06em;
  color: var(--foreground);
  margin-bottom: 2rem;
}

/* ── 404 page ─────────────────────────────────────────── */
.notfound {
  min-height: calc(100vh - 4rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 7rem 1.5rem 4rem;
}

.notfound-title {
  width: 100%;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(6rem, 26vw, 18rem);
  line-height: 0.82;
  letter-spacing: -0.06em;
  color: var(--foreground);
  margin: 1rem 0 2rem;
}

.notfound-techtext {
  display: block;
  width: 100%;
  height: 0.82em;
}

.notfound-heading {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--foreground);
}

.notfound-text {
  margin: 0.75rem auto 0;
  max-width: 28rem;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--muted-foreground);
}

.notfound-path {
  margin-top: 1rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.75rem;
  color: var(--muted-foreground);
  word-break: break-all;
}

.notfound-path:empty {
  display: none;
}

.notfound-path::before {
  content: "GET ";
  opacity: 0.6;
}

.notfound-cta {
  margin-top: 2rem;
}

/* Hero buttons: slightly larger, softly rounded corners */
.hero-cta .btn-primary,
.hero-cta .btn-secondary {
  padding: 0.95rem 1.85rem;
  font-size: 0.75rem;
  border-radius: 10px;
}

@media (max-width: 768px) {
  .hero-cta .btn-primary,
  .hero-cta .btn-secondary {
    padding: 0.8rem 1.4rem;
    font-size: 0.7rem;
  }
}

.hero-content:has(.hero-techtext) {
  width: 100%;
}

.hero-title:has(.hero-techtext) {
  width: 100%;
}

/* ── Lock-on hover (Crosshair "lock" effect, no lines) ── */
.lock-target {
  position: relative;
  overflow: visible;
}

.lock-frame {
  --lock-arm: 14px;
  --lock-ink: var(--foreground);
  position: absolute;
  top: 0;
  left: 0;
  width: 20px;
  height: 20px;
  opacity: 0;
  pointer-events: none;
  will-change: transform, width, height, opacity;
}

.lock-corner {
  position: absolute;
  width: var(--lock-arm);
  height: var(--lock-arm);
  border: 0 solid var(--lock-ink);
}

.lock-tl { top: 0; left: 0; border-top-width: 1.5px; border-left-width: 1.5px; }
.lock-tr { top: 0; right: 0; border-top-width: 1.5px; border-right-width: 1.5px; }
.lock-br { bottom: 0; right: 0; border-bottom-width: 1.5px; border-right-width: 1.5px; }
.lock-bl { bottom: 0; left: 0; border-bottom-width: 1.5px; border-left-width: 1.5px; }

.lock-tag {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  height: 16px;
  padding: 0 5px;
  border-radius: 3px;
  background: var(--lock-ink);
  color: var(--background);
  font: 500 10px/16px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: 0;
  text-transform: none;
  white-space: nowrap;
  opacity: 0;
}

.lock-pulse {
  position: absolute;
  width: 66px;
  height: 66px;
  border: 1px solid var(--foreground);
  border-radius: 50%;
  pointer-events: none;
}

.hero-techtext {
  display: block;
  width: 100%;
  height: 0.82em;
}

/* TechText (vanilla port of React Bits) */
.tech-text {
  position: relative;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}

.tech-text-canvas {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 40;
  display: block;
  pointer-events: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hero-subtitle {
  font-size: 1rem;
  color: var(--muted-foreground);
  line-height: 1.75;
  max-width: 32rem;
  margin: 0 auto 2.5rem;
}

@media (min-width: 640px) {
  .hero-subtitle {
    font-size: 1.125rem;
  }
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  background: var(--primary);
  color: var(--primary-foreground);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: opacity 0.2s ease;
}

.btn-primary:hover {
  opacity: 0.9;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--background);
  color: var(--foreground);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: background 0.2s ease;
}

.btn-secondary:hover {
  background: var(--secondary);
}

/* ── Hero Stats Section ───────────────────────────────── */
.hero-stats {
  background: var(--surface);
  padding: 4rem 1.5rem;
  border-bottom: 1px solid var(--border);
}

.hero-stats .container {
  max-width: 72rem;
  margin: 0 auto;
}

.hero-stats .stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  text-align: center;
}

.hero-stats .stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-stats .stat-number {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.5rem, 5vw, 4rem);
  letter-spacing: -0.04em;
  color: var(--foreground);
  margin-bottom: 0.5rem;
}

.hero-stats .stat-label {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

@media (max-width: 768px) {
  .hero-stats .stats-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .hero-stats .stat-number {
    font-size: 2.5rem;
  }
}

/* ── Marquee ─────────────────────────────────────────── */
.marquee-section {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 1.25rem 0;
  margin-top: auto;
}

.marquee-track {
  display: flex;
  width: max-content;
}

.marquee-row {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.marquee-item {
  padding: 0 1.5rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--foreground);
}

@media (min-width: 640px) {
  .marquee-item {
    font-size: 0.875rem;
  }
}

.marquee-divider {
  color: var(--muted-foreground);
}

/* ── Discord Section ─────────────────────────────────── */
.about-section {
  background: var(--muted);
  padding: 2rem 1.5rem;
}

@media (min-width: 768px) {
  .about-section {
    padding: 2rem 1.5rem;
  }
}

.extended-discord-card {
  max-width: 72rem;
  margin: 0 auto;
  padding: 2rem;
  border-radius: 1rem;
  border: 1px solid var(--border);
  background: var(--card);
}

.extended-discord-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.extended-discord-avatar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 5rem;
  height: 5rem;
  overflow: hidden;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
}

.extended-discord-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.extended-discord-user {
  flex: 1;
}

.extended-discord-display-name {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  margin-bottom: 0.25rem;
}

.extended-discord-username {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.extended-discord-content {
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.extended-discord-label {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-foreground);
  margin-bottom: 1rem;
}

.extended-discord-bio {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--foreground);
}

@media (min-width: 640px) {
  .extended-discord-bio {
    font-size: 1.125rem;
  }
}

.discord-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem;
  border-radius: 1rem;
  border: 1px solid var(--border);
  background: var(--card);
}

.discord-avatar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  overflow: hidden;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
}

.discord-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.discord-avatar-fallback {
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--muted-foreground);
}

.discord-status {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  border: 2px solid var(--card);
}

.discord-status.online { background: var(--online); }
.discord-status.idle { background: var(--idle); }
.discord-status.dnd { background: var(--dnd); }
.discord-status.offline { background: var(--muted-foreground); }

.discord-info {
  min-width: 0;
}

.discord-label {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-foreground);
  margin-bottom: 0.25rem;
}

.discord-name {
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  margin-bottom: 0.25rem;
}

.discord-status-text {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

/* ── Services Section ─────────────────────────────────── */
.services-section {
  background: var(--background);
  padding: 6rem 1.5rem;
}

.services-grid {
  display: grid;
  gap: 1px;
  overflow: hidden;
  border-radius: 1rem;
  border: 1px solid var(--border);
  background: var(--border);
  max-width: 72rem;
  margin: 0 auto;
}

@media (min-width: 640px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.service-card {
  background: var(--card);
  padding: 2rem;
}

.service-title {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  margin-bottom: 0.75rem;
}

.service-body {
  font-size: 0.875rem;
  line-height: 1.75;
  color: var(--muted-foreground);
}

/* ── Projects Section ─────────────────────────────────── */
.projects-section {
  background: var(--surface);
  padding: 6rem 1.5rem;
}

.projects-header {
  max-width: 72rem;
  margin: 0 auto;
  margin-bottom: 3rem;
}

.projects-grid {
  display: grid;
  gap: 1.5rem;
  max-width: 72rem;
  margin: 0 auto;
}

@media (min-width: 640px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .projects-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.project-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border-radius: 1rem;
  border: 1px solid var(--border);
  background: var(--card);
  transition: all 0.3s ease;
}

.project-card:hover {
  transform: translateY(-0.25rem);
  box-shadow: 0 20px 40px -32px rgb(0 0 0 / 0.5);
}

.project-thumbnail {
  position: relative;
  aspect-ratio: 16/10;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.project-thumbnail-roblox {
  background-image: repeating-linear-gradient(45deg, var(--border) 0 1px, transparent 1px 14px);
}

.project-thumbnail-web {
  background-image: repeating-linear-gradient(0deg, var(--border) 0 1px, transparent 1px 16px);
}

.project-thumbnail-discord {
  background-image: radial-gradient(var(--border) 1.1px, transparent 1.1px);
  background-size: 18px 18px;
}

.project-thumbnail-discordbots {
  background-image: radial-gradient(var(--border) 1.1px, transparent 1.1px);
  background-size: 18px 18px;
}

.project-thumbnail-backend {
  background-image: repeating-linear-gradient(90deg, var(--border) 0 1px, transparent 1px 12px);
}

.project-category-badge {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--background);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}

.project-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.5rem;
}

.project-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

.project-title {
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.project-year {
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.project-description {
  font-size: 0.875rem;
  line-height: 1.75;
  color: var(--muted-foreground);
}

.view-more-container {
  margin-top: 3rem;
  text-align: center;
}

/* ── About Page ───────────────────────────────────────── */
.about-section-content {
  background: var(--background);
  padding: 6rem 1.5rem;
}

.about-content {
  max-width: 48rem;
  margin: 0 auto;
}

.about-title {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 900;
  letter-spacing: -0.05em;
  margin-top: 1rem;
}

.about-text {
  margin-top: 3rem;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--muted-foreground);
}

@media (min-width: 640px) {
  .about-text {
    font-size: 1.125rem;
  }
}

.about-text p {
  margin-bottom: 1.5rem;
}

.skills-section {
  background: var(--surface);
  padding: 6rem 1.5rem;
}

.skills-grid {
  display: grid;
  gap: 1px;
  overflow: hidden;
  border-radius: 1rem;
  border: 1px solid var(--border);
  background: var(--border);
  max-width: 72rem;
  margin: 0 auto;
}

@media (min-width: 640px) {
  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.skill-card {
  background: var(--card);
  padding: 2rem;
}

.skill-group {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-foreground);
  margin-bottom: 1rem;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.skill-tag {
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-size: 0.875rem;
}

/* ── Contact Page ─────────────────────────────────────── */
.contact-section {
  background: var(--background);
  padding: 6rem 1.5rem;
}

.contact-content {
  max-width: 48rem;
  margin: 0 auto;
}

.contact-title {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 900;
  letter-spacing: -0.05em;
  margin-top: 1rem;
}

.contact-methods {
  margin-top: 3rem;
  overflow: hidden;
  border-radius: 1rem;
  border: 1px solid var(--border);
}

.contact-method {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.5rem;
  border-bottom: 1px solid var(--border);
  transition: background 0.2s ease;
}

.contact-method:last-child {
  border-bottom: none;
}

.contact-method:hover {
  background: var(--secondary);
}

.contact-method-label {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}

.contact-method-value {
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: -0.025em;
}

/* ── Projects Page ───────────────────────────────────── */
.projects-page-section {
  background: var(--background);
  padding: 6rem 1.5rem;
}

.projects-page-header {
  max-width: 72rem;
  margin: 0 auto;
  margin-bottom: 2.5rem;
}

.projects-page-title {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 900;
  letter-spacing: -0.05em;
  margin-top: 1rem;
}

.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2.5rem;
  margin-bottom: 2rem;
  padding-left: 0;
  list-style: none;
}

.filter-buttons li {
  margin: 0;
  padding: 0;
}

.filter-btn {
  padding: 0.5rem 1.25rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--background);
  color: var(--muted-foreground);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: all 0.2s ease;
}

.filter-btn:hover {
  background: var(--secondary);
  color: var(--foreground);
}

.filter-btn.active {
  border-color: transparent;
  background: var(--primary);
  color: var(--primary-foreground);
}

/* ── About Page ───────────────────────────────────────── */
.about-section {
  background: var(--background);
  padding: 6rem 1.5rem;
}

.about-content {
  max-width: 48rem;
  margin: 0 auto;
}

.about-title {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 900;
  letter-spacing: -0.05em;
  margin-top: 1rem;
}

.about-text {
  margin-top: 3rem;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--muted-foreground);
}

@media (min-width: 640px) {
  .about-text {
    font-size: 1.125rem;
  }
}

.about-text p {
  margin-bottom: 1.5rem;
}

.skills-section {
  background: var(--surface);
  padding: 6rem 1.5rem;
}

.skills-grid {
  display: grid;
  gap: 1px;
  overflow: hidden;
  border-radius: 1rem;
  border: 1px solid var(--border);
  background: var(--border);
  max-width: 72rem;
  margin: 0 auto;
}

@media (min-width: 640px) {
  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.skill-card {
  background: var(--card);
  padding: 2rem;
}

.skill-group {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-foreground);
  margin-bottom: 1rem;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.skill-tag {
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-size: 0.875rem;
}

/* ── Contact Page ─────────────────────────────────────── */
.contact-section {
  background: var(--background);
  padding: 6rem 1.5rem;
}

.contact-content {
  max-width: 48rem;
  margin: 0 auto;
}

.contact-title {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 900;
  letter-spacing: -0.05em;
  margin-top: 1rem;
}

.contact-methods {
  margin-top: 3rem;
  overflow: hidden;
  border-radius: 1rem;
  border: 1px solid var(--border);
}

.contact-method {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.5rem;
  border-bottom: 1px solid var(--border);
  transition: background 0.2s ease;
}

.contact-method:last-child {
  border-bottom: none;
}

.contact-method:hover {
  background: var(--secondary);
}

.contact-method-label {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}

.contact-method-value {
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: -0.025em;
}

/* ── Footer ───────────────────────────────────────────── */
footer {
  padding: 3rem 1.5rem;
  text-align: center;
  background: var(--background);
  border-top: 1px solid var(--border);
}

footer p {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

/* ── Responsive ───────────────────────────────────────── */
@media (max-width: 768px) {
  .hero {
    padding: 5rem 1rem 0;
  }

  .hero-title {
    font-size: clamp(3rem, 25vw, 10rem);
  }

  .hero-subtitle {
    font-size: 0.875rem;
    max-width: 20rem;
  }

  .hero-cta {
    gap: 0.5rem;
  }

  .btn-primary, .btn-secondary {
    padding: 0.6rem 1.25rem;
    font-size: 0.65rem;
  }

  .geometric-accent {
    width: 20rem;
    height: 20rem;
  }

  .extended-discord-card {
    padding: 1.5rem;
  }

  .extended-discord-header {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .extended-discord-avatar {
    width: 4rem;
    height: 4rem;
  }

  .extended-discord-display-name {
    font-size: 1.25rem;
  }

  .extended-discord-bio {
    font-size: 0.875rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .filter-buttons {
    gap: 0.5rem;
  }

  .filter-btn {
    padding: 0.4rem 1rem;
    font-size: 0.65rem;
  }

  .projects-page-section {
    padding: 4rem 1rem;
  }

  .projects-page-title {
    font-size: clamp(2rem, 8vw, 3rem);
  }

  .about-section-content {
    padding: 4rem 1rem;
  }

  .about-title {
    font-size: clamp(2rem, 8vw, 3rem);
  }

  .contact-section {
    padding: 4rem 1rem;
  }

  .contact-title {
    font-size: clamp(2rem, 8vw, 3rem);
  }
}

/* ═══════════════════════════════════════════════════════════
   About + stats — live bento grid
   ═══════════════════════════════════════════════════════════ */
.about-bento { background: var(--surface); padding: clamp(3rem, 7vw, 5rem) clamp(1rem, 3vw, 1.5rem); border-bottom: 1px solid var(--border); }
.bento-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(0.75rem, 1.4vw, 1rem); }
.bento-tile { position: relative; grid-column: span 12; min-width: 0; background: var(--card); border: 1px solid var(--border); border-radius: 1.25rem; padding: clamp(1.15rem, 2.2vw, 1.5rem); transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease; }
@media (hover: hover) {
  .bento-tile:hover { transform: translateY(-3px); box-shadow: 0 18px 36px -24px oklch(0.19 0.006 260 / 0.35); }
}
.bento-kicker { font-size: 0.65rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted-foreground); margin-bottom: 0.9rem; }

/* status colours */
[data-status="online"] { --ring-c: var(--online); }
[data-status="idle"] { --ring-c: var(--idle); }
[data-status="dnd"] { --ring-c: var(--dnd); }
[data-status="offline"] { --ring-c: var(--muted-foreground); }

/* profile */
.bento-profile { display: flex; align-items: center; gap: 1.1rem; }
.bento-profile .bento-kicker { margin-bottom: 0.35rem; }
.bento-avatar-wrap { position: relative; flex: none; width: clamp(60px, 7vw, 76px); aspect-ratio: 1; }
.bento-avatar { width: 100%; height: 100%; border-radius: 50%; display: grid; place-items: center; background: var(--secondary); overflow: hidden; }

/* Discord-style presence badge (SVG) on the avatar's bottom-right */
.bento-presence { position: absolute; right: -4%; bottom: -4%; width: 34%; line-height: 0; }
.bento-presence svg { display: block; width: 100%; height: auto; }
.bento-avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.bento-profile-text { min-width: 0; flex: 1; }
.bento-name { font-size: clamp(1.2rem, 2.2vw, 1.5rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; color: var(--foreground); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bento-handle { color: var(--muted-foreground); font-size: 0.9rem; }

/* right now */
.now-row { display: flex; align-items: center; gap: 1rem; min-width: 0; }
.now-art-wrap { position: relative; flex: none; width: 72px; height: 72px; }
.now-art { width: 72px; height: 72px; border-radius: 14px; object-fit: cover; background: var(--secondary); display: block; }
.now-art-blank { background: repeating-linear-gradient(135deg, var(--secondary) 0 6px, var(--border) 6px 7px); }
.now-art-icon { display: grid; place-items: center; border-radius: 14px; background: color-mix(in oklch, var(--secondary) 70%, transparent); border: 1px solid var(--border); }
.now-art-icon .brand-icon { width: 42px; height: 42px; }
.now-badge { position: absolute; right: -7px; bottom: -7px; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--card); box-shadow: 0 0 0 2px var(--card), 0 2px 6px oklch(0 0 0 / 0.15); }
.now-badge .brand-icon, .now-art-icon .now-badge .brand-icon { width: 18px; height: 18px; }
.now-text { min-width: 0; }
.now-verb { font-size: 0.65rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted-foreground); }
.now-title { font-weight: 700; font-size: 1rem; color: var(--foreground); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.now-sub { font-size: 0.85rem; color: var(--muted-foreground); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.now-progress { display: block; height: 3px; margin-top: 0.9rem; border-radius: 3px; background: var(--border); overflow: hidden; }
.now-progress > span { display: block; height: 100%; background: var(--foreground); transform-origin: left; transform: scaleX(0); transition: transform 1s linear; }
.now-time { margin-top: 0.5rem; font: 500 0.75rem/1 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--muted-foreground); }
.now-empty { color: var(--muted-foreground); font-size: 0.95rem; line-height: 1.6; }
.now-custom { color: var(--foreground); font-size: 1.05rem; font-weight: 500; }

/* brand icons */
.brand-icon { display: block; width: 18px; height: 18px; flex: none; color: var(--brand); }

/* stats */
.bento-stat { display: flex; flex-direction: column; }
.bento-number { font-family: var(--font-display); font-weight: 900; font-size: clamp(2.4rem, 5vw, 3.6rem); letter-spacing: -0.05em; line-height: 0.95; color: var(--foreground); font-variant-numeric: tabular-nums; }
.bento-caption { margin-top: 0.4rem; font-size: 0.8rem; color: var(--muted-foreground); }
.bento-bar { display: block; margin-top: auto; padding-top: 1rem; }
.bento-bar::before { content: ""; display: block; height: 3px; border-radius: 3px; background: var(--border); }
.bento-bar > span { display: block; height: 3px; margin-top: -3px; border-radius: 3px; background: var(--foreground); transform-origin: left; transform: scaleX(0); }

/* about */
.bento-about { display: flex; flex-direction: column; }
.bento-bio { font-size: 1rem; line-height: 1.7; color: var(--foreground); max-width: 46rem; }
.bento-link { margin-top: 1rem; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--foreground); display: inline-flex; gap: 0.4rem; }
.bento-link span { transition: transform 0.3s ease; }
.bento-link:hover span { transform: translateX(4px); }

/* layout: tablet 2-up, desktop 12-col */
@media (min-width: 640px) {
  .bento-profile, .bento-now { grid-column: span 12; }
  .bento-stat { grid-column: span 4; }
  .bento-about { grid-column: span 12; }
}
@media (min-width: 960px) {
  .bento-profile, .bento-now { grid-column: span 6; }
}
@media (max-width: 639px) {
  .bento-stat { grid-column: span 6; }
  .bento-stat:nth-child(5) { grid-column: span 12; }
  .bento-profile { flex-wrap: wrap; }
}

/* ── Mobile nav: keep the full pill (like desktop) instead of a lone menu button ── */
@media (max-width: 520px) {
  .site-nav.pill-nav {
    --pn-h: 40px;
    --pn-inner: 32px;
    --pn-pad: 4px;
    --pn-x: 11px;
  }
  .site-nav .pill-nav__item,
  .site-nav .pill-nav__ink-item {
    font-size: 0.6rem;
    letter-spacing: 0.12em;
  }
  header.site-header { padding: 0.75rem 0.5rem; }
}
.site-nav.pill-nav[data-collapsed] { width: auto; }

@media (max-width: 639px) {
  .now-art-wrap, .now-art { width: 60px; height: 60px; }
  .now-art-icon .brand-icon { width: 34px; height: 34px; }
}

/* ── Contact: live Discord card (shares the bento profile styles) ── */
.discord-live-card { display: flex; flex-direction: column; gap: 1.25rem; }
.discord-live-card .bento-profile { display: flex; align-items: center; gap: 1.1rem; flex-wrap: wrap; }
.discord-live-status { margin-top: 0.15rem; font-size: 0.8rem; font-weight: 600; color: var(--foreground); }
.discord-live-link { margin-left: auto; align-self: center; display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.6rem 1rem; border-radius: 10px; border: 1px solid var(--border); font-size: 0.7rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--foreground); background: var(--background); transition: background 0.2s ease; }
.discord-live-link:hover { background: var(--secondary); }
.discord-live-now { padding-top: 1.1rem; border-top: 1px solid var(--border); }
@media (max-width: 520px) { .discord-live-link { margin-left: 0; width: 100%; justify-content: center; } }

/* Lock effect on cards: let the brackets sit outside the card edge */
.project-card.lock-target { overflow: visible; }
.project-card .project-thumbnail { border-radius: calc(1rem - 1px) calc(1rem - 1px) 0 0; }
.bento-tile.lock-target, .project-card.lock-target { z-index: 1; }
.bento-tile.lock-target:hover, .project-card.lock-target:hover { z-index: 2; }

/* Pull (TechText-style drag + spring back). translate is driven per frame from JS,
   so keep it out of any `transition: all` on the element. */
.lock-target {
  transition-property: transform, box-shadow, background-color, color, border-color, opacity !important;
  -webkit-user-drag: none;
}
.lock-target.lock-pulled { z-index: 30; position: relative; }
.lock-target.lock-grabbing, .lock-target.lock-grabbing * { cursor: grabbing !important; user-select: none; -webkit-user-select: none; }

.lock-tether { position: absolute; left: 50%; top: 50%; width: 0; height: 0; opacity: 0; pointer-events: none; }
.lock-tether-line { position: absolute; height: 0; border-top: 1px dashed var(--foreground); opacity: 0.45; transform-origin: 0 0; }
.lock-tether-home { position: absolute; width: 4px; height: 4px; margin: -2px 0 0 -2px; background: var(--foreground); opacity: 0.7; }

/* No text selection anywhere (form fields stay editable) */
html, body, * { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
input, textarea, [contenteditable="true"] { -webkit-user-select: text; user-select: text; }

/* ── Project cards as links (content.json) ── */
a.project-card { color: inherit; }
.project-thumbnail { overflow: hidden; }
.project-cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  pointer-events: none;
}
.project-category-badge { z-index: 1; max-width: calc(100% - 2rem); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.projects-empty { grid-column: 1 / -1; padding: 3rem 0; text-align: center; color: var(--muted-foreground); }

/* ── Project page (/projects/<slug>) ── */
.project-page { padding: 8.5rem 1.5rem 6rem; }
.project-wrap { max-width: 64rem; margin: 0 auto; }
.project-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  height: 2.5rem;
  padding: 0 1rem 0 0.85rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 0.875rem;
  font-weight: 600;
  background: var(--background);
  transition: border-color 0.2s ease, background 0.2s ease;
}
.project-back:hover { border-color: var(--foreground); }
.project-loading { height: 40vh; }
.project-hero { margin-top: 2.5rem; max-width: 46rem; }
.project-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  font-size: 0.8125rem;
  color: var(--muted-foreground);
}
.project-cats { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.project-cats span {
  padding: 0.2rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.project-page-title {
  margin-top: 1rem;
  font-size: clamp(2.25rem, 6vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.02;
}
.project-lede { margin-top: 1.25rem; font-size: 1.125rem; line-height: 1.7; color: var(--muted-foreground); }
.project-links { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.project-media { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-top: 3.5rem; }
.project-media-item:first-child, .project-media.is-single .project-media-item { grid-column: 1 / -1; }
.project-media-item {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: var(--surface);
}
.project-media-item img, .project-media-item video { width: 100%; height: auto; display: block; }
.project-body {
  max-width: 42rem;
  margin-top: 3.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  font-size: 1.0625rem;
  line-height: 1.8;
}
.project-missing { margin-top: 2.5rem; }

@media (max-width: 640px) {
  .project-page { padding: 7rem 1rem 4rem; }
  .project-hero { margin-top: 1.75rem; }
  .project-lede { font-size: 1rem; }
  .project-media { grid-template-columns: 1fr; gap: 0.75rem; margin-top: 2.5rem; }
  .project-links a { flex: 1 1 auto; justify-content: center; }
}
