/* ============================================================
   ROOT & RESET
   ============================================================ */
:root {
  --black: #040404;
  --void: #080808;
  --charcoal: #111111;
  --smoke: #1a1a1a;
  --gold: #c9a84c;
  --gold2: #e8cc7a;
  --gold3: #f5e4a8;
  --ivory: #f0ece0;
  --muted: #6b6457;
  --fog: #2a2520;
  --cream: rgba(240, 236, 224, 0.7);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Outfit', sans-serif;
  background: var(--black);
  color: var(--ivory);
  overflow-x: hidden;
  cursor: none;
}

::selection {
  background: rgba(201, 168, 76, 0.25);
  color: var(--gold3);
}

/* ============================================================
   GRAIN OVERLAY
   ============================================================ */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9997;
  pointer-events: none;
  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)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.028;
  mix-blend-mode: overlay;
}

/* ============================================================
   CUSTOM CURSOR  — cinematic diamond × arc
   ============================================================ */

/* Hide all cursor elements on mobile (set per media query at bottom) */
#cursor-root {
  pointer-events: none;
}

/* ── Diamond crosshair (exact mouse position) ─────────────────── */
#c-diamond {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  width: 10px;
  height: 10px;
  pointer-events: none;
  transform: translate(-50%, -50%) rotate(45deg);
  background: var(--gold);
  transition: transform .12s, width .2s, height .2s, background .2s, box-shadow .2s;
  box-shadow: 0 0 6px rgba(201, 168, 76, 0.5);
}

/* ── Trailing aura ring (lagged) ─────────────────────────────── */
#c-aura {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9997;
  width: 44px;
  height: 44px;
  pointer-events: none;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 168, 76, 0.07) 0%, transparent 70%);
  transition: width .55s cubic-bezier(.23, 1, .32, 1),
    height .55s cubic-bezier(.23, 1, .32, 1);
}

/* ── SVG arc spinner ─────────────────────────────────────────── */
#c-svg {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9998;
  width: 52px;
  height: 52px;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: width .45s cubic-bezier(.23, 1, .32, 1),
    height .45s cubic-bezier(.23, 1, .32, 1),
    opacity .3s;
  animation: cursorSpin 3.5s linear infinite;
  overflow: visible;
}

#c-svg circle.arc1 {
  fill: none;
  stroke: rgba(201, 168, 76, 0.55);
  stroke-width: 1;
  stroke-dasharray: 28 58;
  /* arc + gap */
  stroke-linecap: round;
}

#c-svg circle.arc2 {
  fill: none;
  stroke: rgba(201, 168, 76, 0.2);
  stroke-width: .6;
  stroke-dasharray: 14 72;
  stroke-linecap: round;
  animation: cursorSpinR 5s linear infinite;
  /* opposite spin handled in JS */
}

@keyframes cursorSpin {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }

  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

@keyframes cursorSpinR {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }

  to {
    transform: translate(-50%, -50%) rotate(-360deg);
  }
}

/* ── Label that appears on hoverable elements ────────────────── */
#c-label {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  pointer-events: none;
  font-size: 0.6rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold2);
  opacity: 0;
  transform: translate(22px, 12px);
  font-family: 'Outfit', sans-serif;
  font-weight: 400;
  transition: opacity .25s;
  white-space: nowrap;
  text-shadow: 0 0 10px rgba(201, 168, 76, 0.6);
}

/* ── State: hovering a clickable ─────────────────────────────── */
body.cursor-hover #c-diamond {
  width: 6px;
  height: 6px;
  background: var(--gold2);
  box-shadow: 0 0 14px rgba(232, 204, 122, 0.8);
  transform: translate(-50%, -50%) rotate(45deg) scale(1.4);
}

body.cursor-hover #c-svg {
  width: 68px;
  height: 68px;
}

body.cursor-hover #c-aura {
  width: 68px;
  height: 68px;
  background: radial-gradient(circle, rgba(201, 168, 76, 0.12) 0%, transparent 65%);
}

body.cursor-hover #c-label {
  opacity: 1;
}

/* ── State: dragging / clicking ──────────────────────────────── */
body.cursor-click #c-diamond {
  transform: translate(-50%, -50%) rotate(45deg) scale(.6);
  background: var(--gold3);
  box-shadow: 0 0 20px rgba(245, 228, 168, 1);
}

body.cursor-click #c-aura {
  width: 90px;
  height: 90px;
}

/* ============================================================
   LOADING SCREEN
   ============================================================ */
#loader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: var(--black);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}

.loader-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(3rem, 8vw, 7rem);
  font-weight: 300;
  letter-spacing: .25em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(201, 168, 76, 0.3);
  animation: loaderName 2.5s ease forwards;
}

