:root {
  --bg: #f4f5f7;
  --bg-2: #eceef3;
  --text: #11131a;
  --muted: #677081;
  --line: rgba(17,19,26,0.08);
  --card: rgba(255,255,255,0.76);
  --shadow: 0 18px 60px rgba(15, 23, 42, 0.08);
  --shadow-soft: 0 10px 32px rgba(15, 23, 42, 0.06);
  --radius-xl: 36px;
  --radius-lg: 28px;
  --radius-md: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, #eef2ff 0%, rgba(238,242,255,0) 35%),
    linear-gradient(135deg, var(--bg) 0%, #f9f7f3 100%);
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.page-shell { min-height: 100vh; }
.container { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.section { padding: 42px 0; }

.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(16px);
  background: rgba(244,245,247,0.78);
  border-bottom: 1px solid rgba(17,19,26,0.04);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 14px 0;
}
.brand img { height: 36px; width: auto; }
.site-nav {
  display: flex; align-items: center; gap: 6px; padding: 8px;
  background: rgba(255,255,255,0.78);
  border: 1px solid rgba(17,19,26,0.05);
  border-radius: 999px;
  box-shadow: var(--shadow-soft);
}
.site-nav a {
  padding: 12px 18px;
  border-radius: 999px;
  color: #495162;
  font-weight: 500;
}
.site-nav a:hover { background: rgba(17,19,26,0.05); color: var(--text); }

.nav-toggle {
  display: none; border: 0; background: rgba(255,255,255,0.78); box-shadow: var(--shadow-soft);
  width: 52px; height: 52px; border-radius: 999px; cursor: pointer;
}
.nav-toggle span {
  display: block; width: 18px; height: 2px; border-radius: 999px; background: #161922; margin: 4px auto;
}

.eyebrow {
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #7b8392;
}
.section-head { margin-bottom: 24px; }
.section-head h2, .contact-card h2, .contact-gallery-card h2 {
  margin: 0; font-size: clamp(2rem, 4vw, 3.75rem); line-height: 1.03; letter-spacing: -0.04em;
}
.section-head.narrow h2 { max-width: 760px; }

.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.95fr); gap: 38px; align-items: center;
}
.hero h1 {
  margin: 0 0 14px; font-size: clamp(3rem, 7vw, 5.6rem); line-height: .93; letter-spacing: -0.065em;
}
.hero-subtitle {
  margin: 0 0 18px; font-size: clamp(1.5rem, 3vw, 2rem); line-height: 1.25; color: #2a2f3a;
}
.hero-text {
  max-width: 720px; margin: 0; font-size: 1.3rem; line-height: 1.68; color: var(--muted);
}
.hero-actions {
  display: flex; flex-wrap: wrap; gap: 14px; margin: 26px 0 32px;
}
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 54px; padding: 0 24px; border-radius: 999px; font-weight: 700;
  border: 1px solid var(--line);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.button:hover { transform: translateY(-1px); box-shadow: var(--shadow-soft); }
