:root {
  --font-serif: "Cormorant Garamond", serif;
  --font-mono: "IBM Plex Mono", monospace;
  --ob: #07070a;
  --ob2: #0d0d12;
  --ob3: #14141b;
  --bone: #e9e3d6;
  --bone2: #bdb6a6;
  --bronze: #a67f45;
  --bronze2: #6f5730;
  --crimson: #b0313c;
  --crimson2: #6a1922;
  --silver: #9aa1a6;
  --cyan: #79eaff;
}

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

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: var(--ob);
  color: var(--bone);
  font-family: var(--font-mono);
}

button {
  font: inherit;
  color: inherit;
  text-align: inherit;
  cursor: pointer;
}

button:focus-visible,
input:focus-visible {
  outline: 1px solid var(--cyan);
  outline-offset: 3px;
}

#boot-idle .boot-idle-line {
  display: block;
}

body {
  overflow: hidden;
}

#veil-root {
  position: fixed;
  inset: 0;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 46%, rgba(166, 127, 69, 0.06), transparent 38%),
    var(--ob);
}

.ember-texture,
.vignette,
.scanlines {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.ember-texture {
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.08;
  mix-blend-mode: screen;
}

.vignette {
  z-index: 30;
  background: radial-gradient(ellipse at center, transparent 40%, rgba(0, 0, 0, 0.84) 100%);
}

.scanlines {
  z-index: 31;
  overflow: hidden;
  opacity: 0.2;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 3px,
    rgba(154, 161, 166, 0.1) 4px
  );
}

.scan-beam {
  display: block;
  width: 100%;
  height: 50%;
  background: linear-gradient(to bottom, transparent, rgba(121, 234, 255, 0.035), transparent);
}

#boot-idle,
#boot-decrypt,
#shell {
  position: absolute;
  inset: 0;
  z-index: 10;
}

#boot-idle {
  display: flex;
  width: 100%;
  border: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  background: rgba(5, 5, 6, 0.88);
  text-align: center;
}

.boot-idle-kicker {
  margin-bottom: 2rem;
  color: rgba(166, 127, 69, 0.7);
  font-size: 11px;
  letter-spacing: 0.5em;
}

.boot-idle-prompt {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--bone2);
  font-size: 15px;
  letter-spacing: 0.15em;
}

.boot-cursor {
  width: 11px;
  height: 20px;
  background: var(--bone);
}

.boot-idle-line {
  margin-left: 0.4rem;
  font-size: 10px;
  letter-spacing: 0.3em;
}

#boot-decrypt {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: min(700px, calc(100% - 3rem));
  margin: auto;
  color: var(--bone2);
  font-size: 11px;
  letter-spacing: 0.08em;
}

.boot-terminal-label {
  margin-bottom: 1.5rem;
  color: var(--bronze);
  letter-spacing: 0.28em;
}

#boot-lines {
  min-height: 12rem;
  line-height: 1.9;
}

#boot-lines div:nth-child(6) {
  color: var(--crimson);
}

.boot-progress {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--silver);
}

.boot-track {
  flex: 1;
  height: 2px;
  background: rgba(154, 161, 166, 0.16);
}

#boot-bar {
  width: 0;
  height: 100%;
  background: var(--bronze);
  box-shadow: 0 0 12px rgba(166, 127, 69, 0.5);
}

#boot-pct {
  width: 3rem;
  text-align: right;
}

#shell {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.masthead {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 2rem 0.75rem;
  border-bottom: 1px solid rgba(166, 127, 69, 0.15);
}

.masthead-brand,
.masthead-status,
.recording {
  display: flex;
  align-items: center;
}

.masthead-brand {
  min-width: 0;
  gap: 0.75rem;
}

.masthead-title {
  overflow: hidden;
  color: var(--bone);
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.16em;
  white-space: nowrap;
}

.masthead-count {
  padding: 0.25rem 0.5rem;
  border: 1px solid rgba(176, 49, 60, 0.4);
  color: var(--crimson);
  font-size: 11px;
  letter-spacing: 0.4em;
}

.masthead-archive {
  color: rgba(166, 127, 69, 0.7);
  font-size: 9px;
  letter-spacing: 0.34em;
}

.masthead-status {
  flex-shrink: 0;
  gap: 1.25rem;
  color: var(--bronze);
  font-size: 10px;
  letter-spacing: 0.2em;
}

