:root {
  --ink: #17201f;
  --ink-2: #202b29;
  --ink-3: #34403d;
  --paper: #f4f2ec;
  --paper-2: #fbfaf7;
  --paper-3: #e9e6dd;
  --muted: #6e736e;
  --line: #d8d5cc;
  --line-dark: rgba(255, 255, 255, 0.12);
  --gold: #ad8747;
  --gold-light: #d4b574;
  --red: #7f2831;
  --green: #607c65;
  --header-height: 72px;
  --service-height: 34px;
  --content: 1240px;
  --radius: 3px;
  --shadow: 0 22px 58px rgba(20, 27, 26, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--service-height) + var(--header-height) + 20px);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Inter", sans-serif;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.scroll-progress {
  position: fixed;
  z-index: 100;
  top: 0;
  right: 0;
  left: 0;
  height: 2px;
  pointer-events: none;
}

.scroll-progress span {
  width: 100%;
  height: 100%;
  display: block;
  background: var(--gold-light);
  transform: scaleX(0);
  transform-origin: left;
  will-change: transform;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.hidden {
  display: none !important;
}

.service-bar {
  position: relative;
  z-index: 80;
  min-height: var(--service-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 max(24px, calc((100vw - var(--content)) / 2));
  background: #0f1615;
  color: rgba(255, 255, 255, 0.58);
  font-size: 9px;
  font-weight: 600;
}

.service-bar > div,
.service-mark,
.service-status {
  display: flex;
  align-items: center;
  gap: 8px;
}

.service-bar > div {
  gap: 24px;
}

.service-actions {
  display: flex;
  align-items: center;
  gap: 16px !important;
}

.resume-draft {
  min-height: 23px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0 8px;
  border: 1px solid rgba(212, 181, 116, 0.3);
  border-radius: 999px;
  background: transparent;
  color: var(--gold-light);
  font-size: 7px;
  font-weight: 700;
  text-transform: uppercase;
}

.resume-draft:hover {
  background: rgba(212, 181, 116, 0.08);
}

.service-bar svg {
  width: 13px;
  height: 13px;
}

.service-mark {
  color: #e9e4d8;
}

.service-status svg {
  color: #82a788;
}

.site-header {
  position: sticky;
  z-index: 70;
  top: 0;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 max(24px, calc((100vw - var(--content)) / 2));
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(20, 29, 27, 0.96);
  color: #f5f1e8;
  backdrop-filter: blur(16px);
  transition: box-shadow 180ms ease, background-color 180ms ease;
}

.site-header.scrolled {
  background: rgba(17, 25, 23, 0.99);
  box-shadow: 0 12px 30px rgba(8, 12, 11, 0.17);
}

.brand,
.footer-brand {
  display: flex;
  align-items: center;
  gap: 11px;
}

.brand img,
.footer-brand img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.brand span,
.footer-brand span {
  display: grid;
  gap: 3px;
}

.brand strong,
.footer-brand strong {
  font-family: "Cormorant Garamond", serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
}

.brand small,
.footer-brand small {
  color: rgba(255, 255, 255, 0.5);
  font-size: 8px;
  font-weight: 700;
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  color: rgba(255, 255, 255, 0.63);
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
}

.main-nav a {
  transition: color 160ms ease;
}

.main-nav a:hover,
.main-nav a.section-active {
  color: var(--gold-light);
}

.nav-external {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.nav-external svg {
  width: 13px;
}

.nav-submit {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border: 1px solid rgba(212, 181, 116, 0.44);
  border-radius: var(--radius);
  color: var(--gold-light) !important;
}

.staff-entry {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 11px;
  border-left: 1px solid rgba(255, 255, 255, 0.13);
  color: rgba(255, 255, 255, 0.62);
  font-size: 8px;
  font-weight: 700;
  text-transform: uppercase;
  transition: color 160ms ease, background-color 160ms ease;
}

.staff-entry:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--gold-light);
}

.staff-entry svg {
  width: 13px;
  height: 13px;
}

.staff-entry-arrow {
  opacity: 0.48;
}

.icon-button {
  width: 40px;
  height: 40px;
  display: inline-grid;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: var(--radius);
  background: transparent;
  color: inherit;
}

.icon-button svg {
  width: 18px;
}

.menu-button {
  display: none;
}

.hero {
  position: relative;
  min-height: 620px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-color: #101716;
  background-image: linear-gradient(90deg, rgba(10, 16, 15, 0.97) 0%, rgba(10, 16, 15, 0.84) 44%, rgba(10, 16, 15, 0.18) 78%),
    url("assets/roman-dawn-fields.webp");
  background-position: center 58%;
  background-size: cover;
  color: #fff;
}

.hero::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(7, 11, 10, 0.55));
  content: "";
}

.hero-shade {
  display: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: min(630px, 54vw);
  margin-left: max(24px, calc((100vw - var(--content)) / 2));
  padding: 80px 0 130px;
  transform: translateY(var(--hero-shift, 0));
  transition: transform 80ms linear;
  animation: hero-copy-enter 760ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.hero-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 20px;
  color: var(--gold-light);
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
}

.hero-kicker span {
  width: 34px;
  height: 1px;
  background: var(--gold-light);
}

.hero h1 {
  max-width: 620px;
  margin: 0 0 20px;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(68px, 6.6vw, 96px);
  font-weight: 600;
  line-height: 0.88;
}

.hero-copy {
  max-width: 520px;
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  line-height: 1.75;
}

.hero-actions,
.dialog-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.primary-button,
.secondary-button,
.text-button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 16px;
  border-radius: var(--radius);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.primary-button {
  border: 1px solid var(--gold-light);
  background: var(--gold-light);
  color: #151a18;
}

.primary-button:hover,
.secondary-button:hover,
.text-button:hover {
  transform: translateY(-1px);
}

.primary-button:hover {
  background: #e4c98d;
}

.primary-button:disabled {
  cursor: wait;
  opacity: 0.6;
}

.secondary-button {
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(9, 13, 12, 0.35);
  color: #fff;
  backdrop-filter: blur(10px);
}

.primary-button svg,
.secondary-button svg,
.text-button svg {
  width: 15px;
}

.hero-emblem {
  position: absolute;
  z-index: 2;
  top: 48%;
  right: max(6vw, calc((100vw - 1180px) / 2));
  width: min(320px, 25vw);
  display: grid;
  place-items: center;
  transform: translateY(-50%);
  color: var(--gold-light);
  font-family: "Cormorant Garamond", serif;
  text-align: center;
  text-transform: uppercase;
  animation: hero-emblem-enter 900ms 100ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.hero-emblem::before {
  position: absolute;
  width: 125%;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  content: "";
}

.hero-emblem img {
  width: 100%;
  filter: drop-shadow(0 28px 30px rgba(0, 0, 0, 0.48));
}

.hero-emblem span,
.hero-emblem small {
  position: absolute;
  color: rgba(212, 181, 116, 0.7);
  font-size: 9px;
  letter-spacing: 0.16em;
}

.hero-emblem span {
  top: -9%;
}

.hero-emblem small {
  bottom: -10%;
}

.hero-footer {
  position: absolute;
  z-index: 3;
  right: max(24px, calc((100vw - var(--content)) / 2));
  bottom: 0;
  left: max(24px, calc((100vw - var(--content)) / 2));
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.6);
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  animation: hero-footer-enter 700ms 260ms ease both;
}

.hero-footer span {
  display: flex;
  gap: 9px;
  padding: 20px 0;
}

.hero-footer small {
  color: var(--gold-light);
}

@keyframes hero-copy-enter {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(var(--hero-shift, 0));
  }
}

@keyframes hero-emblem-enter {
  from {
    opacity: 0;
    transform: translateY(-47%) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(-50%) scale(1);
  }
}

