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

:root {
  --bureau-black: #070b0a;
  --bureau-green: #101c17;
  --quarter-green: #17352a;
  --iron: #1c221d;
  --paper: #f4e8c9;
  --paper-soft: #ddcfa8;
  --paper-muted: rgba(244, 232, 201, 0.72);
  --brass: #c98f35;
  --brass-bright: #efc56f;
  --absinthe: #9eb45f;
  --river: #5e9298;
  --rouge: #a94a3d;
  --violet: #5d477a;
  --ink: #21170d;
  --line: rgba(244, 232, 201, 0.18);
  --line-strong: rgba(244, 232, 201, 0.42);
  --panel: rgba(9, 14, 12, 0.86);
  --panel-soft: rgba(244, 232, 201, 0.07);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.36);
  --max: 1160px;
}

html {
  min-height: 100%;
  background: var(--bureau-black);
}

body.public-shell {
  min-height: 100svh;
  margin: 0;
  color: var(--paper);
  background:
    linear-gradient(150deg, rgba(7, 11, 10, 0.98) 0%, rgba(15, 34, 27, 0.98) 46%, rgba(41, 28, 19, 0.98) 100%);
  font-family: "IBM Plex Sans", Arial, Helvetica, sans-serif;
  overflow-x: hidden;
  position: relative;
}

body.public-shell::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.18;
  background:
    repeating-linear-gradient(0deg, transparent 0 35px, rgba(244, 232, 201, 0.1) 36px),
    repeating-linear-gradient(90deg, transparent 0 35px, rgba(244, 232, 201, 0.07) 36px),
    repeating-linear-gradient(135deg, transparent 0 110px, rgba(201, 143, 53, 0.12) 112px);
  mix-blend-mode: screen;
}

body.public-shell::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 130px rgba(0, 0, 0, 0.62);
}

body.public-shell a {
  color: inherit;
}

.site-bar,
.home-hero,
.home-brief,
.section-band,
.page-wrap,
.library,
.gate,
.account-layout,
.studio-link {
  position: relative;
  z-index: 2;
}

.site-bar {
  width: min(var(--max), calc(100% - 32px));
  min-height: 66px;
  margin: 0 auto;
  padding: 18px 0 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: var(--paper);
  text-decoration: none;
}

.brand-sigil {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--brass-bright);
  background:
    linear-gradient(135deg, rgba(201, 143, 53, 0.16), transparent 48%),
    rgba(7, 11, 10, 0.8);
  box-shadow: inset 0 0 0 4px rgba(244, 232, 201, 0.04);
  font-family: "Cinzel", Georgia, serif;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.brand-text {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.brand-name {
  color: #fff8df;
  font-family: "Cinzel", Georgia, serif;
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.brand-note {
  color: var(--paper-muted);
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}

.nav-row,
.hero-actions,
.cta-row,
.inline-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.nav-pill,
.back-btn,
.btn,
.cta {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--paper);
  background: rgba(244, 232, 201, 0.07);
  font: 800 0.74rem/1 "IBM Plex Sans", Arial, sans-serif;
  letter-spacing: 0.1em;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}

.nav-pill:hover,
.nav-pill:focus-visible,
.back-btn:hover,
.back-btn:focus-visible,
.btn:hover,
.btn:focus-visible,
.cta:hover,
.cta:focus-visible {
  border-color: rgba(239, 197, 111, 0.78);
  background: rgba(239, 197, 111, 0.15);
  color: #fff8df;
  outline: none;
}

.nav-pill[aria-current="page"] {
  border-color: rgba(158, 180, 95, 0.68);
  color: var(--absinthe);
}

.cta-primary,
.btn-primary {
  border-color: rgba(239, 197, 111, 0.86);
  background: linear-gradient(180deg, var(--brass-bright), var(--brass));
  color: var(--ink);
  box-shadow: 0 16px 34px rgba(201, 143, 53, 0.24);
}

.cta-primary:hover,
.cta-primary:focus-visible,
.btn-primary:hover,
.btn-primary:focus-visible {
  color: #130d07;
  transform: translateY(-1px);
}

h1,
h2,
h3,
.card-title,
.gate h1 {
  font-family: "Cinzel", Georgia, serif;
  letter-spacing: 0.02em;
}

.eyebrow,
.kicker,
.status,
.card-eyebrow,
.stamp,
.gate-error {
  font-family: "IBM Plex Sans", Arial, Helvetica, sans-serif;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow,
.kicker {
  margin: 0 0 12px;
  color: var(--brass-bright);
  font-size: 0.76rem;
}

.home-hero {
  width: min(var(--max), calc(100% - 32px));
  min-height: 74svh;
  margin: 8px auto 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: clamp(28px, 6vw, 70px);
  align-items: center;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  isolation: isolate;
}

.home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(7, 11, 10, 0.94) 0%, rgba(7, 11, 10, 0.72) 46%, rgba(7, 11, 10, 0.34) 100%),
    repeating-linear-gradient(26deg, transparent 0 32px, rgba(158, 180, 95, 0.18) 33px 34px),
    repeating-linear-gradient(90deg, rgba(244, 232, 201, 0.08) 0 1px, transparent 1px 74px),
    linear-gradient(135deg, rgba(23, 53, 42, 0.9), rgba(93, 71, 122, 0.4), rgba(91, 50, 28, 0.66));
}

