/* --- Reset --- */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { font-size:16px; }

/* --- Theme Tokens --- */
:root {
  --bg:       #0f0e0b;
  --s1:       #1a1916;
  --s2:       #222018;
  --s3:       #2a2825;
  --ink:      #e8e4dc;
  --ink2:     #c8c3b8;
  --mid:      #857f76;
  --faint:    #4a4740;
  --rule:     #2e2c28;
  --accent:   #4a8c6a;
  --acl:      #5ea882;
  --gold:     #c9a96e;
  --gold-lt:  #ddc08a;

  --t-xs:  0.72rem;
  --t-sm:  0.875rem;
  --t-md:  1.25rem;
  --t-lg:  1.563rem;
  --t-xl:  1.953rem;
  --t-2xl: 2.441rem;

  --sp-1:  0.5rem;
  --sp-2:  1rem;
  --sp-3:  1.5rem;
  --sp-4:  2rem;
  --sp-5:  2.5rem;
  --sp-6:  3rem;
  --sp-8:  4rem;
  --sp-12: 6rem;

  --pad: clamp(1.25rem, 5vw, 3rem);
  --max: 800px;

  --card-bg:     rgba(255,255,255,0.03);
  --card-border: rgba(255,255,255,0.07);
  --card-shadow: 0 2px 24px rgba(0,0,0,0.35), 0 1px 0 rgba(255,255,255,0.04) inset;
  --card-radius: 6px;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Lato', sans-serif;
  font-weight: 400;
  line-height: 1.7;
  overflow-x: hidden;
}

body.light {
  --bg:      #f4f1ec;
  --s1:      #ffffff;
  --s2:      #ede9e3;
  --s3:      #e4e0d9;
  --ink:     #18170f;
  --ink2:    #3a3830;
  --mid:     #6b6760;
  --faint:   #b0aaa2;
  --rule:    #d8d4cd;
  --acl:     #2a5c44;
  --accent:  #2a5c44;
  --gold:    #8a6428;
  --gold-lt: #a07838;
  --card-bg:     rgba(255,255,255,0.7);
  --card-border: rgba(0,0,0,0.08);
  --card-shadow: 0 2px 24px rgba(0,0,0,0.08), 0 1px 0 rgba(255,255,255,0.6) inset;
}
body.light nav { background: rgba(244,241,236,0.99); }
body.light .hero-photo::before { opacity: 0.4; }

/* --- Shared Card Surface --- */
.cv-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
  padding: var(--sp-6) var(--sp-5);
  position: relative;
  overflow: hidden;
}
.cv-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201,169,110,0.3), rgba(94,168,130,0.3), transparent);
}

/* --- Navigation --- */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--sp-2) var(--pad);
  background: rgba(15,14,11,0.97);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
  transform: translateZ(0);
}
nav.scrolled { border-color: var(--rule); }
.nav-right { display: flex; align-items: center; gap: var(--sp-2); }
.nav-initials {
  font-family: 'Playfair Display', serif;
  font-size: var(--t-md);
  color: var(--ink);
  letter-spacing: 0.05em;
}
.nav-links { display: flex; gap: var(--sp-4); list-style: none; }
.nav-links a {
  font-size: var(--t-xs);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mid);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--gold); }
.nav-links a.active { color: var(--gold-lt); }
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 101;
}
.bar {
  display: block;
  width: 22px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.theme-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.9rem;
  border-radius: 100px;
  border: 1px solid var(--rule);
  background: transparent;
  color: var(--mid);
  font-family: 'Lato', sans-serif;
  font-size: var(--t-xs);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}
.theme-btn:hover { border-color: var(--gold); color: var(--gold); }

/* --- Language Picker --- */
.lang-picker { position: relative; }
.lang-btn {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.9rem;
  border-radius: 100px;
  border: 1px solid var(--rule);
  background: transparent;
  color: var(--mid);
  font-family: 'Lato', sans-serif;
  font-size: var(--t-xs);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}
