:root {
  --forest: #113532;
  --forest-2: #1a4945;
  --gold: #b08d57;
  --ink: #17211f;
  --muted: #66716e;
  --paper: #fbfaf7;
  --white: #ffffff;
  --line: #d9ddd8;
  --tint: #f0f3ef;
  --max: 1120px;
  --shadow: 0 20px 50px rgba(17, 53, 50, .12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  line-height: 1.6;
}
a { color: inherit; }
.wrap { width: min(calc(100% - 40px), var(--max)); margin: 0 auto; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 10px;
}
.skip-link:focus {
  left: 10px;
  z-index: 1000;
  background: var(--white);
  padding: 8px 12px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 250, 247, .94);
  border-bottom: 1px solid rgba(17, 53, 50, .12);
  backdrop-filter: blur(12px);
}
.nav-wrap {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  letter-spacing: .01em;
}
.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: var(--forest);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: .82rem;
}
.site-nav { display: flex; gap: 28px; }
.site-nav a {
  text-decoration: none;
  font-size: .94rem;
  font-weight: 650;
}
.site-nav a:hover, .site-nav a:focus { color: var(--forest-2); }
.menu-button {
  display: none;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 999px;
  padding: 8px 14px;
  font: inherit;
}

.hero {
  min-height: 72vh;
  display: grid;
  align-items: center;
  padding: 88px 0;
  background:
    radial-gradient(circle at 86% 18%, rgba(176,141,87,.18), transparent 28rem),
    linear-gradient(145deg, var(--paper), #f4f1e9);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 64px;
  align-items: center;
}
.portrait-block {
  min-width: 0;
  display: grid;
  grid-template-columns: 180px minmax(0, 460px);
  gap: 20px 32px;
  align-items: center;
}
.portrait-focus { grid-column: 1 / -1; }
@font-face {
  font-family: Caveat;
  src: url("fonts/Caveat.ttf") format("truetype");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
.portrait-intro h2 {
  font-family: Caveat, cursive;
  font-size: 28px;
  font-style: normal;
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: 0;
  margin: 0 0 12px;
}
.professional-portrait {
  display: block;
  width: 180px;
  max-width: 100%;
  height: auto;
  aspect-ratio: 1;
  border-radius: 4px;
  margin-bottom: 0;
}
.portrait-block .card-kicker { display: block; }
.portrait-block strong { display: block; font-size: 1.1rem; }
.portrait-block p { margin: 8px 0 0; font-size: .9rem; }
@media (max-width: 480px) {
  .portrait-block { grid-template-columns: minmax(0, 1fr); }
}
.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}
h1, h2, h3 {
  font-family: Georgia, "Times New Roman", serif;
  color: var(--forest);
  line-height: 1.08;
}
h1 {
  margin: 0;
  font-size: clamp(3.3rem, 8vw, 7rem);
  letter-spacing: -.045em;
}
h2 {
  margin: 0 0 24px;
  font-size: clamp(2.2rem, 5vw, 4rem);
  letter-spacing: -.035em;
}
h3 { margin: 0 0 12px; font-size: 1.45rem; }
.hero-copy {
  max-width: 760px;
  margin: 28px 0 0;
  font-size: clamp(1.15rem, 2.4vw, 1.5rem);
  color: #36413e;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 999px;
  padding: 0 20px;
  text-decoration: none;
  font-weight: 750;
}
.button.primary { background: var(--forest); color: var(--white); }
.button.secondary { border: 1px solid var(--forest); color: var(--forest); }
.button:hover { transform: translateY(-1px); }

.hero-card {
  padding: 34px;
  border: 1px solid rgba(17,53,50,.12);
  border-radius: 24px;
  background: rgba(255,255,255,.72);
  box-shadow: var(--shadow);
}
.hero-card strong {
  display: block;
  margin: 10px 0 14px;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--forest);
  font-size: 1.7rem;
  line-height: 1.15;
}
.card-kicker {
  color: var(--gold);
  font-size: .76rem;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-weight: 800;
}

.section { padding: 96px 0; }
.section-tint { background: var(--tint); }
.two-col {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 72px;
}
.body-copy { font-size: 1.08rem; }
.body-copy p:first-child { margin-top: 0; }

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 38px;
}
.card {
  min-height: 250px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--white);
}
.card-number {
  display: inline-block;
  margin-bottom: 48px;
  color: var(--gold);
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .1em;
}
.card p { margin-bottom: 0; color: var(--muted); }

.research-list { border-top: 1px solid var(--line); }
.research-list article {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 36px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}
.research-list h3, .research-list p { margin: 0; }
.research-list p { color: var(--muted); }

