.portia-page {
  --portia-bone: #eee8da;
  --portia-thread: #9a2429;
  --portia-calm: #55746d;
}
.portia-hero {
  position: relative;
  min-height: calc(100svh - 4.75rem);
  overflow: hidden;
  background: var(--void);
  color: var(--portia-bone);
  isolation: isolate;
}
.portia-hero::before {
  position: absolute;
  z-index: 1;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgb(9 9 11 / 98%) 0%,
      rgb(9 9 11 / 92%) 32%,
      rgb(9 9 11 / 44%) 58%,
      rgb(9 9 11 / 8%) 100%
    ),
    linear-gradient(180deg, transparent 55%, rgb(9 9 11 / 78%) 100%);
  content: "";
  pointer-events: none;
}
.portia-hero-world {
  position: absolute;
  z-index: 0;
  inset: 0;
  margin: 0;
}
.portia-hero-world picture,
.portia-hero-world img {
  width: 100%;
  height: 100%;
}
.portia-hero-world img {
  object-fit: cover;
  object-position: center;
  image-rendering: pixelated;
}
.portia-hero-world figcaption {
  position: absolute;
  right: max(1rem, calc((100% - var(--shell)) / 2));
  bottom: 2rem;
  color: var(--ash);
}
.portia-hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: center;
  gap: 1.5rem;
  min-height: calc(100svh - 4.75rem);
  padding-block: clamp(4rem, 10vw, 8rem) 2rem;
}
.portia-hero-copy {
  grid-column: 1 / span 6;
  max-width: 47rem;
}
.portia-identity {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.portia-identity img {
  width: 4.5rem;
  height: 4.5rem;
  border: 1px solid rgb(238 232 218 / 35%);
  border-radius: 18%;
}
.portia-hero h1 {
  max-width: 8.5ch;
  margin: 1.5rem 0 1.75rem;
  font-size: clamp(4rem, 8.2vw, 8.5rem);
  line-height: 0.86;
}
.portia-hero-copy > p {
  max-width: 57ch;
  color: #d8d5ce;
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
}
.portia-release-note {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  align-self: end;
  padding-top: 1rem;
  border-top: 1px solid rgb(216 213 206 / 25%);
}
.portia-instrument-section {
  background: var(--canvas);
}
.manuscript-instrument {
  display: grid;
  grid-template-columns: 13rem 1fr;
  gap: 1px;
  margin-top: 3rem;
  border: 1px solid var(--rule);
  background: var(--rule);
}
.instrument-controls {
  display: grid;
  align-content: start;
  background: var(--surface);
}
.instrument-controls button {
  display: grid;
  grid-template-columns: 2rem 1fr;
  align-items: center;
  min-height: 4.5rem;
  padding: 1rem;
  border: 0;
  border-bottom: 1px solid var(--rule);
  background: transparent;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}
.instrument-controls button span {
  color: var(--muted);
  font: 0.7rem/1 var(--mono);
}
.instrument-controls button[aria-pressed="true"] {
  background: var(--text);
  color: var(--canvas);
}
.instrument-controls button[aria-pressed="true"] span {
  color: currentColor;
}
.instrument-surface {
  position: relative;
  min-height: 31rem;
  overflow: hidden;
  background:
    linear-gradient(rgb(9 9 11 / 72%), rgb(9 9 11 / 72%)),
    url("/assets/images/silk-lattice.svg") center / cover;
}
.instrument-sheet {
  position: relative;
  z-index: 2;
  width: min(72%, 42rem);
  min-height: 22rem;
  margin: 4.5rem auto;
  padding: clamp(2rem, 5vw, 4.5rem);
  border: 1px solid #c9c4b9;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 1rem 1.25rem 0 rgb(0 0 0 / 24%);
}
.instrument-sheet h3 {
  max-width: 13ch;
  margin: 1.5rem 0 1rem;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 0.98;
}
.instrument-sheet p {
  max-width: 60ch;
}
.instrument-status {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid #c9c4b9;
  color: var(--iron);
  font: 0.72rem/1.5 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.instrument-spider {
  position: absolute;
  z-index: 3;
  top: 1.75rem;
  right: 2rem;
  width: 4rem;
  height: 4rem;
  filter: drop-shadow(0 0 1rem rgb(184 121 62 / 20%));
}
.portia-sprite {
  display: block;
  width: 4rem;
  height: 4rem;
  background-image: url("/assets/images/recluse-sigil-spritesheet.png");
  background-repeat: no-repeat;
  background-position: var(--sprite-x, 0) 0;
  background-size: 32rem 4rem;
  image-rendering: pixelated;
}
.manuscript-instrument[data-state="ask"] .portia-sprite {
  --sprite-x: -4rem;
  animation: portia-signal 800ms steps(8) 1;
}
.manuscript-instrument[data-state="review"] .portia-sprite {
  --sprite-x: -28rem;
  animation: portia-review 560ms steps(4) 1;
}
@keyframes portia-signal {
  from {
    background-position-x: 0;
  }
  to {
    background-position-x: -32rem;
  }
}
@keyframes portia-review {
  from {
    background-position-x: -16rem;
  }
  to {
    background-position-x: -32rem;
  }
}
.instrument-record {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--surface);
}
.instrument-record article {
  padding: 2rem;
  border-right: 1px solid var(--rule);
}
.instrument-record article:last-child {
  border-right: 0;
}
.instrument-record h3 {
  margin: 1rem 0 0.35rem;
  font-size: 1.5rem;
}
.instrument-record p {
  margin: 0;
  color: var(--muted);
}
.portia-ledger-grid,
.privacy-field-grid,
.terminal-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1.5rem;
}
.portia-ledger-intro {
  grid-column: 1 / span 4;
}
.portia-ledger-intro h2,
.privacy-field-grid h2,
.terminal-grid h2 {
  margin: 1rem 0;
  font-size: clamp(2.5rem, 5vw, 5rem);
  line-height: 0.98;
}
.portia-ledger-grid .ledger {
  grid-column: 6 / -1;
}
.portia-folio-relic {
  width: 9rem;
  height: 8rem;
  margin-top: 3rem;
}
.portia-platforms {
  background: var(--surface);
}
.platform-record {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 3rem;
  border-block: 1px solid var(--rule);
}
.platform-record article {
  padding: 2rem;
  border-right: 1px solid var(--rule);
}
.platform-record article:last-child {
  border-right: 0;
}
.platform-record h3 {
  margin: 1rem 0;
  font-size: clamp(2rem, 4vw, 3.5rem);
}
.platform-record p {
  color: var(--muted);
}
.portia-privacy-field {
  background: var(--paper);
  color: var(--ink);
  --text: var(--ink);
  --canvas: var(--paper);
}
.privacy-field-grid > div:first-child {
  grid-column: 1 / span 5;
}
.privacy-proposition {
  grid-column: 7 / -1;
  align-self: end;
  font-size: 1.1rem;
}
.portia-terminal {
  border-bottom: 1px solid var(--rule);
}
.terminal-grid > div:first-child {
  grid-column: 1 / span 7;
}
.terminal-grid > div:last-child {
  grid-column: 9 / -1;
  align-self: end;
}
.portia-reading-icon {
  width: 6rem;
  height: 6rem;
  margin-bottom: 2rem;
  border: 1px solid var(--rule);
  border-radius: 18%;
}
.portia-reading-page .reading-content h3 {
  margin: 2rem 0 0.5rem;
  font: 600 1.05rem/1.4 var(--sans);
}
.portia-reading-page .reading-content ul {
  padding-left: 1.25rem;
}