.integrity {
  color: var(--silver);
}

.integrity strong {
  color: var(--crimson);
  font-weight: 400;
}

.status-divider {
  color: rgba(154, 161, 166, 0.4);
}

.recording {
  gap: 0.4rem;
  color: var(--silver);
}

.recording i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--crimson);
}

.archive-nav {
  position: relative;
  z-index: 5;
  display: flex;
  flex: none;
  align-items: flex-end;
  gap: 0.25rem;
  overflow-x: auto;
  padding: 0.875rem 1.875rem 0;
}

.archive-nav button {
  flex: none;
  padding: 0.75rem 1rem 0.65rem;
  border: 1px solid transparent;
  border-bottom: 0;
  background: transparent;
  color: rgba(154, 161, 166, 0.62);
  font-size: 10px;
  letter-spacing: 0.19em;
  white-space: nowrap;
}

.archive-nav button:hover {
  color: var(--bone2);
}

.archive-nav button.is-active,
.archive-nav button[aria-current="page"] {
  border-color: rgba(166, 127, 69, 0.4);
  background: rgba(166, 127, 69, 0.06);
  color: var(--bronze);
}

.archive-nav > span {
  flex: 1;
  align-self: center;
  overflow: hidden;
  padding-left: 1rem;
  color: rgba(154, 161, 166, 0.4);
  font-size: 9px;
  letter-spacing: 0.28em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#archive-content {
  position: relative;
  min-height: 0;
  flex: 1;
  overflow: hidden;
  border-top: 1px solid rgba(166, 127, 69, 0.4);
}

.screen-panel {
  position: absolute;
  inset: 0;
  overflow: auto;
}

.file-kicker {
  margin: 0;
  color: var(--crimson);
  font-size: 10px;
  letter-spacing: 0.4em;
}

.archive-hero {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  padding: 3.25rem 3rem 2.5rem;
  border-bottom: 1px solid rgba(166, 127, 69, 0.15);
}

.archive-hero > img,
.archive-hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.archive-hero > img {
  object-fit: cover;
  opacity: 0.5;
}

.archive-hero-shade {
  background: linear-gradient(90deg, rgba(7, 7, 10, 0.94) 30%, rgba(7, 7, 10, 0.55) 70%, rgba(7, 7, 10, 0.85));
}

.archive-hero-copy {
  position: relative;
  max-width: 760px;
}

.archive-hero h1 {
  margin: 1.5rem 0 0;
  font-family: var(--font-serif);
  font-size: clamp(56px, 9vw, 128px);
  font-weight: 600;
  line-height: 0.9;
  text-shadow: 0 0 40px rgba(0, 0, 0, 0.7);
}

.archive-subtitle {
  display: flex;
  align-items: baseline;
  gap: 1.1rem;
  margin-top: 0.4rem;
}

.archive-subtitle span {
  color: var(--bronze);
  font-family: var(--font-serif);
  font-size: clamp(26px, 4vw, 46px);
  font-style: italic;
}

.archive-subtitle small {
  color: rgba(154, 161, 166, 0.6);
  font-size: 12px;
  letter-spacing: 0.4em;
}

.archive-intro {
  max-width: 560px;
  margin: 1.85rem 0 0;
  color: var(--bone2);
  font-size: 14px;
  line-height: 1.9;
}

.archive-actions {
  display: flex;
  gap: 0.85rem;
  margin-top: 2rem;
}

.archive-actions button {
  padding: 0.85rem 1.6rem;
  border: 1px solid rgba(166, 127, 69, 0.5);
  background: transparent;
  font-size: 11px;
  letter-spacing: 0.28em;
}

.archive-actions button:hover {
  border-color: var(--bronze);
  background: rgba(166, 127, 69, 0.1);
}

.archive-actions button span {
  color: var(--cyan);
}

#cta-decrypt {
  border-color: rgba(176, 49, 60, 0.5);
  color: var(--crimson);
}

#cta-decrypt:hover {
  border-color: var(--crimson);
  background: rgba(176, 49, 60, 0.1);
}

.archive-stats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-bottom: 1px solid rgba(166, 127, 69, 0.15);
}

.archive-stats > div {
  padding: 1.5rem 1.35rem;
  border-right: 1px solid rgba(166, 127, 69, 0.1);
}

