:root {
  --bg: #e9eaee;
  --card: #ffffff;
  --ink: #14151a;
  --muted: #8b8d98;
  --line: #ececef;
  --accent: #2563eb;
  --accent-soft: #c9dbff;
  --radius: 6px;
  --max: 1180px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Manrope", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

.frame {
  max-width: var(--max);
  margin: 28px auto;
  background: var(--card);
  border-radius: 10px;
  box-shadow: 0 30px 80px -40px rgba(20, 21, 26, 0.35);
  overflow: hidden;
}

.site-header {
  display: flex;
  align-items: center;
  gap: 40px;
  padding: 26px 48px;
}

.logo { font-family: "Playfair Display", serif; font-size: 28px; line-height: 1; }
.logo-main { font-weight: 700; }
.logo-sub { color: var(--accent); font-style: italic; }

.nav {
  display: flex;
  gap: 34px;
  font-size: 14px;
  font-weight: 500;
  color: #4a4b54;
}
.nav a { position: relative; padding: 4px 0; transition: color .2s; }
.nav a:hover { color: var(--ink); }
.nav a.active { color: var(--ink); }
.nav a.active::after {
  content: ""; position: absolute; left: 0; bottom: -2px;
  width: 100%; height: 2px; background: var(--ink);
}

.schedule {
  margin-left: auto;
  font-size: 14px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color .2s;
}
.schedule:hover { color: var(--accent); }
.schedule-dot { color: var(--accent); }

.nav-toggle {
  display: none;
  margin-left: auto;
  background: none; border: none; cursor: pointer;
  flex-direction: column; gap: 5px; padding: 6px;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--ink); transition: .3s; }

.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  padding: 30px 48px 40px 110px;
  min-height: 460px;
}

.social-rail {
  position: absolute;
  left: 48px; bottom: 40px;
  list-style: none;
  display: flex; flex-direction: column; gap: 18px;
}
.social-rail a {
  display: grid; place-items: center;
  width: 30px; height: 30px;
  font-size: 12px; font-weight: 700;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 50%;
  transition: .2s;
}
.social-rail a:hover { color: #fff; background: var(--accent); border-color: var(--accent); }

.intro { max-width: 600px; }
.greeting { font-size: 17px; color: #4a4b54; margin-bottom: 14px; }
.name {
  font-size: clamp(38px, 5vw, 58px);
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1.02;
}
.name .accent { color: var(--accent); }
.role {
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 600;
  margin-top: 6px;
}
.tagline { font-size: 16px; color: #5c5e68; margin-top: 14px; }
.cta {
  display: inline-block;
  margin-top: 30px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  padding: 15px 34px;
  border-radius: var(--radius);
  box-shadow: 0 16px 30px -14px var(--accent);
  transition: transform .2s, box-shadow .2s;
}
.cta:hover { transform: translateY(-2px); box-shadow: 0 22px 38px -14px var(--accent); }
.cta.ghost {
  background: transparent; color: var(--ink);
  border: 1.5px solid var(--ink); box-shadow: none;
}
.cta.ghost:hover { background: var(--ink); color: #fff; }

.portrait {
  position: relative;
  height: 420px;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.big-letter {
  position: absolute;
  font-family: "Playfair Display", serif;
  font-size: 380px;
  font-weight: 700;
  line-height: 0.7;
  color: var(--ink);
  z-index: 1;
  user-select: none;
  bottom: -56px;
}
.blob {
  position: absolute;
  top: 0; right: 30px;
  width: 200px; height: 220px;
  background: linear-gradient(160deg, #93c5fd, #2563eb);
  border-radius: 60% 40% 55% 45% / 55% 50% 50% 45%;
  filter: blur(2px);
  opacity: .85;
  z-index: 0;
}
.dots {
  position: absolute;
  left: 40px; bottom: 30px;
  width: 90px; height: 70px;
  background-image: radial-gradient(var(--ink) 1.4px, transparent 1.6px);
  background-size: 12px 12px;
  opacity: .5;
  z-index: 1;
}
.photo-wrap {
  position: relative;
  z-index: 2;
  width: 290px; height: 380px;
  overflow: hidden;
  border-radius: 4px;
}
.photo-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.ring {
  position: absolute;
  right: 40px; bottom: 60px;
  width: 70px; height: 70px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  border-right-color: transparent;
  z-index: 3;
}
.mini-mark {
  position: absolute;
  right: 56px; bottom: 76px;
  font-family: "Playfair Display", serif;
  font-style: italic;
  font-size: 22px;
  color: var(--accent);
  z-index: 4;
}

.contact-strip {
  display: flex;
  gap: 60px;
  padding: 24px 48px 34px 110px;
  border-top: 1px solid var(--line);
}
.info { display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.info .label { font-weight: 700; margin-bottom: 4px; }
.info a, .info span:not(.label) { color: #5c5e68; }
.info a:hover { color: var(--accent); }

.section { padding: 90px 24px; }
.section.alt { background: #f3f4f7; }
.section-inner { max-width: 880px; margin: 0 auto; }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 12px;
}
.section h2 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 22px;
}
.lead { font-size: 18px; color: #4a4b54; max-width: 680px; }

.skills {
  list-style: none;
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-top: 28px;
}
.skills li {
  font-size: 14px; font-weight: 600;
  padding: 8px 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 40px;
}
.section.alt .skills li { background: #fff; }

.timeline { list-style: none; margin-top: 12px; }
.timeline li {
  position: relative;
  padding: 22px 0 22px 28px;
  border-left: 2px solid var(--line);
}
.timeline li::before {
  content: ""; position: absolute; left: -7px; top: 30px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--accent); border: 3px solid #f3f4f7;
}
.t-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px; }
.t-head h3 { font-size: 19px; font-weight: 700; }
.t-date { font-size: 13px; color: var(--muted); font-weight: 600; }
.t-org { font-weight: 600; color: var(--accent); font-size: 14px; margin-top: 2px; }
.t-desc { color: #5c5e68; font-size: 15px; margin-top: 4px; }

.edu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin-top: 12px;
}
.edu-grid article {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
}
.edu-year {
  display: inline-block;
  font-weight: 800; color: var(--accent);
  font-size: 14px; margin-bottom: 10px;
}
.edu-grid h3 { font-size: 17px; font-weight: 700; margin-bottom: 4px; }
.edu-grid p { color: #5c5e68; font-size: 14px; }

.contact { text-align: center; }
.contact .section-inner { display: flex; flex-direction: column; align-items: center; }
.contact-actions { display: flex; gap: 16px; margin-top: 30px; flex-wrap: wrap; justify-content: center; }
.copyright { text-align: center; color: var(--muted); font-size: 13px; margin-top: 60px; }

@media (max-width: 860px) {
  .frame { margin: 0; border-radius: 0; }
  .nav, .schedule { display: none; }
  .nav-toggle { display: flex; }

  .nav.open {
    display: flex; flex-direction: column;
    position: absolute; top: 78px; left: 0; right: 0;
    background: #fff; padding: 18px 48px; gap: 18px;
    box-shadow: 0 20px 30px -20px rgba(0,0,0,.2);
    z-index: 50;
  }
  .site-header { position: relative; gap: 16px; padding: 22px 24px; }

  .hero {
    grid-template-columns: 1fr;
    padding: 20px 24px 40px;
    gap: 40px;
  }
  .social-rail { flex-direction: row; position: static; margin-bottom: 8px; }
  .portrait { height: 380px; order: -1; }
  .big-letter { font-size: 320px; }
  .contact-strip {
    flex-direction: column; gap: 20px; padding: 26px 24px;
  }
  .section { padding: 64px 20px; }
}
