/* ============================================
   DRAGONFLY-INSPIRED DESIGN SYSTEM
   ============================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@300;400;500&family=Space+Grotesk:wght@300;400;500;600;700&family=Space+Mono:wght@400;700&display=swap');

/* --- CSS Custom Properties --- */
:root {
  /* Theme Colors */
  --bg: #000000;
  --fg: #ffffff;
  --grey-50: #0d0d0d;
  --grey-100: rgba(26, 26, 26, 0.85);
  --grey-150: #1a1a1a;
  --grey-200: #2a2a2a;
  --grey-300: #666666;
  --grey-400: #999999;
  --black: #0a0a0a;

  /* Accent Colors */
  --orange: #FF6B35;
  --pink: #FF3864;
  --purple: #7B61FF;

  /* Active Theme (default: orange) */
  --theme-accent: var(--orange);
  --theme-contrast: var(--orange);

  /* Typography */
  --font-serif: 'Cormorant Garamond', 'Georgia', serif;
  --font-sans: 'Space Grotesk', 'Arial', sans-serif;
  --font-mono: 'Space Mono', 'Courier New', monospace;

  /* Spacing */
  --spacer-4: 4px;
  --spacer-8: 8px;
  --spacer-12: 12px;
  --spacer-16: 16px;
  --spacer-24: 24px;
  --spacer-32: 32px;
  --spacer-48: 48px;
  --spacer-64: 64px;
  --spacer-96: 96px;
  --spacer-128: 128px;

  /* Easing */
  --ease-in-out: cubic-bezier(0.37, 0, 0.63, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* --- Theme Variants --- */
[data-theme="orange"] { --theme-accent: var(--orange); --theme-contrast: var(--orange); }
[data-theme="pink"]   { --theme-accent: var(--pink);   --theme-contrast: var(--pink); }
[data-theme="purple"] { --theme-accent: var(--purple); --theme-contrast: var(--purple); }

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--bg);
  color: var(--fg);
  font-family: var(--font-serif);
  font-weight: 300;
  line-height: 1.4;
  overflow-x: hidden;
  cursor: default;
}

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

ul, ol {
  list-style: none;
}

img, video, canvas {
  display: block;
  max-width: 100%;
}

button {
  background: none;
  border: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

::selection {
  background: var(--theme-accent);
  color: var(--bg);
}

/* --- Typography Classes --- */
.display {
  font-family: var(--font-serif);
  font-size: clamp(72px, 15vw, 280px);
  font-weight: 300;
  letter-spacing: -0.06em;
  line-height: 0.9;
  text-transform: uppercase;
}

.h1 {
  font-family: var(--font-serif);
  font-size: clamp(60px, 8vw, 128px);
  font-weight: 300;
  letter-spacing: -0.05em;
  line-height: 0.9;
  text-transform: uppercase;
}

.h2 {
  font-family: var(--font-sans);
  font-size: clamp(32px, 4vw, 54px);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1;
  text-transform: uppercase;
}

.h3 {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1;
  text-transform: uppercase;
}

.h4 {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.12;
  text-transform: uppercase;
}

.p-large {
  font-family: var(--font-serif);
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.4;
}

.p {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.4;
}

.label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1;
  text-transform: uppercase;
}

.label-lg {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.06em;
  line-height: 1;
  text-transform: uppercase;
}

/* --- Layout --- */
.container {
  width: 100%;
  max-width: 100%;
  padding: 0 var(--spacer-24);
}

@media (min-width: 800px) {
  .container {
    padding: 0 var(--spacer-48);
  }
}

.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--spacer-16);
}

@media (min-width: 800px) {
  .grid {
    grid-template-columns: repeat(12, 1fr);
    gap: var(--spacer-24);
  }
}

/* --- Section Base --- */
.section {
  position: relative;
  padding: var(--spacer-96) 0;
  border-top: 1px solid var(--grey-200);
}

