.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 19px; }
.hero-case-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 9px;
  color: var(--gold-ink);
  font-size: .82rem;
  font-weight: 600;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}
.hero-case-link:hover { color: var(--navy); }

.situation-shortcuts { margin-block: 32px 0; }
.situation-shortcuts > p { color: var(--gold-light); font-size: .82rem; font-weight: 600; }
.situation-buttons { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; margin-top: 9px; }
.situation-buttons button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 55px;
  padding: 11px 14px;
  color: var(--ivory);
  background: var(--midnight-panel);
  border: 1px solid var(--midnight-line);
  text-align: left;
  font-size: .84rem;
  line-height: 1.4;
  transition: background-color .18s ease, border-color .18s ease;
}
.situation-buttons .diagonal-arrow { color: var(--gold-light); }
.situation-buttons button:hover { background: var(--midnight-hover); border-color: var(--gold-light); }
.situation-shortcuts + .filters { margin-top: 22px; }

.case-showcase { background: var(--ivory); scroll-margin-top: 18px; }
.case-showcase-intro > p:last-child {
  margin-top: 16px;
  max-width: 490px;
  font-size: .95rem;
  color: var(--muted);
}
.case-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px 14px;
  margin-top: 26px;
}
.case-cover {
  position: relative;
  isolation: isolate;
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 0 10px 10px;
  margin-top: 9px;
  background: var(--midnight-panel);
  border: 1px solid #aa8a56;
  color: var(--ink);
  text-decoration: none;
  box-shadow: 0 14px 28px #1e2b3517;
  transition: box-shadow .18s ease;
}
.case-cover-featured { grid-column: span 2; }
.case-cover::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -9px;
  left: 10px;
  width: 45%;
  max-width: 132px;
  height: 9px;
  background: var(--midnight-panel);
  border: 1px solid #aa8a56;
  border-bottom: none;
}
.case-cover:hover { box-shadow: 0 17px 33px #1e2b3533; }
.case-cover-topic {
  display: block;
  padding: 11px 3px 9px;
  color: var(--gold-light);
  font-size: .65rem;
  letter-spacing: .10em;
  text-transform: uppercase;
  font-weight: 600;
  line-height: 1.4;
}
.case-cover-page {
  display: flex;
  min-height: 151px;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding: clamp(14px, 1.7vw, 24px);
  background: var(--paper);
  border: 1px solid #c1a16e;
  outline: 1px solid #c1a16e80;
  outline-offset: -5px;
}
.case-cover-title {
  font: 400 clamp(1.38rem, 2vw, 1.8rem)/1.07 var(--serif);
  letter-spacing: -.025em;
}
.case-cover-featured .case-cover-title {
  max-width: 16em;
  font-size: clamp(1.8rem, 3.2vw, 2.85rem);
}
.case-cover-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  color: var(--gold-ink);
  font-size: .78rem;
  font-weight: 600;
}
.case-cover:hover .case-cover-action { text-decoration: underline; text-underline-offset: 4px; }

#service-dialog.service-drawer {
  inset: 0 0 0 auto;
  width: min(100%, 650px);
  max-width: 100%;
  height: 100dvh;
  max-height: none;
  margin: 0;
  border-block: 0;
  border-inline-end: 0;
}
#service-dialog.service-drawer::backdrop { background: #08111eb3; }
.service-drawer .drawer-toolbar {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  min-height: 60px;
  align-items: center;
  justify-content: space-between;
  padding: 7px 14px 7px 26px;
  background: var(--navy);
  color: var(--gold-light);
  border-bottom: 1px solid #a78a58;
}
.drawer-toolbar > span { font: 400 1.08rem/1 var(--serif); letter-spacing: .075em; }
.drawer-toolbar .close-form { position: static; }
.drawer-toolbar .close-button { border-color: #91764d; color: var(--gold-light); }
.drawer-toolbar .close-button:hover { background: var(--midnight-hover); }
.service-drawer .dialog-inner { padding-top: 29px; }
.service-drawer .dialog-inner .eyebrow, .service-drawer .dialog-inner h2 { padding-right: 0; }
.service-drawer #documents-heading { scroll-margin-top: 77px; }
.related-case > a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  text-decoration: none;
  font: 400 1.53rem/1.12 var(--serif);
}
.related-case > a:hover { color: var(--gold-ink); text-decoration: underline; text-underline-offset: 4px; }
.related-case .diagonal-arrow { color: var(--gold-ink); }
.related-case > p:last-child { color: var(--muted); margin-top: 8px; font-size: .82rem; }
.document-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 16px; }