.archive-stats small {
  display: block;
  color: rgba(154, 161, 166, 0.6);
  font-size: 9px;
  letter-spacing: 0.32em;
}

.archive-stats strong {
  display: block;
  margin-top: 0.45rem;
  font-family: var(--font-serif);
  font-size: 38px;
  font-weight: 400;
  line-height: 1;
}

.archive-stats > div:nth-child(2) strong { color: var(--bronze); }
.archive-stats > div:nth-child(3) strong { color: var(--crimson); }
.archive-stats > div:nth-child(5) strong { color: var(--cyan); }

.featured-section {
  padding: 2.25rem 3rem 3.75rem;
}

.section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.35rem;
  color: var(--bronze);
  font-size: 11px;
  letter-spacing: 0.34em;
}

.section-heading button {
  border: 0;
  background: transparent;
  color: var(--silver);
  font-size: 10px;
  letter-spacing: 0.26em;
}

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

.featured-card {
  display: block;
  min-width: 0;
  padding: 0;
  border: 1px solid rgba(166, 127, 69, 0.2);
  background: rgba(13, 13, 18, 0.6);
  transition: transform 180ms ease, border-color 180ms ease;
}

.featured-card:hover {
  border-color: rgba(166, 127, 69, 0.65);
  transform: translateY(-4px);
}

.featured-visual {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 1;
  border-bottom: 1px solid rgba(166, 127, 69, 0.2);
  background: var(--ob2);
}

.featured-visual::after {
  position: absolute;
  inset: 45% 0 0;
  background: linear-gradient(transparent, rgba(7, 7, 10, 0.88));
  content: "";
}

.featured-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.featured-code {
  position: absolute;
  z-index: 1;
  top: 0.7rem;
  left: 0.8rem;
  color: var(--cyan);
  font-size: 9px;
  letter-spacing: 0.24em;
}

.featured-placeholder {
  display: grid;
  height: 100%;
  place-items: center;
  color: rgba(233, 227, 214, 0.06);
  font-family: var(--font-serif);
  font-size: 70px;
}

.featured-details {
  display: block;
  padding: 1rem 1rem 1.15rem;
}

.featured-details > strong {
  display: block;
  margin-bottom: 0.7rem;
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 400;
}

.featured-details > span {
  display: flex;
  justify-content: space-between;
  margin-top: 0.4rem;
  color: var(--bone2);
  font-size: 10px;
  letter-spacing: 0.16em;
}

.featured-details small,
.featured-details em {
  font-size: inherit;
  font-style: normal;
}

.order-layout {
  display: grid;
  min-height: 100%;
  grid-template-columns: minmax(0, 1.5fr) minmax(300px, 1fr);
}

.order-copy,
.order-aside {
  padding: 3.25rem 3rem;
}

.order-copy {
  border-right: 1px solid rgba(166, 127, 69, 0.15);
}

.order-copy h2 {
  margin: 1.25rem 0;
  font-family: var(--font-serif);
  font-size: clamp(40px, 6vw, 74px);
  font-weight: 600;
  line-height: 0.95;
}

.order-copy h2 em {
  display: block;
  color: var(--bronze);
  font-size: 0.6em;
  font-weight: 400;
}

.order-copy > p:not(.file-kicker) {
  max-width: 560px;
  color: var(--bone2);
  font-size: 14px;
  line-height: 1.95;
}

.order-copy h3 {
  margin: 2.75rem 0 1.25rem;
  color: var(--bronze);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.3em;
}

.tenets section {
  display: flex;
  gap: 1.25rem;
  padding: 1.25rem 0;
  border-top: 1px solid rgba(166, 127, 69, 0.15);
}

.tenets b {
  min-width: 44px;
  color: rgba(166, 127, 69, 0.5);
  font-family: var(--font-serif);
  font-size: 40px;
  font-weight: 400;
  line-height: 1;
}

.tenets h4 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 24px;
  font-style: italic;
  font-weight: 400;
}

.tenets p {
  max-width: 440px;
  margin: 0.4rem 0 0;
  color: var(--bone2);
  font-size: 13px;
  line-height: 1.75;
}

.order-aside {
  background: rgba(13, 13, 18, 0.5);
}

.media-label,
.media-note {
  color: rgba(154, 161, 166, 0.7);
  font-size: 10px;
  letter-spacing: 0.2em;
  line-height: 1.7;
}

