:root {
  --warm-cream: #FAF6F0;
  --warm-sand: #F0E8DA;
  --warm-terracotta: #C2785C;
  --warm-terracotta-light: #D4956E;
  --warm-deep: #3D2B1F;
  --warm-brown: #6B4D3A;
  --warm-olive: #7A7D5A;
  --warm-olive-light: #A3A67A;
  --warm-sage: #B5BFA1;
  --warm-blush: #E8D5C8;
  --warm-white: #FFFDF9;
  --text-primary: #2C2017;
  --text-secondary: #6B5D52;
  --text-light: #9A8C80;
  --shadow-soft: 0 2px 20px rgba(61, 43, 31, 0.06);
  --shadow-medium: 0 4px 30px rgba(61, 43, 31, 0.1);
  --radius: 12px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Nunito Sans', sans-serif;
  background: var(--warm-cream);
  color: var(--text-primary);
  line-height: 1.7;
  font-weight: 400;
  overflow-x: hidden;
}

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(250, 246, 240, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(194, 120, 92, 0.1);
  transition: box-shadow 0.3s ease;
}
nav.scrolled { box-shadow: var(--shadow-soft); }
.nav-inner {
  padding: 16px 48px;
  display: flex; justify-content: flex-start; align-items: center;
}
.nav-links {
  margin-left: max(160px, calc(max(0px, (100vw - 1164px) / 2) - 210px));
}
.nav-name {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600; font-size: 1.2rem;
  color: var(--warm-deep);
  letter-spacing: 0.02em;
}
.nav-links { display: flex; gap: 28px; list-style: none; }
.nav-links a {
  text-decoration: none; color: var(--text-secondary);
  font-size: 0.85rem; font-weight: 600;
  letter-spacing: 0.04em; text-transform: uppercase;
  transition: color 0.3s;
  position: relative;
}
.nav-links a::after {
  content: ''; position: absolute;
  bottom: -4px; left: 0; width: 0; height: 2px;
  background: var(--warm-terracotta);
  transition: width 0.3s ease;
}
.nav-links a:hover,
.nav-links a.active { color: var(--warm-terracotta); }
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

/* ── HERO ── */
.hero {
  min-height: 100vh;
  display: flex; align-items: center;
  padding: 120px 32px 80px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; top: -200px; right: -200px;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(194, 120, 92, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute; bottom: -100px; left: -150px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(181, 191, 161, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.hero-inner {
  max-width: 1100px; margin: 0 auto; width: 100%;
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 64px;
  align-items: center;
  position: relative; z-index: 1;
}
.hero-text { animation: fadeInUp 0.8s ease both; }
.hero-label {
  font-size: 0.78rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.15em;
  color: var(--warm-terracotta);
  margin-bottom: 16px;
  display: flex; align-items: center; gap: 10px;
}
.hero-label::before {
  content: ''; width: 28px; height: 2px;
  background: var(--warm-terracotta);
}
.hero-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.8rem, 5vw, 4rem);
  font-weight: 600;
  line-height: 1.1;
  color: var(--warm-deep);
  margin-bottom: 8px;
}
.hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.35rem;
  font-weight: 400;
  font-style: italic;
  color: var(--warm-brown);
  margin-bottom: 24px;
}
.hero-desc {
  font-size: 1.02rem;
  color: var(--text-secondary);
  max-width: 520px;
  line-height: 1.8;
  margin-bottom: 36px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px;
  border-radius: 50px;
  font-family: 'Nunito Sans', sans-serif;
  font-size: 0.88rem; font-weight: 700;
  letter-spacing: 0.03em;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer; border: none;
}
.btn-primary {
  background: var(--warm-terracotta);
  color: var(--warm-white);
  box-shadow: 0 4px 16px rgba(194, 120, 92, 0.3);
}
.btn-primary:hover {
  background: var(--warm-terracotta-light);
  box-shadow: 0 6px 24px rgba(194, 120, 92, 0.4);
  transform: translateY(-2px);
}
.btn-outline {
  background: transparent;
  color: var(--warm-brown);
  border: 2px solid rgba(107, 77, 58, 0.25);
}
.btn-outline:hover {
  border-color: var(--warm-terracotta);
  color: var(--warm-terracotta);
  transform: translateY(-2px);
}
.btn svg { width: 16px; height: 16px; }
.btn-instrument {
  background: var(--warm-terracotta);
  color: var(--warm-white);
  box-shadow: 0 4px 20px rgba(194, 120, 92, 0.35);
}
.btn-instrument:hover {
  background: var(--warm-terracotta-light);
  box-shadow: 0 6px 28px rgba(194, 120, 92, 0.5);
  transform: translateY(-2px);
}