.section__label {
  display: flex;
  align-items: center;
  gap: var(--spacer-8);
  margin-bottom: var(--spacer-48);
  color: var(--grey-300);
}

.section__label::before {
  content: attr(data-index);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  color: var(--grey-300);
}

.section__label span {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ============================================
   HEADER - DRAGONFLY CORNER LETTERS STYLE
   ============================================ */
.site-header {
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
}

/* Corner Letters */
.corner-letter {
  position: fixed;
  font-family: var(--font-serif);
  font-size: clamp(40px, 5vw, 80px);
  font-weight: 300;
  text-transform: uppercase;
  color: var(--fg);
  z-index: 101;
  pointer-events: auto;
  cursor: default;
  line-height: 1;
  transition: color 0.3s var(--ease-in-out);
  user-select: none;
}

.corner-letter:hover {
  color: var(--theme-accent);
}

.corner-tl {
  top: var(--spacer-16);
  left: var(--spacer-24);
}

.corner-tr {
  top: var(--spacer-16);
  right: var(--spacer-24);
}

.corner-bl {
  bottom: var(--spacer-16);
  left: var(--spacer-24);
}

.corner-br {
  bottom: var(--spacer-16);
  right: var(--spacer-24);
}

@media (min-width: 800px) {
  .corner-tl { top: var(--spacer-24); left: var(--spacer-48); }
  .corner-tr { top: var(--spacer-24); right: var(--spacer-48); }
  .corner-bl { bottom: var(--spacer-24); left: var(--spacer-48); }
  .corner-br { bottom: var(--spacer-24); right: var(--spacer-48); }
}

/* Center Navigation Bar */
.center-nav {
  position: fixed;
  top: var(--spacer-16);
  left: 50%;
  transform: translateX(-50%);
  z-index: 102;
  pointer-events: auto;
}

@media (min-width: 800px) {
  .center-nav {
    top: var(--spacer-24);
  }
}

.center-nav__inner {
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--grey-100);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--grey-200);
  height: 40px;
  padding: 0;
  overflow: hidden;
}

.center-nav__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 0 var(--spacer-16);
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--fg);
  border-right: 1px solid var(--grey-200);
  transition: background 0.2s, color 0.2s;
  cursor: pointer;
}

.center-nav__icon:hover {
  background: var(--theme-accent);
  color: var(--bg);
}

.center-nav__dots {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 var(--spacer-16);
  height: 100%;
  border-right: 1px solid var(--grey-200);
}

.center-dot {
  width: 8px;
  height: 8px;
  border-radius: 0;
  cursor: pointer;
  transition: transform 0.2s var(--ease-spring), opacity 0.2s;
  opacity: 0.8;
}

.center-dot:hover {
  transform: scale(1.3);
  opacity: 1;
}

.center-dot.active {
  opacity: 1;
  box-shadow: 0 0 6px currentColor;
}

.center-dot.theme-dot--orange { background: var(--orange); }
.center-dot.theme-dot--pink   { background: var(--pink); }
.center-dot.theme-dot--purple { background: var(--purple); }
.center-dot--white { background: #ffffff; }
.center-dot--dim   { background: #444444; }

.center-nav__menu {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 0 var(--spacer-24);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  pointer-events: auto;
}

.center-nav__menu:hover {
  background: var(--theme-accent);
  color: var(--bg);
}

.center-nav__menu .label {
  font-size: 11px;
  letter-spacing: 0.08em;
}

/* --- Hamburger (kept for menu-toggle JS compatibility) --- */
.menu-toggle {
  cursor: pointer;
  z-index: 110;
}

/* --- Navigation Menu (slide-out panel) --- */
.site-nav {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 400px;
  height: 100vh;
  background: var(--grey-150);
  z-index: 105;
  transform: translateX(100%);
  transition: transform 0.5s var(--ease-out);
  display: flex;
  flex-direction: column;
  padding: var(--spacer-96) var(--spacer-24) var(--spacer-48);
}

.site-nav.open {
  transform: translateX(0);
}

.site-nav__overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 104;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease-in-out);
}

