*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; }
body {
  background: #fff;
  color: #111;
  font-family: 'EB Garamond', Georgia, serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; height: auto; }

/* ── HEADER ── */
header {
  text-align: center;
  padding: 48px 24px 0;
}
.site-name {
  font-size: clamp(18px, 3vw, 26px);
  font-weight: 400;
  letter-spacing: 0.55em;
  text-transform: uppercase;
  line-height: 1;
  display: inline-block;
  cursor: pointer;
}

/* ── NAV ── */
nav {
  text-align: center;
  padding: 28px 24px 32px;
  border-bottom: 1px solid #e0e0e0;
}
nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}
nav ul li a {
  display: inline-block;
  font-size: 15px;
  letter-spacing: 0.08em;
  padding: 4px 18px;
  color: #111;
  transition: opacity 0.2s;
  cursor: pointer;
}
nav ul li a:hover { opacity: 0.45; }
nav ul li a.active { border-bottom: 1px solid #111; }

/* ── PAGES ── */
.page { display: none; }
.page.active { display: block; }

/* ── HOME Hero ── */
.home-hero {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: calc(100vh - 140px);
  background: #111;
  overflow: hidden;
}
.home-hero iframe {
  position: absolute;
  top: 50%; left: 50%;
  width: 100%; height: 100%;
  transform: translate(-50%, -50%);
  border: none;
  pointer-events: none;
}
.home-caption {
  text-align: center;
  padding: 22px 24px 60px;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #aaa;
}
.home-caption a {
  border-bottom: 1px solid #ccc;
  transition: opacity 0.2s;
}
.home-caption a:hover { opacity: 0.5; }

/* ── GALLERY ── */
.gallery {
  max-width: 960px;
  margin: 0 auto;
  padding: 56px 24px 80px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px 40px;
}
.project { display: block; cursor: pointer; }
.project__img {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #f0f0f0;
  overflow: hidden;
}
.project__img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: opacity 0.3s;
}
.project:hover .project__img img { opacity: 0.82; }
.project__img--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f5f5f3;
}
.project__img--empty span {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #bbb;
}
.project__title {
  font-size: 20px;
  font-weight: 400;
  letter-spacing: 0.02em;
  margin-top: 14px;
  line-height: 1.3;
}
.project__sub {
  font-size: 14px;
  color: #777;
  margin-top: 4px;
}

/* ── TOOL LIST ── */
.tool-list {
  max-width: 680px;
  margin: 0 auto;
  padding: 56px 24px 80px;
}
.tool-item {
  display: flex;
  flex-direction: column;
  border-top: 1px solid #e0e0e0;
  padding: 28px 0;
}
.tool-item:last-child { border-bottom: 1px solid #e0e0e0; }
.tool-item__name {
  font-size: 22px;
  font-weight: 400;
  margin-bottom: 6px;
}
.tool-item__name a { transition: opacity 0.2s; }
.tool-item__name a:hover { opacity: 0.45; }
.tool-item__desc {
  font-size: 15px;
  color: #555;
  line-height: 1.65;
  margin-bottom: 10px;
  max-width: 540px;
}
.tool-item__meta {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #aaa;
}

/* ── ABOUT ── */
.about {
  max-width: 720px;
  margin: 0 auto;
  padding: 64px 24px 80px;
}
.about__grid {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 48px;
  align-items: start;
  margin-bottom: 44px;
}
.about__photo {
  width: 100%;
  aspect-ratio: 3 / 4;
  background: #f0f0ee;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.about__photo img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.about__photo--empty {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #bbb;
  text-align: center;
  padding: 20px;
  line-height: 1.6;
}
.about__text h2 {
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #aaa;
  margin-bottom: 24px;
  font-weight: 400;
}
.about__text p {
  font-size: 17px;
  line-height: 1.75;
  color: #222;
  margin-bottom: 18px;
}
.skills-block {
  border-top: 1px solid #e0e0e0;
  padding-top: 32px;
}
.skills-block h3 {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #aaa;
  margin-bottom: 18px;
  font-weight: 400;
}
.skills-label {
  margin-bottom: 8px;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #bbb;
}
.skills-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 6px;
  margin-bottom: 22px;
}
.skill {
  font-size: 14px;
  color: #444;
  border: 1px solid #ddd;
  padding: 3px 12px;
  border-radius: 999px;
}

