:root {
  --ink: #05080b;
  --rain-steel: #111a20;
  --steel-line: rgba(178, 205, 211, 0.2);
  --frost: #d8e6e8;
  --frost-muted: #91a5aa;
  --electric: #7fc3d2;
  --electric-bright: #c4f0f7;
  --brass: #b18a51;
  --danger: #d67b64;
  --lily: #eff0e8;
  --display: "STZhongsong", "Songti SC", "Noto Serif CJK SC", "Times New Roman",
    serif;
  --body: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", sans-serif;
  --mono: "Bahnschrift", "Cascadia Mono", "Consolas", monospace;
  --page-pad: clamp(1.25rem, 5vw, 6.5rem);
  --header-h: 5.5rem;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  color: var(--frost);
  background:
    radial-gradient(circle at 78% 12%, rgba(77, 133, 145, 0.1), transparent 30rem),
    var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
}

body.menu-open {
  overflow: hidden;
}

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

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

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

::selection {
  color: var(--ink);
  background: var(--electric-bright);
}

:focus-visible {
  outline: 2px solid var(--electric-bright);
  outline-offset: 4px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.65rem 1rem;
  color: var(--ink);
  background: var(--frost);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.grain {
  position: fixed;
  z-index: 50;
  inset: 0;
  pointer-events: none;
  opacity: 0.075;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.65'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

.snow-field {
  position: fixed;
  z-index: 8;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.snowflake-particle {
  position: absolute;
  top: -2rem;
  left: var(--x);
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  opacity: var(--opacity);
  background: var(--lily);
  filter: blur(0.25px);
  animation: snow-fall var(--duration) linear infinite;
  animation-delay: var(--delay);
}

@keyframes snow-fall {
  from {
    transform: translate3d(0, -5vh, 0);
  }

  to {
    transform: translate3d(var(--drift), 108vh, 0);
  }
}

.site-header {
  position: fixed;
  z-index: 40;
  top: 0;
  left: 0;
  display: grid;
  grid-template-columns: minmax(12rem, 1fr) auto minmax(10rem, 1fr);
  align-items: center;
  width: 100%;
  height: var(--header-h);
  padding: 0 var(--page-pad);
  border-bottom: 1px solid rgba(185, 212, 218, 0.16);
  background: linear-gradient(180deg, rgba(4, 7, 9, 0.94), rgba(4, 7, 9, 0.72));
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  gap: 0.8rem;
  align-items: center;
  justify-self: start;
}

.brand-mark {
  position: relative;
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border: 1px solid rgba(170, 211, 220, 0.58);
  transform: rotate(45deg);
}

.brand-mark span {
  position: absolute;
  width: 1px;
  height: 1.1rem;
  background: var(--electric);
}

.brand-mark span:nth-child(2) {
  transform: rotate(60deg);
}

.brand-mark span:nth-child(3) {
  transform: rotate(-60deg);
}

.brand-copy {
  display: grid;
  gap: 0.05rem;
}

.brand-copy strong {
  font-family: var(--mono);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.26em;
}

.brand-copy small {
  color: var(--frost-muted);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
}

.main-nav {
  display: flex;
  gap: clamp(0.8rem, 1.8vw, 1.9rem);
  align-items: center;
}

.main-nav a {
  position: relative;
  padding: 0.35rem 0;
  color: #b7c9cc;
  font-size: 0.78rem;
  letter-spacing: 0.13em;
}

.main-nav a::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  content: "";
  background: var(--electric);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 220ms ease;
}

.main-nav a:hover::after,
.main-nav a:focus-visible::after {
  transform: scaleX(1);
}

.vitals {
  display: inline-flex;
  gap: 0.7rem;
  align-items: center;
  justify-self: end;
}

.vitals-line {
  width: 2.6rem;
  height: 1.5rem;
  background:
    linear-gradient(
      120deg,
      transparent 0 16%,
      var(--electric) 16% 18%,
      transparent 18% 38%,
      var(--electric) 38% 40%,
      transparent 40% 48%,
      var(--electric) 48% 51%,
      transparent 51% 68%,
      var(--electric) 68% 70%,
      transparent 70%
    );
}

.vitals-copy {
  display: grid;
  line-height: 1.1;
}

.vitals-copy small {
  color: var(--frost-muted);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
}

.vitals-copy strong {
  margin-top: 0.24rem;
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
}

.vitals-copy strong span {
  color: var(--frost-muted);
  font-size: 0.54rem;
}

.vitals-copy strong .vitals-value {
  color: var(--frost);
  font-size: 0.8rem;
}

.menu-toggle {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid var(--steel-line);
  background: transparent;
}

.menu-toggle span:not(.sr-only) {
  display: block;
  width: 1.2rem;
  height: 1px;
  margin: 0.35rem auto;
  background: var(--frost);
  transition: transform 180ms ease;
}

.hero {
  position: relative;
  display: flex;
  min-height: 100svh;
  padding: calc(var(--header-h) + 3.5rem) var(--page-pad) 2rem;
  overflow: hidden;
  align-items: center;
  isolation: isolate;
}

.hero::before {
  position: absolute;
  z-index: 1;
  inset: 0;
  content: "";
  pointer-events: none;
  background:
    linear-gradient(90deg, var(--ink) 0%, rgba(5, 8, 11, 0.98) 34%, transparent 68%),
    linear-gradient(0deg, var(--ink) 0%, transparent 30%);
}

.hero::after {
  position: absolute;
  z-index: 2;
  top: var(--header-h);
  right: 47%;
  bottom: 0;
  width: 1px;
  content: "";
  background: linear-gradient(
    180deg,
    transparent,
    rgba(188, 226, 233, 0.38) 15%,
    rgba(188, 226, 233, 0.08) 75%,
    transparent
  );
}

.hero-media {
  position: absolute;
  z-index: 0;
  top: 0;
  right: 0;
  bottom: 0;
  width: 62%;
  overflow: hidden;
  clip-path: polygon(16% 0, 100% 0, 100% 100%, 0 100%);
}

.hero-media > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 52% 4%;
  filter: saturate(0.64) contrast(1.09) brightness(0.78);
  transform: scale(1.02);
}

.hero-image-wash {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, var(--ink) 0%, transparent 32%),
    linear-gradient(0deg, rgba(5, 8, 11, 0.78), transparent 35%),
    radial-gradient(circle at 66% 40%, transparent 0 14%, rgba(3, 8, 11, 0.44) 62%);
}

.hero-lightning {
  position: absolute;
  top: 0;
  left: 24%;
  width: 45%;
  height: 100%;
  overflow: visible;
  opacity: 0.7;
  filter: drop-shadow(0 0 6px rgba(177, 231, 242, 0.68));
}

.hero-lightning path {
  fill: none;
  stroke: var(--electric-bright);
  stroke-linecap: square;
  stroke-linejoin: bevel;
  vector-effect: non-scaling-stroke;
}

.lightning-main {
  stroke-width: 1.2;
}

.lightning-branch {
  stroke-width: 0.6;
  opacity: 0.68;
}

.lightning-branch.thin {
  opacity: 0.4;
}

.hero-rail {
  position: absolute;
  z-index: 4;
  top: 50%;
  right: 1.25rem;
  display: flex;
  gap: 1.6rem;
  color: rgba(217, 233, 236, 0.54);
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  writing-mode: vertical-rl;
  transform: translateY(-50%);
}

.hero-content {
  position: relative;
  z-index: 4;
  width: min(52rem, 53vw);
}

.world-mark {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin: 0 0 1.15rem;
  color: #b7cdd1;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
}

.world-mark span + span {
  padding-left: 1rem;
  border-left: 1px solid rgba(216, 230, 232, 0.28);
  color: var(--frost-muted);
  font-family: var(--mono);
}

.hero h1 {
  display: flex;
  flex-direction: column;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(5.5rem, 11vw, 11.8rem);
  font-weight: 600;
  line-height: 0.72;
  letter-spacing: -0.08em;
  text-shadow: 0 0 50px rgba(101, 175, 188, 0.11);
}

.hero h1 span:last-child {
  margin-left: 0.6em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(220, 236, 238, 0.67);
}

.hero-en {
  margin: 1.2rem 0 1.6rem;
  color: var(--electric);
  font-family: var(--mono);
  font-size: clamp(0.67rem, 1vw, 0.82rem);
  letter-spacing: 0.42em;
}

.hero-identity {
  display: flex;
  gap: 1.2rem;
  align-items: baseline;
  padding-top: 1rem;
  border-top: 1px solid var(--steel-line);
}

.hero-identity p {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.3rem, 2.2vw, 2rem);
  letter-spacing: 0.05em;
}

.hero-identity span {
  color: var(--frost-muted);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}

.hero-quote {
  width: min(32rem, 100%);
  margin: clamp(2rem, 5vh, 4rem) 0 0;
  padding-left: 1.2rem;
  border-left: 2px solid var(--brass);
}

.hero-quote p {
  margin: 0;
  color: var(--lily);
  font-family: var(--display);
  font-size: clamp(1.5rem, 2.4vw, 2.2rem);
  line-height: 1.35;
}

.hero-quote cite {
  display: block;
  margin-top: 0.5rem;
  color: var(--frost-muted);
  font-family: var(--mono);
  font-size: 0.63rem;
  font-style: normal;
  letter-spacing: 0.08em;
}

.hero-actions {
  display: flex;
  gap: 0.8rem;
  margin-top: clamp(1.6rem, 4vh, 2.6rem);
}

.button {
  position: relative;
  display: inline-flex;
  min-width: 8.5rem;
  min-height: 3rem;
  padding: 0.7rem 1.4rem;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(189, 221, 228, 0.38);
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  transition:
    color 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease;
}

.button-primary {
  color: var(--ink);
  background: var(--frost);
}

.button-primary:hover,
.button-primary:focus-visible {
  color: var(--ink);
  background: var(--lily);
  border-color: var(--lily);
}

.button-ghost {
  background: rgba(9, 16, 20, 0.55);
}

.button-ghost:hover,
.button-ghost:focus-visible {
  color: var(--electric-bright);
  border-color: var(--electric);
  background: rgba(69, 126, 136, 0.15);
}

.hero-footer {
  position: absolute;
  z-index: 4;
  right: var(--page-pad);
  bottom: 2rem;
  left: var(--page-pad);
  display: flex;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: end;
  padding-top: 1rem;
  border-top: 1px solid rgba(182, 213, 219, 0.21);
}

.hero-footer p {
  display: grid;
  gap: 0.14rem;
  margin: 0;
}

.hero-footer p span {
  color: var(--frost-muted);
  font-size: 0.58rem;
  letter-spacing: 0.12em;
}

.hero-footer p strong {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.06em;
}

