:root {
  --bg: #ffffff;
  --bg-soft: #fafafa;
  --bg-card: #ffffff;
  --ink: #1d1d1f;
  --ink-soft: #6e6e73;
  --ink-faint: #86868b;
  --line: #e5e5ea;
  --line-soft: #f2f2f4;
  --accent: #1d1d1f;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  --radius: 18px;
  --max: 1080px;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', sans-serif;
  --display: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Display', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "ss01";
}

a { color: var(--ink); text-decoration: none; }
a:hover { opacity: 0.7; }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin: 0;
  color: var(--ink);
}
h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.15rem; font-weight: 600; }
p { margin: 0 0 1rem; }
em { font-style: normal; font-weight: 600; }

/* hide all decorative flourishes */
.deco-sparkle, .deco-heart, .squiggle-arrow, .brush, .logo-underline,
.paper-plane { display: none !important; }
.underline-blue::after, .underline-peach::after { display: none; }
.underline-blue, .underline-peach { font-weight: 700; }

/* nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line-soft);
}
.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1rem 1.8rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.nav-links { display: flex; gap: 2rem; align-items: center; }
.nav-links a {
  color: var(--ink-soft);
  font-weight: 500;
  font-size: 0.92rem;
}
.nav-links a:hover { color: var(--ink); opacity: 1; }
.cta-pill {
  background: var(--ink);
  color: #fff !important;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  font-weight: 500;
  font-size: 0.88rem;
}
.cta-pill:hover { background: #000; opacity: 1; }

/* hero */
.hero {
  position: relative;
  max-width: var(--max);
  margin: 3rem auto 4.5rem;
  padding: 0 1.8rem;
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 3.5rem;
  align-items: center;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-bottom: 1rem;
  padding: 0.4rem 0.9rem;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 500;
}
.hero-eyebrow .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #30d158;
  box-shadow: 0 0 0 4px rgba(48, 209, 88, 0.18);
}
.hero-meta {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin: 1.4rem 0 1.6rem;
}
.meta-pill {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--ink);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
}
.hero-cta { display: flex; gap: 0.7rem; flex-wrap: wrap; }
.btn {
  display: inline-flex;
  align-items: center;
  padding: 0.75rem 1.3rem;
  border-radius: 999px;
  font-weight: 500;
  font-size: 0.95rem;
  transition: opacity .15s ease, background .15s ease;
}
.btn:hover { opacity: 1; }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: #000; }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--ink); }
.hero-photo {
  position: relative;
  width: 320px;
  max-width: 100%;
  aspect-ratio: 1 / 1;
  margin: 0 auto;
}
.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 1px solid var(--line);
}

.hero-text h1 {
  margin-bottom: 1.2rem;
  letter-spacing: -0.035em;
}
.hero-text h1 .wave { display: none; }
.lede {
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 36rem;
  margin: 0;
  font-weight: 400;
}
.lede em { color: var(--ink); font-weight: 500; }

/* trophy / latest win */
.trophy {
  max-width: var(--max);
  margin: 0 auto 4rem;
  padding: 0 1.8rem;
}
.trophy-card {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 2.2rem;
  display: flex;
  gap: 1.6rem;
  align-items: center;
}
.trophy-badge {
  flex: 0 0 auto;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
}
.medal { font-size: 1.6rem; line-height: 1; filter: grayscale(0); }
.trophy-body { flex: 1; min-width: 0; }
.trophy-kicker {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 0.5rem;
}
.trophy-body h2 {
  font-size: clamp(1.15rem, 1.8vw, 1.45rem);
  margin-bottom: 0.4rem;
  line-height: 1.3;
  font-weight: 600;
}
.trophy-body p {
  color: var(--ink-soft);
  margin-bottom: 0.8rem;
  font-size: 0.95rem;
}
.trophy-body strong { color: var(--ink); font-weight: 600; }
.trophy-links { display: flex; gap: 1.4rem; flex-wrap: wrap; }
.trophy-links a {
  color: var(--ink);
  font-weight: 500;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 1px;
}
.trophy-links a:hover { opacity: 0.6; }

/* demo video */
.demo {
  max-width: var(--max);
  margin: 0 auto 4rem;
  padding: 0 1.8rem;
}
.demo-head { text-align: center; margin: 0 auto 1.5rem; }
.demo-eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0 0 0.5rem;
}
.video-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #000;
}
.video-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* highlights bar */
.highlights {
  max-width: var(--max);
  margin: 0 auto 4rem;
  padding: 0 1.8rem;
}
.highlights-inner {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 2rem 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  text-align: center;
}
.stat { display: flex; flex-direction: column; align-items: center; gap: 0.25rem; }
.stat-num {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.6rem, 2.4vw, 2.1rem);
  color: var(--ink);
  letter-spacing: -0.03em;
}
.stat-label {
  font-size: 0.78rem;
  color: var(--ink-faint);
  font-weight: 400;
  max-width: 12rem;
  line-height: 1.3;
}