@keyframes loaderName {
  0% {
    -webkit-text-stroke-color: rgba(201, 168, 76, 0);
    letter-spacing: .6em;
  }

  60% {
    -webkit-text-stroke-color: rgba(201, 168, 76, 0.8);
    letter-spacing: .2em;
  }

  100% {
    -webkit-text-stroke-color: rgba(201, 168, 76, 0.4);
    letter-spacing: .25em;
  }
}

.loader-bar-wrap {
  width: 200px;
  height: 1px;
  background: rgba(255, 255, 255, 0.07);
  overflow: hidden;
}

.loader-bar {
  height: 100%;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  width: 0;
  animation: loaderBar 2.2s ease forwards;
}

@keyframes loaderBar {
  to {
    width: 100%;
  }
}

.loader-pct {
  font-size: .7rem;
  letter-spacing: .25em;
  color: var(--muted);
  font-weight: 300;
  animation: count 2.2s ease forwards;
}

#loader.hide {
  animation: loaderOut .9s ease forwards;
}

@keyframes loaderOut {
  to {
    opacity: 0;
    transform: scale(1.04);
    pointer-events: none;
  }
}

/* ============================================================
   NAV
   ============================================================ */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2.5rem 5vw;
  mix-blend-mode: difference;
  transition: padding .5s;
}

nav.solid {
  mix-blend-mode: normal;
  padding: 1.5rem 5vw;
  background: rgba(4, 4, 4, 0.88);
  backdrop-filter: blur(12px);
}

.logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  font-weight: 300;
  letter-spacing: .18em;
  color: var(--ivory);
  text-decoration: none;
  transition: letter-spacing .4s;
}

.logo:hover {
  letter-spacing: .28em;
}

.nav-r {
  display: flex;
  align-items: center;
  gap: 3rem;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ivory);
  text-decoration: none;
  font-weight: 300;
  opacity: .6;
  transition: opacity .3s;
  position: relative;
}

.nav-links a::before {
  content: '—';
  position: absolute;
  right: calc(100% + .5rem);
  opacity: 0;
  transition: opacity .3s;
}

.nav-links a:hover {
  opacity: 1;
}

.nav-links a:hover::before {
  opacity: 1;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.hamburger span {
  width: 22px;
  height: 1px;
  background: var(--ivory);
  transition: .3s;
}

/* ============================================================
   HERO
   ============================================================ */
#hero {
  height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 0 5vw 8vh;
  position: relative;
  overflow: hidden;
}

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

.hero-bg-text {
  position: absolute;
  right: -2vw;
  top: 50%;
  transform: translateY(-50%) rotate(90deg);
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(10rem, 24vw, 28rem);
  font-weight: 300;
  font-style: italic;
  color: transparent;
  -webkit-text-stroke: 1px rgba(201, 168, 76, 0.04);
  white-space: nowrap;
  user-select: none;
  letter-spacing: -.02em;
  animation: bgTextFloat 12s ease-in-out infinite;
}

@keyframes bgTextFloat {

  0%,
  100% {
    transform: translateY(-50%) rotate(90deg) translateX(0);
  }

  50% {
    transform: translateY(-50%) rotate(90deg) translateX(20px);
  }
}

.hero-eyebrow {
  font-size: .7rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 300;
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeUp .8s 3.2s ease forwards;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.hero-eyebrow::before {
  content: '';
  width: 40px;
  height: 1px;
  background: var(--gold);
  flex-shrink: 0;
}

.hero-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(5rem, 14vw, 16rem);
  font-weight: 300;
  line-height: .9;
  letter-spacing: -.02em;
  opacity: 0;
  animation: fadeUp .9s 3.4s ease forwards;
  position: relative;
}

.hero-name .fn {
  display: block;
  color: var(--ivory);
}

.hero-name .ln {
  display: block;
  color: transparent;
  -webkit-text-stroke: 1px var(--gold);
  letter-spacing: .04em;
  margin-left: .08em;
}

.hero-sub {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-top: 3rem;
  opacity: 0;
  animation: fadeUp .8s 3.6s ease forwards;
}

.hero-desc {
  font-size: clamp(.85rem, 1.5vw, 1rem);
  color: var(--muted);
  font-weight: 300;
  line-height: 1.8;
  max-width: 380px;
}

.hero-scroll {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .8rem;
  position: absolute;
  right: 5vw;
  bottom: 8vh;
  opacity: 0;
  animation: fadeUp .8s 4s ease forwards;
  text-decoration: none;
}

