/* ============================================================
   ODILE ABIMANA — Interactive 3D Portfolio
   Palette: Warm Cream · Gold · Midnight Navy · Soft Black
   Type: Cormorant Garamond (display) + DM Sans (body) + JetBrains Mono (code)
   Signature: Cursor-reactive 3D headshot globe with orbiting snippets
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400&family=DM+Sans:wght@300;400;500;600&family=JetBrains+Mono:wght@400;500&display=swap');

/* ── Tokens ── */
:root {
  --cream: #F7F2E8;
  --cream2: #EDE5D4;
  --cream3: #E0D5BE;
  --gold: #C9973A;
  --gold2: #E8B84B;
  --gold-soft: rgba(201, 151, 58, 0.15);
  --gold-glow: rgba(201, 151, 58, 0.25);
  --navy: #0F1923;
  --navy2: #1A2535;
  --ink: #1C1C1C;
  --ink2: #3A3530;
  --muted: #7A7060;
  --rule: rgba(201, 151, 58, 0.18);
  --rule2: rgba(28, 28, 28, 0.12);
  --white: #FDFAF4;
  --grad: linear-gradient(135deg, #C9973A, #E8B84B);
  --display: 'Cormorant Garamond', Georgia, serif;
  --body: 'DM Sans', sans-serif;
  --mono: 'JetBrains Mono', monospace;
  --r: 12px;
  --r2: 20px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --t: 0.3s;
  --shadow: 0 20px 60px rgba(28, 28, 28, 0.10);
  --shadow2: 0 8px 32px rgba(28, 28, 28, 0.08);
}

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

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

body {
  font-family: var(--body);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.65;
  overflow-x: hidden;
}

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

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

ul {
  list-style: none;
}

button {
  font-family: var(--body);
  cursor: pointer;
  border: none;
  background: none;
}

::selection {
  background: rgba(201, 151, 58, 0.25);
}

::-webkit-scrollbar {
  width: 4px;
}

::-webkit-scrollbar-track {
  background: var(--cream2);
}

::-webkit-scrollbar-thumb {
  background: var(--gold);
  border-radius: 2px;
}

/* ── Layout ── */
.wrap {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 32px;
}

section {
  padding: 100px 0;
}

/* ── Type ── */
.eyebrow {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
  display: block;
}

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 24px;
  border-radius: 8px;
  font-family: var(--body);
  font-size: 0.875rem;
  font-weight: 500;
  transition: all var(--t) var(--ease);
}

.btn-gold {
  background: var(--gold);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(201, 151, 58, 0.35);
}

.btn-gold:hover {
  background: var(--gold2);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(201, 151, 58, 0.45);
}

.btn-outline {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--rule2);
}

.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-2px);
}

.btn-ghost {
  background: var(--cream2);
  color: var(--ink2);
}

.btn-ghost:hover {
  background: var(--cream3);
}

/* ── Reveal animations ── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.in {
  opacity: 1;
  transform: none;
}

.reveal-l {
  opacity: 0;
  transform: translateX(-24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal-l.in {
  opacity: 1;
  transform: none;
}

.reveal-r {
  opacity: 0;
  transform: translateX(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal-r.in {
  opacity: 1;
  transform: none;
}

.d1 {
  transition-delay: .1s
}

.d2 {
  transition-delay: .2s
}

.d3 {
  transition-delay: .3s
}

.d4 {
  transition-delay: .4s
}

.d5 {
  transition-delay: .5s
}

.d6 {
  transition-delay: .6s
}

@media(prefers-reduced-motion:reduce) {

  .reveal,
  .reveal-l,
  .reveal-r {
    opacity: 1;
    transform: none;
    transition: none
  }
}

/* ═══════════════════════════════════════
   NAV
═══════════════════════════════════════ */
#nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 900;
  padding: 22px 0;
  transition: all 0.35s var(--ease);
}

