/* ─────────────────────────────────────────
   DESIGN SYSTEM — Monochrome Luxe
   Palette: #FAFAFA · #1A1A1A · #E0E0E0 · #B8860B
   Type: DM Sans (display) + Spectral (body)
───────────────────────────────────────── */

:root {
  --bg:        #FAFAFA;
  --bg-alt:    #F3F1EE;
  --ink:       #1A1A1A;
  --ink-muted: #6B6B6B;
  --border:    #E0E0E0;
  --gold:      #B8860B;
  --gold-lt:   #D4A843;
  --white:     #FFFFFF;

  --font-display: 'DM Sans', sans-serif;
  --font-body:    'Spectral', serif;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

  --nav-h: 72px;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.7;
  overflow-x: hidden;
  cursor: none;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { display: block; max-width: 100%; }
button { cursor: none; border: none; background: none; font: inherit; }

/* ── CUSTOM CURSOR ── */
.cursor {
  position: fixed;
  width: 8px; height: 8px;
  background: var(--ink);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.1s, background 0.2s;
}
.cursor-follower {
  position: fixed;
  width: 32px; height: 32px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: transform 0.35s var(--ease-out), width 0.3s, height 0.3s, border-color 0.3s;
  opacity: 0.5;
}
body:has(a:hover) .cursor-follower,
body:has(button:hover) .cursor-follower {
  width: 48px; height: 48px;
  border-color: var(--gold);
  opacity: 1;
}
body:has(a:hover) .cursor { background: var(--gold); }

/* ── CONTAINER ── */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ── GOLD ACCENT ── */
.gold { color: var(--gold); }

/* ── SCROLL REVEAL ── */
.reveal-up {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.reveal-up.visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* ── SECTION SHARED ── */
.section { padding: 120px 0; }
.section__label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 48px;
}
.label-num {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.15em;
  color: var(--gold);
}
.label-text {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.section__heading {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 64px;
}

/* ─────────────────────────────────────────
   NAV
───────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  z-index: 100;
  transition: background 0.4s, box-shadow 0.4s;
}
.nav.scrolled {
  background: rgba(250, 250, 250, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--border);
}
.nav__logo {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.nav__links {
  display: flex;
  gap: 40px;
}
.nav__link {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-muted);
  position: relative;
  transition: color 0.2s;
}
.nav__link::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width 0.3s var(--ease-out);
}
.nav__link:hover { color: var(--ink); }
.nav__link:hover::after { width: 100%; }

.nav__menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.nav__menu-btn span {
  display: block;
  width: 24px; height: 1.5px;
  background: var(--ink);
  transition: transform 0.3s, opacity 0.3s;
}
.nav__menu-btn.open span:first-child { transform: translateY(6.5px) rotate(45deg); }
.nav__menu-btn.open span:last-child  { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 99;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s;
}
.mobile-menu.open { opacity: 1; pointer-events: all; }
.mobile-menu ul { display: flex; flex-direction: column; gap: 32px; text-align: center; }
.mobile-link {
  font-family: var(--font-display);
  font-size: clamp(2rem, 8vw, 3.5rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--ink);
  transition: color 0.2s;
}
.mobile-link:hover { color: var(--gold); }

/* ─────────────────────────────────────────
   HERO
───────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: var(--nav-h);
}
.hero__bg-text {
  position: absolute;
  right: -2vw;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-display);
  font-size: clamp(160px, 22vw, 320px);
  font-weight: 700;
  letter-spacing: -0.05em;
  color: transparent;
  -webkit-text-stroke: 1px var(--border);
  user-select: none;
  pointer-events: none;
  line-height: 1;
}
.hero__content {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 40px;
  width: 100%;
  position: relative;
  z-index: 1;
}
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 28px;
}
.dot {
  width: 7px; height: 7px;
  background: var(--gold);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}
.hero__name {
  font-family: var(--font-display);
  font-size: clamp(4rem, 11vw, 9rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.95;
  margin-bottom: 8px;
}
.hero__title {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 32px;
}
.hero__title-text {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 300;
  letter-spacing: -0.03em;
  color: var(--ink-muted);
}
.hero__title-italic {
  font-family: var(--font-body);
  font-style: italic;
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 300;
  letter-spacing: -0.02em;
  color: var(--gold);
}
.hero__desc {
  max-width: 480px;
  font-size: 1.05rem;
  color: var(--ink-muted);
  line-height: 1.75;
  margin-bottom: 48px;
}
.hero__cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 14px 32px;
  border-radius: 2px;
  transition: all 0.25s var(--ease-out);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn--primary {
  background: var(--ink);
  color: var(--bg);
}
.btn--primary:hover {
  background: var(--gold);
  color: var(--white);
  transform: translateY(-2px);
}
.btn--ghost {
  border: 1px solid var(--border);
  color: var(--ink);
}
.btn--ghost:hover {
  border-color: var(--ink);
  transform: translateY(-2px);
}

/* Scroll indicator */
.hero__scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scrollDown 1.8s ease-in-out infinite;
}
@keyframes scrollDown {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ─────────────────────────────────────────
   ABOUT
───────────────────────────────────────── */
.about { background: var(--bg-alt); }
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: start;
}
.about__heading {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.2;
}
.about__heading em {
  font-family: var(--font-body);
  font-style: italic;
  font-weight: 300;
  color: var(--gold);
}
.about__right p {
  font-size: 1rem;
  color: var(--ink-muted);
  margin-bottom: 20px;
  line-height: 1.8;
}
.about__stats {
  display: flex;
  gap: 40px;
  margin-top: 40px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}
.stat__num {
  display: block;
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--ink);
  line-height: 1;
  margin-bottom: 4px;
}
.stat__label {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

/* ─────────────────────────────────────────
   PROJECTS
───────────────────────────────────────── */
.projects__list {
  display: flex;
  flex-direction: column;
}
.project-card {
  position: relative;
  padding: 40px 0;
  overflow: hidden;
}
.project-card__line {
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 1px;
  background: var(--border);
}
.project-card__line::after {
  content: '';
  position: absolute;
  left: 0; top: 0;
  width: 0; height: 100%;
  background: var(--gold);
  transition: width 0.5s var(--ease-out);
}
.project-card:hover .project-card__line::after { width: 100%; }
.project-card__inner {
  display: grid;
  grid-template-columns: 160px 1fr 48px;
  gap: 32px;
  align-items: center;
}
.project-card__meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.project-card__year {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
}
.project-card__tag {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
}
.project-card__title {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
  transition: color 0.2s;
}
.project-card:hover .project-card__title { color: var(--gold); }
.project-card__desc {
  font-size: 0.9rem;
  color: var(--ink-muted);
  line-height: 1.7;
  margin-bottom: 16px;
  max-width: 560px;
}
.project-card__stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.project-card__stack span {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: 2px;
  color: var(--ink-muted);
  transition: border-color 0.2s, color 0.2s;
}
.project-card:hover .project-card__stack span {
  border-color: var(--gold);
  color: var(--ink);
}
.project-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--ink-muted);
  transition: all 0.25s var(--ease-out);
}
.project-link:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg);
  transform: rotate(45deg);
}