@keyframes hero-footer-enter {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.portal-section,
.process-section,
.records-section {
  padding: 92px 4vw;
}

.section-heading,
.records-heading {
  max-width: var(--content);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin: 0 auto 36px;
}

.eyebrow {
  margin: 0;
  color: var(--gold);
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
}

.section-heading h2,
.records-heading h2 {
  max-width: 620px;
  margin: 9px 0 0;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(42px, 4.6vw, 62px);
  font-weight: 600;
  line-height: 0.98;
}

.section-heading > p,
.records-heading p:last-child {
  max-width: 480px;
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
}

.route-assistant {
  max-width: var(--content);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 0 auto 16px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  background: var(--paper-2);
}

.route-assistant > div:first-child,
.route-assistant > div:first-child > span:last-child {
  display: flex;
  align-items: center;
  gap: 12px;
}

.route-assistant > div:first-child > span:last-child {
  align-items: flex-start;
  flex-direction: column;
  gap: 3px;
}

.route-assistant-icon {
  width: 34px;
  height: 34px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: rgba(173, 135, 71, 0.1);
  color: var(--gold);
}

.route-assistant-icon svg {
  width: 16px;
}

.route-assistant strong {
  font-size: 10px;
}

.route-assistant small {
  color: var(--muted);
  font-size: 9px;
}

.route-suggestions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.route-suggestions button {
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: #626760;
  font-size: 8px;
  font-weight: 700;
  transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease;
}

.route-suggestions button:hover,
.route-suggestions button.active {
  border-color: var(--red);
  background: var(--red);
  color: #fff;
}

.routing-desk {
  max-width: var(--content);
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(350px, 0.85fr);
  margin: 0 auto;
  border: 1px solid var(--line);
  background: var(--paper-2);
  box-shadow: 0 20px 50px rgba(27, 33, 31, 0.07);
}

.portal-grid {
  display: grid;
}

.portal-card {
  position: relative;
  min-height: 112px;
  display: grid;
  grid-template-columns: 28px 38px minmax(0, 1fr) 20px;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  border: 0;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  text-align: left;
  transition: background-color 180ms ease;
}

.portal-card:last-child {
  border-bottom: 0;
}

.portal-card::before {
  position: absolute;
  top: 18px;
  bottom: 18px;
  left: -1px;
  width: 3px;
  background: transparent;
  content: "";
}

.portal-card:hover,
.portal-card.active {
  background: #fff;
}

.portal-card:hover .portal-card-copy {
  transform: translateX(2px);
}

.portal-card-copy {
  transition: transform 160ms ease;
}

.portal-card.active::before {
  background: var(--red);
}

.portal-number {
  color: #aaa69b;
  font-size: 8px;
  font-weight: 700;
}

.portal-icon,
.route-preview-icon,
.context-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(127, 40, 49, 0.07);
  color: var(--red);
}

.portal-icon svg,
.route-preview-icon svg,
.context-icon svg {
  width: 16px;
}

.portal-card.active .portal-icon {
  background: var(--red);
  color: #fff;
}

.portal-card-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.portal-label {
  color: var(--red);
  font-size: 8px;
  font-weight: 700;
  text-transform: uppercase;
}

.portal-card strong {
  font-family: "Cormorant Garamond", serif;
  font-size: 20px;
  line-height: 1.15;
}

.portal-description {
  color: var(--muted);
  font-size: 9px;
  line-height: 1.5;
}

.portal-arrow {
  color: #aaa69b;
  transition: color 160ms ease, transform 160ms ease;
}

.portal-arrow svg {
  width: 14px;
}

.portal-card:hover .portal-arrow,
.portal-card.active .portal-arrow {
  color: var(--red);
  transform: translate(2px, -2px);
}

.route-preview {
  position: relative;
  min-height: 448px;
  display: flex;
  flex-direction: column;
  padding: 32px 34px;
  overflow: hidden;
  background: var(--ink);
  color: #f4efe5;
}

.route-preview::after {
  position: absolute;
  right: -90px;
  bottom: -120px;
  width: 270px;
  height: 270px;
  border: 1px solid rgba(212, 181, 116, 0.15);
  border-radius: 50%;
  box-shadow: 0 0 0 34px rgba(212, 181, 116, 0.025), 0 0 0 72px rgba(212, 181, 116, 0.018);
  content: "";
}

.route-preview.is-updating > :not(.route-continue) {
  animation: route-enter 300ms ease both;
}

@keyframes route-enter {
  from {
    opacity: 0.25;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.route-preview-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 42px;
}

.route-preview-icon {
  border: 1px solid rgba(212, 181, 116, 0.35);
  background: transparent;
  color: var(--gold-light);
}

.route-selected {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #8eb096;
  font-size: 8px;
  font-weight: 700;
  text-transform: uppercase;
}

.route-selected svg {
  width: 13px;
}

.route-preview h3 {
  max-width: 390px;
  margin: 9px 0 10px;
  font-family: "Cormorant Garamond", serif;
  font-size: 38px;
  font-weight: 600;
  line-height: 0.98;
}

.route-preview > p:not(.eyebrow) {
  max-width: 420px;
  margin: 0;
  color: rgba(255, 255, 255, 0.6);
  font-size: 10px;
  line-height: 1.7;
}

.route-preview dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin: 28px 0;
  padding-top: 20px;
  border-top: 1px solid var(--line-dark);
}

.route-fit,
.prepare-list {
  position: relative;
  z-index: 2;
}

.route-fit {
  margin: -8px 0 24px;
}

.route-fit > span,
.prepare-list > span {
  display: block;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.36);
  font-size: 7px;
  font-weight: 700;
  text-transform: uppercase;
}

.route-fit ul,
.prepare-list ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.route-fit li,
.prepare-list li {
  position: relative;
  padding-left: 13px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 8px;
  line-height: 1.45;
}

.route-fit li::before,
.prepare-list li::before {
  position: absolute;
  top: 0.55em;
  left: 0;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gold-light);
  content: "";
}

.route-preview dl div:first-child {
  grid-column: 1 / -1;
}

.route-preview dt,
.route-details dt {
  margin-bottom: 5px;
  color: rgba(255, 255, 255, 0.36);
  font-size: 7px;
  font-weight: 700;
  text-transform: uppercase;
}

.route-preview dd,
.route-details dd {
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 9px;
  line-height: 1.5;
}

.route-continue {
  position: relative;
  z-index: 2;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding: 0 15px;
  border: 1px solid rgba(212, 181, 116, 0.42);
  border-radius: var(--radius);
  background: transparent;
  color: var(--gold-light);
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  transition: background-color 160ms ease, color 160ms ease;
}

.route-continue:hover {
  background: var(--gold-light);
  color: var(--ink);
}

.route-continue:hover svg {
  transform: translateX(3px);
}

.route-continue svg {
  width: 14px;
  transition: transform 160ms ease;
}

.intake-section {
  display: grid;
  grid-template-columns: minmax(280px, 360px) minmax(0, 800px);
  justify-content: center;
  padding: 88px 24px;
  background: #18201f;
  color: #f4efe5;
}

.intake-section.awaiting-route {
  display: none;
}

.intake-context {
  align-self: start;
  padding: 30px;
  border: 1px solid var(--line-dark);
  border-right: 0;
  background: #141b1a;
}

.context-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.context-icon {
  border: 1px solid rgba(212, 181, 116, 0.3);
  background: transparent;
  color: var(--gold-light);
}

.intake-context h2 {
  margin: 46px 0 12px;
  font-family: "Cormorant Garamond", serif;
  font-size: 32px;
  font-weight: 600;
  line-height: 1;
}

.intake-context > p:not(.eyebrow) {
  margin: 0;
  color: rgba(255, 255, 255, 0.58);
  font-size: 9px;
  line-height: 1.7;
}

.route-details {
  margin: 28px 0 0;
  border-top: 1px solid var(--line-dark);
}

.route-details div {
  padding: 13px 0;
  border-bottom: 1px solid var(--line-dark);
}

.context-note {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  color: rgba(255, 255, 255, 0.48);
}

.context-note svg {
  width: 14px;
  flex: 0 0 auto;
  color: var(--gold);
}

.context-note p {
  margin: 0;
  font-size: 8px;
  line-height: 1.65;
}

.prepare-list {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line-dark);
}

.prepare-list li {
  color: rgba(255, 255, 255, 0.55);
}

.change-route {
  width: 100%;
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: 22px;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  background: transparent;
  color: rgba(255, 255, 255, 0.58);
  font-size: 7px;
  font-weight: 700;
  text-transform: uppercase;
  transition: border-color 160ms ease, color 160ms ease;
}

.change-route:hover {
  border-color: rgba(212, 181, 116, 0.45);
  color: var(--gold-light);
}

.change-route svg {
  width: 13px;
}

