:root {
  --bg: #ffffff;
  --bg-soft: #fbfaf7;
  --text: #403326;
  --text-soft: #6d6257;
  --gold: #b57a2b;
  --gold-deep: #915c18;
  --green: #6f8d3f;
  --green-soft: #dfe9c7;
  --blue: #0f7cb5;
  --blue-soft: #e8f6ff;
  --line: rgba(181, 122, 43, 0.18);
  --shadow: 0 20px 45px rgba(115, 82, 32, 0.12);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

.site-bg {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 10% 15%, rgba(181, 122, 43, 0.08), transparent 26%),
    radial-gradient(circle at 88% 18%, rgba(15, 124, 181, 0.08), transparent 24%),
    radial-gradient(circle at 50% 100%, rgba(111, 141, 63, 0.08), transparent 24%);
  pointer-events: none;
  z-index: -1;
}

.container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(181, 122, 43, 0.08);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 0;
}

.brand-logo {
  height: 72px;
  width: auto;
  object-fit: contain;
}

.nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav a {
  font-size: 0.96rem;
  font-weight: 600;
  color: var(--text-soft);
  position: relative;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--gold), var(--blue));
  transition: width .25s ease;
}

.nav a:hover::after,
.nav a.active::after { width: 100%; }

.menu-toggle {
  display: none;
  border: 0;
  background: linear-gradient(135deg, var(--gold), var(--blue));
  color: white;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  font-size: 1.2rem;
}

.section {
  padding: 92px 0;
}

.hero {
  padding-top: 48px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  align-items: center;
  gap: 44px;
}

.eyebrow,
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gold-deep);
  background: linear-gradient(135deg, rgba(181,122,43,0.12), rgba(111,141,63,0.12));
  border: 1px solid rgba(181, 122, 43, 0.12);
  padding: 10px 16px;
  border-radius: 999px;
  font-size: .86rem;
  font-weight: 700;
  letter-spacing: .02em;
}

.hero h1,
.section-head h2,
.closing-card h2 {
  margin: 16px 0 18px;
  font-family: 'Cormorant Garamond', serif;
  line-height: .95;
  letter-spacing: -.02em;
}

.hero h1 {
  font-size: clamp(3.5rem, 8vw, 6rem);
  color: var(--gold-deep);
}

.hero h1 span {
  color: var(--blue);
  display: inline-block;
}

.hero-text {
  font-size: 1.08rem;
  max-width: 640px;
  color: var(--text-soft);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 28px 0 32px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 700;
  transition: transform .22s ease, box-shadow .22s ease, background .22s ease;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary {
  color: white;
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  box-shadow: 0 16px 30px rgba(181, 122, 43, 0.22);
}

.btn-secondary {
  color: var(--blue);
  background: var(--blue-soft);
  border: 1px solid rgba(15, 124, 181, 0.12);
}

.hero-highlights {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.hero-highlights article,
.glass-card,
.quote-card,
.timeline-card,
.skill-card,
.closing-card {
  background: rgba(255,255,255,0.88);
  border: 1px solid rgba(181,122,43,0.12);
  box-shadow: var(--shadow);
}

.hero-highlights article {
  border-radius: var(--radius-md);
  padding: 18px 18px;
}

.hero-highlights strong {
  display: block;
  margin-bottom: 6px;
  color: var(--green);
  font-size: 1rem;
}

.hero-highlights span {
  color: var(--text-soft);
  font-size: .94rem;
}

.portrait-card {
  position: relative;
  padding: 18px;
  border-radius: 36px;
  background: linear-gradient(180deg, rgba(255,255,255,0.95), rgba(249,246,239,0.95));
  border: 1px solid rgba(181,122,43,0.16);
  box-shadow: 0 25px 50px rgba(115, 82, 32, 0.16);
  overflow: hidden;
}

.portrait-glow {
  position: absolute;
  inset: -30% auto auto -10%;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(181,122,43,0.28), transparent 65%);
}

.portrait {
  width: 100%;
  aspect-ratio: 4 / 4.6;
  object-fit: cover;
  border-radius: 28px;
  position: relative;
  z-index: 1;
}

.section-head {
  margin-bottom: 34px;
}

.section-head h2,
.closing-card h2 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  color: var(--gold-deep);
}

