/* =============================================
   THEME VARIABLES — v2
   ============================================= */

:root {
  --transition-theme: background-color 0.55s ease, color 0.55s ease, border-color 0.55s ease, box-shadow 0.55s ease;
  /* Brown palette derived from uploaded swatch */
  --brown-100: #f5ede6;
  --brown-200: #e2c4ad;
  --brown-300: #c49070;
  --brown-400: #8b5a3a;
  --brown-500: #6b3820;
  --brown-600: #4a2210;
  --brown-700: #2e1209;
}

/* ── LIGHT (default) ── warm-white with brown accent */
.light-theme {
  --bg:               #faf8f5;
  --bg-surface:       #ffffff;
  --bg-subtle:        #f4f1ec;
  --text-primary:     #1c1410;
  --text-secondary:   #5a4a3a;
  --text-muted:       #a08878;
  --accent:           var(--brown-500);
  --accent-hover:     var(--brown-400);
  --accent-light:     #f0e4d8;
  --accent-text:      var(--brown-500);
  --border:           #e6ddd4;
  --border-soft:      #ede8e2;
  --tag-bg:           #f0ebe4;
  --tag-text:         #4a3828;
  --tag-accent-bg:    #f0e4d8;
  --tag-accent-text:  var(--brown-500);
  --card-shadow:      0 1px 4px rgba(74,34,16,0.07), 0 1px 2px rgba(74,34,16,0.04);
  --card-shadow-hover:0 8px 28px rgba(74,34,16,0.12);
  --nav-bg:           rgba(250,248,245,0.93);
  --orbit-ring:       rgba(107,56,32,0.18);
  --orbit-ring-2:     rgba(107,56,32,0.10);
  --orbit-dot-1:      var(--brown-400);
  --orbit-dot-2:      var(--brown-300);
  --logo-color:       var(--brown-600);
}

/* ── DARK ── */
.dark-theme {
  --bg:               #0f0c0a;
  --bg-surface:       #1a1410;
  --bg-subtle:        #211810;
  --text-primary:     #f0e8e0;
  --text-secondary:   #b09080;
  --text-muted:       #6a5040;
  --accent:           var(--brown-300);
  --accent-hover:     var(--brown-200);
  --accent-light:     #2e1a0d;
  --accent-text:      var(--brown-300);
  --border:           #2e2018;
  --border-soft:      #251a12;
  --tag-bg:           #261a10;
  --tag-text:         #c0a088;
  --tag-accent-bg:    #2e1a0d;
  --tag-accent-text:  var(--brown-300);
  --card-shadow:      0 1px 4px rgba(0,0,0,0.5);
  --card-shadow-hover:0 8px 28px rgba(0,0,0,0.6);
  --nav-bg:           rgba(15,12,10,0.93);
  --orbit-ring:       rgba(196,144,112,0.20);
  --orbit-ring-2:     rgba(196,144,112,0.10);
  --orbit-dot-1:      var(--brown-300);
  --orbit-dot-2:      var(--brown-400);
  --logo-color:       var(--brown-200);
}

/* ── BLUE ── */
.blue-theme {
  --bg:               #f4f7fc;
  --bg-surface:       #ffffff;
  --bg-subtle:        #eaeff8;
  --text-primary:     #0d1b2e;
  --text-secondary:   #3a5070;
  --text-muted:       #7a90a8;
  --accent:           #1a5db0;
  --accent-hover:     #1348a0;
  --accent-light:     #dceaf9;
  --accent-text:      #1a5db0;
  --border:           #d8e4f0;
  --border-soft:      #e4edf8;
  --tag-bg:           #eaeff8;
  --tag-text:         #1e3a5e;
  --tag-accent-bg:    #dceaf9;
  --tag-accent-text:  #1a5db0;
  --card-shadow:      0 1px 4px rgba(26,93,176,0.08);
  --card-shadow-hover:0 8px 28px rgba(26,93,176,0.14);
  --nav-bg:           rgba(244,247,252,0.93);
  --orbit-ring:       rgba(26,93,176,0.15);
  --orbit-ring-2:     rgba(26,93,176,0.08);
  --orbit-dot-1:      #1a5db0;
  --orbit-dot-2:      #66a0e0;
  --logo-color:       #0d3a80;
}