.scroll-link {
  display: inline-flex;
  gap: 0.65rem;
  align-items: center;
  margin-left: auto;
  color: var(--frost-muted);
  font-size: 0.64rem;
  letter-spacing: 0.12em;
}

.scroll-line {
  width: 3rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--electric));
}

.hero-stamp {
  position: absolute;
  z-index: 5;
  right: 5%;
  bottom: 14%;
  display: grid;
  width: 8.2rem;
  height: 8.2rem;
  margin: 0;
  color: rgba(226, 236, 235, 0.23);
  place-items: center;
  border: 1px solid rgba(226, 236, 235, 0.2);
  border-radius: 50%;
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.17em;
  text-align: center;
  transform: rotate(-14deg);
}

.hero-stamp::before,
.hero-stamp::after {
  position: absolute;
  content: "";
  border: 1px solid rgba(226, 236, 235, 0.12);
  border-radius: 50%;
}

.hero-stamp::before {
  inset: 0.45rem;
}

.hero-stamp::after {
  inset: 1.4rem;
}

.hero-stamp span {
  font-family: var(--display);
  font-size: 1.9rem;
  letter-spacing: 0;
}

.section {
  position: relative;
  padding: clamp(5.5rem, 10vw, 10rem) var(--page-pad);
}

.section-heading {
  display: grid;
  gap: 1.2rem;
  width: min(62rem, 100%);
  margin-bottom: clamp(3rem, 7vw, 6rem);
}

.file-code {
  margin: 0;
  color: var(--electric);
  font-family: var(--mono);
  font-size: 0.64rem;
  line-height: 1.4;
  letter-spacing: 0.18em;
}

.section h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2.35rem, 5vw, 5.2rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.section-intro {
  max-width: 46rem;
  margin: 0;
  color: #a9bdc0;
  font-size: clamp(0.95rem, 1.25vw, 1.08rem);
  line-height: 1.9;
}

.dossier {
  background:
    linear-gradient(rgba(160, 197, 205, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(160, 197, 205, 0.035) 1px, transparent 1px),
    linear-gradient(145deg, #0a1115, #070b0e 48%, #0d1519);
  background-size:
    5rem 5rem,
    5rem 5rem,
    auto;
}

.dossier::before {
  position: absolute;
  top: 0;
  right: var(--page-pad);
  width: 20%;
  height: 1px;
  content: "";
  background: var(--brass);
}

.dossier-layout {
  display: grid;
  grid-template-columns: minmax(18rem, 0.85fr) minmax(24rem, 1.15fr);
  gap: clamp(2.2rem, 7vw, 7rem);
  align-items: start;
}

.dossier-portrait {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: #0b1115;
  clip-path: polygon(0 0, 93% 0, 100% 6%, 100% 100%, 0 100%);
}

.dossier-portrait::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(203, 226, 231, 0.13);
  background:
    linear-gradient(0deg, rgba(3, 6, 8, 0.9), transparent 28%),
    linear-gradient(120deg, rgba(98, 150, 160, 0.09), transparent 35%);
}

.dossier-portrait img {
  width: 100%;
  aspect-ratio: 0.78;
  object-fit: cover;
  object-position: 50% 20%;
  filter: saturate(0.63) contrast(1.04) brightness(0.8);
}

.dossier-portrait figcaption {
  position: absolute;
  z-index: 2;
  right: 1.25rem;
  bottom: 1rem;
  left: 1.25rem;
  display: flex;
  justify-content: space-between;
  color: #7e959a;
  font-family: var(--mono);
  font-size: 0.56rem;
  letter-spacing: 0.07em;
}

.dossier-record {
  padding-top: 0.4rem;
}

.record-lead {
  padding-bottom: 2.2rem;
}

.record-name {
  margin: 0;
  color: var(--frost);
  font-family: var(--mono);
  font-size: clamp(1.2rem, 2.2vw, 1.7rem);
  letter-spacing: 0.09em;
}

.record-role {
  margin: 0.45rem 0 1.8rem;
  color: var(--brass);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
}

.record-lead > p:last-child {
  max-width: 38rem;
  margin: 0;
  color: #b3c4c6;
  font-family: var(--display);
  font-size: clamp(1.1rem, 1.7vw, 1.42rem);
  line-height: 1.8;
}

.record-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  border-top: 1px solid var(--steel-line);
}

.record-grid div {
  display: grid;
  grid-template-columns: 6.3rem 1fr;
  gap: 1rem;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--steel-line);
}

.record-grid div:nth-child(odd) {
  padding-right: 1.2rem;
}

.record-grid div:nth-child(even) {
  padding-left: 1.2rem;
  border-left: 1px solid var(--steel-line);
}

.record-grid dt {
  color: var(--frost-muted);
  font-size: 0.67rem;
  letter-spacing: 0.08em;
}

.record-grid dd {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.03em;
}

.record-note {
  display: grid;
  grid-template-columns: 3.4rem 1fr;
  gap: 1.3rem;
  margin-top: 2rem;
  padding: 1.5rem;
  border-left: 1px solid var(--brass);
  background: rgba(177, 138, 81, 0.055);
}

.record-note p {
  margin: 0;
  color: var(--lily);
  font-family: var(--display);
  font-size: clamp(1.2rem, 2vw, 1.6rem);
}

.note-index {
  color: var(--brass);
  font-family: var(--mono);
  font-size: 0.7rem;
}

.redacted-record {
  margin-top: 1rem;
  border-top: 1px solid var(--steel-line);
}

.redacted-heading {
  display: flex;
  justify-content: space-between;
  padding: 1rem 0 0.7rem;
  color: #738b90;
  font-size: 0.62rem;
  letter-spacing: 0.08em;
}

.redacted-heading p {
  margin: 0;
  color: var(--frost-muted);
}

.redacted-heading span {
  font-family: var(--mono);
  font-size: 0.52rem;
}

.redaction-list {
  display: grid;
}

.redaction-list button {
  display: grid;
  grid-template-columns: minmax(10rem, 0.7fr) 1.3fr;
  gap: 1rem;
  min-height: 3.2rem;
  padding: 0;
  align-items: center;
  border: 0;
  border-bottom: 1px solid var(--steel-line);
  background: transparent;
  color: #9cb0b3;
  font-size: 0.68rem;
  text-align: left;
  cursor: pointer;
}

.redaction-list button:hover,
.redaction-list button:focus-visible,
.redaction-list button.is-open {
  color: var(--frost);
}

.redaction-bars {
  height: 0.72rem;
  background: repeating-linear-gradient(
    90deg,
    rgba(194, 218, 221, 0.66) 0 3.4rem,
    transparent 3.4rem 3.8rem
  );
  opacity: 0.35;
  transition:
    opacity 200ms ease,
    transform 200ms ease;
}

.redaction-list button.is-open .redaction-bars {
  opacity: 0.08;
  transform: scaleX(0.72);
  transform-origin: left;
}

.redacted-output {
  min-height: 4.2rem;
  margin: 0;
  padding: 1rem 1.1rem;
  color: #82999d;
  border-left: 1px solid var(--electric);
  background: rgba(127, 195, 210, 0.035);
  font-family: var(--display);
  font-size: 0.92rem;
  line-height: 1.75;
}

.storm-section {
  overflow: hidden;
  background:
    linear-gradient(
      90deg,
      rgba(5, 9, 12, 0.98) 0 35%,
      rgba(5, 9, 12, 0.78) 62%,
      rgba(5, 9, 12, 0.94) 100%
    ),
    url("./assets/victor-thunder-hand.jpg") center 33% / cover no-repeat,
    #071015;
}

.storm-section::before {
  position: absolute;
  top: -5%;
  right: -7%;
  width: 40%;
  height: 75%;
  content: "";
  opacity: 0.3;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 900' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M270 0 220 185l70 25-70 176 75 28-115 236 47 40-75 210' fill='none' stroke='%237fc3d2' stroke-width='1.2'/%3E%3Cpath d='m246 221 82 29-30 82 85 35' fill='none' stroke='%237fc3d2' stroke-width='.7'/%3E%3C/svg%3E")
    center / contain no-repeat;
  filter: drop-shadow(0 0 10px rgba(127, 195, 210, 0.38));
}

.storm-heading {
  width: min(54rem, 100%);
}

.storm-layout {
  display: grid;
  grid-template-columns: minmax(18rem, 0.7fr) minmax(28rem, 1.15fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: stretch;
}

.storm-notes {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.protocol-list {
  border-top: 1px solid var(--steel-line);
}

.protocol-list article {
  display: grid;
  grid-template-columns: 2.4rem 1fr;
  gap: 1rem;
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--steel-line);
}

.protocol-list article > span {
  padding-top: 0.18rem;
  color: var(--brass);
  font-family: var(--mono);
  font-size: 0.61rem;
}

.protocol-list h3 {
  margin: 0 0 0.45rem;
  font-family: var(--display);
  font-size: 1.4rem;
  font-weight: 500;
}

.protocol-list p {
  margin: 0;
  color: #8ea6aa;
  font-size: 0.82rem;
  line-height: 1.75;
}

.field-warning {
  margin: 2.5rem 0 0;
  padding: 1.2rem 0 1.2rem 1.2rem;
  color: #91a8ac;
  border-left: 1px solid var(--danger);
  font-size: 0.72rem;
  line-height: 1.8;
}

.field-warning span {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--danger);
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.14em;
}

.heart-console {
  position: relative;
  display: grid;
  min-height: 39rem;
  padding: clamp(1.1rem, 2.4vw, 2rem);
  overflow: hidden;
  border: 1px solid rgba(171, 210, 218, 0.25);
  background:
    linear-gradient(rgba(143, 191, 199, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(143, 191, 199, 0.04) 1px, transparent 1px),
    rgba(4, 9, 12, 0.86);
  background-size: 2.5rem 2.5rem;
  box-shadow:
    0 2rem 8rem rgba(0, 0, 0, 0.35),
    inset 0 0 6rem rgba(41, 101, 112, 0.08);
  transition: border-color 220ms ease;
}

.heart-console::before,
.heart-console::after {
  position: absolute;
  width: 2.2rem;
  height: 2.2rem;
  content: "";
  border-color: var(--electric);
  opacity: 0.55;
}

.heart-console::before {
  top: -1px;
  left: -1px;
  border-top: 2px solid;
  border-left: 2px solid;
}

.heart-console::after {
  right: -1px;
  bottom: -1px;
  border-right: 2px solid;
  border-bottom: 2px solid;
}

.heart-console.is-warning {
  border-color: rgba(216, 164, 98, 0.55);
}

.heart-console.is-critical {
  border-color: rgba(214, 123, 100, 0.72);
  box-shadow:
    0 2rem 8rem rgba(0, 0, 0, 0.4),
    inset 0 0 7rem rgba(143, 53, 38, 0.12);
}

.console-topline {
  display: flex;
  justify-content: space-between;
  color: #81999e;
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.08em;
}

.system-state {
  color: var(--electric);
}

.is-warning .system-state {
  color: #d6a462;
}

.is-critical .system-state {
  color: var(--danger);
}

.radar-wrap {
  display: grid;
  grid-template-columns: minmax(14rem, 1fr) auto;
  gap: 1rem;
  align-items: center;
}

.radar {
  position: relative;
  width: min(25rem, 100%);
  aspect-ratio: 1;
  margin: 0 auto;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(112, 189, 204, 0.11),
    rgba(22, 58, 65, 0.04) 38%,
    transparent 67%
  );
}

