:root {
  --bg:#f6f2ec;
  --ink:#40372f;
  --muted:#75675b;
  --line:#d7cbbd;
  --space:clamp(22px,4.4vw,80px);
  --serif:Georgia,'Times New Roman',serif;
  --sans:'DM Sans',Arial,sans-serif;
}

* {
  box-sizing:border-box;
}

html {
  scroll-behavior:smooth;
  scroll-padding-top:85px;
}

body {
  margin:0;
  background:var(--bg);
  color:var(--ink);
  font-family:var(--sans);
  font-size:15px;
  line-height:1.65;
}

body.menu-open {
  overflow:hidden;
}

a {
  color:inherit;
}

img {
  display:block;
  max-width:100%;
  height:auto;
}

button {
  font:inherit;
  color:inherit;
}

button,a {
  -webkit-tap-highlight-color:transparent;
}

button {
  cursor:pointer;
}

a:focus-visible,button:focus-visible {
  outline:2px solid #8a643c;
  outline-offset:6px;
}

.visually-hidden {
  position:absolute;
  width:1px;
  height:1px;
  overflow:hidden;
  clip-path:inset(50%);
}

.skip-link {
  position:fixed;
  top:10px;
  left:10px;
  transform:translateY(-150%);
  z-index:200;
  background:var(--bg);
  padding:12px;
}

.skip-link:focus {
  transform:none;
}

.site-header {
  position:fixed;
  top:0;
  left:0;
  width:100%;
  z-index:50;
  color:#fff;
  transition:background .25s,color .25s;
}

.site-header.is-scrolled,.site-header:has(.is-open) {
  background:var(--bg);
  color:var(--ink);
  border-bottom:1px solid var(--line);
}

.site-header__inner {
  display:flex;
  align-items:center;
  justify-content:space-between;
  height:88px;
  padding:0 var(--space);
}

.logo {
  position:absolute;
  left:50%;
  transform:translateX(-50%);
  font-family:var(--serif);
  font-size:15px;
  line-height:1.15;
  text-align:center;
  text-decoration:none;
  letter-spacing:.025em;
}

.nav-toggle {
  display:flex;
  align-items:center;
  gap:13px;
  min-height:44px;
  background:transparent;
  border:0;
  padding:0;
  z-index:2;
}

.menu-label,.header-resume {
  font-size:12px;
  letter-spacing:.03em;
}

.header-resume {
  text-decoration:none;
  border-bottom:1px solid currentColor;
}

.nav-toggle__bar {
  display:block;
  position:relative;
  width:21px;
  height:1px;
  background:currentColor;
}

.nav-toggle__bar:after {
  content:'';
  position:absolute;
  top:6px;
  left:0;
  width:21px;
  height:1px;
  background:currentColor;
  transition:transform .2s;
}

.nav-toggle[aria-expanded=true] .nav-toggle__bar {
  transform:rotate(-45deg);
}

.nav-toggle[aria-expanded=true] .nav-toggle__bar:after {
  top:0;
  transform:rotate(90deg);
}

.site-nav {
  display:none;
  position:absolute;
  left:0;
  top:88px;
  width:100%;
  height:calc(100dvh - 88px);
  overflow-y:auto;
  padding:24px var(--space) 60px;
  background:var(--bg);
  color:var(--ink);
}

.site-nav.is-open {
  display:flex;
  flex-direction:column;
}

.site-nav a {
  display:flex;
  justify-content:space-between;
  align-items:center;
  width:min(900px,100%);
  margin:auto;
  padding:12px 0;
  border-bottom:1px solid var(--line);
  font-family:var(--serif);
  font-size:clamp(26px,4.3vw,54px);
  text-decoration:none;
  line-height:1.3;
}

.site-nav a span {
  font-family:var(--sans);
  font-size:12px;
}

.site-nav a:hover {
  color:#8a643c;
}

.site-nav .site-nav__cta {
  font-family:var(--sans);
  font-size:13px;
  border:0;
  padding-top:25px;
}

.hero {
  position:relative;
  min-height:690px;
  height:100svh;
  isolation:isolate;
  background:#66503e;
  color:#fff;
  display:flex;
  align-items:flex-end;
  padding:0 var(--space) 125px;
  overflow:hidden;
}

.hero__image {
  position:absolute;
  z-index:-2;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center 43%;
}

