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

:root {
  --obsidian: #141210;
  --charcoal: #1b1714;
  --bone: #f1eadf;
  --sand: #cfbda6;
  --clay: #8d6f56;
  --forest: #2d4333;
  --moss-soft: rgba(45, 67, 51, 0.16);
  --border: rgba(241, 234, 223, 0.14);
  --border-strong: rgba(241, 234, 223, 0.24);
  --panel: rgba(24, 20, 17, 0.52);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.18);
  --pointer-x: 50%;
  --pointer-y: 50%;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--obsidian);
  color: var(--bone);
  font-family: "Inter", sans-serif;
  overflow-x: hidden;
}

body {
  position: relative;
  overflow-y: auto;
  background:
    radial-gradient(circle at top left, rgba(207, 189, 166, 0.08), transparent 24%),
    linear-gradient(180deg, #171310, #100e0d 42%, #141210);
}

body[data-panel="landing"] {
  overflow: hidden;
}

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

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

button {
  font: inherit;
  color: inherit;
}

.loader,
.panel,
.zenith-overlay,
.assistant-shell {
  transition:
    opacity 400ms ease,
    transform 600ms ease,
    visibility 400ms ease;
}

.loader {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  gap: 1.25rem;
  background:
    linear-gradient(180deg, rgba(37, 31, 27, 0.94), rgba(13, 11, 10, 0.98)),
    var(--obsidian);
}

.loader__stone {
  position: relative;
  width: min(22rem, calc(100vw - 3rem));
  height: 8.5rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(135deg, rgba(241, 234, 223, 0.05), rgba(255, 255, 255, 0)),
    url("./assets/stone-texture.png") center / cover no-repeat,
    linear-gradient(180deg, #2b241f, #14110f);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.loader__stone::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.08) 48%, transparent 100%);
  transform: translateX(-120%);
  animation: scan 2.8s ease-in-out infinite;
}

.loader__carve {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: "Libre Caslon Text", serif;
  font-size: 2rem;
  letter-spacing: 0.16em;
  color: rgba(249, 249, 241, 0.9);
  clip-path: inset(0 100% 0 0);
  animation: carve 2.8s cubic-bezier(0.25, 1, 0.3, 1) forwards;
}

.loader__line {
  margin: 0;
  color: rgba(249, 249, 241, 0.72);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.75rem;
}

body:not(.is-loading) .loader {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.site-shell {
  position: relative;
  height: 100vh;
  isolation: isolate;
}

.page-shell {
  position: relative;
  min-height: 100vh;
  isolation: isolate;
}

.page-chamber {
  min-height: 100vh;
}

.inner-hero {
  position: relative;
  min-height: 68vh;
  background: #141210;
}

.inner-hero__image,
.inner-hero__scrim {
  position: absolute;
  inset: 0;
}

.inner-hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.inner-hero__scrim {
  background:
    linear-gradient(180deg, rgba(12, 10, 9, 0.2), rgba(12, 10, 9, 0.54)),
    linear-gradient(90deg, rgba(12, 10, 9, 0.58), rgba(12, 10, 9, 0.12) 48%, rgba(12, 10, 9, 0.44));
}

.inner-hero__scrim--soft {
  background:
    linear-gradient(180deg, rgba(12, 10, 9, 0.08), rgba(12, 10, 9, 0.42)),
    linear-gradient(90deg, rgba(12, 10, 9, 0.38), rgba(12, 10, 9, 0.04) 52%, rgba(12, 10, 9, 0.22));
}

.inner-nav,
.inner-hero__copy,
.content-shell {
  width: min(100%, 1360px);
  margin-inline: auto;
}

.inner-nav {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.4rem 1.25rem 0;
}

.inner-nav__link {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding-bottom: 0.3rem;
  border-bottom: 1px solid rgba(241, 234, 223, 0.18);
  color: rgba(241, 234, 223, 0.9);
  cursor: pointer;
  line-height: 1;
}

.inner-nav__link:hover,
.inner-nav__link:focus-visible {
  border-bottom-color: rgba(241, 234, 223, 0.42);
}

.inner-hero__copy {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 1rem;
  align-content: end;
  min-height: 68vh;
  padding: 7rem 1.25rem 3rem;
}

.inner-hero__title {
  margin: 0;
  max-width: 12ch;
  font-family: "Libre Caslon Text", serif;
  font-size: clamp(2.4rem, 5vw, 4.6rem);
  line-height: 0.98;
  letter-spacing: 0.01em;
}

.inner-hero__lead {
  max-width: 34rem;
  margin: 0;
  color: rgba(241, 234, 223, 0.84);
  font-size: 1rem;
  line-height: 1.7;
}

.content-band {
  background:
    linear-gradient(180deg, #141210, #171310);
  padding: 2rem 0 4rem;
}

.content-shell {
  display: grid;
  gap: 2rem;
  padding: 0 1.25rem;
}

.content-column,
.content-rail {
  display: grid;
  align-content: start;
  gap: 1.5rem;
}

.content-note {
  max-width: 42rem;
}

.content-note p {
  margin: 0;
  color: rgba(241, 234, 223, 0.78);
  line-height: 1.75;
}

.content-note--feature {
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(241, 234, 223, 0.12);
}

.content-title {
  margin: 0 0 0.9rem;
  max-width: 12ch;
  font-family: "Libre Caslon Text", serif;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.02;
  letter-spacing: 0.01em;
}

.content-stat-grid {
  display: grid;
  gap: 1rem;
}

.content-stat-grid > div {
  padding-top: 0.85rem;
  border-top: 1px solid rgba(241, 234, 223, 0.12);
}

.content-stat-grid strong {
  color: rgba(241, 234, 223, 0.92);
  line-height: 1.5;
}

.content-stat-grid--stacked {
  grid-template-columns: 1fr;
}

.selection-rail {
  display: grid;
  align-content: start;
  gap: 1rem;
}

.journal-grid {
  display: grid;
  gap: 1.25rem;
}

.panel {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(1rem);
}

.panel--active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: none;
}

.panel--landing {
  background: var(--obsidian);
}

.hero-media,
.hero-video,
.hero-noise,
.hero-grain,
.hero-light {
  position: absolute;
  inset: 0;
}

.site-shell::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background:
    url("./assets/noise-screen.png") center / cover no-repeat,
    url("./assets/stone-texture.png") center / cover no-repeat;
  opacity: 0.012;
  mix-blend-mode: multiply;
}

body[data-panel="landing"] .site-shell::before {
  opacity: 0.035;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: sepia(0.12) saturate(0.58) contrast(0.98) brightness(0.76);
  transform: scale(1.03);
}

.hero-noise {
  background:
    url("./assets/linen-texture.png") center / cover no-repeat,
    url("./assets/noise-screen.png") center / cover no-repeat;
  opacity: 0.05;
  mix-blend-mode: soft-light;
}

.hero-grain {
  background:
    linear-gradient(180deg, rgba(18, 15, 13, 0.06), rgba(18, 15, 13, 0.34)),
    radial-gradient(circle at center, rgba(241, 234, 223, 0.05), transparent 58%);
  mix-blend-mode: normal;
  opacity: 0.68;
}

.hero-light {
  background:
    radial-gradient(
      circle at var(--pointer-x) var(--pointer-y),
      rgba(233, 223, 205, 0.14),
      rgba(171, 141, 111, 0.08) 18%,
      rgba(0, 0, 0, 0) 34%
    ),
    linear-gradient(90deg, rgba(45, 67, 51, 0.18), rgba(0, 0, 0, 0) 42%, rgba(19, 16, 14, 0.3));
  filter: blur(24px);
  transition: background-position 150ms ease;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  min-height: 100vh;
  align-content: end;
  gap: 1.5rem;
  padding: 2rem 1.25rem 8rem;
}

.hero-copy {
  max-width: 34rem;
}

.hero-intro {
  max-width: 28rem;
  margin: 1.4rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid rgba(241, 234, 223, 0.18);
  color: rgba(241, 234, 223, 0.7);
  font-size: 0.92rem;
  line-height: 1.75;
}

.hero-ledger {
  display: grid;
  gap: 0.9rem;
  max-width: 36rem;
}

.hero-ledger > div {
  padding-top: 0.9rem;
  border-top: 1px solid rgba(241, 234, 223, 0.16);
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: rgba(241, 234, 223, 0.62);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.68rem;
}

.wordmark,
h1,
h2,
h3,
h4,
blockquote {
  font-family: "Libre Caslon Text", serif;
}

.wordmark {
  margin: 0;
  font-size: 2.65rem;
  line-height: 0.95;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.manifesto,
.lead,
.journal-card p,
.vault-note,
.assistant-text {
  max-width: 36rem;
  color: rgba(241, 234, 223, 0.78);
  font-size: 1rem;
  line-height: 1.7;
}

.panel-back,
.panel-open-intel,
.overlay-close {
  border: 0;
  border-radius: 0;
  background: transparent;
  backdrop-filter: none;
}

.entry-hint,
.selection-card,
.zenith-tile,
.vault-button {
  border: 1px solid var(--border);
  border-radius: 6px;
  background: rgba(25, 21, 18, 0.36);
  backdrop-filter: blur(16px);
}

.tactile {
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease,
    box-shadow 180ms ease;
}

.tactile:hover,
.tactile:focus-visible {
  transform: translateY(-2px);
  border-color: var(--border-strong);
  background: rgba(33, 28, 24, 0.48);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.14);
}

.entry-hint {
  position: absolute;
  left: 50%;
  bottom: 1.5rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 1rem;
  transform: translateX(-50%);
  animation: pulse 2.8s ease-in-out infinite;
}

.entry-hint:hover,
.entry-hint:focus-visible {
  transform: translateX(-50%);
}

.entry-hint__key {
  display: grid;
  place-items: center;
  width: 2.2rem;
  height: 2.2rem;
  border: 1px solid rgba(241, 234, 223, 0.16);
  border-radius: 6px;
  color: var(--bone);
}

.entry-hint__label {
  white-space: nowrap;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.75rem;
}

.panel-frame {
  min-height: 100vh;
  padding: 1rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(28, 23, 19, 0.08)),
    radial-gradient(circle at top left, rgba(241, 234, 223, 0.2), transparent 28%),
    linear-gradient(180deg, #b8b1a4, #b3aca0 100%);
}

.panel-header {
  display: grid;
  align-items: start;
  gap: 1rem;
  margin-bottom: 1.35rem;
  width: min(100%, 1440px);
  margin-inline: auto;
}

.panel-header h2,
.panel-copy h3,
.journal-hero h3 {
  margin: 0;
  font-size: 1.85rem;
  line-height: 1.02;
  letter-spacing: 0.01em;
}

.panel-header h2 {
  max-width: 16ch;
}

.panel-back,
.panel-open-intel,
.overlay-close {
  padding: 0 0 0.3rem;
  color: rgba(241, 234, 223, 0.88);
  border-bottom: 1px solid rgba(241, 234, 223, 0.18);
}

.panel-back:hover,
.panel-back:focus-visible,
.panel-open-intel:hover,
.panel-open-intel:focus-visible,
.overlay-close:hover,
.overlay-close:focus-visible {
  transform: none;
  background: transparent;
  box-shadow: none;
  border-bottom-color: rgba(241, 234, 223, 0.42);
}

.panel-body {
  min-height: calc(100vh - 8rem);
  overflow: auto;
  scrollbar-width: none;
  width: min(100%, 1440px);
  margin-inline: auto;
}

.panel-body::-webkit-scrollbar {
  display: none;
}

.panel-body--sanctuary,
.panel-body--vault {
  display: grid;
  gap: 1.35rem;
  align-items: start;
}

.feature-display,
.vault-media {
  min-height: 21rem;
  position: relative;
}

.feature-display img,
.vault-media img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 2px;
  border: 1px solid rgba(241, 234, 223, 0.08);
  box-shadow: var(--shadow);
}

.feature-display img {
  aspect-ratio: 4 / 5;
  max-height: 74vh;
}

.vault-media img {
  aspect-ratio: 4 / 3;
  max-height: 62vh;
}

.feature-display::after,
.vault-media::after,
.loader__stone::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: url("./assets/noise-screen.png") center / cover no-repeat;
  opacity: 0.025;
  mix-blend-mode: soft-light;
}

