/* ═══════════════════════════════════════════════════════════════════
   HASH Portfolio — style.css
   Theme: Black & White Minimalist Web3
   Fonts: Syne (display) + DM Sans (body)
═══════════════════════════════════════════════════════════════════ */

/* ── CSS Variables ──────────────────────────────────────────────── */
:root {
  --bg: #020202;
  --bg-alt: #070707;
  --surface: #0d0d0d;
  --surface-2: #141414;
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.22);
  --white: #ffffff;
  --off-white: #e8e8e8;
  --muted: #888888;
  --accent: #ffffff;
  --glow: rgba(255, 255, 255, 0.06);

  --font-display: "Syne", sans-serif;
  --font-body: "DM Sans", sans-serif;

  --radius: 12px;
  --radius-lg: 20px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);

  --section-pad: clamp(80px, 10vw, 140px);
  --container: 1180px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  background: var(--bg);
  color: var(--off-white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}
ul {
  list-style: none;
}
button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

/* ── Utility ────────────────────────────────────────────────────── */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 60px);
}

.section {
  padding: var(--section-pad) 0;
}

.section-dark {
  background: var(--bg-alt);
}

.section-label {
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.25rem;
}

.section-heading {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--white);
  margin-bottom: 3rem;
}
.section-heading em {
  font-style: normal;
  -webkit-text-stroke: 1px var(--white);
  color: transparent;
}
.section-heading.centered {
  text-align: center;
}

/* ── Scroll reveal animations ───────────────────────────────────── */
.reveal-up {
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 0.7s ease calc(var(--delay, 0s)),
    transform 0.7s ease calc(var(--delay, 0s));
}
.reveal-up.visible {
  opacity: 1;
  transform: translateY(0);
  animation: reveal-pop 0.65s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* ── Buttons ────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: 8px;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.btn,
.nav-logo,
.nav-links a,
.nav-cta,
.hero-tagline,
.hero-avatar,
.about-stat-card,
.service-card,
.project-card,
.project-link,
.social-btn,
.footer-top,
#back-to-top,
.project-modal-dialog,
.project-modal-backdrop,
.project-slide img {
  transition:
    transform var(--transition),
    background-color var(--transition),
    border-color var(--transition),
    color var(--transition),
    opacity var(--transition);
}
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.08);
  opacity: 0;
  transition: var(--transition);
}
.btn:hover::after {
  opacity: 1;
}

.btn-primary {
  background: var(--white);
  color: var(--bg);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(255, 255, 255, 0.15);
}

.btn-outline {
  border: 1px solid var(--border-hover);
  color: var(--white);
}
.btn-outline:hover {
  border-color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(255, 255, 255, 0.07);
}

.hero-avatar:hover {
  transform: translateY(-6px) scale(1.02);
}

.hero-tagline {
  transition:
    transform var(--transition),
    color var(--transition);
}
.hero-tagline:hover {
  transform: translateY(-2px);
  color: var(--off-white);
}

/* ══════════════════════════════════════════════════════════════════
   PRELOADER
══════════════════════════════════════════════════════════════════ */
#preloader {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    opacity 0.6s ease,
    visibility 0.6s ease;
}
#preloader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.preloader-hash {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: 0.3em;
  color: var(--white);
  animation: pulse-text 1.4s ease-in-out infinite;
}

@keyframes pulse-text {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.3;
  }
}

.preloader-bar {
  width: 160px;
  height: 2px;
  background: var(--surface-2);
  border-radius: 99px;
  overflow: hidden;
}
.preloader-fill {
  height: 100%;
  width: 0%;
  background: var(--white);
  border-radius: 99px;
  animation: fill-bar 1.8s ease forwards;
}
@keyframes fill-bar {
  to {
    width: 100%;
  }
}

/* ══════════════════════════════════════════════════════════════════
   NAVBAR
══════════════════════════════════════════════════════════════════ */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0;
  transition:
    background var(--transition),
    box-shadow var(--transition);
}
#navbar.scrolled {
  background: rgba(8, 8, 8, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--border);
}

.nav-container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 1.25rem clamp(20px, 5vw, 60px);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--white);
  transition: opacity var(--transition);
  animation: logo-breathe 5s ease-in-out infinite;
}
.nav-logo:hover {
  opacity: 0.7;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}