.radar-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  border: 1px solid rgba(132, 190, 201, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(var(--radar-scale, 0.65));
  transition: transform 180ms ease;
}

.ring-one {
  width: 44%;
  height: 44%;
}

.ring-two {
  width: 69%;
  height: 69%;
}

.ring-three {
  width: 94%;
  height: 94%;
}

.radar-cross {
  position: absolute;
  top: 50%;
  left: 50%;
  background: rgba(127, 195, 210, 0.13);
  transform: translate(-50%, -50%);
}

.radar-cross.horizontal {
  width: 94%;
  height: 1px;
}

.radar-cross.vertical {
  width: 1px;
  height: 94%;
}

.radar-core {
  position: absolute;
  z-index: 3;
  top: 50%;
  left: 50%;
  width: 37%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  transform-origin: center;
}

.heart-image {
  position: relative;
  z-index: 3;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter:
    drop-shadow(0 0 0.5rem rgba(180, 46, 38, 0.42))
    drop-shadow(0 0 1.4rem rgba(127, 195, 210, 0.22));
  transform-origin: center;
  animation: heart-beat var(--beat-duration, 1.08s) cubic-bezier(0.2, 0, 0.35, 1)
    infinite;
}

.heart-shockwave {
  position: absolute;
  z-index: 1;
  inset: 2%;
  border: 1px solid rgba(205, 75, 55, 0.4);
  border-radius: 50%;
  opacity: var(--shock-opacity, 0.25);
  animation: heart-shockwave var(--beat-duration, 1.08s) ease-out infinite;
}

.heart-lightning {
  position: absolute;
  z-index: 4;
  top: 50%;
  left: 50%;
  width: 176%;
  height: 176%;
  overflow: visible;
  filter: drop-shadow(0 0 0.45rem rgba(127, 195, 210, 0.9));
  opacity: var(--bolt-opacity, 0.38);
  transform: translate(-50%, -50%);
  animation: heart-lightning-orbit var(--bolt-speed, 8s) linear infinite;
}

.heart-bolt {
  fill: none;
  stroke: var(--electric-bright);
  stroke-width: 1.15;
  stroke-linecap: square;
  stroke-linejoin: bevel;
  stroke-dasharray: 9 5 22 7;
  animation: heart-bolt-flicker 1.1s steps(2, end) infinite;
  vector-effect: non-scaling-stroke;
}

.bolt-orbit {
  stroke-width: 0.8;
  stroke-dasharray: 4 5 16 6;
  opacity: 0.58;
  animation-duration: 0.7s;
}

.bolt-two {
  stroke-dasharray: 16 5 5 4;
  animation-delay: -0.34s;
}

.bolt-three {
  stroke-dasharray: 5 6 19 8;
  animation-delay: -0.72s;
}

@keyframes heart-beat {
  0%,
  12%,
  100% {
    transform: scale(1);
  }

  17% {
    transform: scale(1.08);
  }

  24% {
    transform: scale(0.98);
  }

  34% {
    transform: scale(1.035);
  }

  46% {
    transform: scale(1);
  }
}

@keyframes heart-shockwave {
  0% {
    opacity: var(--shock-opacity, 0.25);
    transform: scale(0.72);
  }

  55% {
    opacity: 0;
    transform: scale(1.8);
  }

  100% {
    opacity: 0;
    transform: scale(1.8);
  }
}

@keyframes heart-lightning-orbit {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

@keyframes heart-bolt-flicker {
  0%,
  20%,
  49%,
  72%,
  100% {
    opacity: 0.86;
  }

  21%,
  50%,
  73% {
    opacity: 0.38;
  }
}

@keyframes core-jitter {
  0%,
  100% {
    transform: translate(-50%, -50%) translate(0, 0);
  }

  18% {
    transform: translate(-50%, -50%)
      translate(var(--shake-distance, 0.7px), -0.3px);
  }

  38% {
    transform: translate(-50%, -50%)
      translate(-0.45px, var(--shake-distance, 0.7px));
  }

  61% {
    transform: translate(-50%, -50%)
      translate(var(--shake-distance, 0.7px), 0.45px);
  }

  82% {
    transform: translate(-50%, -50%)
      translate(-0.35px, -0.35px);
  }
}

.is-warning .radar-core {
  animation: core-jitter 0.52s steps(3, end) infinite;
}

.is-critical .radar-core {
  animation-duration: 0.24s;
}

.is-warning .heart-image {
  filter:
    drop-shadow(0 0 0.7rem rgba(207, 124, 63, 0.48))
    drop-shadow(0 0 1.7rem rgba(127, 195, 210, 0.34));
}

.is-critical .heart-image {
  filter:
    drop-shadow(0 0 0.9rem rgba(214, 86, 62, 0.72))
    drop-shadow(0 0 2rem rgba(127, 195, 210, 0.46));
}

.is-critical .heart-bolt {
  stroke: #f0bbb0;
}

.radar-node {
  position: absolute;
  z-index: 4;
  width: 0.45rem;
  height: 0.45rem;
  border: 1px solid var(--electric-bright);
  border-radius: 50%;
  background: var(--electric);
  box-shadow: 0 0 0.8rem var(--electric);
  opacity: calc(0.2 + var(--load) / 100);
}

.node-one {
  top: 17%;
  left: 49%;
}

.node-two {
  top: 32%;
  left: 80%;
}

.node-three {
  top: 72%;
  left: 72%;
}

.node-four {
  top: 83%;
  left: 37%;
}

.node-five {
  top: 61%;
  left: 12%;
}

.node-six {
  top: 27%;
  left: 20%;
}

.radar-sweep {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  width: 47%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(163, 229, 241, 0.82));
  transform-origin: left center;
  animation: radar-turn 8s linear infinite;
}

@keyframes radar-turn {
  to {
    transform: rotate(360deg);
  }
}

.radar-caption {
  display: grid;
  gap: 0.35rem;
  text-align: right;
}

.radar-caption span {
  color: #758d92;
  font-size: 0.62rem;
  letter-spacing: 0.1em;
}

.radar-caption strong {
  font-family: var(--mono);
  font-size: 1rem;
  font-weight: 500;
}

.ecg-panel {
  display: grid;
  grid-template-columns: 6rem 1fr;
  gap: 1.3rem;
  align-items: center;
  margin: 0.5rem 0 1.4rem;
  padding: 1rem 0;
  border-top: 1px solid var(--steel-line);
  border-bottom: 1px solid var(--steel-line);
}

.ecg-copy {
  display: grid;
}

.ecg-copy span {
  color: #80979b;
  font-size: 0.61rem;
  letter-spacing: 0.08em;
}

.ecg-copy strong {
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 500;
}

.ecg-panel svg {
  width: 100%;
  height: 3.5rem;
  overflow: visible;
}

.ecg-panel path {
  fill: none;
  stroke: var(--electric);
  stroke-width: 1.4;
  stroke-dasharray: 18 6;
  vector-effect: non-scaling-stroke;
  animation: ecg-run 2.8s linear infinite;
}

.is-warning .ecg-panel path {
  stroke: #d6a462;
  animation-duration: 1.8s;
}

.is-critical .ecg-panel path {
  stroke: var(--danger);
  animation-duration: 0.8s;
}

@keyframes ecg-run {
  to {
    stroke-dashoffset: -100;
  }
}

.console-controls label {
  display: flex;
  justify-content: space-between;
  color: #8ca3a7;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
}

.console-controls output {
  color: var(--frost);
  font-family: var(--mono);
}

.console-controls input[type="range"] {
  width: 100%;
  height: 2.2rem;
  margin: 0.35rem 0 0;
  cursor: ew-resize;
  appearance: none;
  background: transparent;
}

.console-controls input[type="range"]::-webkit-slider-runnable-track {
  height: 2px;
  background: linear-gradient(
    90deg,
    var(--electric) 0 calc(var(--load) * 1%),
    rgba(173, 209, 214, 0.16) calc(var(--load) * 1%) 100%
  );
}

.console-controls input[type="range"]::-moz-range-track {
  height: 2px;
  background: rgba(173, 209, 214, 0.16);
}

.console-controls input[type="range"]::-moz-range-progress {
  height: 2px;
  background: var(--electric);
}

.console-controls input[type="range"]::-webkit-slider-thumb {
  width: 0.9rem;
  height: 1.65rem;
  margin-top: -0.75rem;
  border: 1px solid var(--electric-bright);
  border-radius: 0;
  background: #0b1519;
  box-shadow: 0 0 1rem rgba(127, 195, 210, 0.4);
  appearance: none;
}

.console-controls input[type="range"]::-moz-range-thumb {
  width: 0.9rem;
  height: 1.65rem;
  border: 1px solid var(--electric-bright);
  border-radius: 0;
  background: #0b1519;
}

.scale {
  display: flex;
  justify-content: space-between;
  color: #536a70;
  font-family: var(--mono);
  font-size: 0.52rem;
}

.console-readout {
  display: flex;
  gap: 1rem;
  align-items: end;
  justify-content: space-between;
  margin-top: 1.2rem;
}

.console-readout p {
  max-width: 30rem;
  min-height: 3.4em;
  margin: 0;
  color: #9bb0b3;
  font-size: 0.7rem;
  line-height: 1.7;
}

.is-warning .console-readout p {
  color: #cfab76;
}

.is-critical .console-readout p {
  color: #e09a88;
}

.shutdown-button {
  flex: 0 0 auto;
  min-height: 2.5rem;
  padding: 0.5rem 0.85rem;
  border: 1px solid rgba(198, 221, 225, 0.28);
  background: transparent;
  font-size: 0.64rem;
  letter-spacing: 0.08em;
  cursor: pointer;
}

.shutdown-button:hover,
.shutdown-button:focus-visible {
  border-color: var(--electric);
  background: rgba(127, 195, 210, 0.09);
}

