/* ═══════════════════════════════════════════════════════════════
   VARIABLES & RESET
   ═══════════════════════════════════════════════════════════════ */
:root {
  --black:    #0f1729;
  --gray-900: #1a2744;
  --gray-800: #243258;
  --gray-700: #3d4f72;
  --gray-600: #5a6e96;
  --gray-400: #8a9bbf;
  --gray-300: #b0bcda;
  --gray-200: #d0d8ed;
  --gray-100: #e4e9f5;
  --gray-50:  #f0f3fa;
  --white:    #f8f9fd;
  --cream:    #eef1f9;

  --gold:        #4a7fa5;
  --gold-dark:   #2c5f82;
  --gold-light:  #7ab3d4;
  --gold-muted:  rgba(74, 127, 165, 0.12);
  --gold-border: rgba(74, 127, 165, 0.28);

  --font-serif: 'Fraunces', 'Georgia', serif;
  --font-sans:  'DM Sans', system-ui, sans-serif;
  --font-mono:  'DM Mono', 'Courier New', monospace;

  --nav-h: 70px;
  --max-w: 1180px;
  --section-pad: 128px;
  --radius: 6px;
  --radius-lg: 14px;
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-sm: 0 2px 12px rgba(15,23,41,0.07);
  --shadow-md: 0 8px 32px rgba(15,23,41,0.12);
  --shadow-lg: 0 20px 64px rgba(15,23,41,0.16);
  --shadow-xl: 0 32px 80px rgba(15,23,41,0.22);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-sans);
  background: var(--white);
  color: var(--black);
  line-height: 1.65;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ── Grain texture overlay ───────────────────────────────────── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  opacity: 0.55;
  mix-blend-mode: multiply;
}

/* ═══════════════════════════════════════════════════════════════
   TYPOGRAPHY
   ═══════════════════════════════════════════════════════════════ */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  line-height: 1.08;
  letter-spacing: -0.025em;
}
em { font-style: italic; }

/* ═══════════════════════════════════════════════════════════════
   LAYOUT UTILITIES
   ═══════════════════════════════════════════════════════════════ */
.section-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: var(--section-pad) 48px;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.section-label::after {
  content: '';
  display: block;
  width: 40px;
  height: 1px;
  background: var(--gold-border);
}

.section-title {
  font-size: clamp(2.6rem, 5.5vw, 4.2rem);
  margin-bottom: 64px;
  font-weight: 700;
  color: var(--black);
}
.section-title em { color: var(--gold-dark); font-style: italic; }

/* ═══════════════════════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: 3px;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  transition: var(--transition);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.25s;
  background: rgba(255,255,255,0.08);
}
.btn:hover::after { opacity: 1; }
.btn-primary {
  background: var(--black);
  color: var(--white);
  border: 1.5px solid var(--black);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.35);
}
.btn-ghost:hover {
  border-color: rgba(255,255,255,0.8);
  transform: translateY(-2px);
}

/* ═══════════════════════════════════════════════════════════════
   NAV
   ═══════════════════════════════════════════════════════════════ */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 100;
  transition: background 0.4s, box-shadow 0.4s, border-color 0.4s;
  background: transparent;
}
#nav.scrolled {
  background: rgba(250, 250, 245, 0.94);
  backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: 0 1px 0 var(--gray-100), var(--shadow-sm);
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 48px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--white);
  transition: color 0.4s;
}
#nav.scrolled .nav-logo { color: var(--black); }
.nav-logo .dot { color: var(--gold); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-links a {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.75);
  font-weight: 400;
  letter-spacing: 0.01em;
  transition: color var(--transition);
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width 0.3s ease;
}
.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { width: 100%; }
#nav.scrolled .nav-links a { color: var(--gray-600); }
#nav.scrolled .nav-links a:hover { color: var(--black); }
.nav-cta {
  background: rgba(255,255,255,0.12) !important;
  color: var(--white) !important;
  padding: 8px 20px;
  border-radius: 3px;
  border: 1px solid rgba(255,255,255,0.2) !important;
  backdrop-filter: blur(8px);
  font-size: 0.83rem !important;
}
.nav-cta:hover { background: rgba(255,255,255,0.22) !important; }
.nav-cta::after { display: none !important; }
#nav.scrolled .nav-cta {
  background: var(--black) !important;
  color: var(--white) !important;
  border-color: var(--black) !important;
}
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--white);
  transition: var(--transition);
}
#nav.scrolled .nav-hamburger span { background: var(--black); }

