:root {
  --ink: #17120e;
  --paper: #eee5d5;
  --paper-soft: #f7f0e4;
  --paper-deep: #cbb99e;
  --dark: #100b08;
  --brown: #744223;
  --seal: #8a2a20;
  --line: rgba(23, 18, 14, 0.22);
  --line-dark: rgba(238, 229, 213, 0.26);
  --display: "Arial Narrow", "Segoe UI Condensed", "Arial", sans-serif;
  --body: "Segoe UI", "Arial", sans-serif;
  --archive: "Courier New", monospace;
}

* {
  box-sizing: border-box;
}

section,
article,
div,
form,
figure,
output {
  min-width: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  line-height: 1.45;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

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

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

button,
input {
  font: inherit;
}

.case-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  min-height: 72px;
  padding: 12px clamp(18px, 4vw, 54px);
  background: rgba(238, 229, 213, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.case-number {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--ink);
  font-family: var(--archive);
  font-size: 14px;
}

.case-nav {
  display: flex;
  justify-content: center;
  gap: clamp(18px, 3vw, 38px);
  font-family: var(--archive);
  font-size: 13px;
}

.case-command,
.seal-button,
.paper-button,
.request-card button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  padding: 13px 20px;
  font-family: var(--archive);
  font-size: 13px;
  line-height: 1.15;
  cursor: pointer;
}

.paper-button {
  background: rgba(0, 0, 0, 0.26);
  border-color: rgba(238, 229, 213, 0.58);
}

.hero {
  position: relative;
  min-height: min(820px, 92vh);
  display: grid;
  align-items: end;
  overflow: hidden;
  background: var(--dark);
}

.hero-image {
  position: absolute;
  inset: 0;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.06) saturate(0.92);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.36), rgba(0, 0, 0, 0.08)),
    linear-gradient(0deg, rgba(0, 0, 0, 0.58), transparent 58%);
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: min(1040px, 92vw);
  padding: clamp(118px, 18vh, 180px) clamp(18px, 5vw, 72px) clamp(54px, 9vh, 94px);
  color: var(--paper);
}

.case-label {
  margin: 0 0 16px;
  font-family: var(--archive);
  font-size: 13px;
  color: var(--brown);
}

.hero .case-label {
  color: var(--paper-deep);
}

.hero h1,
.section-head h2,
.chain-title h2,
.archive-copy h2,
.restoration-copy h2,
.evidence-drawer h2,
.request-section h2 {
  margin: 0;
  max-width: 980px;
  font-family: var(--display);
  font-weight: 800;
  line-height: 1.02;
  text-wrap: balance;
}

.hero h1 {
  max-width: 820px;
  font-size: clamp(56px, 8.5vw, 126px);
}

.hero-lead {
  max-width: 700px;
  margin: 22px 0 0;
  font-size: clamp(20px, 2.1vw, 30px);
  line-height: 1.22;
  text-wrap: balance;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.hero-register {
  position: absolute;
  z-index: 3;
  right: clamp(18px, 4vw, 60px);
  bottom: clamp(18px, 5vh, 58px);
  display: grid;
  gap: 8px;
  width: min(292px, 34vw);
  padding: 16px;
  color: var(--paper);
  border: 1px solid rgba(238, 229, 213, 0.38);
  background: rgba(0, 0, 0, 0.36);
  font-family: var(--archive);
  font-size: 12px;
}

.hero-register span {
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(238, 229, 213, 0.18);
}

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

.passport-section,
.chain-section,
.archive-section,
.origin-section,
.restoration-section,
.evidence-section,
.request-section {
  padding: clamp(54px, 8vw, 110px) clamp(18px, 5vw, 78px);
}

.section-head {
  max-width: 960px;
  margin-bottom: clamp(28px, 5vw, 52px);
}

.section-head h2,
.chain-title h2,
.archive-copy h2,
.restoration-copy h2,
.evidence-drawer h2,
.request-section h2 {
  font-size: clamp(36px, 4.8vw, 76px);
}

.section-head p:not(.case-label),
.chain-title p,
.archive-copy p,
.restoration-copy p,
.request-section p {
  max-width: 720px;
  margin: 18px 0 0;
  font-size: clamp(18px, 1.8vw, 25px);
  line-height: 1.32;
}

.passport-layout {
  display: grid;
  grid-template-columns: minmax(360px, 0.92fr) minmax(520px, 1.08fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: start;
}

.passport-card {
  max-width: 100%;
  border: 1px solid var(--ink);
  background:
    linear-gradient(rgba(23, 18, 14, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 18, 14, 0.04) 1px, transparent 1px),
    var(--paper-soft);
  background-size: 34px 34px;
  padding: clamp(24px, 4vw, 40px);
}

.passport-top {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 20px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--ink);
  font-family: var(--archive);
}

dl {
  display: grid;
  gap: 20px;
  margin: 0;
}

dt {
  font-family: var(--archive);
  font-size: 12px;
  color: var(--brown);
}

dd {
  margin: 4px 0 0;
  font-size: clamp(21px, 2vw, 29px);
  line-height: 1.18;
}

.evidence-checklist {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.evidence-checklist article {
  display: grid;
  grid-template-columns: 64px 1fr;
  grid-template-areas:
    "code title"
    "code text";
  column-gap: 18px;
  min-height: 126px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.26);
}

.evidence-checklist span {
  grid-area: code;
  align-self: start;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--ink);
  font-family: var(--archive);
  font-size: 12px;
  color: var(--brown);
}