/* sections */
.elsewhere, .projects, .experience, .about {
  max-width: var(--max);
  margin: 0 auto 4rem;
  padding: 0 1.8rem;
}
.section-head { margin-bottom: 2.5rem; max-width: 38rem; }
.section-head h2 { margin-bottom: 0.6rem; }
.section-head p { color: var(--ink-soft); font-size: 1rem; margin: 0; }

/* contacts — centered Apple-style block */
.contacts {
  max-width: 720px;
  margin: 0 auto 5rem;
  padding: 4rem 1.8rem;
  text-align: center;
}
.contacts-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0 0 0.8rem;
}
.contacts-heading {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0 0 1rem;
}
.contacts-sub {
  font-size: 1.05rem;
  color: var(--ink-soft);
  max-width: 36rem;
  margin: 0 auto 2.4rem;
}
.contact-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.4rem;
}
.contact {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: color .15s ease, transform .2s ease;
}
.contact svg {
  width: 56px;
  height: 56px;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--bg-card);
  box-sizing: border-box;
  transition: border-color .15s ease, background .15s ease;
}
.contact:hover { color: var(--ink); opacity: 1; transform: translateY(-2px); }
.contact:hover svg { border-color: var(--ink); background: var(--bg-soft); }
.contact-label { display: block; }

/* projects */
.project-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
.project {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem;
  transition: border-color .2s ease;
}
.project:hover { border-color: var(--ink); }
.project.featured {
  grid-column: 1 / -1;
}

.project-icon-wrap { display: none; }

.project-meta {
  display: flex;
  gap: 0.4rem;
  align-items: center;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.tag {
  font-size: 0.7rem;
  font-weight: 500;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  letter-spacing: 0.02em;
  background: var(--bg-soft);
  color: var(--ink-soft);
  border: 1px solid var(--line);
}
.tag-feature { background: var(--ink); color: #fff; border-color: var(--ink); }
.tag-lang { background: var(--ink); color: #fff; border-color: var(--ink); }
.tag-soft { background: var(--bg-soft); color: var(--ink-soft); }
.stars-count { font-size: 0.85rem; color: var(--ink-faint); margin-left: auto; }
.project h3 { margin-bottom: 0.5rem; font-size: 1.4rem; }
.project p { color: var(--ink-soft); margin-bottom: 1rem; font-size: 0.95rem; }
.project-link {
  font-weight: 500;
  color: var(--ink);
  font-size: 0.9rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 1px;
}
.project-link:hover { border-color: var(--ink); opacity: 1; }

/* experience timeline */
.timeline { display: flex; flex-direction: column; }
.exp {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 2rem;
  padding: 1.8rem 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}
.exp:last-child { border-bottom: none; }
.exp-side {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding-top: 0.2rem;
}
.exp-year {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
}
.exp-place { font-size: 0.85rem; color: var(--ink-faint); }
.exp-body h3 {
  font-size: 1.1rem;
  margin-bottom: 0.3rem;
  font-weight: 600;
}
.exp-co { color: var(--ink-soft); font-weight: 500; }
.exp-honor .exp-co { color: var(--ink-soft); }
.exp-body p { margin: 0; color: var(--ink-soft); font-size: 0.95rem; }
.exp-body strong { color: var(--ink); font-weight: 600; }

/* about */
.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.about-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  padding: 1.8rem;
  border-radius: var(--radius);
}
.about-card .emoji { display: none; }
.about-card h3 { margin-bottom: 0.4rem; }
.about-card p { color: var(--ink-soft); margin: 0; font-size: 0.95rem; }
.about-card a { color: var(--ink); border-bottom: 1px solid var(--line); }
.about-card a:hover { border-color: var(--ink); }

/* footer */
.footer {
  border-top: 1px solid var(--line);
  padding: 3rem 1.8rem 2.5rem;
  margin-top: 4rem;
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  text-align: center;
}
.footer-name { font-weight: 600; font-size: 1rem; margin: 0; color: var(--ink); }
.footer-tagline { color: var(--ink-soft); margin: 0.4rem 0 1.2rem; font-size: 0.92rem; }
.footer-socials {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1.2rem;
}
.footer-socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--ink-soft);
  transition: border-color .15s ease, color .15s ease;
}
.footer-socials a:hover { border-color: var(--ink); color: var(--ink); opacity: 1; }
.footer-socials a svg { width: 14px !important; height: 14px !important; padding: 0 !important; border: 0 !important; background: transparent !important; }
.copyright { font-size: 0.8rem; color: var(--ink-faint); margin: 0; }

/* responsive */
@media (max-width: 880px) {
  .nav-links a:not(.cta-pill) { display: none; }
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2.5rem;
    margin: 2rem auto 4rem;
  }
  .hero-photo { width: 200px; }
  .hero-text .lede { margin: 0 auto; }

  .trophy-card { flex-direction: column; text-align: center; padding: 2rem 1.5rem; }
  .trophy-links { justify-content: center; }

  .highlights-inner { grid-template-columns: repeat(2, 1fr); gap: 1.5rem 1rem; }

  .project-list, .about-grid, .writing-grid { grid-template-columns: 1fr; }

  .exp { grid-template-columns: 1fr; gap: 0.5rem; padding: 1.5rem 0; }
  .exp-side { flex-direction: row; gap: 1rem; align-items: baseline; }
}