.scroll-label {
  font-size: .6rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--muted);
  writing-mode: vertical-rl;
}

.scroll-track {
  width: 1px;
  height: 60px;
  background: rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
}

.scroll-fill {
  position: absolute;
  inset: 0;
  background: var(--gold);
  transform: scaleY(0);
  transform-origin: top;
  animation: scrollFill 2s 4s ease infinite;
}

@keyframes scrollFill {
  0% {
    transform: scaleY(0);
    transform-origin: top;
  }

  50% {
    transform: scaleY(1);
    transform-origin: top;
  }

  50.1% {
    transform-origin: bottom;
  }

  100% {
    transform: scaleY(0);
    transform-origin: bottom;
  }
}

.hero-year {
  position: absolute;
  left: 5vw;
  bottom: 8vh;
  font-size: .65rem;
  letter-spacing: .2em;
  color: var(--muted);
  opacity: 0;
  animation: fadeUp .8s 4s ease forwards;
}

/* ============================================================
   REEL DIVIDER
   ============================================================ */
.reel-divider {
  width: 100%;
  overflow: hidden;
  padding: 0;
  border-top: 1px solid rgba(201, 168, 76, 0.08);
}

.reel-inner {
  display: flex;
  gap: 4rem;
  white-space: nowrap;
  animation: reel 20s linear infinite;
  padding: 1.2rem 0;
}

.reel-item {
  font-size: .65rem;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 300;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.reel-item::before {
  content: '✦';
  color: var(--gold);
  font-size: .5rem;
}

@keyframes reel {
  to {
    transform: translateX(-50%);
  }
}

/* ============================================================
   ABOUT
   ============================================================ */
#about {
  padding: 14vh 5vw;
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 10vw;
  align-items: start;
}

.about-left {
  position: sticky;
  top: 25vh;
}

/* Profile Image */
/* Profile Image */
.about-image-wrap {
  position: relative;
  width: 500px;
  height: 500px;
  margin-top: 4rem;
  padding: 12px;
  background: rgba(201, 168, 76, 0.02);
  border: 1px solid rgba(201, 168, 76, 0.1);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
  transition: transform 0.8s cubic-bezier(0.23, 1, 0.32, 1), border-color 0.8s;
}

.about-image-inner {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 2px;
}

.about-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
  /* Moves focus up to see the face */
  filter: grayscale(30%) contrast(110%) brightness(0.9);
  transition: filter 0.8s cubic-bezier(0.23, 1, 0.32, 1), transform 0.8s cubic-bezier(0.23, 1, 0.32, 1);
  display: block;
}

/* Corner Details */
.about-image-wrap::before,
.about-image-wrap::after,
.image-corners-accent::before,
.image-corners-accent::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  border: 1px solid var(--gold);
  z-index: 2;
  pointer-events: none;
  transition: width 0.4s, height 0.4s, border-color 0.4s;
}

.about-image-wrap::before {
  top: -1px;
  left: -1px;
  border-right: none;
  border-bottom: none;
}

.about-image-wrap::after {
  top: -1px;
  right: -1px;
  border-left: none;
  border-bottom: none;
}

.image-corners-accent::before {
  bottom: -1px;
  left: -1px;
  border-right: none;
  border-top: none;
}

.image-corners-accent::after {
  bottom: -1px;
  right: -1px;
  border-left: none;
  border-top: none;
}

.about-image-wrap:hover {
  transform: translateY(-10px);
  border-color: rgba(201, 168, 76, 0.3);
}

.about-image-wrap:hover::before,
.about-image-wrap:hover::after,
.about-image-wrap:hover .image-corners-accent::before,
.about-image-wrap:hover .image-corners-accent::after {
  width: 35px;
  height: 35px;
  border-color: var(--gold2);
}

.about-image-wrap:hover .about-image {
  filter: grayscale(0%) contrast(100%) brightness(1);
  transform: scale(1.05);
}

.image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(4, 4, 4, 0.6) 0%, transparent 40%);
  pointer-events: none;
  opacity: 0.8;
  transition: opacity 0.7s;
}

.about-image-wrap:hover .image-overlay {
  opacity: 0.3;
}

.about-chapter {
  font-size: .65rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
  font-weight: 300;
  opacity: 0;
}

.about-headline {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.5rem, 5vw, 5.5rem);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -.01em;
  color: var(--ivory);
  opacity: 0;
}

.about-headline em {
  font-style: italic;
  color: var(--gold);
}

.about-right {
  padding-top: 1rem;
}

.about-body p {
  font-size: clamp(.95rem, 1.4vw, 1.1rem);
  color: var(--muted);
  font-weight: 300;
  line-height: 2;
  margin-bottom: 2rem;
  opacity: 0;
}