.appearance-section {
  overflow: hidden;
  background:
    linear-gradient(rgba(149, 190, 198, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(149, 190, 198, 0.035) 1px, transparent 1px),
    radial-gradient(circle at 30% 48%, rgba(68, 111, 121, 0.13), transparent 28rem),
    #080d10;
  background-size:
    4.5rem 4.5rem,
    4.5rem 4.5rem,
    auto,
    auto;
}

.appearance-heading {
  width: min(55rem, 100%);
}

.appearance-layout {
  display: grid;
  grid-template-columns: minmax(26rem, 1.08fr) minmax(20rem, 0.75fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: stretch;
}

.appearance-stage {
  position: relative;
  margin: 0;
  min-height: 45rem;
  overflow: hidden;
  border-top: 1px solid rgba(185, 214, 219, 0.24);
  border-bottom: 1px solid rgba(185, 214, 219, 0.24);
  background:
    linear-gradient(180deg, rgba(5, 9, 12, 0.24), rgba(5, 9, 12, 0.82)),
    radial-gradient(circle at 50% 40%, rgba(117, 172, 181, 0.17), transparent 24rem);
}

.appearance-stage::before {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 70%;
  aspect-ratio: 1;
  content: "";
  border: 1px solid rgba(162, 207, 215, 0.12);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.appearance-stage img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 43rem;
  margin-top: 1rem;
  object-fit: contain;
  filter:
    saturate(0.78)
    contrast(1.04)
    drop-shadow(0 1.4rem 2.5rem rgba(0, 0, 0, 0.55));
  transition:
    opacity 180ms ease,
    transform 320ms cubic-bezier(0.2, 0.72, 0.2, 1);
}

.appearance-stage.is-changing img {
  opacity: 0;
  transform: translateX(0.5rem) scale(0.985);
}

.appearance-rule {
  position: absolute;
  z-index: 1;
  top: 5%;
  bottom: 5%;
  left: 7%;
  width: 1px;
  background: linear-gradient(transparent, rgba(127, 195, 210, 0.34), transparent);
}

.appearance-coordinate {
  position: absolute;
  z-index: 3;
  top: 1.2rem;
  right: 1.2rem;
  color: rgba(181, 207, 211, 0.53);
  font-family: var(--mono);
  font-size: 0.53rem;
  letter-spacing: 0.1em;
}

.appearance-stage figcaption {
  position: absolute;
  z-index: 4;
  right: 1.4rem;
  bottom: 1.2rem;
  left: 1.4rem;
  max-width: 28rem;
  color: #93a9ad;
  font-size: 0.72rem;
  line-height: 1.8;
}

.appearance-panel {
  display: grid;
  align-content: center;
}

.outfit-switch {
  display: grid;
  border-top: 1px solid var(--steel-line);
}

.outfit-switch button {
  display: grid;
  grid-template-columns: 2.3rem 1fr;
  gap: 0.5rem;
  min-height: 3.8rem;
  padding: 0.7rem 0;
  align-items: center;
  border: 0;
  border-bottom: 1px solid var(--steel-line);
  background: transparent;
  color: #758d92;
  font-family: var(--display);
  font-size: 1.1rem;
  text-align: left;
  cursor: pointer;
}

.outfit-switch button span {
  color: var(--brass);
  font-family: var(--mono);
  font-size: 0.56rem;
}

.outfit-switch button:hover,
.outfit-switch button:focus-visible,
.outfit-switch button.is-active {
  color: var(--frost);
}

.outfit-switch button.is-active {
  padding-left: 1rem;
  box-shadow: inset 2px 0 var(--electric);
}

.outfit-record {
  padding-top: 2rem;
}

.outfit-code {
  margin: 0 0 0.8rem;
  color: var(--electric);
  font-family: var(--mono);
  font-size: 0.57rem;
  letter-spacing: 0.1em;
}

.outfit-record h3 {
  margin: 0 0 1rem;
  font-family: var(--display);
  font-size: clamp(2rem, 3.5vw, 3.2rem);
  font-weight: 500;
  line-height: 1.2;
}

.outfit-record > p:not(.outfit-code) {
  margin: 0;
  color: #9db0b3;
  font-size: 0.82rem;
  line-height: 1.9;
}

.outfit-details {
  margin: 2rem 0 0;
  border-top: 1px solid var(--steel-line);
}

.outfit-details div {
  display: grid;
  grid-template-columns: 4rem 1fr;
  gap: 1rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--steel-line);
}

.outfit-details dt {
  color: #70878b;
  font-size: 0.62rem;
}

.outfit-details dd {
  margin: 0;
  font-size: 0.7rem;
}

.timeline-section {
  background:
    linear-gradient(rgba(4, 8, 10, 0.9), rgba(4, 8, 10, 0.9)),
    url("./assets/victor-storm-ship.jpg") center 48% / cover fixed;
}

.timeline-heading {
  display: flex;
  width: 100%;
  max-width: none;
  gap: 3rem;
  align-items: end;
  justify-content: space-between;
}

.timeline-heading > div:first-child {
  display: grid;
  gap: 1.2rem;
  max-width: 61rem;
}

.timeline-heading h2 {
  font-size: clamp(2.2rem, 4.3vw, 4.5rem);
}

.timeline-controls {
  display: flex;
  gap: 0.6rem;
  padding-bottom: 0.35rem;
}

.timeline-controls button {
  min-height: 2.6rem;
  padding: 0.5rem 0.8rem;
  border: 1px solid rgba(185, 214, 219, 0.27);
  background: rgba(7, 13, 16, 0.5);
  font-size: 0.63rem;
  letter-spacing: 0.07em;
  cursor: pointer;
}

.timeline-controls button:hover {
  border-color: var(--electric);
}

.timeline-viewport {
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-color: rgba(127, 195, 210, 0.55) rgba(255, 255, 255, 0.06);
  scrollbar-width: thin;
}

.timeline-track {
  display: flex;
  width: max-content;
  min-width: 100%;
  padding: 0 0 2rem;
}

.timeline-entry {
  display: grid;
  grid-template-rows: auto 3.2rem 1fr;
  width: clamp(18rem, 27vw, 25rem);
  margin: 0;
  border-left: 1px solid rgba(178, 209, 216, 0.18);
}

.timeline-entry:last-child {
  border-right: 1px solid rgba(178, 209, 216, 0.18);
}

.timeline-year {
  margin: 0;
  padding: 0 1.5rem 0.6rem;
  color: var(--frost-muted);
  font-family: var(--mono);
  font-size: 0.67rem;
  letter-spacing: 0.15em;
}

.timeline-axis {
  position: relative;
  margin: 0 1.5rem;
}

.timeline-axis::before {
  position: absolute;
  top: 50%;
  right: 0;
  left: 0;
  height: 1px;
  content: "";
  background: rgba(174, 211, 218, 0.25);
}

.timeline-axis span {
  position: absolute;
  top: calc(50% - 0.28rem);
  left: 0;
  width: 0.55rem;
  height: 0.55rem;
  border: 1px solid var(--electric);
  background: #071014;
  transform: rotate(45deg);
}

.timeline-card {
  min-height: 20rem;
  margin: 0 1.5rem;
  padding: 2rem 1.5rem;
  border: 1px solid rgba(179, 210, 216, 0.19);
  background:
    linear-gradient(145deg, rgba(18, 31, 37, 0.94), rgba(5, 10, 13, 0.96));
}

.timeline-tag {
  margin: 0 0 1.4rem;
  color: var(--brass);
  font-family: var(--mono);
  font-size: 0.57rem;
  letter-spacing: 0.11em;
}

.timeline-card h3 {
  margin: 0 0 1rem;
  font-family: var(--display);
  font-size: clamp(1.45rem, 2.2vw, 1.9rem);
  font-weight: 500;
  line-height: 1.35;
}

.timeline-card > p:last-child {
  margin: 0;
  color: #93a9ad;
  font-size: 0.78rem;
  line-height: 1.8;
}

.timeline-progress {
  width: 100%;
  height: 1px;
  margin: 1.4rem 0 0;
  background: rgba(174, 211, 218, 0.13);
}

.timeline-progress span {
  display: block;
  width: 15%;
  height: 100%;
  background: var(--electric);
  transition: width 160ms linear;
}

.evidence-section {
  background:
    radial-gradient(circle at 30% 32%, rgba(56, 98, 108, 0.11), transparent 25rem),
    #080d10;
}

.evidence-layout {
  display: grid;
  grid-template-columns: minmax(25rem, 1fr) minmax(15rem, 0.34fr);
  gap: clamp(2rem, 5vw, 5rem);
}

.artifact-stage {
  position: relative;
  display: grid;
  grid-template-columns: minmax(17rem, 0.9fr) minmax(17rem, 1fr);
  min-height: 36rem;
  margin: 0;
  overflow: hidden;
  border-top: 1px solid rgba(183, 211, 216, 0.27);
  border-bottom: 1px solid rgba(183, 211, 216, 0.27);
  background:
    linear-gradient(rgba(139, 186, 194, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139, 186, 194, 0.035) 1px, transparent 1px);
  background-size: 4rem 4rem;
}

.artifact-stage::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 48%;
  width: 1px;
  content: "";
  background: rgba(183, 211, 216, 0.13);
}

.artifact-stage > img {
  z-index: 2;
  width: min(32rem, 90%);
  height: 32rem;
  margin: 2rem auto;
  object-fit: contain;
  filter: drop-shadow(0 1.5rem 2rem rgba(0, 0, 0, 0.48));
  transition:
    opacity 160ms ease,
    transform 300ms ease;
}

.artifact-stage.is-changing > img {
  opacity: 0;
  transform: scale(0.96);
}

.artifact-scanline {
  position: absolute;
  z-index: 1;
  top: -10%;
  left: 5%;
  width: 43%;
  height: 22%;
  background: linear-gradient(180deg, transparent, rgba(127, 195, 210, 0.12), transparent);
  animation: scanline 7s ease-in-out infinite;
}

@keyframes scanline {
  0%,
  20% {
    transform: translateY(-30%);
  }

  70%,
  100% {
    transform: translateY(430%);
  }
}

.artifact-stage figcaption {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3rem clamp(1.5rem, 3vw, 3rem);
}

.artifact-stage figcaption > p:first-child {
  margin: 0 0 0.9rem;
  color: var(--electric);
  font-family: var(--mono);
  font-size: 0.57rem;
  letter-spacing: 0.1em;
}

.artifact-stage figcaption h3 {
  margin: 0 0 1.4rem;
  font-family: var(--display);
  font-size: clamp(1.8rem, 3vw, 2.9rem);
  font-weight: 500;
}

.artifact-stage figcaption > p:last-child {
  margin: 0;
  color: #98adb0;
  font-size: 0.82rem;
  line-height: 1.9;
}