.lang-btn:hover { border-color: var(--gold); color: var(--gold); }
.lang-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--s1);
  border: 1px solid var(--rule);
  border-radius: 6px;
  list-style: none;
  overflow: hidden;
  min-width: 130px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  z-index: 200;
}
.lang-menu.open { display: block; }
.lang-menu li + li { border-top: 1px solid var(--rule); }
.lang-menu button {
  display: block;
  width: 100%;
  padding: 0.6rem 1rem;
  background: none;
  border: none;
  color: var(--ink2);
  font-family: 'Lato', sans-serif;
  font-size: var(--t-xs);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.lang-menu button:hover { background: rgba(255,255,255,0.05); color: var(--gold); }
.lang-menu button.active { color: var(--gold-lt); }
.lang-menu button.active::before { content: '·'; margin-right: 0.4em; }
body.light .lang-menu { box-shadow: 0 8px 24px rgba(0,0,0,0.1); }
body.light .lang-menu button:hover { background: rgba(0,0,0,0.03); }

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 7rem var(--pad) 6rem;
  background: var(--bg);
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 70% at 30% 50%, rgba(74,140,106,0.07) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  width: 100%;
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 6rem;
  align-items: center;
}

.hero-photo { position: relative; flex-shrink: 0; }
.hero-photo::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: linear-gradient(135deg, var(--gold), var(--accent), transparent 60%);
  border-radius: 4px;
  opacity: 0.5;
  z-index: 0;
}
.hero-photo img {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  object-position: center 15%;
  display: block;
  border-radius: 3px;
  filter: saturate(0.9) brightness(0.95);
}

.hero-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--t-xs);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--sp-3);
  opacity: 0;
  animation: riseIn 0.8s ease forwards 0.4s;
}
.hero-eyebrow::before {
  content: '';
  display: block;
  width: 24px; height: 1px;
  background: currentColor;
  opacity: 0.5;
}
.hero-name {
  font-family: 'Playfair Display', serif;
  font-size: clamp(3rem, 6vw, 5.5rem);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: var(--sp-3);
  opacity: 0;
  animation: riseIn 1s ease forwards 0.55s;
}
.hero-name em { font-style: italic; color: var(--gold-lt); display: block; }
.hero-title {
  font-size: var(--t-sm);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mid);
  margin-bottom: var(--sp-6);
  opacity: 0;
  animation: riseIn 0.7s ease forwards 0.8s;
}
.hero-meta {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  opacity: 0;
  animation: riseIn 0.7s ease forwards 1s;
}
.meta-item { display: flex; flex-direction: column; gap: 3px; }
.meta-label {
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(201,169,110,0.6);
}
.meta-value {
  font-size: 1rem;
  color: var(--ink2);
  text-decoration: none;
  transition: color 0.2s;
}
.meta-value:hover { color: var(--gold); }

/* --- Scroll Cue (in normal flow below hero-inner) --- */
.scroll-cue {
  position: relative;
  z-index: 2;
  margin-top: var(--sp-6);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-1);
  opacity: 0;
  animation: riseIn 0.6s ease forwards 1.6s;
}
.scroll-cue-text {
  font-size: var(--t-xs);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mid);
}
.scroll-cue-bar {
  width: 1px; height: 44px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: drip 2.2s ease-in-out infinite;
}
@keyframes drip {
  0%   { transform: scaleY(0); transform-origin: top; opacity:1; }
  50%  { transform: scaleY(1); transform-origin: top; opacity:1; }
  100% { transform: scaleY(1); transform-origin: bottom; opacity:0; }
}

/* --- Shared Section Shell --- */
.section {
  padding: var(--sp-12) var(--pad);
  position: relative;
  overflow: hidden;
  contain: layout style;
}
.section-inner {
  max-width: var(--max);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.section-bg {
  position: absolute;
  inset: -25%;
  pointer-events: none;
  will-change: transform;
  z-index: 0;
}
.section-label {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  margin-bottom: var(--sp-2);
}
.label-dash { width: 20px; height: 1px; background: var(--acl); flex-shrink: 0; }
.label-text {
  font-size: var(--t-xs);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--acl);
  font-weight: 700;
}
.section-heading {
  font-family: 'Playfair Display', serif;
  font-size: clamp(var(--t-xl), 4vw, var(--t-2xl));
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin-bottom: var(--sp-6);
}
.section-heading em { font-style: italic; color: var(--gold); }

/* --- Shared Entry Animation --- */
@keyframes riseIn {
  from { opacity:0; transform: translateY(20px); }
  to   { opacity:1; transform: translateY(0); }
}