.sigil-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
  border: 1px solid rgba(166, 127, 69, 0.3);
  background: var(--ob);
}

.sigil-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sigil-frame span {
  position: absolute;
  inset: 0.9rem;
  border: 1px solid rgba(121, 234, 255, 0.15);
}

.order-warning {
  margin-top: 2rem;
  padding: 1.1rem;
  border: 1px solid rgba(176, 49, 60, 0.3);
  background: rgba(176, 49, 60, 0.05);
}

.order-warning strong {
  color: var(--crimson);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.3em;
}

.order-warning p {
  margin: 0.5rem 0 0;
  color: var(--bone2);
  font-size: 12px;
  line-height: 1.7;
}

.timeline-layout {
  display: grid;
  width: min(100%, 1680px);
  grid-template-columns: minmax(220px, 0.58fr) minmax(0, 1.8fr);
  gap: 2.5rem;
  margin: 0 auto;
  padding: 2.5rem 3rem 3.5rem;
}

.timeline-header {
  position: sticky;
  top: 0;
  align-self: start;
  padding-right: 2.25rem;
  border-right: 1px solid rgba(166, 127, 69, 0.2);
}

.timeline-header h2 {
  margin: 1rem 0;
  font-family: var(--font-serif);
  font-size: clamp(44px, 5vw, 78px);
  line-height: 0.88;
}

.timeline-subtitle {
  margin: 0;
  color: var(--bronze);
  font-family: var(--font-serif);
  font-size: clamp(24px, 2.4vw, 36px);
  font-style: italic;
}

.timeline-summary {
  max-width: 30ch;
  margin-top: 1.75rem;
  color: rgba(154, 161, 166, 0.65);
  font-size: 11px;
  line-height: 1.9;
  letter-spacing: 0.12em;
}

.timeline-range,
.timeline-meta {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 1.5rem;
  color: rgba(154, 161, 166, 0.5);
  font-size: 9px;
  letter-spacing: 0.24em;
}

.timeline-range {
  align-items: center;
}

.timeline-range i {
  height: 1px;
  flex: 1;
  background: linear-gradient(90deg, rgba(166, 127, 69, 0.6), rgba(166, 127, 69, 0.1));
}

.timeline-meta {
  margin-top: 0.5rem;
  color: rgba(166, 127, 69, 0.65);
}

.timeline-events {
  display: grid;
  min-width: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline-event {
  min-height: 210px;
  padding: 1.5rem 0;
  border-top: 1px solid rgba(166, 127, 69, 0.2);
}

.timeline-event-opening {
  display: grid;
  min-height: 0;
  grid-column: span 2;
  grid-template-columns: minmax(0, 0.82fr) minmax(280px, 1.18fr);
  gap: 2rem;
}

.timeline-event article {
  display: flex;
  min-width: 0;
  height: 100%;
  flex-direction: column;
}

.timeline-event-top,
.timeline-event-top > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

.timeline-event time {
  color: var(--bronze);
  font-family: var(--font-serif);
  font-size: 42px;
  line-height: 1;
}

.timeline-event:nth-child(2) time,
.timeline-event:nth-child(6) time { color: var(--cyan); }
.timeline-event:nth-child(3) time { color: var(--crimson); }
.timeline-event:nth-child(5) time { color: var(--silver); }

.timeline-event-top span {
  color: rgba(166, 127, 69, 0.75);
  font-size: 9px;
  letter-spacing: 0.3em;
}

.timeline-event-top small {
  color: rgba(154, 161, 166, 0.35);
  font-size: 9px;
  letter-spacing: 0.26em;
}

.timeline-event h3 {
  margin: 1rem 0 0;
  font-family: var(--font-serif);
  font-size: 24px;
  font-style: italic;
  font-weight: 400;
}

.timeline-event article > p {
  max-width: 62ch;
  margin: 0.5rem 0 0;
  color: var(--bone2);
  font-size: 12px;
  line-height: 1.8;
}

.event-rule {
  display: block;
  width: 3rem;
  height: 1px;
  margin-top: auto;
  padding-top: 1.25rem;
  background-clip: content-box;
}

.event-rule.bronze { background-color: var(--bronze); }
.event-rule.cyan { background-color: var(--cyan); }
.event-rule.crimson { background-color: var(--crimson); }
.event-rule.silver { background-color: var(--silver); }

.timeline-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 7;
  margin: 1.25rem 0 0;
  border: 1px solid rgba(166, 127, 69, 0.2);
  background: var(--ob);
}