/* ── GREY ── */
.grey-theme {
  --bg:               #f6f6f4;
  --bg-surface:       #ffffff;
  --bg-subtle:        #edede9;
  --text-primary:     #1a1a18;
  --text-secondary:   #5a5a56;
  --text-muted:       #9a9a94;
  --accent:           #3a3a38;
  --accent-hover:     #222220;
  --accent-light:     #e8e8e4;
  --accent-text:      #1a1a18;
  --border:           #deded8;
  --border-soft:      #e8e8e4;
  --tag-bg:           #eaeae6;
  --tag-text:         #3a3a38;
  --tag-accent-bg:    #deded8;
  --tag-accent-text:  #1a1a18;
  --card-shadow:      0 1px 3px rgba(0,0,0,0.06);
  --card-shadow-hover:0 8px 24px rgba(0,0,0,0.10);
  --nav-bg:           rgba(246,246,244,0.93);
  --orbit-ring:       rgba(58,58,56,0.14);
  --orbit-ring-2:     rgba(58,58,56,0.07);
  --orbit-dot-1:      #3a3a38;
  --orbit-dot-2:      #8a8a84;
  --logo-color:       #1a1a18;
}

/* =============================================
   RESET & BASE
   ============================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'DM Sans', system-ui, sans-serif;
  background-color: var(--bg);
  color: var(--text-primary);
  line-height: 1.7;
  transition: var(--transition-theme);
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; }

/* =============================================
   TYPOGRAPHY
   ============================================= */
h1, h2, h3, h4 { line-height: 1.2; font-weight: 400; }

.section-title {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--text-primary);
  margin-bottom: 2.5rem;
  letter-spacing: -0.02em;
}

.section-title em { font-style: italic; color: var(--accent); }

.section-label {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

/* =============================================
   LAYOUT
   ============================================= */
.section-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 100px 40px;
}

/* =============================================
   RB LOGO — SVG MONOGRAM
   ============================================= */
.rb-logo {
  width: 30px;
  height: 34px;
  color: var(--logo-color);
  transition: color 0.3s ease, transform 0.35s cubic-bezier(0.34,1.56,0.64,1);
  display: block;
  flex-shrink: 0;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  transition: opacity 0.2s;
}

.nav-logo:hover .rb-logo { transform: scale(1.08); color: var(--accent); }

.nav-logo-name {
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  transition: color 0.3s;
  display: none;
}

@media (min-width: 600px) { .nav-logo-name { display: block; } }

.nav-logo:hover .nav-logo-name { color: var(--accent); }

/* =============================================
   NAV
   ============================================= */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--nav-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-soft);
  transition: var(--transition-theme), box-shadow 0.3s;
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 40px;
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  font-size: 0.85rem;
  color: var(--text-secondary);
  transition: color 0.22s, transform 0.22s;
  font-weight: 400;
  position: relative;
  padding-bottom: 2px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 1.5px;
  background: var(--accent);
  transition: width 0.25s ease;
}

.nav-links a:hover { color: var(--text-primary); }
.nav-links a:hover::after { width: 100%; }
.nav-links a.active { color: var(--text-primary); font-weight: 500; }
.nav-links a.active::after { width: 100%; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 22px; height: 1.5px;
  background: var(--text-primary);
  transition: all 0.3s;
}

.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.mobile-menu {
  display: none;
  flex-direction: column;
  padding: 12px 40px 18px;
  gap: 2px;
  border-top: 1px solid var(--border-soft);
  background: var(--nav-bg);
  backdrop-filter: blur(14px);
}

.mobile-menu.open { display: flex; }

.mobile-link {
  font-size: 0.875rem;
  color: var(--text-secondary);
  padding: 9px 0;
  border-bottom: 1px solid var(--border-soft);
  transition: color 0.2s, padding-left 0.2s;
}

.mobile-link:hover { color: var(--accent); padding-left: 6px; }

/* =============================================
   HERO
   ============================================= */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 62px;
  background: var(--bg);
  position: relative;
  overflow: hidden;
}