.site-nav__overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.site-nav__links {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.nav-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--spacer-16);
  background: var(--black);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: background 0.2s, color 0.2s;
}

.nav-item::before {
  content: attr(data-index);
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--grey-300);
  letter-spacing: 0.04em;
  margin-right: var(--spacer-16);
  transition: color 0.2s;
}

.nav-item .nav-arrow {
  width: 10px;
  height: 10px;
  opacity: 0;
  transform: translateX(-4px);
  transition: all 0.2s var(--ease-in-out);
}

.nav-item .nav-arrow svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.nav-item:hover {
  background: var(--theme-accent);
  color: var(--bg);
}

.nav-item:hover::before { color: var(--bg); }
.nav-item:hover .nav-arrow { opacity: 1; transform: translateX(0); }

/* Theme Switcher */
.theme-switcher {
  display: flex;
  gap: var(--spacer-4);
  padding: var(--spacer-12) 0;
}

.theme-dot {
  width: 24px;
  height: 24px;
  cursor: pointer;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s var(--ease-spring);
}

.theme-dot:hover { transform: scale(1.15); }
.theme-dot.active::after {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--black);
}

.theme-dot--orange { background: var(--orange); }
.theme-dot--pink   { background: var(--pink); }
.theme-dot--purple { background: var(--purple); }

/* Nav social links */
.nav-socials {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacer-4);
  margin-top: var(--spacer-12);
}

.nav-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacer-12);
  background: var(--black);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: background 0.2s, color 0.2s;
}

.nav-social-link:hover {
  background: var(--theme-accent);
  color: var(--bg);
}

/* ============================================
   HERO SECTION - FULLSCREEN ASCII ART
   ============================================ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__ascii-fullscreen {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__ascii-fullscreen canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
}

.hero__scanline {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.06) 2px,
    rgba(0, 0, 0, 0.06) 4px
  );
  pointer-events: none;
  z-index: 1;
}

/* Bottom info bar */
.hero__bottom-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--spacer-24) var(--spacer-48);
  z-index: 2;
}

.hero__bottom-left,
.hero__bottom-center,
.hero__bottom-right {
  display: flex;
  align-items: center;
  gap: var(--spacer-8);
}

.hero__bottom-left .status-dot {
  width: 6px;
  height: 6px;
  background: #4ADE80;
  border-radius: 50%;
  animation: statusPulse 2s ease-in-out infinite;
}

@keyframes statusPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.4); }
  50% { box-shadow: 0 0 0 6px rgba(74, 222, 128, 0); }
}

.hero__bottom-center .label {
  color: var(--grey-300);
}

.hero__bottom-right .label {
  color: var(--grey-300);
  cursor: pointer;
  transition: color 0.2s;
}

.hero__bottom-right .label:hover {
  color: var(--theme-accent);
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about {
  padding: var(--spacer-128) 0;
}

.about__text {
  font-family: var(--font-serif);
  font-size: clamp(28px, 4vw, 56px);
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: -0.03em;
  max-width: 900px;
}

.about__text .accent {
  color: var(--theme-accent);
  font-style: italic;
}

.about__stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--spacer-24);
  margin-top: var(--spacer-96);
  padding-top: var(--spacer-48);
  border-top: 1px solid var(--grey-200);
}

@media (min-width: 800px) {
  .about__stats {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat {
  display: flex;
  flex-direction: column;
  gap: var(--spacer-12);
}

.stat__number {
  font-family: var(--font-serif);
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 300;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--theme-accent);
}

.stat__label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--grey-300);
}

/* ============================================
   PORTFOLIO SECTION
   ============================================ */
.portfolio {
  padding: var(--spacer-128) 0;
}

