/* =========================================================================
   HHLegalCo: Remote Paralegal Desk
   Page-specific layer that sits on top of style.css and pages.css.
   The idea: this page reads like a bound case file. Navy "blue-back"
   covers, bone-coloured pleading paper with numbered lines, exhibit
   stickers, a docket sheet, Bates stamps and a reviewer's red pen.
   ========================================================================= */

.rps {
  --bone: #f6f2ea;
  --bone-deep: #ece5d6;
  --manila: #e6d5ab;
  --manila-edge: #cfb87f;
  --rule-red: rgba(184, 64, 52, 0.38);
  --redline: #b3261e;
  --pencil: #9c8f78;
  --type: 'Courier Prime', 'Courier New', Courier, monospace;
}

.rps .type { font-family: var(--type); }

/* -------------------------------------------------------------------------
   1. Hero: case jacket
   ------------------------------------------------------------------------- */
.rps-hero {
  background: var(--navy);
  color: var(--white);
  padding: 170px 0 110px;
  position: relative;
  overflow: hidden;
}

/* Faint stitching along the spine of the blue-back */
.rps-hero::before {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  left: clamp(10px, 2vw, 28px);
  width: 0;
  border-left: 1px dashed rgba(255, 255, 255, 0.14);
}

.rps-hero .container { position: relative; z-index: 2; }

.rps-hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 72px;
  align-items: center;
}

.rps-hero h1 {
  color: var(--white);
  font-size: clamp(2.5rem, 5vw, 4.4rem);
  max-width: 14ch;
  margin-top: 22px;
}

.rps-hero h1 em {
  font-style: italic;
  font-weight: 500;
  color: #a9c8f5;
}

.rps-hero .lede {
  margin-top: 26px;
  max-width: 50ch;
  color: rgba(255, 255, 255, 0.72);
}

.rps-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 40px;
}

.rps-hero-note {
  margin-top: 26px;
  font-family: var(--type);
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.02em;
}

/* The manila folder */
.jacket {
  position: relative;
  background: var(--manila);
  border-radius: 0 8px 8px 8px;
  padding: 30px 26px 28px;
  margin-top: 30px;
  box-shadow: 0 40px 60px -30px rgba(0, 0, 0, 0.55), inset 0 0 0 1px rgba(0, 0, 0, 0.04);
  color: var(--ink);
}

.jacket::before {
  content: attr(data-tab);
  position: absolute;
  top: -30px;
  left: 0;
  height: 31px;
  padding: 0 22px;
  display: flex;
  align-items: center;
  background: var(--manila);
  border-radius: 8px 8px 0 0;
  font-family: var(--type);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  color: #6b5a2f;
}

/* A second sheet peeking out behind the cover sheet */
.jacket-sheet {
  position: relative;
  background: #fffdf8;
  border-radius: 2px;
  padding: 26px 26px 22px;
  transform: rotate(-0.8deg);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05), 0 8px 18px -10px rgba(60, 45, 10, 0.35);
}

.jacket-sheet::before {
  content: '';
  position: absolute;
  inset: 6px -6px -6px 6px;
  background: #f4efe3;
  z-index: -1;
  transform: rotate(1.6deg);
  border-radius: 2px;
}

.jacket-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--ink);
  font-family: var(--type);
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.jacket-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin: 16px 0 10px;
  line-height: 1.2;
}

.jacket-rows { margin-top: 6px; }

.jacket-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 9px 0;
  font-family: var(--type);
  font-size: 0.86rem;
  border-bottom: 1px solid #e7e0cf;
}