.loader__stone::after {
  opacity: 0.06;
}

.panel-copy,
.vault-copy {
  display: grid;
  gap: 1.2rem;
  align-content: start;
  padding-top: 0.25rem;
}

.metrics,
.vault-steps,
.aside-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.vault-steps {
  grid-template-columns: 1fr;
}

.metrics > div,
.vault-steps > div,
.aside-grid > div,
.journal-card,
.selection-card,
.journal-hero,
.journal-aside,
.zenith-tile {
  padding: 0;
  border: 0;
  background: transparent;
}

.metric-label,
.journal-index,
.zenith-index {
  display: block;
  color: rgba(241, 234, 223, 0.56);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.68rem;
  margin-bottom: 0.5rem;
}

.metrics > div,
.vault-steps > div,
.aside-grid > div {
  padding-top: 0.9rem;
  border-top: 1px solid rgba(241, 234, 223, 0.12);
}

.journal-hero,
.journal-aside {
  padding-top: 0.25rem;
}

.journal-card {
  padding-top: 1rem;
  border-top: 1px solid rgba(241, 234, 223, 0.12);
}

.selection-list,
.journal-list {
  display: grid;
  gap: 0;
  border-top: 1px solid rgba(241, 234, 223, 0.12);
}

.selection-card {
  text-align: left;
  border-radius: 0;
  border: 0;
  border-bottom: 1px solid rgba(241, 234, 223, 0.12);
  padding: 1rem 0;
  background: transparent;
  backdrop-filter: none;
}