.timeline-event-opening > .timeline-image {
  margin-top: 0;
}

.timeline-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(18%) contrast(1.08) saturate(0.78);
}

.timeline-image figcaption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0.75rem;
  border-top: 1px solid rgba(166, 127, 69, 0.15);
  background: rgba(7, 7, 10, 0.78);
  color: rgba(154, 161, 166, 0.55);
  font-size: 8px;
  letter-spacing: 0.25em;
}

.identities-layout {
  display: flex;
  min-height: 100%;
  flex-direction: column;
}

.identities-header {
  display: flex;
  flex: none;
  align-items: center;
  gap: 2rem;
  padding: 1.4rem 2.15rem 1rem;
  border-bottom: 1px solid rgba(166, 127, 69, 0.15);
}

.identities-header h2 {
  margin: 0.35rem 0 0;
  font-family: var(--font-serif);
  font-size: 30px;
  font-weight: 400;
  line-height: 1;
}

.identity-search-box {
  display: flex;
  min-width: 260px;
  flex: 1;
  align-items: center;
  gap: 0.65rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid rgba(166, 127, 69, 0.3);
  background: rgba(7, 7, 10, 0.6);
  color: var(--bronze);
}

.identity-search-box label {
  display: flex;
  min-width: 0;
  flex: 1;
  align-items: center;
  gap: 0.65rem;
}

#identity-search {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--bone);
  font: 12px var(--font-mono);
  letter-spacing: 0.12em;
}

#identity-search::placeholder {
  color: rgba(189, 182, 166, 0.55);
}

#identity-count {
  color: rgba(154, 161, 166, 0.65);
  font-size: 10px;
  letter-spacing: 0.18em;
  white-space: nowrap;
}

.identity-filters {
  display: flex;
  flex: none;
  gap: 0.5rem;
  overflow-x: auto;
  padding: 0.85rem 2.15rem;
  border-bottom: 1px solid rgba(166, 127, 69, 0.1);
}

.identity-filters button {
  flex: none;
  padding: 0.4rem 0.8rem;
  border: 1px solid rgba(166, 127, 69, 0.2);
  background: transparent;
  color: rgba(154, 161, 166, 0.7);
  font-size: 10px;
  letter-spacing: 0.16em;
}

.identity-filters button:hover,
.identity-filters button.is-active {
  border-color: rgba(166, 127, 69, 0.6);
  background: rgba(166, 127, 69, 0.16);
  color: var(--bone);
}

.identity-columns,
.identity-row {
  display: grid;
  grid-template-columns: 56px 1.15fr 1fr 0.9fr 1fr 0.7fr;
  align-items: center;
}

.identity-columns {
  flex: none;
  padding: 0.75rem 2.15rem;
  border-bottom: 1px solid rgba(166, 127, 69, 0.2);
  color: rgba(154, 161, 166, 0.65);
  font-size: 9px;
  letter-spacing: 0.22em;
}

#identity-rows {
  min-height: 0;
  flex: 1;
}

.identity-row {
  width: 100%;
  padding: 0.85rem 2.15rem;
  border: 0;
  border-bottom: 1px solid rgba(166, 127, 69, 0.08);
  background: transparent;
  color: var(--bone2);
  font-size: 11px;
  letter-spacing: 0.06em;
}

.identity-row:hover {
  background: rgba(166, 127, 69, 0.08);
}

.identity-row span:first-child {
  color: rgba(154, 161, 166, 0.5);
  font-size: 10px;
}

.identity-row span:nth-child(2) {
  color: var(--bone);
  font-weight: 500;
}

.identity-row span:nth-child(3) {
  color: var(--cyan);
  letter-spacing: 0.12em;
}

.identity-end {
  margin: 0;
  padding: 1.8rem;
  color: rgba(154, 161, 166, 0.3);
  font-size: 10px;
  letter-spacing: 0.28em;
  text-align: center;
}

#dossier {
  position: absolute;
  z-index: 80;
  inset: 0;
  overflow-y: auto;
  background: rgba(0, 0, 0, 0.86);
  backdrop-filter: blur(3px);
}

