/* The archive opens as a contact sheet on the same dark ground as the sequence. */
.archive-dialog, .viewer-dialog {
  --paper: #f4efe7;
  background: #201e1a;
  color: var(--paper);
}
.archive-dialog .dialog-top { border-color: #6d685d; }
.archive-head { flex-wrap: wrap; align-items: baseline; gap: 6px 24px; }
.archive-head h2 {
  font: italic 400 clamp(40px, 6.6vw, 108px)/1.05 Georgia, 'Times New Roman', serif;
  letter-spacing: -.055em;
}
.archive-head p { font-size: .95rem; color: #cfcdc0; }
.archive-dialog .filters {
  border: 1px solid #625c52;
  background: #36332d;
  margin-block: clamp(20px, 3vw, 44px);
}
.archive-dialog .filters button { color: #e0dcd4; }
.archive-dialog .filters button[aria-pressed=true] { color: #25251f; background: #faf5ea; }
.archive-grid { grid-template-columns: repeat(4,minmax(0,1fr)); gap: clamp(22px, 2.8vw, 46px) clamp(14px, 1.9vw, 30px); }
.archive-photo img { aspect-ratio: 1.5; }
.archive-photo > span { font-size: .94rem; line-height: 1.34; padding-top: .65em; }
.viewer-dialog figure img { transform-origin: 0 0; }
.viewer-dialog figcaption { color: #e3ded4; font-size: 1rem; }
.menu-dialog { background: #f6f4ed; color: #24261e; }
.menu-content nav a { font-weight: 470; letter-spacing: -.055em; line-height: 1.35; min-height: 44px; }
.menu-content nav a:is(:hover, :focus-visible) { color: #8c3c24; }
.menu-content nav a:is(:hover, :focus-visible)::after { content: '→'; font-size: .48em; align-self: center; }
@media (max-width: 770px) {
  .archive-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .archive-photo > span { font-size: .85rem; }
  .archive-dialog .filters { border-radius: 18px; }
}
@media (prefers-reduced-motion: no-preference) {
  .motion .menu-dialog[open] { animation: open-sheet .22s cubic-bezier(.18,.7,.3,1) both; }
  @keyframes open-sheet { from { transform: translateY(14px); opacity: .65; } to { transform: none; opacity: 1; } }
}

/* A portrait and two short answers share one spread. */
.profile {
  --page-gutter: clamp(22px, 6vw, 100px);
  padding: clamp(93px, 8.4vw, 152px) var(--page-gutter) clamp(34px, 5vw, 82px);
  background: #f4f2eb;
  color: #20251f;
}
.profile-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .94fr);
  grid-template-areas: "portrait about" "portrait activity";
  grid-template-rows: 1fr 1fr;
  column-gap: clamp(44px, 8vw, 150px);
  align-items: center;
  max-width: 1460px;
  margin-inline: auto;
}
.profile-portrait { grid-area: portrait; align-self: stretch; min-width: 0; }
.profile-portrait img {
  width: 100%; height: 100%;
  max-height: 590px;
  aspect-ratio: 1.14;
  object-fit: cover; object-position: 49% 39%;
}
.profile-intro { grid-area: about; align-self: end; padding-block-end: clamp(26px,3.1vw,56px); }
.profile h2, .contact-ink h2 {
  font-size: clamp(66px, 7.9vw, 138px);
  font-weight: 445; line-height: 1;
  letter-spacing: -.07em;
}
.profile p {
  font-size: clamp(18px, 1.56vw, 27px);
  line-height: 1.48; letter-spacing: -.025em; text-wrap: pretty;
  max-width: 35ch;
}
.profile-intro p { margin-top: clamp(16px, 1.6vw, 30px); }
.profile-activity { grid-area: activity; align-self: start; scroll-margin-top: 90px; border-top: 1px solid #b5b9a9; padding-top: clamp(16px, 1.8vw, 34px); }
.profile-activity h3 { font-size: clamp(24px, 2.2vw, 40px); font-weight: 500; letter-spacing: -.044em; line-height: 1.15; }
.profile-activity p { margin-top: 12px; }
.profile a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .17em; text-decoration-color: #858b75; }
.profile a:is(:focus-visible,:hover) { color: #365942; text-decoration-color: currentColor; }
.contact-sheet {
  --contact-gutter: clamp(22px, 6vw, 100px);
  background: #09111a; color: #f9f7f1;
}
.contact-sheet:target { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; }
.contact-main {
  min-height: clamp(505px, 41vw, 700px);
  position: relative;
  isolation: isolate;
  display: flex; align-items: center;
  flex: 1;
}
.contact-image { position: absolute; inset: 0 0 0 40%; z-index: -1; overflow: hidden; }
.contact-image img { width: 100%; height: 100%; object-fit: cover; object-position: 40% 44%; }
.contact-image::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg,#09111a 0%,rgb(9 17 26 / 62%) 8%,transparent 30%), linear-gradient(0deg,#09111a 0%,transparent 18%);
}
.contact-ink { width: 44%; padding: clamp(82px,8vw,138px) 0 clamp(36px,4.2vw,78px) var(--contact-gutter); }
.contact-ink h2 { margin-bottom: clamp(25px,3.1vw,56px); }
.contact-ink address { font-style: normal; display: grid; gap: 14px; }
.contact-ink address a { width: fit-content; display: grid; min-height: 52px; align-content: center; gap: 3px; scroll-margin-block: 90px; }
.contact-ink address span { color: #c1cacd; font-size: .91rem; }
.contact-ink address strong { font-size: clamp(22px, 2vw, 36px); font-weight: 490; line-height: 1.22; letter-spacing: -.042em; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .18em; text-decoration-color: #73858c; }
.contact-ink address a:is(:focus-visible,:hover) strong { text-decoration-color: #fff; }
.site-end {
  margin-inline: var(--contact-gutter);
  padding-block: 8px calc(var(--dock-clear,76px) + 8px);
  border-top: 1px solid #40505a;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.site-end > * { font-size: .89rem; min-height: 44px; display: inline-flex; align-items: center; gap: 7px; }
.site-end a { font-weight: 600; }
@media (min-width: 621px) and (max-width: 980px) {
  .profile-inner { grid-template-columns: .8fr 1fr; column-gap: 34px; }
  .profile h2,.contact-ink h2 { font-size: clamp(58px,7.8vw,78px); }
  .profile-portrait img { aspect-ratio: .88; }
}
@media (max-width: 620px) {
  .profile { padding-block: 87px 32px; }
  .profile-inner {
    grid-template-columns: minmax(0,1.3fr) minmax(0,1fr);
    grid-template-areas: "about portrait" "activity activity";
    grid-template-rows: auto auto;
    gap: 26px clamp(13px,4vw,25px);
  }
  .profile-intro { align-self: center; padding: 0; }
  .profile h2 { font-size: clamp(39px, 10.4vw, 63px); }
  .profile-intro p { margin-top: 12px; line-height: 1.43; font-size: 1.03rem; }
  .profile-portrait { align-self: center; }
  .profile-portrait img { aspect-ratio: .72; object-position: 47% 46%; }
  .profile-activity { padding-top: 16px; }
  .profile-activity h3 { font-size: 29px; }
  .profile-activity p { font-size: 1.06rem; margin-top: 8px; max-width: 41ch; }
  .contact-main { min-height: 0; display: block; padding-top: clamp(178px, 28svh, 240px); }
  .contact-image { inset: 0 0 auto; height: clamp(212px, 37svh, 322px); }
  .contact-image img { object-position: 50% 35%; }
  .contact-image::after { background: linear-gradient(0deg,#09111a 0%,rgb(9 17 26 / 75%) 12%, transparent 41%); }
  .contact-ink { width: 100%; padding: 20px var(--contact-gutter) 28px; }
  .contact-ink h2 { font-size: clamp(57px,14.5vw,85px); margin-bottom: 16px; }
  .contact-ink address { gap: 10px; }
  .contact-ink address strong { font-size: 23px; }
}
@media (max-height: 540px) and (orientation: landscape) {
  .contact-main { min-height: 0; padding-top: 0; }
  .contact-ink { width: 48%; padding: 64px 0 18px var(--contact-gutter); }
  .contact-ink h2 { font-size: 45px; margin-bottom: 12px; }
  .contact-image { inset: 0 0 0 45%; height: auto; }
  .contact-image::after { background: linear-gradient(90deg,#09111a,transparent 42%); }
  .contact-ink address { gap: 6px; }
  .contact-ink address a { min-height: 44px; }
}

/* Preserve readable dark lettering when the dock passes over the photo wall. */
.glass-dock[data-tone="light"] { --wash: rgb(255 252 245 / 64%); }
@media (max-width: 620px) and (min-height: 630px) {
  .contact-sheet:target .contact-main { padding-top: clamp(244px,39svh,365px); }
  .contact-sheet:target .contact-image { height: clamp(280px,49svh,440px); }
}