.portfolio__header {
  display: flex;
  flex-direction: column;
  gap: var(--spacer-32);
  margin-bottom: var(--spacer-64);
}

@media (min-width: 800px) {
  .portfolio__header {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }
}

.portfolio__filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacer-8);
}

.filter-btn {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: var(--spacer-8) var(--spacer-16);
  border: 1px solid var(--grey-200);
  color: var(--grey-300);
  cursor: pointer;
  transition: all 0.2s var(--ease-in-out);
}

.filter-btn:hover,
.filter-btn.active {
  border-color: var(--theme-accent);
  color: var(--fg);
  background: transparent;
}

.filter-btn.active {
  background: var(--theme-accent);
  color: var(--bg);
}

.portfolio__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
}

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

@media (min-width: 1200px) {
  .portfolio__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.portfolio-card {
  background: var(--grey-150);
  padding: var(--spacer-32);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 200px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: background 0.3s var(--ease-in-out);
}

.portfolio-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--theme-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease-out);
}

.portfolio-card:hover {
  background: var(--grey-200);
}

.portfolio-card:hover::before {
  transform: scaleX(1);
}

.portfolio-card__name {
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}

.portfolio-card__bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.portfolio-card__category {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--grey-300);
}

.portfolio-card__arrow {
  width: 16px;
  height: 16px;
  opacity: 0;
  transform: translate(-4px, 4px);
  transition: all 0.3s var(--ease-out);
}

.portfolio-card__arrow svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: var(--theme-accent);
  stroke-width: 2;
}

.portfolio-card:hover .portfolio-card__arrow {
  opacity: 1;
  transform: translate(0, 0);
}

/* ============================================
   WRITING / RESEARCH SECTION
   ============================================ */
.writing {
  padding: var(--spacer-128) 0;
}

.writing__featured {
  margin-bottom: var(--spacer-64);
  border-bottom: 1px solid var(--grey-200);
  padding-bottom: var(--spacer-64);
}

.featured-article {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacer-32);
  cursor: pointer;
}

@media (min-width: 800px) {
  .featured-article {
    grid-template-columns: 1fr 1fr;
    gap: var(--spacer-64);
  }
}

.featured-article__image {
  width: 100%;
  aspect-ratio: 16/10;
  background: var(--grey-150);
  position: relative;
  overflow: hidden;
}

.featured-article__image canvas {
  width: 100% !important;
  height: 100% !important;
}

.featured-article__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--spacer-24);
}

.featured-article__date {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--grey-300);
}

.featured-article__title {
  font-family: var(--font-serif);
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.03em;
  transition: color 0.2s;
}

.featured-article:hover .featured-article__title {
  color: var(--theme-accent);
}

.featured-article__excerpt {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.5;
  color: var(--grey-400);
  max-width: 500px;
}

.writing__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px;
}

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

.article-card {
  background: var(--grey-150);
  padding: var(--spacer-32);
  display: flex;
  flex-direction: column;
  gap: var(--spacer-24);
  min-height: 240px;
  cursor: pointer;
  position: relative;
  transition: background 0.2s;
}

.article-card::after {
  content: '→';
  position: absolute;
  bottom: var(--spacer-32);
  right: var(--spacer-32);
  font-size: 18px;
  color: var(--theme-accent);
  opacity: 0;
  transform: translateX(-8px);
  transition: all 0.3s var(--ease-out);
}

.article-card:hover {
  background: var(--grey-200);
}

.article-card:hover::after {
  opacity: 1;
  transform: translateX(0);
}

.article-card__date {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--grey-300);
}

.article-card__title {
  font-family: var(--font-serif);
  font-size: clamp(20px, 2vw, 24px);
  font-weight: 300;
  line-height: 1.2;
  letter-spacing: -0.02em;
  flex: 1;
}

.article-card:hover .article-card__title {
  color: var(--theme-accent);
}

