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

html {
  scroll-behavior: auto;
  overflow-x: hidden
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  cursor: none
}

img {
  display: block;
  max-width: 100%;
  object-fit: cover
}

a {
  color: inherit;
  text-decoration: none
}

button {
  cursor: none;
  font-family: inherit;
  border: none;
  background: none
}

/* ─── THEME ──────────────────────────────────── */
:root {
  --bg: #080808;
  --bg2: #0e0e0e;
  --bg3: #161616;
  --text: #f0ede4;
  --muted: #5a5a52;
  --green: #00ff87;
  --green-dim: rgba(0, 255, 135, 0.08);
  --border: rgba(255, 255, 255, 0.07);
}

[data-theme="light"] {
  --bg: #f5f2eb;
  --bg2: #edeae0;
  --bg3: #e4e1d8;
  --text: #0d0d0d;
  --muted: #8a8a82;
  --green: #1a7a4a;
  --green-dim: rgba(26, 122, 74, 0.08);
  --border: rgba(0, 0, 0, 0.09);
}

/* ─── GLOBAL DOTTED BACKGROUND ──────────────── */
#bg-dots {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    radial-gradient(ellipse 70% 45% at 50% 0%, var(--green-dim), transparent 60%),
    radial-gradient(rgba(255, 255, 255, 0.10) 1px, transparent 1.5px);
  background-size: auto, 28px 28px;
  background-repeat: no-repeat, repeat;
}

[data-theme="light"] #bg-dots {
  background-image:
    radial-gradient(ellipse 70% 45% at 50% 0%, var(--green-dim), transparent 60%),
    radial-gradient(rgba(0, 0, 0, 0.09) 1px, transparent 1.5px);
  background-size: auto, 28px 28px;
  background-repeat: no-repeat, repeat;
}

/* ─── CURSOR ─────────────────────────────────── */
#cursor-dot {
  width: 6px;
  height: 6px;
  background: var(--green);
  border-radius: 50%;
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%)
}

#cursor-ring {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: width .25s, height .25s, border-color .25s
}

#cursor-ring.big {
  width: 72px;
  height: 72px;
  border-color: var(--green)
}

@media(hover:none) {

  #cursor-dot,
  #cursor-ring {
    display: none
  }

  body {
    cursor: auto
  }
}

/* ─── NAVBAR ─────────────────────────────────── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 500;
  padding: 1.5rem 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none
}

/* Floating pill shared styles */
.nav-pill {
  pointer-events: auto;
  position: absolute;
  top: 1.5rem;
  left: 50%;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: .5rem .6rem .5rem .5rem;
  background: rgba(14, 14, 14, 0.75);
  border: 1px solid var(--border);
  border-radius: 99px;
  backdrop-filter: blur(20px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  transform: translateX(-50%) translateY(0) scale(1);
  opacity: 1;
  visibility: visible;
  transition: opacity .35s ease, transform .35s ease, visibility .35s, top .3s ease
}

[data-theme="light"] .nav-pill {
  background: rgba(245, 242, 235, 0.85)
}

nav.stuck .nav-pill {
  top: 1rem
}

/* Compact pill starts hidden; full pill starts visible */
.nav-pill-compact {
  gap: .65rem;
  padding: .4rem 1.1rem .4rem .4rem;
  opacity: 0;
  transform: translateX(-50%) translateY(-6px) scale(.92);
  visibility: hidden;
}

nav.stuck .nav-pill-full {
  opacity: 0;
  transform: translateX(-50%) translateY(-6px) scale(1.04);
  visibility: hidden;
  pointer-events: none;
}

nav.stuck .nav-pill-compact {
  opacity: 1;
  transform: translateX(-50%) translateY(0) scale(1);
  visibility: visible;
  pointer-events: auto;
}

.nav-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid var(--border);
  display: block
}

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

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem
}

.nav-links a {
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
  padding: .4rem .9rem;
  border-radius: 99px;
  transition: color .2s, background .2s
}

.nav-links a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05)
}

[data-theme="light"] .nav-links a:hover {
  background: rgba(0, 0, 0, 0.05)
}

.nav-status-text {
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .03em;
  color: var(--text);
  white-space: nowrap
}

.nav-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
  animation: navDotBlink 1.6s ease-in-out infinite
}

@keyframes navDotBlink {
  0%, 100% {
    opacity: 1;
    box-shadow: 0 0 0 0 rgba(0, 255, 135, .55)
  }

  50% {
    opacity: .35;
    box-shadow: 0 0 0 5px rgba(0, 255, 135, 0)
  }
}

#theme-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border);
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: color .2s, transform .4s, background .2s
}

#theme-btn:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  transform: rotate(180deg)
}

[data-theme="light"] #theme-btn:hover {
  background: rgba(0, 0, 0, 0.05)
}

.nav-cta {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--green);
  border: 1px solid var(--green);
  padding: .38rem 1rem;
  border-radius: 99px;
  transition: background .2s, color .2s
}

.nav-cta:hover {
  background: var(--green);
  color: #080808
}

/* Hover over the shrunk (stuck) navbar re-expands it; leaving collapses it again */
@media (hover: hover) and (pointer: fine) {
  nav.stuck:hover .nav-pill-full {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
    visibility: visible;
    pointer-events: auto;
  }

  nav.stuck:hover .nav-pill-compact {
    opacity: 0;
    transform: translateX(-50%) translateY(-6px) scale(.92);
    visibility: hidden;
    pointer-events: none;
  }
}

/* ─── MOBILE NAV — status pill + hamburger + fullscreen menu ─── */
.nav-mobile-bar {
  display: none;
  pointer-events: auto;
  position: absolute;
  top: 1rem;
  left: 1rem;
  right: 1rem;
  align-items: center;
  justify-content: space-between;
  gap: .6rem;
}

.nav-pill.nav-mobile-status {
  position: static;
  transform: none;
  top: auto;
  left: auto;
  gap: .6rem;
  padding: .4rem 1rem .4rem .4rem;
  opacity: 1;
  visibility: visible;
}

.nav-mobile-toggle {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--green);
  color: #0a0a0a;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(0, 255, 135, .25);
  transition: transform .25s ease;
}

.nav-mobile-toggle:active {
  transform: scale(.92);
}

/* Fullscreen overlay menu */
.nav-mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 600;
  display: flex;
  flex-direction: column;
  padding: 1rem 1.25rem 2rem;
  background: rgba(8, 8, 8, 0.88);
  backdrop-filter: blur(22px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px);
  transition: opacity .35s ease, transform .35s ease, visibility .35s;
}

[data-theme="light"] .nav-mobile-menu {
  background: rgba(245, 242, 235, 0.92);
}

.nav-mobile-menu.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-mobile-menu-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-mobile-close {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--green);
  color: #0a0a0a;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-mobile-links {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.9rem;
}

.nav-mobile-links a {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.1rem;
  letter-spacing: .02em;
  color: var(--text);
  opacity: 0;
  transform: translateY(16px);
}

.nav-mobile-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.4rem;
  padding-top: 1rem;
}

.nav-mobile-theme {
  display: flex;
  align-items: center;
  gap: .8rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: .75rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
}

.theme-switch {
  position: relative;
  display: inline-block;
  width: 42px;
  height: 24px;
}

.theme-switch input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
  z-index: 1;
}

.theme-switch-track {
  position: absolute;
  inset: 0;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 99px;
  transition: background .25s ease;
}

.theme-switch-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--muted);
  transition: transform .25s ease, background .25s ease;
}

.theme-switch input:checked ~ .theme-switch-track {
  background: var(--green-dim);
  border-color: var(--green);
}

.theme-switch input:checked ~ .theme-switch-track .theme-switch-thumb {
  transform: translateX(18px);
  background: var(--green);
}

.nav-mobile-cta {
  padding: .7rem 2.2rem;
  font-size: .85rem;
}

@media (max-width: 768px) {
  .nav-pill-full,
  .nav-pill-compact {
    display: none !important;
  }

  .nav-mobile-bar {
    display: flex;
  }
}

/* ─── SECTION BASE ───────────────────────────── */
section {
  position: relative
}