.hero:after {
  content:'';
  position:absolute;
  inset:0;
  z-index:-1;
  background:linear-gradient(180deg,rgba(34,24,17,.3),transparent 40%,rgba(34,24,17,.58));
}

.hero__content {
  width:100%;
  text-align:center;
}

.eyebrow {
  font-size:11px;
  font-weight:400;
  letter-spacing:.09em;
  text-transform:uppercase;
  margin:0 0 30px;
}

.hero .eyebrow {
  margin-bottom:20px;
}

.hero h1 {
  font-size:clamp(50px,10.9vw,172px);
  line-height:1;
  letter-spacing:.025em;
  font-weight:400;
  margin:0 0 20px;
}

.hero__caption {
  font-size:12px;
  letter-spacing:.13em;
  text-transform:uppercase;
  margin:0;
}

.hero__scroll,.hero__note {
  position:absolute;
  bottom:30px;
  font-size:12px;
  letter-spacing:.025em;
}

.hero__scroll {
  left:var(--space);
  text-decoration:none;
  display:flex;
  align-items:center;
  gap:35px;
}

.hero__scroll span {
  font-size:22px;
}

.hero__note {
  right:var(--space);
}

.section {
  padding:110px var(--space);
}

.section__inner {
  max-width:1520px;
  margin:auto;
}

.introduction {
  padding-top:120px;
  padding-bottom:125px;
}

.introduction__statement {
  font-family:var(--serif);
  font-size:clamp(30px,4.1vw,62px);
  line-height:1.18;
  letter-spacing:-.025em;
  max-width:29ch;
  margin:0 0 55px;
}

.text-link,.button {
  display:inline-flex;
  align-items:center;
  gap:28px;
  font-size:13px;
  text-decoration:none;
  border-bottom:1px solid currentColor;
  padding-bottom:7px;
}

.text-link:hover,.button:hover {
  color:#8a643c;
}

.section h2 {
  font-family:var(--serif);
  font-weight:400;
  font-size:clamp(37px,4.8vw,72px);
  line-height:1.06;
  letter-spacing:-.035em;
  margin:0 0 35px;
}

.section__intro {
  max-width:58ch;
  color:var(--muted);
  margin:0;
}

.section__head {
  margin-bottom:55px;
}

.section--tight {
  padding-top:0;
  padding-bottom:120px;
}

.section--tight .section__inner {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10%;
  align-items:center;
}

.about__image img {
  width:100%;
  aspect-ratio:4/5;
  object-fit:cover;
}

.about__copy {
  padding:30px 0;
}

.prose {
  max-width:49ch;
  color:var(--muted);
  margin:35px 0;
}

.prose p {
  margin:0 0 20px;
}

.section--memory {
  background:#e9dfd2;
}

.section--memory .section__head {
  display:grid;
  grid-template-columns:1fr 1fr;
  column-gap:10%;
  align-items:end;
}

.section--memory .eyebrow {
  grid-column:1/-1;
}

.section--memory h2 {
  margin-bottom:0;
}

.gallery-note {
  font-size:12px;
  margin:0 0 20px;
  color:var(--muted);
}

.gallery {
  list-style:none;
  margin:0;
  padding:0;
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:55px 25px;
}

.gallery li:nth-child(3n+2) {
  padding-top:75px;
}

.gallery__open {
  display:block;
  width:100%;
  border:0;
  padding:0;
  background:transparent;
  overflow:hidden;
  cursor:zoom-in;
}

.gallery__open img {
  width:100%;
  aspect-ratio:3/4;
  object-fit:cover;
  transition:transform .7s;
}

.gallery__open:hover img {
  transform:scale(1.035);
}

.section--chuanlong {
  padding-top:120px;
  padding-bottom:140px;
}

.publications {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:5%;
}

.publication:nth-child(2) {
  padding-top:120px;
}

.publication__cover {
  display:flex;
  position:relative;
  background:#eae0d4;
  padding:55px 14%;
  align-items:center;
  justify-content:center;
  min-height:400px;
  text-decoration:none;
  overflow:hidden;
}

.publication__cover img {
  width:100%;
  aspect-ratio:3/4;
  object-fit:contain;
  transition:transform .5s;
  box-shadow:0 12px 25px #38352c20;
}

.publication__cover:hover img {
  transform:rotate(-2deg) scale(1.02);
}

.publication__cover span {
  position:absolute;
  bottom:18px;
  right:22px;
  font-size:12px;
}

