/* ============================================
   GVP — styles.css v2
   Design: Editorial Luxury Law × Modern Tech
   Palette: Charcoal / Ivory / Liquid Gold
   Fonts: Playfair Display + Epilogue
   ============================================ */

/* ---- GOOGLE FONTS IMPORT ---- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=Epilogue:wght@300;400;500;600;700&display=swap');

/* ---- DESIGN TOKENS ---- */
:root {
  /* Core palette */
  --black:        #0a0a0b;
  --charcoal:     #111114;
  --charcoal-2:   #18181c;
  --charcoal-3:   #1f1f25;
  --charcoal-4:   #26262e;

  --ivory:        #f5f0e8;
  --ivory-dim:    rgba(245, 240, 232, 0.65);
  --ivory-faint:  rgba(245, 240, 232, 0.28);
  --ivory-ghost:  rgba(245, 240, 232, 0.08);

  --gold:         #c8a84b;
  --gold-bright:  #dfc06e;
  --gold-pale:    #e8d49a;
  --gold-dim:     rgba(200, 168, 75, 0.15);
  --gold-ghost:   rgba(200, 168, 75, 0.06);
  --gold-glow:    rgba(200, 168, 75, 0.12);

  --green:        #4caf74;
  --green-glow:   rgba(76, 175, 116, 0.18);

  /* Semantic */
  --bg:           var(--black);
  --bg-raised:    var(--charcoal);
  --bg-card:      var(--charcoal-2);
  --bg-card-hi:   var(--charcoal-3);
  --border:       rgba(245, 240, 232, 0.07);
  --border-gold:  rgba(200, 168, 75, 0.22);
  --border-hover: rgba(245, 240, 232, 0.15);

  /* Typography */
  --font-serif: "Playfair Display", "Georgia", ui-serif, serif;
  --font-sans:  "Epilogue", ui-sans-serif, system-ui, sans-serif;

  /* Type scale */
  --text-2xs: clamp(10px, 0.9vw, 11px);
  --text-xs:  clamp(12px, 1.1vw, 13px);
  --text-sm:  clamp(13px, 1.2vw, 14px);
  --text-base:clamp(15px, 1.4vw, 16px);
  --text-md:  clamp(16px, 1.6vw, 18px);
  --text-lg:  clamp(19px, 2vw, 22px);
  --text-xl:  clamp(24px, 3vw, 32px);
  --text-2xl: clamp(32px, 4.5vw, 52px);
  --text-3xl: clamp(44px, 6.5vw, 80px);
  --text-hero:clamp(52px, 8vw, 104px);

  /* Spacing */
  --sp-1: 4px;   --sp-2: 8px;   --sp-3: 12px;
  --sp-4: 16px;  --sp-5: 24px;  --sp-6: 32px;
  --sp-7: 48px;  --sp-8: 64px;  --sp-9: 96px;
  --sp-10: 128px; --sp-11: 160px;

  /* Radius */
  --r-xs:   4px;  --r-sm:  8px;
  --r-md:   12px; --r-lg:  18px;
  --r-xl:   24px; --r-2xl: 36px;
  --r-full: 9999px;

  /* Shadows */
  --shadow-sm:  0 2px 8px rgba(0,0,0,0.4);
  --shadow-md:  0 8px 32px rgba(0,0,0,0.5);
  --shadow-lg:  0 24px 64px rgba(0,0,0,0.55);
  --shadow-xl:  0 40px 100px rgba(0,0,0,0.6);
  --shadow-gold:0 0 60px rgba(200,168,75,0.08), 0 0 120px rgba(200,168,75,0.04);

  /* Ease */
  --ease:        cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-out:    cubic-bezier(0, 0, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --dur:         0.2s;
  --dur-md:      0.35s;
  --dur-lg:      0.6s;

  color-scheme: dark;
}

/* ---- RESET ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--bg);
  color: var(--ivory);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: 1.7;
  letter-spacing: 0.01em;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  font-synthesis: none;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ---- SKIP LINK ---- */
.skip-link {
  position: absolute; left: -9999px; top: -9999px;
  background: var(--ivory); color: #111;
  padding: 10px 16px; border-radius: var(--r-sm);
  font-size: var(--text-sm); font-weight: 600; z-index: 100;
}
.skip-link:focus { left: 16px; top: 16px; }

/* ---- SCREEN READER ONLY ---- */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---- FOCUS ---- */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
  border-radius: var(--r-xs);
}