.nav-links a {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--muted);
  transition: color var(--transition);
  position: relative;
}
.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0%;
  height: 1px;
  background: var(--white);
  transition: width var(--transition);
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
}
.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-cta {
  color: var(--white) !important;
  border: 1px solid var(--border-hover);
  padding: 0.5rem 1.2rem;
  border-radius: 8px;
  transition:
    background var(--transition),
    border-color var(--transition),
    color var(--transition) !important;
}
.nav-cta:hover {
  background: var(--white);
  color: var(--bg) !important;
  border-color: var(--white);
}
.nav-cta::after {
  display: none;
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}
.nav-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ══════════════════════════════════════════════════════════════════
   HERO
══════════════════════════════════════════════════════════════════ */
#hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 120px 20px 80px;
}

#hero::before {
  content: "";
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(
      circle at 20% 30%,
      rgba(255, 255, 255, 0.08),
      transparent 42%
    ),
    radial-gradient(
      circle at 75% 65%,
      rgba(255, 255, 255, 0.06),
      transparent 46%
    );
  pointer-events: none;
  animation: hero-ambient-drift 18s ease-in-out infinite alternate;
}

#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero-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% 70% at 50% 50%,
    black 40%,
    transparent 100%
  );
  pointer-events: none;
  animation: grid-drift 28s linear infinite;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 760px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

/* Avatar */
.hero-avatar {
  position: relative;
  width: 160px;
  height: 160px;
  margin-bottom: 0.5rem;
}
.avatar-ring {
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 1px solid var(--border-hover);
  animation: ring-spin 8s linear infinite;
  border-top-color: rgba(255, 255, 255, 0.5);
}
@keyframes ring-spin {
  to {
    transform: rotate(360deg);
  }
}
.avatar-img {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--surface-2);
}
.avatar-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Hero text */
.hero-eyebrow {
  font-family: var(--font-display);
  font-size: 0.9rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero-name {
  font-family: var(--font-display);
  font-size: clamp(4.5rem, 14vw, 9rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 0.9;
  color: var(--white);
  margin: 0.1em 0;
  animation: hero-name-glow 5s ease-in-out infinite;
}

.hero-roles {
  font-family: var(--font-display);
  font-size: clamp(0.9rem, 2vw, 1.1rem);
  color: var(--muted);
  letter-spacing: 0.06em;
  min-height: 1.6em;
}
.role-prefix {
  color: var(--surface-2);
  color: #444;
}
#typed-text {
  color: var(--off-white);
}
.cursor {
  display: inline-block;
  color: var(--white);
  animation: blink 0.9s step-end infinite;
}
@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

.hero-tagline {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--muted);
  font-weight: 300;
  max-width: 460px;
  animation: tagline-drift 7s ease-in-out infinite;
}

.hero-btns {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 0.5rem;
}

/* Scroll indicator */
.scroll-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  margin-top: 2rem;
  color: var(--muted);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  animation: indicator-fade 4s ease-in-out infinite;
}
.scroll-line {
  width: 1px;
  height: 50px;
  background: linear-gradient(to bottom, var(--muted), transparent);
  animation: scroll-pulse 2s ease-in-out infinite;
}
@keyframes scroll-pulse {
  0%,
  100% {
    opacity: 0.5;
    transform: scaleY(1);
  }
  50% {
    opacity: 1;
    transform: scaleY(1.2);
  }
}

