/* Project and profile pages. Artwork always retains its original proportions. */
.breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 38px;
  padding-block: 8px;
  color: var(--muted);
  font-size: 12px;
  transition: color .2s ease;
}
.breadcrumb:hover { color: var(--pink-deep); }
.detail-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 60px;
  align-items: end;
  padding: 40px 0 56px;
  animation: detail-arrive .65s ease both;
}
.detail-head > div { min-width: 0; }
.detail-head .eyebrow { color: var(--pink-deep); }
.detail-head h1 {
  max-width: 13ch;
  margin: 22px 0 20px;
  font-size: clamp(58px, 7.4vw, 108px);
  font-weight: 750;
  line-height: .99;
  letter-spacing: -.065em;
  overflow-wrap: break-word;
  text-wrap: balance;
}
.detail-subtitle { color: var(--muted); font-size: 16px; line-height: 1.75; }
.detail-meta { margin: 0 0 3px; }
.detail-meta > div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  line-height: 1.6;
}
.detail-meta > div:first-child { border-top: 1px solid var(--line); }
.detail-meta dt { color: var(--muted); }
.detail-meta dd { margin: 0; text-align: right; }
.project-cover { scroll-margin-top: 150px; }
.image-button {
  display: block;
  position: relative;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: #fff;
  text-align: left;
  cursor: zoom-in;
}
.project-cover .image-button > img,
.project-sheet .image-button > img {
  display: block;
  width: 100%;
  height: auto;
  max-height: none;
  aspect-ratio: auto;
  object-fit: contain;
  transform: none;
}
.image-button .zoom-tag {
  position: absolute;
  right: 24px;
  bottom: 24px;
  padding: 11px 17px;
  border: 1px solid rgba(255,255,255,.55);
  border-radius: 999px;
  background: var(--pink-light);
  color: var(--ink);
  font-size: 11px;
  font-weight: 500;
  box-shadow: 0 4px 20px #21131b0b;
  transition: background .2s ease, transform .2s ease;
}
.image-button:hover .zoom-tag { background: #fff; transform: translateY(-2px); }
.project-story {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr);
  gap: 100px;
  padding: 78px 0 72px;
}
.story-heading .eyebrow { color: var(--pink-deep); }
.story-heading h2,
.profile-lines h2 {
  margin-top: 18px;
  font-size: 40px;
  font-weight: 650;
  letter-spacing: -.055em;
  line-height: 1.2;
}
.story-content { min-width: 0; }
.story-content > p { color: var(--ink); font-size: 17px; line-height: 1.95; }
.story-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; margin-top: 34px; }
.story-columns h3 { margin-bottom: 12px; font-size: 13px; font-weight: 650; }
.story-columns p { color: var(--muted); font-size: 13px; line-height: 1.95; }
.project-document-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.project-document-actions .button { gap: 22px; }
.document-meta { margin-top: 12px; color: var(--muted); font-size: 11px; line-height: 1.8; }
.project-nav {
  position: sticky;
  top: 12px;
  z-index: 8;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin: 0 -20px 24px;
  padding: 15px 20px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: #fafaf7f5;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.project-nav > span { flex-shrink: 0; font-size: 12px; font-weight: 600; }
.project-nav small { margin-left: 10px; color: var(--muted); font-size: 9px; font-weight: 400; letter-spacing: .08em; }
.project-nav > div { display: flex; gap: 6px; min-width: 0; overflow-x: auto; padding: 4px; scrollbar-width: thin; scrollbar-color: var(--pink) transparent; }
.project-nav button {
  flex-shrink: 0;
  min-height: 40px;
  padding: 10px 15px;
  border: 0;
  border-radius: 999px;
  background: var(--pink-light);
  color: var(--ink);
  font: inherit;
  font-size: 11px;
  white-space: nowrap;
  transition: background .2s ease;
}
.project-nav button:hover { background: #e8c4d1; }
.project-nav button:focus-visible { outline: 2px solid var(--pink-deep); outline-offset: 2px; }
.project-pages { padding-top: 0; }
.project-sheet { margin: 0 0 46px; scroll-margin-top: 130px; }
.project-sheet figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0;
  font-size: 12px;
  line-height: 1.6;
}
.page-divider { margin: 0 12px; color: var(--pink-deep); }
.sheet-count { flex-shrink: 0; color: var(--muted); font-size: 10px; font-variant-numeric: tabular-nums; letter-spacing: .08em; }
.project-download {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 44px;
  margin-top: 60px;
  border-radius: 28px;
  background: var(--pink-light);
}
.project-download .eyebrow { color: var(--pink-deep); }
.project-download h2 { margin-top: 13px; font-size: clamp(25px, 3vw, 40px); font-weight: 650; letter-spacing: -.05em; line-height: 1.35; }
.project-download .project-document-actions { margin-top: 0; }
.project-download .document-meta { margin-bottom: 0; }
.next-project {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 65px 0 72px;
}
.next-project > div { min-width: 0; }
.next-project .eyebrow { color: var(--muted); }
.next-project h2 { margin-top: 16px; max-width: 18ch; font-size: clamp(34px, 4.3vw, 62px); font-weight: 700; letter-spacing: -.055em; line-height: 1.12; overflow-wrap: break-word; transition: color .2s ease; }
.next-project:hover h2 { color: var(--pink-deep); }
.next-project .circle-link { width: 74px; height: 74px; border: 0; background: var(--pink-light); color: var(--ink); flex-shrink: 0; }
.next-project:hover .circle-link { background: var(--pink); }

/* A typographic profile, with no portrait or invented personal details. */
.about-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
  align-items: end;
  gap: 80px;
  padding: 82px 0 90px;
  animation: detail-arrive .65s ease both;
}
.about-hero .eyebrow { color: var(--pink-deep); }
.about-hero h1 { margin: 28px 0 0; font-size: clamp(54px, 6.7vw, 92px); font-weight: 750; letter-spacing: -.075em; line-height: 1.2; }
.about-hero h1 span { color: var(--pink-deep); }
.about-summary { max-width: 440px; padding-bottom: 5px; }
.about-summary .intro { font-size: 16px; line-height: 1.95; color: var(--muted); }
.about-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.about-actions .button { gap: 22px; }
.about-actions + .subnote { margin-top: 12px; color: var(--muted); font-size: 11px; line-height: 1.8; }
.about-summary .text-link { margin-top: 28px; }
.profile-lines {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr);
  gap: 100px;
  padding: 56px 0 76px;
  border-top: 1px solid var(--line);
}
.profile-lines .eyebrow { color: var(--pink-deep); }
.profile-lines > div { min-width: 0; }
.profile-lines dl { margin: 0; }
.profile-row { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 24px; padding: 22px 0; border-bottom: 1px solid var(--line); font-size: 14px; line-height: 1.85; }
.profile-row:first-child { padding-top: 0; }
.profile-row dt { color: var(--muted); }
.profile-row dd { margin: 0; }
.profile-email { overflow-wrap: anywhere; text-decoration: underline; text-decoration-color: var(--pink); text-underline-offset: 5px; }
.profile-email:hover { color: var(--pink-deep); }
.pending-tag { display: inline-block; margin-left: 9px; padding: 3px 9px; border-radius: 999px; background: var(--pink-light); color: var(--pink-deep); font-size: 10px; line-height: 1.5; white-space: nowrap; vertical-align: middle; }
.direction-section { padding: 48px 44px 45px; margin: 0; border-radius: 28px; background: var(--pink-light); }
.direction-section > .eyebrow { color: var(--pink-deep); }
.direction-section > h2 { margin: 15px 0 38px; font-size: clamp(27px, 3.1vw, 43px); font-weight: 650; letter-spacing: -.055em; line-height: 1.35; }
.direction-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px; }
.direction-item { min-width: 0; border-top: 1px solid #c9a5b3; padding-top: 22px; }
.direction-item .tiny-label { color: #6e4f5b; font-size: 10px; letter-spacing: .1em; }
.direction-item h3 { margin-top: 22px; font-size: 25px; font-weight: 600; letter-spacing: -.035em; }
.direction-item p { margin-top: 13px; color: #66545c; font-size: 13px; line-height: 1.9; }
.direction-item .status { display: inline-block; margin-top: 22px; font-size: 10px; color: #6e4052; line-height: 1.8; }

/* Native dialogs retain Escape, focus management, and background inertness. */
body:has(dialog[open]) { overflow: hidden; }
.contact-dialog {
  width: min(540px, calc(100% - 40px));
  max-width: none;
  max-height: calc(100dvh - 40px);
  margin: auto;
  padding: 34px;
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid #fff;
  border-radius: 28px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 30px 120px #33132726;
}
.contact-dialog::backdrop { background: #2c182b66; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.contact-dialog[open], .image-dialog[open] { animation: detail-dialog-arrive .25s ease both; }
.dialog-top { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.dialog-top .eyebrow { color: var(--pink-deep); }
.icon-button { display: grid; place-items: center; width: 42px; height: 42px; flex-shrink: 0; padding: 0; border: 0; border-radius: 50%; background: var(--pink-light); color: var(--ink); font-size: 27px; font-weight: 400; line-height: 1; transition: background .2s ease; }
.icon-button:hover { background: #e6bfd0; }
.contact-dialog h2 { margin-top: 35px; font-size: 42px; font-weight: 700; letter-spacing: -.065em; line-height: 1.25; }
.contact-dialog > p { margin-top: 15px; color: var(--muted); font-size: 13px; line-height: 1.85; }
.contact-placeholder { margin: 30px 0 22px; padding: 25px; border: 0; border-radius: 20px; background: var(--pink-light); }
.contact-placeholder .tiny-label { color: #6e4f5b; font-size: 11px; }
.contact-placeholder strong { display: block; margin-top: 13px; font-size: clamp(19px, 3.7vw, 27px); font-weight: 550; letter-spacing: -.035em; line-height: 1.45; }
.contact-placeholder strong a { overflow-wrap: anywhere; }
.contact-placeholder strong a:hover { text-decoration: underline; text-underline-offset: 5px; }
.contact-placeholder p { margin-top: 12px; color: #66545c; font-size: 12px; line-height: 1.85; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.contact-actions .button { flex: 1; gap: 18px; min-width: 130px; white-space: nowrap; }
.contact-dialog .dialog-note { min-height: 3.6em; font-size: 11px; }
.image-dialog {
  width: min(1400px, calc(100% - 40px));
  max-width: none;
  max-height: calc(100dvh - 32px);
  padding: 19px 22px 17px;
  margin: auto;
  border: 0;
  border-radius: 20px;
  background: var(--paper);
  color: var(--ink);
  overflow: auto;
  overscroll-behavior: contain;
  box-shadow: 0 35px 120px #17171940;
}
.image-dialog::backdrop { background: #171719c9; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.lightbox-top { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 15px; font-size: 12px; line-height: 1.7; }
#image-title { min-width: 0; overflow-wrap: anywhere; }
.image-dialog #lightbox-image { display: block; width: 100%; height: auto; max-height: calc(100dvh - 175px); aspect-ratio: auto; object-fit: contain; background: #fff; }
.image-dialog > p { margin: 14px 0 0; text-align: center; color: var(--muted); font-size: 11px; line-height: 1.8; }
.image-dialog > p a { text-decoration: underline; text-underline-offset: 4px; }
.image-dialog > p a:hover { color: var(--pink-deep); }

@keyframes detail-arrive {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes detail-dialog-arrive {
  from { opacity: 0; transform: translateY(8px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 1000px) {
  .detail-head { grid-template-columns: minmax(0, 1fr) 230px; gap: 32px; padding: 36px 0 42px; }
  .detail-head h1 { font-size: clamp(52px, 7.5vw, 78px); }
  .project-story, .profile-lines { grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: 45px; }
  .project-story { padding: 58px 0; }
  .story-heading h2, .profile-lines h2 { font-size: 33px; }
  .story-content > p { font-size: 15px; }
  .story-columns { gap: 25px; }
  .project-nav { top: 8px; margin-inline: -10px; padding: 14px; flex-direction: column; align-items: flex-start; gap: 7px; border-radius: 23px; }
  .project-nav > div { max-width: 100%; width: 100%; }
  .project-nav button { padding-inline: 14px; }
  .project-sheet { scroll-margin-top: 160px; }
  .project-download { padding: 34px; gap: 25px; align-items: flex-start; flex-direction: column; }
  .project-download h2 { font-size: 34px; }
  .about-hero { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); padding: 62px 0; gap: 38px; }
  .about-hero h1 { font-size: clamp(50px, 6.5vw, 69px); }
  .about-summary .intro { font-size: 14px; }
  .about-actions { gap: 10px; }
  .about-actions .button { gap: 15px; }
  .profile-lines { padding: 45px 0 60px; }
  .profile-row { grid-template-columns: 90px minmax(0,1fr); gap: 20px; font-size: 13px; }
  .direction-section { padding: 35px 30px; }
  .direction-grid { gap: 24px; }
  .direction-item h3 { font-size: 23px; }
  .direction-item p { font-size: 12px; }
}

@media (max-width: 680px) {
  .breadcrumb { margin-top: 22px; font-size: 11px; }
  .detail-head { grid-template-columns: 1fr; gap: 27px; padding: 26px 0 30px; }
  .detail-head h1 { max-width: 15ch; font-size: clamp(43px, 12vw, 74px); margin: 17px 0; letter-spacing: -.06em; line-height: 1.02; }
  .detail-subtitle { font-size: 14px; }
  .detail-meta { margin: 0; }
  .detail-meta > div { padding: 11px 0; font-size: 11px; }
  .image-button .zoom-tag { right: 12px; bottom: 12px; padding: 8px 12px; font-size: 10px; }
  .project-story, .profile-lines { grid-template-columns: 1fr; gap: 27px; }
  .project-story { padding: 36px 0 40px; }
  .story-heading h2, .profile-lines h2 { margin-top: 12px; font-size: 29px; }
  .story-content > p { font-size: 14px; line-height: 1.9; }
  .story-columns { margin-top: 27px; gap: 23px; }
  .story-columns h3 { font-size: 12px; margin-bottom: 9px; }
  .story-columns p { font-size: 12px; }
  .project-document-actions { margin-top: 26px; gap: 10px; }
  .project-document-actions .button { padding-inline: 15px; gap: 16px; font-size: 11px; }
  .document-meta { margin-top: 10px; font-size: 10px; }
  .project-nav { top: 5px; margin: 0 -7px 10px; padding: 12px 10px; gap: 5px; border-radius: 18px; }
  .project-nav > span { padding-left: 5px; font-size: 11px; }
  .project-nav small { font-size: 8px; }
  .project-nav button { padding: 10px 13px; font-size: 10px; }
  .project-sheet { margin-bottom: 24px; scroll-margin-top: 150px; }
  .project-sheet figcaption { gap: 12px; padding: 14px 0; font-size: 11px; }
  .page-divider { margin-inline: 8px; }
  .sheet-count { font-size: 9px; }
  .project-download { margin-top: 34px; padding: 27px 22px; border-radius: 22px; gap: 24px; }
  .project-download h2 { font-size: 27px; }
  .project-download .project-document-actions { gap: 9px; }
  .project-download .project-document-actions .button { padding-inline: 12px; gap: 10px; }
  .next-project { padding: 38px 0 45px; gap: 18px; }
  .next-project h2 { margin-top: 12px; font-size: clamp(28px, 7.5vw, 42px); }
  .next-project .circle-link { width: 53px; height: 53px; }
  .about-hero { grid-template-columns: 1fr; gap: 32px; padding: 40px 0 43px; }
  .about-hero h1 { margin-top: 23px; font-size: clamp(46px, 11.5vw, 71px); letter-spacing: -.07em; line-height: 1.18; }
  .about-summary { max-width: 480px; padding: 0; }
  .about-summary .intro { font-size: 14px; }
  .about-actions { margin-top: 24px; }
  .about-actions + .subnote { font-size: 10px; }
  .about-summary .text-link { margin-top: 22px; }
  .profile-lines { padding: 34px 0 42px; }
  .profile-row { grid-template-columns: 76px minmax(0, 1fr); gap: 16px; padding: 17px 0; font-size: 12px; }
  .pending-tag { font-size: 9px; margin-left: 6px; padding: 3px 7px; }
  .direction-section { padding: 28px 23px 30px; border-radius: 22px; }
  .direction-section > h2 { margin: 13px 0 28px; font-size: 27px; }
  .direction-grid { grid-template-columns: 1fr; gap: 29px; }
  .direction-item { padding-top: 19px; }
  .direction-item h3 { margin-top: 15px; font-size: 24px; }
  .direction-item p { font-size: 13px; margin-top: 11px; }
  .direction-item .status { margin-top: 16px; }
  .contact-dialog { width: calc(100% - 28px); max-height: calc(100dvh - 28px); padding: 24px; border-radius: 23px; }
  .contact-dialog h2 { margin-top: 27px; font-size: 34px; }
  .contact-dialog > p { font-size: 12px; }
  .contact-placeholder { padding: 21px 18px; margin: 24px 0 20px; border-radius: 17px; }
  .contact-placeholder strong { font-size: clamp(18px, 5.7vw, 26px); }
  .contact-placeholder p { font-size: 11px; }
  .contact-actions { gap: 10px; }
  .contact-actions .button { min-width: 110px; padding-inline: 12px; gap: 10px; font-size: 11px; }
  .contact-dialog .dialog-note { margin-top: 14px; font-size: 10px; }
  .image-dialog { width: calc(100% - 16px); padding: 13px; max-height: calc(100dvh - 20px); border-radius: 16px; }
  .lightbox-top { gap: 15px; margin-bottom: 12px; font-size: 11px; }
  .image-dialog #lightbox-image { max-height: calc(100dvh - 160px); }
  .image-dialog > p { font-size: 10px; margin-top: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .detail-head, .about-hero, .contact-dialog[open], .image-dialog[open] { animation: none; }
  .image-button .zoom-tag, .project-nav button, .next-project h2, .icon-button { transition: none; }
  .image-button:hover .zoom-tag { transform: none; }
}
