:root {
  font-family: Arial, Helvetica, sans-serif;
  color: #dce2e2;
  background: #151517;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  --background: #151517;
  --card: #242425;
  --border: #454546;
  --muted: #aab3b3;
  --bright: #edf2f2;
  --max-width: 840px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--background); line-height: 1.45; }
a { color: inherit; }
.skip-link { position: fixed; top: 10px; left: 10px; z-index: 10; padding: 8px 12px; color: #151517; background: var(--bright); transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }
.site-header { position: sticky; top: 16px; z-index: 5; width: fit-content; margin: 16px auto 0; }
.site-nav { display: flex; gap: 4px; padding: 5px; border: 1px solid #414143; border-radius: 22px; background: #222224; box-shadow: 0 3px 14px rgba(0, 0, 0, .18); }
.nav-link { padding: 7px 15px; border-radius: 17px; color: var(--muted); font-size: 17px; text-decoration: none; transition: background .15s ease, color .15s ease; }
.nav-link:hover, .nav-link.is-active { color: var(--bright); background: #343436; }
main, .site-footer { width: min(calc(100% - 40px), var(--max-width)); margin: 0 auto; }
.section { padding: 40px 0; scroll-margin-top: 70px; display: flex; align-items: center; }
.section-inner { width: 100%; }
h1, h2, h3, p { margin-top: 0; }
h1, h2 { color: var(--bright); letter-spacing: -.04em; }
h1 { margin-bottom: 24px; font-size: clamp(34px, 4vw, 40px); line-height: 1; }
h2 { margin-bottom: 22px; font-size: clamp(32px, 4vw, 38px); line-height: 1; }
h3 { color: var(--bright); font-size: 24px; line-height: 1.05; }
p { color: var(--muted); font-size: 19px; }

/* Hero / landing section */
.hero-section { min-height: calc(100vh - 80px); }
.hero-section .section-inner { max-width: 620px; }
.hero-section h1 { margin-bottom: 18px; font-size: clamp(38px, 5vw, 52px); }
.hero-subtitle { margin-bottom: 30px; font-size: 21px; }
.social-row { display: flex; gap: 18px; align-items: center; }
.social-icon { display: grid; width: 26px; height: 26px; place-items: center; color: var(--bright); opacity: .85; transition: opacity .15s ease, transform .15s ease; }
.social-icon svg { width: 100%; height: 100%; }
.social-icon:hover { opacity: 1; transform: translateY(-2px); }

.about-content { display: grid; grid-template-columns: 320px 1fr; align-items: center; gap: 54px; }
.photo-wrap { display: flex; min-height: 340px; align-items: end; justify-content: center; }
.photo-wrap img { display: block; width: 368px; max-height: 432px; object-fit: contain; }
.about-copy { max-width: 520px; }
.about-copy p { margin-bottom: 22px; }
.plain-link, .contact-links a { color: var(--bright); text-underline-offset: 4px; }
.plain-link:hover, .contact-links a:hover, .project-card a:hover { color: #fff; }
/* Experience tabs */
.exp-tabs { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 24px; }
.exp-tab { padding: 10px 22px; color: var(--bright); border: 2px solid var(--bright); border-radius: 999px; background: transparent; cursor: pointer; font: inherit; font-size: 17px; transition: background .15s ease, color .15s ease; }
.exp-tab:hover { background: #343436; }
.exp-tab[aria-selected="true"] { color: var(--background); background: var(--bright); }

/* Work experience timeline */
.timeline { position: relative; display: grid; gap: 24px; margin: 0; padding: 0 0 0 44px; list-style: none; }
.timeline::before { content: ""; position: absolute; top: 0; bottom: 0; left: 11px; width: 2px; background: linear-gradient(var(--bright), var(--border)); }
.timeline-item { position: relative; }
.timeline-item::before { content: ""; position: absolute; top: 30px; left: -44px; width: 24px; height: 24px; border: 3px solid var(--bright); border-radius: 50%; background: var(--background); }
.timeline-card { display: grid; grid-template-columns: 1fr 180px; gap: 28px; align-items: center; padding: 28px; border: 1px solid var(--border); border-radius: 21px; background: var(--card); }
.timeline-copy h3 { margin-bottom: 14px; }
.timeline-meta { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-bottom: 16px; color: var(--muted); font-size: 16px; }
.timeline-meta span { display: inline-flex; align-items: center; gap: 7px; }
.timeline-meta svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.timeline-points { display: grid; gap: 8px; margin: 0; padding-left: 20px; color: var(--muted); font-size: 17px; line-height: 1.45; }
.timeline-logo { display: flex; flex-direction: column; align-items: center; gap: 12px; margin: 0; }
.logo-box { display: grid; width: 100%; aspect-ratio: 1; place-items: center; overflow: hidden; border-radius: 18px; background: #fff; }
.logo-box img { width: 100%; height: 100%; object-fit: contain; padding: 18px; }
.logo-box img.logo-zoom { transform: scale(2); }
.timeline-logo figcaption { color: var(--bright); font-size: 15px; font-weight: 700; text-align: center; }

.timeline-meta:last-child { margin-bottom: 0; }
.timeline-role + .timeline-role { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--border); }
.project-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.project-card { overflow: hidden; border: 1px solid var(--border); border-radius: 18px; background: var(--card); }
.project-card > img {
  display: block;
  width: 100%;
  height: 145px;
  object-fit: cover;
  object-position: center;
}
.project-copy { padding: 22px 24px 24px; }
.project-copy h3 { margin-bottom: 12px; }
.project-copy p { min-height: 44px; margin-bottom: 14px; font-size: 17px; }
.project-copy span { display: block; margin-bottom: 18px; color: var(--muted); font-size: 16px; }
.project-card a { color: var(--bright); font-size: 17px; }
.contact-section { padding-bottom: 48px; }
.contact-section > .section-inner > p { max-width: 540px; }
.contact-form { display: grid; max-width: 560px; gap: 9px; margin-top: 30px; }
.contact-form label { color: var(--muted); font-size: 17px; }
.contact-form input, .contact-form textarea { width: 100%; padding: 12px; color: var(--bright); border: 1px solid var(--border); border-radius: 6px; outline: none; background: var(--card); resize: vertical; }
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--bright); }
.contact-form button { width: fit-content; margin-top: 8px; padding: 10px 18px; color: #151517; border: 0; border-radius: 6px; background: var(--bright); cursor: pointer; font-weight: 700; }
.contact-form button:hover { background: #fff; }
.form-status { min-height: 22px; margin: 4px 0 0; font-size: 17px; }
.contact-links { display: flex; gap: 24px; margin-top: 16px; }
.contact-links a { font-size: 18px; }
.site-footer { display: flex; justify-content: space-between; padding: 20px 0 28px; border-top: 1px solid var(--border); color: var(--muted); font-size: 16px; }
.site-footer a { color: var(--muted); }
:focus-visible { outline: 2px solid var(--bright); outline-offset: 3px; }
@media (max-width: 700px) {
  .site-header { top: 8px; margin-top: 8px; }
  .nav-link { padding: 7px 10px; font-size: 12px; }
  main, .site-footer { width: min(calc(100% - 32px), var(--max-width)); }
  .section { padding: 32px 0; }
  .hero-section { min-height: calc(100vh - 64px); }
  .about-content { grid-template-columns: 1fr; gap: 28px; }
  .photo-wrap { min-height: 250px; justify-content: start; }
  .photo-wrap img { width: 288px; max-height: 336px; }
  .project-grid { grid-template-columns: 1fr; }
  .timeline { padding-left: 32px; }
  .timeline::before { left: 8px; }
  .timeline-item::before { left: -32px; width: 18px; height: 18px; }
  .timeline-card { grid-template-columns: 1fr; gap: 20px; padding: 22px; }
  .timeline-logo { order: -1; align-items: start; }
  .logo-box { width: 110px; }
  .timeline-logo figcaption { text-align: left; }
  .site-footer { flex-wrap: wrap; gap: 14px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition-duration: .01ms !important; } }