/* ============================================================
   VK PORTFOLIO — style.css
   Design language: CRED dark luxury × Apple spatial precision
   ============================================================ */

/* ── TOKENS ─────────────────────────────────────────────── */
:root {
  --black:        #070708;
  --surface:      #0d0d0f;
  --surface2:     #141416;
  --surface3:     #1a1a1d;
  --border:       rgba(255,255,255,0.06);
  --border-hi:    rgba(255,255,255,0.14);
  --gold:         #c9a84c;
  --gold-light:   #e8c97a;
  --gold-dim:     rgba(201,168,76,0.12);
  --gold-glow:    rgba(201,168,76,0.25);
  --blue:         #5e6ad2;
  --teal:         #3ecfba;
  --white:        #f5f5f7;
  --muted:        rgba(245,245,247,0.5);
  --muted2:       rgba(245,245,247,0.28);
  --radius-sm:    10px;
  --radius:       16px;
  --radius-lg:    24px;
  --ease-out:     cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out:  cubic-bezier(0.65, 0, 0.35, 1);
}

/* ── RESET ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'DM Sans', sans-serif;
  background: var(--black);
  color: var(--white);
  overflow-x: hidden;
  cursor: none;
  -webkit-font-smoothing: antialiased;
}

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

/* ── CURSOR ──────────────────────────────────────────────── */
#cursor {
  position: fixed;
  width: 8px; height: 8px;
  background: var(--gold);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.1s, opacity 0.2s;
  mix-blend-mode: normal;
}
#cursor-ring {
  position: fixed;
  width: 38px; height: 38px;
  border: 1.5px solid rgba(201,168,76,0.45);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: width 0.3s var(--ease-out), height 0.3s var(--ease-out),
              border-color 0.3s, background 0.3s;
}
#cursor-ring.hover {
  width: 64px; height: 64px;
  border-color: var(--gold);
  background: rgba(201,168,76,0.06);
}
#cursor-ring.click {
  width: 22px; height: 22px;
  background: rgba(201,168,76,0.2);
}

/* ── NOISE OVERLAY ───────────────────────────────────────── */
#noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9990;
  opacity: 0.022;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 200px 200px;
}

/* ── NAVIGATION ──────────────────────────────────────────── */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 52px;
  transition: padding 0.4s var(--ease-out), background 0.4s;
}
#nav.scrolled {
  padding: 15px 52px;
  background: rgba(7,7,8,0.82);
  backdrop-filter: blur(28px) saturate(1.4);
  -webkit-backdrop-filter: blur(28px) saturate(1.4);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 24px;
  font-weight: 300;
  letter-spacing: 0.06em;
}
.nav-logo span { color: var(--gold); }

.nav-links {
  display: flex;
  gap: 40px;
}
.nav-links a {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  position: relative;
  transition: color 0.3s;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width 0.3s var(--ease-out);
}
.nav-links a:hover { color: var(--gold); }
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }
.nav-links a.active { color: var(--gold); }

/* ── HERO ────────────────────────────────────────────────── */
#hero {
  min-height: 100vh;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  padding: 140px 52px 100px;
}

.hero-bg-radial {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 65% 38%, rgba(201,168,76,0.07) 0%, transparent 55%),
    radial-gradient(ellipse 50% 45% at 15% 75%, rgba(94,106,210,0.08) 0%, transparent 55%),
    radial-gradient(ellipse 55% 40% at 82% 8%,  rgba(62,207,186,0.05) 0%, transparent 55%);
  pointer-events: none;
}
.hero-grid-lines {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.022) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 75% 75% at 50% 50%, black, transparent);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  max-width: 860px;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'DM Mono', monospace;
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 30px;
  opacity: 0;
  animation: fadeUp 0.8s 0.4s var(--ease-out) forwards;
}
.hero-badge::before, .hero-badge::after {
  content: ''; width: 28px; height: 1px; background: var(--gold); opacity: 0.5;
}

.hero-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(64px, 10vw, 128px);
  font-weight: 300;
  line-height: 0.88;
  letter-spacing: -0.03em;
  margin-bottom: 22px;
  opacity: 0;
  animation: fadeUp 0.9s 0.6s var(--ease-out) forwards;
}
.hero-name em { font-style: italic; color: var(--gold); }

.hero-subtitle {
  font-size: 15px;
  font-weight: 300;
  color: var(--muted);
  letter-spacing: 0.05em;
  margin-bottom: 36px;
  opacity: 0;
  animation: fadeUp 0.9s 0.8s var(--ease-out) forwards;
}

.hero-bio {
  max-width: 520px;
  margin: 0 auto 52px;
  font-size: 15px;
  line-height: 1.85;
  color: var(--muted);
  font-weight: 300;
  opacity: 0;
  animation: fadeUp 0.9s 1s var(--ease-out) forwards;
}