/* ═══════════════════════════════════════════════════════════════
   HERO — Full-bleed dark with geometric accents
   ═══════════════════════════════════════════════════════════════ */
#hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: var(--black);
  color: var(--white);
}

/* Layered gradient mesh background */
#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 40%, rgba(74,127,165,0.18) 0%, transparent 60%),
    radial-gradient(ellipse 50% 80% at -10% 80%, rgba(44,95,130,0.14) 0%, transparent 50%),
    radial-gradient(ellipse 60% 40% at 100% 10%, rgba(122,179,212,0.08) 0%, transparent 50%);
  pointer-events: none;
}

/* Decorative grid lines */
#hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 80px 80px;
  pointer-events: none;
}

/* Large serif watermark */
.hero-bg-text {
  position: absolute;
  top: 50%;
  right: -4%;
  transform: translateY(-52%);
  font-family: var(--font-serif);
  font-size: clamp(140px, 22vw, 300px);
  font-weight: 700;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255,255,255,0.04);
  letter-spacing: -0.06em;
  pointer-events: none;
  user-select: none;
  line-height: 1;
  z-index: 1;
}

/* Decorative corner bracket */
.hero-corner {
  position: absolute;
  top: 48px;
  right: 48px;
  width: 60px;
  height: 60px;
  border-top: 1px solid var(--gold-border);
  border-right: 1px solid var(--gold-border);
  z-index: 2;
}
.hero-corner-bl {
  position: absolute;
  bottom: 120px;
  left: 48px;
  width: 40px;
  height: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  border-left: 1px solid rgba(255,255,255,0.06);
  z-index: 2;
}

.hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: calc(var(--nav-h) + 60px) 96px 60px;
  width: 100%;
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
}

.hero-content {
  flex: 1;
}

.hero-photo {
  flex-shrink: 0;
  width: 380px;
  height: 400px;
  border-radius: 4px 120px 4px 120px;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 32px 80px rgba(15,23,41,0.5);
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: saturate(0.9);
}

.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  animation: fadeUp 0.9s 0.1s both;
}
.hero-eyebrow::before {
  content: '';
  display: block;
  width: 28px;
  height: 1px;
  background: var(--gold);
}

.hero-name {
  font-size: clamp(4.5rem, 11vw, 9.5rem);
  font-weight: 700;
  line-height: 0.92;
  margin-bottom: 36px;
  color: var(--white);
  animation: fadeUp 0.9s 0.2s both;
}
.hero-name em {
  color: var(--gold-light);
  font-style: italic;
  display: block;
}

.hero-tagline {
  font-size: clamp(1rem, 2vw, 1.22rem);
  color: rgba(255,255,255,0.5);
  max-width: 460px;
  margin-bottom: 48px;
  line-height: 1.65;
  font-weight: 300;
  animation: fadeUp 0.9s 0.3s both;
}

.hero-divider {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  margin-bottom: 32px;
  animation: fadeUp 0.9s 0.35s both;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  animation: fadeUp 0.9s 0.4s both;
}

.hero-scroll-hint {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 80px;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.25);
  animation: fadeUp 0.9s 0.7s both;
}
.scroll-line {
  width: 60px;
  height: 1px;
  background: rgba(255,255,255,0.12);
  position: relative;
  overflow: hidden;
}
.scroll-line::after {
  content: '';
  position: absolute;
  left: -100%;
  top: 0;
  width: 100%;
  height: 100%;
  background: var(--gold);
  animation: scrollLine 2.2s 2s ease infinite;
}
@keyframes scrollLine { 0%{left:-100%} 100%{left:200%} }

