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

:root {
  --bg: #FFFFFF;
  --bg-section: #F5EEEA;
  --accent: #A0585A;
  --accent-dark: #8b4a4c;
  --text-heading: #2B2B2B;
  --text-body: #5A5A5A;
  --max-w: 1100px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Jost', sans-serif;
  background: var(--bg);
  color: var(--text-body);
  line-height: 1.7;
  font-size: 14px;
}

/* ── TOP BAR ──────────────────────────────── */
#top-bar {
  background: var(--accent);
  color: #fff;
  padding: 10px 32px;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
}
#top-bar a {
  color: #fff;
  border: 1px solid rgba(255,255,255,0.55);
  padding: 5px 16px;
  text-decoration: none;
  font-size: 10px;
  letter-spacing: 0.14em;
  transition: background 0.2s;
  white-space: nowrap;
}
#top-bar a:hover { background: rgba(255,255,255,0.15); }

/* ── NAV ──────────────────────────────────── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(160,88,90,0.1);
  padding: 0 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 66px;
}
.nav-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 21px;
  font-weight: 600;
  color: var(--text-heading);
  text-decoration: none;
  letter-spacing: 0.03em;
  flex-shrink: 0;
}
.nav-logo span { color: var(--accent); }
.nav-links {
  display: flex;
  gap: 38px;
  list-style: none;
  align-items: center;
}
.nav-links a {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text-body);
  transition: color 0.2s;
  position: relative;
  padding-bottom: 2px;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width 0.3s ease;
}
.nav-links a:hover,
.nav-links a.active { color: var(--accent); }
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 6px;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text-heading);
  transition: all 0.3s;
}

/* ── MOBILE MENU ──────────────────────────── */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(12px);
  z-index: 200;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 36px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-family: 'Cormorant Garamond', serif;
  font-size: 34px;
  font-weight: 400;
  color: var(--text-heading);
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: color 0.2s;
}
.mobile-menu a:hover { color: var(--accent); }
.mobile-menu-close {
  position: absolute;
  top: 22px; right: 28px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 22px;
  color: var(--text-body);
  font-family: 'Jost', sans-serif;
}

/* ── HERO ─────────────────────────────────── */
#hero {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 88px 48px 80px;
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 88px;
  align-items: center;
}

.hero-img-wrap { position: relative; }
.hero-portrait {
  width: 100%;
  aspect-ratio: 3/4;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}
.hero-portrait::before {
  content: '';
  position: absolute;
  inset: 0;
}
.hero-portrait-svg {
  width: 52%;
  opacity: 0.22;
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  font-size: 10.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 22px;
  font-weight: 500;
}
.hero-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(46px, 5.5vw, 64px);
  font-weight: 400;
  line-height: 1.05;
  color: var(--text-heading);
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}
.hero-subtitle {
  font-family: 'Cormorant Garamond', serif;
  font-size: 23px;
  font-weight: 300;
  font-style: italic;
  color: var(--accent);
  margin-bottom: 30px;
  letter-spacing: 0.01em;
}
.hero-bio {
  font-size: 14px;
  line-height: 1.85;
  color: var(--text-body);
  margin-bottom: 38px;
  max-width: 440px;
}
.hero-stats {
  display: flex;
  gap: 40px;
  margin-bottom: 44px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(160,88,90,0.12);
}
.stat-number {
  font-family: 'Cormorant Garamond', serif;
  font-size: 38px;
  font-weight: 300;
  color: var(--text-heading);
  line-height: 1;
}
.stat-label {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-body);
  margin-top: 5px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* ── BUTTONS ──────────────────────────────── */
.btn {
  display: inline-block;
  padding: 13px 30px;
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.25s ease;
  font-family: 'Jost', sans-serif;
  font-weight: 500;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); }
.btn-outlined { background: transparent; color: var(--accent); border: 1.5px solid var(--accent); }
.btn-outlined:hover { background: var(--accent); color: #fff; }

/* ── SECTION COMMONS ──────────────────────── */
.section-divider {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 48px;
}
.section-divider hr {
  border: none;
  border-top: 1px solid rgba(160,88,90,0.12);
}
section { padding: 88px 48px; }
.section-inner { max-width: var(--max-w); margin: 0 auto; }
.section-heading {
  font-family: 'Cormorant Garamond', serif;
  font-size: 44px;
  font-weight: 400;
  color: var(--text-heading);
  text-align: center;
  margin-bottom: 10px;
}
.section-sub {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
  color: var(--text-body);
  margin-bottom: 60px;
}

/* ── VALUES ───────────────────────────────── */
#values { background: var(--bg-section); }
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.value-card {
  background: #fff;
  padding: 44px 32px;
  text-align: center;
  transition: transform 0.25s, box-shadow 0.3s;
}
.value-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 48px rgba(160,88,90,0.09);
}
.value-number {
  font-family: 'Cormorant Garamond', serif;
  font-size: 54px;
  font-weight: 300;
  color: var(--accent);
  opacity: 0.35;
  line-height: 1;
  margin-bottom: 18px;
}
.value-title {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-heading);
  margin-bottom: 14px;
}
.value-body {
  font-size: 13.5px;
  color: var(--text-body);
  line-height: 1.75;
}

