:root {
  /* Formal Emerald & Gold Color System */
  --bg-base: #031412;
  --bg-surface: rgba(8, 30, 27, 0.45);
  --bg-surface-hover: rgba(12, 43, 38, 0.65);
  --border-subtle: rgba(255, 255, 255, 0.04);
  --border-gold: rgba(188, 150, 80, 0.25);
  --border-gold-hover: rgba(188, 150, 80, 0.6);
  
  --text-primary: #f4f6f4;
  --text-muted: #859c96;
  
  /* Accents */
  --gold: #bc9650;
  --gold-muted: #a38144;
  --sage: #729a92;
  
  --header-height: 76px;
  --ease-formal: cubic-bezier(0.25, 0.8, 0.25, 1);
  --scroll-progress: 0%;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  background: var(--bg-base);
  color: var(--text-primary);
}

body {
  min-height: 100vh;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  overflow-x: hidden;
  background: 
    radial-gradient(circle at 10% 20%, rgba(8, 30, 27, 0.6) 0%, transparent 40%),
    radial-gradient(circle at 95% 85%, rgba(188, 150, 80, 0.03) 0%, transparent 40%),
    var(--bg-base);
  -webkit-font-smoothing: antialiased;
}

/* Faint Organic Background Canvas */
.fluid-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -2;
  pointer-events: none;
  opacity: 0.35;
}

.pointer-aura {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: radial-gradient(
    circle 300px at var(--pointer-x, 50%) var(--pointer-y, 50%),
    rgba(188, 150, 80, 0.02),
    transparent 80%
  );
  pointer-events: none;
}

.scroll-meter {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  width: var(--scroll-progress);
  height: 1px;
  background: var(--gold);
}

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

/* Typography */
h1, h2, h3 {
  font-family: 'Playfair Display', Georgia, serif;
  letter-spacing: -0.01em;
  font-weight: 400;
}

h1 {
  font-size: 4.8rem;
  line-height: 1.05;
  color: var(--text-primary);
}

h2 {
  font-size: 2.8rem;
  line-height: 1.15;
  color: var(--text-primary);
}

h3 {
  font-size: 1.35rem;
  color: var(--text-primary);
  font-family: 'Playfair Display', Georgia, serif;
}

p {
  font-size: 0.98rem;
  line-height: 1.65;
  color: var(--text-muted);
}

.eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--gold);
  margin-bottom: 16px;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-height);
  padding: 12px 48px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  transition: all 0.3s ease;
}

.site-header.is-scrolled {
  background: rgba(3, 20, 18, 0.85);
  border-bottom-color: rgba(255, 255, 255, 0.06);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: #031412;
  background: var(--gold);
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.05rem;
  border-radius: 4px;
}

.brand-copy {
  display: flex;
  flex-direction: column;
}

.brand-copy span {
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
}

.brand-copy small {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.02em;
}

.site-nav {
  display: flex;
  gap: 6px;
  padding: 4px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
}

.nav-link {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 8px 18px;
  border-radius: 4px;
  transition: all 0.25s var(--ease-formal);
}

.nav-link:hover, .nav-link.active {
  color: var(--text-primary);
  background: rgba(188, 150, 80, 0.08);
}

/* Sections & Layout */
.section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 110px 24px;
}

.section-heading {
  margin-bottom: 60px;
  max-width: 760px;
}

/* Hero Section */
.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 80px;
  min-height: calc(100vh - var(--header-height));
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 24px;
}

.hero-copy {
  display: flex;
  flex-direction: column;
}

.hero-lede {
  font-size: 1.25rem;
  line-height: 1.6;
  margin: 28px 0 40px;
  max-width: 580px;
  color: var(--text-muted);
  font-weight: 300;
}

.hero-actions {
  display: flex;
  gap: 16px;
}

/* Formal Portrait Frame */
.portrait-shell {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.portrait-frame {
  position: relative;
  width: 100%;
  max-width: 360px;
  aspect-ratio: 1;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--border-gold);
  background: var(--bg-surface);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.35);
  transition: border-color 0.4s var(--ease-formal);
}

.portrait-frame:hover {
  border-color: var(--border-gold-hover);
}

.portrait {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(35%) contrast(105%) brightness(90%);
  transition: transform 0.4s var(--ease-formal);
}

.portrait-main {
  z-index: 1;
  opacity: 1;
}