/* ---- LAYOUT ---- */
.container {
  width: min(1160px, calc(100% - 56px));
  margin: 0 auto;
}
@media (max-width: 480px) {
  .container { width: min(1160px, calc(100% - 32px)); }
}

/* ---- GRAIN OVERLAY ---- */
body::after {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  opacity: 0.028;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
  z-index: 9998;
}

/* ---- GOLD LINE ACCENT ---- */
.gold-line {
  display: block;
  width: 40px;
  height: 2px;
  background: var(--gold);
  margin-bottom: var(--sp-5);
}

/* ============================================
   NAVIGATION
   ============================================ */
.nav-bar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10,10,11,0.78);
  border-bottom: 1px solid var(--border);
}
@supports (backdrop-filter: blur(1px)) {
  .nav-bar {
    background: rgba(10,10,11,0.65);
    backdrop-filter: saturate(180%) blur(24px);
    -webkit-backdrop-filter: saturate(180%) blur(24px);
  }
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: var(--sp-6);
  padding: 20px 0;
}
.nav-logo { flex-shrink: 0; }
.logo-mark {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--gold);
  text-transform: uppercase;
}
.nav-links {
  display: none;
  align-items: center;
  gap: 2px;
  margin-left: var(--sp-4);
}
.nav-links a {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ivory-dim);
  padding: 8px 14px;
  border-radius: var(--r-sm);
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--ivory);
  background: var(--ivory-ghost);
}
.nav-actions {
  margin-left: auto;
  display: flex; align-items: center; gap: var(--sp-3);
}
.nav-linkedin {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  border-radius: var(--r-full);
  border: 1px solid var(--border);
  color: var(--ivory-dim);
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.nav-linkedin:hover {
  color: var(--ivory);
  border-color: var(--border-hover);
  transform: translateY(-1px);
}
.hamburger {
  display: flex; flex-direction: column; gap: 5px;
  width: 36px; height: 36px;
  align-items: center; justify-content: center;
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
  background: transparent;
  color: var(--ivory-dim);
  flex-shrink: 0;
}
.hamburger span {
  display: block; width: 18px; height: 1.5px;
  background: currentColor;
  transition: transform 0.28s var(--ease), opacity 0.28s var(--ease);
  border-radius: 2px;
}
.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
.mobile-menu {
  display: none;
  border-top: 1px solid var(--border);
  padding: var(--sp-4) 0 var(--sp-5);
}
.mobile-menu.open { display: block; }
.mobile-menu nav {
  display: flex; flex-direction: column; gap: 2px;
  width: min(1160px, calc(100% - 56px));
  margin: 0 auto;
}
.mobile-menu nav a {
  padding: 12px 14px;
  font-size: var(--text-base);
  font-weight: 500;
  color: var(--ivory-dim);
  border-radius: var(--r-sm);
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.mobile-menu nav a:hover { color: var(--ivory); background: var(--ivory-ghost); }

@media (min-width: 860px) {
  .nav-links { display: flex; }
  .hamburger { display: none; }
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex; align-items: center;
  justify-content: center; gap: var(--sp-2);
  padding: 13px 26px;
  border-radius: var(--r-full);
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition:
    transform var(--dur) var(--ease),
    box-shadow var(--dur-md) var(--ease),
    background var(--dur) var(--ease),
    border-color var(--dur) var(--ease),
    color var(--dur) var(--ease);
  cursor: pointer;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}
.btn::after {
  content: "";
  position: absolute; inset: 0;
  background: rgba(255,255,255,0);
  transition: background 0.15s;
  border-radius: inherit;
}
.btn:hover::after { background: rgba(255,255,255,0.04); }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--gold);
  color: var(--black);
  border: 1px solid var(--gold);
  font-weight: 700;
}
.btn-primary:hover {
  background: var(--gold-bright);
  border-color: var(--gold-bright);
  box-shadow: 0 8px 32px rgba(200,168,75,0.3), 0 2px 8px rgba(200,168,75,0.2);
}
.btn-ghost {
  background: transparent;
  color: var(--ivory);
  border: 1px solid var(--border-hover);
}
.btn-ghost:hover {
  background: var(--ivory-ghost);
  border-color: rgba(245,240,232,0.25);
}
.btn-white {
  background: var(--ivory);
  color: var(--black);
  border: 1px solid var(--ivory);
  font-weight: 700;
}
.btn-white:hover { background: rgba(245,240,232,0.9); }
.btn-sm { padding: 9px 18px; font-size: var(--text-2xs); }
.btn-lg { padding: 16px 32px; font-size: var(--text-sm); }

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(80px, 12vh, 140px) 0 clamp(80px, 10vh, 120px);
  min-height: 92vh;
  display: flex; align-items: center;
}
.hero-bg {
  position: absolute; inset: 0;
  pointer-events: none; z-index: 0;
}
/* Large ambient glow */
.hero-glow-1 {
  position: absolute;
  width: 700px; height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200,168,75,0.09) 0%, transparent 70%);
  top: -200px; right: -100px;
}
.hero-glow-2 {
  position: absolute;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(27,35,64,0.4) 0%, transparent 70%);
  bottom: -100px; left: -50px;
}
/* Diagonal rule lines — editorial feel */
.hero-lines {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(245,240,232,0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245,240,232,0.018) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 60% 80% at 60% 40%, black, transparent);
}
.hero-inner {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: var(--sp-9);
  align-items: center;
}
.hero-content { max-width: 680px; }