#nav.stuck {
  background: rgba(247, 242, 232, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--rule);
  padding: 14px 0;
  box-shadow: 0 4px 24px rgba(28, 28, 28, 0.06);
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--display);
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--ink);
  letter-spacing: 0.02em;
}

.nav-logo span {
  color: var(--gold);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
  padding: 7px 14px;
  border-radius: 7px;
  transition: color var(--t), background var(--t);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--ink);
  background: var(--cream2);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ham {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  border: 1px solid var(--rule2);
  border-radius: 8px;
  background: var(--cream2);
}

.ham span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--ink);
  border-radius: 2px;
  transition: 0.3s;
}

#mob-nav {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 800;
  background: var(--cream);
  padding: 96px 32px 40px;
  flex-direction: column;
  gap: 4px;
}

#mob-nav.open {
  display: flex;
}

#mob-nav a {
  font-family: var(--display);
  font-size: 2.4rem;
  font-weight: 300;
  font-style: italic;
  color: var(--muted);
  padding: 14px 0;
  border-bottom: 1px solid var(--rule2);
  transition: color 0.2s;
}

#mob-nav a:hover {
  color: var(--gold);
}

/* ═══════════════════════════════════════
   HERO
═══════════════════════════════════════ */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  position: relative;
  overflow: hidden;
  background: var(--cream);
}

/* Subtle background texture */
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 80% 50%, rgba(201, 151, 58, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse at 20% 80%, rgba(15, 25, 35, 0.04) 0%, transparent 50%);
}

/* Gold grain lines */
.hero-lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-lines::before {
  content: '';
  position: absolute;
  top: 0;
  right: 240px;
  bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--rule), transparent);
}

.hero-lines::after {
  content: '';
  position: absolute;
  top: 0;
  right: 480px;
  bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, transparent, rgba(201, 151, 58, 0.08), transparent);
}

.hero-layout {
  display: grid;
  grid-template-columns: 1fr 480px;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 1;
}

/* Left copy */
.hero-availability {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 100px;
  background: rgba(201, 151, 58, 0.1);
  border: 1px solid var(--rule);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--gold);
  margin-bottom: 28px;
  width: fit-content;
}

.avail-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  animation: avail-pulse 2s ease infinite;
}

@keyframes avail-pulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1)
  }

  50% {
    opacity: 0.4;
    transform: scale(0.7)
  }
}

.hero-name {
  font-size: clamp(3.5rem, 6vw, 5.5rem);
  font-weight: 300;
  color: var(--ink);
  margin-bottom: 8px;
  line-height: 1.0;
}

.hero-name em {
  font-style: italic;
  color: var(--gold);
}

.hero-title {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 28px;
  letter-spacing: 0.06em;
}

.hero-bio {
  font-size: 1.05rem;
  color: var(--ink2);
  line-height: 1.8;
  max-width: 480px;
  margin-bottom: 36px;
  font-weight: 300;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 52px;
}

.hero-stats {
  display: flex;
  gap: 32px;
  padding-top: 32px;
  border-top: 1px solid var(--rule2);
}

.hstat-n {
  font-family: var(--display);
  font-size: 2rem;
  font-weight: 300;
  color: var(--gold);
  line-height: 1;
  display: block;
}

.hstat-l {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 3px;
  display: block;
}

/* ── 3D Headshot Scene ── */
.hero-scene {
  position: relative;
  width: 100%;
  height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1000px;
}

.scene-inner {
  position: relative;
  width: 320px;
  height: 320px;
  transform-style: preserve-3d;
  transition: transform 0.08s ease-out;
}

/* Outer glow ring */
.photo-ring-outer {
  position: absolute;
  inset: -20px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, var(--gold), var(--cream2), var(--gold2), var(--cream2), var(--gold));
  animation: ring-spin 12s linear infinite;
  opacity: 0.6;
}

.photo-ring-outer::after {
  content: '';
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--cream);
}

@keyframes ring-spin {
  from {
    transform: rotate(0)
  }

  to {
    transform: rotate(360deg)
  }
}