/* ─────────────────────────────────────────
   SKILLS
───────────────────────────────────────── */
.skills { background: var(--bg-alt); }
.skills__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  margin-bottom: 80px;
  border: 1px solid var(--border);
}
.skill-group {
  padding: 36px 32px;
  border-right: 1px solid var(--border);
  transition: background 0.3s;
}
.skill-group:last-child { border-right: none; }
.skill-group:hover { background: var(--white); }
.skill-group__title {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}
.skill-group__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.skill-group__list li {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--ink-muted);
  transition: color 0.2s, transform 0.2s;
  cursor: default;
}
.skill-group:hover .skill-group__list li { color: var(--ink); }
.skill-group__list li:hover { transform: translateX(4px); }

/* Marquee */
.marquee-wrap {
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}
.marquee {
  display: flex;
  gap: 32px;
  white-space: nowrap;
  animation: marquee 28s linear infinite;
}
.marquee span {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  flex-shrink: 0;
}
.marquee span:nth-child(even) { color: var(--gold); font-size: 10px; }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ─────────────────────────────────────────
   CONTACT
───────────────────────────────────────── */
.contact { min-height: 70vh; display: flex; align-items: center; }
.contact__content { max-width: 700px; }
.contact__heading {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin-bottom: 24px;
}
.contact__heading em {
  font-family: var(--font-body);
  font-style: italic;
  font-weight: 300;
  color: var(--gold);
}
.contact__sub {
  font-size: 1rem;
  color: var(--ink-muted);
  margin-bottom: 48px;
  line-height: 1.7;
}
.contact__email {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.5vw, 1.6rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  border-bottom: 1px solid var(--border);
  padding-bottom: 8px;
  transition: border-color 0.3s, color 0.3s;
  margin-bottom: 48px;
}
.contact__email:hover {
  border-color: var(--gold);
  color: var(--gold);
}
.contact__email svg { transition: transform 0.3s var(--ease-out); }
.contact__email:hover svg { transform: translate(4px, -4px); }
.contact__socials {
  display: flex;
  gap: 16px;
}
.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--ink-muted);
  transition: all 0.25s var(--ease-out);
}
.social-link:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg);
  transform: translateY(-3px);
}

/* ─────────────────────────────────────────
   FOOTER
───────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border);
  padding: 28px 0;
}
.footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer span {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.05em;
  color: var(--ink-muted);
}

/* ─────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────── */
@media (max-width: 900px) {
  .nav__links { display: none; }
  .nav__menu-btn { display: flex; }
  .cursor, .cursor-follower { display: none; }
  body { cursor: auto; }
  a, button { cursor: pointer; }

  .about__grid { grid-template-columns: 1fr; gap: 40px; }
  .project-card__inner { grid-template-columns: 1fr 40px; }
  .project-card__meta { display: none; }
  .skills__grid { grid-template-columns: repeat(2, 1fr); }
  .skill-group { border-right: none; border-bottom: 1px solid var(--border); }
  .skill-group:nth-child(odd) { border-right: 1px solid var(--border); }
  .skill-group:last-child { border-bottom: none; }
}

@media (max-width: 600px) {
  .container { padding: 0 24px; }
  .nav { padding: 0 24px; }
  .section { padding: 80px 0; }
  .hero__bg-text { font-size: 40vw; opacity: 0.4; }
  .about__stats { flex-direction: column; gap: 24px; }
  .skills__grid { grid-template-columns: 1fr; }
  .skill-group { border-right: none !important; }
  .footer .container { flex-direction: column; gap: 8px; text-align: center; }
  .hero__title { flex-direction: column; gap: 4px; }
}