.button-dark { background: #0f1117; color: white; border-color: #0f1117; }
.button-light { background: rgba(255,255,255,0.78); color: var(--text); }

.hero-signals {
  list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
}
.hero-signals li {
  padding: 22px; border-radius: var(--radius-md); border: 1px solid var(--line); background: var(--card); box-shadow: var(--shadow-soft);
}
.hero-signals strong { display:block; font-size:1.5rem; margin-bottom:8px; }
.hero-signals span { color: var(--muted); line-height:1.55; }

.portrait-card {
  position: relative; border-radius: 40px; overflow: hidden; padding: 28px;
  background: rgba(255,255,255,0.74); border: 1px solid rgba(255,255,255,0.6); box-shadow: var(--shadow);
}
.portrait-card img {
  width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 999px; position: relative; z-index: 1;
  background: #dde4f1;
}
.portrait-glow {
  position: absolute; inset: auto -10% -12% auto; width: 68%; height: 42%;
  background: radial-gradient(circle at center, rgba(67,151,255,0.3), rgba(67,151,255,0)); filter: blur(20px);
}

.capability-grid, .credentials-grid { display:grid; grid-template-columns: repeat(4, 1fr); gap:18px; }
.capability-card, .credential-card, .work-card, .timeline-card, .contact-card, .contact-gallery-card {
  background: var(--card); border:1px solid var(--line); box-shadow: var(--shadow-soft); border-radius: var(--radius-lg);
}
.capability-card, .credential-card, .contact-card, .contact-gallery-card { padding: 24px; }

.capability-top { display:flex; align-items:center; gap:12px; margin-bottom: 16px; }
.capability-index {
  width:34px; height:34px; display:grid; place-items:center; border-radius:999px; background:#f1f3f9; color:#788091; font-size:12px; font-weight:800;
}
.capability-card h3, .work-card h3, .credential-card h3, .timeline-card h3 { margin:0; font-size:1.12rem; }
.capability-card p, .work-meta p, .credential-card p, .timeline-card p, .contact-card p, .contact-gallery-card p { color: var(--muted); line-height:1.7; }
.capability-card ul, .credential-card ul { padding-left: 18px; margin: 16px 0 0; color:#404857; line-height:1.8; }

.work-grid { display:grid; gap:18px; }
.work-grid-3 { grid-template-columns: repeat(3, 1fr); }
.work-card { overflow:hidden; }
.work-card figure { margin:0; background:#eef2fb; }
.work-card img { width:100%; aspect-ratio: 4 / 3; object-fit: cover; }
.work-meta { padding: 22px; }
.work-tag {
  display:inline-flex; padding:10px 14px; border-radius:999px; border:1px solid var(--line); background:#fafbff; color:#6a7382; font-size:12px; font-weight:800; text-transform: uppercase; letter-spacing:0.12em;
}
.work-meta h3 { margin-top:18px; font-size:1.5rem; }
.work-note {
  margin-top: 16px; padding: 14px 16px; border-radius: 18px; background: linear-gradient(135deg, #111827, #222f47); color: white !important; font-weight:600;
}

.timeline { display:grid; gap:14px; }
.timeline-item { display:grid; grid-template-columns: 120px 1fr; gap:16px; align-items:start; }
.timeline-year { padding-top: 18px; color:#7a8393; font-weight:800; letter-spacing:0.03em; }
.timeline-card { padding: 22px; }

.credential-inline { display:flex; gap:18px; align-items:center; }
.credential-logo { width: 84px; height: 84px; object-fit: contain; }
.credential-certificate {
  width: 96px; height: 96px; object-fit: cover; border-radius: 14px; box-shadow: 0 12px 26px rgba(15, 23, 42, 0.12);
}
.patent-list { display:flex; flex-wrap:wrap; gap:10px; margin-top: 16px; }
.patent-list span {
  padding:10px 12px; border-radius:999px; background:#fafbff; border:1px solid var(--line); font-size:13px; color:#4e5664; font-weight:700;
}
.honors-stack { display:grid; gap:14px; }

.philosophy-section .pill-cloud { display:flex; flex-wrap:wrap; gap:10px; }
.pill-cloud span {
  padding:12px 16px; border-radius:999px; background: var(--card); border:1px solid var(--line); color:#4c5462; font-weight:700;
}

.partners-grid { display:grid; grid-template-columns: repeat(5, 1fr); gap:14px; }
.partners-grid img {
  width:100%; height:86px; object-fit: contain; background: var(--card); border:1px solid var(--line); border-radius: var(--radius-md); padding: 18px; box-shadow: var(--shadow-soft);
}

.site-footer { padding-top: 52px; }
.contact-layout {
  display:grid; grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr); gap: 22px; align-items: stretch;
}
.contact-gallery-card, .contact-card { min-height: 100%; }

.life-slider {
  position:relative; display:grid; grid-template-columns: 52px 1fr 52px; gap:14px; align-items:center; margin-top: 18px;
}
.life-viewport {
  overflow:hidden; border-radius: 24px; background: #eff2f7; border:1px solid var(--line); box-shadow: inset 0 1px 0 rgba(255,255,255,0.7);
}
.life-track { display:flex; transition: transform .45s ease; }
.life-slide { min-width:100%; padding: 16px; }
.life-slide img {
  width:100%; height: 460px; object-fit: contain; object-position: center; border-radius: 18px; background:#dfe4ee;
}
.life-arrow {
  width:52px; height:52px; border-radius:999px; border:1px solid var(--line); background: rgba(255,255,255,0.9); box-shadow: var(--shadow-soft); font-size:32px; line-height:1; cursor:pointer;
}
.life-dots { display:flex; justify-content:center; gap:8px; margin-top:16px; flex-wrap:wrap; }
.life-dots button {
  width:10px; height:10px; border-radius:999px; border:0; background:#cfd5df; cursor:pointer;
}
.life-dots button.active { background:#0f1117; width:24px; }

.contact-panel {
  display:flex; flex-wrap:wrap; gap:10px; margin-top:20px;
}
.contact-chip {
  padding:12px 16px; border-radius:999px; background: rgba(255,255,255,0.82); border:1px solid var(--line); box-shadow: var(--shadow-soft); font-weight:700;
}
.back-top { margin-top: 22px; }

.footer-bottom { padding: 20px 0 36px; color:#7a8393; }

.reveal { opacity: 0; transform: translateY(18px); transition: .55s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: .08s; }
.delay-2 { transition-delay: .16s; }
.delay-3 { transition-delay: .24s; }

@media (max-width: 1180px) {
  .work-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .capability-grid, .credentials-grid { grid-template-columns: repeat(2, 1fr); }
  .partners-grid { grid-template-columns: repeat(3, 1fr); }
  .contact-layout { grid-template-columns: 1fr; }
  .life-slide img { height: 520px; }
}

@media (max-width: 920px) {
  .hero-grid, .contact-layout { grid-template-columns: 1fr; }
  .hero-signals { grid-template-columns: 1fr; }
  .work-grid-3 { grid-template-columns: 1fr; }
  .timeline-item { grid-template-columns: 1fr; gap:8px; }
  .timeline-year { padding-top: 0; }
}

@media (max-width: 820px) {
  .nav-toggle { display:block; }
  .site-nav {
    position:absolute; right:16px; top:76px; display:none; flex-direction:column; align-items:stretch; width:min(280px, calc(100% - 32px)); padding:10px; border-radius:22px;
  }
  .site-nav.open { display:flex; }
  .capability-grid, .credentials-grid, .partners-grid { grid-template-columns: 1fr; }
  .life-slider { grid-template-columns: 44px 1fr 44px; }
}

@media (max-width: 560px) {
  .container { width: min(100% - 20px, 1200px); }
  .section { padding: 34px 0; }
  .hero-text { font-size: 1.05rem; }
  .hero-signals li, .capability-card, .credential-card, .timeline-card, .work-meta, .contact-card, .contact-gallery-card { padding: 18px; }
  .skill-badge span { display:none; }
  .skill-badge { padding:10px; }
  .site-nav a { padding:10px 12px; }
  .life-slide { padding: 10px; }
  .life-slide img { height: 320px; }
}

.skills-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 22px;
  opacity: 1 !important;
  transform: none !important;
}

.skill-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 46px;
  padding: 0 16px;
  border-radius: 999px;
  background: rgba(255,255,255,0.82);
  border: 1px solid rgba(15, 23, 42, 0.08);
  color: #111827 !important;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.95) inset,
    0 8px 24px rgba(15,23,42,0.06);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition:
    transform .22s ease,
    box-shadow .22s ease,
    border-color .22s ease,
    background .22s ease;
}

.skill-badge:hover {
  transform: translateY(-2px);
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.14);
  box-shadow:
    0 1px 0 rgba(255,255,255,1) inset,
    0 14px 32px rgba(15,23,42,0.1);
}

.skill-badge span {
  color: #111827 !important;
  line-height: 1;
}

.skill-badge svg {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  display: block;
  fill: currentColor !important;
  color: #111827 !important;
  opacity: 0.95;
}

@media (max-width: 560px) {
  .skill-badge {
    min-height: 42px;
    padding: 0 12px;
  }

  .skill-badge span {
    display: none;
  }

  .skill-badge svg {
    width: 15px;
    height: 15px;
    flex-basis: 15px;
  }
}