/* ─── HERO ───────────────────────────────────── */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(9rem, 15vh) 3rem 5rem;
  overflow: hidden;
  background: var(--bg)
}

.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%)
}

.hero-noise {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.03'/%3E%3C/svg%3E");
  pointer-events: none;
  opacity: .6
}

.hero-inner {
  position: relative;
  width: 100%;
  max-width: 1560px;
  margin: 0 auto;
}

.hero-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.5vw;
}

.hero-col {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.hero-col-left {
  align-items: flex-start;
}

.hero-col-right {
  align-items: flex-end;
}

.hero-name {
  display: inline-block;
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(1.4rem, 3.5vw, 3.5rem);
  line-height: 1;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 0.2rem;
  opacity: 0;
  transform: translateY(14px)
}

.hero-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(3rem, 8.6vw, 9rem);
  line-height: .95;
  letter-spacing: -.01em;
  color: var(--text);
  overflow: hidden;
}

.hero-title .word {
  display: block;
  overflow: hidden
}

.hero-title .word span {
  display: block;
  transform: translateY(115%)
}

.hero-title-right {
  text-align: right;
}

.hero-photo {
  position: relative;
  flex: 0 0 auto;
  width: min(23vw, 340px);
  opacity: 0;
  transform: translateY(-16px) scale(.96);
}

.hero-photo-frame {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 26px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 0 0 1px var(--green-dim), 0 30px 70px rgba(0, 0, 0, .4)
}

.hero-photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(35%) contrast(1.05)
}

.hero-photo-badge {
  position: absolute;
  bottom: -25px;
  left: -32px;
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: #aaff00;
  color: #0a0a0a;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--bg);
  box-shadow: 0 10px 26px rgba(0, 255, 135, .3);
  cursor: none;
  transition: transform .3s cubic-bezier(.16,1,.3,1);
}

.hero-photo-badge:hover {
  transform: scale(1.08) rotate(-8deg);
}

.hero-bottom {
  margin-top: 1.7rem;
  opacity: 0;
  transform: translateY(20px)
}

.hero-col-right .hero-bottom {
  align-self: flex-end;
}

.hero-desc {
  font-size: .95rem;
  color: var(--muted);
  line-height: 1.7;
  max-width: 320px;
  text-align: right;
  margin-left: auto;
}

.hero-scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 2.5rem;
  transform: translateX(-50%);
  opacity: 0;
  font-family: 'JetBrains Mono', monospace;
  font-size: .68rem;
  color: var(--muted);
  letter-spacing: .15em;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .6rem
}

@media (max-width: 1024px) {
  .hero-photo {
    width: min(28vw, 280px);
  }

  .hero-title {
    font-size: clamp(2.6rem, 7.6vw, 7rem);
  }
}

@media (max-width: 768px) {
  #hero {
    padding: 7.5rem 1.5rem 4rem;
    min-height: auto;
  }

  .hero-row {
    flex-direction: column;
    gap: 1.4rem;
  }

  .hero-col-left,
  .hero-col-right {
    align-items: center;
    width: 100%;
  }

  .hero-title {
    text-align: center;
    font-size: clamp(3rem, 15vw, 5.5rem);
  }

  .hero-name {
    text-align: center;
    font-size: clamp(1.4rem, 6vw, 2.5rem);
    margin-bottom: 0.1rem;
  }

  .hero-title-right {
    text-align: center;
  }

  .hero-photo {
    width: min(58vw, 280px);
    margin: .5rem 0;
  }

  .hero-photo-badge {
    width: 52px;
    height: 52px;
    bottom: -12px;
    left: -12px;
  }

  .hero-col-right .hero-bottom {
    align-self: center;
  }

  .hero-desc {
    text-align: center;
    margin: 0 auto;
    max-width: 340px;
  }

  .hero-scroll-hint {
    display: none;
  }
}

.scroll-bar {
  width: 1px;
  height: 60px;
  background: var(--border);
  overflow: hidden;
  position: relative
}

.scroll-bar::after {
  content: '';
  position: absolute;
  top: -100%;
  width: 100%;
  height: 50%;
  background: var(--green);
  animation: scrollDown 1.8s ease-in-out infinite
}

@keyframes scrollDown {
  0% {
    top: -50%
  }

  100% {
    top: 150%
  }
}


/* ─── ZOOM TRANSITION BLOCK ──────────────────── */
#zoom-portal {
  position: relative;
  height: 100vh;
  background: var(--bg);
  overflow: hidden
}

.zoom-sticky {
  width: 100%;
  height: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative
}

.zoom-frame {
  width: 200px;
  height: 130px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
  will-change: transform
}

.zoom-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover
}

.zoom-label {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2rem, 6vw, 5rem);
  letter-spacing: .05em;
  color: var(--text);
  pointer-events: none;
  white-space: nowrap;
  mix-blend-mode: difference
}

[data-theme="light"] .zoom-label {
  mix-blend-mode: normal
}

/* ─── ABOUT ──────────────────────────────────── */
#about {
  height: 100vh;
  background: var(--bg2);
  overflow: hidden
}

.about-sticky {
  width: 100%;
  height: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  position: relative
}

.about-track {
  display: flex;
  align-items: center;
  gap: 12vw;
  padding: 0 10vw;
  will-change: transform
}

.about-panel {
  position: relative;
  min-width: 80vw;
  max-width: 80vw;
  display: flex;
  align-items: center;
  gap: 3.5rem
}

.about-divider {
  align-self: stretch;
  width: 1px;
  flex-shrink: 0;
  background: linear-gradient(var(--border), var(--green), var(--border));
  opacity: .45;
  position: relative;
  z-index: 1
}

.about-number {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(6rem, 14vw, 13rem);
  color: var(--border);
  line-height: 1;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  transition: color .3s
}

.about-panel.active .about-number {
  color: var(--green)
}

.about-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: .78rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 1.2rem
}

.about-eyebrow::before {
  content: '';
  width: 32px;
  height: 1px;
  background: var(--green)
}

.about-text {
  position: relative;
  z-index: 1
}

.about-text h3 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(3.2rem, 6.5vw, 6rem);
  letter-spacing: .01em;
  line-height: .98;
  color: var(--text);
  margin-bottom: 1.3rem
}

.about-text p {
  font-size: 1.08rem;
  color: var(--muted);
  line-height: 1.85;
  max-width: 620px
}

.about-watermark {
  position: absolute;
  right: 0;
  bottom: -6vh;
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(7rem, 16vw, 18rem);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px var(--border);
  pointer-events: none;
  user-select: none;
  z-index: 0;
  white-space: nowrap
}

.skill-grid {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  margin-top: 1.9rem;
  max-width: 640px
}

.sk {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: .82rem;
  letter-spacing: .01em;
  color: var(--text);
  background: var(--bg3);
  border: 1px solid var(--border);
  padding: .58rem 1.05rem .58rem .75rem;
  border-radius: 8px;
  transition: border-color .2s, color .2s, transform .2s, background .2s
}

.sk svg {
  width: 16px;
  height: 16px;
  color: var(--green);
  flex-shrink: 0
}

.sk:hover {
  border-color: var(--green);
  color: var(--green);
  background: var(--green-dim);
  transform: translateY(-3px)
}

@media (max-width: 900px) {
  .about-panel {
    gap: 2rem
  }

  .about-divider {
    display: none
  }

  .about-watermark {
    display: none
  }
}

/* ─── MOBILE: same pinned horizontal scroll as desktop, but sized to
   actually fit ─── the panels were overflowing the pinned viewport and
   getting clipped top/bottom (last skill pills cut off). Fix is to
   shrink the numeral, heading, paragraph, and skill pills, tighten the
   gaps, and use svh so mobile browser chrome doesn't eat into the
   available height — not to remove the horizontal scroll. */