/* ══════════════════════════════════════════════════════════════════
   ABOUT
══════════════════════════════════════════════════════════════════ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.about-text p {
  color: var(--muted);
  margin-bottom: 1.2rem;
  font-size: 1.05rem;
  max-width: 480px;
}

.about-card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.about-stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  color: var(--muted);
  transition: var(--transition);
  animation: card-glow 6s ease-in-out infinite;
}
.about-stat-card i {
  font-size: 1.5rem;
  color: var(--white);
  transition:
    transform var(--transition),
    color var(--transition);
}
.about-stat-card:hover {
  border-color: var(--border-hover);
  background: var(--surface-2);
  color: var(--white);
  transform: translateY(-4px);
}
.about-stat-card:hover i {
  transform: translateY(-2px) scale(1.08) rotate(-6deg);
}

/* ══════════════════════════════════════════════════════════════════
   SERVICES / WHAT I DO
══════════════════════════════════════════════════════════════════ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1.25rem;
}

.service-card {
  grid-column: span 2;
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  animation: card-glow 7s ease-in-out infinite;
}

.services-grid .service-card:nth-child(4) {
  grid-column: 2 / span 2;
}

.services-grid .service-card:nth-child(5) {
  grid-column: 4 / span 2;
}
.service-card::after {
  content: "";
  position: absolute;
  top: -120%;
  left: -40%;
  width: 70%;
  height: 250%;
  background: linear-gradient(
    120deg,
    transparent 25%,
    rgba(255, 255, 255, 0.14) 50%,
    transparent 75%
  );
  transform: rotate(12deg);
  opacity: 0;
  pointer-events: none;
}
.service-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-6px);
}
.service-card:hover::after {
  opacity: 1;
  animation: sweep-shine 0.9s ease;
}

.card-glow {
  position: absolute;
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 120px;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.07) 0%,
    transparent 70%
  );
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}
.service-card:hover .card-glow {
  opacity: 1;
}

.service-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-2);
  border-radius: 12px;
  border: 1px solid var(--border);
  font-size: 1.2rem;
  color: var(--white);
  transition: var(--transition);
}
.service-card:hover .service-icon {
  background: var(--white);
  color: var(--bg);
  transform: scale(1.08) rotate(-4deg);
}

.service-card h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
}
.service-card p {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.65;
}

.collab-card {
  border-style: dashed;
  border-color: rgba(255, 255, 255, 0.15);
}
.collab-card:hover {
  border-style: solid;
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.03);
}

.card-link {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.05em;
  margin-top: auto;
  transition: color var(--transition);
}
.collab-card:hover .card-link {
  color: var(--white);
}

/* ══════════════════════════════════════════════════════════════════
   IMPACT
══════════════════════════════════════════════════════════════════ */
.impact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.impact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  text-align: center;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  animation: card-glow 8s ease-in-out infinite;
}
.impact-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    110deg,
    transparent 30%,
    rgba(255, 255, 255, 0.08) 50%,
    transparent 70%
  );
  transform: translateX(-120%);
  pointer-events: none;
}
.impact-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
}
.impact-card:hover::before {
  animation: card-scan 0.9s ease;
}
.impact-card p {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.5rem;
  font-weight: 500;
}

.impact-number {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 5vw, 4rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1;
}
.impact-suffix {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 800;
  color: var(--muted);
  line-height: 1;
}

/* ══════════════════════════════════════════════════════════════════
   PROJECTS
══════════════════════════════════════════════════════════════════ */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.projects-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin: -1rem 0 2rem;
}

.project-filter-btn {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.45rem 0.85rem;
  transition: var(--transition);
}

.project-filter-btn:hover {
  color: var(--white);
  border-color: var(--border-hover);
  transform: translateY(-1px);
}

.project-filter-btn.active {
  color: var(--bg);
  background: var(--white);
  border-color: var(--white);
}

.project-filter-btn:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 2px;
}

.project-card.is-hidden-filter {
  display: none;
}

.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  animation: card-glow 9s ease-in-out infinite;
}
.project-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 70% 20%,
    rgba(255, 255, 255, 0.03),
    transparent 70%
  );
  opacity: 0;
  transition: opacity 0.5s ease;
}
.project-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-5px);
}
.project-card:hover::before {
  opacity: 1;
}

.project-card:hover .project-tag,
.project-card:hover .project-stack span,
.project-card:hover .project-link {
  transform: translateY(-2px);
}

.project-card:hover .project-link {
  box-shadow: 0 10px 25px rgba(255, 255, 255, 0.08);
}

.project-card[data-project-url] {
  cursor: pointer;
}

.project-card[data-project-url]:focus-visible {
  outline: 2px solid var(--border-hover);
  outline-offset: 4px;
}

.project-card h3 {
  transition:
    transform var(--transition),
    letter-spacing var(--transition);
}
.project-card:hover h3 {
  transform: translateX(2px);
  letter-spacing: 0.01em;
}

.project-tag {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: 0.25rem 0.75rem;
  border-radius: 99px;
  display: inline-block;
  width: fit-content;
}

.project-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
}
.project-card p {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.65;
  flex: 1;
}

.project-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.project-stack {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.project-stack span {
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--muted);
  background: var(--surface-2);
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  border: 1px solid var(--border);
}