/* Hero stats bar */
.hero-stats {
  display: flex;
  gap: 0;
  border-top: 1px solid rgba(255,255,255,0.06);
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 48px;
  position: relative;
  z-index: 2;
  animation: fadeUp 0.9s 0.55s both;
}
.stat {
  flex: 1;
  padding: 32px 0 36px;
  border-right: 1px solid rgba(255,255,255,0.06);
  padding-right: 48px;
  padding-left: 48px;
}
.stat:first-child { padding-left: 0; }
.stat:last-child { border-right: none; }
.stat-num {
  display: block;
  font-family: var(--font-serif);
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 8px;
  color: var(--white);
}
.stat-label {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.35);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ── Hero animations ────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ═══════════════════════════════════════════════════════════════
   ABOUT — Warm cream with card depth
   ═══════════════════════════════════════════════════════════════ */
#about {
  background: var(--cream);
  position: relative;
  overflow: hidden;
}
#about::before {
  content: '';
  position: absolute;
  top: -200px; right: -200px;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(74,127,165,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.about-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  padding: 48px;
  position: relative;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
  box-shadow: var(--shadow-sm);
}
.about-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold-light), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}
.about-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.about-card:hover::before { opacity: 1; }

/* Large faded numeral in card bg */
.about-card::after {
  content: attr(data-num);
  position: absolute;
  bottom: -20px; right: 20px;
  font-family: var(--font-serif);
  font-size: 10rem;
  font-weight: 700;
  color: var(--gray-50);
  line-height: 1;
  pointer-events: none;
  user-select: none;
  transition: color var(--transition);
  z-index: 0;  
}

.about-card > * {
  position: relative;
  z-index: 1;
}

.about-card-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}
.about-tag {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-dark);
  background: var(--gold-muted);
  border: 1px solid var(--gold-border);
  padding: 4px 12px;
  border-radius: 2px;
  white-space: nowrap;
}
.about-line { flex: 1; height: 1px; background: var(--gray-100); }

.about-card h2 {
  font-size: clamp(1.7rem, 2.8vw, 2.2rem);
  margin-bottom: 22px;
  color: var(--black);
  line-height: 1.15;
}
.about-card h2 em { color: var(--gold-dark); }
.about-card p {
  font-size: 0.94rem;
  color: var(--gray-600);
  line-height: 1.8;
  margin-bottom: 16px;
}
.about-card p:last-of-type { margin-bottom: 32px; }
.about-card p strong { color: var(--black); font-weight: 500; }

.skill-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.skill-pills span {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  background: var(--gray-50);
  border: 1px solid var(--gray-100);
  padding: 5px 13px;
  border-radius: 2px;
  color: var(--gray-700);
  transition: border-color 0.2s, background 0.2s;
}
.skill-pills span:hover {
  border-color: var(--gold-border);
  background: var(--gold-muted);
  color: var(--gold-dark);
}

.personal-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.personal-tags span {
  font-size: 0.85rem;
  background: var(--cream);
  border: 1px solid var(--gray-100);
  padding: 7px 16px;
  border-radius: 40px;
  color: var(--gray-700);
  transition: border-color 0.2s;
}
.personal-tags span:hover { border-color: var(--gold-border); }

/* ═══════════════════════════════════════════════════════════════
   EXPERIENCE — White with strong timeline
   ═══════════════════════════════════════════════════════════════ */
#experience { background: var(--white); position: relative; }

/* Subtle dot grid */
#experience::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(var(--gray-100) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
  opacity: 0.6;
}

.exp-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 64px;
  align-items: start;
  position: relative;
  z-index: 1;
}

