:root {
  color-scheme: light;
  --paper: #f6f1e9;
  --paper-2: #efe7da;
  --sage: #dfe0d2;
  --ink: #221d18;
  --ink-soft: #3a332b;
  --muted: #6f665b;
  --rust: #b15a3c;
  --rust-deep: #8f4329;
  --green: #1f4a3f;
  --green-deep: #143630;
  --line: rgba(34, 29, 24, 0.14);
  --white: #ffffff;
  --shadow: 0 24px 60px -32px rgba(34, 29, 24, 0.45);
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-family: var(--sans);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

::selection { background: var(--rust); color: #fff; }

/* ---------- Typography ---------- */
h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0;
}

h1 {
  font-size: clamp(50px, 6.4vw, 92px);
  line-height: 0.94;
  font-weight: 600;
}

h2 {
  font-size: clamp(30px, 4.4vw, 56px);
  line-height: 1.04;
}

h3 {
  font-size: clamp(21px, 2.4vw, 27px);
  line-height: 1.15;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--rust);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* ---------- Topbar ---------- */
.topbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px clamp(20px, 5vw, 72px);
  transition: background 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
}

.topbar.is-scrolled {
  background: rgba(246, 241, 233, 0.82);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  box-shadow: 0 1px 0 var(--line);
  padding-top: 12px;
  padding-bottom: 12px;
}

.mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 600;
  transition: background 0.25s ease, color 0.25s ease;
}
.mark:hover { background: var(--ink); color: var(--paper); }

.nav {
  display: flex;
  gap: clamp(18px, 3vw, 38px);
  font-size: 14px;
  font-weight: 600;
}
.nav a {
  position: relative;
  padding: 4px 0;
  color: var(--ink-soft);
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: var(--rust);
  transition: width 0.28s ease;
}
.nav a:hover { color: var(--ink); }
.nav a:hover::after { width: 100%; }

.topbar__cta {
  padding: 10px 18px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  transition: background 0.25s ease, color 0.25s ease;
}
.topbar__cta:hover { background: var(--rust); border-color: var(--rust); color: #fff; }

/* ---------- Hero ---------- */
.hero {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  align-items: stretch;
  min-height: min(860px, 100svh);
}

.hero__text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 118px clamp(24px, 5vw, 84px) 72px clamp(24px, 6vw, 96px);
}

.hero h1 {
  margin: 6px 0 22px;
}

.hero__role {
  max-width: 30ch;
  margin: 0 0 22px;
  font-family: var(--serif);
  font-size: clamp(19px, 2vw, 24px);
  font-weight: 500;
  line-height: 1.3;
  color: var(--green);
}

.hero__lead {
  max-width: 46ch;
  margin: 0 0 36px;
  font-size: clamp(17px, 1.5vw, 19px);
  line-height: 1.62;
  color: var(--muted);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero__media {
  position: relative;
  background: var(--sage);
  overflow: hidden;
}
.hero__media::before {
  /* soften the column seam: fade photo's left edge into the page background */
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: clamp(70px, 14%, 180px);
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(90deg, var(--paper) 0%, rgba(246, 241, 233, 0) 100%);
}
.hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 54% 6%;
}

/* ---------- Buttons ---------- */
.button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 50px;
  padding: 13px 24px;
  border-radius: 999px;
  border: 1.5px solid var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  transition: transform 0.2s ease, background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.button:hover { transform: translateY(-2px); }
.button--primary {
  background: var(--ink);
  color: var(--paper);
}
.button--primary:hover { background: var(--rust); border-color: var(--rust); }
.button--ghost { background: transparent; color: var(--ink); }
.button--ghost:hover { background: var(--ink); color: var(--paper); }

/* phone button — shown in hero on all sizes */
.button--phone { display: inline-flex; }

/* ---------- Signal strip ---------- */
.signal {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--green-deep);
  color: var(--paper);
}
.signal p {
  display: flex;
  align-items: baseline;
  gap: 14px;
  min-height: 92px;
  margin: 0;
  padding: 28px clamp(18px, 3vw, 44px);
  border-right: 1px solid rgba(246, 241, 233, 0.16);
  font-size: clamp(15px, 1.4vw, 18px);
  font-weight: 500;
}
.signal p:last-child { border-right: 0; }
.signal span {
  font-family: var(--serif);
  font-size: 13px;
  color: #d9a892;
}

/* ---------- Sections ---------- */
.section {
  padding: clamp(78px, 10vw, 148px) clamp(24px, 6vw, 96px);
}

.section--split {
  display: grid;
  grid-template-columns: minmax(260px, 0.86fr) minmax(280px, 1fr);
  gap: clamp(40px, 7vw, 104px);
  align-items: start;
}

.copy {
  color: var(--muted);
  font-size: clamp(18px, 1.7vw, 22px);
  line-height: 1.62;
}
.copy p { margin: 0 0 22px; }
.copy p:last-child { margin-bottom: 0; }