.dossier-panel {
  width: min(1180px, calc(100% - 3rem));
  min-height: calc(100% - 3rem);
  margin: 1.5rem auto;
  border: 1px solid rgba(166, 127, 69, 0.28);
  background: rgba(7, 7, 10, 0.98);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.7);
}

.dossier-header {
  position: sticky;
  z-index: 2;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 1.5rem;
  border-bottom: 1px solid rgba(166, 127, 69, 0.2);
  background: rgba(7, 7, 10, 0.96);
}

.dossier-header p {
  margin: 0;
  color: var(--crimson);
  font-size: 10px;
  letter-spacing: 0.3em;
}

.dossier-header button {
  flex: none;
  padding: 0.55rem 0.8rem;
  border: 1px solid rgba(166, 127, 69, 0.3);
  background: transparent;
  color: var(--bone2);
  font-size: 10px;
  letter-spacing: 0.18em;
}

.dossier-body {
  display: grid;
  grid-template-columns: minmax(280px, 360px) 1fr;
}

.dossier-visual {
  padding: 2rem;
  border-right: 1px solid rgba(166, 127, 69, 0.2);
  background: rgba(13, 13, 18, 0.5);
}

.dossier-portrait {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  border: 1px solid rgba(166, 127, 69, 0.35);
  background:
    repeating-linear-gradient(135deg, rgba(166, 127, 69, 0.06) 0 12px, transparent 12px 24px),
    var(--ob);
}

.dossier-portrait img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dossier-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(233, 227, 214, 0.06);
  font-family: var(--font-serif);
  font-size: 120px;
}

.dossier-codename,
.dossier-status {
  position: absolute;
  z-index: 2;
  font-size: 9px;
  letter-spacing: 0.2em;
}

.dossier-codename {
  bottom: 0.8rem;
  left: 0.9rem;
  color: var(--cyan);
}

.dossier-status {
  top: 0.8rem;
  right: 0.9rem;
  padding: 0.25rem 0.4rem;
  border: 1px solid;
}

.dossier-visual > p {
  margin: 1.2rem 0 0.3rem;
  color: rgba(154, 161, 166, 0.6);
  font-size: 9px;
  letter-spacing: 0.22em;
}

.dossier-visual > strong {
  color: var(--bronze);
  font-family: var(--font-serif);
  font-size: 30px;
  font-weight: 400;
}

.dossier-content {
  min-width: 0;
  padding: 2.5rem;
}

.dossier-kicker,
.dossier-content h3 {
  color: var(--bronze);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.3em;
}

.dossier-content h2 {
  margin: 0.65rem 0;
  font-family: var(--font-serif);
  font-size: clamp(48px, 7vw, 86px);
  font-weight: 600;
  line-height: 0.9;
}

.dossier-alias {
  margin: 0;
  color: var(--bronze);
  font-family: var(--font-serif);
  font-size: 26px;
  font-style: italic;
}

.dossier-fields {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 2rem;
  border: 1px solid rgba(166, 127, 69, 0.18);
  background: rgba(166, 127, 69, 0.18);
}

.dossier-fields > div,
.dossier-fields > button {
  min-width: 0;
  padding: 1rem;
  border: 0;
  background: var(--ob);
}

.dossier-fields > button:hover {
  background: rgba(121, 234, 255, 0.06);
}

.dossier-fields small {
  display: block;
  color: rgba(154, 161, 166, 0.6);
  font-size: 9px;
  letter-spacing: 0.22em;
}

.dossier-fields strong {
  display: block;
  overflow-wrap: anywhere;
  margin-top: 0.4rem;
  color: var(--bone);
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 400;
}

.dossier-fields button strong {
  color: var(--cyan);
}

.dossier-content h3 {
  margin: 2rem 0 0.75rem;
}

.dossier-note,
.dossier-fragment {
  max-width: 680px;
  color: var(--bone2);
  font-size: 13px;
  line-height: 1.9;
}

.dossier-fragment {
  padding-left: 1rem;
  border-left: 1px solid rgba(166, 127, 69, 0.25);
  font-style: italic;
}

.mint-layout {
  display: grid;
  min-height: 100%;
  place-content: center;
  padding: 3rem 2rem;
}

.mint-panel {
  position: relative;
  width: min(560px, 92vw);
  margin: 0 auto;
  text-align: center;
}

.mint-vault-door {
  pointer-events: none;
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 0;
  width: min(560px, 92vw);
  height: min(560px, 92vw);
  object-fit: cover;
  border-radius: 50%;
  opacity: 0.2;
  transform: translate(-50%, -50%);
}