/* Timeline */
.timeline { position: relative; }
.timeline::before {
  content: '';
  position: absolute;
  left: 0; top: 8px; bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, var(--gold), var(--gray-100) 80%);
}
.timeline-item {
  position: relative;
  padding-left: 40px;
  margin-bottom: 60px;
  opacity: 0;
  transform: translateX(-16px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.timeline-item.visible { opacity: 1; transform: translateX(0); }

.timeline-marker {
  position: absolute;
  left: -6px; top: 6px;
  width: 13px; height: 13px;
  background: var(--white);
  border: 2px solid var(--gold);
  border-radius: 50%;
  box-shadow: 0 0 0 4px var(--gold-muted);
}

.timeline-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
}
.timeline-date {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  color: var(--gold-dark);
  background: var(--gold-muted);
  border: 1px solid var(--gold-border);
  padding: 2px 10px;
  border-radius: 2px;
}
.timeline-company {
  font-size: 0.82rem;
  color: var(--gray-400);
  font-weight: 400;
}
.timeline-role {
  font-size: 1.42rem;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--black);
}
.timeline-bullets { margin-bottom: 18px; }
.timeline-bullets li {
  font-size: 0.91rem;
  color: var(--gray-600);
  line-height: 1.75;
  padding-left: 18px;
  position: relative;
  margin-bottom: 7px;
}
.timeline-bullets li::before {
  content: '–';
  position: absolute;
  left: 0;
  color: var(--gold);
}
.timeline-bullets li strong { color: var(--black); font-weight: 500; }
.timeline-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.timeline-tags span {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--gray-400);
  background: var(--gray-50);
  border: 1px solid var(--gray-100);
  padding: 2px 10px;
  border-radius: 2px;
}

/* Sidebar */
.exp-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: sticky;
  top: calc(var(--nav-h) + 28px);
}
.edu-card, .skills-card {
  background: var(--cream);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  padding: 28px 30px;
  box-shadow: var(--shadow-sm);
}
.edu-item {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--gray-100);
}
.edu-item:first-of-type { margin-top: 14px; }
.edu-item strong {
  display: block;
  font-size: 0.88rem;
  font-weight: 500;
  margin-bottom: 3px;
  color: var(--black);
}
.edu-item span {
  font-size: 0.78rem;
  color: var(--gray-400);
  font-family: var(--font-mono);
}
.edu-honors {
  display: block;
  margin-top: 5px;
  font-size: 0.72rem;
  color: var(--gold-dark);
  font-family: var(--font-mono);
  letter-spacing: 0.03em;
}

.skill-row { margin-top: 15px; }
.skill-row:first-of-type { margin-top: 14px; }
.skill-name {
  display: block;
  font-size: 0.8rem;
  color: var(--gray-600);
  margin-bottom: 7px;
}
.skill-bar {
  height: 3px;
  background: var(--gray-100);
  border-radius: 2px;
  overflow: hidden;
}
.skill-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold-light));
  border-radius: 2px;
  transition: width 1.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.skill-fill.animate { width: var(--w); }

.resume-download {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px;
  background: var(--black);
  color: var(--white);
  border-radius: var(--radius);
  font-size: 0.86rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  box-shadow: var(--shadow-sm);
}
.resume-download:hover {
  background: var(--gray-800);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* ═══════════════════════════════════════════════════════════════
   TECH PROJECTS — Cream background
   ═══════════════════════════════════════════════════════════════ */
#tech-projects {
  background: var(--cream);
  position: relative;
  overflow: hidden;
}
#tech-projects::after {
  content: '';
  position: absolute;
  bottom: -100px; right: -100px;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(74,127,165,0.09) 0%, transparent 65%);
  pointer-events: none;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  position: relative;
  z-index: 1;
}
.project-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
  opacity: 0;
  transform: translateY(24px);
  box-shadow: var(--shadow-sm);
}
.project-card.visible { opacity: 1; transform: translateY(0); }
.project-card:hover,
a.project-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-xl); }

a.project-card {
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.github-icon {
  color: var(--gray-300);
}
.project-card.featured .github-icon {
  color: rgba(255,255,255,0.3);
}


/* Featured card — dark */
.project-card.featured {
  grid-column: span 2;
  background: var(--gray-900);
  border-color: var(--gray-800);
  position: relative;
  overflow: hidden;
}
.project-card.featured::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 90% 50%, rgba(74,127,165,0.12) 0%, transparent 60%),
    linear-gradient(135deg, rgba(255,255,255,0.01) 0%, transparent 50%);
  pointer-events: none;
}
.project-card.featured .project-card-inner { position: relative; z-index: 1; }
.project-card.featured h3 { color: var(--white); }
.project-card.featured p { color: rgba(255,255,255,0.45); }
.project-card.featured .project-number { color: rgba(255,255,255,0.06); }
.project-card.featured .project-category { color: var(--gold-light); }
.project-card.featured .project-tech span {
  border-color: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.45);
  background: rgba(255,255,255,0.04);
}