/* Eyebrow label */
.hero-eyebrow {
  display: flex; align-items: center; gap: var(--sp-4);
  margin-bottom: var(--sp-6);
}
.eyebrow-line {
  display: block; width: 32px; height: 1px;
  background: var(--gold);
}
.eyebrow-text {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}
.status-pip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px;
  border-radius: var(--r-full);
  border: 1px solid rgba(76,175,116,0.25);
  background: rgba(76,175,116,0.07);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.08em;
  color: #6fcf97;
}
.status-pip::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 6px var(--green);
  animation: pip-pulse 2.2s ease-in-out infinite;
}
@keyframes pip-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.hero-title {
  font-family: var(--font-serif);
  font-size: var(--text-3xl);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin-bottom: var(--sp-6);
  color: var(--ivory);
}
.hero-title em {
  font-style: italic;
  color: var(--gold);
  font-weight: 400;
}
.hero-subtitle {
  font-size: var(--text-md);
  color: var(--ivory-dim);
  line-height: 1.75;
  max-width: 50ch;
  margin-bottom: var(--sp-7);
  font-weight: 300;
}
.hero-cta {
  display: flex; gap: var(--sp-3); flex-wrap: wrap;
  margin-bottom: var(--sp-8);
}
/* Stat row */
.hero-stats {
  display: flex; gap: var(--sp-7); flex-wrap: wrap;
  padding-top: var(--sp-6);
  border-top: 1px solid var(--border);
}
.hero-stat {}
.hero-stat-num {
  display: block;
  font-family: var(--font-serif);
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 600;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 4px;
}
.hero-stat-label {
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ivory-faint);
}