.mint-panel > :not(.mint-vault-door) {
  position: relative;
  z-index: 1;
}

.mint-panel h2 {
  margin: 0.75rem 0 1.25rem;
  font-family: var(--font-serif);
  font-size: clamp(38px, 6vw, 64px);
  font-weight: 600;
  line-height: 1;
}

.mint-body {
  max-width: 420px;
  margin: 0 auto 2rem;
  color: var(--bone2);
  font-size: 13px;
  line-height: 1.8;
}

.mint-seal {
  position: relative;
  width: 180px;
  height: 180px;
  margin: 0 auto 2rem;
}

.mint-seal-ring {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(166, 127, 69, 0.5);
  transform: rotate(45deg);
}

.mint-seal-ring-inner {
  inset: 22px;
  border-color: rgba(121, 234, 255, 0.3);
  animation: vlSpin 24s linear infinite reverse;
}

.mint-seal-ring-outer {
  animation: vlSpin 32s linear infinite;
}

.mint-seal-mark {
  position: absolute;
  inset: 52px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(176, 49, 60, 0.4);
  border-radius: 2px;
  font-family: var(--font-serif);
  font-size: 64px;
  color: rgba(233, 227, 214, 0.5);
  transform: rotate(-45deg);
  animation: vlSeal 4s ease-in-out infinite;
}

.mint-stats {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  margin-bottom: 2rem;
  font-size: 11px;
  letter-spacing: 0.18em;
}

.mint-stat-label {
  display: block;
  margin-bottom: 0.35rem;
  color: rgba(154, 161, 166, 0.6);
  font-size: 9px;
  letter-spacing: 0.26em;
}

.mint-price {
  font-family: var(--font-serif);
  font-size: 30px;
  font-weight: 500;
  color: var(--bronze);
}

.mint-price span {
  font-size: 14px;
}

.lmt-counter-slot #mint-counter {
  display: block;
  font-family: var(--font-serif);
  font-size: 30px;
  line-height: 1;
  color: var(--bone);
  letter-spacing: 0.02em;
}

.lmt-counter-slot #mint-counter span {
  font-size: 14px;
  color: var(--silver);
}

.lmt-button-slot,
.lmt-counter-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
}

.lmt-button-slot #mint-button-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
}

#mint-button-container .wallet-adapter-button-trigger,
#mint-button-container button {
  font-family: var(--font-mono) !important;
  font-size: 13px !important;
  font-weight: 400 !important;
  letter-spacing: 0.32em !important;
  text-transform: uppercase;
  height: auto !important;
  line-height: 1.2 !important;
  padding: 1.1rem 2.5rem !important;
  border-radius: 0 !important;
  border: 1px solid var(--crimson) !important;
  background: linear-gradient(
    180deg,
    rgba(176, 49, 60, 0.15),
    rgba(176, 49, 60, 0.04)
  ) !important;
  color: var(--bone) !important;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

#mint-button-container .wallet-adapter-button-trigger:not([disabled]):hover,
#mint-button-container button:not([disabled]):hover {
  background: rgba(176, 49, 60, 0.25) !important;
  box-shadow: 0 0 34px rgba(176, 49, 60, 0.35);
}

.wallet-adapter-modal-wrapper {
  z-index: 200 !important;
}