.selection-card span,
.zenith-tile strong {
  display: block;
  font-size: 1.08rem;
  margin-bottom: 0.28rem;
}

.selection-card small,
.zenith-tile small {
  color: rgba(241, 234, 223, 0.62);
  line-height: 1.5;
}

.selection-card--active {
  border-bottom-color: rgba(207, 189, 166, 0.42);
  color: var(--bone);
}

.selection-card:hover,
.selection-card:focus-visible,
.zenith-tile:hover,
.zenith-tile:focus-visible {
  transform: none;
  background: transparent;
  box-shadow: none;
}

.panel-body--journal {
  display: grid;
  gap: 1.5rem;
  align-items: start;
}

.journal-feature {
  display: grid;
  gap: 1.35rem;
  align-content: start;
}

.journal-card h4 {
  margin: 0 0 0.5rem;
  font-size: 1.4rem;
  letter-spacing: 0.01em;
}

.journal-card p,
.journal-hero .lead {
  margin: 0;
}

.journal-hero h3 {
  max-width: 11ch;
}

.journal-figure {
  margin: 0;
  display: grid;
  gap: 0.75rem;
}

.journal-figure img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 2px;
  border: 1px solid rgba(241, 234, 223, 0.08);
  box-shadow: var(--shadow);
}

.journal-figure figcaption {
  max-width: 32rem;
  color: rgba(241, 234, 223, 0.66);
  font-size: 0.88rem;
  line-height: 1.7;
}