/* ── PORTRAIT ── */
.hero-portrait {
  animation: fadeInUp 0.8s 0.2s ease both;
  position: relative;
}
.portrait-frame {
  width: 100%; aspect-ratio: 3/4;
  border-radius: 200px 200px 24px 24px;
  overflow: hidden;
  background: var(--warm-sand);
  box-shadow: var(--shadow-medium);
  position: relative;
}
.portrait-frame::after {
  content: '';
  position: absolute; inset: 0;
  border: 1px solid rgba(194, 120, 92, 0.15);
  border-radius: inherit;
  pointer-events: none;
}
.portrait-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease;
}
.portrait-img.active {
  opacity: 1;
}
.portrait-accent {
  position: absolute;
  width: 120px; height: 120px;
  border: 2px solid rgba(194, 120, 92, 0.2);
  border-radius: 50%;
  top: -20px; right: -20px;
  pointer-events: none;
}
.portrait-accent-2 {
  position: absolute;
  width: 80px; height: 80px;
  background: rgba(181, 191, 161, 0.15);
  border-radius: 50%;
  bottom: 30px; left: -30px;
  pointer-events: none;
}

/* ── SECTIONS ── */
section { padding: 100px 32px; }
.section-inner { max-width: 1100px; margin: 0 auto; }
.section-label {
  font-size: 0.75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.18em;
  color: var(--warm-terracotta);
  margin-bottom: 12px;
  display: flex; align-items: center; gap: 10px;
}
.section-label::before {
  content: ''; width: 24px; height: 2px;
  background: var(--warm-terracotta);
}
.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 3.5vw, 2.6rem);
  font-weight: 600;
  color: var(--warm-deep);
  margin-bottom: 20px;
  line-height: 1.2;
}

