/* Portfolio exhibition: a photographic opening and an asymmetric collection. */
:root {
  --paper: #f5f2e9;
  --ink: #232b24;
  --muted: #535e54;
  --line: #c9ccc0;
  --dark: #222b23;
  --green: #425748;
}
.home .site-header {height: 76px;}
.home .hero {
  display: block;
  width: 100%;
  min-height: 0;
  padding: 0;
  background: var(--dark);
}
.home .hero::before {content: none;}
.exhibition-stage {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: end;
  min-height: clamp(510px, 73svh, 850px);
  overflow: hidden;
  background: #2a352a;
}
.home .hero-art {
  position: absolute;
  inset: 0;
  padding: 0;
  animation: none;
}
.home .hero-image-link {
  position: absolute;
  inset: 0;
  min-height: 0;
  height: 100%;
  aspect-ratio: auto;
}
.home .hero-image-link::after {display: none;}
.home .hero-image-link img {
  object-position: center 56%;
}
.home .hero-image-link::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(0deg, #111c15ed, #111c155c 63%, transparent 92%), linear-gradient(90deg, #101a1480, transparent 78%);
}
.home .hero-copy {
  z-index: 2;
  position: relative;
  width: min(1440px, calc(100% - 112px));
  margin: 0 auto;
  padding: 0 0 clamp(40px, 7vw, 105px);
  pointer-events: none;
}
.home .hero-copy a {pointer-events: auto;}
.home .hero .eyebrow,
.home .hero-description,
.home .hero-english {color: #f2f1e6;}
.home .hero h1 {
  font-size: clamp(68px, 10vw, 156px);
  margin: 20px 0 0;
  line-height: 1.06;
  letter-spacing: -.06em;
}
.home .hero h1 span {color: #c4d2ae;}
.home .hero-english {
  font-size: clamp(26px, 3.7vw, 55px);
  margin: 12px 0 12px;
}
.home .hero .text-link {gap: 28px;}
.home .hero-art figcaption {
  position: absolute;
  z-index: 2;
  right: max(56px, calc((100vw - 1440px)/2));
  bottom: 31px;
  display: grid;
  gap: 7px;
  text-align: right;
  pointer-events: none;
}
.exhibition-rail {
  display: grid;
  grid-template-columns: 125px 1fr;
  align-items: stretch;
}
.exhibition-rail-label {
  align-self: center;
  font-size: 13px;
  color: #eeeede;
}
.exhibition-rail-label small {
  display: block;
  margin-top: 4px;
  font: 9px var(--mono);
  letter-spacing: .12em;
}
.exhibition-rail .project-reel {margin: 0; border-top: 0;}
.exhibition-rail .project-reel button {
  padding: 19px 16px;
  border-top: 0;
  border-left: 1px solid #8792814d;
  border-bottom: 2px solid transparent;
}
.exhibition-rail .project-reel button[aria-pressed=true] {
  background: #e0e9ce12;
  border-bottom-color: #c4d2ae;
}
.feature-status {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
.home .work-section {padding-top: clamp(68px, 9vw, 136px);}
.home .section-heading h2 {font-size: clamp(44px, 7vw, 100px); letter-spacing: -.045em;}
.home .works-intro {font-size: 15px;}
.project-grid:not(.is-index):not(.filtered) {
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(55px, 7vw, 105px) clamp(18px, 3vw, 44px);
  align-items: start;
}
.project-grid:not(.is-index):not(.filtered) .project-card:nth-child(n) {
  max-width: none;
  margin: 0;
}
.project-grid:not(.is-index):not(.filtered) .project-card:nth-child(n)>a {display:block;}
.project-grid:not(.is-index):not(.filtered) .project-card:nth-child(1) {grid-column: 1 / 8;}
.project-grid:not(.is-index):not(.filtered) .project-card:nth-child(2) {grid-column: 9 / 13; margin-top: 86px;}
.project-grid:not(.is-index):not(.filtered) .project-card:nth-child(3) {grid-column: 1 / -1;}
.project-grid:not(.is-index):not(.filtered) .project-card:nth-child(4) {grid-column: 1 / 6;}
.project-grid:not(.is-index):not(.filtered) .project-card:nth-child(5) {grid-column: 7 / 13; margin-top: 73px;}
.project-grid:not(.is-index):not(.filtered) .project-card:nth-child(n) .project-image {aspect-ratio: 1.48;}
.project-grid:not(.is-index):not(.filtered) .project-card:nth-child(2) .project-image {aspect-ratio: 1.02;}
.project-grid:not(.is-index):not(.filtered) .project-card:nth-child(3) .project-image {aspect-ratio: 2.12;}
.project-grid:not(.is-index):not(.filtered) .project-index,
.project-grid:not(.is-index):not(.filtered) .project-cta {display: none;}
.project-grid .project-title-row h3 {font-size: clamp(27px, 3.6vw, 50px);}
.project-grid .project-meta {letter-spacing: .075em;}
.project-card .project-image {background: #dcded2;}
.case-folio {padding: 21px 0 0; color: var(--muted);}
.project-page .detail-title {margin-top: 24px;}
.project-page .detail-title h1 {letter-spacing: -.04em;}
.project-page .detail-cover {aspect-ratio: 1.86;}
.project-page .detail-chapter-header {
  border-top: 1px solid var(--line);
  padding-top: 23px;
}
.project-page .chapter-text {max-width: 58ch;}
@media (max-width: 760px) {
  .home .site-header {height: 70px;}
  .home .desktop-nav {top: 69px;}
  .exhibition-stage {min-height: min(640px, 76svh);}
  .home .hero-copy {width: calc(100% - 40px); padding-bottom: 69px;}
  .home .hero h1 {font-size: clamp(43px, 13vw, 86px);}
  .home .hero-english {font-size: 27px; margin: 11px 0;}
  .home .hero-description {font-size: 12px;}
  .home .hero-art figcaption {bottom: 15px; left: 20px; right: 20px; text-align: left; display: flex;}
  .exhibition-rail {grid-template-columns: 1fr;}
  .exhibition-rail-label {display:none;}
  .exhibition-rail .project-reel button {padding: 12px 5px; min-height: 64px;}
  .project-grid:not(.is-index):not(.filtered) {grid-template-columns: 1fr;}
  .project-grid:not(.is-index):not(.filtered) .project-card:nth-child(n) {grid-column: 1; margin: 0;}
  .project-grid:not(.is-index):not(.filtered) .project-card:nth-child(n) .project-image {aspect-ratio: 1.42;}
  .project-page .detail-cover {aspect-ratio: 1.23;}
}

/* The wide Dog Tree elevation needs room for both volumes. */
.project-page .detail-cover:has(img[src$="dog-tree-exterior.webp"]) {
  aspect-ratio: 2400 / 1021;
}
.project-grid:not(.is-index):not(.filtered) .project-card:nth-child(2) .project-image:has(img[src$="dog-tree-exterior.webp"]) {
  aspect-ratio: 1.55;
}
/* Keep the application details and the featured project link readable over the cover. */
.home .hero-description {font-size: clamp(16px, 2vw, 23px); font-weight: 600; margin-bottom: 2px;}
.hero-education {color: #f2f1e6; font-size: 14px; margin: 0;}
.home .hero-cta {display: flex; flex-wrap: wrap; gap: 0 24px; margin-top: 14px;}
.home .hero-cta .text-link {gap: 10px;}
.home .hero-art figcaption .feature-detail {
  color: #fff;
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  justify-self: end;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.home .hero-art figcaption {gap: 0;}
.exhibition-rail {position: relative;}
.feature-status:not(:empty) {
  position: absolute;
  z-index: 3;
  right: 0;
  bottom: calc(100% + 4px);
  background: var(--dark);
  width: auto;
  height: auto;
  overflow: visible;
  clip-path: none;
  margin: 0;
  padding: 6px 10px;
}
.scene-status {min-height: 1.6em; margin: 10px 0 0;}
.scene-status + .scene-source {margin-top: 4px;}
.evidence-chapter {scroll-margin-top: 30px;}
@media (max-width: 760px) {
  .home .hero-copy {padding-bottom: 78px;}
  .home .hero .hero-description {font-size: 16px;}
  .home .hero-art figcaption {align-items: center; justify-content: space-between; gap: 6px 12px; bottom: 12px;}
  .home .hero-art figcaption .feature-detail {white-space: nowrap;}
  .exhibition-rail-label {display: block; padding: 7px 0;}
  .exhibition-rail-label small {display: none;}
  .home .hero-image-link:is([data-feature-image="public-square"], [data-feature-image="hepburn-garden"]) img {
    height: 64%;
    object-position: center 80%;
  }
  .home .hero-image-link[data-feature-image="public-square"] img {object-position: center bottom;}
  .home .hero-image-link:is([data-feature-image="public-square"], [data-feature-image="hepburn-garden"])::before {
    background: linear-gradient(0deg, #2a352a 36%, #202b22aa 51%, transparent 72%);
  }
}

/* Project drawings and their reading notes. */
.view-toolbar {justify-content: flex-end;}
.gallery-item figcaption {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  gap: 6px 14px;
}
.figure-evidence {grid-column: 1 / -1; margin: 0; font-size: 14px; line-height: 1.7; color: var(--muted);}
.figure-detail {display: none;}
.interface-diagram {margin: 0 0 32px; padding: clamp(16px, 4vw, 32px); border: 1px solid var(--line); background: var(--paper);}
.interface-diagram figcaption {display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px;}
.interface-diagram figcaption span, .interface-diagram li span {font-size: 13px; color: var(--muted);}
.interface-diagram ol {display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; padding: 0; list-style: none; margin: 16px 0;}
.interface-diagram li {display: grid; gap: 4px; padding: 12px 8px; border: 1px solid var(--line); text-align: center;}
.interface-diagram li:nth-child(2) {border-style: dashed; background: #e8eade;}
.interface-diagram p {margin: 0; font-size: 14px; line-height: 1.7;}
a:focus-visible, button:focus-visible, .lightbox-stage:focus-visible {
  outline: 2px solid #192b20;
  outline-offset: 3px;
  box-shadow: 0 0 0 3px #fff9ed;
}
.home .hero-image-link:focus-visible, .lightbox-stage:focus-visible {outline-offset: -4px;}
.lightbox-caption {line-height: 1.5;}
@media (max-width: 760px) {
  .figure-detail {
    display: inline-flex;
    grid-column: 1 / -1;
    justify-self: start;
    align-items: center;
    min-height: 44px;
    padding: 0 12px;
    margin-top: 2px;
    border: 1px solid var(--green);
    background: transparent;
    color: var(--ink);
    font-size: 13px;
  }
  .lightbox-stage.is-zoomed {padding: 10px;}
  .lightbox-stage.is-zoomed img {width: max(220%, 680px);}
  .lightbox-caption {font-size: 12px;}
}