/* Inner decorative ring */
.photo-ring-inner {
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 1px solid rgba(201, 151, 58, 0.35);
  animation: ring-spin 20s linear infinite reverse;
}

/* Photo itself */
.photo-circle {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  overflow: hidden;
  z-index: 2;
  border: 3px solid var(--cream);
  box-shadow: 0 24px 64px rgba(28, 28, 28, 0.18), inset 0 0 0 1px rgba(201, 151, 58, 0.2);
}

.photo-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  border-radius: 50%;
}

.photo-circle .placeholder {
  width: 100%;
  height: 100%;
  background: var(--cream2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  border-radius: 50%;
}

/* Floating snippets */
.snippet {
  position: absolute;
  z-index: 10;
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: 100px;
  padding: 8px 16px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--ink2);
  box-shadow: 0 8px 24px rgba(28, 28, 28, 0.1);
  white-space: nowrap;
  animation: float-snip 4s ease-in-out infinite;
  display: flex;
  align-items: center;
  gap: 6px;
  backdrop-filter: blur(8px);
}

.snippet-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
}

.snip-1 {
  top: 12%;
  left: -60px;
  animation-delay: 0s;
  animation-duration: 4.5s;
}

.snip-2 {
  top: 50%;
  right: -70px;
  animation-delay: 1.5s;
  animation-duration: 5s;
}

.snip-3 {
  bottom: 12%;
  left: -40px;
  animation-delay: 3s;
  animation-duration: 4s;
}

@keyframes float-snip {

  0%,
  100% {
    transform: translateY(0)
  }

  50% {
    transform: translateY(-10px)
  }
}

/* Decorative gold dots */
.dot-tl {
  position: absolute;
  top: 5%;
  left: 5%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0.5;
}

.dot-tr {
  position: absolute;
  top: 8%;
  right: 8%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0.35;
}

.dot-br {
  position: absolute;
  bottom: 8%;
  right: 5%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0.4;
}

/* Gold accent line behind scene */
.scene-line {
  position: absolute;
  top: 50%;
  right: 0;
  width: 1px;
  height: 60%;
  background: linear-gradient(to bottom, transparent, var(--gold), transparent);
  transform: translateY(-50%);
  opacity: 0.3;
}

/* ═══════════════════════════════════════
   ABOUT
═══════════════════════════════════════ */
#about {
  background: var(--white);
}

.about-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.about-body p {
  font-size: 0.975rem;
  color: var(--ink2);
  line-height: 1.85;
  margin-bottom: 18px;
  font-weight: 300;
}

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

.about-body p .gold {
  color: var(--gold);
}

/* Trait chips */
.trait-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 28px;
}

.trait {
  padding: 16px 18px;
  background: var(--cream);
  border: 1px solid var(--rule2);
  border-radius: var(--r);
  transition: all var(--t);
}

.trait:hover {
  border-color: var(--gold);
  box-shadow: 0 4px 20px var(--gold-glow);
  transform: translateY(-2px);
}

.trait-ico {
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.trait-title {
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 3px;
}

.trait-desc {
  font-size: 0.78rem;
  color: var(--muted);
}

/* Right column — skills & certs */

.skills-title {
  font-family: var(--display);
  font-size: 1.6rem;
  font-weight: 300;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--rule2);
}

.skill-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.sk-tab {
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 500;
  border: 1px solid var(--rule2);
  background: transparent;
  color: var(--muted);
  transition: all var(--t);
}

.sk-tab:hover,
.sk-tab.on {
  background: var(--gold);
  color: var(--white);
  border-color: var(--gold);
}

.sk-panel {
  display: none;
}

.sk-panel.on {
  display: block;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  padding: 6px 14px;
  background: var(--cream);
  border: 1px solid var(--rule2);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--ink2);
  transition: all var(--t);
}

.chip:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: var(--gold-soft);
}

/* Certifications */
.cert-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 28px;
}