#hero::before {
  content: '';
  position: absolute;
  top: -180px; right: -180px;
  width: 560px; height: 560px;
  background: radial-gradient(circle, var(--accent-light) 0%, transparent 68%);
  pointer-events: none;
  border-radius: 50%;
  opacity: 0.55;
  transition: var(--transition-theme);
}

.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 80px 40px;
  flex: 1;
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeUp 0.6s ease 0.1s forwards;
}

.hero-title {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(3.5rem, 8vw, 7rem);
  line-height: 1.0;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeUp 0.7s ease 0.2s forwards;
}

.hero-title em { font-style: italic; color: var(--accent); }

.hero-sub {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 520px;
  margin-bottom: 2.5rem;
  line-height: 1.7;
  font-weight: 300;
  opacity: 0;
  animation: fadeUp 0.7s ease 0.3s forwards;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.7s ease 0.4s forwards;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 10px 24px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  font-family: 'DM Sans', sans-serif;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.12);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.btn:hover::before { transform: scaleX(1); }

.btn-primary {
  background: var(--accent);
  color: #fff;
  border: 1.5px solid var(--accent);
}

.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(107,56,32,0.25);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1.5px solid var(--border);
}

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

.hero-links {
  display: flex;
  gap: 0.75rem;
  opacity: 0;
  animation: fadeUp 0.7s ease 0.5s forwards;
}

.social-link {
  width: 40px; height: 40px;
  border: 1.5px solid var(--border);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.social-link:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-3px) scale(1.08);
  background: var(--accent-light);
  box-shadow: 0 4px 12px rgba(107,56,32,0.12);
}

/* =============================================
   HERO GRAPHIC — ORBIT SYSTEM
   ============================================= */
.hero-graphic {
  position: absolute;
  right: 80px;
  top: 50%;
  transform: translateY(-50%);
  width: 360px; height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  animation: fadeIn 1s ease 0.6s forwards;
}

/* Static rings */
.graphic-ring {
  position: absolute;
  border-radius: 50%;
  transition: var(--transition-theme);
}

.ring-1 {
  width: 360px; height: 360px;
  border: 1px solid var(--orbit-ring);
  animation: spinRing 50s linear infinite;
}

.ring-2 {
  width: 256px; height: 256px;
  border: 1px dashed var(--orbit-ring-2);
  animation: spinRing 32s linear infinite reverse;
}

.ring-3 {
  width: 148px; height: 148px;
  border: 1.5px solid var(--accent);
  opacity: 0.35;
  animation: spinRing 20s linear infinite;
}

/* Orbiting dot wrappers — full-size containers that spin */
.orbit-wrap {
  position: absolute;
  border-radius: 50%;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.orbit-wrap-1 {
  width: 360px; height: 360px;
  animation: spinRing 8s linear infinite;
}

.orbit-wrap-2 {
  width: 256px; height: 256px;
  animation: spinRing 14s linear infinite reverse;
}

.orbit-wrap-3 {
  width: 148px; height: 148px;
  animation: spinRing 6s linear infinite;
}

/* The actual dots */
.orbit-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  margin-top: -4px;
  background: var(--orbit-dot-1);
  box-shadow: 0 0 0 2px var(--bg), 0 0 0 3.5px var(--orbit-dot-1);
  transition: var(--transition-theme);
}

.dot-soft {
  width: 6px; height: 6px;
  margin-top: -3px;
  background: var(--orbit-dot-2);
  box-shadow: 0 0 0 2px var(--bg), 0 0 0 3px var(--orbit-dot-2);
}

.dot-tiny {
  width: 5px; height: 5px;
  margin-top: -2.5px;
  background: var(--accent);
  opacity: 0.7;
  box-shadow: none;
}

.dot-offset {
  position: absolute;
  bottom: -2.5px; top: auto;
  margin: 0;
  transform: rotate(120deg);
  transform-origin: center 74px;
}

/* Center logo */
.graphic-center {
  position: absolute;
  width: 90px; height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: transform 0.4s cubic-bezier(0.34,1.56,0.64,1);
}

.rb-logo-hero {
  width: 64px;
  height: 72px;
  color: var(--accent);
  opacity: 0.88;
  transition: color 0.5s ease, opacity 0.5s ease, transform 0.4s ease;
  filter: drop-shadow(0 2px 8px rgba(107,56,32,0.18));
}