.case-file {
  margin-top: 25px;
  padding: 8px;
  background: var(--navy);
  border: 1px solid #a78a58;
}
.case-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2px;
  padding-bottom: 7px;
}
.case-tabs button {
  min-height: 44px;
  padding: 6px 3px;
  color: var(--ivory);
  background: transparent;
  border: 1px solid transparent;
  font-size: .82rem;
  font-weight: 600;
  line-height: 1.3;
}
.case-tabs button:hover { border-color: #91764d; }
.case-tabs button[aria-selected="true"] { color: var(--navy); background: var(--gold-light); }
.case-tabs button:focus-visible { outline-offset: -4px; }
.case-sheet {
  min-height: 203px;
  padding: clamp(16px, 3vw, 24px);
  background: var(--ivory);
  border: 1px solid #af9061;
  outline: 1px solid #af906177;
  outline-offset: -5px;
  font-size: .875rem;
  line-height: 1.64;
}
.case-sheet:focus-visible { outline: 2px solid var(--gold-ink); outline-offset: -4px; }
.case-sheet h3 { font-size: 1.6rem; }
.case-sheet > p { margin-top: 9px; }
.case-figures {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 17px 0 0;
}
.case-figures > div { padding: 8px 10px; border: 1px solid var(--line); }
.case-figures dt { color: var(--muted); font-size: .72rem; }
.case-figures dd { margin: 0; color: var(--ink); font: 400 clamp(1.18rem, 4vw, 1.64rem)/1.14 var(--serif); white-space: nowrap; }
.case-annotations { display: grid; gap: 6px; margin-top: 12px; }
.case-annotations details { border: 1px solid var(--line); background: var(--paper); }
.case-annotations summary {
  position: relative;
  cursor: pointer;
  list-style: none;
  padding: 8px 30px 8px 10px;
  line-height: 1.35;
}
.case-annotations summary::-webkit-details-marker { display: none; }
.case-annotations summary:hover { background: #efe7d8; }
.case-annotations summary::after {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  content: "+";
  font-size: 1.2rem;
  color: var(--gold-ink);
}
.case-annotations details[open] summary::after { content: "−"; }
.case-annotations summary > span { display: block; color: var(--gold-ink); font-size: .71rem; font-weight: 600; }
.case-annotations details > p { padding: 0 11px 11px; color: var(--muted); font-size: .82rem; }

.copy-status { margin-top: 7px; color: var(--gold-ink); font-size: .82rem; }
.copy-status:empty { margin: 0; }
.copy-text {
  display: block;
  width: 100%;
  padding: 11px;
  margin-top: 5px;
  color: var(--ink);
  background: var(--ivory);
  border: 1px solid #b7a788;
  font: 400 .9rem/1.55 var(--sans);
  resize: vertical;
}
.inquiry-label { display: block; margin-top: 18px; color: var(--muted); font-size: .82rem; font-weight: 600; }
.intake-trial {
  margin-top: 20px;
  padding: 15px;
  background: var(--ivory);
  border: 1px solid var(--line);
}
.intake-trial p { margin-bottom: 11px; color: var(--muted); font-size: .88rem; }

@media (max-width: 1000px) {
  .case-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
  .situation-buttons, .case-grid { grid-template-columns: minmax(0, 1fr); }
  .case-grid { margin-top: 23px; }
  .case-cover-featured { grid-column: auto; }
  .case-cover-page { min-height: 0; }
  .situation-buttons button { min-height: 46px; }
  .case-cover { padding: 0 11px 11px; }
  #service-dialog.service-drawer {
    inset: auto 0 0;
    width: 100%;
    height: auto;
    max-height: calc(100dvh - 20px);
    border-top: 1px solid #a78a58;
    border-inline-start: 0;
  }
  .service-drawer .drawer-toolbar { padding-inline: 17px 11px; }
  .service-drawer .dialog-inner { padding-block: 23px 26px; }
  .service-drawer .dialog-inner h2 { font-size: clamp(1.92rem, 8vw, 2.65rem); }
  .case-tabs button { font-size: .74rem; }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-copy { animation: site-arrival .56s ease-out both; }
  .brand-plate { animation: site-arrival .65s .05s ease-out both; }
  .reveal-ready { transition: opacity .54s ease-out, transform .54s ease-out, box-shadow .18s ease; }
  .reveal-ready.reveal-pending:not(:focus-within) { opacity: .22; transform: translateY(15px); }
  @keyframes site-arrival {
    from { opacity: .35; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
  }

  #service-dialog.service-drawer[open] { animation: drawer-appear .2s ease-out; }
  .service-drawer [data-drawer-view]:not([hidden]), .case-sheet:not([hidden]) { animation: sheet-appear .16s ease-out; }
  @keyframes drawer-appear { from { transform: translateX(30px); opacity: .6; } to { transform: translateX(0); opacity: 1; } }
  @keyframes sheet-appear { from { opacity: .45; } to { opacity: 1; } }
}

@media (max-width: 680px) and (prefers-reduced-motion: no-preference) {
  #service-dialog.service-drawer[open] { animation-name: drawer-appear-mobile; }
  @keyframes drawer-appear-mobile { from { transform: translateY(30px); opacity: .6; } to { transform: translateY(0); opacity: 1; } }
}