.cert-card {
  padding: 16px 18px;
  background: var(--cream);
  border: 1px solid var(--rule2);
  border-radius: var(--r);
  transition: all var(--t);
}

.cert-card:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
}

.cert-ico {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.cert-name {
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 2px;
}

.cert-by {
  font-size: 0.74rem;
  color: var(--muted);
}

/* Hobbies */
.hobby-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.hobby-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 500;
  border: 1px solid transparent;
  transition: all var(--t);
}

.hobby-pill:hover {
  transform: translateY(-2px);
}

.hp-piano {
  background: rgba(124, 58, 237, 0.08);
  border-color: rgba(124, 58, 237, 0.2);
  color: #5b21b6;
}

.hp-travel {
  background: rgba(14, 165, 233, 0.08);
  border-color: rgba(14, 165, 233, 0.2);
  color: #0369a1;
}

.hp-community {
  background: rgba(5, 150, 105, 0.08);
  border-color: rgba(5, 150, 105, 0.2);
  color: #047857;
}

.hp-friends {
  background: rgba(236, 72, 153, 0.08);
  border-color: rgba(236, 72, 153, 0.2);
  color: #9d174d;
}

.hp-reading {
  background: rgba(201, 151, 58, 0.08);
  border-color: rgba(201, 151, 58, 0.25);
  color: #92400e;
}

.hp-ai {
  background: rgba(15, 25, 35, 0.06);
  border-color: rgba(15, 25, 35, 0.15);
  color: var(--navy);
}

/* Education */
.edu-block {
  margin-top: 24px;
  padding: 20px 22px;
  background: var(--navy);
  border-radius: var(--r2);
  color: var(--cream);
}

.edu-degree {
  font-family: var(--display);
  font-size: 1.1rem;
  font-weight: 300;
  margin-bottom: 4px;
}

.edu-school {
  font-size: 0.82rem;
  color: var(--gold);
  margin-bottom: 2px;
}

.edu-detail {
  font-size: 0.78rem;
  color: rgba(247, 242, 232, 0.55);
}

/* Lang tags */
.lang-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.lang-tag {
  padding: 4px 12px;
  background: rgba(247, 242, 232, 0.1);
  border: 1px solid rgba(201, 151, 58, 0.3);
  border-radius: 100px;
  font-size: 0.78rem;
  color: var(--cream2);
}

/* ═══════════════════════════════════════
   WORK (Experience + Community)
═══════════════════════════════════════ */
#work {
  background: var(--cream);
}

.work-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 56px;
  border-bottom: 1px solid var(--rule2);
}

.w-tab {
  padding: 12px 28px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: all var(--t);
  background: none;
}

.w-tab:hover,
.w-tab.on {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

.w-panel {
  display: none;
}

.w-panel.on {
  display: block;
}

/* Timeline */
.timeline {
  position: relative;
  padding-left: 28px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 12px;
  bottom: 12px;
  width: 1px;
  background: linear-gradient(to bottom, var(--gold), rgba(201, 151, 58, 0.1));
}

.t-entry {
  position: relative;
  padding-bottom: 40px;
}

.t-entry:last-child {
  padding-bottom: 0;
}

.t-dot {
  position: absolute;
  left: -34px;
  top: 14px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 151, 58, 0.15);
}

.t-card {
  background: var(--white);
  border: 1px solid var(--rule2);
  border-radius: var(--r2);
  padding: 26px 28px;
  transition: all var(--t);
}

.t-card:hover {
  border-color: rgba(201, 151, 58, 0.3);
  transform: translateX(4px);
  box-shadow: var(--shadow2);
}

.t-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.t-role {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 3px;
}

.t-co {
  font-size: 0.85rem;
  color: var(--gold);
  font-weight: 500;
}

.t-date {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--muted);
  padding: 4px 10px;
  background: var(--cream);
  border-radius: 6px;
  border: 1px solid var(--rule2);
  white-space: nowrap;
  flex-shrink: 0;
}