.form-workspace {
  min-height: 720px;
  scroll-margin-top: calc(var(--header-height) + 18px);
  border: 1px solid #dedbd2;
  background: var(--paper-2);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.intake-toolbar {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 34px;
  border-bottom: 1px solid var(--line);
  background: #eeece5;
  color: #73776f;
  font-size: 8px;
  font-weight: 700;
}

.intake-toolbar > div {
  display: flex;
  align-items: center;
  gap: 14px;
}

.intake-toolbar svg {
  width: 12px;
}

.intake-route-code {
  padding: 3px 5px;
  border-radius: 2px;
  background: var(--ink);
  color: #fff;
}

.form-stepper {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 0 34px;
  border-bottom: 1px solid var(--line);
}

.step-tab {
  position: relative;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 15px 5px;
  border: 0;
  background: transparent;
  color: #8b8e87;
  text-align: left;
}

.step-tab::after {
  position: absolute;
  right: 5px;
  bottom: -1px;
  left: 5px;
  height: 2px;
  background: transparent;
  content: "";
}

.step-tab.active::after {
  background: var(--red);
}

.step-tab span {
  width: 20px;
  height: 20px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: #e9e6de;
  font-size: 7px;
  font-weight: 700;
}

.step-tab strong {
  overflow: hidden;
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.step-tab.active {
  color: var(--ink);
}

.step-tab.active span {
  background: var(--red);
  color: #fff;
}

.step-tab.complete span {
  background: var(--green);
  color: #fff;
}

.form-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin: 0 34px;
  padding: 34px 0 25px;
  border-bottom: 1px solid var(--line);
}

.document-reference {
  margin: 0;
  color: var(--gold);
  font-size: 7px;
  font-weight: 700;
  text-transform: uppercase;
}

.document-reference span {
  margin: 0 5px;
}

.form-heading h2 {
  max-width: 520px;
  margin: 8px 0 0;
  font-family: "Cormorant Garamond", serif;
  font-size: 38px;
  font-weight: 600;
  line-height: 1;
}

.draft-tools {
  display: flex;
  align-items: center;
  gap: 12px;
}

.draft-status,
.draft-clear {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #777b73;
  font-size: 7px;
  font-weight: 700;
}

.draft-clear {
  padding: 0;
  border: 0;
  background: transparent;
}

.draft-clear:hover {
  color: var(--red);
}

.draft-status svg,
.draft-clear svg {
  width: 12px;
}

.draft-status svg[data-lucide="loader-circle"] {
  animation: spin 700ms linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

form {
  display: grid;
  gap: 26px;
  padding: 22px 34px 32px;
}

.completion-meter {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #858880;
  font-size: 7px;
  font-weight: 700;
  text-transform: uppercase;
}

.completion-track {
  height: 3px;
  flex: 1;
  overflow: hidden;
  background: #e5e2da;
}

.completion-track span {
  width: 0;
  height: 100%;
  display: block;
  background: var(--red);
  transition: width 260ms ease;
}

.form-alert {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 12px;
  border-left: 3px solid var(--red);
  background: rgba(127, 40, 49, 0.07);
  color: #704248;
  font-size: 8px;
  line-height: 1.5;
}

.form-alert svg {
  width: 14px;
  flex: 0 0 auto;
}

fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.form-step {
  display: none;
  min-height: 330px;
}

.form-step.active {
  display: block;
  animation: step-enter 240ms ease both;
}

@keyframes step-enter {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

legend {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  color: var(--ink);
  font-family: "Cormorant Garamond", serif;
  font-size: 19px;
  font-weight: 700;
}

legend span {
  color: var(--gold);
  font-family: "Inter", sans-serif;
  font-size: 7px;
}

.step-introduction {
  max-width: 600px;
  margin: 7px 0 26px;
  color: #777b73;
  font-size: 9px;
  line-height: 1.65;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 20px;
}

.field-grid label {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.field-grid label.wide {
  grid-column: 1 / -1;
}

.field-grid label > span {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #656961;
  font-size: 7px;
  font-weight: 700;
  text-transform: uppercase;
  transition: color 160ms ease;
}

.field-grid label:focus-within > span {
  color: var(--gold);
}

.field-grid label > span small {
  color: #9a9d95;
  font-size: 7px;
  font-weight: 600;
  text-transform: none;
}

input,
select,
textarea {
  width: 100%;
  outline: none;
  color: var(--ink);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

input,
select {
  height: 42px;
  padding: 0 2px;
  border: 0;
  border-bottom: 1px solid #cbc8bf;
  border-radius: 0;
  background: transparent;
}

textarea {
  min-height: 94px;
  resize: vertical;
  padding: 11px;
  border: 1px solid #d2cfc6;
  border-radius: var(--radius);
  background: #fff;
  line-height: 1.55;
}

input:focus,
select:focus {
  border-color: var(--gold);
  box-shadow: 0 2px 0 rgba(173, 135, 71, 0.13);
}

textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(173, 135, 71, 0.1);
}

input::placeholder,
textarea::placeholder {
  color: #a5a79f;
}

.field-grid small {
  color: #888b84;
  font-size: 7px;
  line-height: 1.5;
}

.anonymous-option {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 18px;
  padding: 13px;
  border: 1px solid var(--line);
  background: #f0eee8;
  color: #696d66;
  font-size: 8px;
  line-height: 1.55;
}

.anonymous-option input,
.confirmation input {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  accent-color: var(--red);
}

.anonymous-option span {
  display: grid;
  gap: 2px;
}

.anonymous-option strong {
  color: var(--ink);
}

.confirmation {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: #656961;
  font-size: 8px;
}

.form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.step-status {
  color: #777b73;
  font-size: 7px;
  font-weight: 700;
  text-transform: uppercase;
}

.form-navigation {
  display: flex;
  gap: 8px;
}

.text-button {
  border: 1px solid var(--line);
  background: transparent;
  color: #656961;
}

.process-section {
  background: var(--paper-3);
}

.process-list {
  max-width: var(--content);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0 auto;
  padding: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  list-style: none;
}

.process-list li {
  min-height: 160px;
  display: flex;
  gap: 18px;
  padding: 28px;
  border-right: 1px solid var(--line);
}

.process-list li:last-child {
  border-right: 0;
}

.process-list > li > span {
  display: grid;
  align-content: start;
  gap: 14px;
  color: var(--red);
  font-size: 8px;
  font-weight: 700;
}

.process-list > li > span svg {
  width: 19px;
  height: 19px;
  color: var(--gold);
}

.process-list strong {
  font-family: "Cormorant Garamond", serif;
  font-size: 19px;
}

.process-list p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.65;
}

.records-section {
  background: var(--paper-2);
}

.records-heading {
  margin-bottom: 28px;
}

.records-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
}

.record-filters {
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 3px;
  border: 1px solid var(--line);
  background: #f0eee8;
}

.record-filters button {
  min-height: 29px;
  padding: 0 9px;
  border: 0;
  border-radius: 2px;
  background: transparent;
  color: #797d76;
  font-size: 7px;
  font-weight: 700;
  text-transform: uppercase;
}

.record-filters button:hover,
.record-filters button.active {
  background: #fff;
  color: var(--red);
  box-shadow: 0 1px 3px rgba(20, 27, 26, 0.09);
}

.records-heading > div > p:last-child {
  margin-top: 8px;
}

.records-list {
  max-width: var(--content);
  display: grid;
  gap: 7px;
  margin: 0 auto;
}

.record {
  display: grid;
  grid-template-columns: minmax(140px, 0.7fr) minmax(220px, 1.8fr) minmax(140px, 0.7fr) 100px 34px;
  align-items: center;
  gap: 16px;
  padding: 17px;
  border: 1px solid var(--line);
  background: #fff;
}

.record span,
.record small {
  display: block;
  color: #858880;
  font-size: 7px;
  font-weight: 700;
  text-transform: uppercase;
}

.record strong {
  display: block;
  overflow: hidden;
  margin-top: 4px;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.record-status {
  display: inline-flex !important;
  align-items: center;
  gap: 5px;
  color: var(--green) !important;
}

.record-status::before {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #749379;
  content: "";
}

.copy-reference {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: transparent;
  color: #73776f;
}

.copy-reference:hover {
  color: var(--red);
}

.copy-reference svg {
  width: 13px;
}

.empty-records {
  min-height: 150px;
  display: grid;
  place-items: center;
  padding: 24px;
  border: 1px dashed #c8c5bc;
  color: #7b7f77;
  text-align: center;
}

.empty-records svg {
  width: 20px;
  margin-bottom: 9px;
}

.empty-records strong {
  color: var(--ink);
  font-family: "Cormorant Garamond", serif;
  font-size: 16px;
}

.empty-records p {
  max-width: 360px;
  margin: 5px 0 0;
  font-size: 8px;
  line-height: 1.55;
}

.empty-action {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 14px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: transparent;
  color: var(--red);
  font-size: 7px;
  font-weight: 700;
  text-transform: uppercase;
}

.empty-action:hover {
  border-color: var(--red);
  background: var(--red);
  color: #fff;
}

footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 34px max(24px, calc((100vw - var(--content)) / 2));
  border-top: 1px solid rgba(212, 181, 116, 0.14);
  background: #111817;
  color: #f5f1e8;
}

.footer-links {
  display: flex;
  gap: 20px;
  color: rgba(255, 255, 255, 0.52);
  font-size: 8px;
  font-weight: 700;
  text-transform: uppercase;
}

.footer-links a:hover {
  color: var(--gold-light);
}

dialog {
  width: min(680px, calc(100vw - 26px));
  max-height: calc(100svh - 26px);
  overflow: auto;
  border: 1px solid rgba(212, 181, 116, 0.28);
  border-radius: var(--radius);
  background: #19201f;
  color: #f5f1e8;
  box-shadow: var(--shadow);
}

dialog::backdrop {
  background: rgba(7, 10, 9, 0.78);
  backdrop-filter: blur(7px);
}

dialog[open] {
  animation: dialog-enter 200ms ease both;
}

@keyframes dialog-enter {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.99);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.review-dialog {
  padding: 26px;
}

.dialog-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line-dark);
}

