@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600&family=Inter:wght@400;500;600&display=swap');

:root {
  --ink: #102a31;
  --ink-deep: #081d25;
  --papyrus: #f3ead5;
  --sand: #d7c298;
  --gold: #cf9f3f;
  --gold-light: #e8c778;
  --red: #9e3d2e;
  --turquoise: #1c6c72;
  --white: #fffaf0;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: Inter, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--papyrus);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.7;
  overflow-x: hidden;
}
a { color: inherit; }
img { display: block; width: 100%; height: auto; }
.skip-link { position: fixed; top: -5rem; left: 1rem; z-index: 50; padding: .8rem 1rem; background: var(--gold); color: var(--ink-deep); }
.skip-link:focus { top: 1rem; }

.site-header {
  position: absolute;
  z-index: 10;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.35rem clamp(1.2rem, 4vw, 4.5rem);
  color: var(--white);
  border-bottom: 1px solid rgba(232, 199, 120, .35);
}
.wordmark { display: flex; align-items: center; gap: .7rem; font-family: var(--serif); font-size: 1.4rem; text-decoration: none; }
.wordmark-mark { color: var(--gold-light); font-size: 1.65rem; }
nav { display: flex; gap: clamp(1rem, 3vw, 2.8rem); }
nav a { color: var(--white); font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-decoration: none; text-transform: uppercase; }
nav a:hover, nav a:focus-visible { color: var(--gold-light); }

.hero {
  position: relative;
  min-height: 880px;
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(380px, .8fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 6rem);
  padding: 8.5rem clamp(1.5rem, 7vw, 8rem) 5rem;
  overflow: hidden;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(8, 29, 37, .98) 0 46%, rgba(8, 29, 37, .84) 69%, rgba(8, 29, 37, .96) 100%),
    repeating-linear-gradient(0deg, transparent 0 47px, rgba(215,194,152,.05) 48px),
    var(--ink-deep);
}
.hero::before { content: ""; position: absolute; inset: 6rem auto 2rem 4vw; width: 1px; background: linear-gradient(transparent, var(--gold), transparent); }
.hero-copy { position: relative; z-index: 2; max-width: 650px; }
.eyebrow { margin: 0 0 1rem; color: var(--gold-light); font-size: .78rem; font-weight: 600; letter-spacing: .28em; text-transform: uppercase; }
h1, h2 { margin: 0; font-family: var(--serif); font-weight: 500; line-height: .9; }
h1 { font-size: clamp(5rem, 10vw, 10rem); letter-spacing: -.055em; }
.lead { max-width: 550px; margin: 2rem 0; color: #e7dfd0; font-family: var(--serif); font-size: clamp(1.45rem, 2.4vw, 2rem); line-height: 1.35; }
.text-link { display: inline-flex; gap: .7rem; align-items: center; color: var(--gold-light); font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-decoration: none; text-transform: uppercase; border-bottom: 1px solid currentColor; }
.text-link:hover span { transform: translateY(3px); }
.text-link span { transition: transform .2s ease; }
.hero-portrait { position: relative; z-index: 2; max-width: 560px; margin: 0 auto; border: 1px solid rgba(232, 199, 120, .55); padding: .7rem; }
.hero-portrait img { aspect-ratio: 2 / 2.72; object-fit: cover; object-position: center 20%; filter: sepia(.1) saturate(.82); }
.hero-portrait figcaption { position: absolute; left: -5rem; bottom: 2.5rem; width: 230px; padding: 1rem 1.2rem; color: var(--ink-deep); background: var(--gold-light); font-family: var(--serif); font-size: 1.1rem; line-height: 1.2; }
.hero-glyphs { position: absolute; right: 1rem; bottom: -1.3rem; color: rgba(232, 199, 120, .1); font-size: clamp(4rem, 9vw, 9rem); white-space: nowrap; }

.section { padding: clamp(5rem, 10vw, 9rem) clamp(1.5rem, 7vw, 8rem); }
.section-kicker { display: flex; align-items: center; gap: 1rem; margin-bottom: 4rem; color: var(--red); font-size: .75rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; }
.section-kicker::after { content: ""; flex: 1; max-width: 110px; height: 1px; background: currentColor; opacity: .45; }
.section-kicker span { font-family: var(--serif); font-size: 1.25rem; }
.section-kicker.light { color: var(--gold-light); }
.portrait-grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(420px, 1fr); gap: clamp(3rem, 8vw, 9rem); }
.portrait h2, .career h2 { font-size: clamp(3.7rem, 6.7vw, 7.2rem); letter-spacing: -.04em; }
.portrait-text { max-width: 680px; }
.portrait-text p { max-width: 610px; }
.portrait-text .intro { margin: 2.2rem 0 1.4rem; font-family: var(--serif); font-size: 1.5rem; line-height: 1.45; }
blockquote { margin: 3rem 0 0; padding: 1.2rem 0 1.2rem 1.8rem; color: var(--red); border-left: 3px solid var(--gold); font-family: var(--serif); font-size: 1.55rem; line-height: 1.3; }
blockquote cite { display: block; margin-top: .8rem; color: var(--ink); font-family: var(--sans); font-size: .7rem; font-style: normal; letter-spacing: .06em; text-transform: uppercase; }
.portrait-pair { position: relative; min-height: 700px; }
.photo { margin: 0; padding: .55rem; background: var(--white); box-shadow: 0 18px 45px rgba(16,42,49,.15); }
.photo-tall { position: absolute; top: 0; right: 0; width: 72%; transform: rotate(1.5deg); }
.photo-tall img { aspect-ratio: 1 / 1.13; object-fit: cover; object-position: center 15%; }
.photo-small { position: absolute; left: 0; bottom: 0; width: 65%; transform: rotate(-2deg); }
.photo-small img { aspect-ratio: 1.42 / 1; object-fit: cover; }

