:root {
  --paper: #f9f5f1;
  --ink: #303123;
  --text: #312e2a;
  --olive: #4e5738;
  --gold: #795b25;
  --line: #dfd8cb;
  --serif: Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 78px; }
body { margin: 0; color: var(--text); background: radial-gradient(ellipse at 30% 14%, #fbf8f5, var(--paper) 62%); font: 1rem/1.55 var(--sans); }
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3, h4 { color: var(--ink); font-family: var(--serif); font-weight: 400; line-height: 1.04; }
h2 { font-size: clamp(1.95rem, 3.45vw, 2.65rem); letter-spacing: -.045em; }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; cursor: pointer; }
img { display: block; max-width: 100%; }
ul { margin: 0; }
:focus-visible { outline: 2px solid #80631e; outline-offset: 4px; }
[hidden] { display: none !important; }
.shell { width: min(1120px, calc(100% - clamp(2.5rem, 8.5vw, 7rem))); margin-inline: auto; }
.icon-set { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 1.35em; height: 1.35em; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex: none; vertical-align: middle; }
.skip { position: fixed; top: .75rem; left: 1rem; z-index: 10; padding: .6rem 1rem; background: white; border: 1px solid var(--line); transform: translateY(-160%); }
.skip:focus { transform: none; }
.site-header { position: sticky; top: 0; z-index: 5; background: #f9f5f1f5; border-bottom: 1px solid #dfd8cb65; backdrop-filter: blur(12px); }
.masthead { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 65px; padding-inline: clamp(0rem, 2.7vw, 2rem); }
.brand { display: flex; gap: .65rem; align-items: center; white-space: nowrap; }
.masthead nav { display: flex; align-items: center; gap: clamp(.8rem, 3vw, 2.35rem); position: relative; }
.masthead nav a { font-size: .9rem; position: relative; padding-block: 1.2rem; }
.masthead nav a:hover, .masthead nav a[aria-current] { color: var(--olive); }
.masthead nav a[aria-current]::after { content: ""; position: absolute; left: -4px; right: -4px; bottom: .64rem; height: 2px; background: var(--olive); }
.menu-toggle { display: none; }
.hero { display: grid; grid-template-columns: 44% 56%; align-items: center; padding-top: .2rem; padding-bottom: 1.05rem; }
.hero-copy { z-index: 1; margin-left: clamp(0rem, 3.4vw, 2.55rem); padding-block: 1.7rem 2.2rem; }
.eyebrow { color: var(--gold); text-transform: uppercase; font-size: .86rem; letter-spacing: .23em; font-weight: 600; line-height: 1.4; }
.eyebrow span { margin-left: .35em; letter-spacing: 0; color: #9e7b3f; }
.hero h1 { font-size: clamp(2.35rem, 5.02vw, 4.15rem); letter-spacing: -.052em; margin-top: .5rem; line-height: .97; }
.profession { font: italic clamp(1rem, 2.23vw, 1.65rem)/1.17 var(--serif); color: var(--olive); margin-top: .46rem; letter-spacing: -.035em; }
.profession span { color: #94661e; }
.intro { border-left: 1px solid #b59658; padding-left: .95rem; margin: 1.05rem 0 1.35rem .19rem; max-width: 39ch; line-height: 1.42; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .55rem .9rem; }
.pill { display: inline-flex; align-items: center; justify-content: center; gap: .7rem; min-height: 44px; font-weight: 550; line-height: 1.2; font-size: .9rem; padding: .6rem 1.35rem; border: 1px solid #c2baa4; color: var(--olive); border-radius: 100px; white-space: nowrap; transition: background .18s; }
.pill:hover { background: #efeadc; }
.primary { background: linear-gradient(110deg, #586144, #454d35); color: #fffdf5; border-color: transparent; }
.primary:hover { background: #39422b; }
.contact-strip { grid-column: 1/-1; display: flex; align-items: center; justify-content: center; justify-self: center; width: min(870px, 88%); border-radius: 2rem; padding: .65rem .65rem; background: #f2ece5; font-size: .88rem; line-height: 1.2; }
.contact-strip > * { padding-inline: clamp(.65rem, 3.55vw, 2.5rem); text-align: center; display: flex; align-items: center; gap: clamp(.4rem, 1.4vw, 1rem); justify-content: center; }
.contact-strip > * + * { border-left: 1px solid #cfc2ad; }
.contact-strip .icon { color: var(--olive); font-size: 1.05rem; }
.contact-strip a:hover { text-decoration: underline; }
.profile-band, .experience-band { position: relative; isolation: isolate; }
.profile-band { background: #f2ede7; }
.profile-inner { display: grid; grid-template-columns: clamp(11.5rem, 22vw, 16rem) minmax(0, 1fr); gap: clamp(.8rem, 2vw, 1.65rem); align-items: center; padding: 1.45rem clamp(1rem, 7.5vw, 6rem) 1.45rem 0; }
.profile-heading { display: flex; align-items: flex-start; gap: .5rem; min-width: 0; }
.profile-inner h2 { margin-top: .3rem; }
.profile-inner > p { border-left: 1px solid #b8a78b; padding-left: clamp(.9rem, 2vw, 1.6rem); line-height: 1.48; }
.education { display: grid; grid-template-columns: .72fr 1fr 1.05fr; gap: clamp(.7rem, 2vw, 1.6rem); align-items: center; padding-block: 1.15rem; }
.education h3 { display: flex; gap: .8rem; align-items: start; border-right: 1px solid #ceb78e; padding: .4rem .6rem; font-size: clamp(1.35rem, 2.6vw, 2rem); letter-spacing: -.04em; }
.education h3 .icon { color: var(--gold); }
.education article { min-height: 100%; display: flex; align-items: start; gap: .9rem; padding: .88rem; border: 1px solid var(--line); border-radius: .85rem; background: #f2ede84d; }
.badge-icon { flex: none; display: grid; place-items: center; width: 2.65rem; height: 2.65rem; border-radius: 50%; color: var(--olive); background: #dedfcd; font-size: 1.15rem; }
.education h4 { font-size: 1.22rem; margin-bottom: .28rem; }
.education article p { font-size: .88rem; line-height: 1.35; }
.experience-band { background: linear-gradient(180deg, #f1ece5, #f8f4ef 95%); }
.experience { padding-block: 1.15rem .45rem; }
.experience-heading { margin-left: clamp(1rem, 7.2vw, 5.5rem); }
.experience-heading h2 { margin: .18rem 0 .5rem; }
.role { display: flex; align-items: center; gap: .65rem; line-height: 1.4; }
.role .icon { color: var(--olive); }
.projects { padding-block: .85rem 1.15rem; }
.projects h2 { margin-top: .2rem; }
.project-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: clamp(.65rem, 1.8vw, 1.35rem); margin-top: 1rem; }
.project { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: .75rem; overflow: hidden; background: #fffaf542; }
.project > img { width: 100%; height: auto; aspect-ratio: 3 / 1.05; object-fit: cover; }
.project-copy { display: flex; flex: 1; flex-direction: column; padding: .75rem .9rem .65rem; }
.project-heading { display: flex; justify-content: space-between; align-items: start; gap: .4rem; }
.project h3 { font-size: clamp(1.12rem, 2vw, 1.43rem); letter-spacing: -.035em; }
.year { border-radius: 3rem; background: #ebe4ce; color: #584621; padding: .15rem .62rem; font-size: .86rem; line-height: 1.25; }
.project-copy p { margin: .56rem 0 .35rem; line-height: 1.38; }
.project-trigger { margin-top: auto; display: flex; justify-content: space-between; align-items: center; width: 100%; gap: .5rem; color: var(--gold); border: 0; padding: .35rem 0 0; background: none; text-align: left; min-height: 36px; }
.project-trigger:hover { text-decoration: underline; }
.project-trigger span, .cert-plus { display: grid; place-items: center; width: 1.5rem; height: 1.5rem; flex: none; line-height: 1; border-radius: 50%; background: var(--olive); color: white; }
.credentials { padding-block: .65rem 1.45rem; }
.credentials h2, .skills h2 { display: flex; align-items: center; gap: .65rem; font-size: clamp(1.65rem, 2.9vw, 2.18rem); margin-bottom: .7rem; }
.credentials h2 .icon, .skills h2 .icon { color: var(--gold); font-size: .87em; }
.certificate-list { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem; }
.certificate-list button { width: 100%; height: 100%; min-height: 60px; display: grid; grid-template-columns: 1.8rem 1fr auto; align-items: center; gap: .7rem; text-align: left; padding: .45rem .7rem; border: 1px solid var(--line); border-radius: .58rem; background: transparent; line-height: 1.19; }
.certificate-list button:hover { background: #eee8dc; }
.certificate-list .icon { color: var(--gold); font-size: 1.12rem; }
.certificate-list strong { display: block; font-size: .91rem; font-weight: 600; }
.certificate-list small { display: block; margin-top: .14rem; font-size: .77rem; }
.cert-plus { background: #efe8d5; color: var(--gold); }
.skills { border-top: 1px solid var(--line); padding-block: 1.3rem 1.5rem; }
.skills h3 { display: flex; align-items: center; gap: .45rem; font-size: 1.19rem; margin-bottom: .4rem; }
.skills h3 .icon { color: var(--gold); font-size: .94rem; }
.tags { display: flex; flex-wrap: wrap; gap: .37rem .45rem; list-style: none; padding: 0; margin-right: 2.2rem; }
.tags li { border-radius: 2rem; padding: .22rem .73rem; background: #e7e7d7; font-size: .865rem; line-height: 1.27; }
.tags small { margin-left: .4rem; color: #505740; font-size: .79rem; }
.languages { width: min(92%, 430px); border-top: 1px solid var(--line); margin-top: .95rem; padding-top: .58rem; }
.contact { isolation: isolate; position: relative; width: min(1210px, calc(100% - 1rem)); display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 1rem 1.9rem; border-radius: 1.2rem; margin: 0 auto .2rem; padding: 1.1rem clamp(1rem, 4vw, 3rem); overflow: hidden; background: #f1ebe2; }
.contact-copy { max-width: 58ch; }
.contact h2 { font-size: clamp(1.85rem, 3vw, 2.3rem); color: var(--gold); margin-bottom: .25rem; }
.contact p { line-height: 1.4; }
footer { background: #4b533c; color: #f9f4e9; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; padding-block: .65rem; gap: .55rem 1rem; }
.footer-brand, footer nav, .footer-contact { display: flex; align-items: center; gap: .65rem; }
.footer-brand, footer nav { font-size: .8rem; }
.footer-brand small { display: block; font-size: .71rem; color: #f0ecdf; }
.footer-contact a { padding: .3rem; }
footer a:hover { text-decoration: underline; }
dialog { max-width: min(560px, calc(100vw - 2rem)); max-height: calc(100dvh - 2rem); width: 100%; padding: 0; border: 1px solid var(--line); border-radius: 1rem; background: var(--paper); color: var(--text); box-shadow: 0 20px 60px #2225; }
dialog::backdrop { background: #292a20a0; }
.dialog-inner { position: relative; padding: 1.5rem; }
.close { position: absolute; top: .7rem; right: .7rem; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: var(--paper); font-size: 1.4rem; z-index: 1; }
.close:hover { background: #eae4d9; }
.dialog-inner img { width: 100%; aspect-ratio: 2.8; object-fit: cover; border-radius: .72rem; margin-bottom: 1rem; }
.dialog-inner .eyebrow { padding-right: 2.4rem; }
.dialog-inner h2 { margin: .5rem 0 .8rem; }
body:has(dialog[open]) { overflow: hidden; }
@media (max-width: 900px) {
  .hero-copy { margin-left: .6rem; }
  .masthead { padding-inline: 0; gap: .75rem; }
  .masthead nav { gap: 1rem; }
}
@media (max-width: 720px) {
  html { scroll-padding-top: 70px; }
  .shell { width: calc(100% - 2rem); }
  .masthead { min-height: 60px; }
  .menu-toggle { display: flex; gap: .4rem; align-items: center; min-height: 42px; border: 1px solid var(--line); background: transparent; border-radius: 2rem; padding: .35rem .75rem; color: var(--olive); }
  .masthead nav { display: none; position: absolute; top: 100%; left: 0; right: 0; grid-template-columns: 1fr 1fr; gap: .2rem; background: var(--paper); padding: .6rem 1rem .9rem; box-shadow: 0 10px 15px #4b533c20; }
  .masthead nav.open { display: grid; }
  .masthead nav a { padding: .65rem .8rem; }
  .masthead nav a[aria-current]::after { left: .8rem; right: auto; width: 2rem; bottom: .35rem; }
  .hero { grid-template-columns: 1fr; }
  .hero-copy { margin-left: 0; padding: 1.75rem .2rem .35rem; }
  .hero h1 { font-size: clamp(2.45rem, 9vw, 3.8rem); }
  .profession { font-size: clamp(1.03rem, 4.25vw, 1.45rem); }
  .contact-strip { width: 100%; flex-wrap: wrap; gap: .5rem .4rem; padding: .75rem .3rem; border-radius: 1rem; }
  .contact-strip > * { padding-inline: .35rem; }
  .contact-strip > * + * { border: 0; }
  .profile-inner { grid-template-columns: 1fr; padding: 1.15rem .15rem 1.3rem; gap: .7rem; }
  .profile-inner h2 br { display: none; }
  .profile-inner h2 br::after { content: " "; }
  .profile-inner > p { padding-left: .8rem; }
  .education { grid-template-columns: 1fr 1fr; gap: .62rem; }
  .education h3 { grid-column: 1/-1; border: none; padding-left: 0; }
  .education h3 br { display: none; }
  .education h3 br::after { content: " "; }
  .education article { gap: .45rem; padding: .62rem; flex-direction: column; }
  .education h4 { font-size: 1.12rem; }
  .experience-heading { margin-left: 0; }
  .project-grid, .certificate-list { grid-template-columns: 1fr; }
  .contact { grid-template-columns: 1fr; padding: 1rem 1.15rem; justify-items: start; }
  .footer-inner { padding-block: .85rem; }
  footer nav { order: 1; flex-wrap: wrap; column-gap: .85rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
.hero-photo { position: relative; align-self: end; justify-self: center; width: min(100%, 570px); margin: 0; padding: .65rem clamp(2.6rem, 6vw, 6rem) 0; }
.photo-arch { position: relative; isolation: isolate; overflow: hidden; height: clamp(305px, 34vw, 448px); border-radius: 48% 48% 0 0 / 42% 42% 0 0; background: linear-gradient(145deg, #fbf9f1 10%, #ebebdc 70%, #dae0cb); outline: 1px solid #a2a58b72; outline-offset: 4px; }
.photo-arch img { width: 100%; height: 100%; object-fit: cover; object-position: center 29%; mix-blend-mode: multiply; filter: brightness(1.15) contrast(.96) saturate(1.025) sepia(.025); }
.hero-leaves { position: absolute; right: clamp(.05rem, 2vw, 2rem); bottom: 8%; width: clamp(76px, 11vw, 135px); height: auto; opacity: .84; pointer-events: none; }
.project > img { aspect-ratio: 16 / 10; object-position: center 53%; filter: sepia(.06) saturate(.94); }
.thesis-note { padding: 1rem 1.15rem; border: 1px solid var(--line); border-radius: .75rem; background: #eeebdf; }
.thesis-note h3 { margin: .4rem 0; font-size: clamp(1.25rem, 2.8vw, 1.75rem); }
.thesis-note p:not(.eyebrow) { margin-bottom: .7rem; line-height: 1.4; }
.dialog-inner img { object-fit: contain; width: 100%; height: auto; max-height: 45dvh; aspect-ratio: auto; margin: 1rem 0 0; border: 1px solid var(--line); background: #fff; }
.dialog-inner #detail-file { margin-top: .75rem; }
#detail-copy p + p { margin-top: .75rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 720px) {
  .hero-photo { width: min(100%, 460px); padding: .8rem 2.25rem 0; }
  .photo-arch { height: clamp(220px, 77vw, 366px); }
}
.brand-name { font-size: .7rem; text-transform: uppercase; letter-spacing: .14em; line-height: 1.35; }
.experience { padding-block: 1.35rem 1.45rem; }
.experience-grid { display: grid; gap: .55rem; margin-top: 1.15rem; }
.experience-card { overflow: hidden; border: 1px solid var(--line); border-radius: .72rem; background: #fbf8f4; }
.experience-card summary {
  display: grid;
  grid-template-columns: 1.4rem 1fr 1.55rem;
  align-items: center;
  gap: .7rem;
  padding: .62rem .9rem;
  min-height: 46px;
  list-style: none;
  font-weight: 550;
  cursor: pointer;
}
.experience-card summary::-webkit-details-marker { display: none; }
.experience-card summary:focus-visible { outline-offset: -4px; }
.experience-card summary .icon { color: var(--olive); }
.experience-card[open] summary { background: #e7e8db; color: var(--ink); }
.experience-card summary:hover { background: #efede2; }
.exp-sign { display: grid; place-items: center; width: 1.55rem; height: 1.55rem; border-radius: 50%; color: var(--olive); background: #e9e9da; }
.exp-sign::before { content: "+"; }
.experience-card[open] .exp-sign::before { content: "−"; }

.project:nth-child(2) > img { object-position: center 60%; }
.project:nth-child(3) > img { object-position: center 59%; }
.project-notes { margin-top: 1rem; }
@media (max-width: 720px) {
  .brand-name { font-size: .63rem; }
}
.monogram {
  width: 2.8rem;
  height: 2.8rem;
  flex: none;
  color: var(--olive);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.footer-brand .monogram { color: #f9f4e9; width: 2.35rem; height: 2.35rem; }
.profile-emblem {
  flex: none;
  width: clamp(1.9rem, 4vw, 2.75rem);
  height: auto;
  margin-top: .08rem;
  color: var(--olive);
  opacity: .66;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.35;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.profile-band::after {
  content: "";
  position: absolute;
  inset: .5rem 1% .5rem auto;
  width: min(11vw, 120px);
  z-index: -1;
  pointer-events: none;
  opacity: .5;
  background: url("assets/botanical-sprig.svg") center / contain no-repeat;
}
.experience-body {
  max-width: 84ch;
  padding: .85rem 1rem .95rem;
  line-height: 1.55;
}
.project-trigger[href] { width: fit-content; }
.thesis-note { scroll-margin-top: .75rem; }
@media (max-width: 720px) {
  .monogram { width: 2.4rem; height: 2.4rem; }
  .profile-band::after { opacity: .16; width: 26vw; }
}