.dialog-header h2,
.receipt-dialog h2 {
  margin: 6px 0 0;
  font-family: "Cormorant Garamond", serif;
  font-size: 28px;
}

.review-route {
  margin-top: 20px;
  padding: 14px;
  border-left: 3px solid var(--red);
  background: #202726;
  color: rgba(255, 255, 255, 0.72);
  font-size: 9px;
  line-height: 1.6;
}

.review-data {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 20px 0 0;
  border-top: 1px solid var(--line-dark);
}

.review-data div {
  min-width: 0;
  padding: 13px 10px 13px 0;
  border-bottom: 1px solid var(--line-dark);
}

.review-data div.wide {
  grid-column: 1 / -1;
}

.review-data dt {
  margin-bottom: 5px;
  color: rgba(255, 255, 255, 0.36);
  font-size: 7px;
  font-weight: 700;
  text-transform: uppercase;
}

.review-data dd {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 9px;
  line-height: 1.6;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.dialog-actions {
  justify-content: flex-end;
  margin-top: 20px;
}

.receipt-dialog {
  width: min(450px, calc(100vw - 26px));
  padding: 38px;
  text-align: center;
}

.receipt-dialog > img {
  width: 72px;
  margin: 0 auto 17px;
}

.receipt-dialog h2 {
  color: var(--gold-light);
  font-size: 28px;
}

.receipt-dialog p:not(.eyebrow) {
  margin: 10px 0 20px;
  color: rgba(255, 255, 255, 0.56);
  font-size: 9px;
  line-height: 1.65;
}

.receipt-dialog .primary-button {
  width: 100%;
}

.receipt-close {
  position: absolute;
  top: 10px;
  right: 10px;
}

.toast {
  position: fixed;
  z-index: 120;
  right: 22px;
  bottom: 22px;
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  border: 1px solid rgba(212, 181, 116, 0.3);
  border-radius: var(--radius);
  background: #151d1b;
  color: #f4efe5;
  box-shadow: 0 16px 40px rgba(8, 12, 11, 0.22);
  font-size: 8px;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.toast svg {
  width: 14px;
  color: #87aa8e;
}

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 500ms ease, transform 500ms ease;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.routing-desk.reveal,
.route-assistant.reveal {
  transform: translateY(10px);
}

.routing-desk.reveal.revealed,
.route-assistant.reveal.revealed {
  transform: translateY(0);
}

.portal-card.reveal {
  transform: translateX(-8px);
}

.portal-card.reveal.revealed {
  transform: translateX(0);
}

.portal-card:nth-child(2).reveal {
  transition-delay: 45ms;
}

.portal-card:nth-child(3).reveal {
  transition-delay: 90ms;
}

.portal-card:nth-child(4).reveal {
  transition-delay: 135ms;
}

:focus-visible {
  outline: 2px solid var(--gold-light);
  outline-offset: 3px;
}

/* Refined type scale and material finish */
::selection {
  background: rgba(127, 40, 49, 0.18);
  color: var(--ink);
}

.service-bar {
  font-size: 10px;
}

.resume-draft {
  min-height: 26px;
  border-radius: var(--radius);
  font-size: 9px;
}

.brand small,
.footer-brand small {
  font-size: 9px;
}

.main-nav {
  gap: 24px;
  font-size: 10px;
}

.main-nav a:not(.nav-submit) {
  position: relative;
  padding: 8px 0;
}

.main-nav a:not(.nav-submit)::after {
  position: absolute;
  right: 0;
  bottom: 1px;
  left: 0;
  height: 1px;
  background: var(--gold-light);
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

.main-nav a:not(.nav-submit):hover::after,
.main-nav a:not(.nav-submit).section-active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-submit {
  min-height: 40px;
  padding: 0 16px;
  transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease;
}

.nav-submit:hover {
  border-color: var(--gold-light);
  background: var(--gold-light);
  color: var(--ink) !important;
}

.hero h1 {
  max-width: 620px;
  font-size: clamp(64px, 6.1vw, 90px);
}

.hero-kicker,
.hero-footer {
  font-size: 10px;
}

.hero-copy {
  max-width: 550px;
  font-size: 15px;
  line-height: 1.75;
}

.primary-button,
.secondary-button,
.text-button {
  font-size: 11px;
}

.portal-section,
.process-section,
.records-section {
  position: relative;
  padding-top: 104px;
  padding-bottom: 104px;
}

.portal-section::before,
.records-section::before {
  position: absolute;
  top: 0;
  left: 50%;
  width: min(76px, 18vw);
  height: 1px;
  background: var(--gold);
  content: "";
  transform: translateX(-50%);
}

.portal-section::after,
.records-section::after {
  position: absolute;
  top: -3px;
  left: 50%;
  width: 7px;
  height: 7px;
  border: 1px solid var(--gold);
  background: var(--paper);
  content: "";
  transform: translateX(-50%) rotate(45deg);
}

.records-section::after {
  background: var(--paper-2);
}

.process-section {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  font-size: 10px;
}

.section-heading,
.records-heading {
  margin-bottom: 44px;
}

.section-heading h2,
.records-heading h2 {
  font-size: clamp(44px, 4.2vw, 58px);
  line-height: 1;
}

.section-heading > p,
.records-heading p:last-child {
  font-size: 13px;
  line-height: 1.75;
}

.route-assistant {
  margin-bottom: 18px;
  padding: 18px 20px;
  border-color: #d2cec3;
  background: #f9f7f2;
}

.route-assistant-icon {
  width: 38px;
  height: 38px;
}

.route-assistant strong {
  font-size: 11px;
}

.route-assistant small {
  font-size: 10px;
  line-height: 1.5;
}

.route-suggestions {
  gap: 5px;
}

.route-suggestions button {
  min-height: 34px;
  padding: 0 12px;
  border-radius: var(--radius);
  background: #fdfcf9;
  font-size: 9px;
  transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease,
    transform 160ms ease;
}

.route-suggestions button:hover {
  transform: translateY(-1px);
}

.routing-desk {
  border-color: #d2cec3;
  box-shadow: 0 28px 70px rgba(27, 33, 31, 0.1);
}

.portal-card {
  min-height: 120px;
  padding: 20px 24px;
  transition: background-color 180ms ease, box-shadow 180ms ease;
}

.portal-card:hover,
.portal-card.active {
  background: #fff;
  box-shadow: inset 3px 0 0 var(--red);
}

.portal-number,
.portal-label {
  font-size: 9px;
}

.portal-card strong {
  font-size: 22px;
}

.portal-description {
  font-size: 11px;
}

.route-preview {
  min-height: 480px;
  padding: 36px 38px;
}

.route-preview-topline {
  margin-bottom: 36px;
}

.route-selected {
  font-size: 9px;
}

.route-preview h3 {
  max-width: 420px;
  font-size: 40px;
  line-height: 1;
}

.route-preview > p:not(.eyebrow) {
  font-size: 12px;
  line-height: 1.75;
}

.route-fit > span,
.prepare-list > span,
.route-preview dt,
.route-details dt {
  font-size: 8px;
}

.route-fit li,
.prepare-list li,
.route-preview dd,
.route-details dd {
  font-size: 10px;
}

.route-continue {
  min-height: 50px;
  font-size: 10px;
}

.intake-section {
  border-top: 1px solid rgba(212, 181, 116, 0.18);
  border-bottom: 1px solid rgba(212, 181, 116, 0.14);
}

.intake-context {
  padding: 34px;
}

.intake-context h2 {
  font-size: 36px;
}

.intake-context > p:not(.eyebrow) {
  font-size: 11px;
}

.context-note p,
.change-route,
.intake-toolbar,
.step-tab strong {
  font-size: 9px;
}

.document-reference,
.draft-status,
.draft-clear,
.completion-meter,
.step-status {
  font-size: 8px;
}

.form-heading h2 {
  font-size: 40px;
}

.form-alert,
.anonymous-option,
.confirmation {
  font-size: 10px;
}

legend {
  font-size: 22px;
}

legend span {
  font-size: 8px;
}

.step-introduction {
  font-size: 11px;
  line-height: 1.7;
}

.field-grid label > span {
  font-size: 9px;
}

.field-grid label > span small {
  font-size: 8px;
}

.field-grid small {
  font-size: 9px;
}

input,
select,
textarea {
  font-size: 13px;
}

.process-list li {
  min-height: 178px;
  padding: 32px;
}

.process-list > li > span {
  font-size: 9px;
}

.process-list strong {
  font-size: 22px;
}

.process-list p {
  font-size: 11px;
  line-height: 1.75;
}

.record-filters button,
.record span,
.record small,
.empty-action {
  font-size: 8px;
}

.record strong {
  font-size: 11px;
}

.record {
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.record:hover {
  border-color: #c6c1b5;
  box-shadow: 0 12px 28px rgba(27, 33, 31, 0.07);
  transform: translateY(-1px);
}

.empty-records {
  min-height: 176px;
  background: rgba(255, 255, 255, 0.42);
}

.empty-records strong {
  font-size: 19px;
}

.empty-records p,
.footer-links {
  font-size: 10px;
}

.review-route,
.review-data dd,
.receipt-dialog p:not(.eyebrow),
.toast {
  font-size: 10px;
}

.review-data dt {
  font-size: 8px;
}

.reveal {
  transform: translateY(18px);
  transition-duration: 620ms;
  transition-timing-function: cubic-bezier(0.2, 0.7, 0.2, 1);
}

@media (max-width: 1000px) {
  .route-assistant {
    align-items: flex-start;
    flex-direction: column;
  }

  .route-suggestions {
    justify-content: flex-start;
  }

  .routing-desk,
  .intake-section {
    grid-template-columns: 1fr;
  }

  .portal-card {
    border-right: 0;
  }

  .intake-context {
    border-right: 1px solid var(--line-dark);
    border-bottom: 0;
  }
}

@media (max-width: 760px) {
  :root {
    --header-height: 64px;
    --service-height: 30px;
  }

  .service-bar {
    padding: 0 14px;
    font-size: 7px;
  }

  .service-bar > span,
  .service-status,
  .service-actions > span {
    display: none;
  }

  .site-header {
    gap: 8px;
    padding: 0 14px;
  }

  .brand img {
    width: 36px;
    height: 36px;
  }

  .brand strong {
    font-size: 16px;
  }

  .brand small {
    font-size: 7px;
  }

  .menu-button {
    margin-left: auto;
    display: inline-grid;
  }

  .staff-entry {
    width: 40px;
    min-width: 40px;
    height: 40px;
    justify-content: center;
    padding: 0;
    border: 1px solid rgba(212, 181, 116, 0.34);
  }

  .staff-entry span,
  .staff-entry-arrow {
    display: none;
  }

  .main-nav {
    position: absolute;
    top: var(--header-height);
    right: 0;
    left: 0;
    display: none;
    align-items: stretch;
    gap: 0;
    padding: 8px 14px 16px;
    border-bottom: 1px solid rgba(212, 181, 116, 0.2);
    background: #111817;
  }

  .main-nav.open {
    display: grid;
  }

  .main-nav a {
    padding: 12px 2px;
    border-bottom: 1px solid var(--line-dark);
  }

  .hero {
    min-height: 650px;
    background-position: 62% center;
  }

  .hero-emblem {
    display: none;
  }

  .hero-inner {
    width: 100%;
    margin: 0;
    padding: 70px 18px 180px;
  }

  .hero h1 {
    max-width: 360px;
    font-size: 60px;
  }

  .hero-copy {
    max-width: 340px;
    font-size: 12px;
  }

  .hero-actions {
    display: grid;
  }

  .hero-footer {
    right: 18px;
    left: 18px;
    grid-template-columns: 1fr;
  }

  .hero-footer span {
    padding: 6px 0;
  }

  .portal-section,
  .process-section,
  .records-section {
    padding: 64px 16px;
  }

  .section-heading,
  .records-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 28px;
  }

  .records-actions {
    width: 100%;
    align-items: stretch;
    flex-direction: column;
  }

  .record-filters {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .record-filters button {
    padding: 0 4px;
  }

  .section-heading h2,
  .records-heading h2 {
    font-size: 42px;
  }

  .route-assistant {
    padding: 14px;
  }

  .route-suggestions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }

  .route-suggestions button {
    border-radius: var(--radius);
  }

  .portal-card {
    min-height: 102px;
    grid-template-columns: 20px 34px minmax(0, 1fr) 16px;
    gap: 11px;
    padding: 15px 12px;
  }

  .portal-icon {
    width: 34px;
    height: 34px;
  }

  .portal-card strong {
    font-size: 18px;
  }

  .portal-description {
    display: none;
  }

  .route-preview {
    min-height: 480px;
    padding: 26px 22px;
  }

  .route-preview h3 {
    font-size: 34px;
  }

  .intake-section {
    padding: 54px 14px;
  }

  .intake-context {
    padding: 24px;
  }

  .intake-context h2 {
    margin-top: 32px;
    font-size: 30px;
  }

  .intake-toolbar {
    align-items: flex-start;
    flex-direction: column;
    min-height: 0;
    padding: 12px 20px;
  }

  .intake-toolbar > div:last-child {
    display: none;
  }

  .form-stepper {
    padding: 0 20px;
  }

  .step-tab {
    justify-content: center;
    padding: 13px 2px;
  }

  .step-tab strong {
    display: none;
  }

  .form-heading {
    align-items: flex-start;
    flex-direction: column;
    margin: 0 20px;
    padding: 26px 0 22px;
  }

  .form-heading h2 {
    font-size: 34px;
  }

  .draft-tools {
    width: 100%;
    justify-content: space-between;
  }

  form {
    padding: 19px 20px 28px;
  }

  .field-grid,
  .process-list,
  .review-data {
    grid-template-columns: 1fr;
  }

  .field-grid label.wide,
  .review-data div.wide {
    grid-column: auto;
  }

  .form-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .form-navigation {
    width: 100%;
  }

  .form-navigation .primary-button,
  .form-navigation .text-button {
    flex: 1;
  }

  .process-list li {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .process-list li:last-child {
    border-bottom: 0;
  }

  .record {
    grid-template-columns: 1fr 1fr 34px;
  }

  .record > div:nth-child(2),
  .record > div:nth-child(3) {
    grid-column: 1 / -1;
  }

  footer {
    align-items: flex-start;
    flex-direction: column;
    padding: 28px 16px;
  }

  .footer-links {
    flex-wrap: wrap;
    gap: 14px;
  }

  .review-dialog,
  .receipt-dialog {
    padding: 22px;
  }

  .toast {
    right: 14px;
    bottom: 14px;
    left: 14px;
    justify-content: center;
  }
}

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

.index-section {
  position: relative;
  padding: 104px 4vw;
  background: var(--paper-2);
}

.index-section::before {
  position: absolute;
  top: 0;
  left: 50%;
  width: min(76px, 18vw);
  height: 1px;
  background: var(--gold);
  content: "";
  transform: translateX(-50%);
}

.index-section::after {
  position: absolute;
  top: -3px;
  left: 50%;
  width: 7px;
  height: 7px;
  border: 1px solid var(--gold);
  background: var(--paper-2);
  content: "";
  transform: translateX(-50%) rotate(45deg);
}

.index-heading {
  margin-bottom: 44px;
}

.index-console {
  max-width: var(--content);
  margin: 0 auto;
  border: 1px solid #cbc7bd;
  background: #fff;
  box-shadow: 0 28px 70px rgba(27, 33, 31, 0.1);
}

.index-toolbar {
  min-height: 70px;
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(260px, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  background: #f5f3ed;
}

.index-live-status,
.index-live-status > span:last-child,
.index-toolbar-actions,
.index-filters,
.index-search {
  display: flex;
  align-items: center;
}

.index-live-status {
  gap: 10px;
}

.index-live-status > span:last-child {
  align-items: flex-start;
  flex-direction: column;
  gap: 3px;
}

.index-live-status strong {
  font-size: 10px;
}

.index-live-status small {
  color: var(--muted);
  font-size: 8px;
}

.index-live-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border: 2px solid #dce6dd;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(96, 124, 101, 0.12);
}

.index-search {
  min-height: 40px;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid var(--line);
  background: #fff;
  color: #898c84;
}

.index-search svg {
  width: 15px;
  flex: 0 0 auto;
}

.index-search input {
  height: auto;
  padding: 0;
  border: 0;
  box-shadow: none;
  font-size: 11px;
}

.index-search input:focus {
  box-shadow: none;
}

.index-toolbar-actions {
  gap: 8px;
}

.index-filters {
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line);
  background: #ebe8e0;
}

.index-filters button,
.index-refresh {
  min-height: 32px;
  border: 0;
  border-radius: 2px;
  background: transparent;
  color: #747970;
}

.index-filters button {
  padding: 0 9px;
  font-size: 8px;
  font-weight: 700;
  text-transform: uppercase;
}

.index-filters button:hover,
.index-filters button.active {
  background: #fff;
  color: var(--red);
  box-shadow: 0 1px 3px rgba(20, 27, 26, 0.09);
}

.index-refresh {
  width: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: #fff;
}

.index-refresh:hover {
  color: var(--red);
}

.index-refresh svg {
  width: 14px;
}

.index-refresh.spinning svg,
#interestSubmit svg[data-lucide="loader-circle"] {
  animation: spin 700ms linear infinite;
}

.index-summary {
  min-height: 64px;
  display: grid;
  grid-template-columns: repeat(3, minmax(130px, 1fr)) minmax(180px, 1.3fr);
  align-items: stretch;
  border-bottom: 1px solid var(--line);
}

.index-summary > div,
.index-summary > a {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 18px;
  border-right: 1px solid var(--line);
}

.index-summary > div {
  color: var(--muted);
}

.index-summary span {
  font-size: 8px;
  font-weight: 700;
  text-transform: uppercase;
}

.index-summary strong {
  color: var(--ink);
  font-family: "Cormorant Garamond", serif;
  font-size: 24px;
}

.index-summary > a {
  justify-content: center;
  border-right: 0;
  color: var(--red);
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  transition: background-color 160ms ease;
}

.index-summary > a:hover {
  background: #f7f4ed;
}

.index-summary > a svg {
  width: 14px;
}

.index-browser {
  min-height: 580px;
  display: grid;
  grid-template-columns: minmax(230px, 0.72fr) minmax(0, 2fr);
}

.index-directory {
  min-width: 0;
  border-right: 1px solid var(--line);
  background: #f3f1eb;
}

.index-directory-heading {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 8px;
  font-weight: 700;
  text-transform: uppercase;
}

.index-directory-heading small {
  color: var(--gold);
  font-size: 8px;
}

#indexDirectory {
  max-height: 620px;
  overflow-y: auto;
}

#indexDirectory button {
  width: 100%;
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 16px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  text-align: left;
  transition: background-color 160ms ease, box-shadow 160ms ease;
}