@media (max-width: 768px) {
  #about {
    height: 100vh;
    height: 100svh;
  }

  .about-sticky {
    height: 100%;
  }

  .about-panel {
    min-width: 92vw;
    max-width: 92vw;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: .9rem;
  }

  .about-eyebrow {
    font-size: .88rem;
    margin-bottom: .8rem;
  }

  .about-number {
    font-size: clamp(7.4rem, 9vw, 3.5rem);
  }

  .about-text h3 {
    font-size: clamp(2.5rem, 8vw, 3rem);
    margin-bottom: .7rem;
  }

  .about-text p {
    font-size: .98rem;
    line-height: 1.55;
  }

  .skill-grid {
    gap: .8rem;
    margin-top: 2rem;
  }

  .sk {
    font-size: .66rem;
    padding: .4rem .7rem .4rem .55rem;
  }

  .sk svg {
    width: 13px;
    height: 13px;
  }

  .about-progress {
    bottom: 1.25rem;
  }
}

@media (max-width: 400px) {
  .about-text p {
    font-size: .98rem;
  }

  .skill-grid {
    gap: .7rem;
  }
}

.about-progress {
  position: absolute;
  bottom: 3rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: .5rem
}

.prog-dot {
  width: 28px;
  height: 2px;
  background: var(--border);
  border-radius: 1px;
  transition: background .3s, width .3s
}

.prog-dot.active {
  background: var(--green);
  width: 48px
}

/* ─── ANIMATE ANYTHING — pinned horizontal scroll: intro cluster + word-pop slides ─── */
#animate-anything {
  background: var(--bg);
  position: relative;
}

.aa-sticky {
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  position: relative;
}

.aa-track {
  display: flex;
  align-items: center;
  gap: 0;
  will-change: transform;
  width: 500vw;
}

/* Each "slide" is one phrase (or the intro) */
.aa-slide {
  min-width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 0 8vw;
  position: relative;
}

.aa-slide-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: .72rem;
  color: var(--green);
  letter-spacing: .22em;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
  opacity: 0;
  transform: translateY(12px);
}

/* small badge pair shown above the big phrase on each slide */
.aa-badges {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .6rem;
  margin-bottom: 2.2rem;
}

.aa-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: .78rem;
  letter-spacing: .04em;
  padding: .55rem 1.25rem;
  border-radius: 40px;
  opacity: 0;
  white-space: nowrap;
}

.aa-badge-solid {
  background: var(--green);
  color: var(--bg);
  transform: translate(-10px, 6px) rotate(-2deg);
  position: relative;
  z-index: 2;
}

.aa-badge-outline {
  border: 1px solid var(--border);
  color: var(--text);
  background: var(--bg2);
  transform: translate(10px, -4px) rotate(1.5deg);
  position: relative;
  z-index: 1;
}

@media (max-width: 560px) {
  .aa-badge { font-size: .68rem; padding: .48rem 1rem; }
}

.aa-phrase {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(3.5rem, 10vw, 10rem);
  line-height: 1;
  letter-spacing: -.01em;
  display: flex;
  flex-wrap: wrap;
  gap: .1em .3em;
  max-width: 90vw;
  text-align: center;
  justify-content: center;
  align-items: flex-start;
}

.aa-word {
  display: inline-block;
  overflow: visible;
  position: relative;
  line-height: 1;
  padding-bottom: .08em;
}

/* clip-reveal variant — used only for the final "Your vision, my code"
   slide, matching a clean slide-up-from-below reveal instead of the
   pop/dance style used on the other phrase slides */
.aa-word--clip {
  overflow: hidden;
}

.aa-word-inner {
  display: inline-block;
  /* default: dimmed + shrunk + rotated until "popped" by JS (dancing pop-in) */
  color: var(--muted);
  transition: color .3s ease;
  line-height: 1;
  will-change: transform, opacity;
}

.aa-word-inner.lit {
  color: var(--text);
}

.aa-word-inner.stroke {
  -webkit-text-stroke: 1px var(--muted);
  color: transparent;
  transition: -webkit-text-stroke-color .3s ease, color .3s ease;
}

.aa-word-inner.stroke.lit {
  -webkit-text-stroke-color: var(--text);
  color: transparent;
}

.aa-word-inner.accent {
  color: var(--green);
  transition: color .3s ease;
}

.aa-sub {
  font-size: clamp(.9rem, 1.8vw, 1.15rem);
  color: var(--muted);
  line-height: 1.7;
  max-width: 480px;
  text-align: center;
  margin-top: 2.5rem;
  opacity: 0;
  transform: translateY(20px);
}

/* decorative floating shapes per slide (corners) */
.aa-shape {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  will-change: transform;
}

.aa-shape-ring {
  width: 160px;
  height: 160px;
  border: 5px solid rgba(0, 255, 135, .15);
  border-radius: 50%;
  top: 12%;
  right: 10%;
}

.aa-shape-dot {
  width: 12px;
  height: 12px;
  background: var(--green);
  opacity: .4;
  top: 30%;
  left: 5%;
}

.aa-shape-diamond {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #ff6b6b, #ffd93d);
  border-radius: 4px;
  transform: rotate(45deg);
  bottom: 20%;
  right: 6%;
  opacity: .6;
}

.aa-shape-blob {
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(0, 255, 135, .1) 0%, transparent 70%);
  bottom: 10%;
  left: 8%;
}

/* progress bar at bottom */
.aa-progress-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  background: var(--green);
  width: 0%;
  z-index: 10;
}

/* slide counter */
.aa-counter {
  position: absolute;
  bottom: 2.5rem;
  right: 3rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: .7rem;
  color: var(--muted);
  letter-spacing: .12em;
}

/* ─── INTRO SLIDE — left text column / right floating shape cluster ─── */
.aa-intro {
  justify-content: space-between;
  flex-direction: row;
  gap: 4vw;
  max-width: 1400px;
  margin: 0 auto;
}

.aa-intro-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  flex: 1 1 420px;
}

.aa-intro-left .aa-slide-label { margin-bottom: 1.2rem; }

.aa-intro-left .aa-badges {
  align-items: flex-start;
  margin-bottom: 1.6rem;
}

.aa-intro-left .aa-badge-solid { transform: rotate(-2deg); }
.aa-intro-left .aa-badge-outline { transform: rotate(1.5deg); }

.aa-intro-sub {
  text-align: left;
  margin-top: 0;
  max-width: 420px;
  font-size: clamp(1rem, 1.6vw, 1.3rem);
}

.aa-intro-right {
  position: relative;
  flex: 1 1 420px;
  height: 420px;
}

.aa-cshape {
  position: absolute;
  display: block;
  will-change: transform;
}

.aa-cshape svg { width: 100%; height: 100%; display: block; }

.aa-cshape-ring       { width: 110px; height: 110px; top: 4%;  left: 6%; }
.aa-cshape-clover     { width: 210px; height: 210px; top: 14%; right: 10%; }
.aa-cshape-hourglass  { width: 70px;  height: 90px;  top: 46%; left: 2%; }
.aa-cshape-diamond    { width: 64px;  height: 64px;  top: 30%; right: 32%; }
.aa-cshape-dome       { width: 320px; height: 160px; bottom: 0; right: 4%; }

/* ─── SLIDE H — giant streaming text line, badges pinned in place while
   the huge text runs past underneath (GSAP.com-style hero banner) ─── */
.aa-hscroll {
  overflow: hidden;
}

.aa-hscroll .aa-slide-label { position: relative; z-index: 4; }

.aa-hscroll-viewport {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 100vw;
  height: 42vh;
  overflow: hidden;
  pointer-events: none;
}

.aa-hscroll-track {
  display: flex;
  align-items: center;
  height: 100%;
  width: max-content;
  will-change: transform;
}

.aa-hscroll-line {
  display: flex;
  align-items: baseline;
  flex-shrink: 0;
  white-space: nowrap;
  gap: .32em;
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2.6rem, 8.4vw, 8rem);
  line-height: 1;
  letter-spacing: -.01em;
  padding: 0 2vw;
}

.aa-hscroll-line--dupe {
  display: none;
}

.aa-hscroll-word {
  display: inline-block;
  color: var(--text);
}

.aa-hscroll-word.accent {
  color: var(--green);
}

.aa-hscroll-word.stroke {
  -webkit-text-stroke: 1px var(--text);
  color: transparent;
}