/* Profile card */
.profile-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-2xl);
  padding: var(--sp-6);
  box-shadow: var(--shadow-xl), var(--shadow-gold);
  position: relative;
  overflow: hidden;
}
/* Shimmer top line */
.profile-card::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--gold) 40%, var(--gold-bright) 50%, var(--gold) 60%, transparent 100%);
  opacity: 0.55;
}
.profile-avatar {
  position: relative;
  width: 84px; height: 84px;
  margin-bottom: var(--sp-5);
}
.avatar-initials {
  width: 84px; height: 84px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--charcoal-4), var(--charcoal-2));
  border: 1.5px solid var(--border-gold);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-serif);
  font-size: 30px;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.04em;
}
.avatar-ring {
  position: absolute; inset: -5px;
  border-radius: 50%;
  border: 1px solid rgba(200,168,75,0.18);
  animation: ring-breath 3.5s ease-in-out infinite;
}
@keyframes ring-breath {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 0.15; transform: scale(1.05); }
}
.profile-info { margin-bottom: var(--sp-5); }
.profile-info strong {
  display: block;
  font-family: var(--font-serif);
  font-size: var(--text-lg);
  font-weight: 600;
  margin-bottom: 3px;
  color: var(--ivory);
}
.profile-info span {
  font-size: var(--text-sm);
  color: var(--ivory-dim);
  font-weight: 300;
}
.profile-stats {
  display: flex; align-items: center; gap: var(--sp-5);
  padding: var(--sp-4) 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: var(--sp-5);
}
.stat { display: flex; flex-direction: column; align-items: center; flex: 1; }
.stat-num {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 600;
  color: var(--gold);
  line-height: 1;
}
.stat-label {
  font-size: var(--text-2xs);
  color: var(--ivory-faint);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: 3px;
}
.stat-divider { width: 1px; height: 28px; background: var(--border); }
.profile-tags { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.tag {
  padding: 5px 11px;
  border-radius: var(--r-full);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.06em;
  background: var(--gold-ghost);
  border: 1px solid var(--border-gold);
  color: var(--gold-pale);
}

/* ============================================
   SECTIONS
   ============================================ */
.section { padding: var(--sp-10) 0; }
.section-alt {
  background: var(--bg-raised);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.section-head {
  max-width: 640px;
  margin-bottom: var(--sp-8);
}
.section-label {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--sp-4);
}
.section-label::before {
  content: "";
  display: block;
  width: 20px; height: 1px;
  background: var(--gold);
}
.section-title {
  font-family: var(--font-serif);
  font-size: var(--text-2xl);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin-bottom: var(--sp-4);
  color: var(--ivory);
}
.section-sub {
  font-size: var(--text-md);
  color: var(--ivory-dim);
  line-height: 1.75;
  font-weight: 300;
}

/* ============================================
   PROJECTS
   ============================================ */

/*
 * UNIFORM GRID — 3 equal columns, no featured card.
 * Every card is identical: same thumbnail ratio,
 * same body layout, same hover state. Zero exceptions.
 */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-5);
  align-items: stretch; /* cards stretch to equal height per row */
}

/* .project-featured and .project-card-inner removed — all cards are equal */
.project-card {
  border-radius: var(--r-xl);
  border: 1px solid var(--border);
  background: var(--bg-card);
  overflow: hidden;
  display: flex;           /* card itself is a flex column */
  flex-direction: column;
  transition:
    border-color var(--dur-md) var(--ease),
    transform    var(--dur-lg) var(--ease),
    box-shadow   var(--dur-lg) var(--ease);
  position: relative;
}

/* Gold shimmer line — hidden until hover */
.project-card::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent,
    rgba(200,168,75,0.5),
    transparent);
  opacity: 0;
  transition: opacity var(--dur-md) var(--ease);
  z-index: 2;
}
.project-card:hover {
  border-color: var(--border-gold);
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg), 0 0 60px rgba(200,168,75,0.06);
}
.project-card:hover::before { opacity: 1; }

/* ---- Thumbnail container ----
 *
 * THE KEY FIX: every card gets a fixed 16:9 container via
 * padding-top trick. The image is absolutely positioned
 * inside it and cropped with object-fit:cover.
 * This is 100% immune to the image's natural dimensions.
 */
.project-img-wrap {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 = 9/16 = 56.25% */
  overflow: hidden;
  flex-shrink: 0;       /* never compress below its ratio */
  background: var(--charcoal-3); /* placeholder colour while image loads */
}

/* Absolutely fill the ratio container */
.project-img-wrap img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top; /* favour top of screenshot — shows the hero area */
  display: block;
  transition: transform 0.7s var(--ease);
}
.project-card:hover .project-img-wrap img { transform: scale(1.04); }