@keyframes vlSpin {
  0% {
    transform: rotate(0);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes vlSeal {
  0%,
  100% {
    filter: drop-shadow(0 0 8px rgba(121, 234, 255, 0.15));
  }
  50% {
    filter: drop-shadow(0 0 22px rgba(121, 234, 255, 0.45));
  }
}

.anim-spin-slow {
  animation: vlSpin 32s linear infinite;
}

.anim-seal {
  animation: vlSeal 4s ease-in-out infinite;
}

.archive-footer {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 2rem;
  border-top: 1px solid rgba(166, 127, 69, 0.15);
  color: rgba(154, 161, 166, 0.45);
  font-size: 9px;
  letter-spacing: 0.24em;
}

@keyframes vlBlink {
  0%,
  49% {
    opacity: 1;
  }
  50%,
  100% {
    opacity: 0;
  }
}

@keyframes vlFlicker {
  0%,
  100% {
    opacity: 0.85;
  }
  8% {
    opacity: 0.4;
  }
  10% {
    opacity: 0.9;
  }
  42% {
    opacity: 0.7;
  }
  44% {
    opacity: 0.95;
  }
}

@keyframes vlScan {
  0% {
    transform: translateY(-100%);
  }
  100% {
    transform: translateY(100%);
  }
}

@keyframes vlPulse {
  0%,
  100% {
    opacity: 0.5;
  }
  50% {
    opacity: 1;
  }
}

@keyframes vlScreenBoot {
  0% {
    opacity: 0;
    transform: scale(1.12);
    filter: brightness(2.2) blur(6px);
  }
  40% {
    opacity: 1;
    filter: brightness(1.3) blur(0);
  }
  100% {
    opacity: 1;
    transform: scale(1);
    filter: none;
  }
}

@keyframes vlIn {
  0% {
    opacity: 0;
    transform: translateY(14px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.anim-blink {
  animation: vlBlink 1.05s steps(1) infinite;
}

.anim-flicker {
  animation: vlFlicker 5s infinite;
}

.anim-scan {
  animation: vlScan 7.5s linear infinite;
}

.anim-pulse {
  animation: vlPulse 2.6s ease-in-out infinite;
}

.anim-screenboot {
  animation: vlScreenBoot 1.1s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.anim-in {
  animation: vlIn 0.5s ease both;
}

.screen-panel[hidden],
#boot-idle[hidden],
#boot-decrypt[hidden],
#shell[hidden],
#dossier[hidden] {
  display: none !important;
}

@media (max-width: 760px) {
  .masthead {
    padding: 0.75rem;
  }

  .masthead-title {
    font-size: 20px;
  }

  .masthead-archive,
  .integrity,
  .status-divider,
  .recording,
  .archive-nav > span,
  .archive-footer > span:first-child,
  .archive-footer > span:last-child {
    display: none;
  }

  .masthead-status {
    font-size: 8px;
  }

  .archive-nav {
    padding-inline: 0.75rem;
  }

  .archive-footer {
    justify-content: center;
    padding-inline: 0.75rem;
    font-size: 8px;
  }

  .archive-hero,
  .featured-section,
  .order-copy,
  .order-aside,
  .timeline-layout,
  .identities-header,
  .identity-filters {
    padding-right: 1rem;
    padding-left: 1rem;
  }

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

  .archive-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .featured-grid,
  .order-layout,
  .timeline-layout,
  .timeline-events {
    grid-template-columns: 1fr;
  }

  .order-copy {
    border-right: 0;
    border-bottom: 1px solid rgba(166, 127, 69, 0.15);
  }

  .timeline-layout {
    gap: 2rem;
    padding-top: 2rem;
  }

  .timeline-header {
    position: static;
    padding: 0 0 1.75rem;
    border-right: 0;
    border-bottom: 1px solid rgba(166, 127, 69, 0.2);
  }

  .timeline-event-opening {
    display: block;
    grid-column: auto;
  }

  .timeline-event-opening > .timeline-image {
    margin-top: 1.25rem;
  }

  .timeline-image figcaption {
    letter-spacing: 0.1em;
  }

  .identities-header {
    align-items: stretch;
    flex-direction: column;
    gap: 1rem;
  }

  .identity-columns {
    display: none;
  }

  .identity-row {
    grid-template-columns: 44px minmax(0, 1fr) auto;
    gap: 0.7rem;
    padding: 1rem;
  }

  .identity-row span:nth-child(4) {
    grid-column: 3;
    grid-row: 1;
    font-size: 9px;
  }

  .identity-row span:nth-child(5),
  .identity-row span:nth-child(6) {
    display: none;
  }

  .identity-row span:nth-child(3) {
    grid-column: 2 / 4;
    font-size: 10px;
  }

  .dossier-panel {
    width: calc(100% - 1rem);
    margin: 0.5rem auto;
  }

  .dossier-body {
    grid-template-columns: 1fr;
  }

  .dossier-visual {
    padding: 1rem;
    border-right: 0;
    border-bottom: 1px solid rgba(166, 127, 69, 0.2);
  }

  .dossier-portrait {
    max-width: 320px;
    margin: auto;
  }

  .dossier-content {
    padding: 1.5rem 1rem 2.5rem;
  }

  .dossier-fields {
    grid-template-columns: repeat(2, 1fr);
  }
}

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