.about-body p strong {
  color: var(--ivory);
  font-weight: 400;
}

.about-body p:last-of-type {
  margin-bottom: 3rem;
}

/* ============================================================
   SKILLS – language icons
   ============================================================ */
.skills-section-label {
  font-size: .65rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 300;
  margin-bottom: 2rem;
  opacity: 0;
}

.lang-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 1rem;
}

.lang-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .9rem;
  padding: 1.6rem 1rem;
  border: 1px solid rgba(201, 168, 76, 0.08);
  background: rgba(255, 255, 255, 0.015);
  transition: border-color .35s, background .35s, transform .35s;
  cursor: default;
  opacity: 0;
  position: relative;
  overflow: hidden;
}

.lang-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(201, 168, 76, 0.07), transparent 70%);
  opacity: 0;
  transition: opacity .4s;
}

.lang-card:hover {
  border-color: rgba(201, 168, 76, 0.35);
  background: rgba(201, 168, 76, 0.04);
  transform: translateY(-4px);
}

.lang-card:hover::before {
  opacity: 1;
}

.lang-icon {
  width: 40px;
  height: 40px;
  object-fit: contain;
  filter: grayscale(30%);
  transition: filter .35s;
}

.lang-card:hover .lang-icon {
  filter: grayscale(0%);
}

.lang-icon-svg {
  width: 40px;
  height: 40px;
}

.lang-name {
  font-size: .78rem;
  font-weight: 400;
  color: var(--ivory);
  letter-spacing: .08em;
}

.lang-level {
  font-size: .6rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 300;
}

/* Stats */
.stats-row {
  display: flex;
  gap: 3rem;
  margin-top: 4rem;
  border-top: 1px solid rgba(201, 168, 76, 0.1);
  padding-top: 3rem;
  opacity: 0;
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: .4rem;
}

.stat-n {
  font-family: 'Cormorant Garamond', serif;
  font-size: 3.5rem;
  font-weight: 300;
  line-height: 1;
  color: var(--gold);
}

.stat-l {
  font-size: .72rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 300;
}

/* ============================================================
   PROJECTS – GitHub showcase
   ============================================================ */
#projects {
  position: relative;
}

.projects-header {
  padding: 12vh 5vw 6vh;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  border-top: 1px solid rgba(201, 168, 76, 0.08);
}

.projects-chapter {
  font-size: .65rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 300;
  margin-bottom: 1.2rem;
  opacity: 0;
}

.projects-hl {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.5rem, 5vw, 5.5rem);
  font-weight: 300;
  opacity: 0;
}

/* GitHub CTA card */
.github-cta-wrap {
  padding: 0 5vw 10vh;
  display: flex;
  justify-content: center;
}

.github-cta {
  max-width: 900px;
  width: 100%;
  border: 1px solid rgba(201, 168, 76, 0.18);
  padding: 5rem 4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  text-align: center;
  background: rgba(255, 255, 255, 0.012);
  position: relative;
  overflow: hidden;
  opacity: 0;
}

.github-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.github-cta-icon {
  font-size: 3.5rem;
  line-height: 1;
}

.github-cta-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 4vw, 3.8rem);
  font-weight: 300;
  color: var(--ivory);
  line-height: 1.1;
}

.github-cta-title em {
  font-style: italic;
  color: var(--gold);
}

.github-cta-desc {
  font-size: .95rem;
  color: var(--muted);
  font-weight: 300;
  line-height: 1.9;
  max-width: 540px;
}

/* language bars */
.lang-bars {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
  max-width: 480px;
  text-align: left;
}

.lbar-row {
  display: flex;
  flex-direction: column;
  gap: .4rem;
}

.lbar-top {
  display: flex;
  justify-content: space-between;
}

.lbar-name {
  font-size: .78rem;
  letter-spacing: .1em;
  color: var(--ivory);
  font-weight: 300;
}

.lbar-pct {
  font-size: .72rem;
  color: var(--gold);
  font-weight: 300;
}

.lbar-track {
  height: 2px;
  background: rgba(255, 255, 255, 0.07);
  overflow: hidden;
}

.lbar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--gold2));
  width: 0;
  transition: width 1.2s cubic-bezier(.23, 1, .32, 1);
}

.lbar-fill.on {
  width: var(--pct);
}