/* ── RESUME ── */
.resume {
  max-width: 720px;
  margin: 0 auto;
  padding: 64px 24px 100px;
}
.resume__header {
  margin-bottom: 40px;
  border-bottom: 1px solid #e0e0e0;
  padding-bottom: 28px;
}
.resume__name {
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 400;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}
.resume__contact-line {
  font-size: 14px;
  color: #777;
  letter-spacing: 0.04em;
}
.resume__contact-line a { border-bottom: 1px solid #ddd; transition: opacity 0.2s; }
.resume__contact-line a:hover { opacity: 0.5; }

.resume-section { margin-bottom: 40px; }
.resume-section__label {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #aaa;
  margin-bottom: 16px;
  font-weight: 400;
}
.resume-entry {
  border-top: 1px solid #ebebeb;
  padding: 16px 0;
}
.resume-entry:last-child { border-bottom: 1px solid #ebebeb; }
.resume-entry__top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 4px;
  flex-wrap: wrap;
}
.resume-entry__title { font-size: 17px; font-weight: 400; }
.resume-entry__date {
  font-size: 12px;
  letter-spacing: 0.08em;
  color: #aaa;
  white-space: nowrap;
}
.resume-entry__org {
  font-size: 14px;
  color: #888;
  margin-bottom: 8px;
  font-style: italic;
}
.resume-entry__bullets { list-style: none; padding: 0; }
.resume-entry__bullets li {
  font-size: 14px;
  color: #555;
  line-height: 1.65;
  padding-left: 14px;
  position: relative;
  margin-bottom: 4px;
}
.resume-entry__bullets li::before {
  content: '–';
  position: absolute;
  left: 0;
  color: #ccc;
}
.resume__skills-grid { display: flex; flex-direction: column; gap: 12px; }
.resume__skill-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 12px;
  font-size: 14px;
  border-top: 1px solid #ebebeb;
  padding-top: 12px;
}
.resume__skill-row:last-child { border-bottom: 1px solid #ebebeb; padding-bottom: 12px; }
.resume__skill-label { color: #aaa; font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; padding-top: 2px; }
.resume__skill-val { color: #444; line-height: 1.55; }
.resume__affil { font-size: 14px; color: #555; line-height: 1.8; }
.resume__download {
  display: inline-block;
  margin-top: 32px;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-bottom: 1px solid #111;
  padding-bottom: 2px;
  transition: opacity 0.2s;
}
.resume__download:hover { opacity: 0.45; }

/* ── CONTACT ── */
.contact {
  max-width: 480px;
  margin: 0 auto;
  padding: 64px 24px 80px;
}
.contact h2 {
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #aaa;
  margin-bottom: 36px;
  font-weight: 400;
}
.contact-row {
  display: flex;
  align-items: baseline;
  gap: 20px;
  padding: 14px 0;
  border-top: 1px solid #e8e8e8;
  font-size: 18px;
}
.contact-row:last-child { border-bottom: 1px solid #e8e8e8; }
.contact-label {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #bbb;
  width: 90px;
  flex-shrink: 0;
}
.contact-row a { transition: opacity 0.2s; }
.contact-row a:hover { opacity: 0.45; }

/* ── RESPONSIVE ── */
@media (max-width: 640px) {
  .gallery { grid-template-columns: 1fr; padding: 40px 20px 60px; gap: 44px; }
  nav ul li a { padding: 4px 10px; font-size: 14px; }
  .site-name { letter-spacing: 0.3em; }
  .about__grid { grid-template-columns: 1fr; }
  .about__photo { max-width: 220px; }
  .resume__skill-row { grid-template-columns: 1fr; gap: 4px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }