#catalogue {
  display: grid; grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr);
  align-items: stretch; gap: clamp(35px, 4.7vw, 78px);
  max-width: 1460px; margin: auto; padding: clamp(26px, 4vw, 62px) clamp(22px, 5vw, 80px);
  scroll-margin-top: var(--header);
}
.cover {
  position: relative; isolation: isolate; min-height: 540px; overflow: hidden; border-radius: 3px;
  background: #284972 var(--cover) 8% 82% / cover no-repeat;
  box-shadow: 0 2px 5px #40290c30, 0 14px 32px -20px #40301670;
}
.cover::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg,#172e52ed 0%,#1c395bdc 16%,#1b3859a1 28%,#172d4c0d 52%,transparent 70%);
}
.cover-copy { padding: clamp(26px, 3.1vw, 51px); color: #fff4dd }
.cover h1 { margin: 0; font: 650 clamp(44px, 4.6vw, 73px)/1.16 var(--serif); letter-spacing: .025em }
.cover p { margin: 17px 0 0; font-size: clamp(15px, 1.15vw, 18px); line-height: 1.75; color: #fff4e4 }
.work-list { margin: 0; padding: 0; list-style: none; display: grid; grid-template-rows: repeat(5, 1fr); border-top: 2px solid var(--ink) }
.work-list li { min-width: 0; border-bottom: 1px solid var(--rule) }
.work-link {
  display: grid; grid-template-columns: clamp(82px, 8vw, 132px) minmax(0, 1fr) auto;
  align-items: center; column-gap: clamp(14px, 1.8vw, 30px); height: 100%;
  padding: clamp(15px, 1.6vw, 24px) 3px; scroll-margin: 12px;
}
.work-picture { display: grid; justify-items: center }
.work-picture img { display: block; width: auto; height: auto; max-width: 100%; max-height: 74px; box-shadow: 0 3px 5px #38230d44 }
.work-label { display: grid; gap: 4px }
.category { color: var(--ochre); font-size: 12px; font-weight: 600; line-height: 1.5; letter-spacing: .04em }
.work-label strong { font: 650 clamp(21px, 1.85vw, 30px)/1.35 var(--serif); overflow-wrap: anywhere }
.work-lead { color: var(--muted); line-height: 1.6; font-size: 14px }
.row-arrow { color: var(--ochre); font-size: 23px; line-height: 1; transition: transform .18s }
.work-link:hover strong, .work-link:focus-visible strong { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px }
.work-link:hover .row-arrow { transform: translate(2px,-2px) }

/* The original hashes work before scripts run, including links to a section inside a case. */
@supports selector(article:has(:target)) {
  .case:not(:target):not(:has(:target)) { display: none }
  main:has(.case:target,.case :target) #catalogue { display: none }
}
.case { scroll-margin-top: var(--header) }
.case:focus:not(:focus-visible), #catalogue:focus:not(:focus-visible), main:focus { outline: 0 }
.case-banner {
  background-color: #22436a; color: #fff4dd;
  background-image: linear-gradient(100deg,#173354f5 10%,#234871e8 64%,#224770d1),var(--cover);
  background-size: cover; background-position: center,center 33%;
  border-bottom: 4px solid #af7950;
}
.banner-inner {
  display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(190px, .8fr); align-items: center;
  gap: clamp(24px, 6vw, 110px); max-width: 1230px; margin: auto; padding: 30px clamp(22px, 5vw, 78px) 35px;
}
.back { display: inline-block; font-size: 13px; color: #f3deba; padding: 2px 0 8px }
.back:hover,.case-end a:hover,.contact-links a:hover { text-decoration: underline; text-underline-offset: 4px }
.banner-copy .category { margin: 18px 0 7px; color: #ffd9a5 }
.banner-copy h1 { font: 650 clamp(33px, 3.4vw, 54px)/1.23 var(--serif); margin: 0; text-wrap: balance }
.case-lead { font-size: clamp(16px, 1.45vw, 22px); line-height: 1.6; margin: 12px 0 0; color: #fff2dd }
.banner-art { display: grid; place-items: center }
.banner-art img { width: 100%; height: clamp(110px, 15vw, 195px); object-fit: contain; filter: drop-shadow(0 5px 4px #1021399e) }
.case-actions { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 9px }
.case-actions a { display: inline-flex; align-items: center; min-height: 38px; padding: 6px 14px; color: #223b4e; font-weight: 600; font-size: 14px; border: 1px solid #f3dfba; border-radius: 4px; background: #f8ecd4 }
.case-actions a + a { background: transparent; color: #fff3dc }
.case-actions a:hover { box-shadow: 0 0 0 1px #efdabb }
.reading-layout {
  display: grid; grid-template-columns: minmax(145px, .46fr) minmax(0, 1.75fr); align-items: start;
  gap: clamp(26px, 5.5vw, 85px); max-width: 1230px; margin: auto; padding: clamp(30px, 4.5vw, 68px) clamp(22px, 5vw, 78px);
}
.reading-layout aside { position: sticky; top: 24px; min-width: 0; max-height: calc(100svh - 48px); overflow-y: auto }
.contents { border-top: 2px solid var(--ink) }
.contents summary { padding: 12px 0; font-weight: 650; font-size: 15px }
.contents nav { display: grid; gap: 1px; padding-bottom: 12px }
.contents a { padding: 6px 5px; font-size: 14px; color: var(--muted); overflow-wrap: anywhere }
.contents a:hover,.contents a[aria-current="location"] { color: var(--ochre); text-decoration: underline; text-underline-offset: 4px }
.case-body { min-width: 0; font-size: 16px; line-height: 1.85; overflow-wrap: anywhere }
.case-body > section { border-top: 1px solid var(--rule); margin-top: 35px; padding-top: 24px; scroll-margin-top: 18px }
.case-body > section:first-child { margin: 0; padding-top: 0; border: 0 }
.case-body h2 { font: 650 clamp(23px, 2vw, 32px)/1.4 var(--serif); margin: 0 0 13px; text-wrap: pretty }
.case-body p { margin: 9px 0 }
.case-body h3 { font-size: 17px; line-height: 1.55; margin: 17px 0 4px }
.case-body a { text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--ochre) }
.entries > div { display: grid; grid-template-columns: minmax(135px, .78fr) minmax(0, 1.6fr); gap: 16px; border-bottom: 1px solid var(--rule); padding: 13px 0 }
.entries > div:last-child { border-bottom: 0 }
.entries h3,.entries p { margin: 0 }
.entries p { color: var(--muted) }
.shots { display: grid; gap: 22px; margin-top: 18px }
.shots figure { margin: 0; min-width: 0 }
.shots figure a { display: block }
.shots img { display: block; max-width: 100%; width: 100%; height: auto; padding: 5px; background: #faf5e8; border: 1px solid var(--rule); border-radius: 3px; box-shadow: 0 3px 8px #32271415 }
.shots figcaption { margin: 7px 0 0; color: var(--muted); font-size: 14px; line-height: 1.6 }
.phone-shots { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px }
.case-notes details { border-bottom: 1px solid var(--rule) }
.case-notes summary { padding: 14px 4px; min-height: 46px; color: var(--ink); font-weight: 650 }
.case-notes summary::marker,.contents summary::marker { color: var(--ochre) }
.case-notes details[open] > div { padding: 0 0 16px }
.table-wrap { overflow-x: auto }
.case-body table { width: 100%; border-collapse: collapse; text-align: left; font-size: 14px }
.case-body caption { text-align: left; font-weight: 650; padding-bottom: 8px }
.case-body th,.case-body td { padding: 8px; border-bottom: 1px solid var(--rule); vertical-align: top }
.case-end { display: flex; align-items: center; justify-content: space-between; gap: 16px }
.case-end { margin-top: 38px; border-top: 2px solid var(--ink); padding-top: 17px; font-size: 14px; flex-wrap: wrap }
.case-end a { text-decoration: none; font-weight: 600 }
@media (min-width: 1500px) { .cover { min-height: 650px } }
@media (max-width: 850px) {
  #catalogue { gap: 24px; padding: 24px; grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr) }
  .work-link { grid-template-columns: 69px minmax(0,1fr) auto; column-gap: 12px }
  .work-picture img { max-height: 58px }
  .reading-layout { grid-template-columns: minmax(0,1fr); gap: 20px; padding-block: 24px 36px }
  .reading-layout aside { position: static; max-height: none; overflow: visible }
  .contents { border-bottom: 1px solid var(--rule) }
  .contents nav { grid-template-columns: repeat(2,minmax(0,1fr)) }
}
@media (max-width: 650px) {
  #catalogue { display: block; padding: 16px }
  .cover { min-height: 0; height: clamp(175px,45vw,235px); background-size: 78% auto; background-position: right 73%; box-shadow: none }
  .cover::before { background: linear-gradient(90deg,#1b3758 15%,#1d3d60f2 38%,#234567bd 58%,transparent 89%) }
  .cover-copy { padding: 20px; max-width: 90% }
  .cover h1 { font-size: clamp(34px,8vw,44px) }
  .cover p { margin-top: 10px; font-size: 13px; line-height: 1.6 }
  .work-list { margin-top: 18px }
  .work-link { grid-template-columns: clamp(58px,16vw,88px) minmax(0,1fr) auto; min-height: 95px; padding: 12px 1px }
  .work-label { gap: 3px }
  .work-label strong { font-size: 19px }
  .work-lead { font-size: 13px; text-wrap: balance }
  .row-arrow { font-size: 19px }
  .banner-inner { grid-template-columns: minmax(0,1fr) clamp(72px,22vw,135px); gap: 12px; padding: 18px 18px 24px }
  .banner-copy .category { margin-top: 11px }
  .banner-copy h1 { font-size: clamp(27px,6.5vw,36px) }
  .case-lead { font-size: 15px }
  .category { font-size: 11px }
  .case-actions { margin-top: 12px }
  .reading-layout { padding-inline: 18px }
  .entries > div { display: block; padding: 11px 0 }
  .entries h3 { margin-bottom: 4px }
  .phone-shots { grid-template-columns: 1fr; gap: 18px }
  .phone-shots figure { width: min(100%,285px); margin-inline: auto }
}
@media (prefers-reduced-motion: reduce) { .row-arrow { transition: none } }