.home-hero::after {
  content: "";
  position: absolute;
  right: -12%;
  bottom: 18%;
  z-index: -1;
  width: 68%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--brass-bright), transparent);
  transform: rotate(-13deg);
  opacity: 0.72;
}

.hero-content {
  max-width: 690px;
  padding: 76px 0;
}

.hero-content h1 {
  max-width: 9ch;
  margin: 0;
  color: #fff9df;
  font-size: clamp(3.2rem, 8vw, 6rem);
  font-weight: 800;
  line-height: 0.92;
  text-transform: uppercase;
  text-shadow: 0 18px 42px rgba(0, 0, 0, 0.42);
}

.hero-lede {
  max-width: 42rem;
  margin: 22px 0 0;
  color: var(--paper);
  font-size: clamp(1.04rem, 2.2vw, 1.28rem);
  line-height: 1.55;
}

.hero-actions {
  margin-top: 28px;
}

.bureau-docket {
  align-self: stretch;
  min-height: 430px;
  display: grid;
  align-content: center;
  gap: 12px;
  padding: clamp(18px, 3vw, 26px);
  border-left: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(244, 232, 201, 0.08), rgba(244, 232, 201, 0.03)),
    rgba(7, 11, 10, 0.42);
  position: relative;
}

.bureau-docket::before {
  content: "OPEN CASE";
  position: absolute;
  top: 22px;
  right: 22px;
  padding: 8px 10px;
  border: 1px solid rgba(239, 197, 111, 0.66);
  border-radius: 8px;
  color: rgba(239, 197, 111, 0.9);
  background: rgba(7, 11, 10, 0.58);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  transform: rotate(4deg);
}

.docket-line {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  min-height: 70px;
  padding: 14px;
  border: 1px solid rgba(244, 232, 201, 0.16);
  border-radius: 8px;
  background: rgba(244, 232, 201, 0.05);
}

.docket-code {
  color: var(--absinthe);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.docket-line strong {
  display: block;
  color: #fff8df;
  font-family: "Cinzel", Georgia, serif;
  font-size: 1rem;
  line-height: 1.12;
  text-transform: uppercase;
}

.docket-line span:last-child {
  color: var(--paper-muted);
  font-size: 0.88rem;
  line-height: 1.36;
}

.home-brief,
.section-band {
  width: min(var(--max), calc(100% - 32px));
  margin: 18px auto 0;
}

.home-brief {
  padding-bottom: 22px;
}

.brief-grid,
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.brief-card,
.feature-card,
.step-card,
.evidence-panel,
.gate,
.card,
.empty,
.callout-band {
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(244, 232, 201, 0.08), rgba(244, 232, 201, 0.03)),
    var(--panel);
  box-shadow: var(--shadow);
}

.brief-card,
.feature-card {
  min-height: 176px;
  padding: 18px;
  display: grid;
  align-content: space-between;
  color: var(--paper);
  text-decoration: none;
}

.brief-card h2,
.feature-card h2 {
  margin: 0;
  color: #fff8df;
  font-size: 1.12rem;
  line-height: 1.14;
  text-transform: uppercase;
}

.brief-card p,
.feature-card p {
  margin: 15px 0 0;
  color: var(--paper-muted);
  font-size: 0.95rem;
  line-height: 1.46;
}

.stamp {
  color: var(--absinthe);
  font-size: 0.66rem;
}

.section-band {
  padding: 54px 0 8px;
}

.page-wrap .section-band {
  width: 100%;
}

.section-head {
  max-width: 680px;
  margin-bottom: 18px;
}