.artifact-index {
  display: grid;
  grid-template-rows: repeat(5, 1fr);
  border-top: 1px solid var(--steel-line);
}

.artifact-button {
  display: grid;
  grid-template-columns: 2rem 5rem 1fr;
  gap: 0.8rem;
  align-items: center;
  padding: 0.5rem 0.65rem;
  border: 0;
  border-bottom: 1px solid var(--steel-line);
  background: transparent;
  text-align: left;
  cursor: pointer;
  opacity: 0.56;
  transition:
    opacity 180ms ease,
    background-color 180ms ease;
}

.artifact-button:hover,
.artifact-button:focus-visible,
.artifact-button.is-active {
  background: rgba(127, 195, 210, 0.06);
  opacity: 1;
}

.artifact-button.is-active {
  box-shadow: inset 2px 0 var(--electric);
}

.artifact-no {
  color: var(--brass);
  font-family: var(--mono);
  font-size: 0.59rem;
}

.artifact-button img {
  width: 4.8rem;
  height: 4.8rem;
  object-fit: contain;
  filter: saturate(0.7);
}

.artifact-button > span:last-child {
  font-family: var(--display);
  font-size: 1rem;
}

.tactics-section {
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 50%, rgba(85, 131, 139, 0.11), transparent 26rem),
    linear-gradient(145deg, #0a1115, #05090c);
}

.tactics-heading {
  width: min(65rem, 100%);
}

.tactics-layout {
  display: grid;
  grid-template-columns: minmax(20rem, 0.78fr) minmax(25rem, 1fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: stretch;
}

.tactical-board {
  position: relative;
  min-height: 35rem;
  overflow: hidden;
  border: 1px solid rgba(174, 208, 214, 0.22);
  background:
    linear-gradient(rgba(149, 192, 200, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(149, 192, 200, 0.07) 1px, transparent 1px),
    radial-gradient(circle at 54% 46%, rgba(77, 137, 148, 0.14), transparent 18rem),
    #071014;
  background-size:
    4rem 4rem,
    4rem 4rem,
    auto,
    auto;
}

.tactical-board::after {
  position: absolute;
  right: -15%;
  bottom: -22%;
  width: 70%;
  aspect-ratio: 1;
  content: "";
  border: 1px solid rgba(127, 195, 210, 0.12);
  border-radius: 50%;
}

.board-line {
  position: absolute;
  background: rgba(163, 210, 218, 0.22);
}

.line-a,
.line-b,
.line-c {
  top: 13%;
  bottom: 20%;
  width: 1px;
  transform-origin: center;
}

.line-a {
  left: 31%;
  transform: rotate(16deg);
}

.line-b {
  left: 54%;
  transform: rotate(-24deg);
}

.line-c {
  left: 76%;
  transform: rotate(11deg);
}

.line-d,
.line-e,
.line-f {
  right: 12%;
  left: 10%;
  height: 1px;
  transform-origin: left;
}

.line-d {
  top: 34%;
  transform: rotate(-8deg);
}

.line-e {
  top: 57%;
  transform: rotate(5deg);
}

.line-f {
  top: 76%;
  transform: rotate(-3deg);
}

.board-piece {
  position: absolute;
  z-index: 2;
  display: grid;
  width: 3.4rem;
  height: 3.4rem;
  place-items: center;
  border: 1px solid rgba(218, 234, 235, 0.36);
  font-family: var(--display);
  font-size: 1.4rem;
}

.white-piece {
  top: 23%;
  left: 48%;
  color: #e8eff0;
  background: rgba(210, 228, 231, 0.08);
}

.dark-piece {
  right: 19%;
  bottom: 23%;
  color: var(--brass);
  background: rgba(177, 138, 81, 0.08);
}

.board-marker {
  position: absolute;
  z-index: 1;
  width: 1rem;
  height: 1rem;
  border: 1px solid var(--electric);
  border-radius: 50%;
  box-shadow: 0 0 1.2rem rgba(127, 195, 210, 0.4);
}

.marker-a {
  top: 14%;
  left: 19%;
}

.marker-b {
  right: 12%;
  bottom: 44%;
}

.marker-c {
  bottom: 15%;
  left: 28%;
}

.tactical-board > p {
  position: absolute;
  right: 1.2rem;
  bottom: 1rem;
  margin: 0;
  color: #60777c;
  font-family: var(--mono);
  font-size: 0.52rem;
  letter-spacing: 0.1em;
}

.tactics-panel {
  display: grid;
  align-content: center;
}

.tactic-prompt {
  padding: 1rem 0 1.3rem;
  border-top: 1px solid var(--steel-line);
  border-bottom: 1px solid var(--steel-line);
}

.tactic-prompt span {
  color: var(--brass);
  font-family: var(--mono);
  font-size: 0.55rem;
  letter-spacing: 0.1em;
}

.tactic-prompt p {
  margin: 0.5rem 0 0;
  color: #9fb2b5;
  font-family: var(--display);
  font-size: 1.05rem;
}

.tactic-options {
  display: grid;
  margin-top: 1rem;
  border-top: 1px solid var(--steel-line);
}

.tactic-options button {
  display: grid;
  gap: 0.22rem;
  min-height: 4.1rem;
  padding: 0.8rem 0.9rem;
  border: 0;
  border-bottom: 1px solid var(--steel-line);
  background: transparent;
  color: #849b9f;
  text-align: left;
  cursor: pointer;
}

.tactic-options button span {
  color: var(--frost);
  font-family: var(--display);
  font-size: 1.05rem;
}

.tactic-options button small {
  color: #758c91;
  font-size: 0.64rem;
}

.tactic-options button:hover,
.tactic-options button:focus-visible,
.tactic-options button.is-selected {
  background: rgba(127, 195, 210, 0.055);
}

.tactic-options button.is-selected {
  box-shadow: inset 2px 0 var(--electric);
}

.tactic-run {
  min-height: 3.2rem;
  margin-top: 1rem;
  border: 1px solid rgba(171, 210, 217, 0.32);
  background: rgba(127, 195, 210, 0.07);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  cursor: pointer;
}

.tactic-run:disabled {
  color: #4e6468;
  cursor: not-allowed;
  background: transparent;
}

.tactic-voice {
  justify-self: start;
  margin-top: 0.8rem;
}

.tactic-result {
  margin-top: 1.5rem;
  padding: 1.2rem;
  border: 1px solid var(--steel-line);
  background: rgba(4, 9, 12, 0.55);
}

.tactic-result .result-status {
  margin: 0 0 0.6rem;
  color: var(--brass);
  font-family: var(--mono);
  font-size: 0.54rem;
  letter-spacing: 0.1em;
}

.tactic-result .result-quote {
  margin: 0;
  color: var(--frost);
  font-family: var(--display);
  font-size: clamp(1.3rem, 2vw, 1.7rem);
  line-height: 1.55;
}

.tactic-result dl {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 1.2rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid var(--steel-line);
}

.tactic-result dl div {
  display: grid;
  gap: 0.25rem;
}

.tactic-result dt {
  color: #71878b;
  font-size: 0.55rem;
}

.tactic-result dd {
  margin: 0;
  font-size: 0.66rem;
}

.signal-section {
  background:
    linear-gradient(115deg, rgba(10, 19, 23, 0.9), rgba(5, 8, 11, 0.98)),
    #0b1216;
}

.terminal {
  position: relative;
  width: min(64rem, 100%);
  margin-left: auto;
  border: 1px solid rgba(171, 209, 215, 0.23);
  background: rgba(4, 9, 12, 0.78);
  box-shadow: 0 2rem 8rem rgba(0, 0, 0, 0.38);
}

.terminal::after {
  position: absolute;
  right: 1.1rem;
  bottom: -0.4rem;
  width: 5rem;
  height: 0.4rem;
  content: "";
  background: var(--brass);
  opacity: 0.6;
}

.terminal-header,
.terminal-footer {
  display: flex;
  gap: 1rem;
  align-items: center;
  padding: 0.85rem 1.2rem;
  color: #778e93;
  font-family: var(--mono);
  font-size: 0.55rem;
  letter-spacing: 0.06em;
}

.terminal-header {
  border-bottom: 1px solid var(--steel-line);
}

.terminal-header p {
  margin: 0 auto 0 0;
}

.terminal-header > span:last-child {
  margin-left: auto;
}

.terminal-light {
  width: 0.38rem;
  height: 0.38rem;
  border-radius: 50%;
  background: var(--electric);
  box-shadow: 0 0 0.7rem var(--electric);
}

.voice-button {
  display: inline-flex;
  gap: 0.45rem;
  align-items: center;
  padding: 0.3rem 0;
  color: var(--electric);
  border: 0;
  border-bottom: 1px solid transparent;
  background: transparent;
  font-family: var(--mono);
  font-size: 0.52rem;
  letter-spacing: 0.05em;
  white-space: nowrap;
  cursor: pointer;
}

.voice-button:hover,
.voice-button:focus-visible,
.voice-button.is-playing {
  border-bottom-color: var(--electric);
}

.voice-bars,
.audio-wave {
  display: inline-flex;
  gap: 2px;
  align-items: center;
}

.voice-bars span {
  width: 1px;
  height: 0.3rem;
  background: currentColor;
}

.voice-bars span:nth-child(2) {
  height: 0.62rem;
}

.voice-bars span:nth-child(3) {
  height: 0.43rem;
}

.voice-button.is-playing .voice-bars span {
  animation: voice-meter 0.72s ease-in-out infinite alternate;
}

.voice-button.is-playing .voice-bars span:nth-child(2) {
  animation-delay: -0.24s;
}

.voice-button.is-playing .voice-bars span:nth-child(3) {
  animation-delay: -0.48s;
}

@keyframes voice-meter {
  from {
    transform: scaleY(0.4);
  }

  to {
    transform: scaleY(1);
  }
}

.transmission-log {
  display: grid;
  gap: 1.3rem;
  min-height: 18rem;
  padding: clamp(1.4rem, 4vw, 3.5rem);
  align-content: start;
}

.transmission {
  max-width: 41rem;
}

.transmission p {
  margin: 0;
}

.transmission.incoming {
  justify-self: start;
}

.transmission.outgoing {
  justify-self: end;
  text-align: right;
}

.transmission-meta {
  margin-bottom: 0.55rem !important;
  color: var(--electric);
  font-family: var(--mono);
  font-size: 0.57rem;
  letter-spacing: 0.08em;
}

.transmission.outgoing .transmission-meta {
  color: var(--brass);
}

.transmission > p:last-child {
  padding: 1rem 1.15rem;
  border-left: 1px solid rgba(127, 195, 210, 0.5);
  color: #c1d0d2;
  background: rgba(128, 187, 197, 0.06);
  font-family: var(--display);
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  line-height: 1.6;
}

.transmission.outgoing > p:last-child {
  border-right: 1px solid rgba(177, 138, 81, 0.5);
  border-left: 0;
  background: rgba(177, 138, 81, 0.05);
}

.transmission.system > p {
  color: #647d82;
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.05em;
}

.reply-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--steel-line);
}