.profile-layout {
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: 24px;
}

.glass-card,
.quote-card,
.closing-card {
  border-radius: var(--radius-lg);
  padding: 30px;
}

.glass-card p,
.quote-card p,
.closing-card p {
  margin: 0 0 18px;
  color: var(--text-soft);
  font-size: 1.02rem;
}

.glass-card p:last-child,
.quote-card p:last-child,
.closing-card p:last-child { margin-bottom: 0; }

.quote-card {
  background: linear-gradient(180deg, rgba(245,250,238,0.96), rgba(232,246,255,0.96));
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100%;
}

.lotus-icon {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  color: white;
  background: linear-gradient(135deg, var(--gold), var(--green));
  margin-bottom: 18px;
}

.section-soft {
  background: linear-gradient(180deg, rgba(251,250,247,0.75), rgba(255,255,255,1));
}

.timeline {
  position: relative;
  display: grid;
  gap: 24px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 86px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, rgba(181,122,43,0.45), rgba(15,124,181,0.25));
}

.timeline-item {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 18px;
  align-items: start;
  position: relative;
}

.timeline-year {
  position: sticky;
  top: 110px;
  font-weight: 800;
  color: var(--gold-deep);
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(181,122,43,0.14);
  border-radius: 16px;
  padding: 12px 14px;
  z-index: 1;
}

.timeline-card {
  position: relative;
  border-radius: 24px;
  padding: 28px;
}

.timeline-card::before {
  content: "";
  position: absolute;
  left: -44px;
  top: 30px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--blue));
  box-shadow: 0 0 0 7px rgba(181,122,43,0.12);
}

.timeline-card h3 {
  margin: 0 0 14px;
  font-size: 1.35rem;
  color: var(--green);
}

.timeline-card ul {
  margin: 0;
  padding-left: 18px;
  color: var(--text-soft);
}

.timeline-card li + li { margin-top: 8px; }

.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.skill-card {
  border-radius: 20px;
  padding: 22px 18px;
  min-height: 110px;
  display: flex;
  align-items: center;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.98), rgba(248,252,255,0.98));
}

.skill-card span {
  font-weight: 600;
  color: var(--text);
}

.final-cta {
  padding-top: 40px;
}

.closing-card {
  text-align: center;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.98), rgba(251,248,242,0.98));
}

.closing-logo {
  width: min(360px, 100%);
  margin: 0 auto 10px;
}

.footer {
  padding: 24px 0 36px;
}

.footer-wrap {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--text-soft);
  font-size: .95rem;
  border-top: 1px solid rgba(181,122,43,0.12);
  padding-top: 20px;
}

.reveal,
.reveal-delay {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease;
}

.reveal-delay { transition-delay: .12s; }
.reveal.is-visible,
.reveal-delay.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .hero-grid,
  .profile-layout,
  .skills-grid {
    grid-template-columns: 1fr;
  }

  .timeline::before {
    left: 16px;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    padding-left: 36px;
  }

  .timeline-year {
    position: relative;
    top: auto;
    width: fit-content;
  }

  .timeline-card::before {
    left: -28px;
  }
}

@media (max-width: 760px) {
  .menu-toggle { display: inline-grid; place-items: center; }
  .nav {
    position: absolute;
    top: calc(100% + 8px);
    right: 20px;
    flex-direction: column;
    align-items: flex-start;
    width: min(290px, calc(100vw - 40px));
    padding: 18px;
    background: rgba(255,255,255,0.98);
    border: 1px solid rgba(181,122,43,0.14);
    border-radius: 18px;
    box-shadow: var(--shadow);
    display: none;
  }

  .nav.is-open { display: flex; }
  .brand-logo { height: 58px; }
  .section { padding: 78px 0; }
  .hero { padding-top: 22px; }
  .hero-highlights { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .container { width: min(100% - 24px, 1180px); }
  .hero h1 { font-size: 3rem; }
  .section-head h2,
  .closing-card h2 { font-size: 2.45rem; }
  .glass-card,
  .quote-card,
  .closing-card,
  .timeline-card { padding: 22px; }
}