.aa-hscroll-word.dot {
  color: var(--green);
  opacity: .5;
  font-size: .5em;
  align-self: center;
}

.aa-hbadge {
  position: absolute;
  z-index: 3;
  font-family: 'JetBrains Mono', monospace;
  font-size: .78rem;
  letter-spacing: .04em;
  padding: .55rem 1.25rem;
  border-radius: 40px;
  opacity: 0;
  white-space: nowrap;
  pointer-events: none;
}

.aa-hbadge-solid {
  background: var(--green);
  color: var(--bg);
}

.aa-hbadge-outline {
  border: 1px solid var(--border);
  color: var(--text);
  background: var(--bg2);
}

.aa-hbadge-a1 { top: 22%; left: 16%; transform: rotate(-4deg); }
.aa-hbadge-a2 { top: 64%; left: 30%; transform: rotate(3deg); }
.aa-hbadge-b1 { top: 20%; right: 14%; transform: rotate(3deg); }
.aa-hbadge-b2 { top: 66%; right: 28%; transform: rotate(-3deg); }

.aa-hshape {
  position: absolute;
  display: block;
  pointer-events: none;
  will-change: transform;
  opacity: 0;
}

.aa-hshape svg { width: 100%; height: 100%; display: block; }

.aa-hshape-ring  { width: 90px; height: 90px; top: 10%; right: 30%; }
.aa-hshape-spark { width: 60px; height: 60px; bottom: 14%; left: 12%; }

@media (max-width: 560px) {
  .aa-hbadge { font-size: .68rem; padding: .48rem 1rem; }
}

/* ─── MOBILE: vertical stack instead of pinned horizontal scroll ───
   Horizontal scroll-jacking is unreliable on phones (address-bar resize
   breaks pin math), so below 769px slides stack normally down the page
   and each reveals in place as it enters view — see ScrollTrigger
   matchMedia in portfolio-gsap.js. */
@media (max-width: 768px) {
  .aa-sticky {
    height: auto;
    overflow: visible;
    display: block;
  }

  .aa-track {
    flex-direction: column;
    width: 100%;
    transform: none !important;
  }

  .aa-slide {
    min-width: 100%;
    width: 100%;
    height: auto;
    min-height: 100vh;
    min-height: 100svh;
    padding: 6rem 7vw;
  }

  .aa-intro {
    flex-direction: column;
    text-align: center;
  }

  .aa-intro-left { align-items: center; text-align: center; }
  .aa-intro-sub { text-align: center; }
  .aa-intro-right { width: 100%; height: 280px; margin-top: 2rem; }

  .aa-progress-bar,
  .aa-counter {
    display: none;
  }

  /* SLIDE H on mobile: no scroll-jacking available, so the giant line
     just runs continuously via a plain CSS marquee instead, and the
     screen-pinned badges/shapes (which relied on scroll-driven timing)
     are hidden since they'd otherwise just sit there static. */
  .aa-hscroll-viewport {
    position: relative;
    top: auto;
    transform: none;
    width: 100%;
    height: auto;
    margin: 1.5rem 0;
  }

  .aa-hscroll-track {
    width: max-content;
    animation: aa-hscroll-marquee 14s linear infinite;
  }

  .aa-hscroll-line--dupe {
    display: flex;
  }

  .aa-hbadge,
  .aa-hshape {
    display: none;
  }

  /* Mobile only: trim the section down to just the first and last slide
     (What I believe in / Let's work) — the middle two ("My approach",
     "The stack") are skipped so mobile isn't scrolling through 4 full
     screens of text. Desktop/tablet is unaffected and still shows all 4. */
  #aa-slide-1,
  #aa-slide-2 {
    display: none;
  }
}

@keyframes aa-hscroll-marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ─── PROJECTS ───────────────────────────────── */
#projects {
  background: var(--bg)
}

.projects-intro {
  padding: 10rem 3rem 5rem;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  border-bottom: 1px solid var(--border)
}

.projects-intro h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(3rem, 8vw, 7rem);
  letter-spacing: -.01em;
  line-height: 1
}

.projects-intro p {
  font-size: .85rem;
  color: var(--muted);
  max-width: 260px;
  line-height: 1.7;
  text-align: right
}

/* Stacked-card scroll projects */
#proj-scroll {
  height: 100vh;
  background: var(--bg);
  overflow: hidden
}

.proj-sticky {
  width: 100%;
  height: 100%;
  overflow: hidden;
  position: relative
}

.proj-track {
  position: relative;
  width: 100%;
  height: 100%
}

.proj-card {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(1100px, 88vw);
  height: min(620px, 74vh);
  /* border-radius: 8px; */
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  text-align: center;
  border: 1px solid var(--border);
  background: var(--bg2);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .5);
  will-change: transform, opacity
}

.proj-img {
  position: absolute;
  inset: 0
}

.proj-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  filter: brightness(.7) saturate(.95)
}

.proj-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, .88) 0%, rgba(0, 0, 0, .35) 42%, transparent 72%)
}

[data-theme="light"] .proj-img img {
  filter: brightness(.85) saturate(1)
}

[data-theme="light"] .proj-gradient {
  background: linear-gradient(to top, rgba(0, 0, 0, .65) 0%, rgba(0, 0, 0, .15) 42%, transparent 72%)
}

.proj-content {
  position: relative;
  z-index: 2;
  padding: 0 3rem 2.8rem;
  max-width: 640px;
  margin: 0 auto
}

.proj-badge {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: .68rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--green);
  padding: .32rem .95rem;
  border-radius: 999px;
  margin-bottom: 1rem
}

.proj-index {
  display: none
}

.proj-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2.4rem, 5.2vw, 4.2rem);
  letter-spacing: -.01em;
  line-height: .98;
  color: #fff;
  margin-bottom: .9rem
}

.proj-desc {
  font-size: .88rem;
  color: rgba(255, 255, 255, .75);
  line-height: 1.65;
  margin: 0 auto 1.6rem;
  max-width: 460px
}

.proj-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin-bottom: 1.6rem;
  justify-content: center
}

.proj-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: .68rem;
  color: rgba(255, 255, 255, .7);
  border: 1px solid rgba(255, 255, 255, .18);
  padding: .2rem .6rem;
  border-radius: 3px
}

.proj-links {
  display: flex;
  gap: 1rem;
  justify-content: center
}

.proj-link {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: .6rem 1.4rem;
  border-radius: 99px;
  transition: transform .2s, background .2s, color .2s
}

.proj-link.solid {
  background: #fff;
  color: #080808
}

.proj-link.solid:hover {
  transform: translateY(-2px);
  background: var(--green);
  color: #080808
}

.proj-link.outline {
  border: 1px solid rgba(255, 255, 255, .3);
  color: rgba(255, 255, 255, .8)
}

.proj-link.outline:hover {
  border-color: #fff;
  color: #fff;
  transform: translateY(-2px)
}

/* Progress bar */
.proj-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--border)
}

.proj-progress-fill {
  height: 100%;
  background: var(--green);
  width: 0%;
  transition: width .1s linear
}

/* Compact per-card counter, top-right */
.proj-counter {
  position: absolute;
  top: 1.25rem;
  right: 1.4rem;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: .5rem;
  z-index: 3;
  background: rgba(0, 0, 0, .4);
  backdrop-filter: blur(8px);
  padding: .35rem .7rem .35rem .85rem;
  border-radius: 999px
}

.proj-counter-current {
  font-family: 'JetBrains Mono', monospace;
  font-size: .78rem;
  color: #fff;
  line-height: 1
}

.proj-counter-total {
  font-family: 'JetBrains Mono', monospace;
  font-size: .72rem;
  color: rgba(255, 255, 255, .55)
}

.proj-dots {
  display: flex;
  flex-direction: row;
  gap: .3rem;
  margin-top: 0;
  margin-left: .2rem
}

.proj-dot-item {
  width: 10px;
  height: 2px;
  background: rgba(255, 255, 255, .3);
  border-radius: 1px;
  transition: background .3s, width .3s
}

.proj-dot-item.active {
  background: var(--green);
  width: 16px
}

@media (max-width: 640px) {
  .proj-card { width: 92vw; height: min(56vh, 480px); border-radius: 5px }
  .proj-content { padding: 0 1.5rem 2rem }
  .proj-desc { display: none }
  .proj-tags { display: none }
}

/* ─── MARQUEE ────────────────────────────────── */
.marquee-section {
  padding: 3rem 0;
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg2)
}

.marquee-track {
  display: flex;
  gap: 3rem;
  white-space: nowrap;
  animation: marquee 18s linear infinite
}

.marquee-track:hover {
  animation-play-state: paused
}

.marquee-item {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 3rem;
  letter-spacing: .06em;
  color: var(--border);
  display: flex;
  align-items: center;
  gap: 3rem;
  flex-shrink: 0
}

.marquee-item .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0
}

@keyframes marquee {
  0% {
    transform: translateX(0)
  }

  100% {
    transform: translateX(-50%)
  }
}

/* ─── CONTACT ────────────────────────────────── */
#contact {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--bg);
  overflow: hidden;
  position: relative;
  padding: 8rem 3rem
}

.contact-bg-text {
  position: absolute;
  bottom: -4rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(5rem, 18vw, 18rem);
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, .04);
  white-space: nowrap;
  pointer-events: none;
  letter-spacing: .02em
}

[data-theme="light"] .contact-bg-text {
  -webkit-text-stroke: 1px rgba(0, 0, 0, .04)
}

.contact-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 900px;
  margin: 0 auto
}

.contact-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: .72rem;
  color: var(--green);
  letter-spacing: .2em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: .75rem
}

.contact-label::before {
  content: '';
  width: 32px;
  height: 1px;
  background: var(--green)
}

.contact-heading {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(4rem, 10vw, 9rem);
  letter-spacing: -.01em;
  line-height: .95;
  margin-bottom: 3rem;
  overflow: hidden
}

.contact-heading .line {
  display: block
}

.ch-stroke {
  -webkit-text-stroke: 1px var(--text);
  color: transparent
}

[data-theme="light"] .ch-stroke {
  -webkit-text-stroke: 1px var(--text)
}

.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden
}

.cf-field {
  background: var(--bg2);
  padding: 1.5rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  transition: background .2s
}

.cf-field:focus-within {
  background: var(--bg3)
}

.cf-field.full {
  grid-column: span 2
}

.cf-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: .65rem;
  color: var(--muted);
  letter-spacing: .12em;
  text-transform: uppercase
}

.cf-field input,
.cf-field textarea {
  background: none;
  border: none;
  outline: none;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  color: var(--text);
  width: 100%;
  resize: none;
  line-height: 1.6
}

.cf-field input::placeholder,
.cf-field textarea::placeholder {
  color: var(--muted)
}

.contact-bottom {
  margin-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem
}

.contact-socials {
  display: flex;
  gap: .5rem
}

.cs-link {
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  transition: border-color .2s, color .2s, transform .2s
}

.cs-link:hover {
  border-color: var(--green);
  color: var(--green);
  transform: translateY(-3px)
}

.submit-btn {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  background: var(--green);
  color: #080808;
  padding: .85rem 2rem;
  border-radius: 99px;
  transition: transform .2s, box-shadow .2s
}

.submit-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0, 255, 135, .2)
}

.submit-btn svg {
  transition: transform .2s
}

.submit-btn:hover svg {
  transform: translate(3px, -3px)
}

/* ─── FOOTER ─────────────────────────────────── */
footer {
  padding: 2rem 3rem;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between
}

.footer-logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.4rem;
  letter-spacing: .06em
}

.footer-logo span {
  color: var(--green)
}

footer p {
  font-family: 'JetBrains Mono', monospace;
  font-size: .7rem;
  color: var(--muted)
}

/* ─── RESPONSIVE ─────────────────────────────── */
@media(max-width:1100px) {
  .nav-pill-full {
    gap: .8rem
  }

  .nav-work-btn {
    display: none
  }
}

@media(max-width:768px) {
  .nav-pill {
    top: 1rem;
    gap: .5rem;
    padding: .35rem .5rem .35rem .35rem
  }

  nav.stuck .nav-pill {
    top: .75rem
  }

  .nav-links,
  .nav-work-btn {
    display: none
  }

  .proj-content {
    padding: 0 2rem
  }

  .proj-counter {
    display: none
  }

  #contact {
    padding: 5rem 1.5rem
  }

  .contact-form {
    grid-template-columns: 1fr
  }

  .cf-field.full {
    grid-column: span 1
  }

  .contact-bottom {
    flex-direction: column;
    align-items: flex-start
  }

  footer {
    flex-direction: column;
    gap: .75rem;
    text-align: center;
    padding: 2rem 1.5rem;
  }

  .contact-bg-text {
    bottom: -1.2rem;
    font-size: clamp(3rem, 15vw, 8rem);
  }

  .projects-intro {
    flex-direction: column;
    gap: 1.5rem;
    padding: 6rem 1.5rem 3rem
  }

  .projects-intro p {
    text-align: left
  }

  .proj-title {
    font-size: clamp(2.5rem, 12vw, 5rem)
  }

  .proj-gradient {
    /* background: linear-gradient(to top, rgba(8, 8, 8, 0.648) 50%, transparent 100%) */
  }

  .proj-content {
    padding: 0 1.5rem;
    margin-top: auto;
    padding-bottom: 4rem
  }

  .proj-card {
    align-items: flex-end
  }
}

/* ─── VIEW ALL WORK — nav button ───────────── */
.nav-work-btn {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
  padding: .38rem 1rem;
  border-radius: 99px;
  border: 1px solid var(--border);
  transition: color .2s, border-color .2s, background .2s;
  display: flex;
  align-items: center;
  gap: .4rem;
}

.nav-work-btn svg {
  transition: transform .25s;
}

.nav-work-btn:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.04);
}

.nav-work-btn:hover svg {
  transform: rotate(45deg);
}

[data-theme="light"] .nav-work-btn:hover {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.15);
}

/* ─── POST-SCROLL CTA BRIDGE ────────────────── */
#proj-cta-bridge {
  padding: 7rem 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  text-align: center;
  background: var(--bg);
  position: relative;
  overflow: hidden;
}

#proj-cta-bridge::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 100%, rgba(0, 255, 135, .06), transparent);
  pointer-events: none;
}

.pcta-eyebrow {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--green);
}

.pcta-heading {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(3rem, 8vw, 6rem);
  line-height: .95;
  letter-spacing: -.01em;
  color: var(--text);
}

.pcta-heading em {
  font-style: normal;
  -webkit-text-stroke: 1px var(--text);
  color: transparent;
}

.pcta-sub {
  font-size: .95rem;
  color: var(--muted);
  max-width: 420px;
  line-height: 1.7;
}

.pcta-btn {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: #080808;
  background: var(--green);
  padding: .85rem 2.2rem;
  border-radius: 99px;
  transition: transform .25s, box-shadow .25s, gap .25s;
  box-shadow: 0 0 0 0 rgba(0, 255, 135, 0);
}

.pcta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 255, 135, .25);
  gap: 1rem;
}

.pcta-btn svg {
  flex-shrink: 0;
}

[data-theme="light"] .pcta-btn {
  color: #fff;
  background: var(--green);
}

/* ─── ALL PROJECTS MODAL ────────────────── */
#all-projects-modal {
  position: fixed;
  inset: 0;
  z-index: 900;
  display: flex;
  flex-direction: column;
  pointer-events: none;
  visibility: hidden;
}

#all-projects-modal.open {
  pointer-events: all;
  visibility: visible;
}

.apm-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .7);
  backdrop-filter: blur(12px);
  opacity: 0;
  transition: opacity .4s;
}

#all-projects-modal.open .apm-backdrop {
  opacity: 1;
}

.apm-panel {
  position: absolute;
  inset: 0;
  background: var(--bg2);
  border-left: 1px solid var(--border);
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform .5s cubic-bezier(.22, 1, .36, 1);
  display: flex;
  flex-direction: column;
}