.contact {
  background: var(--forest);
  color: var(--white);
}
.contact .eyebrow { color: #d6ba87; }
.contact h2 { color: var(--white); }
.contact-inner {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
}
.contact .button.primary {
  background: var(--white);
  color: var(--forest);
}

.site-footer {
  background: #0d2927;
  color: rgba(255,255,255,.74);
  font-size: .9rem;
}
.footer-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

@media (max-width: 780px) {
  .wrap { width: min(calc(100% - 28px), var(--max)); }
  .menu-button { display: inline-block; }
  .site-nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 14px;
    right: 14px;
    flex-direction: column;
    gap: 0;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--white);
    box-shadow: var(--shadow);
    overflow: hidden;
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 14px 18px; border-bottom: 1px solid var(--line); }
  .site-nav a:last-child { border-bottom: 0; }
  .hero { min-height: auto; padding: 64px 0 72px; }
  .hero-grid, .two-col { grid-template-columns: 1fr; gap: 40px; }
  .cards { gap: 12px; }
  .card { min-height: auto; min-width: 0; padding: 18px; }
  .card h3 { font-size: 20px; overflow-wrap: anywhere; }
  .card-number { margin-bottom: 28px; }
  .research-list article { grid-template-columns: 1fr; gap: 8px; }
  .contact-inner { align-items: flex-start; flex-direction: column; }
  .footer-inner { min-height: 96px; align-items: flex-start; justify-content: center; flex-direction: column; gap: 4px; }
}


@media (max-width: 600px) {
  .cards {
    grid-template-columns: repeat(3, minmax(230px, 82%));
    overflow-x: auto;
    scroll-snap-type: x proximity;
    padding-bottom: 12px;
  }
  .card { scroll-snap-align: start; }
}

/* Legacy project */
.legacy-home {
  background: linear-gradient(145deg, #f6f1e6, var(--paper));
  border-top: 1px solid var(--line);
}
.legacy-home-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(230px, .65fr);
  gap: 64px;
  align-items: center;
}
.legacy-lede { max-width: 760px; font-size: 1.12rem; color: #45514e; }
.qr-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 24px;
  text-align: center;
  box-shadow: var(--shadow);
}
.qr-card img { display: block; width: min(210px, 100%); margin: 0 auto 16px; }
.qr-card strong { display: block; color: var(--forest); font-family: Georgia, "Times New Roman", serif; font-size: 1.25rem; }
.qr-card span { display: block; margin-top: 6px; font-size: .78rem; color: var(--muted); overflow-wrap: anywhere; }

