:root {
  --ink: #12151B;
  --ink-2: #3A414D;
  --muted: #4A5260;
  --faint: #9AA1AD;
  --bg: #F5F6F8;
  --card: #FFFFFF;
  --line: #E1E4EA;
  --line-2: #D5DAE2;
  --accent: #2453D6;
  --accent-hover: #163A9E;
  --accent-soft: #8FA9F5;
  --dark-line: #39404D;
  --dark-text: #C9CFDA;
  --dark-muted: #A6AEBC;
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'IBM Plex Sans', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); transition: color .2s var(--ease); }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--font-display); margin: 0; text-wrap: balance; }
p { margin: 0; }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px;
}
.skip:focus { top: 12px; color: #fff; }

.wrap { max-width: 1200px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }

.eyebrow {
  font-family: var(--font-mono); font-size: 14px; letter-spacing: .06em;
  color: var(--accent); text-transform: uppercase;
}
.section-title { font-size: clamp(32px, 4vw, 48px); line-height: 1.05; letter-spacing: -.02em; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(245, 246, 248, .9);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px rgba(18, 21, 27, .05); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 14px; padding-bottom: 14px; }
.logo {
  font-family: var(--font-display); font-weight: 700; font-size: 20px; letter-spacing: -.02em;
  color: var(--ink); text-decoration: none; padding: 8px 0;
}
.logo span { color: var(--accent); }
.logo:hover { color: var(--ink); }
.nav-links { display: flex; align-items: center; gap: 4px 22px; font-size: 15px; font-weight: 500; }
.nav-links a { color: var(--ink-2); text-decoration: none; padding: 10px 0; position: relative; }
.nav-links a:not(.nav-cta)::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 4px; height: 2px;
  background: var(--accent); transform: scaleX(0); transform-origin: left;
  transition: transform .25s var(--ease);
}
.nav-links a:not(.nav-cta):hover, .nav-links a.active { color: var(--ink); }
.nav-links a:not(.nav-cta):hover::after, .nav-links a.active::after { transform: scaleX(1); }
.nav-cta {
  color: #fff !important; background: var(--ink); padding: 10px 18px !important; border-radius: 999px;
  transition: background .2s var(--ease);
}
.nav-cta:hover { background: var(--accent); }
.menu-btn {
  display: none; width: 44px; height: 44px; border: 1px solid var(--line); background: var(--card);
  border-radius: 12px; align-items: center; justify-content: center; cursor: pointer; color: var(--ink);
}