.section-head h2 {
  margin: 0;
  color: #fff8df;
  font-size: clamp(2rem, 5vw, 3.3rem);
  line-height: 0.98;
  text-transform: uppercase;
}

.section-head p {
  margin: 14px 0 0;
  color: var(--paper-muted);
  font-size: 1.02rem;
  line-height: 1.55;
}

.process-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--line);
}

.process-item {
  min-height: 182px;
  padding: 18px;
  background:
    linear-gradient(180deg, rgba(244, 232, 201, 0.08), rgba(244, 232, 201, 0.03)),
    rgba(9, 14, 12, 0.9);
}

.process-item b {
  display: block;
  color: var(--brass-bright);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.process-item h3 {
  margin: 32px 0 8px;
  color: #fff8df;
  font-size: 1.06rem;
  line-height: 1.12;
  text-transform: uppercase;
}

.process-item p {
  margin: 0;
  color: var(--paper-muted);
  font-size: 0.92rem;
  line-height: 1.46;
}

.callout-band {
  margin: 56px 0 72px;
  padding: clamp(22px, 4vw, 32px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  background:
    linear-gradient(110deg, rgba(158, 180, 95, 0.12), rgba(94, 146, 152, 0.12) 48%, rgba(169, 74, 61, 0.12)),
    rgba(9, 14, 12, 0.9);
}

.callout-band h2 {
  margin: 0;
  color: #fff8df;
  font-size: clamp(1.5rem, 4vw, 2.4rem);
  line-height: 1;
  text-transform: uppercase;
}

.callout-band p {
  max-width: 48rem;
  margin: 10px 0 0;
  color: var(--paper-muted);
  line-height: 1.52;
}

.page-wrap {
  width: min(var(--max), calc(100% - 32px));
  margin: 22px auto 76px;
}

.page-hero {
  min-height: 330px;
  padding: clamp(30px, 5vw, 48px);
  display: grid;
  align-content: end;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(7, 11, 10, 0.92), rgba(7, 11, 10, 0.58)),
    repeating-linear-gradient(0deg, transparent 0 25px, rgba(244, 232, 201, 0.08) 26px),
    repeating-linear-gradient(90deg, transparent 0 25px, rgba(244, 232, 201, 0.06) 26px),
    linear-gradient(135deg, rgba(23, 53, 42, 0.78), rgba(93, 71, 122, 0.28), rgba(91, 50, 28, 0.64));
  overflow: hidden;
  position: relative;
}

.page-hero::after {
  content: "FIELD BRIEFING";
  position: absolute;
  top: 28px;
  right: 28px;
  padding: 8px 10px;
  border: 1px solid rgba(239, 197, 111, 0.62);
  border-radius: 8px;
  color: rgba(239, 197, 111, 0.9);
  background: rgba(7, 11, 10, 0.48);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  transform: rotate(4deg);
}

.page-hero h1 {
  max-width: 11ch;
  margin: 0;
  color: #fff9df;
  font-size: clamp(2.8rem, 7vw, 4.7rem);
  font-weight: 800;
  line-height: 0.96;
  text-transform: uppercase;
}

.page-hero .lede {
  max-width: 48rem;
  margin: 18px 0 0;
  color: var(--paper);
  font-size: 1.12rem;
  line-height: 1.6;
}

.field-layout {
  margin-top: 16px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 326px;
  gap: 16px;
  align-items: start;
}

.steps {
  list-style: none;
  counter-reset: step;
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
}

.step-card {
  counter-increment: step;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 14px;
  padding: 18px;
}

.step-card::before {
  content: counter(step, decimal-leading-zero);
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(239, 197, 111, 0.72);
  border-radius: 50%;
  color: var(--ink);
  background: linear-gradient(180deg, var(--brass-bright), var(--brass));
  font-family: "Cinzel", Georgia, serif;
  font-size: 0.9rem;
  font-weight: 800;
}

.step-card h2 {
  margin: 0 0 6px;
  color: #fff8df;
  font-size: 1.08rem;
  line-height: 1.16;
  text-transform: uppercase;
}

.step-card p {
  margin: 0;
  color: var(--paper-muted);
  font-size: 0.96rem;
  line-height: 1.55;
}

.evidence-panel {
  padding: 18px;
  display: grid;
  gap: 14px;
  overflow: hidden;
}

.evidence-panel h2 {
  margin: 0;
  color: #fff8df;
  font-size: 1rem;
  text-transform: uppercase;
}

.evidence-panel p {
  margin: 0;
  color: var(--paper-muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.stamp-grid {
  display: grid;
  gap: 8px;
}

.stamp-line {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 10px;
  border: 1px solid rgba(244, 232, 201, 0.16);
  border-radius: 8px;
  color: var(--paper);
  background: rgba(244, 232, 201, 0.05);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.stamp-line span:last-child {
  color: var(--absinthe);
}

.library-page {
  padding: 0 0 72px;
}

.library,
.gate {
  width: min(var(--max), calc(100% - 32px));
  margin: 22px auto 0;
}

.gate {
  width: min(430px, calc(100% - 32px));
  margin-top: 10svh;
  padding: 22px;
}

.gate h1 {
  margin: 0 0 8px;
  color: #fff9df;
  font-size: 2.55rem;
  font-weight: 800;
  line-height: 0.98;
  text-transform: uppercase;
}

.gate p {
  margin: 0 0 18px;
  color: var(--paper-muted);
  font-size: 0.95rem;
  line-height: 1.48;
}

.gate form {
  display: grid;
  gap: 9px;
}

.gate input {
  width: 100%;
  height: 46px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(244, 232, 201, 0.08);
  color: var(--paper);
  font: inherit;
}

.gate input::placeholder {
  color: rgba(244, 232, 201, 0.42);
}

.gate input:focus {
  border-color: rgba(239, 197, 111, 0.74);
  outline: 2px solid rgba(239, 197, 111, 0.16);
  outline-offset: 2px;
}

.gate-error {
  min-height: 1.2em;
  color: #f2a092;
  font-size: 0.72rem;
}

.gate-alt {
  margin-top: 14px !important;
  margin-bottom: 0 !important;
}

.gate-alt a {
  color: var(--brass-bright);
  font-weight: 800;
}

.account-layout {
  margin-top: 16px;
  display: grid;
  grid-template-columns: minmax(0, 720px);
  gap: 16px;
  align-items: start;
}

.account-panel {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(244, 232, 201, 0.08), rgba(244, 232, 201, 0.03)),
    var(--panel);
  box-shadow: var(--shadow);
}

.account-panel h2 {
  margin: 0;
  color: #fff8df;
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  line-height: 1;
  text-transform: uppercase;
}

.account-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-bottom: 16px;
}

.account-tab,
.text-button {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(244, 232, 201, 0.06);
  color: var(--paper-muted);
  font: 800 0.72rem/1 "IBM Plex Sans", Arial, sans-serif;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
}

.account-tab:hover,
.account-tab:focus-visible,
.text-button:hover,
.text-button:focus-visible,
.account-tab.is-active {
  border-color: rgba(239, 197, 111, 0.72);
  color: #fff8df;
  background: rgba(239, 197, 111, 0.14);
  outline: none;
}

.account-form {
  display: grid;
  gap: 12px;
}

.account-form label {
  display: grid;
  gap: 6px;
  color: var(--paper-muted);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.account-form input {
  width: 100%;
  height: 46px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(244, 232, 201, 0.08);
  color: var(--paper);
  font: 500 1rem/1.2 "IBM Plex Sans", Arial, sans-serif;
  letter-spacing: 0;
  text-transform: none;
}

.account-form input:focus {
  border-color: rgba(239, 197, 111, 0.74);
  outline: 2px solid rgba(239, 197, 111, 0.16);
  outline-offset: 2px;
}

.account-status {
  min-height: 1.2em;
  margin: 0;
  color: var(--paper-muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.account-status.is-error {
  color: #f2a092;
  font-weight: 800;
}

.account-status.is-success {
  color: var(--absinthe);
  font-weight: 800;
}

.account-email {
  margin: 8px 0 18px;
  color: var(--paper-muted);
  font-size: 1rem;
  line-height: 1.45;
}

.account-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.library-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: end;
  margin-bottom: 20px;
}

.library h1 {
  margin: 0;
  color: #fff9df;
  font-size: clamp(2.8rem, 7vw, 4.5rem);
  font-weight: 800;
  line-height: 0.96;
  text-transform: uppercase;
}

.library .lead {
  max-width: 44rem;
  margin: 12px 0 0;
  color: var(--paper-muted);
  font-size: 1.04rem;
  line-height: 1.55;
}

.status {
  min-height: 1.2em;
  margin: 0;
  color: var(--absinthe);
  font-size: 0.72rem;
  text-align: right;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(238px, 1fr));
  gap: 14px;
}

.card {
  --game-primary: var(--brass);
  --game-secondary: var(--quarter-green);
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  transition: transform 0.14s ease, border-color 0.14s ease, box-shadow 0.14s ease;
}

.card:hover,
.card:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(239, 197, 111, 0.62);
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.42);
  outline: none;
}

.card-media {
  min-height: 138px;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(7, 11, 10, 0.18), rgba(7, 11, 10, 0.72)),
    linear-gradient(135deg, var(--game-secondary), var(--game-primary));
}