.t-type {
  font-size: 0.68rem;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 100px;
  margin-left: 6px;
  vertical-align: middle;
}

.tt {
  background: rgba(15, 25, 35, 0.08);
  color: var(--navy);
  border: 1px solid rgba(15, 25, 35, 0.15);
}

.tv {
  background: rgba(201, 151, 58, 0.1);
  color: #92400e;
  border: 1px solid rgba(201, 151, 58, 0.25);
}

.t-bullets {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.t-b {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.65;
}

.t-b::before {
  content: '—';
  color: var(--gold);
  flex-shrink: 0;
  margin-top: 1px;
}

.imp {
  display: inline;
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--gold);
  background: var(--gold-soft);
  padding: 1px 6px;
  border-radius: 4px;
  margin: 0 2px;
}

/* Impact stats banner */
.impact-banner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 48px;
}

.impact-stat {
  padding: 20px;
  background: var(--white);
  border: 1px solid var(--rule2);
  border-radius: var(--r);
  text-align: center;
}

.impact-n {
  font-family: var(--display);
  font-size: 1.8rem;
  font-weight: 300;
  color: var(--gold);
  display: block;
  line-height: 1;
}

.impact-l {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 4px;
  display: block;
}

/* ═══════════════════════════════════════
   PROJECTS
═══════════════════════════════════════ */
#projects {
  background: var(--white);
}

.proj-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 48px;
}

.proj-card {
  background: var(--cream);
  border: 1px solid var(--rule2);
  border-radius: var(--r2);
  overflow: hidden;
  transition: all var(--t);
  position: relative;
}

.proj-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--grad);
  opacity: 0;
  transition: opacity var(--t);
}

.proj-card:hover {
  border-color: rgba(201, 151, 58, 0.3);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

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

.proj-inner {
  display: grid;
  grid-template-columns: 1fr 360px;
}

.proj-body {
  padding: 32px 36px;
}

.proj-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 16px;
}

.pb-pm {
  background: rgba(124, 58, 237, 0.08);
  color: #5b21b6;
  border: 1px solid rgba(124, 58, 237, 0.2);
}

.pb-ai {
  background: var(--gold-soft);
  color: #92400e;
  border: 1px solid var(--rule);
}

.pb-data {
  background: rgba(15, 25, 35, 0.07);
  color: var(--navy);
  border: 1px solid rgba(15, 25, 35, 0.15);
}

.proj-title {
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 300;
  margin-bottom: 12px;
}

.proj-desc {
  font-size: 0.9rem;
  color: var(--ink2);
  line-height: 1.75;
  margin-bottom: 20px;
  font-weight: 300;
}

.proj-nums {
  display: flex;
  gap: 20px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.pn-v {
  font-family: var(--mono);
  font-size: 1.1rem;
  color: var(--gold);
  display: block;
}

.pn-l {
  font-size: 0.72rem;
  color: var(--muted);
}

.proj-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}

.ptag {
  padding: 3px 10px;
  background: var(--white);
  border: 1px solid var(--rule2);
  border-radius: 5px;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--muted);
}

.proj-visual {
  background: var(--navy);
  border-left: 1px solid var(--rule2);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 260px;
  overflow: hidden;
  position: relative;
}

.proj-visual-inner {
  padding: 24px;
  width: 100%;
}

/* Expand */
.proj-expand {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s var(--ease);
}

.proj-expand.open {
  max-height: 500px;
}

.proj-expand-inner {
  padding: 24px 36px;
  border-top: 1px solid var(--rule2);
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 24px;
}

.pe-col h4 {
  font-family: var(--mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold);
  margin-bottom: 12px;
}