.hero-ctas {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.9s 1.2s var(--ease-out) forwards;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 56px;
  margin-top: 80px;
  padding-top: 44px;
  border-top: 1px solid var(--border);
  opacity: 0;
  animation: fadeUp 0.9s 1.4s var(--ease-out) forwards;
}
.stat { text-align: center; }
.stat-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 52px;
  font-weight: 300;
  color: var(--gold);
  line-height: 1;
  display: block;
  font-variant-numeric: tabular-nums;
}
.stat-label {
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted2);
  margin-top: 7px;
  display: block;
}

.scroll-cue {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: 52px;
  opacity: 0;
  animation: fadeIn 1s 2.2s forwards;
}
.scroll-cue-text {
  font-size: 9.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted2);
  order: -1;
}
.scroll-cue-line {
  width: 1px; height: 44px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: pulse 2.2s ease-in-out infinite;
}

/* ── BUTTONS ─────────────────────────────────────────────── */
.btn-gold {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 30px;
  background: var(--gold);
  color: var(--black);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 100px;
  transition: background 0.3s, transform 0.3s, box-shadow 0.3s;
}
.btn-gold:hover {
  background: var(--gold-light);
  transform: translateY(-3px);
  box-shadow: 0 10px 36px var(--gold-glow);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 30px;
  border: 1px solid var(--border-hi);
  color: var(--white);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 100px;
  transition: border-color 0.3s, color 0.3s, transform 0.3s;
}
.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-3px);
}

/* ── SECTION BASE ────────────────────────────────────────── */
.section {
  padding: 120px 52px;
  position: relative;
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: 'DM Mono', monospace;
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}
.section-eyebrow::before {
  content: ''; width: 20px; height: 1px; background: var(--gold);
}

.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(36px, 5vw, 62px);
  font-weight: 300;
  line-height: 1.06;
  letter-spacing: -0.025em;
  margin-bottom: 64px;
}
.section-title em { font-style: italic; color: var(--gold); }

/* ── TIMELINE SECTION ────────────────────────────────────── */
#timeline { background: var(--surface); }

.timeline-wrap { max-width: 1060px; margin: 0 auto; }

.tl-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 60px;
  background: var(--surface2);
  padding: 6px;
  border-radius: 100px;
  width: fit-content;
  border: 1px solid var(--border);
}
.tl-tab {
  padding: 10px 30px;
  border-radius: 100px;
  font-size: 12.5px;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--muted);
  transition: all 0.35s var(--ease-out);
}
.tl-tab.active {
  background: var(--gold);
  color: var(--black);
  font-weight: 500;
}

.tl-panel { display: none; }
.tl-panel.active { display: block; }

.tl-track {
  position: relative;
  padding-left: 52px;
}
.tl-track::before {
  content: '';
  position: absolute;
  left: 6px; top: 14px; bottom: 32px;
  width: 1px;
  background: linear-gradient(to bottom,
    var(--gold) 0%,
    rgba(201,168,76,0.3) 60%,
    transparent 100%);
}

.tl-item {
  position: relative;
  margin-bottom: 10px;
}
.tl-dot {
  position: absolute;
  left: -46px; top: 20px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid rgba(201,168,76,0.45);
  transition: all 0.35s var(--ease-out);
  z-index: 1;
}
.tl-item.open .tl-dot,
.tl-item:hover .tl-dot {
  background: var(--gold);
  border-color: var(--gold);
  box-shadow: 0 0 0 5px rgba(201,168,76,0.18), 0 0 18px rgba(201,168,76,0.4);
}

.tl-header {
  padding: 26px 30px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  transition: all 0.35s var(--ease-out);
}
.tl-item:hover .tl-header { border-color: rgba(201,168,76,0.28); }
.tl-item.open .tl-header {
  border-color: var(--gold);
  border-radius: var(--radius) var(--radius) 0 0;
  background: rgba(201,168,76,0.04);
  border-bottom-color: transparent;
}

.tl-period {
  font-family: 'DM Mono', monospace;
  font-size: 10.5px;
  color: var(--gold);
  letter-spacing: 0.12em;
  margin-bottom: 5px;
}
.tl-role {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-weight: 400;
  margin-bottom: 3px;
  line-height: 1.2;
}
.tl-org {
  font-size: 13px;
  color: var(--muted);
  font-weight: 300;
}
.tl-chevron {
  width: 34px; height: 34px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: var(--muted);
  font-size: 13px;
  transition: all 0.35s var(--ease-out);
}
.tl-item.open .tl-chevron {
  border-color: var(--gold);
  color: var(--gold);
  transform: rotate(180deg);
  background: rgba(201,168,76,0.08);
}

.tl-body {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.55s var(--ease-out);
}
.tl-item.open .tl-body { max-height: 480px; }

