:root {
  --ink: #141413;
  --ink-soft: #5c5c57;
  --ink-faint: #8a8a84;
  --paper: #f7f7f4;
  --panel: #ffffff;
  --panel-solid: #ffffff;
  --line: rgba(20, 20, 19, 0.1);
  --line-strong: rgba(20, 20, 19, 0.16);
  --accent: #2563eb;
  --accent-deep: #1d4ed8;
  --accent-soft: rgba(37, 99, 235, 0.1);
  --accent-glow: rgba(37, 99, 235, 0.18);
  --navy: #171717;
  --amber: #2563eb;
  --success: #0f6b4c;
  --danger: #b42318;
  --shadow: 0 8px 28px rgba(20, 20, 19, 0.06);
  --shadow-lg: 0 18px 48px rgba(20, 20, 19, 0.1);
  --radius: 14px;
  --radius-sm: 10px;
  --font: "Figtree", "Helvetica Neue", Arial, sans-serif;
  --display: "Figtree", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --wrap: 1440px;
  --page-pad: clamp(1.25rem, 4vw, 2.75rem);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.has-results .photo-hero {
  min-height: 0;
}

body.has-results .photo-hero-inner {
  padding: 1.25rem 1.5rem 1rem;
}

body.has-results .photo-hero h1 {
  font-size: 1.6rem;
  max-width: none;
}

body.has-results .photo-hero .lede,
body.has-results .photo-hero .eyebrow {
  display: none;
}

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background: var(--paper);
}

.orb,
.grid-fade {
  display: none;
}


.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

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

.top {
  width: 100%;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--ink);
}

.brand-mark {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 0.7rem;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.brand-mark svg {
  width: 1.15rem;
  height: 1.15rem;
}

.brand-stack {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
}

.brand-text {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.03em;
  line-height: 1.1;
  font-optical-sizing: auto;
}

.brand-sub {
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}

main {
  width: 100%;
  flex: 1 0 auto;
}

.hero {
  padding: 0.5rem 0 1rem;
  max-width: none;
}

.eyebrow {
  margin: 0 0 0.85rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-deep);
}

.brand-hero {
  margin: 0 0 0.85rem;
  font-family: var(--display);
  font-weight: 650;
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  letter-spacing: -0.04em;
  line-height: 1.02;
  color: var(--ink);
  font-optical-sizing: auto;
}

.lede {
  margin: 0 0 1.85rem;
  max-width: 34rem;
  color: var(--ink-soft);
  font-size: 1.08rem;
  font-weight: 500;
  line-height: 1.55;
}

.search-shell {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.4rem 0.4rem 1rem;
  background: var(--panel-solid);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: box-shadow 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.3s var(--ease);
}

.search-shell:focus-within {
  border-color: rgba(26, 86, 168, 0.55);
  box-shadow: 0 16px 40px rgba(11, 31, 58, 0.12), 0 0 0 4px var(--accent-soft);
}

.search-icon {
  display: grid;
  place-items: center;
  color: var(--ink-faint);
  flex-shrink: 0;
}

.search-shell input {
  flex: 1;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 1.05rem;
  font-weight: 500;
  padding: 0.85rem 0.65rem;
  outline: none;
  color: var(--ink);
  min-width: 0;
}

.search-shell input::placeholder {
  color: var(--ink-faint);
  font-weight: 400;
}

.search-shell button {
  position: relative;
  border: 0;
  border-radius: var(--radius-sm);
  padding: 0.85rem 1.45rem;
  min-width: 7.2rem;
  font: inherit;
  font-weight: 700;
  color: #fff;
  background: var(--navy);
  cursor: pointer;
  transition: transform 0.15s ease, filter 0.15s ease;
  overflow: hidden;
}

.search-shell button:hover {
  filter: brightness(1.06);
}

.search-shell button:active {
  transform: scale(0.98);
}

.search-shell button:disabled {
  cursor: wait;
}