.publication__caption {
  display:flex;
  justify-content:space-between;
  gap:15px;
  padding:20px 0 12px;
}

.publication h3 {
  font-size:14px;
  font-weight:400;
  margin:0;
}

.publication__caption>span,.publication__note {
  font-size:11px;
  color:var(--muted);
}

.publication__note {
  margin:10px 0 0;
}

.publication .text-link {
  font-size:12px;
}

.section--surface {
  background:#ddd0bf;
}

.section--surface .section__intro {
  margin:0 0 50px;
}

.timeline {
  list-style:none;
  margin:0;
  padding:0;
  border-top:1px solid #beac96;
}

.timeline__item {
  padding:44px 0;
  border-bottom:1px solid #beac96;
}

.timeline__meta {
  display:flex;
  flex-wrap:wrap;
  gap:6px 24px;
  margin:16px 0 24px;
  font-size:12px;
}

.timeline__dates,.timeline__org {
  display:block;
}

.timeline__org {
  margin-top:0;
}

.timeline__dates {
  color:var(--muted);
}

.timeline__body {
  max-width:76ch;
}

.timeline__item > h3 {
  font-family:var(--serif);
  font-size:clamp(28px,3.2vw,44px);
  line-height:1.15;
  font-weight:400;
  margin:0;
  max-width:32ch;
}

.timeline__body p {
  margin:0 0 15px;
  color:var(--muted);
}

.detail-list {
  padding-left:18px;
  color:var(--muted);
  max-width:75ch;
}

.detail-list li {
  margin:8px 0;
}

.timeline__media {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:20px;
  margin-top:25px;
}

.timeline__figure {
  margin:0;
}

.timeline__media img {
  width:100%;
  aspect-ratio:4/3;
  object-fit:cover;
}

.muted {
  color:var(--muted);
}

.inline-link {
  text-underline-offset:4px;
}

.education-block {
  margin:45px 0 60px;
  padding-left:34%;
}

.education-block__school {
  font-size:21px;
}

.education-block__school strong {
  font-weight:400;
}

.education-block__dates {
  font-size:12px;
}

.h3-section {
  font-family:var(--serif);
  font-size:27px;
  font-weight:400;
  margin:50px 0 25px;
}

.awards-list {
  list-style:none;
  padding:0;
  margin:0;
}

.awards-list li {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:25px;
  padding:22px 0;
  border-top:1px solid var(--line);
}

.awards-list .muted {
  font-size:13px;
}

.tags {
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  flex-wrap:wrap;
  gap:12px 28px;
}

.tags li {
  font-size:13px;
  padding-bottom:5px;
  border-bottom:1px solid var(--line);
}

.section--contact {
  background:#574333;
  color:#f6f2ec;
  padding-top:115px;
  padding-bottom:110px;
}

.section--contact .section__inner {
  display:grid;
  grid-template-columns:1fr 1fr;
  column-gap:10%;
}

.section--contact .eyebrow {
  grid-column:1/-1;
}

.section--contact h2 {
  grid-row:2/4;
  font-size:clamp(40px,5.7vw,85px);
}

.section--contact .muted {
  color:#ded0be;
}

.contact-list {
  list-style:none;
  padding:0;
  margin:25px 0 0;
}

.contact-list li {
  margin-bottom:12px;
}

.contact-list a {
  text-underline-offset:5px;
}

.site-footer {
  padding:65px var(--space) 22px;
  background:#574333;
  color:#f6f2ec;
  border-top:1px solid #87725d;
}

.footer-wordmark {
  display:block;
  text-decoration:none;
  font-size:clamp(40px,11.8vw,190px);
  letter-spacing:.01em;
  line-height:1.1;
  text-align:center;
}

.footer-bottom {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:20px;
  margin-top:55px;
  font-size:11px;
}

.footer-bottom a {
  text-decoration:none;
}

.lightbox[hidden] {
  display:none;
}

.lightbox {
  position:fixed;
  inset:0;
  z-index:90;
  display:grid;
  place-items:center;
  padding:60px 65px;
}

.lightbox__backdrop {
  position:absolute;
  inset:0;
  background:#211a15ed;
}

.lightbox__panel {
  position:relative;
  max-width:100%;
  max-height:100%;
  display:grid;
  place-items:center;
}

