:root {
  --bg: #f4f6f2;
  --surface: #e9eee8;
  --ink: #101820;
  --muted: #61706a;
  --dark: #0b1420;
  --dark-soft: #121e2c;
  --accent: #9ec4ae;
  --accent-strong: #75a58a;
  --line: rgba(16, 24, 32, 0.12);
  --light: #f8faf6;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.page-shell { min-height: 100vh; overflow: hidden; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  width: min(calc(100% - 40px), var(--max));
  margin: 18px auto 0;
  padding: 12px 14px 12px 16px;
  display: flex;
  align-items: center;
  gap: 24px;
  background: rgba(244, 246, 242, 0.88);
  border: 1px solid var(--line);
  border-radius: 18px;
  backdrop-filter: blur(18px);
}

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center;
  background: var(--dark); color: var(--light); letter-spacing: -0.04em; font-size: 0.82rem;
}
.brand-text { white-space: nowrap; }

.nav-links { display: flex; gap: 26px; margin-left: auto; align-items: center; }
.nav-links a { text-decoration: none; color: #394740; font-size: 0.92rem; font-weight: 650; }
.nav-links a:hover { color: var(--ink); }
.language-toggle, .menu-toggle {
  border: 1px solid var(--line); background: transparent; color: var(--ink); cursor: pointer; font-weight: 800;
}
.language-toggle { border-radius: 10px; padding: 8px 11px; }
.menu-toggle { display: none; margin-left: auto; width: 42px; height: 42px; border-radius: 10px; font-size: 1.2rem; }

.section-pad { width: min(calc(100% - 40px), var(--max)); margin: 0 auto; padding: 108px 0; }
.section-surface { width: 100%; max-width: none; padding-left: max(20px, calc((100vw - var(--max))/2)); padding-right: max(20px, calc((100vw - var(--max))/2)); background: var(--surface); }
.section-dark { width: 100%; max-width: none; padding-left: max(20px, calc((100vw - var(--max))/2)); padding-right: max(20px, calc((100vw - var(--max))/2)); background: var(--dark); color: var(--light); }

.hero { min-height: calc(100vh - 90px); display: grid; grid-template-columns: 1.12fr 0.88fr; gap: 72px; align-items: center; padding-top: 70px; }
.eyebrow { margin: 0 0 18px; font-size: 0.78rem; font-weight: 850; letter-spacing: 0.16em; color: var(--accent-strong); }
.hero h1 { margin: 0; font-size: clamp(4rem, 9vw, 7.4rem); line-height: 0.9; letter-spacing: -0.07em; font-weight: 850; }
.hero h1 span { color: var(--accent-strong); }
.hero-title { margin: 26px 0 10px; font-size: clamp(1.35rem, 2.2vw, 2rem); font-weight: 780; letter-spacing: -0.03em; }
.hero-description { max-width: 720px; color: var(--muted); font-size: 1.08rem; }
.hero-actions { display: flex; gap: 12px; margin-top: 34px; flex-wrap: wrap; }
.btn { min-height: 48px; padding: 12px 19px; border-radius: 13px; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; font-weight: 800; transition: .2s ease; }
.btn-primary { background: var(--dark); color: var(--light); }
.btn-primary:hover { transform: translateY(-2px); background: var(--dark-soft); }
.btn-ghost { border: 1px solid var(--line); }
.btn-ghost:hover { background: white; transform: translateY(-2px); }
.btn-light { background: var(--light); color: var(--dark); }
.btn-light:hover { transform: translateY(-2px); }

.hero-meta { margin-top: 52px; padding-top: 25px; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.hero-meta div { display: flex; flex-direction: column; }
.hero-meta strong { font-size: 1.05rem; }
.hero-meta span { color: var(--muted); font-size: 0.84rem; }

.hero-visual { display: flex; justify-content: center; }
.portrait-card { position: relative; width: min(100%, 410px); aspect-ratio: .82; border-radius: 34px; overflow: hidden; background: var(--dark); box-shadow: 0 30px 80px rgba(11, 20, 32, .16); }
.portrait-card::before { content: ""; position: absolute; width: 340px; height: 340px; border-radius: 50%; background: var(--accent); top: -70px; right: -100px; opacity: .85; filter: blur(1px); }
.portrait-card::after { content: ""; position: absolute; width: 250px; height: 250px; border-radius: 50%; border: 1px solid rgba(255,255,255,.18); left: -80px; bottom: 80px; }
.portrait-grid { position: absolute; inset: 0; opacity: .18; background-image: linear-gradient(rgba(255,255,255,.12) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.12) 1px, transparent 1px); background-size: 34px 34px; }
.portrait-monogram { position: absolute; inset: 0; display: grid; place-items: center; color: var(--light); font-size: clamp(6rem, 13vw, 9rem); font-weight: 900; letter-spacing: -.09em; }
.portrait-caption { position: absolute; left: 26px; right: 26px; bottom: 26px; background: rgba(255,255,255,.9); color: var(--dark); padding: 18px; border-radius: 17px; backdrop-filter: blur(10px); display: flex; flex-direction: column; }
.portrait-caption span { color: #506159; font-size: .78rem; text-transform: uppercase; letter-spacing: .13em; font-weight: 800; }
.portrait-caption strong { margin-top: 4px; font-size: 1rem; line-height: 1.35; }

.section-heading { max-width: 780px; margin-bottom: 48px; }
.section-heading.left { margin-bottom: 28px; }
.section-heading h2 { margin: 0; font-size: clamp(2.4rem, 5vw, 4.6rem); line-height: 1.03; letter-spacing: -0.055em; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 52px; font-size: 1.12rem; color: #3c4944; }
.about-grid p { margin: 0; }

.expertise-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.skill-card { min-height: 230px; padding: 26px; border: 1px solid var(--line); background: rgba(255,255,255,.52); border-radius: 22px; display: flex; flex-direction: column; }
.skill-card:hover { transform: translateY(-3px); transition: .22s ease; background: white; }
.skill-index { font-size: .8rem; font-weight: 900; color: var(--accent-strong); }
.skill-card h3 { margin: auto 0 8px; font-size: 1.35rem; letter-spacing: -.03em; }
.skill-card p { margin: 0; color: var(--muted); font-size: .94rem; }

.section-dark .eyebrow { color: #afd4bf; }
.section-dark .section-heading h2 { max-width: 900px; }
.timeline { margin-top: 58px; border-top: 1px solid rgba(255,255,255,.14); }
.timeline-item { display: grid; grid-template-columns: 180px 1fr; gap: 42px; padding: 34px 0; border-bottom: 1px solid rgba(255,255,255,.14); }
.timeline-date { color: #9fb0aa; font-size: .86rem; font-weight: 800; }
.timeline-content h3 { margin: 0; font-size: 1.6rem; letter-spacing: -.035em; }
.timeline-content h4 { margin: 5px 0 12px; font-size: .98rem; color: #b9c9c2; font-weight: 650; }
.timeline-content p { margin: 0; max-width: 780px; color: #adbdb5; }

.credentials-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 70px; }
.credential-card { border: 1px solid var(--line); border-radius: 22px; padding: 28px; }
.credential-card.featured { background: var(--dark); color: var(--light); }
.credential-card span { color: #9db0a7; font-size: .83rem; font-weight: 800; }
.credential-card h3 { margin: 22px 0 7px; font-size: 1.45rem; }
.credential-card p { margin: 0 0 10px; color: #c0cbc6; }
.credential-list { border-top: 1px solid var(--line); }
.credential-list div { display: grid; grid-template-columns: 170px 1fr; gap: 20px; padding: 19px 0; border-bottom: 1px solid var(--line); }
.credential-list span { color: var(--muted); }

.community-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.community-card { border-top: 2px solid var(--dark); padding-top: 22px; }
.community-card > span { color: var(--accent-strong); font-size: .78rem; font-weight: 900; text-transform: uppercase; letter-spacing: .12em; }
.community-card h3 { margin: 15px 0 10px; font-size: 1.38rem; letter-spacing: -.03em; }
.community-card p { margin: 0; color: var(--muted); }

.recommendation { padding-top: 80px; padding-bottom: 80px; }
.quote-card { position: relative; max-width: 920px; margin: 0 auto; text-align: center; }
.quote-mark { display: block; height: 70px; color: var(--accent-strong); font-family: Georgia, serif; font-size: 6rem; line-height: 1; }
blockquote { margin: 0; font-size: clamp(1.5rem, 3vw, 2.5rem); line-height: 1.28; letter-spacing: -.035em; font-weight: 700; }
.quote-card p { color: var(--muted); margin-top: 24px; }

.contact { padding-top: 82px; padding-bottom: 82px; }
.contact-inner { display: grid; grid-template-columns: 1fr auto; gap: 48px; align-items: end; }
.contact h2 { margin: 0; max-width: 820px; font-size: clamp(2.5rem, 5vw, 4.8rem); line-height: 1.03; letter-spacing: -.055em; }
.contact p:not(.eyebrow) { max-width: 700px; color: #aebdb6; }

footer { width: min(calc(100% - 40px), var(--max)); margin: 0 auto; padding: 28px 0 38px; display: flex; justify-content: space-between; gap: 20px; color: var(--muted); font-size: .88rem; }
footer a { text-decoration: none; font-weight: 750; }

.reveal { opacity: 0; transform: translateY(16px); transition: opacity .65s ease, transform .65s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .site-header { flex-wrap: wrap; }
  .menu-toggle { display: inline-grid; place-items: center; }
  .language-toggle { margin-left: 0; }
  .nav-links { display: none; order: 4; width: 100%; flex-direction: column; align-items: flex-start; gap: 4px; padding-top: 8px; }
  .nav-links.open { display: flex; }
  .nav-links a { width: 100%; padding: 9px 4px; }
  .hero { grid-template-columns: 1fr; gap: 40px; padding-top: 70px; }
  .hero-visual { justify-content: flex-start; }
  .portrait-card { max-width: 430px; }
  .about-grid, .credentials-grid, .contact-inner { grid-template-columns: 1fr; }
  .expertise-grid, .community-grid { grid-template-columns: repeat(2, 1fr); }
  .credentials-grid { gap: 50px; }
}

@media (max-width: 640px) {
  .site-header { width: min(calc(100% - 24px), var(--max)); margin-top: 10px; }
  .brand-text { display: none; }
  .section-pad { width: min(calc(100% - 28px), var(--max)); padding: 78px 0; }
  .section-surface, .section-dark { width: 100%; max-width: none; padding-left: 14px; padding-right: 14px; }
  .hero { min-height: auto; padding-top: 56px; }
  .hero h1 { font-size: clamp(3.6rem, 18vw, 5.2rem); }
  .hero-meta { grid-template-columns: 1fr; gap: 14px; }
  .hero-meta div { padding-bottom: 12px; border-bottom: 1px solid var(--line); }
  .section-heading { margin-bottom: 34px; }
  .about-grid, .expertise-grid, .community-grid { grid-template-columns: 1fr; gap: 16px; }
  .timeline-item { grid-template-columns: 1fr; gap: 10px; }
  .credential-list div { grid-template-columns: 1fr; gap: 2px; }
  .contact-inner { align-items: start; }
  footer { width: calc(100% - 28px); flex-direction: column; }
}