#indexDirectory button:hover,
#indexDirectory button.active {
  background: #fff;
  box-shadow: inset 3px 0 0 var(--red);
}

#indexDirectory button > span {
  min-width: 0;
  display: grid;
  gap: 4px;
}

#indexDirectory button strong {
  overflow: hidden;
  font-family: "Cormorant Garamond", serif;
  font-size: 17px;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#indexDirectory button small {
  color: var(--muted);
  font-size: 7px;
  font-weight: 700;
  text-transform: uppercase;
}

#indexDirectory button em {
  min-width: 24px;
  min-height: 24px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
  font-size: 8px;
  font-style: normal;
  font-weight: 700;
}

#indexDirectory button.active em {
  border-color: rgba(127, 40, 49, 0.22);
  color: var(--red);
}

.index-directory-notice {
  display: grid;
  place-items: center;
  gap: 8px;
  padding: 36px 18px;
  color: var(--muted);
  font-size: 9px;
  text-align: center;
}

.index-directory-notice svg {
  width: 18px;
}

.index-content {
  min-width: 0;
  background: #fff;
}

.index-content-heading {
  min-height: 104px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 26px;
  border-bottom: 1px solid var(--line);
}

.index-content-heading h3 {
  margin: 7px 0 0;
  font-family: "Cormorant Garamond", serif;
  font-size: 34px;
  font-weight: 600;
  line-height: 1;
}