/* ---------- Hero ---------- */
.hero { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; padding-top: 72px; padding-bottom: 96px; }
.hero-copy { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.hero-kicker { font-family: var(--font-mono); font-size: 14px; color: var(--muted); letter-spacing: .04em; display: flex; align-items: center; gap: 10px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #16A34A; box-shadow: 0 0 0 4px rgba(22, 163, 74, .18); flex: none; }
.hero h1 { font-weight: 700; font-size: clamp(44px, 7vw, 88px); line-height: .98; letter-spacing: -.035em; }
.hero h1 em { font-style: normal; color: var(--accent); }
.lead { font-size: 19px; line-height: 1.6; color: var(--ink-2); max-width: 600px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 24px;
  border-radius: 999px; font-weight: 600; font-size: 16px; text-decoration: none; cursor: pointer;
  transition: background .2s var(--ease), color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.btn svg { transition: transform .2s var(--ease); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); color: #fff; box-shadow: 0 8px 24px rgba(36, 83, 214, .28); }
.btn-primary:hover svg { transform: translateX(3px); }
.btn-ghost { border: 1.5px solid var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn:active { transform: scale(.98); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; padding: 0; list-style: none; }
.chips li { padding: 6px 12px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-size: 14px; color: var(--ink-2); }

.portrait { flex: 1 1 340px; max-width: 440px; margin: 0 auto; position: relative; }
.portrait::before {
  content: ''; position: absolute; inset: 24px -24px -24px 24px; border-radius: 28px; background: var(--ink);
}
.portrait img {
  position: relative; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: center top;
  border-radius: 28px; background: #DDE2EA;
}
.badge {
  position: absolute; left: -16px; bottom: 32px; background: var(--card); border-radius: 16px;
  padding: 14px 18px; box-shadow: 0 12px 32px rgba(18, 21, 27, .14); display: flex; flex-direction: column; gap: 2px;
}
.badge strong { font-family: var(--font-display); font-weight: 700; font-size: 28px; }
.badge span { font-size: 13px; color: var(--muted); }

/* ---------- About ---------- */
.about { background: var(--ink); color: var(--bg); }
.about .wrap { display: flex; flex-wrap: wrap; gap: 48px; padding-top: 96px; padding-bottom: 96px; }
.about .eyebrow { color: var(--accent-soft); }
.about-head { flex: 1 1 280px; display: flex; flex-direction: column; gap: 12px; }
.about-body { flex: 2 1 480px; display: flex; flex-direction: column; gap: 20px; font-size: 18px; line-height: 1.7; color: var(--dark-text); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; margin-top: 16px; }
.stats div { border-top: 1px solid var(--dark-line); padding-top: 16px; }
.stats strong { display: block; font-family: var(--font-display); font-size: 36px; font-weight: 700; color: #fff; line-height: 1.3; }
.stats span { font-size: 14px; color: var(--dark-muted); }

/* ---------- Expertise ---------- */
.expertise { display: flex; flex-direction: column; gap: 40px; padding-top: 96px; padding-bottom: 96px; }
.head { display: flex; flex-direction: column; gap: 12px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.feature {
  grid-column: 1 / -1; background: var(--ink); color: #fff; border-radius: 24px; padding: 36px;
  display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start;
}
.feature > div:first-child { flex: 1 1 320px; display: flex; flex-direction: column; gap: 14px; }
.feature h3 { font-size: 30px; letter-spacing: -.01em; }
.feature p { font-size: 17px; line-height: 1.65; color: var(--dark-text); }
.tags { flex: 1 1 320px; display: flex; flex-wrap: wrap; gap: 8px; align-content: flex-start; margin: 0; padding: 0; list-style: none; }
.tags li { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--dark-line); font-size: 14px; white-space: nowrap; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 32px;
  display: flex; flex-direction: column; gap: 12px;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(18, 21, 27, .08); border-color: #CBD3E0; }
.card svg { color: var(--accent); }
.card h3 { font-size: 22px; }
.card p { font-size: 16px; line-height: 1.6; color: var(--muted); }
.tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding-top: 8px; margin: 0; list-style: none; padding-left: 0; }
.tools li { font-weight: 600; font-size: 15px; }
.tools li + li::before { content: '/'; color: var(--faint); margin-right: 14px; font-weight: 400; }
.tools .label { font-family: var(--font-mono); font-size: 13px; color: var(--muted); letter-spacing: .06em; font-weight: 500; margin-right: 6px; }
.tools .label + li::before { content: none; }

/* ---------- Work ---------- */
.work { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.work .wrap { display: flex; flex-direction: column; gap: 40px; padding-top: 96px; padding-bottom: 96px; }
.work-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; }
.work-head p { max-width: 420px; font-size: 16px; line-height: 1.6; color: var(--muted); }
.projects { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.project { display: flex; flex-direction: column; gap: 16px; }
.shot {
  aspect-ratio: 16 / 10; border-radius: 20px; padding: 28px; text-decoration: none;
  display: flex; flex-direction: column; justify-content: space-between; color: #fff; overflow: hidden; position: relative;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
a.shot:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(18, 21, 27, .18); color: #fff; }
.shot-url { font-family: var(--font-mono); font-size: 12px; letter-spacing: .06em; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.shot-title { font-family: var(--font-display); font-size: 26px; font-weight: 700; line-height: 1.1; }
.shot-tags { display: flex; flex-wrap: wrap; gap: 6px; font-size: 12px; }
.shot-tags span { padding: 4px 10px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .22); }
.shot-chem { background: var(--ink); }
.shot-chem .shot-url, .shot-chem .shot-title em { color: var(--accent-soft); }
.shot-school { background: #13233A; }
.shot-school .shot-url, .shot-school .shot-title em { color: #F4C35A; }
.shot-title em { font-style: normal; }
.shot-next {
  background: #EEF1F6; border: 1.5px dashed #B9C1CE; color: var(--ink);
  align-items: flex-start;
}
a.shot-next:hover { color: var(--ink); border-color: var(--accent); background: #E8EEFC; box-shadow: none; }
.shot-next .shot-url { color: var(--accent); }
.shot-next .plus {
  width: 48px; height: 48px; border-radius: 50%; background: var(--accent); color: #fff;
  display: grid; place-items: center;
}
.project .meta { font-family: var(--font-mono); font-size: 13px; color: var(--muted); }
.project .meta b { color: #15803D; font-weight: 500; }
.project h3 { font-size: 22px; }
.project h3 a { color: var(--ink); text-decoration: none; }
.project h3 a:hover { color: var(--accent); }
.project p { font-size: 15px; line-height: 1.6; color: var(--muted); }

/* ---------- Experience ---------- */
.experience { display: flex; flex-wrap: wrap; gap: 48px; padding-top: 96px; padding-bottom: 96px; }
.experience .head { flex: 1 1 280px; }
.timeline { flex: 2 1 520px; min-width: 0; margin: 0; padding: 0; list-style: none; }
.timeline li { display: flex; flex-wrap: wrap; gap: 8px 24px; padding: 28px 0; border-top: 1px solid var(--line-2); }
.timeline li:last-child { border-bottom: 1px solid var(--line-2); }
.when { flex: 0 0 150px; font-family: var(--font-mono); font-size: 14px; color: var(--muted); padding-top: 4px; }
.when.now { color: var(--accent); }
.what { flex: 1 1 300px; display: flex; flex-direction: column; gap: 6px; }
.what h3 { font-size: 22px; }
.what .org { font-size: 15px; color: var(--muted); }
.what p { margin-top: 6px; font-size: 16px; line-height: 1.6; color: var(--ink-2); }

/* ---------- Contact ---------- */
.contact { padding: 0 24px 96px; }
.contact-box {
  max-width: 1200px; margin: 0 auto; background: var(--accent); color: #fff; border-radius: 32px;
  padding: clamp(32px, 6vw, 72px); display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-end; justify-content: space-between;
  position: relative; overflow: hidden;
}
.contact-box::after {
  content: ''; position: absolute; right: -120px; top: -120px; width: 360px; height: 360px; border-radius: 50%;
  border: 60px solid rgba(255, 255, 255, .06); pointer-events: none;
}
.contact-box .eyebrow { color: #DCE5FF; }
.contact-copy { flex: 2 1 460px; display: flex; flex-direction: column; gap: 16px; position: relative; z-index: 1; }
.contact-copy h2 { font-size: clamp(36px, 5vw, 64px); line-height: 1; letter-spacing: -.03em; }
.contact-list { flex: 1 1 280px; display: flex; flex-direction: column; gap: 4px; font-size: 17px; margin: 0; padding: 0; list-style: none; position: relative; z-index: 1; }
.contact-list a, .contact-list span {
  color: #fff; text-decoration: none; display: flex; align-items: center; gap: 12px; min-height: 44px; border-radius: 8px;
}
.contact-list a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.contact-list svg { flex: none; }
.contact-box :focus-visible { outline-color: #fff; }

.footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--muted); padding-bottom: 40px; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
  .menu-btn { display: inline-flex; }
  .nav { flex-wrap: wrap; }
  .nav-links {
    display: none; width: 100%; flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px 0 12px; font-size: 17px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 13px 4px; border-bottom: 1px solid var(--line); }
  .nav-links a:not(.nav-cta)::after { display: none; }
  .nav-cta { margin-top: 12px; text-align: center; border-bottom: 0 !important; }
  .hero { padding-top: 40px; gap: 48px; padding-bottom: 72px; }
  .lead { font-size: 17px; }
  .portrait { width: calc(100% - 28px); max-width: 360px; margin: 0 auto 24px; }
  .badge { left: -8px; }
  .portrait::before { inset: 16px -14px -16px 14px; }
  .about .wrap, .expertise, .work .wrap, .experience { padding-top: 72px; padding-bottom: 72px; }
  .feature, .card { padding: 26px; }
  .grid, .projects { grid-template-columns: 1fr; }
  .contact { padding: 0 16px 72px; }
  .contact-box { border-radius: 24px; }
  .wrap { padding-left: 16px; padding-right: 16px; }
  .contact-list { font-size: 16px; }
  .contact-list a { word-break: break-all; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

@media print {
  .site-header, .menu-btn, .actions { display: none; }
  .reveal { opacity: 1; transform: none; }
}
