.case-frame {
  max-width: 1216px;
}

.client-showcase {
  padding: clamp(35px, 4.3vw, 72px) 0 clamp(64px, 7.7vw, 126px);
  background: linear-gradient(180deg, var(--studio), #312e38 75%, #322f39);
}

.case-intro {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(25px, 3.1vw, 44px);
}

.case-intro h2, .firm-intro h2 {
  font-size: clamp(46px, 5.7vw, 83px);
  letter-spacing: -.072em;
  font-weight: 430;
  line-height: 1.02;
}

.case-intro em, .firm-intro em {
  font-family: "Iowan Old Style", Georgia, serif;
  font-weight: 400;
  letter-spacing: -.061em;
  color: #e2d3e7;
}

.case-intro > p, .firm-intro > p {
  color: #c9c3ce;
  font-size: clamp(15px, 1.12vw, 18px);
  letter-spacing: -.016em;
  line-height: 1.55;
  text-wrap: pretty;
}

.case-intro > p { max-width: 32ch; }

.client-desk {
  --desk-line: #514c57;
  --desk-muted: #c7c1cc;
  overflow: hidden;
  border: 1px solid #615a66;
  border-radius: 13px;
  background: #37343e;
  box-shadow: 0 17px 38px -25px #17141be0;
}

.desk-chrome {
  display: flex;
  align-items: center;
  gap: 17px;
  min-height: 49px;
  padding: 8px clamp(17px, 2.1vw, 30px);
  background: #302d36;
  border-bottom: 1px solid var(--desk-line);
}

.desk-brand, .desk-crumb, .desk-user, .rail-clients li,
.event-byline, .case-file-link, .file-receipt, .docket-person,
.docket-status, .footer-actions {
  display: flex;
  align-items: center;
}

.desk-brand {
  gap: calc(10em / 23);
  font-size: 15px;
  font-weight: 520;
  letter-spacing: -.07em;
  line-height: 1;
}

.desk-crumb {
  gap: 9px;
  padding-left: 18px;
  border-left: 1px solid #5d5661;
  color: var(--desk-muted);
  font-size: 12px;
}
.desk-crumb > span { color: #9b949e; }
.desk-crumb strong { color: #e1dce4; font-weight: 495; }
.desk-user { gap: 8px; margin-left: auto; color: #ded8e0; font-size: 12px; }

.case-avatar, .rail-monogram {
  display: inline-block;
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
}

.case-avatar {
  background: #746a71 url("./media/handoff-portraits.webp") 50% 50% / 300% 100% no-repeat;
  box-shadow: inset 0 0 0 1px #ffffff1c;
}
.face-alex { background-position: left center; }
.face-june { background-position: right center; }
.desk-user .case-avatar { width: 24px; height: 24px; }

.desk-panes {
  display: grid;
  grid-template-columns: minmax(137px, .67fr) minmax(278px, 1.7fr) minmax(260px, 1.26fr);
}

.desk-rail {
  padding: clamp(20px, 2.3vw, 34px) 10px;
  background: #322f38;
  border-right: 1px solid var(--desk-line);
}
.desk-rail > p {
  margin: 0 0 14px 10px;
  color: #c5bdc9;
  font-size: 12px;
  font-weight: 490;
}
.rail-clients, .matter-trail, .docket-entries { padding: 0; margin: 0; list-style: none; }
.rail-clients li {
  min-height: 42px;
  gap: 9px;
  margin-block: 4px;
  padding: 6px 9px;
  color: #c8c1cb;
  font-size: 13px;
  letter-spacing: -.013em;
}
.rail-clients .rail-current { border-radius: 7px; background: #49434e; color: #f3edf1; font-weight: 530; }
.rail-monogram {
  display: grid;
  place-items: center;
  border: 1px solid #615863;
  color: #cdbcc7;
  font: 15px/1 Georgia, serif;
}
.rail-wren { color: #c6c4b7; border-color: #5c5b56; }

.matter-feed { min-width: 0; padding: clamp(23px, 2.55vw, 38px) clamp(21px, 2.85vw, 43px); }
.matter-feed h3 {
  margin: 0;
  color: #f3eeed;
  font-size: clamp(24px, 2.2vw, 34px);
  line-height: 1.08;
  font-weight: 495;
  letter-spacing: -.058em;
}
.matter-date { margin-top: 6px; color: var(--desk-muted); font-size: 12px; }
.matter-trail { margin-top: clamp(21px, 2.2vw, 32px); }
.trail-event {
  position: relative;
  display: grid;
  grid-template-columns: 27px minmax(0, 1fr);
  gap: 11px;
}
.trail-event + .trail-event { margin-top: 19px; }
.trail-event:not(:last-child)::before {
  content: "";
  position: absolute;
  width: 1px;
  left: 13px;
  top: 32px;
  bottom: -14px;
  background: #59555d;
}
.channel-icon {
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  border-radius: 8px;
}
.channel-chat { background: #3e5049; color: #c4e6d1; }
.channel-mail { background: #514957; color: #e2d3ec; }
.channel-icon svg, .case-file-link svg, .docket-status svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.event-byline {
  min-height: 24px;
  justify-content: space-between;
  gap: 7px;
  color: #e1dbe4;
  font-size: 13px;
}
.event-byline strong { font-weight: 560; }
.event-byline strong span { color: var(--desk-muted); font-weight: 405; }
.event-byline time, .file-receipt time, .docket-person time { font-size: 12px; font-variant-numeric: tabular-nums; }
.event-byline time { color: #bdb6c0; }
.event-quote, .event-subject { max-width: 37ch; font-size: clamp(14px, 1.12vw, 17px); line-height: 1.53; letter-spacing: -.017em; }
.event-quote { color: #e1dbe2; }
.event-subject { color: #f5eee9; font-weight: 535; }
.case-file-link {
  width: fit-content;
  gap: 6px;
  margin-top: 7px;
  min-height: 30px;
  padding: 4px 9px;
  border-radius: 5px;
  border: 1px solid #68616c;
  background: #48434d;
  color: #eee7ed;
  font-size: 12px;
}
.case-file-link svg { width: 13px; height: 13px; }
.case-file-link > span { margin-left: 3px; color: #d6c5df; }
.case-file-link:hover, .case-file-link:focus-visible { background: #574e5b; border-color: #bcacc1; }

.sent-copy {
  min-width: 0;
  padding: clamp(19px, 2vw, 30px);
  display: flex;
  flex-direction: column;
  background: #424044;
  border-left: 1px solid #5e5861;
  scroll-margin-top: 30px;
}
.sent-copy:focus-visible { outline-offset: -4px; }
.sent-copy figcaption {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
  color: #f0eae8;
  font-size: 13px;
  font-weight: 540;
}
.sent-copy figcaption > :last-child { color: #cbc4c8; font-size: 12px; font-weight: 405; }
.paper-rack {
  flex: 1;
  display: grid;
  place-items: center;
  padding: 16px;
  background: #635e60;
  border-radius: 5px;
}
.proposal-paper {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: min(100%, 215px);
  aspect-ratio: .793;
  padding: 9.5%;
  background: #dcd3c3;
  color: #37372f;
  box-shadow: 0 2px 5px #251f2440, 0 7px 18px #211e2430;
}
.paper-date { border-top: 1px solid #999587; padding-top: 8px; color: #58554c; font-size: 10px; letter-spacing: .015em; }
.sent-copy .proposal-paper { container-type: inline-size; padding: 0; }
.sent-copy .paper-date { margin: 9cqi 9cqi 0; padding-top: 3.5cqi; font-size: 5cqi; }
.sent-copy .paper-title { margin: 10cqi 9cqi 6cqi; font-size: 12.4cqi; }
.sent-copy .paper-for { margin-inline: 9cqi; font-size: 5cqi; }
.sent-copy .paper-for strong { margin-top: 1cqi; font-size: 6cqi; }
.paper-title {
  position: relative;
  z-index: 1;
  margin: clamp(15px, 1.7vw, 27px) 0 12px;
  font: 400 clamp(22px, 2vw, 31px)/1.03 "Iowan Old Style", Georgia, serif;
  letter-spacing: -.055em;
}
.paper-for { color: #55554c; font-size: 10px; }
.paper-for strong { display: block; margin-top: 3px; color: #35362f; font-size: 12px; font-weight: 540; }
.paper-engraving {
  position: absolute;
  inset: auto 0 0;
  height: 22%;
  overflow: hidden;
  pointer-events: none;
  mask-image: linear-gradient(180deg, transparent, #000 17%);
}
.paper-engraving i {
  position: absolute;
  width: 155%;
  height: 205%;
  bottom: -148%;
  left: -21%;
  border: 1px solid #969581;
  border-radius: 50%;
  transform: rotate(-14deg);
}
.paper-engraving i:nth-child(2) { bottom: -132%; }
.paper-engraving i:nth-child(3) { bottom: -116%; }
.paper-engraving i:nth-child(4) { bottom: -100%; }
.paper-engraving i:nth-child(5) { bottom: -84%; }
.file-receipt { gap: 7px; margin-top: 12px; color: #e0dadc; font-size: 12px; }
.file-receipt strong { color: #eee9e7; font-weight: 555; }
.file-receipt .case-avatar { width: 22px; height: 22px; }
.file-receipt time { margin-left: auto; color: #d6ced2; }
.sent-copy:target .paper-rack { box-shadow: 0 0 0 2px #b8a2be; }

.copy-dialog {
  width: min(438px, calc(100% - 28px));
  max-height: calc(100dvh - 34px);
  padding: clamp(15px, 2vw, 24px);
  background: #3b383e;
  border-color: #726a73;
  box-shadow: 0 16px 70px #19151f80;
}
.copy-dialog header { display: flex; justify-content: space-between; align-items: center; }
.copy-dialog header p { margin: 0; color: #cec6ce; font-size: 12px; }
.copy-dialog h2 { margin: 3px 0 0; color: #f2ecee; font-size: 22px; font-weight: 500; letter-spacing: -.045em; }
.copy-close { width: 40px; height: 40px; border: 1px solid #766b78; border-radius: 50%; font-size: 23px; color: #ece4eb; line-height: 1; }
.copy-close:hover { background: #514953; }
.reader-sheet { display: grid; place-items: center; padding: clamp(13px, 2vw, 23px); margin-top: 18px; border-radius: 5px; background: #615c5d; }
.reader-sheet .proposal-paper { width: min(100%, 276px); padding: clamp(20px, 2.4vw, 30px); }
.reader-sheet .paper-date { padding-top: 10px; margin: 0; color: #58554c; font-size: 11px; }
.reader-sheet .paper-title { font: 400 clamp(27px, 3.1vw, 36px)/1.04 "Iowan Old Style", Georgia, serif; color: #37372f; margin: 26px 0 14px; }
.reader-sheet .paper-for { margin: 0; color: #55554c; font-size: 11px; }
.reader-sheet .paper-for strong { font-size: 14px; }
.copy-dialog .reader-history { margin: 15px 0 0; font-size: 12px; color: #e7e0e4; line-height: 1.7; }
.reader-history span { color: #cbc2cd; margin-right: 7px; font-variant-numeric: tabular-nums; }

@media (prefers-reduced-motion: no-preference) {
  .copy-arrived .proposal-paper { animation: file-settles .72s cubic-bezier(.2,.7,.24,1) both; }
  @keyframes file-settles { from { transform: translateY(-5px); } to { transform: none; } }
}

.firm-today {
  background: linear-gradient(180deg, #322f39, #2b2832);
  padding-bottom: clamp(66px, 7vw, 108px);
}
.firm-spread {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.35fr);
  gap: clamp(32px, 7vw, 112px);
  align-items: center;
  padding-top: clamp(47px, 5.6vw, 88px);
  border-top: 1px solid #514b55;
}
.firm-intro h2 { font-size: clamp(47px, 5.4vw, 80px); }
.firm-intro em { color: #dacecc; }
.firm-intro > p { max-width: 28ch; margin-top: 15px; }
.partner-docket { min-width: 0; }
.docket-person { gap: 11px; padding: 0 0 17px; }
.docket-person .case-avatar { width: 40px; height: 40px; }
.docket-person h3 { font-size: 16px; font-weight: 540; letter-spacing: -.03em; }
.docket-person p { margin-top: 1px; font-size: 12px; color: #c7c0ca; }
.docket-person time { margin-left: auto; color: #d0c8d0; }
.docket-entries li {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
  min-height: 73px;
  padding: 12px 15px;
  border-bottom: 1px solid #514c55;
}
.docket-entries .docket-priority { border: 1px solid #786c62; border-radius: 6px; background: #423d3f; }
.docket-entries small { display: block; margin-bottom: 4px; color: #c7bfc9; font-size: 12px; }
.docket-entries strong, .docket-entries a { font-size: clamp(16px, 1.32vw, 20px); letter-spacing: -.037em; font-weight: 495; }
.docket-entries a > span { font-size: .78em; color: #a89bab; }
.docket-entries a:hover { text-decoration: underline; text-underline-offset: .2em; }
.docket-status { gap: 7px; font-size: 12px; line-height: 1.4; color: #cbc4ce; }
.docket-priority .docket-status { color: #f0d9bb; }
.docket-status i { width: 6px; height: 6px; flex: none; background: #d9b88f; border-radius: 50%; }
.docket-status svg { width: 14px; height: 14px; color: #b9d6c3; }
.case-footer { background: #2b2832; }
.case-footer .frame { padding-block: 23px; }
.footer-actions { gap: clamp(14px, 2.3vw, 38px); }
.footer-actions .hero-link { margin: 0; }

@media (max-width: 1000px) {
  .desk-panes { grid-template-columns: minmax(0, 1.24fr) minmax(0, 1fr); }
  .desk-rail { display: none; }
  .case-intro > p { max-width: 27ch; }
  .firm-spread { grid-template-columns: .76fr 1.35fr; gap: 32px; }
}

@media (max-width: 720px) {
  .case-intro { display: block; }
  .case-intro > p { max-width: 43ch; margin-top: 10px; }
  .desk-panes { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); }
  .desk-chrome { gap: 10px; padding-inline: 14px; }
  .desk-crumb { padding-left: 10px; }
  .matter-feed, .sent-copy { padding: 18px 14px; }
  .paper-rack { padding: 11px; }
  .firm-spread { display: block; }
  .firm-intro h2 br { display: none; }
  .firm-intro > p { max-width: none; margin-top: 9px; }
  .partner-docket { margin-top: 30px; }
}

@media (max-width: 560px) {
  .client-showcase { padding-top: 25px; }
  .client-desk { border-radius: 10px; }
  .desk-panes { display: block; }
  .desk-brand { font-size: 0; gap: 0; }
  .desk-brand .brand-mark { font-size: 15px; }
  .desk-chrome { min-height: 43px; }
  .matter-feed { padding: 21px 17px; }
  .matter-trail { margin-top: 17px; }
  .trail-event + .trail-event { margin-top: 13px; }
  .trail-event:not(:last-child)::before { bottom: -9px; }
  .sent-copy { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(100px, .85fr); grid-template-rows: auto 1fr; gap: 0 14px; padding: 16px 17px; border: 0; border-top: 1px solid #5e5861; }
  .sent-copy figcaption { display: flex; flex-direction: column-reverse; justify-content: end; align-items: start; gap: 6px; margin: 0; padding-top: 5px; }
  .sent-copy figcaption > :first-child { font-size: 17px; letter-spacing: -.035em; }
  .paper-rack { grid-column: 2; grid-row: 1 / 3; padding: 8px; max-width: 155px; width: 100%; justify-self: end; }
  .proposal-paper { width: min(100%, 112px); }
  .file-receipt { display: grid; grid-template-columns: auto 1fr; align-self: start; justify-self: start; column-gap: 5px; row-gap: 2px; font-size: 11px; }
  .file-receipt .case-avatar { width: 20px; height: 20px; }
  .file-receipt time { grid-column: 2; margin: 0; font-size: 11px; }
  .docket-entries li { padding-inline: 10px; }
  .docket-status { font-size: 11px; }
}

@media (max-width: 390px) {
  .desk-user { gap: 5px; }
  .desk-crumb { gap: 5px; }
  .docket-entries li { grid-template-columns: 1fr; gap: 5px; }
  .docket-status { font-size: 12px; }
  .case-footer .frame { flex-wrap: wrap; gap: 17px; }
}