/* ---------- Work cards ---------- */
.work-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border-block: 1px solid var(--line);
}
.work-card {
  display: flex;
  flex-direction: column;
  min-height: 320px;
  padding: clamp(30px, 3.4vw, 48px);
  background: var(--paper);
  transition: background 0.3s ease;
}
.work-card:hover { background: var(--paper-2); }
.work-card__num {
  display: block;
  margin-bottom: 22px;
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 600;
  color: var(--rust);
}
.work-card h3 { margin: 0 0 14px; }
.work-card p { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.58; }

/* ---------- Portrait band ---------- */
.portrait-band {
  display: grid;
  grid-template-columns: minmax(280px, 0.78fr) minmax(280px, 1fr);
  background: var(--sage);
}
.portrait-band__media { overflow: hidden; min-height: 560px; }
.portrait-band__media img {
  width: 100%;
  height: 100%;
  min-height: 560px;
  object-fit: cover;
  object-position: 50% 16%;
}
.portrait-band__text {
  align-self: center;
  padding: clamp(48px, 7vw, 110px);
}
.portrait-band__text h2 { margin-bottom: 26px; color: var(--green-deep); }
.portrait-band__text p {
  max-width: 56ch;
  margin: 0;
  font-size: clamp(18px, 1.7vw, 23px);
  line-height: 1.55;
  color: var(--ink-soft);
}
.portrait-band__cite {
  margin-top: 22px !important;
  font-size: 14px !important;
  line-height: 1.5;
  color: var(--muted);
}
.portrait-band__cite a {
  color: var(--rust-deep);
  font-weight: 600;
  border-bottom: 1px solid rgba(143, 67, 41, 0.35);
  white-space: nowrap;
}
.portrait-band__cite a:hover { border-bottom-color: var(--rust-deep); }