.dark-theme .rb-logo-hero {
  filter: drop-shadow(0 2px 12px rgba(196,144,112,0.22));
}

.hero-graphic:hover .graphic-center { transform: scale(1.1); }
.hero-graphic:hover .rb-logo-hero { opacity: 1; }
.hero-graphic:hover .ring-3 { opacity: 0.6; }

.br-desktop { display: block; }

/* =============================================
   ABOUT
   ============================================= */
#about { background: var(--bg-subtle); transition: var(--transition-theme); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 290px;
  gap: 4rem;
  align-items: start;
}

.about-text p {
  font-size: 0.975rem;
  color: var(--text-secondary);
  margin-bottom: 1.2rem;
  line-height: 1.8;
  font-weight: 300;
}

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.stat-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  transition: var(--transition-theme), transform 0.25s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.25s;
  cursor: default;
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--card-shadow-hover);
  border-color: var(--accent);
}

.stat-num {
  font-family: 'DM Serif Display', serif;
  font-size: 2rem;
  color: var(--accent);
  line-height: 1;
}

.stat-label {
  font-size: 0.71rem;
  color: var(--text-muted);
  font-weight: 400;
  line-height: 1.4;
}

/* =============================================
   SKILLS
   ============================================= */
#skills { background: var(--bg); }

.skills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}

.skill-group-title {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

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

.tag {
  font-size: 0.8rem;
  font-weight: 400;
  padding: 5px 13px;
  border-radius: 20px;
  background: var(--tag-bg);
  color: var(--tag-text);
  border: 1px solid var(--border-soft);
  transition: all 0.22s ease;
  cursor: default;
}

.tag:hover {
  border-color: var(--accent);
  color: var(--accent-text);
  background: var(--accent-light);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(107,56,32,0.08);
}

.tag.tag-accent {
  background: var(--tag-accent-bg);
  color: var(--tag-accent-text);
  border-color: var(--accent-light);
  font-weight: 500;
}

.tag.tag-accent:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

/* =============================================
   EXPERIENCE — TIMELINE
   ============================================= */
#experience { background: var(--bg-subtle); transition: var(--transition-theme); }

.timeline {
  position: relative;
  padding-left: 32px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 7px; top: 8px; bottom: 8px;
  width: 1px;
  background: var(--border);
  transition: var(--transition-theme);
}

.timeline-item {
  position: relative;
  margin-bottom: 2.5rem;
}

.timeline-item:last-child { margin-bottom: 0; }

.timeline-dot {
  position: absolute;
  left: -28px; top: 8px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--bg-subtle);
  transition: var(--transition-theme), transform 0.25s;
}

.timeline-dot--muted { background: var(--border); }
.timeline-item:hover .timeline-dot { transform: scale(1.3); }

.timeline-content {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px 28px;
  box-shadow: var(--card-shadow);
  transition: var(--transition-theme), transform 0.25s ease, box-shadow 0.25s, border-color 0.25s;
}

.timeline-content:hover {
  transform: translateX(5px);
  box-shadow: var(--card-shadow-hover);
  border-color: var(--accent);
  border-left-width: 3px;
}

.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
  gap: 1rem;
  flex-wrap: wrap;
}

.timeline-role {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 3px;
}

.timeline-company {
  font-size: 0.82rem;
  color: var(--accent);
  font-weight: 400;
}

.timeline-date {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 400;
  white-space: nowrap;
  padding-top: 3px;
  letter-spacing: 0.03em;
}

.timeline-bullets {
  padding-left: 1.1rem;
  list-style: disc;
  color: var(--text-secondary);
}

.timeline-bullets li {
  font-size: 0.875rem;
  line-height: 1.7;
  margin-bottom: 0.5rem;
  font-weight: 300;
}

.timeline-bullets li::marker { color: var(--accent); }

/* =============================================
   PROJECTS
   ============================================= */
#projects { background: var(--bg); }

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}

.project-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: var(--card-shadow);
  transition: var(--transition-theme), transform 0.25s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.25s, border-color 0.25s;
  position: relative;
  overflow: hidden;
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--card-shadow-hover);
  border-color: var(--accent);
}