.lightbox__img {
  max-height:80dvh;
  max-width:100%;
  width:auto;
  object-fit:contain;
}

.lightbox__close,.lightbox__nav {
  position:fixed;
  background:var(--bg);
  border:0;
  width:44px;
  height:44px;
  font-size:28px;
  line-height:1;
}

.lightbox__close {
  top:20px;
  right:20px;
}

.lightbox__nav {
  top:50%;
  transform:translateY(-50%);
}

.lightbox__nav--prev {
  left:12px;
}

.lightbox__nav--next {
  right:12px;
}

@media(min-width:1600px) {
  .hero__image {
    object-position:center 48%;
  }
}

@media(max-width:800px) {
  .hero {
    height:92svh;
    min-height:610px;
    padding-bottom:140px;
  }
  .hero h1 {
    font-size:12vw;
  }
  .hero__image {
    object-position:43% center;
  }
  .section {
    padding:75px var(--space);
  }
  .section--tight {
    padding-top:0;
  }
  .section--tight .section__inner {
    gap:6%;
  }
  .section h2 {
    font-size:40px;
  }
  .gallery {
    gap:25px 16px;
  }
  .gallery li:nth-child(3n+2) {
    padding-top:35px;
  }
  .publication__cover {
    min-height:280px;
    padding:35px 12%;
  }
  .publication:nth-child(2) {
    padding-top:65px;
  }
  .publication__caption {
    flex-direction:column;
    gap:3px;
  }
  .education-block {
    padding-left:0;
  }
  .section--contact .section__inner {
    gap:20px;
  }
  .section--contact h2 {
    font-size:42px;
  }
  .footer-bottom p:nth-child(2) {
    display:none;
  }
}

@media(max-width:560px) {
  .site-header__inner {
    height:74px;
  }
  .logo {
    font-size:12px;
  }
  .menu-label {
    display:none;
  }
  .header-resume {
    font-size:11px;
  }
  .site-nav {
    top:74px;
    height:calc(100dvh - 74px);
  }
  .hero {
    height:90svh;
    min-height:570px;
    padding-bottom:135px;
  }
  .hero__image {
    object-position:40% center;
  }
  .hero__note {
    display:none;
  }
  .hero__content {
    text-align:left;
  }
  .hero h1 {
    font-size:13vw;
    letter-spacing:0;
  }
  .hero__caption {
    font-size:10px;
  }
  .hero .eyebrow {
    font-size:10px;
  }
  .introduction__statement {
    font-size:34px;
  }
  .introduction {
    padding-top:75px;
  }
  .section--tight .section__inner,.section--memory .section__head,.section--contact .section__inner {
    display:block;
  }
  .about__image {
    margin-bottom:50px;
  }
  .about__image img {
    aspect-ratio:4/5;
  }
  .about__copy {
    padding:0;
  }
  .section--memory .section__intro {
    margin-top:25px;
  }
  .gallery {
    grid-template-columns:1fr 1fr;
    gap:20px 12px;
  }
  .gallery li:nth-child(3n+2) {
    padding:0;
  }
  .gallery li:nth-child(even) {
    padding-top:30px;
  }
  .gallery li:last-child {
    grid-column:1/-1;
    width:70%;
    margin:auto;
  }
  .publications {
    grid-template-columns:1fr;
    gap:45px;
  }
  .publication:nth-child(2) {
    padding-top:0;
  }
  .publication__cover {
    padding:35px 16% 45px;
  }
  .publication__caption {
    flex-direction:row;
  }
  .timeline__item {
    padding:32px 0;
  }
  .timeline__meta {
    flex-direction:column;
    gap:5px;
  }
  .timeline__org {
    margin:0;
    text-align:left;
  }
  .timeline__item > h3 {
    font-size:28px;
  }
  .timeline__media {
    gap:10px;
  }
  .awards-list li {
    grid-template-columns:1fr;
    gap:5px;
  }
  .section--contact h2 {
    font-size:48px;
  }
  .contact-list {
    font-size:14px;
  }
  .contact-list .muted {
    font-size:11px;
  }
  .footer-wordmark {
    font-size:11.2vw;
  }
  .footer-bottom {
    margin-top:30px;
    font-size:10px;
  }
  .lightbox {
    padding:70px 50px;
  }
  .lightbox__nav {
    width:36px;
    height:40px;
  }
}

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