.article-card__tag {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--grey-300);
  padding: var(--spacer-4) var(--spacer-8);
  border: 1px solid var(--grey-200);
  width: fit-content;
}

/* ============================================
   TEAM SECTION
   ============================================ */
.team {
  padding: var(--spacer-128) 0;
}

.team__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
}

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

@media (min-width: 1200px) {
  .team__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.team-card {
  background: var(--grey-150);
  padding: var(--spacer-32);
  display: flex;
  flex-direction: column;
  gap: var(--spacer-16);
  cursor: pointer;
  transition: background 0.2s;
}

.team-card:hover {
  background: var(--grey-200);
}

.team-card__avatar {
  width: 100%;
  aspect-ratio: 1;
  background: var(--black);
  position: relative;
  overflow: hidden;
  margin-bottom: var(--spacer-8);
}

.team-card__avatar canvas {
  width: 100% !important;
  height: 100% !important;
  position: absolute;
  top: 0;
  left: 0;
}

.team-card__name {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 500;
  text-transform: uppercase;
}

.team-card__role {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--grey-300);
}

.team-card__link {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--theme-accent);
  opacity: 0;
  transform: translateY(4px);
  transition: all 0.2s var(--ease-out);
}

.team-card:hover .team-card__link {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   CTA / PITCH SECTION
   ============================================ */
.cta {
  padding: var(--spacer-128) 0;
  text-align: center;
  position: relative;
}

.cta__content {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacer-32);
}

.cta__title {
  font-family: var(--font-serif);
  font-size: clamp(48px, 8vw, 120px);
  font-weight: 300;
  letter-spacing: -0.05em;
  line-height: 0.9;
  text-transform: uppercase;
}

.cta__desc {
  font-family: var(--font-serif);
  font-size: clamp(16px, 1.5vw, 20px);
  font-weight: 300;
  line-height: 1.5;
  color: var(--grey-400);
  max-width: 500px;
}

.cta__button {
  display: inline-flex;
  align-items: center;
  gap: var(--spacer-12);
  padding: var(--spacer-16) var(--spacer-48);
  border: 1px solid var(--theme-accent);
  color: var(--theme-accent);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: color 0.3s;
}

.cta__button::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--theme-accent);
  transform: translateY(101%);
  transition: transform 0.4s var(--ease-out);
}

.cta__button:hover {
  color: var(--bg);
}

.cta__button:hover::before {
  transform: translateY(0);
}

.cta__button span {
  position: relative;
  z-index: 1;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  border-top: 1px solid var(--grey-200);
  padding: var(--spacer-48) 0;
}

.footer__content {
  display: flex;
  flex-direction: column;
  gap: var(--spacer-48);
}

@media (min-width: 800px) {
  .footer__content {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }
}

.footer__left {
  display: flex;
  flex-direction: column;
  gap: var(--spacer-16);
}

.footer__logo {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: -0.04em;
}

.footer__copy {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--grey-300);
}

.footer__links {
  display: flex;
  gap: var(--spacer-32);
}

.footer__link {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--grey-400);
  transition: color 0.2s;
}

.footer__link:hover {
  color: var(--theme-accent);
}

.footer__socials {
  display: flex;
  gap: var(--spacer-16);
}

.footer__social {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--grey-200);
  transition: all 0.2s;
}

.footer__social:hover {
  border-color: var(--theme-accent);
  background: var(--theme-accent);
  color: var(--bg);
}

.footer__social svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--spacer-32);
  margin-top: var(--spacer-32);
  border-top: 1px solid var(--grey-200);
}

.footer__ascii-badge {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--grey-300);
  letter-spacing: 0.04em;
  white-space: pre;
  line-height: 1.3;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.text-accent { color: var(--theme-accent); }
.text-muted  { color: var(--grey-300); }
.text-center { text-align: center; }
.text-right  { text-align: right; }

