:root {
  --charcoal: #101010;
  --charcoal-raised: #1a1a1a;
  --obsidian: #08090C;
  --ink: #e8e2d6;
  --muted: #9a9286;
  --gold: #C5A059;
  --gold-bright: #E8C374;
  --gold-dim: #8a7349;
  --rule: rgba(197, 160, 89, 0.35);
  --serif: "Cormorant Garamond", "Palatino Linotype", serif;
  --sans: "Outfit", "Helvetica Neue", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body,
#root {
  margin: 0;
  min-height: 100%;
  background: var(--charcoal);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
}

.portal {
  max-width: 1080px;
  margin: 0 auto;
  padding: 4.5rem 1.75rem 6rem;
}

.masthead h1,
.briefing h2,
.stacks h2,
.shelf h3,
.modal h2 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: 0.04em;
  margin: 0.2rem 0 0.75rem;
}

.masthead h1 {
  font-size: clamp(2.75rem, 6vw, 4.5rem);
}

.eyebrow {
  margin: 0;
  color: var(--gold);
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.lede,
.epithet,
.synopsis,
.caption {
  color: var(--muted);
  max-width: 36rem;
  line-height: 1.6;
}

.section-rule {
  height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent 70%);
  margin: 3.5rem 0 1.25rem;
}

.briefing-video {
  width: 100%;
  max-width: 720px;
  background: #0a0a0a;
  border: 1px solid var(--rule);
  aspect-ratio: 16 / 9;
}

.shelf-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.shelf {
  background: var(--charcoal-raised);
  border: 1px solid var(--rule);
  padding: 1.5rem 1.4rem 1.25rem;
}

.spines {
  list-style: none;
  margin: 1.25rem 0 1rem;
  padding: 0;
  display: flex;
  gap: 0.5rem;
}

.spine {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  min-height: 9rem;
  padding: 0.85rem 0.45rem;
  background: #141414;
  color: var(--ink);
  border: 1px solid var(--rule);
  font-family: var(--serif);
  font-size: 0.95rem;
  cursor: pointer;
}

.spine.is-open {
  border-color: var(--gold);
  color: var(--gold);
}

.colophon {
  margin-top: 4rem;
}

button.ghost,
button.solid {
  font-family: var(--sans);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.72rem;
  cursor: pointer;
}

button.ghost {
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--gold-dim);
  padding: 0.7rem 1.1rem;
}

button.solid {
  background: var(--gold);
  color: #16110b;
  border: 0;
  padding: 0.75rem 1.2rem;
}

button.solid:disabled {
  opacity: 0.5;
}

.modal-veil {
  position: fixed;
  inset: 0;
  background: rgba(8, 8, 8, 0.72);
  display: grid;
  place-items: center;
  padding: 1rem;
}

.modal {
  width: min(520px, 100%);
  background: var(--charcoal-raised);
  border: 1px solid var(--rule);
  padding: 1.6rem 1.5rem 1.4rem;
  position: relative;
}

.modal-head .close {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
}

.intake {
  display: grid;
  gap: 0.9rem;
  margin-top: 1.2rem;
}

.intake label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}

.intake input,
.intake select,
.intake textarea {
  background: #121212;
  color: var(--ink);
  border: 1px solid var(--rule);
  padding: 0.55rem 0.65rem;
  font-family: var(--sans);
  font-size: 0.95rem;
  text-transform: none;
  letter-spacing: 0;
}

.drawer {
  margin-top: 1.4rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--rule);
  line-height: 1.55;
}

.hairline {
  height: 1px;
  flex: 1;
  background: linear-gradient(90deg, rgba(197, 160, 89, 0.55), transparent 88%);
}

.hairline--full {
  display: block;
  width: 100%;
  flex: none;
  margin: 0.85rem 0 0;
  background: linear-gradient(90deg, transparent, rgba(197, 160, 89, 0.45) 18%, rgba(232, 195, 116, 0.35) 50%, rgba(197, 160, 89, 0.45) 82%, transparent);
}

.section-kicker {
  margin: 0;
  color: var(--gold-bright);
  font-size: 0.72rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  font-weight: 500;
}

.folio-kicker {
  color: var(--gold-bright);
  font-size: 0.7rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.shelf-ambient {
  position: relative;
  isolation: isolate;
}

.shelf-ambient::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(197, 160, 89, 0.08), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.shelf-ambient > * {
  position: relative;
  z-index: 1;
}

.deco-frame {
  position: relative;
}

.deco-bracket {
  position: absolute;
  width: 16px;
  height: 16px;
  pointer-events: none;
  z-index: 6;
}

.deco-bracket::before,
.deco-bracket::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  box-sizing: border-box;
}

.deco-bracket--tl {
  top: 6px;
  left: 6px;
}

.deco-bracket--tr {
  top: 6px;
  right: 6px;
}

.deco-bracket--bl {
  bottom: 6px;
  left: 6px;
}

.deco-bracket--br {
  bottom: 6px;
  right: 6px;
}

.deco-bracket--tl::before,
.deco-bracket--tr::before,
.deco-bracket--bl::before,
.deco-bracket--br::before {
  border-color: var(--gold);
}

.deco-bracket--tl::after,
.deco-bracket--tr::after,
.deco-bracket--bl::after,
.deco-bracket--br::after {
  border-color: var(--gold-bright);
}

.deco-bracket--tl::before {
  top: 0;
  left: 0;
  border-top: 1px solid;
  border-left: 1px solid;
}

.deco-bracket--tl::after {
  top: 4px;
  left: 4px;
  border-top: 1px solid;
  border-left: 1px solid;
}

.deco-bracket--tr::before {
  top: 0;
  right: 0;
  border-top: 1px solid;
  border-right: 1px solid;
}

.deco-bracket--tr::after {
  top: 4px;
  right: 4px;
  border-top: 1px solid;
  border-right: 1px solid;
}

.deco-bracket--bl::before {
  bottom: 0;
  left: 0;
  border-bottom: 1px solid;
  border-left: 1px solid;
}

.deco-bracket--bl::after {
  bottom: 4px;
  left: 4px;
  border-bottom: 1px solid;
  border-left: 1px solid;
}

.deco-bracket--br::before {
  bottom: 0;
  right: 0;
  border-bottom: 1px solid;
  border-right: 1px solid;
}

.deco-bracket--br::after {
  bottom: 4px;
  right: 4px;
  border-bottom: 1px solid;
  border-right: 1px solid;
}

.media-frame {
  border: 1px solid rgba(197, 160, 89, 0.35);
  background: #05070A;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.8);
}

.media-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #05070A;
}

.media-stage__video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center 20%;
  transform: scale(1);
  transition: transform 0.7s ease;
}

.media-stage:hover .media-stage__video {
  transform: scale(1.02);
}

.media-stage__vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  background:
    radial-gradient(ellipse at center, transparent 42%, rgba(8, 9, 12, 0.45) 100%),
    radial-gradient(ellipse at 50% 18%, rgba(197, 160, 89, 0.16), transparent 62%);
}

.folio-card {
  isolation: isolate;
}