.project-link {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.8rem;
  color: var(--muted);
  transition: var(--transition);
  flex-shrink: 0;
}
.project-link:hover {
  background: var(--white);
  color: var(--bg);
  border-color: var(--white);
  transform: translateY(-2px) scale(1.03);
}
.modal-trigger-card {
  cursor: pointer;
}
.modal-trigger-card:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 3px;
}

/* SPACES */
#spaces {
  border-top: 1px solid var(--border);
}

.spaces-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
}

.spaces-heading {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 7vw, 5.5rem);
  line-height: 0.95;
  color: var(--white);
  margin-bottom: 1.5rem;
}

.spaces-text {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--muted);
  margin-bottom: 1rem;
  max-width: 60ch;
}

.spaces-text strong {
  color: var(--white);
  font-weight: 500;
}

.waveform {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 80px;
  margin: 2rem 0;
}

.wave-bar {
  flex: 1;
  background: var(--white);
  border-radius: 2px;
  animation: wave 1.4s ease-in-out infinite;
}

@keyframes wave {
  0%,
  100% {
    transform: scaleY(0.2);
    opacity: 0.3;
  }
  50% {
    transform: scaleY(1);
    opacity: 1;
  }
}

.topics-grid {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.topic-item {
  padding: 1rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: 0.9rem;
  color: var(--muted);
  background: var(--surface);
  transition: var(--transition);
}

.topic-item:hover {
  border-color: var(--border-hover);
  color: var(--white);
  transform: translateX(6px);
}

.topic-tag {
  font-family: var(--font-display);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
  white-space: nowrap;
}

/* CTA card */
.project-card--cta {
  border-style: dashed;
  border-color: rgba(255, 255, 255, 0.15);
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 260px;
}
.project-card--cta:hover {
  border-style: solid;
  border-color: var(--border-hover);
}
.cta-card-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}
.cta-icon {
  font-size: 1.8rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
}
.cta-card-inner h3 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--white);
  font-size: 1.2rem;
}
.cta-card-inner p {
  font-size: 0.88rem;
  color: var(--muted);
}

/* ══════════════════════════════════════════════════════════════════
   PROJECT MODAL
══════════════════════════════════════════════════════════════════ */
.project-modal {
  position: fixed;
  inset: 0;
  z-index: 1500;
  display: grid;
  place-items: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.project-modal.open {
  opacity: 1;
  pointer-events: auto;
}

.project-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.74);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.project-modal.open .project-modal-backdrop {
  opacity: 1;
}

.project-modal-dialog {
  position: relative;
  width: min(920px, 100%);
  border-radius: 18px;
  border: 1px solid var(--border-hover);
  background: linear-gradient(145deg, #151515, #0f0f0f);
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.55);
  padding: 1.3rem 1.3rem 1.5rem;
  transform: translateY(24px) scale(0.98);
  opacity: 0;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  overflow: hidden;
}

.project-modal.open .project-modal-dialog {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.project-modal-close {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--border-hover);
  color: var(--off-white);
  background: rgba(255, 255, 255, 0.04);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  z-index: 3;
}

.project-modal-close:hover {
  background: var(--white);
  color: var(--bg);
}

.project-modal-action {
  position: absolute;
  top: 0.85rem;
  right: 3.6rem;
  height: 36px;
  padding: 0 0.95rem;
  border-radius: 10px;
  border: 1px solid var(--border-hover);
  color: var(--off-white);
  font-family: var(--font-display);
  font-size: 0.74rem;
  letter-spacing: 0.04em;
  display: inline-flex;
  align-items: center;
  transition: var(--transition);
  background: rgba(255, 255, 255, 0.04);
  z-index: 3;
  animation: recording-cta-pulse 2.8s ease-in-out infinite;
}

.project-modal-action:hover {
  background: var(--white);
  color: var(--bg);
}

.project-modal-head {
  margin-bottom: 1rem;
  padding-right: 12rem;
}

.project-modal-tag {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--border);
  background: var(--surface-2);
  border-radius: 999px;
  padding: 0.24rem 0.7rem;
  margin-bottom: 0.65rem;
}

.project-modal-head h3 {
  font-family: var(--font-display);
  color: var(--white);
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  line-height: 1.2;
}

.project-slider {
  display: grid;
  grid-template-columns: 48px 1fr 48px;
  gap: 0.6rem;
  align-items: center;
}