/* ── ABOUT ── */
.about { background: var(--warm-white); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.about-text p {
  color: var(--text-secondary);
  font-size: 1.02rem;
  margin-bottom: 20px;
}
.about-highlights {
  display: flex; flex-direction: column; gap: 20px;
  padding-top: 12px;
}
.highlight-card {
  padding: 28px;
  background: var(--warm-cream);
  border-radius: var(--radius);
  border-left: 3px solid var(--warm-terracotta);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.highlight-card:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-soft);
}
.highlight-card h4 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--warm-deep);
  margin-bottom: 6px;
}
.highlight-card p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ── FEATURED INSTRUMENT ── */
.instrument {
  background: var(--warm-deep);
  color: var(--warm-cream);
  position: relative;
  overflow: hidden;
}
.instrument::before {
  content: '';
  position: absolute; top: 0; right: 0;
  width: 50%; height: 100%;
  background: radial-gradient(ellipse at top right, rgba(194, 120, 92, 0.15) 0%, transparent 60%);
  pointer-events: none;
}
.instrument .section-label { color: var(--warm-terracotta-light); }
.instrument .section-label::before { background: var(--warm-terracotta-light); }
.instrument .section-title { color: var(--warm-cream); }
.instrument-content {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 64px;
  align-items: start;
  position: relative; z-index: 1;
}
.instrument-desc {
  font-size: 1.05rem;
  color: rgba(250, 246, 240, 0.75);
  margin-bottom: 28px;
  line-height: 1.8;
}
.instrument-features {
  display: flex; flex-direction: column; gap: 16px;
  margin-bottom: 36px;
}
.instrument-feature {
  display: flex; gap: 14px; align-items: flex-start;
}
.feature-icon {
  width: 36px; height: 36px; min-width: 36px;
  background: rgba(194, 120, 92, 0.2);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: var(--warm-terracotta-light);
  margin-top: 2px;
}
.feature-icon svg { width: 18px; height: 18px; }
.feature-text h4 {
  font-weight: 700; font-size: 0.95rem;
  color: var(--warm-cream);
  margin-bottom: 2px;
}
.feature-text p {
  font-size: 0.88rem;
  color: rgba(250, 246, 240, 0.55);
  line-height: 1.5;
}
.instrument-card {
  background: rgba(255, 253, 249, 0.06);
  border: 1px solid rgba(255, 253, 249, 0.08);
  border-radius: 16px;
  padding: 40px;
  backdrop-filter: blur(8px);
}
.instrument-card-label {
  font-size: 0.72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.15em;
  color: var(--warm-terracotta-light);
  margin-bottom: 20px;
}
.instrument-stats { display: flex; flex-direction: column; gap: 24px; }
.stat-item {
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255, 253, 249, 0.08);
}
.stat-item:last-child { border-bottom: none; padding-bottom: 0; }
.stat-value {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem; font-weight: 700;
  color: var(--warm-terracotta-light);
  line-height: 1;
  margin-bottom: 4px;
}
.stat-label {
  font-size: 0.85rem;
  color: rgba(250, 246, 240, 0.5);
}
.instrument-feature-actions {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

/* ── EDUCATION ── */
.education { background: var(--warm-white); }
.edu-timeline {
  display: flex; flex-direction: column; gap: 0;
  margin-top: 40px;
  position: relative;
  padding-left: 40px;
}
.edu-timeline::before {
  content: '';
  position: absolute; left: 7px; top: 8px; bottom: 8px;
  width: 2px;
  background: linear-gradient(to bottom, var(--warm-terracotta), var(--warm-sage));
}
.edu-item {
  position: relative;
  padding: 0 0 44px 32px;
}
.edu-item:last-child { padding-bottom: 0; }
.edu-dot {
  position: absolute; left: -40px; top: 6px;
  width: 16px; height: 16px;
  background: var(--warm-white);
  border: 3px solid var(--warm-terracotta);
  border-radius: 50%;
  z-index: 1;
}
.edu-year {
  font-size: 0.78rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--warm-terracotta);
  margin-bottom: 6px;
}
.edu-degree {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--warm-deep);
  margin-bottom: 4px;
}
.edu-school {
  font-size: 0.95rem;
  color: var(--text-secondary);
}
.edu-detail {
  font-size: 0.88rem;
  color: var(--text-light);
  margin-top: 4px;
  font-style: italic;
}

/* ── CRI RESEARCH ── */
.cri-research { background: var(--warm-white); }
.cri-research-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.cri-info-graphic {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  display: block;
}
.cri-research-text p {
  color: var(--text-secondary);
  font-size: 1.02rem;
  margin-bottom: 20px;
}
.cri-research-highlights {
  display: flex; flex-direction: column; gap: 20px;
  padding-top: 12px;
}
.cri-research-highlight-card {
  padding: 28px;
  background: var(--warm-cream);
  border-radius: var(--radius);
  border-left: 3px solid var(--warm-terracotta);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cri-research-highlight-card:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-soft);
}

.cri-research-highlight-card h6 {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--warm-brown);
  letter-spacing: 0.04em;
  margin-top: -4px;
  margin-bottom: 10px;
}

.cri-research-highlight-card h4 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--warm-deep);
  margin-bottom: 6px;
}
.cri-research-highlight-card p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.cri-research-column-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--warm-terracotta);
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.cri-research-column-label::after {
  content: '';
  flex: 1;
  height: 2px;
  background: var(--warm-terracotta);
  opacity: 0.35;
}

a:has(.cri-research-highlight-card) {
  text-decoration: none;
  display: block;
}

a:has(.cri-research-highlight-card):hover .cri-research-highlight-card h4 {
  color: var(--warm-terracotta);
}