.journal-aside blockquote {
  margin: 0 0 1rem;
  font-size: 1.8rem;
  line-height: 1.12;
  letter-spacing: 0.01em;
}

.vault-button {
  width: fit-content;
  padding: 0.95rem 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.78rem;
}

.vault-note {
  margin: 0;
}

.assistant-shell {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 25;
  width: min(22rem, calc(100vw - 2rem));
  padding: 0.95rem 1rem;
  border: 1px solid rgba(241, 234, 223, 0.12);
  border-radius: 2px;
  background: rgba(26, 22, 19, 0.34);
  backdrop-filter: blur(18px);
}

.assistant-label {
  margin: 0 0 0.35rem;
  color: rgba(249, 249, 241, 0.58);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.68rem;
}

.assistant-text {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.65;
}

.zenith-overlay {
  position: fixed;
  inset: 0;
  z-index: 40;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.zenith-overlay.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.zenith-backdrop {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(16, 13, 11, 0.84), rgba(12, 10, 9, 0.9)),
    url("./assets/stone-texture.png") center / cover no-repeat;
  backdrop-filter: blur(18px);
}

.zenith-panel {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: 100vh;
  align-content: center;
  padding: 1rem;
}

.zenith-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.zenith-grid {
  display: grid;
  gap: 1rem;
}