.index-content-heading > span {
  color: var(--muted);
  font-size: 8px;
  font-weight: 700;
  text-transform: uppercase;
}

.index-entry-list {
  max-height: 568px;
  overflow-y: auto;
}

.index-entry {
  min-height: 108px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 22px 18px 26px;
  border-bottom: 1px solid var(--line);
  transition: background-color 160ms ease, box-shadow 160ms ease;
}

.index-entry:hover {
  background: #faf8f3;
  box-shadow: inset 3px 0 0 var(--gold);
}

.index-entry-copy {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.index-entry-meta {
  display: flex;
  align-items: center;
  gap: 7px;
}

.index-entry-meta small {
  color: var(--gold);
  font-size: 7px;
  font-weight: 700;
  text-transform: uppercase;
}

.index-entry-meta .index-entry-label {
  padding-left: 7px;
  border-left: 1px solid var(--line);
  color: var(--red);
}

.index-entry strong {
  font-family: "Cormorant Garamond", serif;
  font-size: 20px;
  line-height: 1.05;
}

.index-entry p {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.6;
}

.index-entry-open {
  width: 34px;
  height: 34px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--line);
  color: var(--red);
  transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease;
}

.index-entry:hover .index-entry-open {
  border-color: var(--red);
  background: var(--red);
  color: #fff;
}

.index-entry-open svg {
  width: 14px;
}

.index-empty {
  min-height: 360px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  padding: 30px;
  color: var(--muted);
  text-align: center;
}

.index-empty svg {
  width: 24px;
  color: var(--gold);
}

.index-empty strong {
  color: var(--ink);
  font-family: "Cormorant Garamond", serif;
  font-size: 22px;
}

.index-empty p {
  max-width: 380px;
  margin: 0;
  font-size: 10px;
  line-height: 1.6;
}

.index-empty a {
  margin-top: 8px;
  color: var(--red);
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
}

.index-loading-row,
.index-loading-entry {
  border-bottom: 1px solid var(--line);
  background: #e8e5dd;
  opacity: 0.55;
  animation: index-pulse 1.2s ease-in-out infinite alternate;
}

.index-loading-row {
  height: 62px;
  margin: 0;
}

.index-loading-entry {
  height: 108px;
  margin: 0;
}

@keyframes index-pulse {
  to {
    opacity: 0.22;
  }
}

.interest-section {
  padding: 104px 4vw;
  border-top: 1px solid rgba(212, 181, 116, 0.18);
  border-bottom: 1px solid rgba(212, 181, 116, 0.14);
  background: #18201f;
  color: #f4efe5;
}

.interest-inner {
  max-width: var(--content);
  display: grid;
  grid-template-columns: minmax(300px, 0.75fr) minmax(0, 1.25fr);
  align-items: start;
  gap: 64px;
  margin: 0 auto;
}

.interest-copy {
  position: sticky;
  top: calc(var(--header-height) + 28px);
  padding-top: 18px;
}

.interest-copy h2 {
  max-width: 500px;
  margin: 12px 0 18px;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(44px, 4.4vw, 62px);
  font-weight: 600;
  line-height: 0.98;
}

.interest-copy > p:not(.eyebrow) {
  max-width: 470px;
  margin: 0;
  color: rgba(255, 255, 255, 0.6);
  font-size: 12px;
  line-height: 1.75;
}

.interest-principles {
  margin-top: 38px;
  border-top: 1px solid var(--line-dark);
}