.evidence-checklist b {
  grid-area: title;
  align-self: end;
  font-family: var(--display);
  font-size: 25px;
  line-height: 1.05;
}

.evidence-checklist p {
  grid-area: text;
  margin: 7px 0 0;
  font-size: 15px;
  line-height: 1.28;
}

.chain-section {
  display: grid;
  grid-template-columns: minmax(360px, 0.82fr) minmax(560px, 1.18fr);
  gap: clamp(28px, 6vw, 76px);
  background: #17100c;
  color: var(--paper);
}

.chain-title .case-label,
.restoration-copy .case-label,
.request-section .case-label {
  color: var(--paper-deep);
}

.custody-board {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.custody-step {
  min-height: 132px;
  padding: 18px;
  border: 1px solid var(--line-dark);
  background: rgba(255, 255, 255, 0.045);
  color: var(--paper);
  text-align: left;
  cursor: pointer;
}

.custody-step span,
.custody-step small,
.custody-output small,
.layer-tabs button {
  display: block;
  font-family: var(--archive);
  font-size: 12px;
}

.custody-step span,
.custody-output small {
  color: var(--paper-deep);
}

.custody-step b {
  display: block;
  margin: 14px 0 8px;
  font-family: var(--display);
  font-size: clamp(26px, 2.9vw, 42px);
  line-height: 1;
}

.custody-step.active {
  background: var(--paper);
  color: var(--ink);
}

.custody-output {
  grid-column: 1 / -1;
  min-height: 156px;
  padding: 22px;
  border: 1px solid var(--paper-deep);
  background: rgba(238, 229, 213, 0.08);
}

.custody-output strong {
  display: block;
  margin-top: 10px;
  font-family: var(--display);
  font-size: clamp(31px, 3.8vw, 56px);
  line-height: 1;
}

.custody-output span {
  display: block;
  max-width: 760px;
  margin-top: 12px;
  font-size: clamp(18px, 1.8vw, 24px);
  line-height: 1.28;
}

.archive-section,
.restoration-section,
.evidence-section,
.request-section {
  display: grid;
  grid-template-columns: minmax(420px, 1fr) minmax(380px, 0.78fr);
  gap: clamp(26px, 5vw, 64px);
  align-items: center;
}

.archive-image,
.restoration-image,
.evidence-photo {
  margin: 0;
  border: 1px solid var(--ink);
  background: var(--dark);
  overflow: hidden;
}

.archive-image img,
.restoration-image img,
.evidence-photo img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.layer-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0 18px;
}

.layer-tabs button {
  margin: 0;
  padding: 12px 16px;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.layer-tabs button.active {
  background: var(--ink);
  color: var(--paper);
}

.layer-text {
  font-size: clamp(18px, 1.8vw, 24px);
  line-height: 1.32;
}

.origin-section {
  background:
    linear-gradient(rgba(23, 18, 14, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 18, 14, 0.05) 1px, transparent 1px),
    #f1e8d8;
  background-size: 54px 54px;
}

.origin-flow {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--ink);
  border-left: 1px solid var(--ink);
}

.origin-flow article {
  min-height: 210px;
  padding: 22px;
  border-right: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  background: rgba(255, 255, 255, 0.26);
}

.origin-flow span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 24px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  font-family: var(--archive);
}

.origin-flow b {
  display: block;
  font-family: var(--display);
  font-size: clamp(30px, 3.4vw, 48px);
  line-height: 1;
}