.mt-0  { margin-top: 0; }
.mt-16 { margin-top: var(--spacer-16); }
.mt-32 { margin-top: var(--spacer-32); }
.mt-48 { margin-top: var(--spacer-48); }
.mt-64 { margin-top: var(--spacer-64); }

.mb-0  { margin-bottom: 0; }
.mb-16 { margin-bottom: var(--spacer-16); }
.mb-32 { margin-bottom: var(--spacer-32); }
.mb-48 { margin-bottom: var(--spacer-48); }

.hidden { display: none !important; }

/* Custom cursor */
.custom-cursor {
  position: fixed;
  width: 8px;
  height: 8px;
  background: var(--theme-accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: difference;
  transition: width 0.2s, height 0.2s, transform 0.1s;
  transform: translate(-50%, -50%);
  display: none;
}

@media (min-width: 800px) and (hover: hover) {
  .custom-cursor {
    display: block;
  }
  body {
    cursor: none;
  }
  a, button, [role="button"], .portfolio-card, .article-card, .team-card, .nav-item {
    cursor: none;
  }
}

.custom-cursor.hovering {
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid var(--theme-accent);
}

/* Noise overlay */
.noise-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9998;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
}

/* --- Loading Screen --- */
.loading-screen {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 10000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--spacer-16);
  transition: opacity 0.6s var(--ease-out), visibility 0.6s;
}

.loading-screen.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loading-text {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--grey-300);
}

.loading-bar {
  width: 120px;
  height: 1px;
  background: var(--grey-200);
  position: relative;
  overflow: hidden;
}

.loading-bar__fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: var(--theme-accent);
  transition: width 0.3s;
}

/* Reveal animations base */
.reveal {
  opacity: 0;
  transform: translateY(30px);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.reveal-delay-1 { transition-delay: 0.1s !important; }
.reveal-delay-2 { transition-delay: 0.2s !important; }
.reveal-delay-3 { transition-delay: 0.3s !important; }
.reveal-delay-4 { transition-delay: 0.4s !important; }

/* Stagger children */
.stagger-children .reveal:nth-child(1)  { transition-delay: 0.05s !important; }
.stagger-children .reveal:nth-child(2)  { transition-delay: 0.1s !important; }
.stagger-children .reveal:nth-child(3)  { transition-delay: 0.15s !important; }
.stagger-children .reveal:nth-child(4)  { transition-delay: 0.2s !important; }
.stagger-children .reveal:nth-child(5)  { transition-delay: 0.25s !important; }
.stagger-children .reveal:nth-child(6)  { transition-delay: 0.3s !important; }
.stagger-children .reveal:nth-child(7)  { transition-delay: 0.35s !important; }
.stagger-children .reveal:nth-child(8)  { transition-delay: 0.4s !important; }
.stagger-children .reveal:nth-child(9)  { transition-delay: 0.45s !important; }
.stagger-children .reveal:nth-child(10) { transition-delay: 0.5s !important; }
.stagger-children .reveal:nth-child(11) { transition-delay: 0.55s !important; }
.stagger-children .reveal:nth-child(12) { transition-delay: 0.6s !important; }

/* ============================================
   SCROLL TEXT — Large reveal on scroll
   ============================================ */
.scroll-text-section {
  position: relative;
  padding: var(--spacer-128) 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 80vh;
}

.scroll-text__inner {
  text-align: center;
  width: 100%;
  padding: 0 var(--spacer-24);
}

.scroll-text__line {
  font-family: var(--font-serif);
  font-size: clamp(48px, 12vw, 200px);
  font-weight: 300;
  letter-spacing: -0.06em;
  line-height: 0.9;
  text-transform: uppercase;
  color: var(--fg);
  opacity: 0;
  transform: translateY(60px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.scroll-text__line.visible {
  opacity: 1;
  transform: translateY(0);
}

.scroll-text__line.accent-text {
  color: var(--theme-accent);
}

/* ============================================
   3D DRAGON — Rotating wireframe
   ============================================ */
.dragon-3d-section {
  position: relative;
  padding: var(--spacer-96) 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 70vh;
  border-top: 1px solid var(--grey-200);
}

.dragon-3d__canvas-wrap {
  width: 100%;
  max-width: 600px;
  aspect-ratio: 1 / 1;
  position: relative;
}

.dragon-3d__canvas-wrap canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
}

.dragon-3d__label {
  display: flex;
  align-items: center;
  gap: var(--spacer-8);
  margin-top: var(--spacer-32);
}

/* ============================================
   PORTFOLIO-SPECIFIC ADDITIONS
   ============================================ */

/* --- Header Email --- */
.header-email {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  text-transform: lowercase;
  color: var(--grey-400);
  transition: color 0.2s;
  display: none;
}

@media (min-width: 800px) {
  .header-email {
    display: inline;
  }
}

.header-email:hover {
  color: var(--theme-accent);
}

/* --- Hero Tagline --- */
.hero__tagline {
  font-family: var(--font-serif);
  font-size: clamp(18px, 2.2vw, 28px);
  font-weight: 300;
  line-height: 1.4;
  letter-spacing: -0.02em;
  color: var(--grey-400);
  margin-top: var(--spacer-24);
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 0.8s var(--ease-out) 0.8s, transform 0.8s var(--ease-out) 0.8s;
}

body .hero__tagline {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 1.2s;
}

/* --- Hero Status Bar --- */
.hero__status {
  position: absolute;
  bottom: var(--spacer-32);
  left: 0;
  display: flex;
  align-items: center;
  gap: var(--spacer-32);
  z-index: 2;
}

.status-item {
  display: flex;
  align-items: center;
  gap: var(--spacer-8);
}

.status-dot {
  width: 6px;
  height: 6px;
  background: #4ADE80;
  border-radius: 50%;
  animation: statusPulse 2s ease-in-out infinite;
}

@keyframes statusPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.4); }
  50% { box-shadow: 0 0 0 6px rgba(74, 222, 128, 0); }
}