/* ---------- Experience / timeline ---------- */
.experience { display: grid; gap: clamp(40px, 5vw, 64px); }
.experience__intro { max-width: 720px; }
.experience__intro h2 { margin: 4px 0 18px; }
.experience__sub { margin: 0; color: var(--muted); font-size: clamp(17px, 1.5vw, 20px); line-height: 1.55; }

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}
.timeline__item {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: clamp(20px, 4vw, 60px);
  padding: clamp(28px, 3.4vw, 44px) 0;
  border-bottom: 1px solid var(--line);
}
.timeline__meta {
  display: flex;
  align-items: center;
  gap: 12px;
}
.timeline__dot {
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--rust);
  box-shadow: 0 0 0 4px rgba(177, 90, 60, 0.16);
  flex: none;
}
.timeline__when {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.timeline__body h3 { margin: 0 0 6px; }
.timeline__role { margin: 0 0 12px; font-weight: 600; color: var(--rust-deep); font-size: 15px; }
.timeline__body > p:last-child { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.58; max-width: 62ch; }

/* ---------- Talks ---------- */
.talks { background: var(--green-deep); color: var(--paper); }
.talks .eyebrow { color: #e0a98f; }
.talks__head { max-width: 760px; margin-bottom: clamp(40px, 5vw, 60px); }
.talks__head h2 { margin: 4px 0 18px; }
.talks__sub { margin: 0; color: rgba(246, 241, 233, 0.74); font-size: clamp(17px, 1.5vw, 20px); line-height: 1.55; }

.talks__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2vw, 24px);
}
.talk-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: clamp(26px, 2.6vw, 36px);
  border: 1px solid rgba(246, 241, 233, 0.18);
  border-radius: 14px;
  background: rgba(246, 241, 233, 0.04);
  transition: background 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
}
.talk-card:hover {
  background: rgba(246, 241, 233, 0.08);
  border-color: rgba(224, 169, 143, 0.5);
  transform: translateY(-4px);
}
.talk-card h3 { font-size: 20px; line-height: 1.22; color: var(--paper); }
.talk-card p { margin: 0; color: rgba(246, 241, 233, 0.72); font-size: 15.5px; line-height: 1.55; }
.talk-card__link {
  margin-top: auto;
  align-self: flex-start;
  font-size: 14px;
  font-weight: 600;
  color: #e6b39a;
  border-bottom: 1px solid rgba(230, 179, 154, 0.4);
  white-space: nowrap;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.talk-card__link:hover { color: #f4d3c0; border-bottom-color: #f4d3c0; }

.award {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px 22px;
  margin-top: clamp(34px, 4vw, 52px);
  padding-top: clamp(28px, 3vw, 40px);
  border-top: 1px solid rgba(246, 241, 233, 0.18);
}
.award__label {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #e0a98f;
}
.award__text { margin: 0; font-size: clamp(18px, 1.8vw, 23px); line-height: 1.45; color: var(--paper); max-width: 60ch; font-family: var(--serif); }
.award__text strong { color: #f0c4ad; }
.award__link {
  flex: none;
  align-self: center;
  font-size: 14px;
  font-weight: 600;
  color: #e6b39a;
  border-bottom: 1px solid rgba(230, 179, 154, 0.4);
  white-space: nowrap;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.award__link:hover { color: #f4d3c0; border-bottom-color: #f4d3c0; }

/* ---------- Education ---------- */
.edu__list { display: grid; gap: 1px; background: var(--line); border-block: 1px solid var(--line); }
.edu__item { background: var(--paper); padding: clamp(24px, 3vw, 36px) 0; }
.edu__item:first-child { padding-top: 0; }
.education .edu__list { background: transparent; border: 0; }
.edu__item { border-bottom: 1px solid var(--line); }
.edu__item:last-child { border-bottom: 0; }
.edu__item h3 { margin: 0 0 8px; }
.edu__item p { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.55; }

/* ---------- Contact ---------- */
.contact {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(280px, 0.9fr);
  gap: clamp(34px, 6vw, 90px);
  align-items: center;
  background: var(--ink);
  color: var(--paper);
}
.contact .eyebrow { color: #e0a98f; }
.contact__head h2 { margin: 4px 0 16px; }
.contact__sub { margin: 0; color: rgba(246, 241, 233, 0.72); font-size: clamp(17px, 1.5vw, 20px); line-height: 1.55; max-width: 44ch; }
.contact__links { display: grid; gap: 14px; }
.contact__link {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 26px;
  border: 1px solid rgba(246, 241, 233, 0.22);
  border-radius: 14px;
  transition: background 0.25s ease, transform 0.2s ease, border-color 0.25s ease;
}
.contact__link:hover {
  background: rgba(246, 241, 233, 0.06);
  border-color: var(--rust);
  transform: translateY(-3px);
}
.contact__link-label { font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: #e0a98f; font-weight: 700; }
.contact__link-value { font-family: var(--serif); font-size: clamp(18px, 1.8vw, 22px); }

/* ---------- Footer ---------- */
.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 28px clamp(24px, 6vw, 96px);
  background: var(--green-deep);
  color: rgba(246, 241, 233, 0.7);
  font-size: 14px;
}
.footer a:hover { color: var(--paper); }

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.is-visible { opacity: 1; transform: none; }
.work-card.reveal:nth-child(2) { transition-delay: 0.08s; }
.work-card.reveal:nth-child(3) { transition-delay: 0.16s; }
.talk-card.reveal:nth-child(2) { transition-delay: 0.08s; }
.talk-card.reveal:nth-child(3) { transition-delay: 0.16s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero__text { order: 2; padding: 36px clamp(24px, 6vw, 64px) 56px; }
  .hero__media { order: 1; aspect-ratio: 4 / 3.4; min-height: 52svh; }
  .hero__image { object-position: 56% 10%; }
  .hero h1 { font-size: clamp(48px, 13vw, 84px); }
  .button--phone { display: inline-flex; }

  .section--split { grid-template-columns: 1fr; gap: 28px; }
  .work-grid { grid-template-columns: 1fr; }
  .work-card { min-height: auto; }
  .work-card h3 { margin-top: 40px; }
  .portrait-band { grid-template-columns: 1fr; }
  .portrait-band__media, .portrait-band__media img { min-height: 0; }
  .portrait-band__media img { aspect-ratio: 4 / 5; }
  .talks__grid { grid-template-columns: 1fr; }
  .contact { grid-template-columns: 1fr; align-items: start; }
}

@media (max-width: 760px) {
  .nav { display: none; }
  .topbar { padding: 14px 20px; }
  .hero__media { aspect-ratio: auto; height: 42svh; min-height: 0; }
  .hero h1 { margin-bottom: 16px; }
  .hero__role { margin-bottom: 16px; }
  .hero__lead { margin-bottom: 24px; }
  .signal { grid-template-columns: 1fr 1fr; }
  .signal p { border-right: 1px solid rgba(246,241,233,0.16); min-height: 78px; }
  .signal p:nth-child(2n) { border-right: 0; }
  .signal p:nth-child(1), .signal p:nth-child(2) { border-bottom: 1px solid rgba(246,241,233,0.16); }
  .timeline__item { grid-template-columns: 1fr; gap: 14px; }
}

@media (max-width: 460px) {
  body { font-size: 16px; }
  .topbar__cta { display: none; }
  .hero__media { height: 34svh; }
  .hero__text { padding-top: 26px; }
  .hero__lead { margin-bottom: 18px; }
  .hero__actions .button { flex: 1; justify-content: center; }
  .hero__actions .button--phone { flex-basis: 100%; }
  .signal { grid-template-columns: 1fr; }
  .signal p { border-right: 0; border-bottom: 1px solid rgba(246,241,233,0.16); }
  .contact__link { flex-direction: column; gap: 6px; }
}