.jacket-row dt { flex: 1; display: flex; align-items: baseline; color: #6d6556; white-space: nowrap; }
.jacket-row dt::after { content: ''; flex: 1; min-width: 12px; margin-left: 8px; border-bottom: 1px dotted #b9ae98; transform: translateY(-4px); }
.jacket-row dd { color: var(--ink); font-weight: 700; text-align: right; }

.stamp {
  position: absolute;
  right: 18px;
  bottom: -18px;
  padding: 7px 14px 6px;
  border: 2px solid var(--redline);
  border-radius: 4px;
  color: var(--redline);
  font-family: var(--type);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transform: rotate(-7deg);
  background: rgba(255, 253, 248, 0.6);
  mix-blend-mode: multiply;
  opacity: 0.88;
}

.stamp small { display: block; font-size: 0.6rem; letter-spacing: 0.12em; font-weight: 400; text-align: center; }

@media (max-width: 960px) {
  .rps-hero { padding: 140px 0 90px; }
  .rps-hero-grid { grid-template-columns: 1fr; gap: 56px; }
  .jacket { max-width: 520px; }
}

@media (max-width: 480px) {
  .jacket { padding: 22px 14px 22px; }
  .jacket-sheet { padding: 20px 16px 18px; }
  .jacket-row { font-size: 0.78rem; }
  .jacket-row dt { white-space: normal; }
}

/* -------------------------------------------------------------------------
   2. Index to exhibits: divider tabs that stick under the header
   ------------------------------------------------------------------------- */
.exhibit-index {
  position: sticky;
  top: 68px;
  z-index: 90;
  background: var(--bone-deep);
  border-bottom: 1px solid #d8cfbc;
}

.exhibit-index .container { display: flex; align-items: stretch; gap: 18px; }

.exhibit-index-label {
  display: flex;
  align-items: center;
  font-family: var(--type);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pencil);
  white-space: nowrap;
}

.exhibit-index ol {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-top: 10px;
}

.exhibit-index ol::-webkit-scrollbar { display: none; }

.exhibit-index a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px 10px;
  background: #e2d9c5;
  border: 1px solid #d3c8b0;
  border-bottom: none;
  border-radius: 6px 6px 0 0;
  font-size: 0.8rem;
  font-weight: 500;
  color: #5d5442;
  white-space: nowrap;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), transform 0.25s var(--ease);
}

.exhibit-index a b {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--navy);
}