.project-card-inner { padding: 38px; }
.project-number {
  font-family: var(--font-serif);
  font-size: 4.5rem;
  font-weight: 700;
  color: var(--gray-100);
  line-height: 1;
  margin-bottom: 18px;
}
.project-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.project-category {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-dark);
}
.project-links { display: flex; gap: 14px; }

.project-card h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 13px;
  line-height: 1.2;
  color: var(--black);
}
.project-card p {
  font-size: 0.9rem;
  color: var(--gray-600);
  line-height: 1.75;
  margin-bottom: 22px;
}
.project-tech { display: flex; flex-wrap: wrap; gap: 6px; }
.project-tech span {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  padding: 3px 10px;
  border: 1px solid var(--gray-200);
  border-radius: 2px;
  color: var(--gray-600);
  background: var(--gray-50);
}

/* ═══════════════════════════════════════════════════════════════
   BLOG — White, editorial
   ═══════════════════════════════════════════════════════════════ */
#blog {
  background: var(--white);
  position: relative;
}
#blog::before {
  content: '"';
  position: absolute;
  top: 60px; right: 40px;
  font-family: var(--font-serif);
  font-size: 22rem;
  color: var(--gray-50);
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

.section-subtitle {
  font-size: 0.98rem;
  color: var(--gray-400);
  margin-top: -48px;
  margin-bottom: 60px;
  max-width: 480px;
  line-height: 1.7;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  position: relative;
  z-index: 1;
}
.blog-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition);
  cursor: pointer;
  opacity: 0;
  transform: translateY(20px);
  box-shadow: var(--shadow-sm);
}
.blog-card.visible { opacity: 1; transform: translateY(0); }
.blog-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.blog-card:hover .read-more { color: var(--black); letter-spacing: 0.06em; }

.blog-card.featured-post {
  grid-column: span 3;
  flex-direction: row;
}
.blog-card.featured-post .blog-card-image {
  flex-shrink: 0;
  width: 400px;
}
.blog-card.featured-post .blog-card-body { padding: 48px; }
.blog-card.featured-post h3 { font-size: 1.55rem; }

.blog-card-image {
  height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gray-900);
  position: relative;
  overflow: hidden;
}
.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.blog-card-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 70%, rgba(74,127,165,0.20) 0%, transparent 60%);
}
.blog-image-placeholder {
  font-size: 3rem;
  color: rgba(255,255,255,0.12);
  position: relative;
  z-index: 1;
}

.blog-card-body {
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.blog-meta { display: flex; align-items: center; gap: 12px; }
.blog-tag {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-dark);
  background: var(--gold-muted);
  border: 1px solid var(--gold-border);
  padding: 3px 9px;
  border-radius: 2px;
}
.blog-date {
  font-size: 0.76rem;
  color: var(--gray-400);
  font-family: var(--font-mono);
}
.blog-card h3 {
  font-size: 1.08rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--black);
}
.blog-card p {
  font-size: 0.87rem;
  color: var(--gray-600);
  line-height: 1.75;
  flex: 1;
}
.read-more {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--gray-300);
  letter-spacing: 0.04em;
  transition: color var(--transition), letter-spacing var(--transition);
  margin-top: 6px;
}

/* ═══════════════════════════════════════════════════════════════
   CONTACT — Full dark, dramatic
   ═══════════════════════════════════════════════════════════════ */
#contact {
  background: var(--black);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
#contact::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 50% 100%, rgba(74,127,165,0.12) 0%, transparent 60%),
    linear-gradient(to bottom, transparent 0%, rgba(74,127,165,0.04) 100%);
  pointer-events: none;
}
#contact::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.015) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}
#contact .section-label { color: var(--gold); }
#contact .section-label::after { background: var(--gold-border); }