.tl-body-inner {
  padding: 28px 30px 30px;
  background: rgba(201,168,76,0.025);
  border: 1px solid var(--gold);
  border-top: none;
  border-radius: 0 0 var(--radius) var(--radius);
}

.tl-desc {
  font-size: 14px;
  line-height: 1.85;
  color: var(--muted);
  font-weight: 300;
  margin-bottom: 22px;
}
.tl-achievements { display: flex; flex-direction: column; gap: 11px; }
.tl-achievement {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 13.5px;
  color: var(--white);
  font-weight: 300;
  line-height: 1.5;
}
.tl-achievement::before {
  content: '✦';
  color: var(--gold);
  font-size: 7px;
  margin-top: 5px;
  flex-shrink: 0;
}

/* ── SKILLS SECTION ──────────────────────────────────────── */
#skills { background: var(--black); }

.skills-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  max-width: 1100px;
}

.skill-card {
  padding: 22px 26px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
  transition: transform 0.35s var(--ease-out), border-color 0.3s, box-shadow 0.35s;
}
.skill-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--gold-dim), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
}
.skill-card:hover {
  transform: translateY(-5px);
  border-color: rgba(201,168,76,0.35);
  box-shadow: 0 16px 40px rgba(0,0,0,0.4), 0 0 0 1px rgba(201,168,76,0.1);
}
.skill-card:hover::before { opacity: 1; }

.skill-cat {
  font-family: 'DM Mono', monospace;
  font-size: 9.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 6px;
  display: block;
  position: relative;
}
.skill-name {
  font-size: 14.5px;
  font-weight: 400;
  color: var(--white);
  position: relative;
  line-height: 1.3;
}

/* ── PROJECTS SECTION ────────────────────────────────────── */
#projects { background: var(--surface); }

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  max-width: 1100px;
  margin: 0 auto;
}
.project-card {
  padding: 36px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
  transition: transform 0.4s var(--ease-out), border-color 0.3s, box-shadow 0.4s;
}
.project-card.featured {
  grid-column: span 2;
  background: linear-gradient(145deg, rgba(201,168,76,0.065), var(--surface2) 55%);
  border-color: rgba(201,168,76,0.22);
}
.project-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease-out);
}
.project-card:hover::after { transform: scaleX(1); }
.project-card:hover {
  border-color: rgba(201,168,76,0.32);
  transform: translateY(-7px);
  box-shadow: 0 28px 60px rgba(0,0,0,0.5);
}

.project-num {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  color: var(--gold);
  letter-spacing: 0.12em;
  margin-bottom: 16px;
  display: block;
}
.project-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px;
  font-weight: 400;
  margin-bottom: 12px;
  line-height: 1.15;
}
.project-desc {
  font-size: 14px;
  line-height: 1.78;
  color: var(--muted);
  font-weight: 300;
  margin-bottom: 20px;
}
.project-impact {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  background: rgba(201,168,76,0.1);
  border: 1px solid rgba(201,168,76,0.2);
  border-radius: 100px;
  font-size: 12px;
  color: var(--gold);
  margin-bottom: 22px;
}
.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.tech-tag {
  padding: 5px 13px;
  background: var(--surface3);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-family: 'DM Mono', monospace;
  font-size: 10.5px;
  color: var(--muted);
  letter-spacing: 0.06em;
}

/* ── SPEAKING SECTION ────────────────────────────────────── */
#speaking { background: var(--black); }

.lectures-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  max-width: 1100px;
  margin: 0 auto;
}
.lecture-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.4s var(--ease-out), border-color 0.3s, box-shadow 0.4s;
}
.lecture-card:hover {
  transform: translateY(-9px);
  border-color: rgba(201,168,76,0.3);
  box-shadow: 0 32px 70px rgba(0,0,0,0.55);
}
.lecture-img-wrap { overflow: hidden; height: 190px; }
.lecture-img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(45%) brightness(0.65);
  transition: filter 0.5s, transform 0.5s var(--ease-out);
}
.lecture-card:hover .lecture-img {
  filter: grayscale(0%) brightness(0.8);
  transform: scale(1.06);
}
.lecture-body { padding: 28px; }
.lecture-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.lecture-venue-name {
  font-family: 'DM Mono', monospace;
  font-size: 10.5px;
  color: var(--gold);
  letter-spacing: 0.1em;
}
.lecture-date { font-size: 10.5px; color: var(--muted2); }
.lecture-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.3;
  margin-bottom: 10px;
}
.lecture-desc {
  font-size: 13px;
  line-height: 1.72;
  color: var(--muted);
  font-weight: 300;
}
.lecture-audience {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
  padding: 5px 13px;
  background: var(--surface2);
  border-radius: 100px;
  font-size: 11px;
  color: var(--muted2);
}