.zenith-tile {
  text-align: left;
  padding: 1.2rem 0;
  border-radius: 0;
  border: 0;
  border-bottom: 1px solid rgba(241, 234, 223, 0.12);
  background: transparent;
  backdrop-filter: none;
}

.zenith-tile strong {
  font-family: "Libre Caslon Text", serif;
  font-size: 1.9rem;
  letter-spacing: 0.01em;
}

@media (min-width: 768px) {
  .inner-nav {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .inner-hero__copy,
  .content-shell {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .content-shell--sanctuary,
  .content-shell--vault {
    grid-template-columns: minmax(0, 1fr) minmax(19rem, 26rem);
  }

  .content-shell--intelligence {
    grid-template-columns: minmax(0, 1fr) minmax(18rem, 26rem);
  }

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

  .content-stat-grid--stacked {
    grid-template-columns: 1fr;
  }

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

  .hero-content {
    padding: 3rem 3rem 9rem;
  }

  .wordmark {
    font-size: 7rem;
  }

  .manifesto {
    font-size: 1.08rem;
  }

  .hero-content {
    grid-template-columns: minmax(18rem, 34rem) minmax(16rem, 24rem);
    justify-content: space-between;
    align-items: end;
  }

  .hero-ledger {
    justify-self: end;
    width: min(100%, 22rem);
  }

  .panel-frame {
    padding: 1.5rem;
  }

  .panel-header {
    grid-template-columns: auto 1fr auto;
  }

  .panel-header h2,
  .panel-copy h3,
  .journal-hero h3 {
    font-size: 2.35rem;
  }

  .panel-body--sanctuary,
  .panel-body--vault {
    grid-template-columns: minmax(0, 1.02fr) minmax(24rem, 0.72fr);
    gap: 2rem;
  }

  .panel-body--journal {
    grid-template-columns: minmax(0, 1.02fr) minmax(20rem, 0.72fr);
    grid-template-areas:
      "feature aside"
      "list aside";
    align-content: start;
  }

  .journal-feature {
    grid-area: feature;
    grid-template-columns: 1fr;
    align-items: start;
    max-width: 54rem;
  }

  .journal-list {
    grid-area: list;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
    border-top: 0;
  }

  .journal-aside {
    grid-area: aside;
    align-self: stretch;
  }

  .zenith-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
  }
}

@media (min-width: 1100px) {
  .inner-nav {
    padding-left: 2rem;
    padding-right: 2rem;
  }

  .inner-hero__copy,
  .content-shell {
    padding-left: 2rem;
    padding-right: 2rem;
  }

  .hero-content {
    padding-left: 4rem;
    padding-right: 4rem;
  }

  .hero-copy {
    padding-bottom: 0.5rem;
  }

  .panel-frame {
    padding: 2rem;
  }

  .entry-hint {
    bottom: 2rem;
  }

  .assistant-shell {
    right: 2rem;
    bottom: 2rem;
  }

  .feature-display,
  .vault-media {
    min-height: auto;
  }
}

@keyframes carve {
  0% {
    clip-path: inset(0 100% 0 0);
    opacity: 0.15;
  }

  100% {
    clip-path: inset(0 0 0 0);
    opacity: 1;
  }
}

@keyframes scan {
  0% {
    transform: translateX(-120%);
  }

  100% {
    transform: translateX(120%);
  }
}

@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 0 0 rgba(255, 255, 255, 0);
  }

  50% {
    box-shadow: 0 0 0.8rem rgba(255, 255, 255, 0.08);
  }
}
