:root {
  --ink: #242522;
  --paper: #f6f5f1;
  --surface: #ffffff;
  --soft: #eceae4;
  --accent: #9a4d32;
  --muted: #66675f;
  --line: #d4d2ca;
  --max: 1060px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { display: block; max-width: 100%; }

.skip-link { position: fixed; left: 1rem; top: -4rem; z-index: 99; background: white; padding: .8rem 1rem; }
.skip-link:focus { top: 1rem; }

.site-header {
  min-height: 68px;
  max-width: var(--max);
  margin: auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-size: .76rem; font-weight: 700; letter-spacing: .04em; }
.brand-mark { width: 12px; height: 12px; border: 3px solid var(--accent); }
nav { display: flex; align-items: center; gap: 26px; }
nav a { font-size: .82rem; font-weight: 600; text-decoration: none; }
.nav-cta { border: 1px solid var(--ink); padding: 8px 13px; border-radius: 2px; }

.hero {
  max-width: var(--max);
  margin: auto;
  padding: 68px 24px 74px;
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  align-items: center;
  gap: 70px;
}
.eyebrow { margin: 0 0 14px; color: var(--accent); text-transform: uppercase; letter-spacing: .1em; font-size: .7rem; font-weight: 700; }
h1, h2, h3 { margin-top: 0; line-height: 1.15; }
h1 { margin-bottom: 7px; font-size: clamp(2.35rem, 5vw, 4.1rem); letter-spacing: -.035em; }
.hero-role { margin: 0 0 25px; font-size: 1.08rem; font-weight: 650; color: var(--accent); }
.hero-intro { max-width: 610px; margin: 0; color: #55564f; font-size: 1.04rem; line-height: 1.65; }
.hero-actions { margin-top: 29px; display: flex; align-items: center; gap: 12px; }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 46px; padding: 11px 17px; border-radius: 2px; font-size: .86rem; font-weight: 700; text-decoration: none; }
.button-primary { color: white; background: var(--ink); border: 1px solid var(--ink); }
.button-primary:hover { background: #3c3e38; }
.button-quiet { border: 1px solid var(--line); background: transparent; }

.hero-interview {
  display: block;
  max-width: 285px;
  margin-left: auto;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 2px;
  overflow: hidden;
  text-decoration: none;
}
.hero-interview > img { width: 100%; height: 335px; object-fit: cover; object-position: center 35%; }
.hero-interview-copy { display: block; padding: 15px 16px 16px; }
.hero-interview-copy small { display: block; margin-bottom: 4px; color: var(--accent); font-size: .62rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.hero-interview-copy strong { display: block; margin-bottom: 8px; font-size: .94rem; line-height: 1.3; }
.hero-interview-copy b { display: block; color: var(--muted); font-size: .7rem; font-weight: 600; }
.hero-interview-copy i { font-style: normal; }
.hero-interview:hover strong { text-decoration: underline; text-underline-offset: 3px; }
.contact-status span { width: 7px; height: 7px; border-radius: 50%; background: #568765; }

.availability {
  padding: 26px max(24px, calc((100vw - var(--max)) / 2 + 24px));
  display: grid;
  grid-template-columns: .65fr 1.4fr 1fr;
  align-items: center;
  gap: 25px;
  background: #e7e5df;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.availability p { margin: 0; color: var(--muted); font-size: .76rem; }
.availability p:last-child { text-align: right; }
.availability-label { text-transform: uppercase; letter-spacing: .08em; }
.availability-title { font-size: 1.02rem; font-weight: 700; }

.section { padding: 86px max(24px, calc((100vw - var(--max)) / 2 + 24px)); }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 40px; margin-bottom: 38px; }
.section-heading h2, .profile-lead h2, .contact h2 { margin: 0; font-size: clamp(1.85rem, 3.6vw, 3rem); letter-spacing: -.035em; }
.section-heading > p { margin: 0; max-width: 400px; color: var(--muted); font-size: .92rem; }

.projects-section { background: var(--surface); }
.projects-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.project-card { border: 1px solid var(--line); background: var(--paper); border-radius: 2px; overflow: hidden; }
.project-media { position: relative; display: block; width: 100%; padding: 0; border: 0; aspect-ratio: 4 / 3; overflow: hidden; color: var(--ink); background-color: #dedcd5; font: inherit; text-align: left; cursor: pointer; }
.project-media::before, .project-media::after { content: ""; position: absolute; background: #666761; opacity: .55; }
.fallback-1::before { width: 72%; height: 13px; left: 14%; top: 45%; transform: rotate(-16deg); }
.fallback-1::after { width: 13px; height: 68%; left: 48%; top: 16%; }
.fallback-2::before { width: 60%; height: 60%; left: 20%; top: 20%; border: 13px solid #666761; background: transparent; }
.fallback-2::after { width: 75%; height: 8px; left: 12%; top: 49%; transform: rotate(45deg); }
.fallback-3::before { width: 64%; height: 10px; left: 18%; top: 30%; box-shadow: 0 86px 0 #666761; }
.fallback-3::after { width: 10px; height: 54%; left: 26%; top: 27%; box-shadow: 125px 0 0 #666761; }
.project-media img { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; object-fit: cover; }
.project-number { position: absolute; z-index: 3; top: 12px; left: 12px; background: rgba(255,255,255,.9); padding: 5px 8px; font-size: .65rem; font-weight: 700; }
.project-photo-count { position: absolute; z-index: 3; right: 12px; bottom: 12px; padding: 6px 9px; color: white; background: rgba(36,37,34,.88); font-size: .65rem; font-weight: 700; }
.image-placeholder { position: absolute; z-index: 1; bottom: 11px; right: 13px; font-size: .56rem; font-weight: 700; letter-spacing: .1em; }
.has-image .image-placeholder { display: none; }
.project-media:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; }
.project-media:hover img { transform: scale(1.015); }
.project-media img { transition: transform .2s ease; }
.project-body { padding: 23px; }
.project-type { margin: 0; color: var(--accent) !important; text-transform: uppercase; letter-spacing: .08em; font-size: .65rem !important; font-weight: 700; }
.project-body h3 { margin: 7px 0 10px; font-size: 1.15rem; }
.project-body > p { margin: 0; color: var(--muted); font-size: .86rem; line-height: 1.55; }
.tags { list-style: none; margin: 19px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tags li { border: 1px solid var(--line); padding: 4px 7px; font-size: .63rem; }
.projects-note { margin: 24px 0 0; color: var(--muted); font-size: .76rem; }

.profile-section { background: var(--soft); }
.profile-lead { max-width: 760px; }
.profile-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 80px; margin-top: 55px; }
.profile-story { font-size: .98rem; line-height: 1.7; }
.profile-story p { margin: 0 0 19px; }
.facts { border-top: 1px solid #b9b7af; }
.fact { display: flex; justify-content: space-between; gap: 20px; padding: 15px 0; border-bottom: 1px solid #c6c4bc; }
.fact span { color: var(--muted); font-size: .68rem; text-transform: uppercase; letter-spacing: .06em; }
.fact strong { font-size: .82rem; text-align: right; }

.training { background: var(--paper); }
.timeline { border-top: 1px solid var(--ink); }
.timeline-item { display: grid; grid-template-columns: 52px 1fr 1.2fr; gap: 30px; padding: 25px 0; border-bottom: 1px solid var(--line); }
.timeline-index, .timeline-period { color: var(--accent); font-size: .65rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.timeline-period { margin: 0; }
.timeline-item h3 { margin: 7px 0 0; font-size: 1.08rem; }
.timeline-item strong { font-size: .84rem; }
.timeline-item div:last-child p { margin: 7px 0 0; color: var(--muted); font-size: .82rem; }
.timeline-place { display: flex; width: fit-content; align-items: baseline; gap: 10px; color: inherit; text-decoration: none; }
.timeline-place span { color: var(--accent); font-size: .65rem; font-weight: 700; white-space: nowrap; }
.timeline-place:hover strong { text-decoration: underline; text-underline-offset: 3px; }

.technical { background: var(--soft); }
.technical-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.technical-item { padding: 23px; background: var(--surface); border: 1px solid var(--line); }
.technical-item > span { display: block; margin-bottom: 24px; color: var(--accent); font-size: .66rem; font-weight: 700; }
.technical-item h3 { margin-bottom: 10px; font-size: 1.05rem; }
.technical-item p { margin: 0; color: var(--muted); font-size: .84rem; line-height: 1.6; }
.study-resources { display: grid; grid-template-columns: .8fr 1.2fr; gap: 60px; margin-top: 42px; padding-top: 31px; border-top: 1px solid #c6c4bc; }
.study-resources h3 { margin-bottom: 7px; font-size: 1rem; }
.study-resources > div:first-child p { margin: 0; color: var(--muted); font-size: .8rem; }
.study-links { border-top: 1px solid #c6c4bc; }
.study-links a { display: flex; justify-content: space-between; gap: 18px; align-items: center; padding: 12px 3px; border-bottom: 1px solid #c6c4bc; text-decoration: none; }
.study-links a > span { display: flex; flex-direction: column; }
.study-links strong { font-size: .78rem; }
.study-links small { margin-top: 2px; color: var(--muted); font-size: .65rem; }
.study-links b { color: var(--accent); font-size: .8rem; }
.study-links a:hover strong { text-decoration: underline; text-underline-offset: 3px; }

.skills-band { overflow: hidden; padding: 21px; background: var(--surface); border-block: 1px solid var(--line); display: flex; justify-content: center; align-items: center; gap: 21px; white-space: nowrap; }
.skills-band p { margin: 0; color: var(--muted); font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; }
.skills-band span { color: #aaa89f; }

.contact { background: #30312e; color: white; display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.contact-copy > p:last-child { max-width: 460px; color: #c4c5be; font-size: .92rem; }
.contact-card { padding: 27px; border: 1px solid #5d5e59; border-radius: 2px; }
.contact-status { display: flex; align-items: center; gap: 9px; margin: 0 0 24px; color: #d2d3cc; font-size: .68rem; text-transform: uppercase; letter-spacing: .07em; }
.contact-links { border-top: 1px solid #5d5e59; }
.contact-links a { display: grid; grid-template-columns: 75px 1fr 18px; gap: 12px; align-items: center; padding: 17px 0; border-bottom: 1px solid #5d5e59; text-decoration: none; }
.contact-links a:hover strong { text-decoration: underline; }
.contact-links span { color: #aeb0a8; font-size: .67rem; text-transform: uppercase; }
.contact-links strong { font-size: .83rem; overflow-wrap: anywhere; }
.contact-links b { text-align: right; font-weight: 400; }
.contact-location { margin: 21px 0 0; color: #aeb0a8; font-size: .76rem; }

.gallery-dialog {
  width: min(920px, calc(100% - 32px));
  max-width: none;
  max-height: calc(100% - 32px);
  margin: auto;
  padding: 0;
  color: var(--ink);
  background: var(--surface);
  border: 0;
  border-radius: 3px;
  overflow: hidden;
}
.gallery-dialog::backdrop { background: rgba(20, 20, 18, .82); }
.gallery-shell { position: relative; }
.gallery-close {
  position: absolute;
  z-index: 5;
  top: 12px;
  right: 12px;
  width: 42px;
  height: 42px;
  padding: 0 0 4px;
  color: white;
  background: rgba(30,31,28,.88);
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 50%;
  font: 400 1.8rem/1 system-ui, sans-serif;
  cursor: pointer;
}
.gallery-stage { position: relative; display: grid; min-height: 58vh; place-items: center; background: #20211f; }
.gallery-stage img { display: block; max-width: 100%; width: auto; height: auto; max-height: 68vh; object-fit: contain; }
.gallery-arrow {
  position: absolute;
  z-index: 4;
  top: 50%;
  width: 46px;
  height: 58px;
  padding: 0 0 5px;
  transform: translateY(-50%);
  color: white;
  background: rgba(30,31,28,.78);
  border: 1px solid rgba(255,255,255,.25);
  font: 400 2.2rem/1 system-ui, sans-serif;
  cursor: pointer;
}
.gallery-previous { left: 12px; }
.gallery-next { right: 12px; }
.gallery-details { display: flex; justify-content: space-between; gap: 32px; padding: 22px 26px 24px; }
.gallery-details h2 { margin: 4px 0 7px; font-size: 1.35rem; }
.gallery-details div > p:last-child { max-width: 650px; margin: 0; color: var(--muted); font-size: .84rem; }
.gallery-type { margin: 0; color: var(--accent); font-size: .64rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.gallery-count { flex: 0 0 auto; margin: 4px 0 0; color: var(--muted); font-size: .78rem; font-weight: 700; }
body:has(.gallery-dialog[open]) { overflow: hidden; }

footer { padding: 22px max(24px, calc((100vw - var(--max)) / 2 + 24px)); background: #272825; color: #aaa9a3; display: flex; justify-content: space-between; gap: 20px; font-size: .63rem; text-transform: uppercase; letter-spacing: .06em; }
.reveal { opacity: 1; transform: none; }

@media (max-width: 800px) {
  nav a:not(.nav-cta) { display: none; }
  .hero { padding-top: 46px; padding-bottom: 50px; grid-template-columns: 1fr; gap: 38px; }
  .hero-visual { width: 100%; }
  .hero-interview { max-width: 100%; display: grid; grid-template-columns: 118px 1fr; margin: 0; }
  .hero-interview > img { height: 145px; }
  .hero-interview-copy { display: flex; flex-direction: column; justify-content: center; }
  .availability { grid-template-columns: 1fr; gap: 5px; }
  .availability p:last-child { text-align: left; }
  .section { padding-top: 66px; padding-bottom: 66px; }
  .section-heading { display: block; }
  .section-heading > p { margin-top: 15px; }
  .projects-grid { grid-template-columns: 1fr; }
  .project-card { display: grid; grid-template-columns: 42% 58%; }
  .project-media { height: 100%; min-height: 230px; }
  .profile-grid, .contact { grid-template-columns: 1fr; gap: 42px; }
  .profile-grid { margin-top: 38px; }
  .timeline-item { grid-template-columns: 36px 1fr; gap: 17px; }
  .timeline-item > div:last-child { grid-column: 2; }
  .technical-grid { grid-template-columns: 1fr; }
  .study-resources { grid-template-columns: 1fr; gap: 22px; }
  .skills-band { justify-content: flex-start; }
}

@media (max-width: 520px) {
  body { font-size: 16px; }
  .site-header { min-height: 62px; }
  .brand span:last-child { max-width: 180px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .nav-cta { padding: 7px 10px; }
  .hero { padding-top: 38px; }
  h1 { font-size: 2.55rem; }
  .hero-role { font-size: 1rem; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .hero { gap: 25px; }
  .hero-interview { grid-template-columns: 96px 1fr; }
  .hero-interview > img { height: 126px; }
  .availability { padding-top: 20px; padding-bottom: 20px; }
  .availability-title { font-size: .95rem; }
  .section { padding-top: 54px; padding-bottom: 54px; }
  .section-heading { margin-bottom: 28px; }
  .project-card { display: block; }
  .project-media { min-height: 0; height: auto; aspect-ratio: 4 / 3; }
  .project-body { padding: 20px; }
  .contact-card { padding: 20px; }
  .contact-links a { grid-template-columns: 66px 1fr 14px; }
  .gallery-dialog { width: 100%; max-height: 100%; height: 100%; border-radius: 0; }
  .gallery-shell { display: flex; height: 100%; flex-direction: column; }
  .gallery-stage { flex: 1 1 auto; min-height: 0; }
  .gallery-stage img { max-height: calc(100vh - 190px); }
  .gallery-arrow { width: 40px; height: 52px; }
  .gallery-previous { left: 6px; }
  .gallery-next { right: 6px; }
  .gallery-details { flex: 0 0 auto; gap: 18px; padding: 17px 20px 20px; }
  .gallery-details h2 { font-size: 1.08rem; }
  .gallery-details div > p:last-child { display: none; }
  footer { flex-direction: column; gap: 5px; }
}