@media (min-width: 768px) {
  .apm-panel {
    left: auto;
    width: min(900px, 90vw);
  }
}

#all-projects-modal.open .apm-panel {
  transform: translateX(0);
}

.apm-header {
  padding: 2rem 2.5rem 1.5rem;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: var(--bg2);
  z-index: 10;
  gap: 1rem;
}

.apm-title-block {}

.apm-eyebrow {
  font-size: .7rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: .35rem;
}

.apm-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2rem, 5vw, 3.2rem);
  letter-spacing: .02em;
  line-height: 1;
  color: var(--text);
}

.apm-close {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border);
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: none;
  flex-shrink: 0;
  transition: color .2s, border-color .2s, transform .3s;
  margin-top: .2rem;
}

.apm-close:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, .25);
  transform: rotate(90deg);
}

.apm-filters {
  padding: 1.25rem 2.5rem;
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--border);
}

.apm-filter {
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--muted);
  padding: .3rem .9rem;
  border-radius: 99px;
  border: 1px solid var(--border);
  cursor: none;
  transition: color .2s, border-color .2s, background .2s;
  background: none;
  font-family: inherit;
}

.apm-filter:hover,
.apm-filter.active {
  color: var(--green);
  border-color: var(--green);
  background: var(--green-dim);
}

.apm-grid {
  padding: 2rem 2.5rem 3rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 600px) {
  .apm-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.apm-card {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg3);
  display: flex;
  flex-direction: column;
  transition: border-color .25s, transform .25s;
  opacity: 0;
  transform: translateY(24px);
}

.apm-card.visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity .45s, transform .45s, border-color .25s;
}

.apm-card:hover {
  border-color: rgba(0, 255, 135, .3);
  transform: translateY(-3px);
}

.apm-card-img {
  aspect-ratio: 16/9;
  overflow: hidden;
}

.apm-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}

.apm-card:hover .apm-card-img img {
  transform: scale(1.05);
}

.apm-card-body {
  padding: 1.25rem 1.4rem 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: .6rem;
}

.apm-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.apm-card-year {
  font-size: .68rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  font-family: 'JetBrains Mono', monospace;
}

.apm-card-type {
  font-size: .65rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--green);
  background: var(--green-dim);
  padding: .18rem .65rem;
  border-radius: 99px;
}

.apm-card-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.5rem;
  letter-spacing: .04em;
  color: var(--text);
  line-height: 1.1;
}

.apm-card-desc {
  font-size: .82rem;
  color: var(--muted);
  line-height: 1.65;
  flex: 1;
}

.apm-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
}

.apm-card-tag {
  font-size: .65rem;
  font-family: 'JetBrains Mono', monospace;
  color: var(--muted);
  background: var(--bg);
  border: 1px solid var(--border);
  padding: .2rem .55rem;
  border-radius: 4px;
}

.apm-card-footer {
  padding: .9rem 1.4rem;
  border-top: 1px solid var(--border);
  display: flex;
  gap: .75rem;
}

.apm-card-link {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: .35rem .9rem;
  border-radius: 99px;
  transition: background .2s, color .2s, border-color .2s;
}

.apm-card-link.solid {
  background: var(--green);
  color: #080808;
}

.apm-card-link.solid:hover {
  opacity: .85;
}

.apm-card-link.outline {
  border: 1px solid var(--border);
  color: var(--muted);
}

.apm-card-link.outline:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, .2);
}

[data-theme="light"] .apm-card-link.solid {
  color: #fff;
}

/* ══════════════════════════════════════════
       ALL WORK — full-page overlay
    ══════════════════════════════════════════ */
#all-work-page {
  position: fixed;
  inset: 0;
  z-index: 800;
  background: var(--bg);
  overflow: hidden;
  visibility: hidden;
  pointer-events: none;
}

#all-work-page.open {
  visibility: visible;
  pointer-events: all;
}

/* curtain reveal panels */
.aw-curtain {
  position: absolute;
  inset: 0;
  background: var(--bg3);
  transform-origin: top;
  z-index: 2;
}

.aw-inner {
  position: relative;
  z-index: 3;
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* ── header ── */
.aw-header {
  padding: 1.6rem 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.aw-logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.5rem;
  letter-spacing: .06em;
}

.aw-logo span {
  color: var(--green);
}

.aw-header-right {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

.aw-counter-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: .7rem;
  color: var(--muted);
  letter-spacing: .1em;
}

.aw-counter-badge span {
  color: var(--green);
  font-weight: 600;
}

.aw-close {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1px solid var(--border);
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: none;
  transition: color .2s, border-color .2s, transform .35s;
}

.aw-close:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, .25);
  transform: rotate(90deg);
}

/* ── filter bar ── */
.aw-filters {
  padding: 1rem 3rem;
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
  align-items: center;
  position: relative;
}

.aw-filter-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: .65rem;
  color: var(--muted);
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-right: .5rem;
}

.aw-filter {
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--muted);
  padding: .3rem 1rem;
  border-radius: 99px;
  border: 1px solid var(--border);
  cursor: none;
  transition: color .2s, border-color .2s, background .2s;
  background: none;
  font-family: inherit;
}

.aw-filter:hover,
.aw-filter.active {
  color: var(--green);
  border-color: var(--green);
  background: var(--green-dim);
}

/* active filter indicator line */
.aw-filter-line {
  position: absolute;
  bottom: 0;
  left: 3rem;
  height: 2px;
  background: var(--green);
  transition: left .35s cubic-bezier(.22, 1, .36, 1), width .35s cubic-bezier(.22, 1, .36, 1);
}

/* separator before the Client Work filter, to set it apart from the type filters */
.aw-filter-sep {
  width: 1px;
  height: 18px;
  background: var(--border);
  margin: 0 .25rem;
  flex-shrink: 0;
}

/* Client Work filter — cuts across project types, so it gets its own treatment */
.aw-filter-client {
  border-style: dashed;
  position: relative;
  padding-left: 1.6rem;
}

.aw-filter-client::before {
  content: '';
  position: absolute;
  left: .75rem;
  top: 50%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green);
  transform: translateY(-50%);
}

.aw-filter-client:hover,
.aw-filter-client.active {
  border-style: solid;
}

/* subtitle shown under the section label for filters that need extra context */
.aw-section-sub {
  font-size: .82rem;
  line-height: 1.5;
  color: var(--muted);
  max-width: 620px;
  margin-top: -1rem;
  margin-bottom: 1.5rem;
  display: none;
}

.aw-section-sub.show {
  display: block;
}

/* ── All Work page: mobile ── */
@media (max-width: 768px) {
  .aw-header {
    padding: 1rem 1.25rem;
    gap: .75rem;
  }

  .aw-logo {
    font-size: 1.1rem;
    display: flex;
    align-items: baseline;
    overflow: hidden;
    white-space: nowrap;
  }

  /* the "/ all work" sub-label is inline-styled with no class — it's
     always the last span in .aw-logo, so target it structurally and
     hide it on narrow screens to keep the header on a single line */
  .aw-logo span:last-child {
    display: none;
  }

  .aw-header-right {
    gap: .6rem;
  }

  .aw-counter-badge {
    font-size: .6rem;
    white-space: nowrap;
  }

  .aw-close {
    width: 34px;
    height: 34px;
  }

  .aw-close svg {
    width: 13px;
    height: 13px;
  }

  .aw-filters {
    padding: .85rem 1.25rem;
    gap: .5rem;
  }

  .aw-filter-label {
    width: 100%;
    margin-right: 0;
    margin-bottom: .15rem;
  }

  .aw-filter {
    font-size: .65rem;
    padding: .32rem .8rem;
  }

  .aw-filter-line {
    display: none;
  }

  .aw-scroll {
    padding: 1.75rem .75rem 3rem;
  }

  .aw-stats {
    padding: .9rem 1.25rem;
    gap: 1.25rem;
    overflow-x: auto;
  }
}

@media (max-width: 420px) {
  .aw-logo {
    font-size: .95rem;
  }

  .aw-counter-badge {
    font-size: .56rem;
  }
}

/* ── scrollable grid ── */
.aw-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 2.5rem 1rem 4rem;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