/* --- About Grid --- */
.about__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacer-64);
}

@media (min-width: 800px) {
  .about__grid {
    grid-template-columns: 1.2fr 1fr;
    gap: var(--spacer-96);
  }
}

.about__text-secondary {
  font-family: var(--font-serif);
  font-size: clamp(16px, 1.5vw, 18px);
  font-weight: 300;
  line-height: 1.6;
  letter-spacing: -0.01em;
  color: var(--grey-400);
  margin-top: var(--spacer-32);
}

/* --- Skills --- */
.about__skills-col {
  display: flex;
  flex-direction: column;
  gap: var(--spacer-32);
}

.skills-group {
  border-top: 1px solid var(--grey-200);
  padding-top: var(--spacer-16);
}

.skills-group__title {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--grey-300);
  margin-bottom: var(--spacer-16);
}

.skills-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacer-8);
}

.skill-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.02em;
  padding: var(--spacer-8) var(--spacer-12);
  background: var(--grey-150);
  border: 1px solid var(--grey-200);
  color: var(--grey-400);
  transition: all 0.25s var(--ease-out);
}

.skill-tag:hover {
  border-color: var(--theme-accent);
  color: var(--fg);
  background: rgba(255, 107, 53, 0.06);
}

/* --- Featured Project --- */
.project-featured {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacer-32);
  margin-bottom: var(--spacer-64);
  padding-bottom: var(--spacer-64);
  border-bottom: 1px solid var(--grey-200);
}

@media (min-width: 800px) {
  .project-featured {
    grid-template-columns: 1.3fr 1fr;
    gap: var(--spacer-48);
  }
}

.project-featured__image {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  background: var(--grey-150);
  overflow: hidden;
}

.project-featured__image canvas {
  width: 100% !important;
  height: 100% !important;
}