.interest-principles > div {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 4px 12px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line-dark);
}

.interest-principles span {
  grid-row: 1 / 3;
  color: var(--gold-light);
  font-size: 8px;
  font-weight: 700;
}

.interest-principles strong {
  font-family: "Cormorant Garamond", serif;
  font-size: 20px;
}

.interest-principles p {
  margin: 0;
  color: rgba(255, 255, 255, 0.48);
  font-size: 9px;
  line-height: 1.65;
}

.interest-workspace {
  min-width: 0;
  border: 1px solid #dedbd2;
  background: var(--paper-2);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.interest-workspace-heading {
  min-height: 118px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 32px;
  border-bottom: 1px solid var(--line);
}

.interest-workspace-heading h3 {
  margin: 8px 0 0;
  font-family: "Cormorant Garamond", serif;
  font-size: 38px;
  font-weight: 600;
  line-height: 1;
}

.interest-workspace-heading > span,
.interest-form-footer > span {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 8px;
  font-weight: 700;
}

.interest-workspace-heading svg,
.interest-form-footer > span svg {
  width: 13px;
}

#interestForm {
  display: grid;
  gap: 24px;
  padding: 26px 32px 32px;
}

.interest-intro {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 12px;
  border-left: 3px solid var(--gold);
  background: #f0eee8;
  color: var(--muted);
}

.interest-intro svg {
  width: 15px;
  flex: 0 0 auto;
  color: var(--gold);
}

.interest-intro p {
  margin: 0;
  font-size: 9px;
  line-height: 1.65;
}

.interest-field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 20px;
}

.interest-field-grid label {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.interest-field-grid label.wide {
  grid-column: 1 / -1;
}

.interest-field-grid label > span {
  color: #656961;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
}

.interest-field-grid label:focus-within > span {
  color: var(--gold);
}

.interest-confirmation {
  margin-top: 0;
}

.interest-form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.interest-success {
  min-height: 620px;
  display: grid;
  place-items: center;
  align-content: center;
  padding: 42px;
  color: var(--muted);
  text-align: center;
}

.interest-success > svg {
  width: 38px;
  height: 38px;
  margin-bottom: 16px;
  color: var(--green);
}

.interest-success h3 {
  margin: 8px 0 10px;
  color: var(--ink);
  font-family: "Cormorant Garamond", serif;
  font-size: 40px;
}

.interest-success > p:not(.eyebrow) {
  max-width: 420px;
  margin: 0;
  font-size: 11px;
  line-height: 1.7;
}

.interest-success .secondary-button {
  margin-top: 22px;
  border-color: var(--line);
  background: transparent;
  color: var(--red);
}

@media (max-width: 1120px) {
  .index-toolbar {
    grid-template-columns: minmax(220px, 1fr) minmax(260px, 1fr);
  }

  .index-toolbar-actions {
    grid-column: 1 / -1;
    justify-content: space-between;
  }

  .interest-inner {
    grid-template-columns: minmax(270px, 0.65fr) minmax(0, 1.35fr);
    gap: 28px;
  }
}

@media (max-width: 760px) {
  .index-section,
  .interest-section {
    padding: 64px 16px;
  }

  .record-filters {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .index-toolbar {
    display: flex;
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
  }

  .index-search {
    width: 100%;
  }

  .index-toolbar-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .index-filters {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .index-refresh {
    position: absolute;
    top: 14px;
    right: 14px;
  }

  .index-summary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .index-summary > div {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
    padding: 12px 10px;
  }

  .index-summary > a {
    grid-column: 1 / -1;
    min-height: 44px;
    border-top: 1px solid var(--line);
  }

  .index-summary strong {
    font-size: 20px;
  }

  .index-browser {
    display: block;
    min-height: 0;
  }

  .index-directory {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  #indexDirectory {
    max-height: 250px;
  }

  .index-content-heading {
    min-height: 0;
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    padding: 22px 18px;
  }

  .index-content-heading h3 {
    font-size: 30px;
  }

  .index-entry-list {
    max-height: 540px;
  }

  .index-entry {
    min-height: 118px;
    padding: 17px 15px 17px 18px;
  }

  .index-entry strong {
    font-size: 19px;
  }

  .index-entry p {
    font-size: 9px;
  }

  .interest-inner {
    display: block;
  }

  .interest-copy {
    position: static;
    padding: 0 2px 40px;
  }

  .interest-copy h2 {
    font-size: 44px;
  }

  .interest-workspace-heading {
    min-height: 0;
    align-items: flex-start;
    flex-direction: column;
    padding: 24px 20px;
  }

  .interest-workspace-heading h3 {
    font-size: 34px;
  }

  #interestForm {
    padding: 22px 20px 26px;
  }

  .interest-field-grid {
    grid-template-columns: 1fr;
  }

  .interest-field-grid label.wide {
    grid-column: auto;
  }

  .interest-form-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .interest-form-footer .primary-button {
    width: 100%;
  }
}

/* Cleaner publication-style finish */
:root {
  --paper: #f6f4ef;
  --paper-2: #fbfaf7;
  --paper-3: #ece9e1;
  --line: #dcd8cf;
  --shadow: 0 20px 50px rgba(20, 27, 26, 0.1);
}

.service-bar {
  min-height: 30px;
  color: rgba(255, 255, 255, 0.5);
}

.site-header {
  border-bottom-color: rgba(255, 255, 255, 0.07);
}

.hero {
  min-height: 600px;
}

.hero-inner {
  padding-top: 72px;
}

.hero-copy {
  color: rgba(255, 255, 255, 0.68);
}

.hero-footer {
  border-top-color: rgba(255, 255, 255, 0.1);
}

.hero-footer span {
  padding: 17px 0;
}

.portal-section,
.process-section,
.index-section,
.interest-section,
.records-section {
  padding-top: 96px;
  padding-bottom: 96px;
}

.portal-section::before,
.portal-section::after,
.index-section::before,
.index-section::after,
.records-section::before,
.records-section::after {
  display: none;
}

.section-heading,
.records-heading {
  margin-bottom: 40px;
}

.section-heading h2,
.records-heading h2,
.interest-copy h2 {
  text-wrap: balance;
}

.route-assistant {
  margin-bottom: 12px;
  padding: 14px 0;
  border-width: 1px 0;
  background: transparent;
}

.route-assistant-icon {
  width: 32px;
  height: 32px;
  background: transparent;
}

.route-suggestions button {
  min-height: 32px;
  border-color: transparent;
  background: transparent;
}

.route-suggestions button:hover {
  border-color: var(--line);
  background: #fff;
  color: var(--red);
}

.route-suggestions button.active {
  border-color: var(--red);
  background: transparent;
  color: var(--red);
}

.routing-desk {
  box-shadow: 0 18px 42px rgba(27, 33, 31, 0.07);
}

.portal-card:hover,
.portal-card.active {
  box-shadow: inset 2px 0 0 var(--red);
}

.route-preview::after {
  opacity: 0.6;
}

.form-workspace,
.interest-workspace {
  box-shadow: 0 18px 48px rgba(8, 12, 11, 0.16);
}

.process-section {
  background: #efede6;
}

.process-list li {
  min-height: 160px;
}

.index-console {
  border-color: #d4d0c6;
  box-shadow: 0 18px 48px rgba(27, 33, 31, 0.07);
}

.index-toolbar {
  min-height: 64px;
  padding: 12px 16px;
  background: #f7f5f0;
}

.index-search {
  min-height: 38px;
  border-color: #d7d3ca;
}

.index-filters {
  gap: 0;
  padding: 0;
  border-color: #d7d3ca;
  background: transparent;
}

.index-filters button {
  min-height: 36px;
  padding: 0 11px;
  border-right: 1px solid #d7d3ca;
  border-radius: 0;
}

.index-filters button:last-child {
  border-right: 0;
}

.index-filters button:hover,
.index-filters button.active {
  background: #fff;
  box-shadow: none;
}

.index-summary {
  min-height: 58px;
  background: #fcfbf8;
}

.index-summary > div,
.index-summary > a {
  padding: 0 16px;
}

.index-summary strong {
  font-size: 22px;
}

.index-directory {
  background: #f6f4ee;
}

#indexDirectory button:hover,
#indexDirectory button.active {
  box-shadow: inset 2px 0 0 var(--red);
}

.index-entry {
  min-height: 104px;
}

.index-entry:hover {
  background: #faf9f5;
  box-shadow: inset 2px 0 0 var(--gold);
}

.interest-section {
  background: #151d1b;
}

.interest-principles > div {
  padding: 17px 0;
}

.interest-intro {
  border-left-width: 2px;
}

.records-section {
  background: #f7f5f0;
}

.empty-records {
  border-style: solid;
  background: transparent;
}

footer {
  padding-top: 30px;
  padding-bottom: 30px;
}

@media (max-width: 760px) {
  .service-bar {
    min-height: var(--service-height);
  }

  .hero {
    min-height: 630px;
  }

  .portal-section,
  .process-section,
  .index-section,
  .interest-section,
  .records-section {
    padding-top: 64px;
    padding-bottom: 64px;
  }

  .route-assistant {
    padding: 14px 0;
  }

  .route-suggestions button {
    border-color: var(--line);
  }

  .index-toolbar {
    padding: 14px;
  }
}

/* Imperial Index directory and chain of command */
.index-console {
  border: 0;
  background: transparent;
  box-shadow: none;
}

.index-toolbar {
  min-height: 0;
  display: block;
  padding: 0 0 20px;
  background: transparent;
}

.index-search {
  max-width: 620px;
  min-height: 46px;
  border-color: #cec9be;
  background: #fff;
}

.index-meta {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 11px 0 13px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.index-meta > a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--red);
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
}

