:root {
  --paper: #f1eee7;
  --ink: #1d211d;
  --muted: #6d7169;
  --line: rgba(29, 33, 29, 0.22);
  --sage: #9da48e;
  --olive: #676f52;
  --clay: #b55e45;
  --cream: #fbfaf6;
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "DM Sans", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 10% 20%, rgba(181, 94, 69, .05), transparent 28%),
    radial-gradient(circle at 85% 75%, rgba(103, 111, 82, .06), transparent 31%);
  pointer-events: none;
  content: "";
}

a { color: inherit; text-underline-offset: 0.22em; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin-top: 0; }

.site-header {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 84px;
  padding: 0 4vw;
  border-bottom: 1px solid var(--line);
}

.wordmark {
  font-family: var(--serif);
  font-size: 2rem;
  line-height: 1;
  text-decoration: none;
}

.wordmark span { color: var(--clay); }

nav { display: flex; gap: clamp(1rem, 3vw, 3rem); }
nav a, .menu-button { font-size: 0.78rem; letter-spacing: 0.1em; text-decoration: none; text-transform: uppercase; }
nav a:hover { text-decoration: underline; }
.menu-button { display: none; border: 0; background: transparent; color: inherit; font-family: inherit; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(330px, 0.94fr);
  min-height: calc(100svh - 84px);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8vw 7vw 8vw 4vw;
}