.project-card:hover::before { transform: scaleX(1); }

.project-tag-row { display: flex; gap: 6px; }

.proj-tag {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tag-accent-text);
  background: var(--tag-accent-bg);
  padding: 3px 9px;
  border-radius: 4px;
  transition: background 0.2s;
}

.project-card:hover .proj-tag {
  background: var(--accent);
  color: #fff;
}

.project-title {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.3;
}

.project-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.7;
  font-weight: 300;
  flex: 1;
}

.project-links {
  display: flex;
  gap: 12px;
  margin-top: auto;
  padding-top: 4px;
}

.proj-link {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--accent-text);
  transition: color 0.2s, letter-spacing 0.2s;
}

.proj-link:hover { color: var(--accent-hover); letter-spacing: 0.02em; }

/* =============================================
   AWARDS
   ============================================= */
#awards { background: var(--bg-subtle); transition: var(--transition-theme); }

.awards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.award-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
  display: flex;
  gap: 18px;
  align-items: flex-start;
  box-shadow: var(--card-shadow);
  transition: var(--transition-theme), transform 0.25s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.25s, border-color 0.25s;
}

.award-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--card-shadow-hover);
  border-color: var(--accent);
}

.award-card--featured {
  border-color: var(--accent);
  background: var(--accent-light);
}

.award-icon {
  width: 46px; height: 46px;
  border-radius: 10px;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
  transition: var(--transition-theme), transform 0.25s;
}

.award-card:hover .award-icon { transform: scale(1.1) rotate(-4deg); }

.award-icon--muted {
  background: var(--tag-bg);
  color: var(--text-secondary);
}

.award-title {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 3px;
}

.award-org {
  font-size: 0.78rem;
  color: var(--accent-text);
  font-weight: 500;
  margin-bottom: 8px;
  letter-spacing: 0.04em;
}

.award-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
  font-weight: 300;
}

/* =============================================
   CONTACT
   ============================================= */
#contact { background: var(--bg); }

.contact-inner { text-align: center; }

.contact-sub {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 480px;
  margin: 0 auto 2.5rem;
  font-weight: 300;
}

.contact-cards {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 460px;
  margin: 0 auto;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 20px;
  color: var(--text-secondary);
  font-size: 0.9rem;
  transition: all 0.25s cubic-bezier(0.34,1.56,0.64,1);
  box-shadow: var(--card-shadow);
  position: relative;
  overflow: hidden;
}

.contact-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--accent);
  transform: scaleY(0);
  transition: transform 0.25s ease;
}

.contact-card:hover {
  border-color: var(--accent);
  color: var(--text-primary);
  transform: translateX(6px);
  box-shadow: var(--card-shadow-hover);
}

.contact-card:hover::before { transform: scaleY(1); }
.contact-card svg { color: var(--accent); flex-shrink: 0; transition: transform 0.25s; }
.contact-card:hover svg { transform: scale(1.15); }

/* =============================================
   FOOTER
   ============================================= */
footer {
  background: var(--bg-subtle);
  border-top: 1px solid var(--border);
  transition: var(--transition-theme);
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-logo {
  font-family: 'DM Serif Display', serif;
  font-size: 1.1rem;
  color: var(--text-primary);
}

.footer-nav { display: flex; gap: 1.5rem; }

.footer-nav a {
  font-size: 0.78rem;
  color: var(--text-muted);
  transition: color 0.2s, transform 0.2s;
  display: inline-block;
}

.footer-nav a:hover { color: var(--accent); transform: translateY(-1px); }

.footer-copy { font-size: 0.72rem; color: var(--text-muted); }

/* =============================================
   ANIMATIONS
   ============================================= */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes spinRing {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 900px) {
  .hero-graphic { display: none; }
  .about-grid { grid-template-columns: 1fr; }
  .about-stats { order: -1; grid-template-columns: repeat(4, 1fr); }
  .skills-grid { grid-template-columns: 1fr; }
  .awards-grid { grid-template-columns: 1fr; }
  .br-desktop { display: none; }
}

@media (max-width: 700px) {
  .section-inner { padding: 70px 24px; }
  .hero-inner { padding: 60px 24px; }
  .nav-inner { padding: 0 24px; }
  .mobile-menu { padding: 10px 24px 14px; }
  .footer-inner { padding: 24px; flex-direction: column; align-items: flex-start; gap: 1rem; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .about-stats { grid-template-columns: 1fr 1fr; }
  .timeline-header { flex-direction: column; gap: 4px; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; }
  .btn { width: 100%; justify-content: center; }
  .projects-grid { grid-template-columns: 1fr; }
}

/* =============================================
   CUSTOM CURSOR
   ============================================= */
* { cursor: none !important; }

#cursor-dot {
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 99999;
  transform: translate(-50%, -50%);
  transition: background 0.3s, transform 0.15s, width 0.2s, height 0.2s;
  will-change: transform;
}

#cursor-ring {
  width: 32px; height: 32px;
  border: 1.5px solid var(--accent);
  border-radius: 50%;
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 99998;
  transform: translate(-50%, -50%);
  transition: border-color 0.3s, width 0.25s ease, height 0.25s ease, opacity 0.25s;
  opacity: 0.5;
  will-change: transform;
}