.contact-inner { text-align: center; position: relative; z-index: 1; }
.contact-title {
  font-size: clamp(3.5rem, 8vw, 7rem);
  margin-bottom: 24px;
  color: var(--white);
}
.contact-title em { color: var(--gold-light); }
.contact-sub {
  font-size: 1rem;
  color: rgba(255,255,255,0.4);
  max-width: 400px;
  margin: 0 auto 64px;
  line-height: 1.75;
  font-weight: 300;
}
.contact-links {
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}
.contact-link {
  display: flex;
  align-items: center;
  gap: 18px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  padding: 22px 30px;
  transition: border-color var(--transition), transform var(--transition), background var(--transition), box-shadow var(--transition);
  text-align: left;
  min-width: 230px;
  backdrop-filter: blur(8px);
}
.contact-link:hover {
  border-color: var(--gold-border);
  background: rgba(74,127,165,0.08);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.3);
}
.contact-link-icon {
  width: 44px; height: 44px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--gold);
  flex-shrink: 0;
  transition: background 0.3s, border-color 0.3s;
}
.contact-link:hover .contact-link-icon {
  background: var(--gold-muted);
  border-color: var(--gold-border);
}
.contact-link-label {
  font-size: 0.68rem;
  font-family: var(--font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  margin-bottom: 3px;
}
.contact-link-value {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.75);
}

/* ═══════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════ */
footer {
  background: var(--gray-900);
  border-top: 1px solid rgba(255,255,255,0.04);
  padding: 28px 48px;
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.2);
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}
.footer-inner a { color: rgba(255,255,255,0.3); transition: color var(--transition); }
.footer-inner a:hover { color: var(--gold); }

/* ═══════════════════════════════════════════════════════════════
   SCROLL ANIMATIONS
   ═══════════════════════════════════════════════════════════════ */
[data-anim] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
[data-anim].visible {
  opacity: 1;
  transform: translateY(0);
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .exp-layout { grid-template-columns: 1fr; }
  .exp-sidebar { position: static; }
  .blog-card.featured-post { flex-direction: column; }
  .blog-card.featured-post .blog-card-image { width: 100%; }
}
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
  .project-card.featured { grid-column: span 1; }
  .blog-grid { grid-template-columns: 1fr 1fr; }
  .blog-card.featured-post { grid-column: span 2; }
  .hero-stats { flex-direction: column; }
  .stat { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.06); padding: 20px 0; }
  .stat:first-child { padding-left: 0; }
}
@media (max-width: 640px) {
  :root { --section-pad: 80px; }
  .section-inner { padding-left: 24px; padding-right: 24px; }
  .nav-inner { padding: 0 24px; }
  .hero-inner {
    flex-direction: column-reverse;
    gap: 40px;
  }
.hero-photo {
  flex-shrink: 0;
  width: 400px;
  height: 480px;
  border-radius: 4px 120px 4px 120px;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 32px 80px rgba(15,23,41,0.5);
  align-self: center;
  margin-left: auto;
}
  .hero-stats { padding-left: 24px; padding-right: 24px; }
  .nav-links { display: none; flex-direction: column; }
  .nav-links.open {
    display: flex;
    position: fixed;
    top: var(--nav-h); left: 0; right: 0;
    background: rgba(12,12,10,0.96);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    padding: 24px 24px;
    gap: 22px;
    z-index: 99;
  }
  .nav-links.open a { color: rgba(255,255,255,0.7); }
  .nav-hamburger { display: flex; }
  .about-card { padding: 32px; }
  .project-card-inner { padding: 28px; }
  .blog-grid { grid-template-columns: 1fr; }
  .blog-card.featured-post { grid-column: span 1; }
  .blog-card.featured-post .blog-card-body { padding: 28px; }
  .contact-links { flex-direction: column; align-items: stretch; }
  .hero-corner, .hero-corner-bl { display: none; }
  .footer-inner { flex-direction: column; gap: 8px; text-align: center; }
}