.index-meta > a svg {
  width: 13px;
}

.index-browser {
  min-height: 0;
  display: block;
}

.index-directory {
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
}

#indexDirectory {
  max-height: none;
  display: flex;
  align-items: center;
  gap: 30px;
  overflow-x: auto;
  scrollbar-width: thin;
}

#indexDirectory button {
  width: auto;
  min-width: max-content;
  min-height: 62px;
  flex: 0 0 auto;
  padding: 3px 0 0;
  border-right: 0;
  border-bottom: 0;
}

#indexDirectory button:first-child {
  border-left: 0;
}

#indexDirectory button:hover,
#indexDirectory button.active {
  box-shadow: inset 0 -2px 0 var(--red);
}

#indexDirectory button strong {
  font-size: 17px;
  font-weight: 600;
}

.index-content {
  border: 1px solid var(--line);
  border-top: 0;
}

.index-content-heading {
  min-height: 108px;
  padding: 24px 30px;
}

.index-content-heading h3 {
  font-size: 38px;
}

.index-entry-list {
  max-height: 620px;
}

.index-entry {
  min-height: 96px;
  padding: 18px 24px 18px 30px;
}

.index-entry p {
  max-width: 900px;
}

.command-view {
  padding: 0 30px 38px;
}

.command-intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 34px 0 30px;
  border-bottom: 1px solid var(--line);
}

.command-intro h4 {
  margin: 7px 0 7px;
  font-family: "Cormorant Garamond", serif;
  font-size: 34px;
  font-weight: 600;
  line-height: 1;
}

.command-intro p:not(.eyebrow) {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.65;
}

.command-intro > a {
  min-height: 38px;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 7px;
  padding: 0 12px;
  border: 1px solid var(--line);
  color: var(--red);
  font-size: 8px;
  font-weight: 700;
  text-transform: uppercase;
}

.command-intro > a:hover {
  border-color: var(--red);
}

.command-intro > a svg {
  width: 13px;
}

.command-tree {
  max-width: 1040px;
  margin: 0 auto;
  padding: 42px 0 8px;
}

.command-level {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 16px;
  padding-bottom: 54px;
}

.command-level:not(:last-child)::after {
  position: absolute;
  bottom: 10px;
  left: 50%;
  width: 1px;
  height: 34px;
  background: var(--gold);
  content: "";
}

.command-level:not(:last-child)::before {
  position: absolute;
  bottom: 7px;
  left: calc(50% - 4px);
  width: 7px;
  height: 7px;
  border-right: 1px solid var(--gold);
  border-bottom: 1px solid var(--gold);
  content: "";
  transform: rotate(45deg);
}

.command-role {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(30px, 1fr) auto minmax(30px, 1fr);
  align-items: center;
  gap: 14px;
  color: var(--red);
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
}

.command-role::before,
.command-role::after {
  height: 1px;
  background: var(--line);
  content: "";
}

.command-role strong {
  letter-spacing: 0.08em;
}

.command-role span {
  display: none;
}

.command-members {
  width: min(100%, 940px);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.command-person {
  position: relative;
  width: min(224px, calc(25% - 12px));
  min-width: 190px;
  min-height: 72px;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 14px;
  align-items: center;
  gap: 12px;
  padding: 12px 13px;
  border: 1px solid var(--line);
  background: #fdfcf9;
  transition: border-color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.command-person:hover {
  border-color: #bcae94;
  background: #fff;
  transform: translateY(-1px);
}

.command-person img {
  width: 46px;
  height: 46px;
  border: 1px solid #d2cdc2;
  border-radius: 50%;
  background: #eeeae1;
  object-fit: cover;
}

.command-person > span {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.command-person strong {
  overflow: hidden;
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.command-person small {
  overflow: hidden;
  color: var(--muted);
  font-size: 7px;
  font-weight: 700;
  text-transform: uppercase;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.command-person > svg {
  width: 13px;
  color: var(--red);
}

.command-empty {
  min-height: 220px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  color: var(--muted);
  text-align: center;
}

.command-empty svg {
  width: 24px;
  color: var(--gold);
}

.command-empty strong {
  color: var(--ink);
  font-family: "Cormorant Garamond", serif;
  font-size: 20px;
}

.command-empty p {
  margin: 0;
  font-size: 9px;
}

.information-links {
  margin-top: 28px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}

.information-links-heading {
  display: flex;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 20px;
}

.information-links-heading > span {
  display: grid;
  gap: 5px;
}

.information-links-heading strong {
  font-family: "Cormorant Garamond", serif;
  font-size: 25px;
  font-weight: 600;
  line-height: 1;
}

.information-links-heading small {
  max-width: 460px;
  color: var(--muted);
  font-size: 8px;
  line-height: 1.5;
}

.information-links-heading em {
  color: var(--gold);
  font-size: 8px;
  font-style: normal;
  font-weight: 700;
  text-transform: uppercase;
}

.information-link-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}

.information-link-grid a {
  min-height: 98px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 16px;
  align-items: center;
  gap: 14px;
  padding: 17px 16px 17px 2px;
  border-bottom: 1px solid var(--line);
  transition: background-color 160ms ease;
}

.information-link-grid a:nth-child(odd) {
  padding-right: 24px;
}

.information-link-grid a:nth-child(even) {
  padding-left: 24px;
  border-left: 1px solid var(--line);
}

.information-link-grid a:hover {
  background: #faf8f3;
}

.information-link-grid a > span {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.information-link-grid strong {
  font-family: "Cormorant Garamond", serif;
  font-size: 19px;
  font-weight: 600;
  line-height: 1;
}

.information-link-grid small {
  display: -webkit-box;
  overflow: hidden;
  color: var(--muted);
  font-size: 8px;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.information-link-grid svg {
  width: 13px;
  flex: 0 0 auto;
  color: var(--red);
}

.command-loading {
  width: 100%;
  height: 340px;
  background: #eeeae2;
  opacity: 0.5;
  animation: index-pulse 1.2s ease-in-out infinite alternate;
}

@media (max-width: 1000px) {
  .index-meta {
    align-items: center;
  }

  .information-link-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .index-toolbar {
    display: block;
    padding-bottom: 14px;
  }

  .index-search {
    max-width: none;
  }

  .index-meta {
    gap: 12px;
    padding: 12px 0 16px;
  }

  .index-meta > a {
    margin-left: auto;
  }

  #indexDirectory button {
    min-width: max-content;
  }

  .index-content-heading {
    min-height: 94px;
    padding: 22px 18px;
  }

  .command-view {
    padding: 0 16px 24px;
  }

  .command-intro {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
    padding: 24px 0 20px;
  }

  .command-intro h4 {
    font-size: 28px;
  }

  .command-tree {
    padding-top: 28px;
  }

  .command-level {
    padding-bottom: 46px;
  }

  .command-members {
    display: grid;
    grid-template-columns: 1fr;
  }

  .command-person {
    width: 100%;
    min-width: 0;
  }

  .information-links-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 9px;
  }

  .information-link-grid {
    grid-template-columns: 1fr;
  }

  .information-link-grid a:nth-child(odd),
  .information-link-grid a:nth-child(even) {
    padding: 16px 2px;
    border-left: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