.reply-options button {
  display: flex;
  min-height: 6.2rem;
  gap: 0.8rem;
  padding: 1rem;
  align-items: flex-start;
  border: 0;
  border-right: 1px solid var(--steel-line);
  background: transparent;
  color: #9eb2b5;
  font-size: 0.72rem;
  line-height: 1.7;
  text-align: left;
  cursor: pointer;
  transition:
    color 180ms ease,
    background-color 180ms ease;
}

.reply-options button:last-child {
  border-right: 0;
}

.reply-options button:hover,
.reply-options button:focus-visible {
  color: var(--frost);
  background: rgba(127, 195, 210, 0.06);
}

.reply-options button span {
  color: var(--brass);
  font-family: var(--mono);
  font-size: 0.55rem;
}

.reply-options .restart-button {
  grid-column: 1 / -1;
  justify-content: center;
  min-height: 3.4rem;
  color: var(--electric);
  border-top: 1px solid var(--steel-line);
  border-right: 0;
}

.terminal-footer {
  justify-content: space-between;
  border-top: 1px solid var(--steel-line);
}

.unsaid-panel {
  margin: 0 clamp(1.2rem, 3vw, 2rem) clamp(1.2rem, 3vw, 2rem);
  padding: 1.2rem 1.3rem;
  border-left: 1px solid var(--brass);
  background: rgba(177, 138, 81, 0.045);
}

.unsaid-panel[hidden],
.channel-after[hidden] {
  display: none;
}

.unsaid-label {
  margin: 0 0 0.55rem;
  color: var(--brass);
  font-family: var(--mono);
  font-size: 0.54rem;
  letter-spacing: 0.12em;
}

.unsaid-panel > p:not(.unsaid-label) {
  margin: 0;
  color: #aab9bb;
  font-family: var(--display);
  font-size: 1rem;
  line-height: 1.8;
}

.unsaid-panel .text-button {
  margin-top: 0.9rem;
}

.channel-after {
  margin-top: 1rem !important;
  padding-top: 1rem;
  border-top: 1px solid rgba(177, 138, 81, 0.2);
  color: #c5b394 !important;
  font-family: var(--mono) !important;
  font-size: 0.62rem !important;
  letter-spacing: 0.04em;
}

.distance-scene {
  display: grid;
  grid-template-columns: minmax(20rem, 0.8fr) minmax(18rem, 0.65fr) minmax(20rem, 0.8fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  margin-top: clamp(3rem, 7vw, 7rem);
  padding-top: clamp(2rem, 4vw, 4rem);
  border-top: 1px solid var(--steel-line);
  align-items: stretch;
}

.distance-copy h3 {
  margin: 1rem 0 1.1rem;
  font-family: var(--display);
  font-size: clamp(1.9rem, 3.2vw, 3rem);
  font-weight: 500;
  line-height: 1.25;
}

.distance-copy > p:last-child {
  margin: 0;
  color: #93a8ac;
  font-size: 0.78rem;
  line-height: 1.9;
}

.distance-actions {
  display: grid;
  border-top: 1px solid var(--steel-line);
}

.distance-actions button {
  display: grid;
  grid-template-columns: 2rem 1fr;
  gap: 0.5rem;
  padding: 0.8rem 0.9rem;
  align-items: center;
  border: 0;
  border-bottom: 1px solid var(--steel-line);
  background: transparent;
  color: #9cb0b3;
  font-family: var(--display);
  font-size: 1rem;
  text-align: left;
  cursor: pointer;
}

.distance-actions button span {
  color: var(--brass);
  font-family: var(--mono);
  font-size: 0.54rem;
}

.distance-actions button:hover,
.distance-actions button:focus-visible,
.distance-actions button.is-selected {
  color: var(--frost);
  background: rgba(177, 138, 81, 0.05);
}

.distance-actions button.is-selected {
  box-shadow: inset 2px 0 var(--brass);
}

.distance-result {
  min-height: 15rem;
  padding: 1.3rem;
  border: 1px solid var(--steel-line);
  background: rgba(4, 9, 12, 0.55);
}

.distance-state {
  margin: 0 0 1rem;
  color: var(--electric);
  font-family: var(--mono);
  font-size: 0.54rem;
  letter-spacing: 0.1em;
}

.distance-line {
  margin: 0;
  color: var(--lily);
  font-family: var(--display);
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  line-height: 1.6;
}

.distance-action-record {
  margin: 1.2rem 0 0;
  padding-top: 1rem;
  color: #82989c;
  border-top: 1px solid var(--steel-line);
  font-size: 0.69rem;
  line-height: 1.75;
}

.distance-result .voice-button {
  margin-top: 1rem;
}

.off-duty {
  position: relative;
  display: grid;
  grid-template-columns: minmax(18rem, 0.75fr) minmax(22rem, 1fr);
  gap: clamp(2rem, 8vw, 8rem);
  padding: clamp(5rem, 9vw, 9rem) var(--page-pad);
  overflow: hidden;
  align-items: center;
  background:
    radial-gradient(circle at 78% 50%, rgba(173, 145, 104, 0.12), transparent 24rem),
    #0b1114;
}

.off-duty::before {
  position: absolute;
  inset: 0;
  content: "";
  opacity: 0.32;
  background: linear-gradient(110deg, transparent 0 54%, rgba(185, 219, 225, 0.04) 54% 54.1%, transparent 54.1%);
}

.off-duty-copy {
  position: relative;
  z-index: 2;
  max-width: 35rem;
}

.off-duty-copy h2 {
  margin: 1.1rem 0 1.4rem;
  font-family: var(--display);
  font-size: clamp(2.1rem, 4vw, 3.8rem);
  font-weight: 500;
  line-height: 1.18;
}

.off-duty-copy > p:not(.file-code) {
  color: #96aaad;
  font-size: 0.9rem;
  line-height: 1.9;
}

.text-button {
  margin-top: 1.4rem;
  padding: 0 0 0.3rem;
  border: 0;
  border-bottom: 1px solid var(--electric);
  background: transparent;
  color: var(--electric);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  cursor: pointer;
}

.off-duty-actions {
  display: flex;
  gap: 1.2rem;
  align-items: baseline;
}

.off-duty-actions .voice-button {
  margin-top: 1.4rem;
}

.off-duty-image {
  position: relative;
  z-index: 2;
  margin: 0;
}

.off-duty-image::before {
  position: absolute;
  top: 8%;
  right: 8%;
  bottom: 8%;
  left: 8%;
  content: "";
  border: 1px solid rgba(190, 216, 220, 0.16);
  transform: rotate(-2deg);
}

.off-duty-image img {
  position: relative;
  z-index: 1;
  width: 100%;
  max-height: 32rem;
  object-fit: contain;
  filter: drop-shadow(0 2rem 3rem rgba(0, 0, 0, 0.4));
}

.closing {
  position: relative;
  display: flex;
  min-height: 80svh;
  padding: clamp(6rem, 12vw, 12rem) var(--page-pad);
  overflow: hidden;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: #05080a;
  isolation: isolate;
}

.closing-glow {
  position: absolute;
  z-index: -2;
  top: 50%;
  left: 50%;
  width: min(58rem, 90vw);
  aspect-ratio: 1;
  border: 1px solid rgba(143, 194, 203, 0.08);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(65, 118, 129, 0.16), transparent 63%);
  transform: translate(-50%, -50%);
}

.closing-lily {
  position: absolute;
  z-index: -1;
  right: 5%;
  bottom: -9%;
  width: min(28rem, 37vw);
  opacity: 0.18;
  filter: grayscale(1) contrast(1.1);
  transform: rotate(-10deg);
}

.closing .file-code {
  margin-bottom: 1.4rem;
}

.closing h2 {
  max-width: 72rem;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2.4rem, 5.5vw, 5.8rem);
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: -0.035em;
}

.closing > p:not(.file-code) {
  max-width: 41rem;
  margin: 2rem auto 0;
  color: #91a5a8;
  font-size: 0.92rem;
  line-height: 1.9;
}

.closing .button {
  margin-top: 2.3rem;
}

.guestbook-section {
  position: relative;
  padding: clamp(5rem, 9vw, 9rem) var(--page-pad);
  border-top: 1px solid rgba(181, 210, 216, 0.18);
  background:
    linear-gradient(rgba(139, 186, 194, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139, 186, 194, 0.035) 1px, transparent 1px),
    #080d10;
  background-size: 4.5rem 4.5rem;
}

.guestbook-heading {
  display: grid;
  gap: 1.1rem;
  width: min(52rem, 100%);
}

.guestbook-heading h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2.4rem, 5vw, 5rem);
  font-weight: 500;
  line-height: 1.1;
}

.guestbook-heading > p:last-child {
  max-width: 37rem;
  margin: 0;
  color: #9aadaf;
  line-height: 1.9;
}

.guestbook-layout {
  display: grid;
  grid-template-columns: minmax(15rem, 0.58fr) minmax(24rem, 1fr);
  gap: clamp(2rem, 7vw, 7rem);
  margin-top: clamp(3rem, 6vw, 5.5rem);
}

.guestbook-note {
  align-self: start;
  padding: 1.3rem 0 1.3rem 1.2rem;
  border-left: 1px solid var(--brass);
}

.guestbook-note p {
  margin: 0;
  color: #889da0;
  font-size: 0.76rem;
  line-height: 1.85;
}

.guestbook-note p + p {
  margin-top: 1rem;
}

.guestbook-note .note-label {
  margin-bottom: 0.8rem;
  color: var(--brass);
  font-family: var(--mono);
  font-size: 0.56rem;
  letter-spacing: 0.1em;
}

.guestbook-form {
  display: grid;
  padding: 0 0 1.2rem;
  border-top: 1px solid var(--steel-line);
  border-bottom: 1px solid var(--steel-line);
}

.guestbook-form label {
  display: flex;
  gap: 1rem;
  padding: 1rem 0 0.55rem;
  align-items: baseline;
  justify-content: space-between;
  color: var(--frost);
  font-family: var(--display);
  font-size: 1rem;
}

.guestbook-form label small {
  color: #6d8387;
  font-family: var(--body);
  font-size: 0.58rem;
}