/* ── SKILLS ───────────────────────────────── */
#skills { background: var(--bg); }
.skills-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}
.skill-tag {
  padding: 9px 20px;
  border: 1px solid rgba(160,88,90,0.22);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-body);
  cursor: default;
  transition: all 0.2s;
}
.skill-tag:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(160,88,90,0.04);
}

/* ── PROJECTS ─────────────────────────────── */
#projects { background: var(--bg); }
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.project-card { display: flex; flex-direction: column; }
.project-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  position: relative;
}

.project-body { padding: 22px 0 14px; flex: 1; }
.project-meta {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-body);
  margin-bottom: 9px;
}
.project-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px;
  font-style: italic;
  color: var(--accent);
  line-height: 1.4;
  margin-bottom: 11px;
  text-decoration: none;
  display: block;
  transition: opacity 0.2s;
}
.project-title:hover { opacity: 0.75; }
.project-desc {
  font-size: 13px;
  color: var(--text-body);
  line-height: 1.75;
}

/* ── FORMATION ────────────────────────────── */
#formation { background: var(--bg-section); }
.timeline {
  position: relative;
  max-width: 680px;
  margin: 0 auto;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 0; top: 10px; bottom: 10px;
  width: 1px;
  background: rgba(160,88,90,0.2);
}
.timeline-item {
  position: relative;
  padding-left: 44px;
  padding-bottom: 52px;
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-dot {
  position: absolute;
  left: -5px; top: 8px;
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--accent);
  border: 2.5px solid var(--bg-section);
}
.timeline-date {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 7px;
  font-weight: 500;
}
.timeline-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 21px;
  font-weight: 500;
  color: var(--text-heading);
  margin-bottom: 4px;
  line-height: 1.3;
}
.timeline-place {
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--text-body);
  margin-bottom: 12px;
}
.timeline-list { list-style: none; }
.timeline-list li {
  font-size: 13.5px;
  color: var(--text-body);
  line-height: 1.7;
  padding-left: 16px;
  position: relative;
  margin-bottom: 4px;
}
.timeline-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: rgba(160,88,90,0.5);
  font-size: 12px;
}

/* ── CONTACT ──────────────────────────────── */
#contact { background: var(--bg); text-align: center; }
.contact-grid {
  display: flex;
  justify-content: center;
  gap: 60px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}
.contact-item { text-align: center; }
.contact-label {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}
.contact-value {
  font-family: 'Cormorant Garamond', serif;
  font-size: 17px;
  color: var(--text-heading);
  text-decoration: none;
  transition: color 0.2s;
}
.contact-value:hover { color: var(--accent); }

/* ── FOOTER ───────────────────────────────── */
footer {
  background: var(--bg);
  border-top: 1px solid rgba(160,88,90,0.12);
  padding: 64px 48px 32px;
}
.footer-grid {
  max-width: var(--max-w);
  margin: 0 auto 52px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 48px;
  align-items: start;
}
.footer-cta-label {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-body);
  margin-bottom: 12px;
}
.footer-cta-link {
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px;
  font-style: italic;
  color: var(--accent);
  text-decoration: none;
  transition: opacity 0.2s;
}
.footer-cta-link:hover { opacity: 0.65; }
.footer-center { text-align: center; }
.footer-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 26px;
  font-weight: 600;
  color: var(--text-heading);
  display: block;
  margin-bottom: 6px;
  letter-spacing: 0.02em;
}
.footer-tagline {
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--text-body);
  margin-bottom: 22px;
}
.footer-socials {
  display: flex;
  gap: 12px;
  justify-content: center;
}
.footer-social {
  width: 38px; height: 38px;
  border: 1px solid rgba(160,88,90,0.22);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-body);
  text-decoration: none;
  transition: all 0.2s;
}
.footer-social:hover { border-color: var(--accent); color: var(--accent); }
.footer-social svg { width: 14px; height: 14px; }
.footer-right { text-align: right; }
.footer-nav-heading {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--text-heading);
  margin-bottom: 16px;
}
.footer-nav-list { list-style: none; }
.footer-nav-list li { margin-bottom: 9px; }
.footer-nav-list a {
  font-size: 13px;
  color: var(--text-body);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-nav-list a:hover { color: var(--accent); }
.footer-bottom {
  max-width: var(--max-w);
  margin: 0 auto;
  border-top: 1px solid rgba(160,88,90,0.1);
  padding-top: 22px;
  text-align: center;
  font-size: 11px;
  color: var(--text-body);
  letter-spacing: 0.06em;
}

/* ── REVEAL ANIMATIONS ────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }
.reveal-d4 { transition-delay: 0.4s; }
.reveal-d5 { transition-delay: 0.5s; }

/* ── RESPONSIVE ───────────────────────────── */
@media (max-width: 960px) {
  #hero { grid-template-columns: 1fr; gap: 52px; padding: 60px 28px; }
  .hero-img-wrap { max-width: 280px; margin: 0 auto; }
  .values-grid { grid-template-columns: 1fr; gap: 16px; }
  .projects-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; text-align: center; }
  .footer-right { text-align: center; }
  nav { padding: 0 28px; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  section { padding: 64px 28px; }
  .section-divider { padding: 0 28px; }
}
@media (min-width: 640px) and (max-width: 960px) {
  .values-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 600px) {
  .projects-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 24px; }
  .contact-grid { gap: 32px; }
  #top-bar { flex-direction: column; gap: 10px; }
}