.eyebrow {
  margin-bottom: 1.8rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1, h2 { font-family: var(--serif); font-weight: 400; line-height: 0.94; letter-spacing: -0.035em; }
h1 { max-width: 780px; margin-bottom: 2.4rem; font-size: clamp(4.4rem, 10vw, 9.4rem); }
h1 em, h2 em, .footer-callout em { color: var(--olive); font-weight: 400; }

.hero-intro { max-width: 570px; margin-bottom: 2.5rem; font-size: clamp(1rem, 1.6vw, 1.28rem); }
.hero-links, .portfolio-links { display: flex; align-items: center; flex-wrap: wrap; gap: 1.5rem; }
.button { display: inline-block; padding: 0.9rem 1.25rem; text-decoration: none; }
.button-dark { background: var(--ink); color: var(--cream); }
.button-dark:hover { background: var(--clay); }
.text-link { font-size: 0.88rem; font-weight: 600; letter-spacing: 0.04em; text-decoration: none; }
.text-link:hover { text-decoration: underline; }

.hero-image-wrap { position: relative; min-height: 680px; margin: 0; overflow: hidden; background: var(--sage); }
.hero-image { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.78) contrast(0.96); }
.hero-image-wrap::after { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 65%, rgba(24, 28, 22, 0.44)); content: ""; }
.hero-image-wrap figcaption { position: absolute; right: 2rem; bottom: 1.4rem; z-index: 2; color: #fff; font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; }
.hero-number { position: absolute; top: 1.5rem; left: 1.5rem; z-index: 2; color: white; font-family: var(--serif); font-size: 2rem; }

.section-pad { padding: clamp(5rem, 10vw, 10rem) 4vw; }
.section-heading { display: grid; grid-template-columns: 1fr minmax(260px, 0.45fr); gap: 3rem; align-items: end; margin-bottom: clamp(3rem, 7vw, 6rem); }
.section-heading .eyebrow { margin-bottom: 1rem; }
.section-heading h2, .education-intro h2 { margin-bottom: 0; font-size: clamp(3.3rem, 7vw, 7rem); }
.section-heading > p { max-width: 440px; margin-bottom: 0.45rem; color: var(--muted); }

.portfolio { background: var(--cream); }
.gallery { columns: 3 280px; column-gap: 1.25rem; min-height: 180px; }
.gallery-item { position: relative; width: 100%; margin: 0 0 1.25rem; break-inside: avoid; cursor: zoom-in; overflow: hidden; background: #e5e1d7; }
.gallery-item img { width: 100%; height: auto; transition: transform 650ms cubic-bezier(.2,.7,.2,1), filter 300ms; }
.gallery-item:hover img { transform: scale(1.018); filter: saturate(1.07); }
.gallery-item figcaption { position: absolute; right: 0; bottom: 0; left: 0; padding: 3rem 1rem 0.8rem; background: linear-gradient(transparent, rgba(0,0,0,.62)); color: white; font-size: .75rem; opacity: 0; transition: opacity 250ms; }
.gallery-item:hover figcaption, .gallery-item:focus-within figcaption { opacity: 1; }
.gallery-button { width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.gallery-status { padding: 4rem 0; color: var(--muted); column-span: all; text-align: center; }
.portfolio-links { justify-content: center; margin-top: 3rem; font-size: 0.82rem; letter-spacing: .04em; }

.about { display: grid; grid-template-columns: .45fr 1.55fr; gap: 4rem; background: var(--clay); color: #fffaf2; }
.display-mark { margin: 4rem 0 0; color: rgba(255,255,255,.2); font-family: var(--serif); font-size: clamp(6rem, 14vw, 14rem); line-height: .7; }
.about-copy h2 { max-width: 1000px; margin-bottom: 4.5rem; font-size: clamp(3.2rem, 7vw, 7.4rem); }
.about-copy h2 em { color: #e7d7aa; }
.about-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; }
.about-columns p { margin: 0; font-size: clamp(1rem, 1.5vw, 1.2rem); }

.experience { padding-bottom: 0; }
.feature-role { position: relative; display: grid; grid-template-columns: .4fr 1fr; gap: 3rem; padding: clamp(3rem, 6vw, 6rem); overflow: hidden; border: 1px solid var(--ink); }
.feature-role + .feature-role { border-top: 0; }
.role-meta { font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; }
.role-meta p { margin-bottom: .2rem; }
.role-main { position: relative; z-index: 2; max-width: 840px; }
.role-org { margin-bottom: .6rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.role-main h3 { margin-bottom: 1.6rem; font-family: var(--serif); font-size: clamp(2.8rem, 5vw, 5.4rem); font-weight: 400; line-height: 1; }
.role-main > p { max-width: 720px; font-size: 1.08rem; }
.role-main ul { max-width: 760px; margin: 2rem 0 0; padding-left: 1.2rem; }
.role-main li { margin-bottom: .65rem; }
.role-index { position: absolute; right: 2rem; bottom: -2rem; color: rgba(29,33,29,.08); font-family: var(--serif); font-size: clamp(8rem, 20vw, 20rem); line-height: .7; }
.nga { background: #cad0bb; }
.deloitte { background: #ded8c8; }

.career-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.career-grid article { min-height: 300px; padding: 2rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.career-grid article:nth-child(3n) { border-right: 0; }
.career-grid .date { color: var(--muted); font-size: .75rem; letter-spacing: .08em; }
.career-grid h3 { margin: 3rem 0 .25rem; font-family: var(--serif); font-size: 2rem; font-weight: 400; line-height: 1.05; }
.career-grid .org { font-size: .76rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.career-grid article > p:last-child { color: var(--muted); font-size: .9rem; }

.education { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(3rem, 8vw, 9rem); background: var(--ink); color: var(--cream); }
.education-intro { position: sticky; top: 3rem; align-self: start; }
.education-list article { display: grid; grid-template-columns: 130px 1fr; gap: 1.5rem; padding: 2.5rem 0; border-top: 1px solid rgba(255,255,255,.25); }
.education-list article:last-child { border-bottom: 1px solid rgba(255,255,255,.25); }
.years { color: #abb1a4; font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; }
.education-list h3 { margin-bottom: .4rem; font-family: var(--serif); font-size: clamp(2rem, 4vw, 3.5rem); font-weight: 400; line-height: 1; }
.education-list p { margin-bottom: .55rem; }
.education-list .detail { color: #bdc1b7; font-size: .9rem; }

.film { display: grid; grid-template-columns: .6fr 1.4fr; gap: clamp(2rem, 6vw, 7rem); align-items: center; background: var(--sage); }
.film-copy h2 { margin-bottom: 1.5rem; font-size: clamp(3.5rem, 6vw, 6rem); }
.video-frame { position: relative; aspect-ratio: 16 / 9; box-shadow: 1.2rem 1.2rem 0 rgba(29,33,29,.16); }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

footer { display: grid; grid-template-columns: 1fr auto; gap: 3rem; padding: clamp(4rem, 8vw, 8rem) 4vw 2rem; background: #e5dfd3; }
.footer-callout { max-width: 900px; margin-bottom: 1rem; font-family: var(--serif); font-size: clamp(3.5rem, 8vw, 8rem); line-height: .9; }
.footer-links { display: flex; flex-direction: column; align-items: flex-end; gap: .7rem; }
.copyright { grid-column: 1 / -1; margin: 4rem 0 0; padding-top: 1.5rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .75rem; }

.lightbox { width: min(94vw, 1200px); max-width: none; padding: 0; border: 0; background: transparent; color: white; }
.lightbox::backdrop { background: rgba(15, 16, 13, .94); backdrop-filter: blur(5px); }
.lightbox img { width: auto; max-width: 100%; max-height: 82vh; margin: auto; object-fit: contain; }
.lightbox p { margin: .8rem 0 0; text-align: center; }
.lightbox-close { display: block; margin: 0 0 .8rem auto; border: 0; background: transparent; color: white; font: inherit; cursor: pointer; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero-copy { min-height: 70svh; padding: 7rem 5vw; }
  .hero-image-wrap { min-height: 72svh; }
  .section-heading, .about, .education, .film { grid-template-columns: 1fr; }
  .about-kicker { display: flex; justify-content: space-between; }
  .display-mark { margin: 0; font-size: 7rem; }
  .education-intro { position: static; }
  .career-grid { grid-template-columns: repeat(2, 1fr); }
  .career-grid article:nth-child(3n) { border-right: 1px solid var(--line); }
  .career-grid article:nth-child(2n) { border-right: 0; }
}

@media (max-width: 620px) {
  .site-header { min-height: 70px; padding-inline: 5vw; }
  .menu-button { display: block; }
  nav { position: absolute; top: 70px; right: 0; left: 0; display: none; flex-direction: column; gap: 0; padding: 1rem 5vw; border-bottom: 1px solid var(--line); background: var(--paper); }
  nav.open { display: flex; }
  nav a { padding: .8rem 0; }
  .hero { min-height: auto; }
  .hero-copy { min-height: calc(100svh - 70px); padding-inline: 5vw; }
  h1 { font-size: clamp(4rem, 22vw, 6rem); }
  .hero-image-wrap { min-height: 110vw; }
  .section-pad { padding-inline: 5vw; }
  .section-heading { gap: 1.5rem; }
  .about-columns, .feature-role, .education-list article { grid-template-columns: 1fr; }
  .feature-role { padding-inline: 5vw; }
  .career-grid { grid-template-columns: 1fr; }
  .career-grid article, .career-grid article:nth-child(3n) { min-height: 250px; border-right: 0; }
  .career-grid h3 { margin-top: 2rem; }
  .education-list article { gap: .4rem; }
  footer { grid-template-columns: 1fr; }
  .footer-links { align-items: flex-start; }
}

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