.card-media::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    repeating-linear-gradient(0deg, transparent 0 17px, rgba(244, 232, 201, 0.1) 18px),
    repeating-linear-gradient(90deg, transparent 0 42px, rgba(244, 232, 201, 0.08) 43px),
    linear-gradient(180deg, rgba(7, 11, 10, 0.02), rgba(7, 11, 10, 0.42));
  pointer-events: none;
}

.card-image {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  filter: saturate(0.86) contrast(1.06) brightness(0.82);
}

.card-monogram {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: grid;
  place-items: center;
  color: rgba(244, 232, 201, 0.82);
  font-family: "Cinzel", Georgia, serif;
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.card-media[data-has-image="true"] .card-monogram {
  opacity: 0.18;
}

.card-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 3;
  padding: 5px 8px;
  border: 1px solid rgba(244, 232, 201, 0.72);
  border-radius: 8px;
  background: rgba(7, 11, 10, 0.78);
  color: var(--brass-bright);
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.card-body {
  display: grid;
  gap: 6px;
  padding: 13px 14px 14px;
}

.card-eyebrow {
  margin: 0;
  color: var(--absinthe);
  font-size: 0.62rem;
}

.card-title {
  margin: 0;
  color: #fff8df;
  font-size: 1.15rem;
  line-height: 1.15;
}

.card-caption {
  margin: 0;
  color: var(--paper-muted);
  font-size: 0.86rem;
  line-height: 1.38;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.card-tag {
  max-width: 100%;
  padding: 4px 6px;
  border: 1px solid rgba(244, 232, 201, 0.18);
  border-radius: 8px;
  color: rgba(244, 232, 201, 0.76);
  background: rgba(244, 232, 201, 0.05);
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  line-height: 1;
  text-transform: uppercase;
}

.empty {
  grid-column: 1 / -1;
  min-height: 220px;
  display: grid;
  place-items: center;
  padding: 22px;
  color: var(--paper-muted);
  text-align: center;
}

.hidden {
  display: none !important;
}

.studio-link {
  position: fixed;
  right: 18px;
  bottom: 16px;
  z-index: 8;
  color: rgba(244, 232, 201, 0.38);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-decoration: none;
  text-transform: uppercase;
}

.studio-link:hover,
.studio-link:focus-visible {
  color: var(--paper);
  outline: none;
}

@media (max-width: 940px) {
  .home-hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .bureau-docket {
    min-height: 0;
    border-left: 0;
    border-top: 1px solid var(--line);
    margin-bottom: 24px;
  }

  .brief-grid,
  .feature-grid,
  .process-strip,
  .field-layout,
  .account-layout {
    grid-template-columns: 1fr;
  }

  .process-strip {
    gap: 0;
  }

  .evidence-panel {
    order: -1;
  }
}

@media (max-width: 680px) {
  .site-bar {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-row {
    width: 100%;
    justify-content: flex-start;
  }

  .nav-pill,
  .back-btn,
  .btn,
  .cta {
    min-height: 40px;
    padding: 0 11px;
    font-size: 0.68rem;
  }

  .hero-content {
    padding: 56px 0 32px;
  }

  .bureau-docket::before,
  .page-hero::after {
    display: none;
  }

  .docket-line {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .page-hero {
    min-height: 280px;
    padding: 28px 20px;
  }

  .step-card {
    grid-template-columns: 44px minmax(0, 1fr);
    padding: 15px;
  }

  .step-card::before {
    width: 38px;
    height: 38px;
    font-size: 0.78rem;
  }

  .library-head,
  .callout-band {
    grid-template-columns: 1fr;
  }

  .status {
    text-align: left;
  }

  .studio-link {
    position: static;
    display: inline-flex;
    margin: 10px 16px 22px;
  }
}

@media (max-width: 430px) {
  .brand-name {
    white-space: normal;
  }

  .brand-note {
    display: none;
  }

  .hero-actions,
  .cta-row,
  .inline-actions {
    display: grid;
  }
}

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