.guestbook-form input,
.guestbook-form textarea {
  width: 100%;
  padding: 0.9rem 1rem;
  color: var(--frost);
  border: 1px solid rgba(177, 209, 215, 0.22);
  border-radius: 0;
  background: rgba(2, 6, 8, 0.55);
  outline: none;
  transition:
    border-color 180ms ease,
    background-color 180ms ease;
}

.guestbook-form textarea {
  min-height: 9rem;
  line-height: 1.75;
  resize: vertical;
}

.guestbook-honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.guestbook-form input::placeholder,
.guestbook-form textarea::placeholder {
  color: #50666b;
}

.guestbook-form input:focus,
.guestbook-form textarea:focus {
  border-color: var(--electric);
  background: rgba(11, 24, 29, 0.72);
}

.guestbook-image-field {
  display: grid;
  gap: 0.7rem;
  margin-top: 1rem;
}

.guestbook-image-field > div:first-child {
  display: flex;
  gap: 1rem;
  align-items: baseline;
  justify-content: space-between;
  color: var(--frost);
  font-family: var(--display);
  font-size: 1rem;
}

.guestbook-image-field > div:first-child small {
  color: #6d8387;
  font-family: var(--body);
  font-size: 0.58rem;
}

.guest-image-input {
  width: 100%;
  padding: 0.55rem;
  color: #6f8589;
  font-size: 0.63rem;
}

.guest-image-input::file-selector-button {
  min-height: 2.3rem;
  margin-right: 0.8rem;
  padding: 0.4rem 0.8rem;
  color: var(--frost);
  border: 1px solid rgba(183, 211, 216, 0.3);
  border-radius: 0;
  background: #0b1519;
  font-family: var(--body);
  font-size: 0.65rem;
  cursor: pointer;
}

.guest-image-input::file-selector-button:hover {
  border-color: var(--electric);
}

.guest-image-preview {
  position: relative;
  display: grid;
  gap: 0.7rem;
  width: min(25rem, 100%);
  padding: 0.7rem;
  border: 1px solid rgba(179, 210, 216, 0.22);
  background: rgba(3, 8, 10, 0.63);
}

.guest-image-preview[hidden] {
  display: none;
}

.guest-image-preview img {
  width: 100%;
  max-height: 17rem;
  object-fit: contain;
  object-position: center;
}

.guest-image-preview button {
  justify-self: start;
  padding: 0.2rem 0;
  color: #8da2a5;
  border: 0;
  border-bottom: 1px solid rgba(183, 211, 216, 0.35);
  background: transparent;
  font-size: 0.6rem;
  cursor: pointer;
}

.guest-image-preview button:hover,
.guest-image-preview button:focus-visible {
  color: var(--danger);
  border-bottom-color: var(--danger);
}

.guestbook-form-footer {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  margin-top: 1rem;
}

.guestbook-form-footer > span {
  color: #6b8185;
  font-family: var(--mono);
  font-size: 0.56rem;
  letter-spacing: 0.06em;
}

.guestbook-form-footer .button {
  min-width: 10rem;
}

.guestbook-status {
  min-height: 1.2rem;
  margin: 0.8rem 0 0;
  color: var(--electric);
  font-size: 0.65rem;
}

.guestbook-records {
  margin-top: clamp(3rem, 7vw, 6.5rem);
}

.guestbook-records-heading {
  display: flex;
  gap: 1rem;
  align-items: baseline;
  justify-content: space-between;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--steel-line);
}

.guestbook-records-heading h3 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.45rem, 2.5vw, 2.2rem);
  font-weight: 500;
}

.guestbook-records-heading span {
  color: #6c8387;
  font-family: var(--mono);
  font-size: 0.56rem;
}