/* Cursor expand on hoverable elements */
body.cursor-hover #cursor-dot {
  width: 6px; height: 6px;
  background: var(--accent-hover);
}
body.cursor-hover #cursor-ring {
  width: 46px; height: 46px;
  opacity: 0.25;
}

/* Cursor click */
body.cursor-click #cursor-dot {
  transform: translate(-50%, -50%) scale(0.7);
}

/* Hide on mobile/touch */
@media (hover: none) {
  #cursor-dot, #cursor-ring { display: none; }
  * { cursor: auto !important; }
}

/* =============================================
   TYPEWRITER
   ============================================= */
.hero-eyebrow {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeUp 0.6s ease 0.1s forwards;
  min-height: 1.2em;
  display: flex;
  align-items: center;
  gap: 0;
}

.typewriter-cursor {
  display: inline-block;
  color: var(--accent);
  font-weight: 300;
  animation: blink 1.1s step-end infinite;
  margin-left: 1px;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

/* =============================================
   CV / DOWNLOAD BUTTON
   ============================================= */
.btn-cv {
  background: var(--accent-light);
  color: var(--accent-text);
  border: 1.5px solid var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.btn-cv:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(107,56,32,0.22);
}

.btn-cv svg { transition: transform 0.25s ease; flex-shrink: 0; }
.btn-cv:hover svg { transform: translateY(2px); }

/* =============================================
   PROFILE PHOTO
   ============================================= */
.about-left {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 290px;
  gap: 4rem;
  align-items: start;
}

.profile-photo-wrap {
  position: relative;
  width: 160px;
  height: 160px;
  flex-shrink: 0;
}

.profile-photo-ring {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1.5px solid var(--accent);
  opacity: 0.4;
  transition: opacity 0.3s, inset 0.3s;
}

.profile-photo-wrap:hover .profile-photo-ring {
  inset: -10px;
  opacity: 0.7;
}

.profile-photo {
  width: 160px; height: 160px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  border: 3px solid var(--bg-surface);
  box-shadow: 0 4px 20px rgba(107,56,32,0.14);
  display: block;
  transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.3s;
}

.profile-photo-wrap:hover .profile-photo {
  transform: scale(1.04);
  box-shadow: 0 8px 32px rgba(107,56,32,0.2);
}

/* Hide cleanly if photo missing */
.profile-photo-wrap.photo-missing {
  display: none;
}

/* =============================================
   ABOUT TEXT (generated)
   ============================================= */
.about-title {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  color: var(--text-primary);
  margin-bottom: 1.4rem;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.about-title em { font-style: italic; color: var(--accent); }

/* =============================================
   RESPONSIVE UPDATES FOR PHOTO LAYOUT
   ============================================= */
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-left { flex-direction: row; align-items: flex-start; gap: 1.5rem; flex-wrap: wrap; }
  .about-stats { order: -1; grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 600px) {
  .about-left { flex-direction: column; }
  .profile-photo-wrap { width: 120px; height: 120px; }
  .profile-photo { width: 120px; height: 120px; }
  .about-stats { grid-template-columns: 1fr 1fr; }
}