.project-slide-track-wrap {
  border-radius: 14px;
  border: 1px solid var(--border);
  overflow: hidden;
  background: #0d0d0d;
}

.project-slide-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.project-slide {
  min-width: 100%;
  aspect-ratio: 4 / 5;
  max-height: 72vh;
}

.project-slide-link {
  display: block;
  width: 100%;
  height: 100%;
}

.project-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transform: scale(1);
}

.project-slide-link:hover img {
  transform: scale(1.03);
}

.project-slide-nav {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid var(--border-hover);
  background: rgba(255, 255, 255, 0.03);
  color: var(--off-white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.project-slide-nav:hover:not(:disabled) {
  background: var(--white);
  color: var(--bg);
}

.project-slide-nav:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.project-slide-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  margin-top: 0.8rem;
}

.project-slide-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1px solid var(--border-hover);
  background: transparent;
  transition: var(--transition);
}

.project-slide-dot.active {
  background: var(--white);
  transform: scale(1.2);
  animation: active-dot-pulse 1.2s ease-in-out infinite;
}

.about-card-grid .about-stat-card:nth-child(2),
.services-grid .service-card:nth-child(2),
.impact-grid .impact-card:nth-child(2),
.projects-grid .project-card:nth-child(2) {
  animation-delay: 0.4s;
}

.about-card-grid .about-stat-card:nth-child(3),
.services-grid .service-card:nth-child(3),
.impact-grid .impact-card:nth-child(3),
.projects-grid .project-card:nth-child(3) {
  animation-delay: 0.8s;
}

.about-card-grid .about-stat-card:nth-child(4),
.services-grid .service-card:nth-child(4),
.impact-grid .impact-card:nth-child(4),
.projects-grid .project-card:nth-child(4) {
  animation-delay: 1.2s;
}

.services-grid .service-card:nth-child(5) {
  animation-delay: 1.6s;
}

.project-card:hover .project-stack span,
.project-card:hover .project-tag {
  transform: translateY(-1px);
}

.project-stack span,
.project-tag {
  transition:
    transform var(--transition),
    border-color var(--transition),
    background-color var(--transition),
    color var(--transition);
}

.social-btn,
.footer-top,
.project-link,
.project-modal-close,
.project-modal-action,
.project-slide-nav,
.project-slide-dot,
.about-stat-card,
.service-card {
  transition:
    transform var(--transition),
    background-color var(--transition),
    border-color var(--transition),
    color var(--transition),
    opacity var(--transition),
    box-shadow var(--transition);
}

/* ══════════════════════════════════════════════════════════════════
   CONTACT
══════════════════════════════════════════════════════════════════ */
.contact-section {
  background: var(--bg);
  position: relative;
  overflow: hidden;
}
.contact-section::before {
  content: "";
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 700px;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.03) 0%,
    transparent 70%
  );
  pointer-events: none;
}

.contact-inner {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.contact-heading {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--white);
}
.contact-heading em {
  font-style: normal;
  -webkit-text-stroke: 1px var(--white);
  color: transparent;
}

.contact-sub {
  font-size: 1rem;
  color: var(--muted);
  max-width: 480px;
}

.contact-socials {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1.5rem;
  border: 1px solid var(--border-hover);
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  transition: var(--transition);
}
.social-btn i {
  font-size: 1rem;
}
.social-btn i {
  transition: transform 0.35s ease;
}
.social-btn:hover {
  color: var(--white);
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.04);
  transform: translateY(-3px);
}
.social-btn:hover i {
  transform: translateY(-1px) rotate(-8deg) scale(1.08);
}

.contact-availability {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 16px;
  color: var(--gray-400);
  margin-bottom: 64px;
  position: relative;
  z-index: 1;
  font-family: var(--font-mono);
  letter-spacing: 0.1em;
}
.availability-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.6);
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0% {
    box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.6);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(74, 222, 128, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(74, 222, 128, 0);
  }
}

/* ══════════════════════════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════════════════════════ */
#footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 2rem 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer-logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: 0.12em;
  color: var(--white);
}
.footer-copy {
  font-size: 0.82rem;
  color: var(--muted);
}
.footer-top {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  transition:
    color var(--transition),
    transform var(--transition);
}
.footer-top:hover {
  color: var(--white);
  transform: translateY(-2px);
}