.search-shell button.is-loading .btn-label {
  opacity: 0;
}

.search-shell button.is-loading .btn-spinner {
  opacity: 1;
}

.btn-spinner {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 1.15rem;
  height: 1.15rem;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  opacity: 0;
  animation: spin 0.7s linear infinite;
}

.hints {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin: 1.05rem 0 0;
}

.hints-label {
  color: var(--ink-faint);
  font-size: 0.85rem;
  font-weight: 500;
  margin-right: 0.15rem;
}

.chip {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.65);
  color: var(--ink);
  border-radius: 999px;
  padding: 0.32rem 0.75rem;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.chip:hover {
  border-color: rgba(26, 86, 168, 0.45);
  background: #fff;
}

.status {
  min-height: 1.4rem;
  margin: 1rem 0 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
  font-weight: 500;
}

.status.error {
  color: var(--danger);
}

.workspace {
  margin-top: 1.25rem;
  animation: rise 0.55s var(--ease) both;
}

.hidden {
  display: none !important;
}

.meta-panel {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 1rem 1.25rem;
  padding: 1.4rem 1.5rem 1.35rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  margin-bottom: 1rem;
}

.meta-panel h2 {
  grid-column: 1 / -1;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.25rem, 2.4vw, 1.55rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.025em;
}

.meta-stat {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.meta-stat span {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--ink-faint);
  font-weight: 700;
}

.meta-stat strong {
  font-weight: 600;
  font-size: 0.95rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workspace-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.85rem 1rem;
  margin-bottom: 0.85rem;
  align-items: flex-start;
}

.filters {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  flex: 1;
  min-width: 0;
}

.cat-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.cat-chip {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.7);
  color: var(--ink-soft);
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.cat-chip:hover {
  border-color: rgba(26, 86, 168, 0.4);
  color: var(--ink);
}

.cat-chip.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.cat-chip .n {
  opacity: 0.65;
  margin-left: 0.2rem;
  font-variant-numeric: tabular-nums;
}

.filter-field input {
  border: 1px solid var(--line);
  background: var(--panel-solid);
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.85rem;
  font: inherit;
  font-weight: 500;
  color: var(--ink);
  width: min(280px, 100%);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.filter-field input:focus {
  border-color: rgba(26, 86, 168, 0.5);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
}

.btn {
  border: 1px solid var(--line-strong);
  background: var(--panel-solid);
  color: var(--ink);
  border-radius: var(--radius-sm);
  padding: 0.72rem 1.15rem;
  font: inherit;
  font-weight: 650;
  font-size: 0.92rem;
  line-height: 1.2;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.12s ease, box-shadow 0.15s ease;
}

.btn:hover:not(:disabled) {
  border-color: rgba(26, 86, 168, 0.4);
  box-shadow: 0 6px 16px rgba(11, 31, 58, 0.08);
}

.btn:active:not(:disabled) {
  transform: scale(0.98);
}

.btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.btn.primary {
  border-color: transparent;
  color: #fff;
  background: var(--navy);
}

.btn.ghost {
  background: transparent;
  border-color: transparent;
  color: var(--ink-soft);
}

.btn.ghost:hover:not(:disabled) {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.6);
  box-shadow: none;
}

.btn.linkish {
  border: 0;
  background: transparent;
  color: var(--accent-deep);
  padding: 0.25rem 0.4rem;
  font-weight: 700;
  border-radius: 8px;
}

.btn.linkish:hover {
  background: var(--accent-soft);
}