.portrait-focus {
  z-index: 2;
  opacity: 1;
  transition: transform 0.4s var(--ease-formal), opacity 2s var(--ease-formal);
}

.portrait-focus.no-transition {
  transition: transform 0.4s var(--ease-formal), opacity 0s !important;
}

.portrait-frame:hover .portrait {
  transform: scale(1.03);
}

.credential-chip {
  position: absolute;
  padding: 8px 16px;
  background: rgba(3, 20, 18, 0.9);
  border: 1px solid var(--border-subtle);
  border-radius: 2px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text-muted);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  z-index: 10;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.credential-chip:hover {
  color: var(--text-primary);
  border-color: var(--gold);
}

.chip-clinic { top: 12%; right: -5%; border-left: 2px solid var(--gold); }
.chip-md { bottom: 28%; left: -10%; border-left: 2px solid var(--sage); }
.chip-ms { bottom: 6%; right: 4%; border-left: 2px solid var(--gold); }

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 26px;
  border-radius: 4px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  font-family: 'Plus Jakarta Sans', sans-serif;
  transition: all 0.3s var(--ease-formal);
}

.button-primary {
  background: var(--gold);
  color: #031412;
  box-shadow: 0 4px 15px rgba(188, 150, 80, 0.15);
}

.button-primary:hover {
  background: #c5a059;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(188, 150, 80, 0.25);
}

.button-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
}

.button-secondary:hover {
  background: rgba(255, 255, 255, 0.02);
  border-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}

/* About Grid */
.about-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 48px;
}

.story-panel {
  padding: 44px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  display: flex;
  align-items: center;
}

.story-panel p {
  font-size: 1.15rem;
  line-height: 1.75;
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-weight: 300;
  color: var(--text-primary);
}

.focus-stack {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.focus-card {
  position: relative;
  padding: 26px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  transition: all 0.35s var(--ease-formal);
}

.focus-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: transparent;
  transition: background-color 0.3s ease;
}

.focus-card:hover {
  border-color: rgba(255, 255, 255, 0.06);
  background: var(--bg-surface-hover);
  transform: translateX(3px);
}

.focus-card:hover::before {
  background: var(--gold);
}

.card-index {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 10px;
  display: block;
}

.focus-card h3 {
  margin-bottom: 8px;
}

.focus-card p {
  font-size: 0.88rem;
  line-height: 1.6;
}

/* MINIMALIST PROJECT PLACEHOLDER CONTAINER */
.projects-placeholder-container {
  display: flex;
  justify-content: center;
}

.projects-placeholder-container .project-placeholder-card {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  max-width: 840px;
  width: 100%;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  overflow: hidden;
  transition: all 0.35s var(--ease-formal);
}

.projects-placeholder-container .project-placeholder-card:hover {
  border-color: var(--border-gold);
  background: var(--bg-surface-hover);
}

.placeholder-visual {
  height: 100%;
  min-height: 260px;
  background: rgba(3, 14, 12, 0.6);
  border-right: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.expertise-block {
  margin: 18px 0 24px;
}

.expertise-block h4 {
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
  letter-spacing: 0.05em;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.expertise-block ul {
  list-style: none;
}

.expertise-block li {
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--text-muted);
  position: relative;
  padding-left: 20px;
  margin-bottom: 8px;
}

.expertise-block li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--gold);
}

.abstract-svg {
  width: 100%;
  height: 100%;
  padding: 24px;
}

.abstract-line {
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.5;
  stroke-linecap: round;
}

.abstract-grid-line {
  stroke: rgba(255, 255, 255, 0.04);
  stroke-width: 0.75;
}

.abstract-circle {
  fill: none;
  stroke: var(--sage);
  stroke-width: 1.25;
}

.abstract-rect {
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.25;
  opacity: 0.4;
}

/* PLACEHOLDER CARD ANIMATIONS */
.wave-pulse-animation {
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
  animation: waveDraw 4.5s cubic-bezier(0.4, 0, 0.2, 1) infinite alternate;
}

@keyframes waveDraw {
  0% { stroke-dashoffset: 200; opacity: 0.3; }
  100% { stroke-dashoffset: 0; opacity: 0.95; }
}

.circle-pulse-animation-1 {
  transform-origin: 50px 25px;
  animation: circlePulse 3.5s ease-in-out infinite;
}

.circle-pulse-animation-2 {
  transform-origin: 50px 25px;
  animation: circlePulse 3.5s ease-in-out infinite;
  animation-delay: 1.75s;
}