.egypt { color: var(--white); background: var(--ink); }
.egypt-heading { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(280px, .7fr); align-items: end; gap: 4rem; margin-bottom: 5rem; }
.egypt h2, .legacy h2 { font-size: clamp(4rem, 7vw, 7.8rem); letter-spacing: -.045em; }
.egypt-heading p { margin: 0; color: #ccd7d3; }
.travel-list { border-top: 1px solid rgba(232,199,120,.35); }
.travel-card { display: grid; grid-template-columns: 120px 1fr 115px; gap: clamp(1rem, 4vw, 4rem); padding: 2.5rem 0; border-bottom: 1px solid rgba(232,199,120,.25); }
.travel-year { color: var(--gold-light); font-family: var(--serif); font-size: 2.5rem; line-height: 1; }
.travel-copy h3 { margin: 0; font-family: var(--serif); font-size: clamp(1.8rem, 3vw, 2.8rem); font-weight: 500; line-height: 1.1; }
.travel-copy p { max-width: 850px; margin: .8rem 0; color: #c6d1cf; }
.travel-copy a { color: var(--gold-light); font-size: .76rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; text-underline-offset: .35em; }
.travel-label { margin: 0 0 .3rem !important; color: var(--gold-light) !important; font-size: .68rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.photo-count { align-self: start; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 105px; height: 105px; color: var(--ink-deep); background: var(--gold-light); text-decoration: none; border-radius: 50%; transition: transform .2s ease, background .2s ease; }
.photo-count:hover { transform: rotate(-5deg) scale(1.05); background: var(--white); }
.photo-count strong { font-family: var(--serif); font-size: 2.15rem; line-height: .9; }
.photo-count span { font-size: .65rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.photo-count.muted { color: #8a9592; background: transparent; border: 1px dashed #697a78; }
.unpublished { opacity: .7; }
.archive-note { margin: 2.2rem 0 0; color: #c6d1cf; text-align: right; }
.archive-note a { color: var(--gold-light); }

.career-layout { display: grid; grid-template-columns: minmax(310px, .8fr) minmax(420px, 1fr); gap: clamp(3rem, 9vw, 10rem); }
.career-intro p { max-width: 540px; margin: 2rem 0; font-family: var(--serif); font-size: 1.4rem; line-height: 1.45; }
.text-link.dark { color: var(--red); }
.timeline article { display: grid; grid-template-columns: 130px 1fr; gap: 2rem; padding: 0 0 2.2rem 1.5rem; border-left: 1px solid var(--sand); }
.timeline article::before { content: ""; width: 9px; height: 9px; margin: .35rem 0 0 -1.82rem; background: var(--red); border-radius: 50%; grid-column: 1; grid-row: 1; }
.timeline time { grid-column: 1; grid-row: 1; color: var(--red); font-size: .76rem; font-weight: 600; letter-spacing: .06em; }
.timeline article div { grid-column: 2; grid-row: 1; }
.timeline h3 { margin: -.3rem 0 .4rem; font-family: var(--serif); font-size: 1.6rem; font-weight: 600; line-height: 1.15; }
.timeline p { margin: 0; color: #40565b; }
.skills { margin-top: 6rem; padding-top: 2rem; border-top: 1px solid var(--sand); }
.skills h3 { margin: 0 0 1.5rem; color: var(--red); font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; }
.skills ul { display: grid; grid-template-columns: repeat(3, 1fr); gap: .7rem 2rem; margin: 0; padding: 0; list-style: none; }
.skills li { padding: .65rem 0; font-family: var(--serif); font-size: 1.35rem; border-bottom: 1px solid var(--sand); }

.legacy { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(3rem, 7vw, 7rem); align-items: center; color: var(--white); background: var(--red); }
.legacy-photo { padding: .7rem; border: 1px solid rgba(255,250,240,.45); }
.legacy-photo img { aspect-ratio: 1.12 / 1; object-fit: cover; object-position: center 25%; }
.legacy-copy p { max-width: 620px; color: #f0dcd2; font-family: var(--serif); font-size: 1.35rem; line-height: 1.45; }
.legacy-links { margin-top: 2.5rem; border-top: 1px solid rgba(255,250,240,.3); }
.legacy-links a { display: flex; justify-content: space-between; padding: 1.1rem 0; color: var(--white); text-decoration: none; border-bottom: 1px solid rgba(255,250,240,.3); }
.legacy-links a:hover { color: var(--gold-light); }

.notice { display: grid; grid-template-columns: 130px 1fr 230px; align-items: center; gap: clamp(2rem, 5vw, 5rem); background: #e6d8ba; }
.notice-symbol { color: var(--red); font-family: var(--serif); font-size: 7rem; text-align: center; }
.notice h2 { font-size: clamp(3rem, 5vw, 5rem); }
.notice-placeholder { max-width: 620px; font-family: var(--serif); font-size: 1.45rem; font-style: italic; }
.notice figure { margin: 0; padding: .45rem; background: var(--white); transform: rotate(1deg); }
.notice figure img { aspect-ratio: 1 / 1.08; object-fit: cover; object-position: center 12%; filter: sepia(.13) saturate(.8); }

footer { display: grid; grid-template-columns: 1fr 2fr auto; gap: 2rem; align-items: center; padding: 2rem clamp(1.5rem, 7vw, 8rem); color: #b9c7c5; background: var(--ink-deep); font-size: .72rem; letter-spacing: .04em; }
footer p { margin: 0; }
footer a { color: var(--gold-light); text-decoration: none; }

@media (max-width: 980px) {
  .hero { min-height: auto; grid-template-columns: 1fr 380px; padding-top: 9rem; }
  .hero-portrait figcaption { left: -2rem; }
  .portrait-grid, .egypt-heading, .career-layout { grid-template-columns: 1fr; }
  .portrait-pair { width: min(680px, 100%); margin: 0 auto; }
  .skills ul { grid-template-columns: repeat(2, 1fr); }
  .legacy { grid-template-columns: 1fr; }
  .legacy-photo { max-width: 720px; }
}

@media (max-width: 720px) {
  .site-header { position: relative; color: var(--white); background: var(--ink-deep); }
  nav { display: none; }
  .hero { grid-template-columns: 1fr; padding-top: 4rem; }
  h1 { font-size: clamp(4.5rem, 24vw, 7.5rem); }
  .hero-portrait { width: 86%; margin-top: 1rem; }
  .hero-portrait figcaption { left: -1.5rem; bottom: 1.5rem; width: 200px; }
  .section { padding-inline: 1.25rem; }
  .section-kicker { margin-bottom: 2.5rem; }
  .portrait-pair { min-height: 510px; }
  .travel-card { grid-template-columns: 1fr 82px; gap: 1rem; }
  .travel-year { grid-column: 1; font-size: 2rem; }
  .travel-copy { grid-column: 1 / -1; }
  .photo-count { grid-column: 2; grid-row: 1; width: 78px; height: 78px; }
  .photo-count strong { font-size: 1.65rem; }
  .timeline article { grid-template-columns: 1fr; gap: .65rem; }
  .timeline time, .timeline article div { grid-column: 1; }
  .timeline article div { grid-row: 2; }
  .skills ul { grid-template-columns: 1fr; }
  .notice { grid-template-columns: 80px 1fr; }
  .notice-symbol { font-size: 5rem; }
  .notice figure { grid-column: 1 / -1; width: min(260px, 70%); margin: 1rem auto 0; }
  footer { grid-template-columns: 1fr; gap: .5rem; }
}

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