.project-featured__overlay {
  position: absolute;
  top: var(--spacer-16);
  left: var(--spacer-16);
  padding: var(--spacer-4) var(--spacer-12);
  background: var(--theme-accent);
  color: var(--bg);
}

.project-featured__info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--spacer-16);
}

.project-featured__meta {
  display: flex;
  gap: var(--spacer-16);
}

.project-featured__title {
  font-family: var(--font-serif);
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 300;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.project-featured__desc {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.6;
  color: var(--grey-400);
}

.project-featured__tech {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacer-8);
}

.tech-pill {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: var(--spacer-4) var(--spacer-12);
  border: 1px solid var(--grey-200);
  color: var(--grey-300);
}

.project-featured__links {
  display: flex;
  gap: var(--spacer-24);
  margin-top: var(--spacer-8);
}

.project-link {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--theme-accent);
  transition: opacity 0.2s;
}

.project-link:hover {
  opacity: 0.7;
}

/* --- Portfolio Card (enhanced with image & description) --- */
.portfolio-card {
  min-height: auto;
  padding: 0;
}

.portfolio-card__image-wrap {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: var(--black);
  overflow: hidden;
  position: relative;
}

.portfolio-card__canvas {
  width: 100% !important;
  height: 100% !important;
}

.portfolio-card__content {
  padding: var(--spacer-24);
  display: flex;
  flex-direction: column;
  gap: var(--spacer-8);
}

.portfolio-card__meta {
  margin-bottom: var(--spacer-4);
}

.portfolio-card__desc {
  font-family: var(--font-serif);
  font-size: 14px;
  font-weight: 300;
  line-height: 1.5;
  color: var(--grey-400);
  margin: var(--spacer-4) 0 var(--spacer-12);
}

/* --- Experience / Timeline --- */
.experience {
  padding: var(--spacer-128) 0;
}

.timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.timeline-item {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: var(--spacer-24);
}

@media (min-width: 800px) {
  .timeline-item {
    grid-template-columns: 60px 1fr;
    gap: var(--spacer-32);
  }
}

.timeline-item__marker {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 6px;
}

.timeline-item__dot {
  width: 10px;
  height: 10px;
  border: 2px solid var(--theme-accent);
  background: var(--bg);
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.timeline-item:first-child .timeline-item__dot {
  background: var(--theme-accent);
}

.timeline-item__line {
  width: 1px;
  flex: 1;
  background: var(--grey-200);
  margin: var(--spacer-8) 0;
}

.timeline-item__content {
  padding-bottom: var(--spacer-48);
}

.timeline-item__header {
  display: flex;
  flex-direction: column;
  gap: var(--spacer-8);
  margin-bottom: var(--spacer-16);
}

@media (min-width: 800px) {
  .timeline-item__header {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }
}

.timeline-item__title {
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}

.timeline-item__company {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 300;
  color: var(--theme-accent);
  margin-top: var(--spacer-4);
  display: block;
}

.timeline-item__date {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--grey-300);
  white-space: nowrap;
  padding-top: 4px;
}

.timeline-item__desc {
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 300;
  line-height: 1.6;
  color: var(--grey-400);
  max-width: 600px;
  margin-bottom: var(--spacer-16);
}

.timeline-item__tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacer-8);
}

/* --- CTA Alt Links --- */
.cta__alt-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--spacer-24);
  margin-top: var(--spacer-32);
  padding-top: var(--spacer-32);
  border-top: 1px solid var(--grey-200);
}

.cta__alt-link {
  display: flex;
  align-items: center;
  gap: var(--spacer-8);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--grey-400);
  transition: color 0.2s;
}

.cta__alt-link:hover {
  color: var(--theme-accent);
}

.cta__alt-link svg {
  transition: transform 0.2s var(--ease-spring);
}

.cta__alt-link:hover svg {
  transform: translateY(-2px);
}