/* Opening photograph carousel. All other section layouts stay unchanged. */
.hero__slides {
  position:absolute;
  inset:0;
  z-index:-2;
  overflow:hidden;
  touch-action:pan-y;
}
.hero__track {
  display:flex;
  width:100%;
  height:100%;
  transition:transform 900ms cubic-bezier(.65,0,.35,1);
}
.hero__slide {
  position:relative;
  flex:0 0 100%;
  min-width:0;
  height:100%;
}
.hero__slide .hero__image { z-index:auto; }
.hero__content { pointer-events:none; }
.hero__dots {
  position:absolute;
  bottom:25px;
  left:50%;
  transform:translateX(-50%);
  display:flex;
  align-items:center;
  z-index:2;
}
.hero__dot {
  display:grid;
  place-items:center;
  width:34px;
  height:34px;
  border:0;
  padding:0;
  background:transparent;
}
.hero__dot::before {
  content:'';
  width:11px;
  height:11px;
  border-radius:50%;
  background:#6b5746;
  border:1px solid #ffffff70;
}
.hero__dot[aria-pressed="true"]::before { background:#fff; }
.hero__pause {
  position:absolute;
  bottom:65px;
  right:var(--space);
  color:#fff;
  background:transparent;
  border:0;
  border-bottom:1px solid #ffffff80;
  padding:8px 0;
  font-size:11px;
  z-index:2;
}
@media(max-width:560px) {
  .hero__dots { bottom:23px; }
  .hero__scroll { bottom:78px; }
  .hero__pause { bottom:76px; }
}
@media(prefers-reduced-motion:reduce) {
  .hero__track { transition:none; }
}

.about__placeholder {
  width:100%;
  aspect-ratio:4/5;
  display:grid;
  place-items:center;
  background:#eae0d4;
  border:1px solid var(--line);
  color:var(--muted);
  font-size:12px;
  letter-spacing:.06em;
}
.memory-gallery { border-block:1px solid var(--line); }
.memory-gallery summary {
  display:flex;
  align-items:center;
  gap:20px;
  padding:24px 0;
  list-style:none;
  cursor:pointer;
}
.memory-gallery summary::-webkit-details-marker { display:none; }
.memory-gallery summary:focus-visible { outline:2px solid #8a643c; outline-offset:6px; }
.memory-gallery__count { margin-left:auto; color:var(--muted); font-size:12px; }
.memory-gallery__icon::before { content:'+'; font-size:25px; line-height:1; }
.memory-gallery[open] .memory-gallery__icon::before { content:'−'; }
.memory-gallery__content { padding:15px 0 35px; }
@media(max-width:560px) {
  .memory-gallery summary { gap:12px; font-size:13px; }
  .memory-gallery__count { font-size:10px; }
  .hero__dot { width:30px; }
}

.cursor-fluid {
  position:fixed;
  inset:0;
  width:100%;
  height:100%;
  pointer-events:none;
  z-index:100;
}
@media(prefers-reduced-motion:reduce), (hover:none), (pointer:coarse) {
  .cursor-fluid { display:none; }
}

/* Portfolio: vertical scrolling controls horizontal progress. */
.portfolio-section {
  --portfolio-top:88px;
  padding:35px var(--space);
  background:#ddd0bf;
}
.portfolio-header { display:flex; align-items:end; justify-content:space-between; gap:25px; margin-bottom:25px; }
.portfolio-header .eyebrow { margin-bottom:12px; }
.portfolio-header h2 { font:400 clamp(34px,4vw,60px)/1.05 var(--serif); letter-spacing:-.035em; margin:0; }
.portfolio-window { overflow-x:auto; overscroll-behavior-x:contain; }
.portfolio-window:focus-visible { outline:2px solid #8a643c; outline-offset:5px; }
.portfolio-track { display:flex; gap:40px; align-items:start; }
.portfolio-card { flex:0 0 min(70vw,800px); min-width:0; padding-bottom:10px; }
.portfolio-image { display:block; height:43svh; background:#e1d5c4; }
.portfolio-image img { width:100%; height:100%; object-fit:contain; }
.portfolio-card h3 { font:400 clamp(20px,2vw,30px)/1.15 var(--serif); margin:15px 0 8px; }
.portfolio-meta { font-size:11px; line-height:1.5; color:var(--muted); margin:0 0 12px; }
.portfolio-description { font-size:13px; line-height:1.65; max-width:75ch; }
.portfolio-description summary { cursor:pointer; font-size:12px; text-underline-offset:4px; }
.portfolio-description p { margin:12px 0; }
.portfolio-footer { display:flex; align-items:center; gap:20px; margin-top:18px; font-size:12px; }
.portfolio-count { white-space:nowrap; min-width:44px; }
.portfolio-progress { height:2px; flex:1; background:#d2c1ac; }
.portfolio-progress span { display:block; width:0; height:100%; background:#77563a; }
.portfolio-next { background:none; border:0; border-bottom:1px solid currentColor; padding:8px 0; font-size:12px; }
.portfolio-section.is-enhanced { padding:0; }
.is-enhanced .portfolio-pin {
  position:sticky;
  top:var(--portfolio-top);
  height:calc(100svh - var(--portfolio-top));
  min-height:420px;
  display:flex;
  flex-direction:column;
  padding:24px var(--space) 18px;
}
.is-enhanced .portfolio-header { flex:none; }
.is-enhanced .portfolio-window { flex:1; min-height:0; overflow:hidden; }
.is-enhanced .portfolio-track { height:100%; will-change:transform; }
.is-enhanced .portfolio-card { max-height:100%; overflow-y:auto; scrollbar-width:thin; }
.is-enhanced .portfolio-image { height:clamp(140px,38svh,460px); }
.is-enhanced .portfolio-footer { flex:none; }
@media(max-width:560px) {
  .portfolio-section { --portfolio-top:74px; }
  .portfolio-header { gap:12px; align-items:start; margin-bottom:18px; }
  .portfolio-card { flex-basis:82vw; }
  .portfolio-track { gap:22px; }
  .is-enhanced .portfolio-image { height:35svh; }
  .portfolio-footer { gap:12px; }
}

.is-enhanced .portfolio-header .eyebrow {
  opacity:var(--portfolio-label-reveal, 1);
  transform:translateY(calc((1 - var(--portfolio-label-reveal, 1)) * 22px));
  clip-path:inset(calc((1 - var(--portfolio-label-reveal, 1)) * 100%) 0 0 0);
}
.is-enhanced .portfolio-header h2 {
  opacity:var(--portfolio-title-reveal, 1);
  transform:translateY(calc((1 - var(--portfolio-title-reveal, 1)) * 38px));
  clip-path:inset(calc((1 - var(--portfolio-title-reveal, 1)) * 100%) 0 0 0);
}
@media(prefers-reduced-motion:reduce) {
  .is-enhanced .portfolio-header .eyebrow,
  .is-enhanced .portfolio-header h2 { opacity:1; transform:none; clip-path:none; }
}

.is-enhanced .portfolio-window,
.is-enhanced .portfolio-footer {
  opacity:var(--portfolio-body-reveal, 1);
  transform:translateY(calc((1 - var(--portfolio-body-reveal, 1)) * 35px));
  clip-path:inset(calc((1 - var(--portfolio-body-reveal, 1)) * 14%) 0 0 0);
}
.portfolio-supplement { margin-top:28px; padding-top:24px; border-top:1px solid var(--line); }
.portfolio-supplement-image { display:block; margin-bottom:16px; }
.portfolio-supplement-image img { width:100%; height:auto; max-height:420px; object-fit:contain; }
.portfolio-supplement h4 { font:400 21px/1.25 var(--serif); margin:0 0 12px; }
@media(prefers-reduced-motion:reduce) {
  .is-enhanced .portfolio-window,
  .is-enhanced .portfolio-footer { opacity:1; transform:none; clip-path:none; }
}

html { scrollbar-gutter:stable; }
body.portfolio-modal-open { overflow:hidden; }
.portfolio-about {
  display:inline-block;
  font:400 12px/1.5 var(--sans);
  padding:5px 0;
  background:none;
  border:0;
  border-bottom:1px solid currentColor;
}
.portfolio-dialog {
  width:min(1120px,calc(100% - 40px));
  max-height:90dvh;
  padding:0;
  border:1px solid var(--line);
  background:var(--bg);
  color:var(--ink);
  overflow:auto;
  overscroll-behavior:contain;
}
.portfolio-dialog::backdrop { background:rgba(42,32,25,.72); backdrop-filter:blur(5px); }
.portfolio-dialog-bar { position:sticky; top:0; z-index:2; display:flex; justify-content:flex-end; padding:12px 20px; background:var(--bg); }
.portfolio-dialog-close { border:0; background:none; font-size:13px; padding:8px; }
.portfolio-dialog-content { display:grid; grid-template-columns:1.1fr 1fr; align-items:start; gap:40px; padding:0 35px 40px; }
.portfolio-dialog-art { position:sticky; top:65px; }
.portfolio-dialog-image { display:block; background:#e1d5c4; }
.portfolio-dialog-image img { width:100%; height:auto; max-height:72dvh; object-fit:contain; }
.portfolio-dialog-copy h2 { font:400 clamp(25px,3vw,40px)/1.15 var(--serif); margin:0 0 18px; }
.portfolio-dialog-copy p { font-size:14px; line-height:1.75; margin:16px 0; }
.portfolio-dialog-copy .portfolio-meta { font-size:11px; color:var(--muted); margin-bottom:25px; }
@media(max-width:650px) {
  .portfolio-dialog { width:calc(100% - 24px); max-height:94dvh; }
  .portfolio-dialog-content { grid-template-columns:1fr; padding:0 20px 30px; gap:25px; }
  .portfolio-dialog-art { position:static; }
  .portfolio-dialog-image img { max-height:48dvh; }
}

/* Keep the artwork link understated, including after modal focus returns. */
.portfolio-about:focus-visible {
  outline:none;
  border-bottom:2px solid currentColor;
}

/* Tighter page spacing. Portfolio geometry and scroll distance stay untouched. */
.section {
  padding:clamp(28px,4vw,52px) clamp(16px,2.2vw,32px);
}
.section .eyebrow { margin-bottom:16px; }
.section h2 { margin-bottom:22px; }
.section__head { margin-bottom:25px; }
.introduction__statement { margin-bottom:25px; }
.section--tight .section__inner { gap:35px; }
.about__copy { padding:0; }
.about__placeholder { max-height:460px; }
.prose { margin:22px 0; }
.prose p { margin-bottom:14px; }
.section--surface .section__intro { margin-bottom:24px; }
.timeline__item { padding:28px 0; }
.timeline__meta { margin:12px 0 18px; }
.memory-gallery summary { padding:18px 0; }
.memory-gallery__content { padding:8px 0 22px; }
.publication:nth-child(2) { padding-top:32px; }
.publication__cover { padding:25px 8% 40px; }
.education-content { padding:22px 0 10px; }
.education-block { padding-left:0; margin:0 0 22px; }
.education-content .h3-section { margin:22px 0 16px; }
.section .h3-section { margin-top:28px; }
.awards-list li { padding:16px 0; }
.site-footer { padding:32px clamp(16px,2.2vw,32px) 18px; }
.footer-bottom { margin-top:28px; }
.site-header__inner { padding-inline:clamp(16px,2.2vw,32px); }
@media(max-width:560px) {
  .about__image { margin-bottom:25px; }
  .section--memory .section__intro { margin-top:16px; }
  .publication:nth-child(2) { padding-top:0; }
  .publications { gap:28px; }
}

/* Reveal the counter only as the horizontal portfolio journey begins. */
.is-enhanced .portfolio-footer {
  opacity:var(--portfolio-footer-reveal, 0);
  transform:translateY(calc((1 - var(--portfolio-footer-reveal, 0)) * 14px));
  clip-path:none;
}
@media(prefers-reduced-motion:reduce) {
  .is-enhanced .portfolio-footer { opacity:1; transform:none; }
}

/* Let artwork use the available gallery height, with a small footer gap. */
.portfolio-image { background:transparent; }
.is-enhanced .portfolio-card {
  height:100%;
  display:flex;
  flex-direction:column;
  padding-bottom:24px;
}
.is-enhanced .portfolio-image {
  position:relative;
  flex:1 1 0;
  height:auto;
  min-height:140px;
  max-height:680px;
}
.is-enhanced .portfolio-image img {
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:contain;
}
.is-enhanced .portfolio-card > h3,
.is-enhanced .portfolio-card > .portfolio-meta,
.is-enhanced .portfolio-card > .portfolio-about { flex-shrink:0; }
.is-enhanced .portfolio-about { align-self:flex-start; }
@media(max-width:560px) {
  .is-enhanced .portfolio-card { padding-bottom:28px; }
  .is-enhanced .portfolio-image { max-height:56svh; }
}
.portfolio-dialog-image { background:transparent; }