.guestbook-record-meta {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.guestbook-refresh {
  padding: 0 0 0.2rem;
  color: #758b8f;
  border: 0;
  border-bottom: 1px solid transparent;
  background: transparent;
  font-size: 0.58rem;
  cursor: pointer;
}

.guestbook-refresh:hover,
.guestbook-refresh:focus-visible {
  color: var(--electric);
  border-bottom-color: var(--electric);
}

.guestbook-refresh:disabled {
  color: #405459;
  cursor: not-allowed;
}

.guestbook-list {
  display: grid;
}

.guestbook-entry {
  display: grid;
  grid-template-columns: 12rem minmax(0, 1fr);
  gap: clamp(1rem, 4vw, 4rem);
  padding: 1.3rem 0;
  border-bottom: 1px solid var(--steel-line);
}

.guestbook-entry header {
  display: grid;
  gap: 0.2rem;
  align-content: start;
}

.guestbook-entry-name {
  color: var(--frost);
  font-family: var(--display);
  font-size: 1.05rem;
}

.guestbook-entry time,
.guestbook-entry-index {
  color: #6d8388;
  font-family: var(--mono);
  font-size: 0.53rem;
  letter-spacing: 0.06em;
}

.guestbook-entry p {
  margin: 0;
  color: #a9bbbd;
  font-family: var(--display);
  font-size: 1rem;
  line-height: 1.8;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.guestbook-entry-content {
  display: grid;
  gap: 1rem;
  justify-items: start;
}

.guestbook-entry-image {
  width: min(32rem, 100%);
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(178, 209, 215, 0.22);
  background: #05090b;
  cursor: zoom-in;
}

.guestbook-entry-image img {
  width: 100%;
  max-height: 21rem;
  object-fit: cover;
  filter: saturate(0.86) contrast(1.03);
  transition: transform 260ms ease;
}

.guestbook-entry-image:hover img,
.guestbook-entry-image:focus-visible img {
  transform: scale(1.018);
}

.guestbook-empty {
  margin: 0;
  padding: 2rem 0;
  color: #657b7f;
  font-family: var(--mono);
  font-size: 0.61rem;
  letter-spacing: 0.05em;
}

.site-footer {
  display: flex;
  gap: 2rem;
  padding: 1.6rem var(--page-pad);
  border-top: 1px solid var(--steel-line);
  color: #61777c;
  background: #040709;
  font-family: var(--mono);
  font-size: 0.54rem;
  letter-spacing: 0.05em;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  margin-left: auto;
  color: #8fa8ac;
}

.audio-dock {
  position: fixed;
  z-index: 35;
  right: 1.15rem;
  bottom: 1.15rem;
  display: grid;
  gap: 0.5rem;
  justify-items: end;
}

.audio-toggle {
  display: inline-flex;
  gap: 0.7rem;
  min-height: 2.8rem;
  padding: 0.5rem 0.75rem;
  align-items: center;
  color: #869da1;
  border: 1px solid rgba(173, 209, 215, 0.25);
  background: rgba(4, 9, 12, 0.9);
  box-shadow: 0 0.8rem 2rem rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(10px);
  cursor: pointer;
}

.audio-toggle:hover,
.audio-toggle:focus-visible,
.audio-toggle[aria-pressed="true"] {
  color: var(--electric);
  border-color: rgba(127, 195, 210, 0.55);
}

.audio-wave {
  width: 1.55rem;
  height: 1.1rem;
  justify-content: center;
}

.audio-wave span {
  width: 2px;
  height: 0.24rem;
  background: currentColor;
}

.audio-wave span:nth-child(2) {
  height: 0.68rem;
}

.audio-wave span:nth-child(3) {
  height: 0.46rem;
}

.audio-wave span:nth-child(4) {
  height: 0.85rem;
}

.audio-toggle[aria-pressed="true"] .audio-wave span,
.audio-dock.is-playing .audio-wave span {
  animation: audio-wave 0.8s ease-in-out infinite alternate;
}

.audio-toggle[aria-pressed="true"] .audio-wave span:nth-child(2),
.audio-dock.is-playing .audio-wave span:nth-child(2) {
  animation-delay: -0.2s;
}

.audio-toggle[aria-pressed="true"] .audio-wave span:nth-child(3),
.audio-dock.is-playing .audio-wave span:nth-child(3) {
  animation-delay: -0.4s;
}

.audio-toggle[aria-pressed="true"] .audio-wave span:nth-child(4),
.audio-dock.is-playing .audio-wave span:nth-child(4) {
  animation-delay: -0.58s;
}

@keyframes audio-wave {
  from {
    transform: scaleY(0.42);
  }

  to {
    transform: scaleY(1);
  }
}

.audio-toggle-copy {
  display: grid;
  gap: 0.08rem;
  line-height: 1.1;
  text-align: left;
}

.audio-toggle-copy small {
  color: #637b80;
  font-family: var(--mono);
  font-size: 0.46rem;
  letter-spacing: 0.12em;
}

.audio-toggle-copy strong {
  font-size: 0.61rem;
  font-weight: 500;
  letter-spacing: 0.05em;
}

.audio-caption {
  max-width: 19rem;
  margin: 0;
  padding: 0.65rem 0.8rem;
  color: #a9bbbd;
  border-left: 1px solid var(--brass);
  background: rgba(4, 9, 12, 0.92);
  font-family: var(--display);
  font-size: 0.76rem;
  line-height: 1.5;
}

.audio-caption:empty {
  display: none;
}

.guestbook-voice-actions {
  display: flex;
  gap: 1.2rem;
  align-items: baseline;
  flex-wrap: wrap;
}

.off-duty-dialog {
  width: min(42rem, calc(100% - 2rem));
  max-height: calc(100svh - 2rem);
  padding: clamp(2rem, 6vw, 4rem);
  overflow: auto;
  color: var(--frost);
  border: 1px solid rgba(182, 213, 219, 0.33);
  background:
    linear-gradient(rgba(131, 182, 190, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(131, 182, 190, 0.04) 1px, transparent 1px),
    #091014;
  background-size: 2.5rem 2.5rem;
}

.off-duty-dialog::backdrop {
  background: rgba(1, 3, 4, 0.84);
  backdrop-filter: blur(8px);
}

.off-duty-dialog h2 {
  margin: 1rem 0 1.7rem;
  font-family: var(--display);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 500;
}

.dialog-copy p {
  color: #a5b7ba;
  font-size: 0.9rem;
  line-height: 1.95;
}

.dialog-signature {
  margin: 2rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid var(--steel-line);
  color: var(--brass);
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.07em;
}

.dialog-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 1px solid var(--steel-line);
  background: transparent;
  cursor: pointer;
}

.dialog-close span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1rem;
  height: 1px;
  background: var(--frost);
  transform: translate(-50%, -50%) rotate(45deg);
}

.dialog-close span:last-child {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.guestbook-image-dialog {
  width: min(66rem, calc(100% - 2rem));
}

.guestbook-image-dialog figure {
  display: grid;
  gap: 1rem;
  margin: 1.5rem 0 0;
}

.guestbook-image-dialog img {
  width: 100%;
  max-height: 72svh;
  object-fit: contain;
  background: #030608;
}

.guestbook-image-dialog figcaption {
  color: #7e9599;
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.05em;
}

@media (max-width: 1100px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .main-nav {
    position: fixed;
    z-index: 39;
    top: var(--header-h);
    right: 0;
    left: 0;
    display: grid;
    width: 100%;
    height: calc(100svh - var(--header-h));
    padding: 4rem var(--page-pad);
    overflow-y: auto;
    align-content: center;
    background: #04080a;
    transform: translateX(100%);
    transition: transform 240ms ease;
  }

  .menu-open .main-nav {
    transform: translateX(0);
  }

  .main-nav a {
    padding: 1.1rem 0;
    border-bottom: 1px solid var(--steel-line);
    font-family: var(--display);
    font-size: clamp(2rem, 7vw, 3.5rem);
    letter-spacing: 0;
  }

  .vitals {
    display: none;
  }

  .menu-toggle {
    display: block;
    justify-self: end;
  }

  .menu-open .menu-toggle span:nth-child(1) {
    transform: translateY(0.4rem) rotate(45deg);
  }

  .menu-open .menu-toggle span:nth-child(2) {
    transform: translateY(-0.25rem) rotate(-45deg);
  }

  .hero-content {
    width: min(54rem, 64vw);
  }

  .hero::before {
    background:
      linear-gradient(90deg, var(--ink) 0%, rgba(5, 8, 11, 0.95) 44%, transparent 88%),
      linear-gradient(0deg, var(--ink) 0%, transparent 40%);
  }

  .hero::after {
    right: 39%;
  }

  .hero-media {
    width: 67%;
  }

  .hero-stamp {
    display: none;
  }

  .storm-layout {
    grid-template-columns: 1fr;
  }

  .appearance-layout,
  .tactics-layout {
    grid-template-columns: 1fr;
  }

  .appearance-stage {
    min-height: 42rem;
  }

  .appearance-stage img {
    height: 40rem;
  }

  .appearance-panel {
    grid-template-columns: minmax(15rem, 0.55fr) minmax(20rem, 1fr);
    gap: 2.5rem;
  }

  .distance-scene {
    grid-template-columns: 1fr 1fr;
  }

  .distance-result {
    grid-column: 1 / -1;
  }

  .storm-notes {
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    gap: 2rem;
  }

  .field-warning {
    margin-top: 0;
  }

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

  .artifact-index {
    grid-template-rows: none;
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .artifact-button {
    grid-template-columns: 1fr;
    gap: 0.2rem;
    padding: 0.8rem 0.4rem;
    border-right: 1px solid var(--steel-line);
    border-bottom: 0;
    text-align: center;
  }

  .artifact-button:last-child {
    border-right: 0;
  }

  .artifact-no {
    justify-self: center;
  }

  .artifact-button img {
    width: 5rem;
    height: 5rem;
    margin: 0 auto;
  }

  .artifact-button > span:last-child {
    font-size: 0.9rem;
  }
}

@media (min-width: 761px) and (max-height: 850px) {
  .hero {
    padding-top: calc(var(--header-h) + 2rem);
  }

  .hero h1 {
    font-size: clamp(4.8rem, 9.6vw, 9.2rem);
  }

  .hero-en {
    margin-top: 0.9rem;
    margin-bottom: 1.1rem;
  }

  .hero-quote {
    margin-top: 1.8rem;
  }

  .hero-actions {
    margin-top: 1.25rem;
  }

  .hero-footer {
    bottom: 1.2rem;
  }
}

@media (max-width: 760px) {
  :root {
    --header-h: 4.7rem;
    --page-pad: 1.15rem;
  }

  .brand-mark {
    width: 1.7rem;
    height: 1.7rem;
  }

  .brand-copy small {
    display: none;
  }

  .hero {
    min-height: 100svh;
    padding: calc(var(--header-h) + 1.8rem) var(--page-pad) 1.4rem;
    align-items: flex-end;
  }

  .hero::before {
    background:
      linear-gradient(0deg, rgba(5, 8, 11, 0.99) 0%, rgba(5, 8, 11, 0.82) 48%, transparent 82%),
      linear-gradient(90deg, rgba(5, 8, 11, 0.52), transparent);
  }

  .hero::after,
  .hero-rail {
    display: none;
  }

  .hero-media {
    width: 100%;
    clip-path: none;
  }

  .hero-media > img {
    object-position: 52% 7%;
    filter: saturate(0.55) contrast(1.05) brightness(0.72);
  }

  .hero-image-wash {
    background:
      linear-gradient(0deg, rgba(5, 8, 11, 0.98) 0%, rgba(5, 8, 11, 0.34) 54%, transparent 72%),
      linear-gradient(90deg, rgba(5, 8, 11, 0.4), transparent);
  }

  .hero-lightning {
    left: 33%;
    width: 60%;
    opacity: 0.52;
  }

  .hero-content {
    width: 100%;
    padding-bottom: 7.8rem;
  }

  .world-mark {
    font-size: 0.6rem;
  }

  .hero h1 {
    font-size: clamp(4rem, 21vw, 7rem);
    line-height: 0.78;
  }

  .hero-en {
    margin: 0.8rem 0 1rem;
    letter-spacing: 0.28em;
  }

  .hero-identity {
    display: grid;
    gap: 0.25rem;
  }

  .hero-identity span {
    font-size: 0.64rem;
  }

  .hero-quote {
    margin-top: 1.4rem;
  }

  .hero-quote p {
    font-size: 1.35rem;
  }

  .hero-actions {
    margin-top: 1.35rem;
  }

  .button {
    min-width: 0;
    flex: 1;
  }

  .hero-footer {
    right: var(--page-pad);
    bottom: 1.3rem;
    left: var(--page-pad);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }

  .hero-footer p:nth-child(2) {
    display: none;
  }

  .scroll-link {
    justify-self: end;
  }

  .scroll-line {
    display: none;
  }

  .section {
    padding-top: 5.5rem;
    padding-bottom: 5.5rem;
  }

  .section-heading {
    margin-bottom: 2.7rem;
  }

  .section h2 {
    font-size: clamp(2.15rem, 10.5vw, 3.15rem);
  }

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

  .dossier-portrait {
    max-height: 32rem;
  }

  .record-grid {
    grid-template-columns: 1fr;
  }

  .record-grid div:nth-child(odd),
  .record-grid div:nth-child(even) {
    padding-right: 0;
    padding-left: 0;
    border-left: 0;
  }

  .record-note {
    grid-template-columns: 2rem 1fr;
    padding: 1.1rem;
  }

  .redacted-heading {
    display: grid;
    gap: 0.2rem;
  }

  .redaction-list button {
    grid-template-columns: 1fr;
    gap: 0.45rem;
    padding: 0.8rem 0;
  }

  .redaction-bars {
    width: 82%;
  }

  .storm-notes {
    display: block;
  }

  .field-warning {
    margin-top: 2rem;
  }

  .heart-console {
    min-height: 0;
    padding: 1rem;
  }

  .radar-wrap {
    grid-template-columns: 1fr;
  }

  .radar {
    width: min(20rem, 86vw);
  }

  .radar-caption {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
  }

  .ecg-panel {
    grid-template-columns: 1fr;
    gap: 0.45rem;
  }

  .ecg-copy {
    display: flex;
    justify-content: space-between;
  }

  .ecg-panel svg {
    height: 2.8rem;
  }

  .console-readout {
    display: grid;
  }

  .console-readout p {
    min-height: 0;
  }

  .shutdown-button {
    justify-self: start;
  }

  .timeline-heading {
    display: grid;
    gap: 1.6rem;
    align-items: start;
  }

  .timeline-controls {
    justify-self: start;
  }

  .timeline-entry {
    width: min(82vw, 21rem);
  }

  .timeline-card {
    min-height: 22rem;
  }

  .appearance-stage {
    min-height: 32rem;
  }

  .appearance-stage img {
    height: 31rem;
  }

  .appearance-panel {
    display: block;
  }

  .outfit-record {
    padding-top: 1.6rem;
  }

  .artifact-stage {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .artifact-stage::before {
    display: none;
  }

  .artifact-stage > img {
    width: 100%;
    height: min(22rem, 68vw);
    margin: 1rem auto 0;
  }

  .artifact-stage figcaption {
    padding: 1.6rem 1.2rem 2rem;
  }

  .artifact-index {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .artifact-button {
    grid-template-columns: 1fr;
    min-width: 0;
    padding: 0.55rem 0.1rem;
  }

  .artifact-button img {
    width: 3.2rem;
    height: 3.2rem;
  }

  .artifact-button > span:last-child {
    font-size: 0.72rem;
  }

  .artifact-no {
    display: none;
  }

  .reply-options {
    grid-template-columns: 1fr;
  }

  .reply-options button {
    min-height: 4rem;
    border-right: 0;
    border-bottom: 1px solid var(--steel-line);
  }

  .reply-options .restart-button {
    grid-column: auto;
  }

  .distance-scene {
    grid-template-columns: 1fr;
  }

  .distance-result {
    grid-column: auto;
  }

  .tactic-result dl {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }

  .transmission-log {
    min-height: 16rem;
  }

  .terminal-header > span:nth-of-type(2),
  .terminal-footer span:last-child {
    display: none;
  }

  .off-duty {
    grid-template-columns: 1fr;
  }

  .off-duty-image {
    max-width: 32rem;
    justify-self: center;
  }

  .closing {
    min-height: 70svh;
  }

  .closing-lily {
    right: -14%;
    bottom: -4%;
    width: 65vw;
  }

  .guestbook-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .guestbook-form-footer {
    display: grid;
  }

  .guestbook-form-footer .button {
    width: 100%;
  }

  .guestbook-image-field > div:first-child {
    display: grid;
    gap: 0.2rem;
  }

  .guest-image-input {
    font-size: 0.58rem;
  }

  .guest-image-input::file-selector-button {
    margin-right: 0.45rem;
    padding: 0.4rem 0.55rem;
  }

  .guestbook-entry {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }

  .guestbook-entry header {
    display: flex;
    gap: 0.8rem;
    align-items: baseline;
    flex-wrap: wrap;
  }

  .guestbook-records-heading {
    display: grid;
  }

  .guestbook-record-meta {
    justify-content: space-between;
  }

  .audio-dock {
    right: 0.8rem;
    bottom: 0.8rem;
  }

  .audio-toggle {
    min-height: 2.55rem;
    padding: 0.4rem 0.62rem;
  }

  .audio-caption {
    max-width: min(17rem, calc(100vw - 1.6rem));
  }

  .site-footer {
    display: grid;
    gap: 0.45rem;
  }

  .site-footer a {
    margin: 0.55rem 0 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .snow-field {
    display: none;
  }
}