/* ---- Hover overlay (visit link) ---- */
.project-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    to top,
    rgba(10,10,11,0.78) 0%,
    rgba(10,10,11,0.18) 55%,
    transparent 100%
  );
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: var(--sp-4) var(--sp-5);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
  z-index: 1;
}
.project-card:hover .project-overlay { opacity: 1; }

/* ---- Card body — fills remaining height ---- */
.project-body {
  padding: var(--sp-5) var(--sp-5) var(--sp-6);
  display: flex;
  flex-direction: column;
  flex: 1; /* stretches so all bodies align at the bottom */
}

.project-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--sp-3);
}
.project-type {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}
.project-year {
  font-size: var(--text-xs);
  color: var(--ivory-faint);
  font-weight: 300;
}
.project-name {
  font-family: var(--font-serif);
  font-size: var(--text-lg);   /* slightly tighter than before — fits 3-col grid */
  font-weight: 500;
  line-height: 1.2;
  margin-bottom: var(--sp-3);
  color: var(--ivory);
}
.project-desc {
  font-size: var(--text-sm);
  color: var(--ivory-dim);
  line-height: 1.7;
  margin-bottom: var(--sp-4);
  flex: 1;  /* pushes role + stack to bottom */
  font-weight: 300;
}
.project-role {
  display: flex;
  flex-direction: column;
  margin-bottom: var(--sp-4);
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--r-sm);
  background: var(--ivory-ghost);
  border: 1px solid var(--border);
}
.role-label {
  font-size: var(--text-2xs);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ivory-faint);
  margin-bottom: 3px;
}
.project-role span:last-child {
  font-size: var(--text-sm);
  color: var(--ivory-dim);
  font-weight: 300;
}
.project-stack {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
}
.project-stack span {
  padding: 4px 10px;
  border-radius: var(--r-full);
  font-size: var(--text-2xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--ivory-ghost);
  border: 1px solid var(--border);
  color: var(--ivory-faint);
}