.aw-scroll::-webkit-scrollbar {
  width: 4px;
}

.aw-scroll::-webkit-scrollbar-track {
  background: transparent;
}

.aw-scroll::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 2px;
}

/* section heading inside grid */
.aw-section-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: .65rem;
  color: var(--muted);
  letter-spacing: .18em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  margin-top: 3rem;
  display: flex;
  align-items: center;
  gap: .75rem;
}

.aw-section-label:first-child {
  margin-top: 0;
}

.aw-section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* grid layout — masonry via CSS columns so each card keeps the image's
   real aspect ratio instead of being forced into a uniform box */
.aw-grid {
  column-count: 4;
  column-gap: 1.25rem;
}

@media (max-width: 1100px) {
  .aw-grid {
    column-count: 3;
  }
}

@media (max-width: 860px) {
  .aw-grid {
    column-count: 2;
  }
}

@media (max-width: 560px) {
  .aw-grid {
    column-count: 1;
  }
}

/* ── project card ── */
.aw-card {
  /* border-radius: 14px; */
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg2);
  display: flex;
  flex-direction: column;
  transition: border-color .3s, transform .3s;
  cursor: none;
  opacity: 0;
  transform: translateY(30px);
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  margin: 0 0 1.25rem;
  width: 100%;
}

.aw-card.in {
  opacity: 1;
  transform: translateY(0);
}

.aw-card:hover {
  border-color: rgba(0, 255, 135, .35);
  transform: translateY(-4px);
}

.aw-card-thumb {
  overflow: hidden;
  position: relative;
  background: var(--bg3);
  line-height: 0;
}

/* the blurred backdrop copy is no longer needed now that each thumb
   sizes itself to the image's real aspect ratio (masonry layout) */
.aw-card-thumb-bg {
  display: none;
}

/* the real image, shown at its natural aspect ratio — this is what
   creates the varied card heights (masonry / brick layout) */
.aw-card-thumb-main {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  transition: transform .6s ease;
  filter: brightness(.9) saturate(.95);
}

.aw-card:hover .aw-card-thumb-main {
  transform: scale(1.05);
}

.aw-card-badges {
  position: absolute;
  top: .75rem;
  right: .75rem;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: .4rem;
}

.aw-card-client-badge {
  /* font-family: 'JetBrains Mono', monospace; */
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--green);
  background: rgba(0, 0, 0, .55);
  border: 1px solid var(--green);
  padding: .45rem .9rem;
  border-radius: 99px;
  backdrop-filter: blur(4px);
}

[data-theme="light"] .aw-card-client-badge {
  background: rgba(255, 255, 255, .75);
}

.aw-card-type-badge {
  /* font-family: 'JetBrains Mono', monospace; */
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #080808;
  background: var(--green);
  padding: .45rem .9rem;
  border-radius: 99px;
}

[data-theme="light"] .aw-card-type-badge {
  color: #fff;
}

.aw-card-body {
  padding: 1.2rem 1.4rem 1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.aw-card-meta {
  display: flex;
  align-items: center;
  gap: .6rem;
}

.aw-card-year {
  font-family: 'JetBrains Mono', monospace;
  font-size: .65rem;
  color: var(--muted);
  letter-spacing: .08em;
}

.aw-card-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.45rem;
  letter-spacing: .04em;
  color: var(--text);
  line-height: 1.1;
}

.aw-card-desc {
  font-size: .8rem;
  color: var(--muted);
  line-height: 1.65;
  flex: 1;
}

.aw-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .3rem;
  margin-top: .4rem;
}

.aw-card-tag {
  font-size: .62rem;
  font-family: 'JetBrains Mono', monospace;
  color: var(--muted);
  background: var(--bg3);
  border: 1px solid var(--border);
  padding: .15rem .5rem;
  border-radius: 3px;
}

.aw-card-footer {
  padding: .8rem 1.4rem;
  border-top: 1px solid var(--border);
  display: flex;
  gap: .65rem;
  align-items: center;
}

.aw-card-cta {
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: .3rem .9rem;
  border-radius: 99px;
  transition: background .2s, color .2s, border-color .2s;
}

.aw-card-cta.solid {
  background: var(--green);
  color: #080808;
}

[data-theme="light"] .aw-card-cta.solid {
  color: #fff;
}

.aw-card-cta.solid:hover {
  opacity: .85;
}

.aw-card-cta.outline {
  border: 1px solid var(--border);
  color: var(--muted);
}

.aw-card-cta.outline:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, .25);
}

/* view detail btn inside card */
.aw-card-detail-btn {
  margin-left: auto;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  cursor: none;
  transition: color .2s, border-color .2s, transform .2s;
  flex-shrink: 0;
}

.aw-card-detail-btn:hover {
  color: var(--green);
  border-color: var(--green);
  transform: rotate(45deg);
}

/* stagger transition delay helpers */
.aw-card:nth-child(1) {
  transition-delay: .04s;
}

.aw-card:nth-child(2) {
  transition-delay: .08s;
}

.aw-card:nth-child(3) {
  transition-delay: .12s;
}

.aw-card:nth-child(4) {
  transition-delay: .16s;
}

.aw-card:nth-child(5) {
  transition-delay: .20s;
}

.aw-card:nth-child(6) {
  transition-delay: .24s;
}

.aw-card:nth-child(7) {
  transition-delay: .28s;
}

.aw-card:nth-child(8) {
  transition-delay: .32s;
}

.aw-card:nth-child(9) {
  transition-delay: .36s;
}

.aw-card:nth-child(10) {
  transition-delay: .40s;
}

.aw-card:nth-child(11) {
  transition-delay: .44s;
}

.aw-card:nth-child(12) {
  transition-delay: .48s;
}

/* ── empty state ── */
.aw-empty {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 5rem 2rem;
  text-align: center;
}

.aw-empty.show {
  display: flex;
}

.aw-empty-icon {
  width: 56px;
  height: 56px;
  border: 1px solid var(--border);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
}

.aw-empty h3 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2rem;
  color: var(--text);
}

.aw-empty p {
  font-size: .85rem;
  color: var(--muted);
  max-width: 280px;
  line-height: 1.65;
}

/* ── floating stats strip ── */
.aw-stats {
  display: flex;
  gap: 2.5rem;
  padding: .9rem 3rem;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
  background: var(--bg2);
}

.aw-stat {
  display: flex;
  align-items: center;
  gap: .6rem;
}

.aw-stat-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.5rem;
  color: var(--green);
  line-height: 1;
}

.aw-stat-label {
  font-size: .72rem;
  color: var(--muted);
  line-height: 1.35;
}

/* ══════════════════════════════════════════
       PROJECT DETAIL — full page overlay
    ══════════════════════════════════════════ */
#project-detail-page {
  position: fixed;
  inset: 0;
  z-index: 850;
  background: var(--bg);
  overflow-y: auto;
  visibility: hidden;
  pointer-events: none;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

#project-detail-page.open {
  visibility: visible;
  pointer-events: all;
}

#project-detail-page::-webkit-scrollbar {
  width: 4px;
}

#project-detail-page::-webkit-scrollbar-track {
  background: transparent;
}

#project-detail-page::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 2px;
}

.pd-curtain {
  position: fixed;
  inset: 0;
  background: var(--bg3);
  transform-origin: bottom;
  z-index: 860;
  pointer-events: none;
}

/* ── sticky nav ── */
.pd-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  padding: 1.4rem 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(8, 8, 8, .9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

[data-theme="light"] .pd-nav {
  background: rgba(245, 242, 235, .9);
}

.pd-back {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
  cursor: none;
  transition: color .2s, gap .2s;
  border: none;
  background: none;
  font-family: inherit;
  white-space: nowrap;
  flex-shrink: 0;
}

.pd-back:hover {
  color: var(--text);
  gap: .9rem;
}

.pd-back svg {
  transition: transform .25s;
}

.pd-back:hover svg {
  transform: translateX(-3px);
}

.pd-nav-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.2rem;
  letter-spacing: .08em;
  color: var(--text);
  opacity: 0;
  transition: opacity .3s;
}