.origin-flow p {
  max-width: 360px;
  margin: 12px 0 0;
  font-size: 18px;
  line-height: 1.28;
}

.restoration-section {
  background: #120e0a;
  color: var(--paper);
}

.restoration-image figcaption {
  padding: 15px 16px;
  font-family: var(--archive);
  font-size: 12px;
  color: var(--paper-deep);
}

.evidence-section {
  align-items: stretch;
}

.evidence-drawer {
  display: grid;
  align-content: center;
  border: 1px solid var(--ink);
  background: var(--paper-soft);
  padding: clamp(24px, 4vw, 42px);
}

.evidence-drawer ul {
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.evidence-drawer li {
  display: grid;
  grid-template-columns: minmax(150px, 0.4fr) 1fr;
  gap: 18px;
  padding: 13px 0;
  border-top: 1px solid var(--line);
}

.evidence-drawer li b {
  font-family: var(--archive);
  font-size: 13px;
  color: var(--brown);
}

.evidence-drawer li span {
  font-size: 18px;
  line-height: 1.28;
}

.request-section {
  background: var(--dark);
  color: var(--paper);
}

.request-card {
  display: grid;
  gap: 16px;
  border: 1px solid var(--paper-deep);
  padding: clamp(22px, 4vw, 36px);
  background: rgba(238, 229, 213, 0.08);
}

.request-card label {
  display: grid;
  gap: 9px;
  font-family: var(--archive);
  font-size: 12px;
  color: var(--paper-deep);
}

.request-card input {
  width: 100%;
  min-height: 54px;
  border: 1px solid rgba(238, 229, 213, 0.32);
  background: rgba(0, 0, 0, 0.24);
  color: var(--paper);
  padding: 14px 16px;
  font-family: var(--body);
  font-size: 17px;
}

.request-card button {
  background: var(--paper);
  color: var(--ink);
}

@media (max-width: 1120px) {
  .passport-layout,
  .chain-section,
  .archive-section,
  .restoration-section,
  .evidence-section,
  .request-section {
    grid-template-columns: 1fr;
  }

  .hero-register {
    position: relative;
    right: auto;
    bottom: auto;
    width: min(92vw, 520px);
    margin: 0 clamp(18px, 5vw, 72px) 34px;
  }
}

@media (max-width: 760px) {
  .case-header {
    display: flex;
    justify-content: space-between;
  }

  .case-nav,
  .case-command {
    display: none;
  }

  .hero {
    min-height: 720px;
  }

  .hero-image {
    object-position: 62% center;
  }

  .hero h1 {
    font-size: clamp(48px, 14vw, 76px);
  }

  .hero-lead {
    font-size: 20px;
  }

  .section-head h2,
  .chain-title h2,
  .archive-copy h2,
  .restoration-copy h2,
  .evidence-drawer h2,
  .request-section h2 {
    font-size: clamp(32px, 9vw, 48px);
    line-height: 1.08;
  }

  .evidence-checklist,
  .custody-board,
  .origin-flow {
    grid-template-columns: 1fr;
  }

  .passport-card {
    padding: 20px;
  }

  .passport-top {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .evidence-checklist article {
    min-height: 112px;
  }

  .origin-flow {
    border-left: 0;
  }

  .origin-flow article {
    border-left: 1px solid var(--ink);
  }

  .evidence-drawer li {
    grid-template-columns: 1fr;
  }

  .seal-button,
  .paper-button {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 430px) {
  .hero-copy,
  .passport-section,
  .chain-section,
  .archive-section,
  .origin-section,
  .restoration-section,
  .evidence-section,
  .request-section {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero h1 {
    font-size: clamp(44px, 13vw, 58px);
  }

  .hero-lead,
  .section-head p:not(.case-label),
  .chain-title p,
  .archive-copy p,
  .restoration-copy p,
  .request-section p {
    font-size: 17px;
    line-height: 1.34;
    max-width: 270px;
  }

  dd {
    font-size: 19px;
    line-height: 1.22;
    max-width: 245px;
  }

  .evidence-checklist p {
    max-width: 230px;
  }

  .passport-card {
    padding: 18px;
  }

  .evidence-checklist article {
    grid-template-columns: 50px 1fr;
    column-gap: 14px;
    padding: 16px;
  }

  .evidence-checklist span {
    width: 42px;
    height: 42px;
  }

  .evidence-checklist b {
    font-size: 21px;
  }
}