/* ============================================
   SERVICES
   ============================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-4);
  margin-bottom: var(--sp-8);
}
.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: var(--sp-6);
  transition:
    border-color var(--dur-md) var(--ease),
    transform var(--dur-lg) var(--ease),
    box-shadow var(--dur-lg) var(--ease);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(200,168,75,0.3), transparent);
  opacity: 0;
  transition: opacity var(--dur-md) var(--ease);
}
.service-card:hover {
  border-color: var(--border-gold);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md), 0 0 40px rgba(200,168,75,0.06);
}
.service-card:hover::before { opacity: 1; }

.service-icon {
  width: 48px; height: 48px;
  border-radius: var(--r-md);
  background: var(--gold-dim);
  border: 1px solid var(--border-gold);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold);
  margin-bottom: var(--sp-5);
}
.service-card h3 {
  font-family: var(--font-serif);
  font-size: var(--text-lg);
  font-weight: 500;
  margin-bottom: var(--sp-3);
  color: var(--ivory);
}
.service-card p {
  font-size: var(--text-sm);
  color: var(--ivory-dim);
  line-height: 1.7;
  margin-bottom: var(--sp-5);
  font-weight: 300;
}
.service-list {
  display: flex; flex-direction: column; gap: var(--sp-3);
  margin-bottom: var(--sp-5);
}
.service-list li {
  font-size: var(--text-sm);
  color: var(--ivory-dim);
  padding-left: var(--sp-4);
  position: relative;
  font-weight: 300;
}
.service-list li::before {
  content: "—";
  position: absolute; left: 0;
  color: var(--gold);
  font-size: 11px;
  top: 3px;
}
.service-for {
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--ivory-faint);
  padding: 8px 14px;
  border-radius: var(--r-md);
  background: var(--ivory-ghost);
  border: 1px solid var(--border);
}
.services-cta {
  text-align: center;
  padding-top: var(--sp-7);
  border-top: 1px solid var(--border);
}
.services-cta p {
  font-size: var(--text-md);
  color: var(--ivory-dim);
  margin-bottom: var(--sp-5);
  font-weight: 300;
}

/* ============================================
   ABOUT
   ============================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: var(--sp-10);
  align-items: start;
}
.about-left .section-label { margin-bottom: var(--sp-3); }
.about-left .section-title { margin-bottom: var(--sp-6); }
.about-text {
  font-size: var(--text-md);
  color: var(--ivory-dim);
  line-height: 1.8;
  margin-bottom: var(--sp-5);
  font-weight: 300;
}
.about-open {
  display: flex; flex-direction: column; gap: var(--sp-4);
  margin-bottom: var(--sp-6);
  padding: var(--sp-5);
  border-radius: var(--r-xl);
  border: 1px solid var(--border);
  background: var(--bg-card);
  position: relative; overflow: hidden;
}
.about-open::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(200,168,75,0.2), transparent);
}
.open-item {
  display: flex; align-items: flex-start; gap: var(--sp-3);
}
.open-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--green);
  margin-top: 7px;
  flex-shrink: 0;
  box-shadow: 0 0 8px var(--green-glow);
  animation: pip-pulse 2.2s ease-in-out infinite;
}
.open-dot-amber {
  background: var(--gold);
  box-shadow: 0 0 8px var(--gold-glow);
}
.open-item strong { display: block; font-size: var(--text-base); margin-bottom: 2px; color: var(--ivory); }
.open-item span { font-size: var(--text-sm); color: var(--ivory-dim); font-weight: 300; }

/* About right card */
.about-profile-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  position: relative;
}
.about-profile-card::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), var(--gold-bright), var(--gold), transparent);
  opacity: 0.45;
}
.about-avatar {
  background: linear-gradient(145deg, var(--charcoal-3), var(--charcoal-2));
  padding: var(--sp-8) var(--sp-5);
  display: flex; align-items: center; justify-content: center;
  border-bottom: 1px solid var(--border);
}
.avatar-initials-lg {
  width: 110px; height: 110px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--charcoal-4), var(--charcoal-2));
  border: 2px solid var(--border-gold);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-serif);
  font-size: 44px;
  font-weight: 600;
  color: var(--gold);
}
.about-skills { padding: var(--sp-6); display: flex; flex-direction: column; gap: var(--sp-5); }
.skills-label {
  display: block;
  font-size: var(--text-2xs);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--sp-2);
}
.skills-list { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.skills-list span {
  padding: 5px 12px;
  border-radius: var(--r-full);
  font-size: var(--text-xs);
  font-weight: 500;
  background: var(--ivory-ghost);
  border: 1px solid var(--border);
  color: var(--ivory-dim);
}

/* ============================================
   CONTACT
   ============================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.6fr;
  gap: var(--sp-5);
  align-items: start;
}
.contact-main {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-2xl);
  padding: var(--sp-8);
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; gap: var(--sp-4);
}
.contact-main::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), var(--gold-bright), var(--gold), transparent);
  opacity: 0.55;
}
.contact-heading {
  font-family: var(--font-serif);
  font-size: var(--text-xl);
  font-weight: 500;
  color: var(--ivory);
  margin: 0;
}
.contact-text {
  font-size: var(--text-md);
  color: var(--ivory-dim);
  line-height: 1.7;
  font-weight: 300;
  margin: 0;
}
.contact-note {
  font-size: var(--text-xs);
  color: var(--ivory-faint);
  letter-spacing: 0.06em;
}
.contact-cards { display: flex; flex-direction: column; gap: var(--sp-3); }
.contact-info-card {
  display: flex; align-items: flex-start; gap: var(--sp-4);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--sp-4) var(--sp-5);
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.contact-info-card:hover {
  border-color: var(--border-gold);
  transform: translateX(3px);
}
.contact-info-icon {
  flex-shrink: 0;
  width: 36px; height: 36px;
  border-radius: var(--r-sm);
  background: var(--gold-dim);
  border: 1px solid var(--border-gold);
  color: var(--gold);
  display: flex; align-items: center; justify-content: center;
}
.contact-info-card strong { display: block; font-size: var(--text-sm); font-weight: 600; margin-bottom: 2px; color: var(--ivory); }
.contact-info-card span { font-size: var(--text-sm); color: var(--ivory-dim); font-weight: 300; }

/* ============================================
   FOOTER
   ============================================ */
.footer {
  border-top: 1px solid var(--border);
  padding: var(--sp-7) 0;
}
.footer-inner {
  display: flex; align-items: center;
  gap: var(--sp-5); flex-wrap: wrap;
}
.footer-left { display: flex; align-items: center; gap: var(--sp-4); }
.footer-logo {
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--gold);
  text-transform: uppercase;
}
.footer-copy { font-size: var(--text-xs); color: var(--ivory-faint); font-weight: 300; }
.footer-links { display: flex; gap: 2px; flex-wrap: wrap; margin-left: auto; }
.footer-links a {
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ivory-dim);
  padding: 7px 12px;
  border-radius: var(--r-sm);
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.footer-links a:hover { color: var(--ivory); background: var(--ivory-ghost); }
.footer-social { display: flex; gap: var(--sp-2); }
.footer-social a {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  border-radius: var(--r-full);
  border: 1px solid var(--border);
  color: var(--ivory-dim);
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.footer-social a:hover { color: var(--ivory); border-color: var(--border-hover); transform: translateY(-2px); }

/* ============================================
   TOAST
   ============================================ */
#toast {
  position: fixed; bottom: 24px; left: 50%;
  transform: translateX(-50%) translateY(12px);
  opacity: 0;
  background: rgba(18,18,20,0.95);
  border: 1px solid var(--border-gold);
  color: var(--gold-pale);
  padding: 11px 20px;
  border-radius: var(--r-full);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.04em;
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
  pointer-events: none;
  z-index: 9999;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ============================================
   REVEAL ANIMATIONS
   ============================================ */
[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.75s var(--ease-out), transform 0.75s var(--ease-out);
}
[data-reveal-right] {
  opacity: 0;
  transform: translateX(20px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.is-in {
  opacity: 1 !important;
  transform: translate(0,0) !important;
}
@media (prefers-reduced-motion: reduce) {
  [data-reveal], [data-reveal-right] {
    opacity: 1 !important; transform: none !important; transition: none !important;
  }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1100px) {
  /* 3-col → 2-col at mid-tablet */
  .projects-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1040px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .about-grid { grid-template-columns: 1fr; gap: var(--sp-7); }
}
@media (max-width: 640px) {
  /* 2-col → 1-col on mobile */
  .projects-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .hero { min-height: auto; padding: var(--sp-8) 0; }
  .services-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: var(--sp-4); }
  .footer-links { margin-left: 0; }
  .hero-stats { gap: var(--sp-6); }
}
@media (max-width: 500px) {
  .hero-title { font-size: clamp(40px, 10vw, 56px); }
  .section-title { font-size: clamp(30px, 8vw, 44px); }
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; justify-content: center; }
}

/* ============================================
   EDUCATION PAGE STYLES
   ============================================ */
.edu-hero { padding-top: var(--sp-9); }

.edu-uni {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--sp-8);
  align-items: start;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-2xl);
  padding: var(--sp-8);
  margin-bottom: var(--sp-10);
  position: relative; overflow: hidden;
}
.edu-uni::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), var(--gold-bright), var(--gold), transparent);
  opacity: 0.45;
}
.edu-uni-badge {
  width: 80px; height: 80px;
  border-radius: var(--r-lg);
  background: linear-gradient(145deg, var(--charcoal-4), var(--charcoal-3));
  border: 1px solid var(--border-gold);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.edu-badge-letter {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.1em;
}
.edu-degree-tag {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--sp-3);
}
.edu-school {
  font-family: var(--font-serif);
  font-size: var(--text-2xl);
  font-weight: 500;
  line-height: 1.08;
  margin-bottom: var(--sp-4);
  color: var(--ivory);
}
.edu-meta { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-bottom: var(--sp-5); }
.edu-meta-item {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  font-size: var(--text-sm);
  color: var(--ivory-dim);
  font-weight: 300;
}
.edu-focus {
  padding: 4px 12px;
  border-radius: var(--r-full);
  background: var(--gold-dim);
  border: 1px solid var(--border-gold);
  color: var(--gold-pale) !important;
  font-weight: 600;
  letter-spacing: 0.08em;
  font-size: var(--text-xs) !important;
}
.edu-desc {
  font-size: var(--text-md);
  color: var(--ivory-dim);
  line-height: 1.75;
  margin-bottom: var(--sp-5);
  max-width: 60ch;
  font-weight: 300;
}
.edu-open-for {
  display: inline-flex; align-items: center; gap: var(--sp-3);
  padding: 10px 16px;
  border-radius: var(--r-sm);
  background: rgba(76,175,116,0.06);
  border: 1px solid rgba(76,175,116,0.18);
}
.edu-open-for span { font-size: var(--text-sm); color: var(--ivory-dim); font-weight: 300; }