.pd-nav-title.show {
  opacity: 1;
}

/* ── hero section ── */
.pd-titlebar {
  position: relative;
  padding: 3.5rem 3rem 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.pd-hero-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: .7rem;
  color: var(--green);
  letter-spacing: .2em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: 1.25rem;
}

.pd-hero-eyebrow::before {
  content: '';
  width: 32px;
  height: 1px;
  background: var(--green);
}

.pd-hero-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2.75rem, 6vw, 5rem);
  letter-spacing: -.01em;
  line-height: .95;
  color: var(--text);
  overflow: hidden;
}

/* ── hero image carousel ── */
.pd-carousel {
  position: relative;
  max-width: 1100px;
  margin: 0 auto 1rem;
  padding: 0 3rem;
}

.pd-carousel-track {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg2);
}

.pd-carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .5s ease;
  pointer-events: none;
}

.pd-carousel-slide.active {
  opacity: 1;
  pointer-events: auto;
}

.pd-carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: var(--bg3);
}

.pd-carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(10, 10, 10, .55);
  backdrop-filter: blur(6px);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: none;
  z-index: 3;
  transition: border-color .2s, color .2s, background .2s;
}

[data-theme="light"] .pd-carousel-arrow {
  background: rgba(255, 255, 255, .7);
}

.pd-carousel-arrow:hover {
  border-color: var(--green);
  color: var(--green);
}

.pd-carousel-arrow.prev {
  left: 1.75rem;
}

.pd-carousel-arrow.next {
  right: 1.75rem;
}

.pd-carousel-dots {
  display: flex;
  justify-content: center;
  gap: .5rem;
  margin-top: 1.1rem;
}

.pd-carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: var(--border);
  cursor: none;
  padding: 0;
  transition: background .2s, transform .2s;
}

.pd-carousel-dot.active {
  background: var(--green);
  transform: scale(1.25);
}

.pd-hero-meta {
  display: flex;
  gap: 2rem;
  margin-top: 1.75rem;
  flex-wrap: wrap;
}

.pd-meta-item {
  display: flex;
  flex-direction: column;
  gap: .2rem;
}

.pd-meta-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: .62rem;
  color: var(--muted);
  letter-spacing: .12em;
  text-transform: uppercase;
}

.pd-meta-value {
  font-size: .9rem;
  color: var(--text);
  font-weight: 500;
}

/* ── body content ── */
.pd-body {
  max-width: 1100px;
  margin: 0 auto;
  padding: 4rem 3rem 6rem;
}

.pd-overview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin-bottom: 5rem;
}

@media(max-width:768px) {
  .pd-overview {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .pd-titlebar {
    padding: 2.25rem 1.5rem 1.5rem;
  }

  .pd-carousel {
    padding: 0 1.5rem;
  }

  .pd-carousel-arrow {
    width: 34px;
    height: 34px;
  }

  .pd-carousel-arrow.prev {
    left: 2rem;
  }

  .pd-carousel-arrow.next {
    right: 2rem;
  }

  .pd-hero-title {
    font-size: clamp(2.6rem, 12vw, 9rem);
  }

  .pd-hero-meta {
    gap: 1.25rem;
  }

  .pd-body {
    padding: 3rem 1.5rem 5rem;
  }

  .pd-nav {
    padding: 1.1rem 1.25rem;
    gap: .75rem;
  }

  .pd-back {
    font-size: .68rem;
    gap: .4rem;
  }

  .pd-back svg {
    width: 13px;
    height: 13px;
  }

  .pd-nav-title {
    font-size: 1rem;
  }

  .pd-overview-text h2 {
    font-size: clamp(1.8rem, 8vw, 3rem);
  }

  .pd-cta {
    padding: 3rem 1.5rem;
  }

  .pd-cta h3 {
    font-size: clamp(2rem, 9vw, 4rem);
  }

  .pd-cta-link {
    padding: .75rem 1.5rem;
    font-size: .75rem;
  }
}

.pd-overview-text h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: .02em;
  color: var(--text);
  margin-bottom: 1.25rem;
}

.pd-overview-text p {
  font-size: .95rem;
  color: var(--muted);
  line-height: 1.85;
}

.pd-overview-side {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.pd-detail-group h4 {
  font-family: 'JetBrains Mono', monospace;
  font-size: .65rem;
  color: var(--green);
  letter-spacing: .15em;
  text-transform: uppercase;
  margin-bottom: .75rem;
}

.pd-tech-pills {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
}

.pd-tech-pill {
  font-family: 'JetBrains Mono', monospace;
  font-size: .72rem;
  color: var(--text);
  background: var(--bg3);
  border: 1px solid var(--border);
  padding: .3rem .85rem;
  border-radius: 4px;
  transition: border-color .2s, color .2s;
}

.pd-tech-pill:hover {
  border-color: var(--green);
  color: var(--green);
}

.pd-challenges p {
  font-size: .88rem;
  color: var(--muted);
  line-height: 1.75;
}

/* ── gallery ── */
.pd-gallery-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: .65rem;
  color: var(--muted);
  letter-spacing: .18em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: 2rem;
}

.pd-gallery-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.pd-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 1rem;
  margin-bottom: 5rem;
}

.pd-gallery-item {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  position: relative;
}

.pd-gallery-item.span-full {
  grid-column: span 2;
}

.pd-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .6s ease;
}

.pd-gallery-item:hover img {
  transform: scale(1.03);
}

.pd-gallery-img-1 {
  aspect-ratio: 16/8;
}

.pd-gallery-img-2 {
  aspect-ratio: 4/3;
}

.pd-gallery-img-3 {
  aspect-ratio: 4/3;
}

/* ── feature highlights ── */
.pd-features {
  margin-bottom: 5rem;
}

.pd-features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}

@media(max-width:768px) {
  .pd-features-grid {
    grid-template-columns: 1fr;
  }

  .pd-gallery {
    grid-template-columns: 1fr;
  }

  .pd-gallery-item.span-full {
    grid-column: span 1;
  }
}

.pd-feature-item {
  background: var(--bg2);
  padding: 2rem 1.75rem;
  transition: background .2s;
}

.pd-feature-item:hover {
  background: var(--bg3);
}

.pd-feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green);
  margin-bottom: 1.2rem;
}

.pd-feature-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 3rem;
  color: var(--green);
  line-height: 1;
  margin-bottom: .5rem;
}

.pd-feature-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.25rem;
  letter-spacing: .04em;
  color: var(--text);
  margin-bottom: .6rem;
}

.pd-feature-desc {
  font-size: .82rem;
  color: var(--muted);
  line-height: 1.65;
}

/* ── CTA footer ── */
.pd-cta {
  text-align: center;
  padding: 4rem 2rem;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--bg2);
  position: relative;
  overflow: hidden;
}

.pd-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 60% at 50% 100%, rgba(0, 255, 135, .06), transparent);
  pointer-events: none;
}

.pd-cta-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: .68rem;
  color: var(--green);
  letter-spacing: .18em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.pd-cta h3 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  letter-spacing: -.01em;
  color: var(--text);
  margin-bottom: .75rem;
}

.pd-cta p {
  font-size: .9rem;
  color: var(--muted);
  line-height: 1.7;
  max-width: 380px;
  margin: 0 auto 2rem;
}

.pd-cta-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.pd-cta-link {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: .8rem 2rem;
  border-radius: 99px;
  transition: transform .2s, box-shadow .2s;
}

.pd-cta-link.solid {
  background: var(--green);
  color: #080808;
}

[data-theme="light"] .pd-cta-link.solid {
  color: #fff;
}

.pd-cta-link.solid:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 255, 135, .25);
}

.pd-cta-link.outline {
  border: 1px solid var(--border);
  color: var(--muted);
}

.pd-cta-link.outline:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, .25);
  transform: translateY(-2px);
}

/* scroll progress bar for detail page */
.pd-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  background: var(--green);
  width: 0%;
  z-index: 870;
  transition: width .05s linear;
  pointer-events: none;
}

#project-detail-page.open .pd-progress-bar {
  display: block;
}