@keyframes circlePulse {
  0% { transform: scale(0.6); opacity: 0; }
  50% { opacity: 0.8; }
  100% { transform: scale(1.3); opacity: 0; }
}

.rect-pulse-1 { animation: rectPulse 3s ease-in-out infinite; }
.rect-pulse-2 { animation: rectPulse 3s ease-in-out infinite; animation-delay: 0.8s; }
.rect-pulse-3 { animation: rectPulse 3s ease-in-out infinite; animation-delay: 1.6s; }

@keyframes rectPulse {
  0%, 100% { opacity: 0.2; }
  50% { opacity: 0.75; stroke: var(--sage); }
}

/* Card Content Details */
.placeholder-content {
  padding: 30px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.placeholder-tag {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 12px;
  letter-spacing: 0.08em;
}

.placeholder-content h3 {
  font-size: 1.4rem;
  margin-bottom: 12px;
}

.placeholder-content p {
  font-size: 0.88rem;
  line-height: 1.6;
  margin-bottom: 24px;
  flex: 1;
}

.placeholder-status {
  align-self: flex-start;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: 2px;
  border: 1px solid var(--border-gold);
  color: var(--gold);
}

/* Timeline */
.timeline {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  padding-left: 24px;
}

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

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

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

.timeline-dot {
  position: absolute;
  left: 0;
  top: 7px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--bg-base);
  border: 2px solid var(--gold);
  transition: all 0.3s ease;
}

.timeline-item:hover .timeline-dot {
  background: var(--gold);
  box-shadow: 0 0 10px rgba(188, 150, 80, 0.4);
}

.timeline-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.timeline-item h3 {
  font-size: 1.18rem;
  margin-bottom: 6px;
}

.timeline-desc {
  font-size: 0.9rem;
}

/* Footer */
.site-footer {
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 24px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* -------------------------------------------------------------
   REVEAL & SCROLL VISUAL UPGRADES
   ------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease-formal), transform 0.8s var(--ease-formal);
  will-change: opacity, transform;
}

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

/* 3D Tilt Cards Hover Effect */
[data-tilt-card] {
  transform: perspective(1000px) rotateX(calc(var(--tilt-y, 0) * 1deg)) rotateY(calc(var(--tilt-x, 0) * 1deg));
  transition: transform 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Parallax updates on chips */
.credential-chip {
  transform: translateY(var(--scroll-translate-y, 0px));
  transition: color 0.3s ease, border-color 0.3s ease, transform 0.15s cubic-bezier(0.1, 0.8, 0.2, 1);
}

/* Active Drawing Career Timeline */
.timeline::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: var(--gold);
  transform: scaleY(var(--timeline-progress, 0));
  transform-origin: top;
  transition: transform 0.1s ease-out;
  pointer-events: none;
  z-index: 1;
}

.timeline-item {
  transition: opacity 0.6s var(--ease-formal), transform 0.6s var(--ease-formal);
}

.timeline-item.active .timeline-dot {
  background: var(--gold);
  box-shadow: 0 0 12px rgba(188, 150, 80, 0.6);
  transform: scale(1.2);
}

/* Responsive Styles */
@media (max-width: 1024px) {
  h1 { font-size: 3.8rem; }
  h2 { font-size: 2.3rem; }
  .hero {
    grid-template-columns: 1fr;
    gap: 50px;
    padding-top: 60px;
    padding-bottom: 60px;
  }
  .portrait-shell {
    order: -1;
  }
  .about-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 64px;
  }
  .site-header {
    padding: 10px 24px;
  }
  .section {
    padding: 70px 16px;
  }
  h1 { font-size: 3rem; }
  .hero-lede { font-size: 1.15rem; }
  .chip-clinic { right: 0; }
  .chip-md { left: 0; }
  .chip-ms { right: 10%; }
  
  .projects-placeholder-container .project-placeholder-card {
    grid-template-columns: 1fr;
  }
  .placeholder-visual {
    border-right: none;
    border-bottom: 1px solid var(--border-subtle);
    min-height: 200px;
  }
}

@media (max-width: 480px) {
  h1 { font-size: 2.5rem; }
  h2 { font-size: 1.8rem; }
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }
  .button {
    width: 100%;
    justify-content: center;
  }
  .story-panel {
    padding: 26px;
  }
  .story-panel p {
    font-size: 1.05rem;
  }
}