/* Certs */
.edu-certs { margin-bottom: var(--sp-10); }
.edu-certs-title {
  font-family: var(--font-serif);
  font-size: var(--text-xl);
  font-weight: 500;
  margin-bottom: var(--sp-2);
  color: var(--ivory);
}
.edu-certs-sub {
  font-size: var(--text-md);
  color: var(--ivory-dim);
  margin-bottom: var(--sp-7);
  font-weight: 300;
}
.certs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-5);
}
.cert-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: var(--sp-6);
  display: flex; flex-direction: column; gap: var(--sp-4);
  transition: border-color var(--dur-md) var(--ease), transform var(--dur-lg) var(--ease);
}
.cert-card:hover { border-color: var(--border-gold); transform: translateY(-3px); }
.cert-header { display: flex; align-items: center; gap: var(--sp-3); }
.cert-school-badge {
  width: 44px; height: 44px;
  border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-serif);
  font-size: 18px; font-weight: 600;
  letter-spacing: 0.05em; flex-shrink: 0;
}
.cert-harvard { background: rgba(165,0,0,0.12); border: 1px solid rgba(165,0,0,0.2); color: #e07070; }
.cert-yale { background: rgba(0,53,107,0.18); border: 1px solid rgba(0,80,180,0.25); color: #7aaee0; }
.cert-institution { font-size: var(--text-base); font-weight: 600; color: var(--ivory); }
.cert-type { font-size: var(--text-xs); color: var(--ivory-dim); letter-spacing: 0.12em; text-transform: uppercase; font-weight: 300; }
.cert-preview {
  display: block;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  position: relative;
  aspect-ratio: 4/3;
}
.cert-preview img {
  width: 100%; height: 100%;
  object-fit: contain;
  background: rgba(0,0,0,0.15);
  transition: transform 0.45s var(--ease);
}
.cert-preview:hover img { transform: scale(1.03); }
.cert-preview-overlay {
  position: absolute; inset: 0;
  background: rgba(10,10,11,0.55);
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transition: opacity 0.25s var(--ease);
  font-size: var(--text-md);
  font-weight: 500;
  letter-spacing: 0.05em;
}
.cert-preview:hover .cert-preview-overlay { opacity: 1; }

/* Edu CTAs */
.edu-footer-ctas {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-4);
}
.edu-cta-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: var(--sp-6);
  transition: border-color var(--dur) var(--ease);
  position: relative; overflow: hidden;
}
.edu-cta-card::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(200,168,75,0.2), transparent);
  opacity: 0;
  transition: opacity var(--dur-md) var(--ease);
}
.edu-cta-card:hover { border-color: var(--border-gold); }
.edu-cta-card:hover::before { opacity: 1; }
.edu-cta-card h3 {
  font-family: var(--font-serif);
  font-size: var(--text-lg);
  font-weight: 500;
  margin-bottom: var(--sp-2);
  color: var(--ivory);
}
.edu-cta-card p {
  font-size: var(--text-sm);
  color: var(--ivory-dim);
  margin-bottom: var(--sp-5);
  font-weight: 300;
}

@media (max-width: 720px) {
  .edu-uni { grid-template-columns: 1fr; gap: var(--sp-5); }
  .edu-uni-badge { width: 60px; height: 60px; }
  .certs-grid { grid-template-columns: 1fr; }
  .edu-footer-ctas { grid-template-columns: 1fr; }
}

/* Nav active state */
.nav-links a.active {
  color: var(--ivory);
  background: rgba(200,168,75,0.08);
}