.exhibit-index a:hover { background: #ebe3d1; transform: translateY(-2px); }
.exhibit-index a.is-active { background: var(--bone); color: var(--ink); }

@media (max-width: 1360px) {
  .exhibit-index-label { display: none; }
  .exhibit-index a { padding: 9px 11px 10px; font-size: 0.78rem; }
}
@media (max-width: 920px) {
  .exhibit-index { top: 64px; }
}

/* -------------------------------------------------------------------------
   3. Exhibit sections on pleading paper
   ------------------------------------------------------------------------- */
.exhibit {
  background: var(--bone);
  padding: 110px 0 70px;
  border-bottom: 1px solid #e2d9c6;
  scroll-margin-top: 120px;
}

.exhibit--white { background: #fffdf9; }
.exhibit--navy { background: var(--navy); color: var(--white); border-bottom-color: transparent; }

/* Numbered lines and the double margin rule, desktop only */
.pleading { position: relative; }

@media (min-width: 1100px) {
  .pleading { padding-left: 76px; }
  .pleading::before {
    content: '1\A 2\A 3\A 4\A 5\A 6\A 7\A 8\A 9\A 10\A 11\A 12\A 13\A 14\A 15\A 16\A 17\A 18\A 19\A 20\A 21\A 22\A 23\A 24\A 25\A 26\A 27\A 28';
    white-space: pre;
    position: absolute;
    left: 0;
    top: 4px;
    bottom: 0;
    width: 34px;
    overflow: hidden;
    text-align: right;
    font-family: var(--type);
    font-size: 0.72rem;
    line-height: 2.4rem;
    color: #c2b79f;
    pointer-events: none;
  }
  .pleading::after {
    content: '';
    position: absolute;
    left: 50px;
    top: 0;
    bottom: 0;
    width: 4px;
    border-left: 1px solid var(--rule-red);
    border-right: 1px solid var(--rule-red);
    pointer-events: none;
  }
  .exhibit--navy .pleading::before { color: rgba(255, 255, 255, 0.18); }
  .exhibit--navy .pleading::after { border-color: rgba(255, 255, 255, 0.12); }
}

.exhibit-head {
  display: grid;
  grid-template-columns: auto 1fr minmax(0, 360px);
  gap: 32px;
  align-items: end;
  margin-bottom: 60px;
}

.exhibit-head h2 { margin-top: 14px; max-width: 20ch; }
.exhibit-head .lede { font-size: 1.04rem; }
.exhibit--navy .exhibit-head h2 { color: var(--white); }
.exhibit--navy .exhibit-head .lede { color: rgba(255, 255, 255, 0.68); }

.exhibit-kicker {
  font-family: var(--type);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  color: var(--pencil);
}

.exhibit--navy .exhibit-kicker { color: #9dc0f2; }

/* The sticker itself */
.exhibit-tag {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  min-width: 88px;
  padding: 8px 12px 7px;
  background: #fffef9;
  border: 1.5px solid var(--navy);
  border-radius: 7px;
  color: var(--navy);
  transform: rotate(-3deg);
  box-shadow: 0 2px 0 rgba(15, 42, 77, 0.08), 0 10px 18px -12px rgba(15, 42, 77, 0.4);
  align-self: start;
}

.exhibit-tag small {
  font-family: var(--type);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  padding-left: 0.3em;
}

.exhibit-tag b {
  font-family: var(--font-display);
  font-size: 2.3rem;
  line-height: 1.05;
  font-weight: 600;
}

.exhibit-tag i {
  font-style: normal;
  font-family: var(--type);
  font-size: 0.55rem;
  letter-spacing: 0.08em;
  width: 100%;
  text-align: center;
  border-top: 1px solid rgba(15, 42, 77, 0.4);
  padding-top: 3px;
  color: #5b6c82;
}

.exhibit:nth-of-type(even) .exhibit-tag { transform: rotate(2deg); }

.bates {
  margin-top: 64px;
  text-align: right;
  font-family: var(--type);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: #b3a78e;
}

.exhibit--navy .bates { color: rgba(255, 255, 255, 0.3); }

@media (max-width: 900px) {
  .exhibit { padding: 84px 0 56px; }
  .exhibit-head { grid-template-columns: 1fr; gap: 18px; margin-bottom: 44px; }
  .exhibit-tag { justify-self: start; }
}

/* -------------------------------------------------------------------------
   4. Exhibit A: the arithmetic, marked up in red pen
   ------------------------------------------------------------------------- */
.ledger-intro {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 64px;
  align-items: start;
}

.fraction {
  display: inline-grid;
  justify-items: center;
  font-family: var(--font-display);
  line-height: 1;
}

.fraction span { font-size: clamp(4rem, 8vw, 6.5rem); font-weight: 600; color: var(--navy); }
.fraction hr { width: 100%; border: none; border-top: 3px solid var(--ink); margin: 10px 0 12px; }
.fraction-caption { margin-top: 18px; max-width: 30ch; color: var(--slate); font-size: 0.98rem; line-height: 1.7; }

.ledger { border-top: 2px solid var(--ink); }

.ledger-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 32px;
  padding: 26px 0 24px;
  border-bottom: 1px solid #ddd3bf;
  position: relative;
}

.ledger-row h3 { font-size: 1.12rem; }
.ledger-row p { grid-column: 1 / -1; color: var(--slate); font-size: 0.93rem; line-height: 1.65; max-width: 60ch; }

.ledger-figure {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-weight: 600;
  white-space: nowrap;
  position: relative;
  justify-self: end;
}

.ledger-figure sup { font-family: var(--type); font-size: 0.7rem; color: var(--pencil); margin-left: 2px; }

/* Struck through by the reviewer */
.is-struck .ledger-figure { color: #7d7466; }
.is-struck .ledger-figure::after {
  content: '';
  position: absolute;
  left: -6px;
  right: -6px;
  top: 52%;
  height: 2px;
  background: var(--redline);
  transform: rotate(-4deg);
}

.margin-note {
  font-family: var(--type);
  font-size: 0.8rem;
  color: var(--redline);
  grid-column: 1 / -1;
}

.margin-note::before { content: '\2190\00a0'; }

/* The answer, circled in red */
.is-circled .ledger-figure { color: var(--navy); padding: 4px 14px; }
.is-circled .ledger-figure svg {
  position: absolute;
  inset: -10px -14px -12px -12px;
  width: calc(100% + 26px);
  height: calc(100% + 22px);
  max-width: none;
  overflow: visible;
  pointer-events: none;
}

.is-circled .ledger-figure svg path {
  fill: none;
  stroke: var(--redline);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 600;
  stroke-dashoffset: 600;
  transition: stroke-dashoffset 1.4s var(--ease) 0.4s;
}

.reveal.is-visible .is-circled .ledger-figure svg path,
.is-circled.is-visible .ledger-figure svg path { stroke-dashoffset: 0; }

.footnotes {
  margin-top: 30px;
  font-size: 0.78rem;
  color: var(--pencil);
  line-height: 1.7;
}

.footnotes li { display: flex; gap: 8px; }
.footnotes a { text-decoration: underline; text-underline-offset: 2px; }
.footnotes a:hover { color: var(--ink); }

@media (max-width: 900px) {
  .ledger-intro { grid-template-columns: 1fr; gap: 40px; }
  .ledger-row { grid-template-columns: 1fr; }
  .ledger-figure { justify-self: start; }
}

/* -------------------------------------------------------------------------
   5. Exhibit B: schedule of work (a ruled table, not cards)
   ------------------------------------------------------------------------- */
.schedule { width: 100%; border-collapse: collapse; border-top: 2px solid var(--ink); }

.schedule th {
  text-align: left;
  font-family: var(--type);
  font-weight: 400;
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pencil);
  padding: 14px 16px 14px 0;
  border-bottom: 1px solid var(--ink);
}

.schedule td {
  vertical-align: top;
  padding: 22px 16px 22px 0;
  border-bottom: 1px solid #ddd3bf;
  font-size: 0.95rem;
  color: var(--slate);
  line-height: 1.65;
}

.schedule td:first-child { font-family: var(--type); color: var(--blue-royal); width: 64px; }
.schedule td:nth-child(2) { font-family: var(--font-display); font-weight: 600; font-size: 1.12rem; color: var(--ink); width: 30%; }
.schedule tr { transition: background 0.25s var(--ease); }
.schedule tbody tr:hover { background: rgba(255, 255, 255, 0.55); }

@media (max-width: 720px) {
  .schedule thead { display: none; }
  .schedule tr { display: grid; grid-template-columns: 48px 1fr; padding: 18px 0; border-bottom: 1px solid #ddd3bf; }
  .schedule td { border: none; padding: 0; width: auto !important; }
  .schedule td:nth-child(3) { grid-column: 2; margin-top: 6px; }
}

/* -------------------------------------------------------------------------
   6. Exhibit C: file divider tabs for practice areas
   ------------------------------------------------------------------------- */
.dividers [role='tablist'] {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-left: 18px;
}

.dividers [role='tablist']::-webkit-scrollbar { display: none; }

.dividers [role='tab'] {
  flex-shrink: 0;
  padding: 13px 22px 12px;
  background: var(--manila-edge);
  color: #4f4220;
  border-radius: 9px 9px 0 0;
  font-weight: 600;
  font-size: 0.9rem;
  transition: background 0.25s var(--ease), padding 0.25s var(--ease);
}

.dividers [role='tab']:hover { background: #d8c38f; }

.dividers [role='tab'][aria-selected='true'] {
  background: var(--manila);
  color: var(--ink);
  padding-top: 17px;
}

.dividers [role='tabpanel'] {
  background: var(--manila);
  border-radius: 8px;
  padding: 44px clamp(22px, 4vw, 52px);
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  box-shadow: 0 30px 50px -36px rgba(60, 45, 10, 0.55);
}

.dividers [role='tabpanel'][hidden] { display: none; }

.dividers h3 { font-size: 1.6rem; }
.dividers .panel-intro { margin-top: 14px; color: #5a4e33; font-size: 0.98rem; line-height: 1.7; }

.dividers ul { background: #fffdf8; padding: 10px 26px; border-radius: 3px; box-shadow: 0 6px 16px -10px rgba(60, 45, 10, 0.4); }
.dividers li {
  display: flex;
  gap: 14px;
  padding: 13px 0;
  border-bottom: 1px solid #ece4d2;
  font-size: 0.95rem;
  color: var(--ink);
}
.dividers li:last-child { border-bottom: none; }
.dividers li::before { content: '\25A1'; font-family: var(--type); color: var(--blue-royal); }

.panel-flag {
  margin-top: 22px;
  display: inline-block;
  font-family: var(--type);
  font-size: 0.78rem;
  color: var(--redline);
  border: 1px solid var(--redline);
  padding: 6px 10px;
  border-radius: 3px;
}

@media (max-width: 860px) {
  .dividers [role='tabpanel'] { grid-template-columns: 1fr; gap: 28px; border-radius: 0 8px 8px 8px; }
  .dividers [role='tablist'] { padding-left: 0; }
}

/* -------------------------------------------------------------------------
   7. Exhibit D: docket sheet
   ------------------------------------------------------------------------- */
.docket {
  background: #fffdf8;
  border: 1px solid #ddd3bf;
  box-shadow: 0 20px 40px -30px rgba(60, 45, 10, 0.5);
}

.docket-caption {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  padding: 22px 28px;
  border-bottom: 2px solid var(--ink);
  font-family: var(--type);
  font-size: 0.82rem;
  line-height: 1.6;
}

.docket-caption strong { font-size: 0.95rem; letter-spacing: 0.04em; }

.docket table { width: 100%; border-collapse: collapse; }

.docket th {
  font-family: var(--type);
  font-weight: 400;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pencil);
  text-align: left;
  padding: 12px 28px;
  border-bottom: 1px solid var(--ink);
}

.docket td {
  padding: 22px 28px;
  vertical-align: top;
  border-bottom: 1px solid #ece4d2;
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--slate);
}

.docket tr:last-child td { border-bottom: none; }
.docket td:nth-child(1) { font-family: var(--type); color: var(--blue-royal); width: 96px; white-space: nowrap; }
.docket td:nth-child(2) { font-family: var(--type); color: var(--ink); width: 150px; white-space: nowrap; }
.docket td strong { display: block; color: var(--ink); font-size: 1.02rem; margin-bottom: 4px; }

@media (max-width: 720px) {
  .docket-caption { grid-template-columns: 1fr; padding: 18px; }
  .docket thead { display: none; }
  .docket tr { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; padding: 18px; border-bottom: 1px solid #ece4d2; }
  .docket td { padding: 0; border: none; width: auto !important; }
  .docket td:nth-child(3) { grid-column: 1 / -1; margin-top: 6px; }
}

/* -------------------------------------------------------------------------
   8. Exhibit E: systems we work inside (typeset, no logos)
   ------------------------------------------------------------------------- */
.systems {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.system {
  padding: 34px 22px 30px;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  transition: background 0.3s var(--ease);
}

.system:last-child { border-right: none; }
.system:hover { background: rgba(255, 255, 255, 0.04); }

.system-name {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  color: var(--white);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.system-use { margin-top: 10px; font-size: 0.86rem; color: rgba(255, 255, 255, 0.6); line-height: 1.6; }

.systems-also {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  font-family: var(--type);
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.6);
}

.systems-also span:first-child { color: #9dc0f2; }

.systems-fine { margin-top: 22px; font-size: 0.76rem; color: rgba(255, 255, 255, 0.38); }

@media (max-width: 1000px) {
  .systems { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .system { border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
  .system:nth-child(2n) { border-right: none; }
  .system:last-child { grid-column: 1 / -1; border-bottom: none; }
}

/* -------------------------------------------------------------------------
   9. Exhibit F: comparison (staffing marketplace vs. a firm of attorneys)
   ------------------------------------------------------------------------- */
.compare { width: 100%; border-collapse: collapse; background: #fffdf8; border: 1px solid #ddd3bf; }

.compare th, .compare td { padding: 20px 24px; text-align: left; vertical-align: top; border-bottom: 1px solid #ece4d2; font-size: 0.95rem; line-height: 1.6; }
.compare thead th { font-family: var(--type); font-weight: 400; font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--pencil); border-bottom: 2px solid var(--ink); }
.compare thead th:last-child { color: var(--navy); font-weight: 700; }
.compare tbody th { font-family: var(--font-display); font-weight: 600; color: var(--ink); width: 24%; }
.compare td { color: var(--slate); }
.compare td:last-child { color: var(--ink); background: rgba(223, 233, 247, 0.45); }
.compare tr:last-child th, .compare tr:last-child td { border-bottom: none; }

@media (max-width: 760px) {
  .compare thead { display: none; }
  .compare tr { display: block; padding: 18px; border-bottom: 1px solid #ece4d2; }
  .compare th, .compare td { display: block; padding: 4px 0; border: none; width: auto !important; background: none !important; }
  .compare td::before { content: attr(data-label); display: block; font-family: var(--type); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--pencil); margin-top: 10px; }
}

/* -------------------------------------------------------------------------
   10. Exhibit G: chain of custody
   ------------------------------------------------------------------------- */
.custody {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  counter-reset: custody;
  position: relative;
}

.custody::before {
  content: '';
  position: absolute;
  top: 19px;
  left: 20px;
  right: 20px;
  border-top: 1px dashed var(--pencil);
}

.custody li { position: relative; padding-right: 22px; counter-increment: custody; }

.custody li::before {
  content: counter(custody, decimal-leading-zero);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bone);
  border: 1.5px solid var(--navy);
  font-family: var(--type);
  font-size: 0.82rem;
  color: var(--navy);
}

.custody h3 { margin-top: 20px; font-size: 1.08rem; }
.custody p { margin-top: 8px; font-size: 0.9rem; color: var(--slate); line-height: 1.65; }

.rules-note {
  margin-top: 60px;
  display: grid;
  grid-template-columns: 0.4fr 1fr;
  gap: 40px;
  padding: 34px 36px;
  background: #fffdf8;
  border-left: 3px solid var(--navy);
}

.rules-note h3 { font-size: 1.2rem; }
.rules-note p { color: var(--slate); font-size: 0.94rem; line-height: 1.75; }
.rules-note p + p { margin-top: 12px; }

@media (max-width: 960px) {
  .custody { grid-template-columns: 1fr; gap: 26px; }
  .custody::before { top: 20px; bottom: 20px; left: 19px; right: auto; border-top: none; border-left: 1px dashed var(--pencil); }
  .custody li { padding: 0 0 0 64px; }
  .custody li::before { position: absolute; left: 0; top: 0; }
  .custody h3 { margin-top: 8px; }
  .rules-note { grid-template-columns: 1fr; gap: 16px; padding: 26px 22px; }
}

/* -------------------------------------------------------------------------
   11. Exhibit H: engagement options, set as three letters
   ------------------------------------------------------------------------- */
.letters {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  align-items: stretch;
}

.letter {
  position: relative;
  background: #fffdf8;
  border: 1px solid #ddd3bf;
  padding: 40px 32px 34px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 18px 36px -28px rgba(60, 45, 10, 0.5);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.letter:hover { transform: translateY(-5px); box-shadow: 0 30px 50px -30px rgba(60, 45, 10, 0.6); }

.letter-ref { font-family: var(--type); font-size: 0.74rem; color: var(--pencil); letter-spacing: 0.06em; }
.letter h3 { margin-top: 16px; font-size: 1.5rem; }
.letter-terms { margin-top: 8px; font-family: var(--type); font-size: 0.92rem; color: var(--blue-royal); }
.letter > p { margin-top: 16px; color: var(--slate); font-size: 0.93rem; line-height: 1.7; }

.letter ul { margin: 22px 0 30px; border-top: 1px solid #ece4d2; }
.letter li { padding: 11px 0 11px 22px; border-bottom: 1px solid #ece4d2; font-size: 0.9rem; position: relative; }
.letter li::before { content: '\2713'; position: absolute; left: 0; color: var(--blue-royal); font-size: 0.85rem; }

.letter .btn { margin-top: auto; align-self: flex-start; }

.letter--featured { background: var(--navy); border-color: var(--navy); color: var(--white); }
.letter--featured h3 { color: var(--white); }
.letter--featured .letter-ref { color: #9dc0f2; }
.letter--featured .letter-terms { color: #a9c8f5; }
.letter--featured > p { color: rgba(255, 255, 255, 0.7); }
.letter--featured ul, .letter--featured li { border-color: rgba(255, 255, 255, 0.14); }
.letter--featured li::before { color: #a9c8f5; }

.letter-flag {
  position: absolute;
  top: -13px;
  right: 24px;
  background: var(--manila);
  color: #4f4220;
  font-family: var(--type);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  padding: 5px 12px;
  border-radius: 3px;
  transform: rotate(2deg);
}

.solo-band {
  margin-top: 56px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: center;
  padding: 34px 36px;
  border: 1.5px dashed var(--manila-edge);
  border-radius: 6px;
}

.solo-band h3 { font-size: 1.3rem; }
.solo-band p { margin-top: 8px; color: var(--slate); font-size: 0.94rem; max-width: 62ch; line-height: 1.7; }

.rates-note { margin-top: 26px; font-family: var(--type); font-size: 0.82rem; color: var(--pencil); }

@media (max-width: 1000px) {
  .letters { grid-template-columns: 1fr; max-width: 520px; }
  .solo-band { grid-template-columns: 1fr; }
}

/* -------------------------------------------------------------------------
   12. Exhibit I: the people
   ------------------------------------------------------------------------- */
.desk-people { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }

.desk-person { display: block; }

.desk-photo {
  position: relative;
  aspect-ratio: 0.83;
  overflow: hidden;
  background: var(--navy);
  border: 8px solid #fffdf8;
  box-shadow: 0 16px 30px -22px rgba(60, 45, 10, 0.6);
  transform: rotate(-1deg);
  transition: transform 0.4s var(--ease);
}

.desk-person:nth-child(even) .desk-photo { transform: rotate(1.2deg); }
.desk-person:hover .desk-photo { transform: rotate(0) translateY(-4px); }

.desk-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 22%; filter: saturate(0.9); }

/* A paper clip in plain line */
.desk-photo::after {
  content: '';
  position: absolute;
  top: -6px;
  left: 22px;
  width: 14px;
  height: 46px;
  border: 2px solid #8d98a8;
  border-radius: 8px;
  border-bottom-color: transparent;
}

.desk-name { margin-top: 22px; font-size: 1.15rem; }
.desk-title { margin-top: 4px; font-size: 0.84rem; font-weight: 600; color: var(--blue-royal); }
.desk-role { margin-top: 12px; font-size: 0.9rem; color: var(--slate); line-height: 1.65; }
.desk-link { margin-top: 12px; font-family: var(--type); font-size: 0.8rem; color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 1100px) { .desk-people { grid-template-columns: repeat(2, 1fr); gap: 40px 26px; } }
@media (max-width: 560px) { .desk-people { grid-template-columns: 1fr; max-width: 300px; margin: 0 auto; } }

/* -------------------------------------------------------------------------
   13. Exhibit J and K: FAQ and intake
   ------------------------------------------------------------------------- */
.rps .faq-item { border-bottom-color: #ddd3bf; }
.rps .faq-list { border-top: 2px solid var(--ink); max-width: 900px; }
.rps .faq-question { font-family: var(--font-display); font-size: 1.12rem; }

.intake {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 64px;
  align-items: start;
}

.intake-aside h3 { font-size: 1.3rem; }
.intake-aside > p { margin-top: 12px; color: var(--slate); font-size: 0.95rem; line-height: 1.7; }

.intake-list { margin-top: 28px; border-top: 1px solid #ddd3bf; }
.intake-list li { display: grid; grid-template-columns: 34px 1fr; padding: 14px 0; border-bottom: 1px solid #ddd3bf; font-size: 0.93rem; color: var(--ink); }
.intake-list li span { font-family: var(--type); color: var(--blue-royal); }

.intake-direct { margin-top: 30px; font-size: 0.93rem; color: var(--slate); line-height: 1.9; }
.intake-direct a { color: var(--navy); font-weight: 600; border-bottom: 1px solid var(--line-strong); }

.rps .contact-form-panel { background: #fffdf8; border-color: #ddd3bf; border-top: 3px solid var(--navy); border-radius: 2px; }
.rps .form-field input, .rps .form-field select, .rps .form-field textarea { background: #fff; }

@media (max-width: 960px) {
  .intake { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 600px) {
  .rps .contact-form-panel { padding: 30px 20px; }
  .rps .form-grid { grid-template-columns: 1fr; }
  .rps .form-field.span-2 { grid-column: auto; }
}

/* Closing band */
.rps-close {
  background: var(--navy);
  color: var(--white);
  padding: 110px 0;
  text-align: center;
}

.rps-close h2 { color: var(--white); max-width: 22ch; margin: 18px auto 0; }
.rps-close p { margin: 18px auto 0; max-width: 52ch; color: rgba(255, 255, 255, 0.68); }
.rps-close .rps-hero-actions { justify-content: center; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}