/* ══════════════════════════════════════════════════════════════════
   BACK TO TOP
══════════════════════════════════════════════════════════════════ */
#back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 999;
  width: 44px;
  height: 44px;
  background: var(--surface-2);
  border: 1px solid var(--border-hover);
  border-radius: 12px;
  color: var(--white);
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition:
    opacity var(--transition),
    transform var(--transition),
    background var(--transition);
}
#back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  animation: backtop-float 2.6s ease-in-out infinite;
}
#back-to-top:hover {
  background: var(--white);
  color: var(--bg);
}

@keyframes hero-ambient-drift {
  0% {
    transform: translate3d(-2%, -1%, 0) scale(1);
  }
  50% {
    transform: translate3d(2%, 1%, 0) scale(1.03);
  }
  100% {
    transform: translate3d(-1%, 2%, 0) scale(1.01);
  }
}

@keyframes reveal-pop {
  0% {
    opacity: 0;
    transform: translateY(40px) scale(0.985);
  }
  70% {
    opacity: 1;
    transform: translateY(-2px) scale(1.01);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes logo-breathe {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.8;
  }
}

@keyframes tagline-drift {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-3px);
  }
}

@keyframes indicator-fade {
  0%,
  100% {
    opacity: 0.8;
  }
  50% {
    opacity: 1;
  }
}

@keyframes card-glow {
  0%,
  100% {
    box-shadow: 0 0 0 rgba(255, 255, 255, 0);
  }
  50% {
    box-shadow: 0 10px 24px rgba(255, 255, 255, 0.05);
  }
}

@keyframes recording-cta-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 rgba(255, 255, 255, 0);
  }
  50% {
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.08);
  }
}

@keyframes active-dot-pulse {
  0%,
  100% {
    transform: scale(1.2);
  }
  50% {
    transform: scale(1.4);
  }
}

@keyframes grid-drift {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 120px 120px;
  }
}

@keyframes hero-name-glow {
  0%,
  100% {
    text-shadow: 0 0 0 rgba(255, 255, 255, 0);
  }
  50% {
    text-shadow: 0 0 24px rgba(255, 255, 255, 0.16);
  }
}

@keyframes sweep-shine {
  from {
    transform: translateX(0) rotate(12deg);
  }
  to {
    transform: translateX(230%) rotate(12deg);
  }
}

@keyframes card-scan {
  from {
    transform: translateX(-120%);
  }
  to {
    transform: translateX(120%);
  }
}

@keyframes backtop-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-4px);
  }
}

@media (prefers-reduced-motion: reduce) {
  #hero::before,
  .hero-name,
  .service-card:hover::after,
  .impact-card:hover::before,
  #back-to-top.visible {
    animation: none !important;
  }
}

/* ══════════════════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════════════════ */
@media (max-width: 1100px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .service-card {
    grid-column: auto;
  }
  .services-grid .service-card:nth-child(4),
  .services-grid .service-card:nth-child(5) {
    grid-column: auto;
  }
  .impact-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 860px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .about-visual {
    order: -1;
  }
  .about-card-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .spaces-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  /* Nav */
  .nav-toggle {
    display: flex;
  }
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(320px, 80vw);
    height: 100svh;
    background: rgba(8, 8, 8, 0.97);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    gap: 2.5rem;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-left: 1px solid var(--border);
    padding: 2rem;
  }
  .nav-links.open {
    right: 0;
  }
  .nav-links a {
    font-size: 1rem;
  }

  /* Sections */
  .services-grid {
    grid-template-columns: 1fr;
  }
  .service-card {
    grid-column: 1 / -1;
  }
  .services-grid .service-card:nth-child(4),
  .services-grid .service-card:nth-child(5) {
    grid-column: 1 / -1;
  }
  .projects-grid {
    grid-template-columns: 1fr;
  }
  .projects-filters {
    justify-content: flex-start;
  }
  .impact-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .about-card-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-btns {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 480px) {
  .impact-grid {
    grid-template-columns: 1fr;
  }
  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .project-modal-action {
    position: static;
    margin-bottom: 0.9rem;
  }

  .project-modal-head {
    padding-right: 0;
  }

  .project-slider {
    grid-template-columns: 1fr;
  }

  .project-slide-nav {
    display: none;
  }
}