.table-wrap {
  overflow: auto;
  max-height: min(62vh, 720px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.docs {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.docs th,
.docs td {
  padding: 0.78rem 0.9rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

.docs th {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-faint);
  background: rgba(237, 241, 246, 0.92);
  position: sticky;
  top: 0;
  z-index: 1;
  font-weight: 700;
  backdrop-filter: blur(8px);
}

.docs tbody tr {
  transition: background 0.12s ease;
  animation: rowIn 0.35s var(--ease) both;
}

.docs tbody tr:nth-child(1) { animation-delay: 0.02s; }
.docs tbody tr:nth-child(2) { animation-delay: 0.04s; }
.docs tbody tr:nth-child(3) { animation-delay: 0.06s; }
.docs tbody tr:nth-child(4) { animation-delay: 0.08s; }
.docs tbody tr:nth-child(5) { animation-delay: 0.1s; }
.docs tbody tr:nth-child(6) { animation-delay: 0.12s; }
.docs tbody tr:nth-child(7) { animation-delay: 0.14s; }
.docs tbody tr:nth-child(8) { animation-delay: 0.16s; }

.docs tbody tr:hover {
  background: rgba(196, 92, 42, 0.06);
}

.docs tbody tr.is-selected {
  background: rgba(196, 92, 42, 0.1);
}

.docs td:first-child {
  border-left: 3px solid transparent;
}

.docs tr[data-cat="Office Actions"] td:first-child { border-left-color: #c45c2a; }
.docs tr[data-cat="Responses"] td:first-child { border-left-color: #2a6bc4; }
.docs tr[data-cat="Prior Art"] td:first-child { border-left-color: #8a6d3b; }
.docs tr[data-cat="IDS"] td:first-child { border-left-color: #6b5cad; }
.docs tr[data-cat="Appeals"] td:first-child { border-left-color: #a33a5c; }
.docs tr[data-cat="Allowance"] td:first-child { border-left-color: #1f8a4c; }
.docs tr[data-cat="Application"] td:first-child { border-left-color: var(--accent); }
.docs tr[data-cat="Continuity"] td:first-child { border-left-color: #3d7ea6; }
.docs tr[data-cat="Petitions"] td:first-child { border-left-color: #9a6b2f; }
.docs tr[data-cat="Other"] td:first-child { border-left-color: #9aa3b2; }

.col-check {
  width: 2.4rem;
}

.docs code {
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 600;
  background: rgba(11, 18, 32, 0.05);
  padding: 0.18rem 0.42rem;
  border-radius: 6px;
  letter-spacing: -0.01em;
}

.badge {
  display: inline-block;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-deep);
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
}

.note-banner a {
  color: var(--accent-deep);
}

.doc-count {
  margin: 0.85rem 0 0;
  color: var(--ink-soft);
  font-size: 0.88rem;
  font-weight: 500;
}

.docs tr[data-cat="Reexam"] td:first-child { border-left-color: #5c6bc0; }

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0 0 1rem;
  padding: 0.3rem;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--line);
  border-radius: 14px;
  width: fit-content;
  max-width: 100%;
}

.tab {
  border: 0;
  background: transparent;
  color: var(--ink-soft);
  border-radius: 10px;
  padding: 0.55rem 0.9rem;
  font: inherit;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.tab:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.7);
}

.tab.is-active {
  background: var(--ink);
  color: #fff;
}

.tab-n {
  display: inline-block;
  margin-left: 0.25rem;
  opacity: 0.7;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

.tab-panel {
  animation: rise 0.35s var(--ease) both;
}

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.detail-block {
  padding: 1.15rem 1.25rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.detail-block.full {
  grid-column: 1 / -1;
}

.detail-block h3 {
  margin: 0 0 0.75rem;
  font-family: var(--display);
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.detail-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.detail-list li {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid var(--line);
}

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

.detail-list .name {
  font-weight: 600;
}

.detail-list .sub {
  display: block;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.assign-lede {
  margin-top: 0;
}

.row-actions {
  display: flex;
  gap: 0.4rem;
  margin-top: 0.35rem;
  flex-wrap: wrap;
}

.kv {
  display: grid;
  grid-template-columns: 9rem 1fr;
  gap: 0.35rem 0.75rem;
  font-size: 0.92rem;
}

.kv dt {
  color: var(--ink-faint);
  font-weight: 700;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding-top: 0.2rem;
}

.kv dd {
  margin: 0;
  font-weight: 500;
}

.meta-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  grid-column: 1 / -1;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  background: rgba(11, 18, 32, 0.06);
  color: var(--ink);
  font-size: 0.75rem;
  font-weight: 700;
}

.pill.accent {
  background: var(--accent-soft);
  color: var(--accent-deep);
}

.related-link {
  color: var(--accent-deep);
  font-weight: 700;
  text-decoration: none;
}

.related-link:hover {
  text-decoration: underline;
}

.empty-note {
  margin: 0;
  color: var(--ink-soft);
  font-weight: 500;
}

.viewer {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  justify-content: flex-end;
}

.viewer.hidden {
  display: none !important;
}

.viewer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 12, 20, 0.48);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: fadeIn 0.25s var(--ease) both;
}

.viewer-drawer {
  position: relative;
  z-index: 1;
  width: min(920px, 100%);
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #11161f;
  color: #e8edf5;
  box-shadow: -24px 0 80px rgba(0, 0, 0, 0.35);
  animation: slideIn 0.35s var(--ease) both;
}

.viewer-bar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.85rem 1rem;
  align-items: center;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, #171d28 0%, #121820 100%);
}

.viewer-meta {
  min-width: 0;
}

.viewer-kicker {
  margin: 0 0 0.15rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #7d8da3;
}

.viewer-meta h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 650;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #f4f7fb;
  font-optical-sizing: auto;
}

.viewer-meta #viewerSub {
  margin: 0.25rem 0 0;
  color: #9aabbf;
  font-size: 0.84rem;
  font-weight: 500;
}

.viewer-actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
}

.viewer-icon-btn {
  width: 2.35rem;
  height: 2.35rem;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  color: #e8edf5;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.viewer-icon-btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.22);
}

.viewer-icon-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.viewer-pos {
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: #8fa0b5;
  min-width: 3.5rem;
  text-align: center;
}

.viewer-dl,
.viewer-newtab {
  border-color: rgba(255, 255, 255, 0.14) !important;
  color: #f4f7fb !important;
  background: rgba(255, 255, 255, 0.08) !important;
  text-decoration: none;
  font-size: 0.84rem !important;
  padding: 0.55rem 0.85rem !important;
}

.viewer-dl {
  background: linear-gradient(160deg, var(--accent), var(--accent-deep)) !important;
  border-color: transparent !important;
}

.viewer-newtab:hover {
  background: rgba(255, 255, 255, 0.14) !important;
}

.viewer-body {
  position: relative;
  flex: 1;
  min-height: 0;
  background:
    radial-gradient(ellipse at top, #2a3342 0%, #1a202b 45%, #141920 100%);
  padding: 0.75rem;
}

.viewer-body iframe {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 12px;
  background: #2f353d;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.viewer-loading {
  position: absolute;
  inset: 0.75rem;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  color: #d5deea;
  font-weight: 600;
  pointer-events: none;
  background: rgba(20, 25, 32, 0.72);
  border-radius: 12px;
  transition: opacity 0.3s ease;
}

.viewer-loading p {
  margin: 0;
  font-size: 0.92rem;
}

.viewer-loading.is-done {
  opacity: 0;
  visibility: hidden;
}

.viewer-spinner {
  width: 1.6rem;
  height: 1.6rem;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-top-color: #8fd6c8;
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
}

body.viewer-open {
  overflow: hidden;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideIn {
  from {
    opacity: 0.6;
    transform: translateX(28px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@media (max-width: 900px) {
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .kv {
    grid-template-columns: 1fr;
    gap: 0.1rem;
  }

  .viewer-drawer {
    width: 100%;
  }

  .viewer-bar {
    grid-template-columns: auto 1fr;
  }

  .viewer-actions {
    grid-column: 1 / -1;
    justify-content: space-between;
    flex-wrap: wrap;
  }

  .viewer-newtab {
    display: none;
  }
}

.foot {
  display: none;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 1.5rem;
  transform: translateX(-50%);
  background: var(--ink);
  color: #fff;
  padding: 0.8rem 1.2rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  z-index: 40;
  animation: rise 0.3s var(--ease) both;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes rowIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(4%, 6%) scale(1.08); }
}

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

@media (max-width: 900px) {
  .meta-panel {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 780px) {
  .meta-panel {
    grid-template-columns: 1fr;
  }

  .search-shell {
    border-radius: 18px;
    flex-wrap: wrap;
    padding: 0.65rem;
  }

  .search-icon {
    display: none;
  }

  .search-shell input {
    width: 100%;
    padding: 0.55rem 0.5rem;
  }

  .search-shell button {
    width: 100%;
  }

  .workspace-head {
    flex-direction: column;
  }

  .actions {
    width: 100%;
  }

  .actions .btn {
    flex: 1;
  }

  .filter-field input {
    width: 100%;
  }

  .brand-hero {
    font-size: clamp(2.2rem, 11vw, 3.2rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 30;
  width: 100%;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}

.site-util {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.8rem;
  font-weight: 500;
}

.site-util-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0.4rem var(--page-pad);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.site-util a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  margin-left: 1.1rem;
}

.site-util a:hover {
  text-decoration: underline;
}

.site-nav .brand,
.site-nav .brand-text,
.site-nav .brand-sub {
  color: var(--ink);
}

.site-nav .brand-sub {
  color: var(--ink-soft);
}

.site-nav .brand-mark {
  background: var(--ink);
  box-shadow: none;
  color: #fff;
  border-radius: 9px;
}

.site-nav-inner {
  position: relative;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0.9rem var(--page-pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.15rem 0.85rem;
}

.nav-links a {
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.86rem;
  padding: 0.35rem 0.15rem;
}

.nav-links a:hover,
.nav-links a.is-active {
  color: var(--ink);
}

.nav-links a.is-active {
  box-shadow: inset 0 -2px 0 var(--ink);
}

.nav-cta {
  color: var(--accent) !important;
  font-variant-numeric: tabular-nums;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line-strong);
  background: #fff;
  color: var(--ink);
  border-radius: 10px;
  padding: 0.45rem 0.75rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.site-foot {
  margin-top: auto;
  width: 100%;
  border-top: 1px solid var(--line);
  background: #fff;
  color: var(--ink-soft);
  flex-shrink: 0;
}

.site-foot-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 2.6rem var(--page-pad) 2rem;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 1.75rem 2rem;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.site-foot-col p {
  margin: 0.35rem 0;
}

.site-foot-col a {
  display: inline-block;
  margin: 0.2rem 0;
  color: var(--ink-soft);
  text-decoration: none;
}

.site-foot-col a:hover {
  color: var(--accent-deep);
}

.site-foot-col nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
}

.site-foot-bar {
  border-top: 1px solid var(--line);
}

.site-foot-bar-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0.9rem var(--page-pad) 1.15rem;
  font-size: 0.8rem;
  color: var(--ink-faint);
}

.site-foot strong {
  color: var(--ink);
}

.site-foot a {
  color: var(--accent-deep);
  font-weight: 600;
}

.site-foot .fine {
  color: var(--ink-faint);
  font-size: 0.8rem;
}

.page {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 2rem var(--page-pad) 4rem;
}

.page-head {
  max-width: 52rem;
  margin: 0 0 1.5rem;
}

.page-head h1 {
  margin: 0 0 0.45rem;
  font-family: var(--display);
  font-weight: 650;
  font-size: clamp(1.7rem, 3.6vw, 2.35rem);
  letter-spacing: -0.045em;
  line-height: 1.15;
  color: var(--ink);
}

.page-head .lede {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1.02rem;
  font-weight: 450;
}

.search-panel {
  width: 100%;
  max-width: none;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.15rem 1.25rem 1.25rem;
  box-shadow: var(--shadow);
  margin-bottom: 1.15rem;
}

.home-hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 0;
  min-height: 58vh;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.home-hero-copy {
  max-width: none;
  padding: 4.5rem var(--page-pad) 4rem;
  margin-left: max(0px, calc((100vw - min(100vw, var(--wrap))) / 2));
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.home-hero-copy h1 {
  margin: 0 0 0.85rem;
  font-size: clamp(2rem, 4.5vw, 3.1rem);
  font-weight: 650;
  letter-spacing: -0.05em;
  line-height: 1.08;
}

.home-hero-copy .lede {
  margin: 0 0 1.5rem;
  max-width: 42rem;
}

.home-hero-media {
  min-height: 320px;
  background: #ecece8 center / cover no-repeat;
}

.home-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  min-height: 320px;
}

@media (max-width: 860px) {
  .home-hero {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .home-hero-copy {
    padding: 2rem 1.5rem 1.5rem;
    margin-left: 0;
  }
}

.photo-hero {
  position: relative;
  min-height: 62vh;
  display: grid;
  align-items: end;
  color: #eef3f9;
  background: var(--navy) center / cover no-repeat;
  overflow: hidden;
}

.photo-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(11, 31, 58, 0.4) 0%, rgba(11, 31, 58, 0.62) 45%, rgba(11, 31, 58, 0.9) 100%);
}

.photo-hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--wrap);
  width: 100%;
  margin: 0 auto;
  padding: 5.5rem var(--page-pad) 3.5rem;
}

.photo-hero.compact {
  min-height: 42vh;
}

.photo-hero.compact .photo-hero-inner {
  padding-top: 4rem;
  padding-bottom: 2.4rem;
}

.photo-hero h1 {
  margin: 0 0 0.85rem;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 3.4rem);
  letter-spacing: -0.03em;
  line-height: 1.12;
  max-width: 22ch;
}

.photo-hero .lede {
  margin: 0 0 1.5rem;
  max-width: 40rem;
  color: rgba(238, 243, 249, 0.86);
  font-size: 1.05rem;
  font-weight: 400;
}

.photo-hero .eyebrow {
  color: #9dc0f0;
}

.photo-hero .btn {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.photo-hero .btn:not(.primary) {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.page-hero h1 {
  margin: 0 0 0.75rem;
  font-family: var(--display);
  font-weight: 650;
  font-size: clamp(2rem, 5vw, 3.4rem);
  letter-spacing: -0.04em;
  line-height: 1.05;
  font-optical-sizing: auto;
}

.page-hero .lede {
  margin: 0 0 1.5rem;
  max-width: 40rem;
}

.photo-card {
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.photo-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.photo-card .card-body {
  padding: 1.1rem 1.15rem 1.25rem;
  flex: 1;
}

.split-band {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  min-height: 420px;
  margin: 0 0 2.5rem;
  background: #fff;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.split-band img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
}

.split-copy {
  padding: 3rem 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@media (max-width: 860px) {
  .split-band {
    grid-template-columns: 1fr;
  }
}

.trust-row,
.card-grid,
.price-grid {
  display: grid;
  gap: 0.85rem;
}

.trust-row {
  grid-template-columns: repeat(5, 1fr);
  margin: 1.5rem 0 2.5rem;
}

.card-grid {
  grid-template-columns: repeat(3, 1fr);
}

.price-grid {
  grid-template-columns: 1fr 1fr;
}

.card,
.trust-card,
.price-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.trust-card,
.card {
  padding: 1.15rem 1.2rem;
}

.price-card {
  padding: 1.35rem 1.4rem;
}

.trust-card strong,
.card h3,
.price-card h3 {
  display: block;
  font-family: var(--display);
  font-weight: 650;
  letter-spacing: -0.02em;
  margin: 0 0 0.4rem;
}

.card p,
.trust-card p,
.price-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.price-card .amt {
  font-family: var(--mono);
  font-weight: 600;
  color: var(--accent-deep);
  margin-bottom: 0.55rem;
}

.section-title {
  font-family: var(--display);
  font-size: 1.7rem;
  font-weight: 650;
  letter-spacing: -0.03em;
  margin: 2.2rem 0 1rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1.2rem 0 0;
}

.btn-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.country-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0.75rem 0 1rem;
}

.country-cloud span {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.22rem 0.6rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
}

.step-n {
  font-family: var(--display);
  font-size: 1.8rem;
  color: var(--accent);
  font-weight: 650;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 1.25rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-bottom: 0.75rem;
}

.field label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.field input,
.field textarea,
.field select {
  font: inherit;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: #fff;
}

.field textarea {
  min-height: 140px;
  resize: vertical;
}

.note-banner {
  padding: 0.9rem 1.1rem;
  border-radius: var(--radius);
  background: var(--accent-soft);
  color: var(--accent-deep);
  font-weight: 600;
  font-size: 0.92rem;
  margin: 0 0 1.25rem;
}

.search-format {
  margin: 0.9rem 0 0;
  color: var(--accent-deep);
  font-size: 0.92rem;
  font-weight: 600;
}

.search-format .chip {
  font-size: 0.84rem;
}

.callout {
  margin: 1rem 0 0;
  padding: 0.95rem 1.1rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #fff;
  font-weight: 600;
  color: var(--ink);
}

.callout a {
  color: var(--accent-deep);
}

.callout.miss {
  color: var(--accent-deep);
  background: var(--accent-soft);
  border-color: transparent;
}

.callout.hit {
  color: var(--success);
  background: rgba(15, 107, 76, 0.08);
  border-color: transparent;
}

.file-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.file-row,
.result-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.25rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.file-row .file-name {
  font-family: var(--mono);
  font-size: 0.86rem;
  font-weight: 500;
  word-break: break-word;
}

.result-card {
  align-items: flex-start;
}

.result-card .result-body {
  min-width: 0;
  flex: 1;
}

.result-card .result-kicker {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--ink-faint);
  margin: 0 0 0.25rem;
}

.result-card h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.result-card .result-meta,
.result-card .result-convey {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.result-card .result-convey {
  margin-top: 0.25rem;
  color: var(--ink-faint);
}

.file-row .btn,
.result-card .btn {
  flex-shrink: 0;
  white-space: nowrap;
  background: var(--navy);
  color: #fff;
  border-color: transparent;
  min-height: 2.6rem;
}

.file-row .btn:hover:not(:disabled),
.result-card .btn:hover:not(:disabled) {
  filter: brightness(1.08);
  border-color: transparent;
  color: #fff;
}

.hint-line {
  margin: 0.65rem 0 0;
  color: var(--ink-faint);
  font-size: 0.9rem;
}

.meta-line {
  margin: 0.75rem 0 1rem;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.order-panel {
  margin-top: 1.5rem;
  max-width: 42rem;
}

td.mono,
.mono {
  font-family: var(--mono);
  font-size: 0.85rem;
}

@media (max-width: 960px) {
  .trust-row,
  .card-grid,
  .price-grid,
  .steps,
  .contact-grid,
  .site-foot-inner {
    grid-template-columns: 1fr;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-util {
    display: none;
  }

  .nav-links {
    display: none;
    position: absolute;
    left: var(--page-pad);
    right: var(--page-pad);
    top: 4.6rem;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 0.75rem;
    flex-direction: column;
    align-items: stretch;
    box-shadow: var(--shadow-lg);
  }

  .nav-links a {
    padding: 0.55rem 0.4rem;
  }

  .nav-links.is-open {
    display: flex;
  }
}