.pe-col li {
  font-size: 0.83rem;
  color: var(--muted);
  padding: 5px 0;
  border-bottom: 1px solid var(--rule2);
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.pe-col li::before {
  content: '→';
  color: var(--gold);
  font-size: 0.7rem;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ═══════════════════════════════════════
   CONTACT
═══════════════════════════════════════ */
#contact {
  background: var(--navy);
  color: var(--cream);
}

#contact .eyebrow {
  color: var(--gold2);
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.contact-heading {
  font-family: var(--display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 300;
  color: var(--cream);
  margin-bottom: 16px;
  line-height: 1.1;
}

.contact-sub {
  font-size: 0.95rem;
  color: rgba(247, 242, 232, 0.6);
  line-height: 1.75;
  margin-bottom: 32px;
  font-weight: 300;
}

.clinks {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.clink {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  background: rgba(247, 242, 232, 0.05);
  border: 1px solid rgba(247, 242, 232, 0.1);
  border-radius: var(--r);
  color: var(--cream);
  transition: all var(--t);
}

.clink:hover {
  border-color: rgba(201, 151, 58, 0.4);
  background: rgba(201, 151, 58, 0.06);
  transform: translateX(4px);
}

.clink-ico {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
  background: rgba(247, 242, 232, 0.08);
}

.clink-lbl {
  font-size: 0.7rem;
  color: rgba(247, 242, 232, 0.45);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.clink-val {
  font-size: 0.88rem;
  font-weight: 500;
}

/* Form */
.cform {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cform-head {
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--cream);
  margin-bottom: 4px;
}

.cform-sub {
  font-size: 0.82rem;
  color: rgba(247, 242, 232, 0.5);
  margin-bottom: 10px;
}

.frow {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.fg {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.fg label {
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(247, 242, 232, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.fi {
  background: rgba(247, 242, 232, 0.06);
  border: 1px solid rgba(247, 242, 232, 0.12);
  border-radius: 9px;
  padding: 11px 14px;
  font-family: var(--body);
  font-size: 0.9rem;
  color: var(--cream);
  outline: none;
  width: 100%;
  transition: border-color var(--t), box-shadow var(--t);
}

.fi:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 151, 58, 0.12);
}

.fi::placeholder {
  color: rgba(247, 242, 232, 0.25);
}

textarea.fi {
  min-height: 110px;
  resize: vertical;
}

.form-ok {
  display: none;
  padding: 13px;
  border-radius: 9px;
  margin-top: 6px;
  background: rgba(201, 151, 58, 0.1);
  border: 1px solid rgba(201, 151, 58, 0.3);
  color: var(--gold2);
  font-size: 0.875rem;
  text-align: center;
}

/* ═══════════════════════════════════════
   FOOTER
═══════════════════════════════════════ */
footer {
  background: var(--navy);
  border-top: 1px solid rgba(247, 242, 232, 0.06);
  padding: 32px 0;
}

.foot-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.foot-copy {
  font-size: 0.8rem;
  color: rgba(247, 242, 232, 0.35);
}

.foot-copy span {
  color: var(--gold);
}

.foot-links {
  display: flex;
  gap: 20px;
}

.foot-links a {
  font-size: 0.8rem;
  color: rgba(247, 242, 232, 0.4);
  transition: color var(--t);
}

.foot-links a:hover {
  color: var(--gold);
}

/* ═══════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════ */
@media(max-width:1024px) {
  .hero-layout {
    grid-template-columns: 1fr;
    gap: 60px
  }

  .hero-scene {
    height: 400px
  }

  .about-layout {
    grid-template-columns: 1fr;
    gap: 48px
  }

  .proj-inner {
    grid-template-columns: 1fr
  }

  .proj-visual {
    min-height: 180px;
    border-left: none;
    border-top: 1px solid var(--rule2)
  }

  .contact-layout {
    grid-template-columns: 1fr;
    gap: 48px
  }

  .proj-expand-inner {
    grid-template-columns: 1fr 1fr
  }
}

@media(max-width:768px) {
  section {
    padding: 72px 0
  }

  .nav-links {
    display: none
  }

  .ham {
    display: flex
  }

  .hero-scene {
    height: 340px
  }

  .scene-inner {
    width: 240px;
    height: 240px
  }

  .snip-1 {
    left: -20px
  }

  .snip-2 {
    right: -20px
  }

  .frow {
    grid-template-columns: 1fr
  }

  .trait-grid {
    grid-template-columns: 1fr
  }

  .cert-grid {
    grid-template-columns: 1fr
  }

  .impact-banner {
    grid-template-columns: 1fr 1fr 1fr
  }
}

@media(max-width:480px) {
  .hero-ctas {
    flex-direction: column
  }

  .hero-ctas .btn {
    justify-content: center
  }

  .hero-stats {
    gap: 20px
  }

  .proj-expand-inner {
    grid-template-columns: 1fr
  }

  .foot-row {
    flex-direction: column;
    text-align: center
  }

  .impact-banner {
    grid-template-columns: 1fr
  }
}

/* JobBuddy project card */

.jb-visual {
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.jb-screenshot {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  border-radius: 8px;
}

.proj-btn {
  font-size: 0.8rem;
  padding: 8px 16px;
}

.proj-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}


/* ═══════════════════════════════════════
   2026 MODERNIZATION LAYER — append last
═══════════════════════════════════════ */

/* ── Token upgrades ── */
:root {
  --grad: linear-gradient(120deg, #C9973A 0%, #E8B84B 40%, #D98C5F 70%, #C9973A 100%);
  --shadow: 0 24px 70px rgba(28, 28, 28, 0.12), 0 4px 16px rgba(201, 151, 58, 0.08);
  --shadow2: 0 10px 36px rgba(28, 28, 28, 0.09);
  --glass: rgba(253, 250, 244, 0.6);
}

/* ── Ambient aurora field (site-wide, behind everything) ── */
body {
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  inset: -20%;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 40% 30% at 75% 15%, rgba(232, 184, 75, 0.10), transparent 70%),
    radial-gradient(ellipse 35% 35% at 15% 60%, rgba(201, 151, 58, 0.07), transparent 70%),
    radial-gradient(ellipse 45% 30% at 60% 90%, rgba(15, 25, 35, 0.05), transparent 70%);
  animation: aurora-drift 26s ease-in-out infinite alternate;
}

@keyframes aurora-drift {
  from {
    transform: translate3d(-2%, -1%, 0) scale(1);
  }

  to {
    transform: translate3d(2%, 2%, 0) scale(1.06);
  }
}

/* ── Scroll progress bar (progressive enhancement) ── */
@supports (animation-timeline: scroll()) {
  body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    z-index: 1200;
    background: var(--grad);
    transform-origin: left;
    transform: scaleX(0);
    animation: scroll-progress linear;
    animation-timeline: scroll(root);
  }

  @keyframes scroll-progress {
    to {
      transform: scaleX(1);
    }
  }
}

/* ── Nav: deeper glass ── */
#nav.stuck {
  background: var(--glass);
  backdrop-filter: blur(24px) saturate(1.5);
  -webkit-backdrop-filter: blur(24px) saturate(1.5);
}

.nav-links a {
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 4px;
  height: 1.5px;
  background: var(--grad);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  transform: scaleX(1);
}

/* ── Hero: living name + glow behind portrait ── */
.hero-name em {
  background: var(--grad);
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gold-flow 7s ease-in-out infinite;
}

@keyframes gold-flow {

  0%,
  100% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }
}

.hero-scene::before {
  content: '';
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 184, 75, 0.16), transparent 65%);
  animation: breath 6s ease-in-out infinite;
  pointer-events: none;
}

@keyframes breath {

  0%,
  100% {
    transform: scale(1);
    opacity: 0.8;
  }

  50% {
    transform: scale(1.12);
    opacity: 1;
  }
}

.snippet {
  background: var(--glass);
  backdrop-filter: blur(12px) saturate(1.4);
  -webkit-backdrop-filter: blur(12px) saturate(1.4);
  border-color: rgba(201, 151, 58, 0.3);
}

/* ── Buttons: shine sweep ── */
.btn {
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: -80%;
  width: 50%;
  height: 100%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  transform: skewX(-20deg);
  transition: left 0.55s var(--ease);
  pointer-events: none;
}

.btn:hover::after {
  left: 130%;
}

.btn-gold {
  background: var(--grad);
  background-size: 200% auto;
}

.btn-gold:hover {
  background-position: right center;
}

/* ── Section headings: gradient ink ── */
#projects h2,
#about h2,
#work h2 {
  background: linear-gradient(120deg, var(--ink) 30%, var(--gold) 85%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ── Project cards: glass + living gold edge ── */
.proj-card {
  background: rgba(247, 242, 232, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.proj-card::before {
  width: 3px;
  background: var(--grad);
  background-size: 100% 300%;
  animation: edge-flow 3s linear infinite paused;
}

.proj-card:hover::before {
  opacity: 1;
  animation-play-state: running;
}

@keyframes edge-flow {
  from {
    background-position: 0% 0%;
  }

  to {
    background-position: 0% 300%;
  }
}

.proj-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 32px 80px rgba(28, 28, 28, 0.14), 0 8px 30px rgba(201, 151, 58, 0.14);
}

.proj-visual {
  background:
    radial-gradient(ellipse 70% 60% at 50% 0%, rgba(201, 151, 58, 0.14), transparent 70%),
    linear-gradient(rgba(247, 242, 232, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(247, 242, 232, 0.03) 1px, transparent 1px),
    var(--navy);
  background-size: auto, 28px 28px, 28px 28px, auto;
}

.ptag {
  transition: all var(--t);
}

.ptag:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-1px);
}

.pn-v {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ── Chips & traits: lift with gold light ── */
.chip:hover,
.trait:hover,
.cert-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(201, 151, 58, 0.18);
}

/* ── Timeline: pulsing waypoints ── */
.t-dot {
  animation: dot-pulse 3s ease-in-out infinite;
}

@keyframes dot-pulse {

  0%,
  100% {
    box-shadow: 0 0 0 3px rgba(201, 151, 58, 0.15);
  }

  50% {
    box-shadow: 0 0 0 7px rgba(201, 151, 58, 0.07);
  }
}

.t-card:hover {
  border-color: var(--gold);
  box-shadow: 0 12px 40px rgba(201, 151, 58, 0.12);
}

/* ── Contact: aurora in the navy + focus glow ── */
#contact {
  position: relative;
  overflow: hidden;
}

#contact::before {
  content: '';
  position: absolute;
  inset: -10%;
  pointer-events: none;
  background:
    radial-gradient(ellipse 40% 40% at 85% 20%, rgba(232, 184, 75, 0.10), transparent 70%),
    radial-gradient(ellipse 40% 45% at 10% 85%, rgba(201, 151, 58, 0.07), transparent 70%);
  animation: aurora-drift 22s ease-in-out infinite alternate;
}

#contact .wrap {
  position: relative;
  z-index: 1;
}

.clink:hover .clink-ico {
  background: var(--grad);
  color: var(--navy);
  transition: all var(--t);
}

.fi:focus {
  box-shadow: 0 0 0 3px rgba(201, 151, 58, 0.18), 0 0 24px rgba(232, 184, 75, 0.12);
}

/* ── Scrollbar & selection polish ── */
::-webkit-scrollbar {
  width: 5px;
}

::-webkit-scrollbar-thumb {
  background: var(--grad);
  border-radius: 3px;
}

/* ── Reduced motion: everything still works, quietly ── */
@media (prefers-reduced-motion: reduce) {

  body::before,
  #contact::before,
  .hero-scene::before,
  .hero-name em,
  .t-dot,
  .proj-card::before {
    animation: none;
  }

  .btn::after {
    display: none;
  }
}

.jb-bullets { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.jb-bullets li { display: flex; gap: 10px; font-size: 0.875rem; color: var(--muted); line-height: 1.65; }
.jb-bullets li::before { content: '—'; color: var(--gold); flex-shrink: 0; }