/* ── SUBSTANCE USE RESEARCH ── */
.su-research { background: var(--warm-cream); }
.su-research-intro {
  margin-bottom: 64px;
}
.su-research-intro p {
  color: var(--text-secondary);
  font-size: 1.02rem;
  line-height: 1.8;
  margin-bottom: 20px;
  max-width: 780px;
}
.su-research-intro p:first-child {
  margin-bottom: 1.8em;
}
.su-research-cols { margin-top: 0; }

/* ── CRI TRAINING ── */
.cri-training { background: var(--warm-white); }
.training-simple { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; margin-top: 12px; }
.training-notice-text {
  font-size: 1.02rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

/* ── CV DOWNLOAD ── */
.cv-section {
  background: var(--warm-cream);
  text-align: center;
}
.cv-card {
  max-width: 640px; margin: 0 auto;
  background: var(--warm-white);
  border-radius: 20px;
  padding: 56px 48px;
  box-shadow: var(--shadow-medium);
  border: 1px solid rgba(194, 120, 92, 0.08);
}
.cv-icon {
  width: 64px; height: 64px;
  background: linear-gradient(135deg, var(--warm-terracotta), var(--warm-terracotta-light));
  border-radius: 18px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 24px;
  color: white;
  box-shadow: 0 4px 16px rgba(194, 120, 92, 0.3);
}
.cv-icon svg { width: 28px; height: 28px; }
.cv-card h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.8rem; font-weight: 600;
  color: var(--warm-deep);
  margin-bottom: 12px;
}
.cv-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 28px;
  line-height: 1.7;
}

/* ── FOOTER ── */
footer {
  background: var(--warm-deep);
  color: rgba(250, 246, 240, 0.6);
  padding: 60px 32px;
}
.footer-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; justify-content: space-between;
  align-items: center; flex-wrap: wrap; gap: 24px;
}
.footer-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem; font-weight: 600;
  color: var(--warm-cream);
  margin-bottom: 4px;
}
.footer-info { font-size: 0.85rem; line-height: 1.6; }
.footer-info a {
  color: var(--warm-terracotta-light);
  text-decoration: none;
}
.footer-info a:hover { text-decoration: underline; }
.footer-right { text-align: right; }
.footer-links { display: flex; gap: 0; margin-bottom: 8px; }
.footer-links li { list-style: none; }
.footer-links li + li::before {
  content: '·';
  padding: 0 12px;
  color: rgba(250, 246, 240, 0.25);
  font-size: 1.3rem;
  line-height: 1;
}
.footer-links a {
  color: rgba(250, 246, 240, 0.5);
  text-decoration: none;
  font-size: 0.82rem; font-weight: 600;
  letter-spacing: 0.04em; text-transform: uppercase;
  transition: color 0.3s;
}
.footer-links a:hover { color: var(--warm-terracotta-light); }
.footer-copy {
  font-size: 0.78rem;
  color: rgba(250, 246, 240, 0.3);
}

/* ── ANIMATIONS ── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}
.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1; transform: translateY(0);
}

/* ── MOBILE NAV ── */
.nav-toggle {
  display: none;
  background: none; border: none; cursor: pointer;
  color: var(--warm-deep); padding: 4px;
}
.nav-toggle svg { width: 24px; height: 24px; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-portrait { max-width: 300px; margin: 0 auto; order: -1; }
  .hero-desc { margin: 0 auto 36px; }
  .hero-actions { justify-content: center; }
  .hero-label { justify-content: center; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .instrument-content { grid-template-columns: 1fr; }
  .instrument-card { margin-top: 20px; }
  .portrait-accent, .portrait-accent-2 { display: none; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: absolute; top: 100%; left: 0; right: 0;
    background: rgba(250, 246, 240, 0.97);
    backdrop-filter: blur(16px);
    padding: 24px 32px; gap: 16px;
    border-bottom: 1px solid rgba(194, 120, 92, 0.1);
  }
  .nav-toggle { display: block; }
}
@media (max-width: 600px) {
  section { padding: 64px 20px; }
  .hero { padding: 100px 20px 60px; }
  .cv-card { padding: 36px 24px; }
}