/* ── CONTACT SECTION ─────────────────────────────────────── */
#contact { background: var(--surface); }

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  max-width: 1060px;
  margin: 0 auto;
  align-items: start;
}

/* LEFT */
.contact-left {}
.contact-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(34px, 4.5vw, 54px);
  font-weight: 300;
  line-height: 1.1;
  margin-bottom: 18px;
}
.contact-title em { font-style: italic; color: var(--gold); }
.contact-sub {
  font-size: 14.5px;
  color: var(--muted);
  font-weight: 300;
  line-height: 1.78;
  margin-bottom: 40px;
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.contact-info-item {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 20px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all 0.3s var(--ease-out);
  text-decoration: none;
  color: inherit;
}
.contact-info-item:hover {
  border-color: rgba(201,168,76,0.35);
  transform: translateX(6px);
  background: rgba(201,168,76,0.03);
}
.contact-info-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--gold-dim);
  border: 1px solid rgba(201,168,76,0.25);
  display: grid;
  place-items: center;
  font-size: 14px;
  color: var(--gold);
  font-family: 'DM Mono', monospace;
  font-weight: 400;
  flex-shrink: 0;
}
.contact-info-label {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 3px;
}
.contact-info-value {
  font-size: 13.5px;
  color: var(--white);
  font-weight: 300;
}

/* RIGHT — FORM CARD */
.contact-right {}
.contact-form-card {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  position: relative;
  overflow: hidden;
}
.contact-form-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light), transparent);
}

.form-heading {
  font-family: 'Cormorant Garamond', serif;
  font-size: 26px;
  font-weight: 400;
  margin-bottom: 6px;
}
.form-sub {
  font-size: 13px;
  color: var(--muted);
  font-weight: 300;
  margin-bottom: 28px;
}

.form-group {
  margin-bottom: 18px;
}
.form-label {
  display: block;
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}
.form-input {
  width: 100%;
  padding: 13px 16px;
  background: var(--surface3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--white);
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 300;
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s, background 0.3s;
  -webkit-appearance: none;
}
.form-input::placeholder { color: var(--muted2); }
.form-input:focus {
  border-color: var(--gold);
  background: rgba(201,168,76,0.03);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.1);
}
.form-textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.6;
}

.form-submit {
  width: 100%;
  justify-content: center;
  padding: 15px;
  margin-top: 6px;
  font-size: 13px;
  cursor: pointer;
}
.form-submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none !important;
}

.form-error {
  padding: 12px 16px;
  background: rgba(220, 80, 80, 0.1);
  border: 1px solid rgba(220, 80, 80, 0.3);
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: #f87171;
  margin-bottom: 18px;
}

/* SUCCESS STATE */
#form-success {
  text-align: center;
  padding: 20px 0;
}
.form-success-icon {
  font-size: 40px;
  color: var(--gold);
  margin-bottom: 20px;
  animation: successPop 0.5s var(--ease-out) forwards;
}
.form-success-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 32px;
  font-weight: 300;
  margin-bottom: 10px;
}
.form-success-sub {
  font-size: 14px;
  color: var(--muted);
  font-weight: 300;
  line-height: 1.7;
}
@keyframes successPop {
  from { transform: scale(0.4); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* RESPONSIVE */
@media (max-width: 820px) {
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

/* ── FOOTER ──────────────────────────────────────────────── */
footer {
  padding: 36px 52px;
  border-top: 1px solid var(--border);
  background: var(--black);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-brand {
  font-family: 'Cormorant Garamond', serif;
  font-size: 19px;
  font-weight: 300;
  color: var(--muted);
}
.footer-copy { font-size: 11.5px; color: var(--muted2); letter-spacing: 0.06em; }

/* ── REVEAL ANIMATIONS ───────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.75s var(--ease-out), transform 0.75s var(--ease-out);
}
.reveal.in { opacity: 1; transform: none; }
.d1 { transition-delay: 0.08s; }
.d2 { transition-delay: 0.18s; }
.d3 { transition-delay: 0.28s; }
.d4 { transition-delay: 0.38s; }

/* ── KEYFRAMES ───────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes pulse {
  0%, 100% { opacity: 0.25; transform: scaleY(0.65); }
  50%       { opacity: 1;    transform: scaleY(1); }
}

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 900px) {
  .projects-grid { grid-template-columns: 1fr; }
  .project-card.featured { grid-column: span 1; }
  .lectures-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 28px; flex-wrap: wrap; }
  .skills-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
  #nav { padding: 16px 24px; }
  #nav.scrolled { padding: 13px 24px; }
  .nav-links { display: none; }
  .section { padding: 80px 24px; }
  #hero { padding: 110px 24px 90px; }
  footer { flex-direction: column; gap: 12px; text-align: center; }
  body { cursor: auto; }
  #cursor, #cursor-ring { display: none; }
}