.github-btn-wrap {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.btn-github {
  display: inline-flex;
  align-items: center;
  gap: .8rem;
  padding: 1rem 2.5rem;
  background: var(--gold);
  color: var(--black);
  font-size: .78rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  font-family: 'Outfit', sans-serif;
  font-weight: 500;
  text-decoration: none;
  transition: background .3s, transform .25s;
  border: none;
}

.btn-github:hover {
  background: var(--gold2);
  transform: translateX(4px);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: 1rem 2rem;
  border: 1px solid rgba(201, 168, 76, 0.35);
  background: transparent;
  color: var(--gold);
  font-size: .75rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  font-family: 'Outfit', sans-serif;
  font-weight: 300;
  text-decoration: none;
  transition: border-color .3s, background .3s, color .3s;
}

.btn-outline:hover {
  background: rgba(201, 168, 76, 0.08);
  border-color: var(--gold);
}

/* ============================================================
   CONTACT – socials only
   ============================================================ */
#contact {
  padding: 14vh 5vw;
  max-width: 1400px;
  margin: 0 auto;
  border-top: 1px solid rgba(201, 168, 76, 0.08);
}

.contact-chapter {
  font-size: .65rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
  font-weight: 300;
  opacity: 0;
}

.contact-hl {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.5rem, 5vw, 5.5rem);
  font-weight: 300;
  line-height: 1.05;
  margin-bottom: 2rem;
  opacity: 0;
}

.contact-hl em {
  font-style: italic;
  color: var(--gold);
}

.contact-body {
  font-size: .95rem;
  color: var(--muted);
  font-weight: 300;
  line-height: 2;
  margin-bottom: 3rem;
  opacity: 0;
  max-width: 520px;
}

.socials {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  opacity: 0;
  max-width: 600px;
}

.soc-row {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.2rem 1.5rem;
  border: 1px solid rgba(201, 168, 76, 0.1);
  text-decoration: none;
  color: var(--muted);
  transition: border-color .3s, color .3s, padding-left .3s, background .3s;
  font-size: .85rem;
  font-weight: 300;
}

.soc-row:hover {
  border-color: var(--gold);
  color: var(--ivory);
  padding-left: 2rem;
  background: rgba(201, 168, 76, 0.03);
}

.soc-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
}

.soc-label {
  letter-spacing: .1em;
  flex: 1;
}

.soc-handle {
  font-size: .75rem;
  opacity: .5;
}

.soc-arrow {
  color: var(--gold);
  font-size: 1rem;
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  padding: 3rem 5vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(201, 168, 76, 0.08);
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  font-weight: 300;
  letter-spacing: .2em;
  color: var(--muted);
}

.footer-copy {
  font-size: .72rem;
  color: var(--muted);
  font-weight: 300;
  letter-spacing: .08em;
}

.footer-top {
  font-size: .72rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  font-weight: 300;
  transition: color .3s;
  display: flex;
  align-items: center;
  gap: .5rem;
}

.footer-top:hover {
  color: var(--gold);
}

/* ============================================================
   REVEAL
   ============================================================ */
.r {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .9s cubic-bezier(.23, 1, .32, 1), transform .9s cubic-bezier(.23, 1, .32, 1);
}

.r.on {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

.rd1 {
  transition-delay: .1s;
}

.rd2 {
  transition-delay: .2s;
}

.rd3 {
  transition-delay: .3s;
}

.rd4 {
  transition-delay: .4s;
}

.rd5 {
  transition-delay: .5s;
}

.rd6 {
  transition-delay: .6s;
}

/* ============================================================
   UTILS
   ============================================================ */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================================
   MOBILE NAV
   ============================================================ */
.mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 800;
  background: var(--black);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
}

.mobile-overlay.open {
  display: flex;
}

.mobile-overlay a {
  font-family: 'Cormorant Garamond', serif;
  font-size: 3rem;
  font-weight: 300;
  color: var(--ivory);
  text-decoration: none;
  letter-spacing: .08em;
  transition: color .2s;
}

.mobile-overlay a:hover {
  color: var(--gold);
}

.mob-close {
  position: absolute;
  top: 2rem;
  right: 5vw;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--muted);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  #about {
    grid-template-columns: 1fr;
    gap: 5rem;
  }

  .about-left {
    position: static;
  }

  .about-image-wrap {
    width: 100%;
    max-width: 500px;
    height: auto;
    aspect-ratio: 1 / 1;
    margin: 3rem 0;
  }

  .lang-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  body {
    cursor: auto;
  }

  #c-diamond,
  #c-aura,
  #c-svg,
  #c-label {
    display: none;
  }

  .hero-name {
    font-size: clamp(4rem, 18vw, 7rem);
  }

  .lang-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-row {
    flex-wrap: wrap;
    gap: 2rem;
  }

  .github-cta {
    padding: 3rem 2rem;
  }

  .lbar-row {
    display: none;
  }
}