.legacy-page .site-header { background: rgba(251,250,247,.97); }
.legacy-hero {
  padding: 88px 0 74px;
  background: radial-gradient(circle at 84% 18%, rgba(176,141,87,.22), transparent 25rem), linear-gradient(145deg, #f8f4ea, #f0ece2);
}
.legacy-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(250px, .55fr);
  gap: 58px;
  align-items: center;
}
.legacy-hero h1 { font-size: clamp(3rem, 7vw, 6.6rem); }
.legacy-dates { margin: 16px 0 0; color: var(--gold); font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.5rem, 3vw, 2.2rem); }
.legacy-subtitle { max-width: 820px; margin: 24px 0 0; font-size: clamp(1.12rem, 2.3vw, 1.45rem); color: #3f4b48; }
.legacy-monogram {
  width: min(300px, 100%);
  aspect-ratio: 1;
  margin: 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid rgba(17,53,50,.16);
  border-radius: 50%;
  background: var(--forest);
  color: #e5cfaa;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.4rem, 8vw, 6rem);
  letter-spacing: .08em;
  box-shadow: var(--shadow);
}
.legacy-intro { max-width: 900px; font-size: 1.12rem; color: #4f5a57; }
.legacy-highlights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 36px;
}
.legacy-highlight { padding: 24px; border: 1px solid var(--line); border-radius: 18px; background: var(--white); }
.legacy-highlight strong { display: block; color: var(--forest); font-family: Georgia, "Times New Roman", serif; font-size: 1.25rem; margin-bottom: 8px; }
.legacy-highlight p { margin: 0; color: var(--muted); }
.timeline { position: relative; margin-top: 34px; }
.timeline::before { content: ""; position: absolute; left: 92px; top: 8px; bottom: 8px; width: 1px; background: var(--line); }
.timeline-item { display: grid; grid-template-columns: 72px 1fr; gap: 48px; position: relative; padding: 0 0 30px; }
.timeline-year { color: var(--gold); font-weight: 800; font-size: .95rem; letter-spacing: .03em; text-align: right; }
.timeline-copy { position: relative; padding-left: 6px; }
.timeline-copy::before { content: ""; position: absolute; left: -30px; top: 7px; width: 11px; height: 11px; border-radius: 50%; background: var(--forest); box-shadow: 0 0 0 5px var(--paper); }
.timeline-copy h3 { font-size: 1.3rem; margin-bottom: 7px; }
.timeline-copy p { margin: 0; color: var(--muted); }
.source-note { padding: 24px 0 0; border-top: 1px solid var(--line); color: var(--muted); font-size: .92rem; }
.source-note a { color: var(--forest); font-weight: 700; }
.legacy-share { background: var(--forest); color: var(--white); }
.legacy-share h2 { color: var(--white); }
.legacy-share .eyebrow { color: #d6ba87; }
.share-grid { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 54px; align-items: center; }
.share-grid p { color: rgba(255,255,255,.78); max-width: 760px; }
.share-grid .qr-card { box-shadow: none; }

@media (max-width: 780px) {
  .legacy-home-grid, .legacy-hero-grid, .share-grid { grid-template-columns: 1fr; gap: 36px; }
  .legacy-highlights { grid-template-columns: 1fr; }
  .legacy-monogram { width: 210px; }
  .timeline::before { left: 62px; }
  .timeline-item { grid-template-columns: 50px 1fr; gap: 36px; }
  .timeline-copy::before { left: -24px; }
}

.tilde-entry { font-family: Georgia,serif; font-size: 2.6rem; line-height: 1; text-decoration: none; padding: 4px 12px; }
.tilde-entry sup {font: 11px sans-serif; vertical-align:top;}
/* v15: direct, visible Tilde entry on the personal homepage. */
.tilde-home-mark{display:inline-flex;flex-direction:column;align-items:center;justify-content:center;min-width:100px;min-height:74px;padding:6px 18px;color:var(--forest);font:42px Georgia,'Times New Roman',serif;line-height:1;text-decoration:none;letter-spacing:-.045em}
.tilde-home-mark>span:first-child{font-size:38px;line-height:.5;letter-spacing:0;margin-bottom:5px}
.tilde-home-mark>span:last-child{position:relative}
.tilde-home-mark sup{position:absolute;left:100%;top:2px;margin-left:3px;font:10px Georgia,serif;letter-spacing:0}
.tilde-home-mark:hover{color:var(--gold)}
.tilde-home-mark:focus-visible{outline:2px solid var(--gold);outline-offset:5px}

.paper-subtitle{font-weight:400;font-style:italic}.conference-link{text-decoration:underline;text-underline-offset:.2em}

#presentations h3{font-size:1.15rem;line-height:1.4}

.education-progress{font-size:.95rem;line-height:1.6;margin:14px 0 24px;color:var(--forest)}.education-progress span{font-size:.9rem}

.legacy-projects{margin-bottom:52px}.legacy-project-list{list-style:none;padding:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:0 32px;margin:28px 0 0}.legacy-project-list li{padding:20px 0;border-bottom:1px solid #11353225;font:1.2rem Georgia,serif;line-height:1.4}

.legacy-project-parts{display:block;margin-top:8px;font: .9rem/1.5 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#52645e}

#presentations h3{line-height:1}

/* v41: compact event details, restore paper title spacing. */
#presentations h3{line-height:1.4}
#presentations article p{line-height:1.15;margin:0}

.instagram-link{display:inline-flex;align-items:center;gap:8px}.instagram-link svg{flex-shrink:0}

.contact-links{display:flex;flex-direction:column;align-items:flex-start;gap:16px}.business-phone{color:inherit;font-size:1rem}

/* v48: collapsible biography and clearer presentation hierarchy. */
.bio-disclosure { min-width: 0; border-top: 1px solid currentColor; border-bottom: 1px solid currentColor; align-self: start; }
.bio-disclosure summary { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 22px 0; cursor: pointer; font-size: 1.1rem; font-weight: 600; list-style: none; }
.bio-disclosure summary::-webkit-details-marker { display: none; }
.bio-disclosure summary:focus-visible { outline: 2px solid currentColor; outline-offset: 6px; }
.bio-toggle::before { content: "+"; font-size: 1.5rem; font-weight: 400; }
.bio-disclosure[open] .bio-toggle::before { content: "−"; }
.bio-disclosure .body-copy { padding: 4px 0 20px; }
#presentations .presentation-card { border-left: 2px solid #a6844c; padding-left: clamp(20px, 3vw, 32px); }
#presentations .presentation-card h3 { font-size: clamp(1.45rem, 2.4vw, 1.9rem); line-height: 1.25; margin: 0 0 12px; }
#presentations .presentation-card p { line-height: 1.6; margin: 0 0 16px; }
#presentations .presentation-card .presentation-subtitle { font-size: 1.08rem; line-height: 1.55; margin-bottom: 28px; }
#presentations .presentation-card p:last-child { font-size: .92rem; margin-bottom: 0; }
