:root {
  --void: #030509;
  --stage: #07101c;
  --stage-deep: #02050a;
  --panel: rgba(8, 18, 32, 0.72);
  --panel-strong: rgba(9, 21, 38, 0.9);
  --ice: #e8f0f7;
  --ice-soft: #c7d5e1;
  --ice-dim: #8fa4b5;
  --crimson: #bd203d;
  --crimson-deep: #540b1a;
  --aqua: #8bd4e4;
  --amber: #efb56d;
  --line: rgba(224, 237, 247, 0.13);
  --line-strong: rgba(224, 237, 247, 0.26);
  --serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", serif;
  --sans: "Bahnschrift", "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --mono: "JetBrains Mono", "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
  --rail-height: 27px;
  --page-width: 1380px;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--void);
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ice);
  background: var(--void);
  font-family: var(--sans);
  line-height: 1.72;
  letter-spacing: 0;
  overflow-x: hidden;
}

::selection {
  color: #fff;
  background: rgba(189, 32, 61, 0.72);
}

button,
input {
  font: inherit;
}

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

img,
svg {
  display: block;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 2px solid var(--aqua);
  outline-offset: 5px;
}

.space-canvas {
  position: fixed;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.stage-atmosphere,
.stage-grain,
.stage-vignette {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.stage-atmosphere {
  z-index: 1;
  background:
    linear-gradient(
      102deg,
      transparent 23%,
      rgba(205, 227, 239, 0.026) 30%,
      transparent 37%
    ),
    linear-gradient(
      78deg,
      transparent 44%,
      rgba(205, 227, 239, 0.036) 50%,
      transparent 57%
    ),
    linear-gradient(
      105deg,
      transparent 68%,
      rgba(205, 227, 239, 0.026) 73%,
      transparent 79%
    ),
    radial-gradient(ellipse 74% 46% at 32% 4%, rgba(79, 143, 180, 0.13), transparent 67%),
    radial-gradient(ellipse 58% 42% at 84% 68%, rgba(155, 47, 76, 0.1), transparent 72%);
  mix-blend-mode: screen;
}

.stage-grain {
  z-index: 72;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.stage-vignette {
  z-index: 2;
  background: radial-gradient(
    ellipse 92% 84% at 50% 46%,
    transparent 60%,
    rgba(0, 0, 0, 0.25) 88%,
    rgba(0, 0, 0, 0.54) 100%
  );
}

.curtain-rail {
  position: fixed;
  z-index: 80;
  top: 0;
  right: 0;
  left: 0;
  height: var(--rail-height);
  border: 0;
  background: transparent;
  box-shadow: none;
}

.site-header {
  position: fixed;
  z-index: 60;
  top: var(--rail-height);
  right: 0;
  left: 0;
  border-bottom: 1px solid transparent;
  transition:
    background 220ms ease,
    border-color 220ms ease,
    backdrop-filter 220ms ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(3, 7, 14, 0.34);
  backdrop-filter: blur(12px);
}

.nav-shell,
.act-inner {
  width: min(var(--page-width), calc(100% - 64px));
  margin: 0 auto;
}

.nav-shell {
  position: relative;
  display: flex;
  min-height: 74px;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.brand {
  display: grid;
  min-width: 150px;
  line-height: 1;
}

.brand-name {
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.brand-sub {
  margin-top: 7px;
  color: var(--ice-dim);
  font-family: var(--mono);
  font-size: 0.55rem;
  letter-spacing: 0.32em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.7vw, 42px);
}

.site-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 0;
  color: var(--ice-dim);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  transition: color 180ms ease;
}

.site-nav a span {
  font-family: var(--mono);
  font-size: 0.62rem;
  opacity: 0.72;
}

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

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--ice);
}

.site-nav a:hover::after,
.site-nav a.is-active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--ice);
  background: rgba(5, 12, 22, 0.7);
}

.nav-toggle span {
  display: block;
  width: 17px;
  height: 1px;
  margin: 5px auto;
  background: currentColor;
  transition: transform 180ms ease;
}

.act {
  position: relative;
  z-index: 3;
  scroll-margin-top: 96px;
}

.act:not(.act-overture) {
  padding: clamp(112px, 13vw, 210px) 0;
  border-top: 0;
  background: transparent;
  backdrop-filter: none;
}

.act-overture {
  min-height: 100svh;
  display: grid;
  padding: calc(var(--rail-height) + 120px) 0 126px;
  overflow: hidden;
  background: transparent;
}

.overture-stage {
  width: min(1240px, calc(100% - 64px));
  margin: auto;
  text-align: center;
}

.scene-kicker {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  margin: 0;
  color: var(--ice-dim);
  font-family: var(--mono);
  font-size: 0.67rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}

.scene-kicker::before,
.scene-kicker::after {
  width: 28px;
  height: 1px;
  background: currentColor;
  content: "";
  opacity: 0.55;
}

.finale-title {
  margin: 32px 0 0;
  color: #f5f8fb;
  font-family: var(--serif);
  font-size: clamp(3.5rem, 7.35vw, 7.8rem);
  font-weight: 700;
  line-height: 1.13;
  text-shadow:
    0 0 26px rgba(222, 239, 248, 0.18),
    0 0 86px rgba(137, 191, 216, 0.1);
}

.finale-title span {
  display: block;
}

.overture-statement {
  margin: 38px 0 0;
  color: #e6eef4;
  font-family: var(--serif);
  font-size: 4.35rem;
  font-weight: 700;
  line-height: 1.33;
  text-shadow:
    0 0 28px rgba(222, 239, 248, 0.18),
    0 0 96px rgba(137, 191, 216, 0.11);
}

.overture-statement span {
  display: block;
}

.act-english {
  margin: 24px 0 0;
  color: var(--ice-soft);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.05rem, 1.6vw, 1.38rem);
  font-style: italic;
  letter-spacing: 0.02em;
  opacity: 0.82;
}

.overture-description {
  max-width: 770px;
  margin: 34px auto 0;
  color: var(--ice-dim);
  font-size: clamp(0.94rem, 1.4vw, 1.08rem);
}

.scroll-entry {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  margin-top: 48px;
  color: var(--ice-soft);
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.scroll-orbit {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(232, 240, 247, 0.28);
  border-radius: 50%;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    color 180ms ease;
}

.scroll-orbit svg {
  width: 16px;
  height: 16px;
}

.scroll-entry:hover .scroll-orbit {
  border-color: var(--aqua);
  color: var(--aqua);
  transform: translateY(4px);
}

.overture-identity {
  position: absolute;
  right: max(32px, calc((100% - var(--page-width)) / 2));
  bottom: 104px;
  left: max(32px, calc((100% - var(--page-width)) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: rgba(199, 213, 225, 0.62);
  font-family: var(--mono);
  font-size: 0.57rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.act-header {
  max-width: 1220px;
  margin: 0 auto 76px;
  text-align: center;
}

.act-title {
  margin: 30px 0 0;
  font-family: var(--serif);
  font-size: clamp(2.75rem, 5.8vw, 6.25rem);
  font-weight: 700;
  line-height: 1.16;
  text-shadow: 0 0 70px rgba(162, 205, 224, 0.1);
}

.keel-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(34px, 5vw, 74px) clamp(40px, 7vw, 110px);
  border: 0;
  background: transparent;
}

.keel-card {
  position: relative;
  min-height: 294px;
  padding: clamp(28px, 4vw, 46px) 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  transition: transform 220ms ease;
}

.keel-card::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--crimson), var(--aqua));
  content: "";
  opacity: 0;
  transition:
    opacity 180ms ease,
    width 280ms ease;
}

.keel-card:hover {
  background: transparent;
  box-shadow: none;
  transform: translateY(-4px);
}

.keel-card:hover::before {
  opacity: 1;
  width: 78px;
}

.keel-topline,
.signal-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--ice-dim);
  font-family: var(--mono);
  font-size: 0.59rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.keel-topline span:first-child,
.signal-card-top span:first-child {
  color: var(--crimson);
}

.keel-card h3,
.signal-card h3 {
  margin: 42px 0 14px;
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  line-height: 1.3;
}

.keel-card p,
.signal-card p {
  max-width: 590px;
  margin: 0;
  color: var(--ice-dim);
  font-size: 0.94rem;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}

.tag-list span {
  padding: 5px 10px;
  border: 1px solid rgba(139, 212, 228, 0.12);
  border-radius: 999px;
  color: #b9dce5;
  background: transparent;
  font-family: var(--mono);
  font-size: 0.62rem;
}

.voyage-feature {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(30px, 7vw, 120px);
  align-items: end;
  padding: clamp(32px, 5vw, 62px) 0;
  background: transparent;
}

.route-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
}

.voyage-feature .route-copy {
  max-width: 900px;
}

.route-code {
  margin: 0;
  color: var(--crimson);
  font-family: var(--mono);
  font-size: 0.63rem;
  letter-spacing: 0.18em;
}

.route-copy h3 {
  margin: 18px 0 14px;
  font-family: var(--serif);
  font-size: clamp(1.75rem, 3.2vw, 3.2rem);
  font-weight: 700;
  line-height: 1.2;
}

.route-copy > p:not(.route-code) {
  margin: 0;
  color: var(--ice-dim);
}

.voyage-link {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 10px;
  color: var(--ice-soft);
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
}

.voyage-link svg {
  width: 16px;
  height: 16px;
  color: var(--aqua);
  transition: transform 180ms ease;
}

.voyage-link:hover svg {
  transform: translate(3px, -3px);
}

.sounding-log {
  position: relative;
  margin-top: clamp(78px, 11vw, 150px);
  background: transparent;
}

.sounding-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 40px;
  align-items: end;
  margin-bottom: 48px;
  padding: 0 0 28px;
}

.sounding-kicker {
  margin: 0;
  color: rgba(199, 220, 233, 0.5);
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.sounding-header h3 {
  max-width: 900px;
  margin: 17px 0 0;
  font-family: var(--serif);
  font-size: clamp(2rem, 4.6vw, 4.4rem);
  font-weight: 700;
  line-height: 1.18;
  text-shadow: 0 0 54px rgba(170, 213, 232, 0.13);
}

.sounding-english {
  margin: 0 0 7px;
  color: rgba(199, 213, 225, 0.62);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(0.82rem, 1.25vw, 1.04rem);
  font-style: italic;
  white-space: nowrap;
}

.sounding-rows {
  display: grid;
  gap: clamp(8px, 1.1vw, 14px);
  overflow: hidden;
  padding: clamp(10px, 1.4vw, 18px) 0;
  mask-image: linear-gradient(
    90deg,
    transparent 0,
    #000 5%,
    #000 95%,
    transparent 100%
  );
}

.sounding-row {
  display: flex;
  min-height: clamp(48px, 4.8vw, 66px);
  align-items: center;
  overflow: hidden;
}

.sounding-track {
  display: flex;
  width: max-content;
  animation: soundingMarquee var(--marquee-duration, 48s) linear infinite;
  will-change: transform;
}

.sounding-row.is-reverse .sounding-track {
  animation-direction: reverse;
}

.sounding-log:hover .sounding-track {
  animation-play-state: paused;
}

.sounding-sequence {
  display: flex;
  flex: none;
  align-items: center;
  gap: clamp(24px, 4vw, 66px);
  padding-right: clamp(24px, 4vw, 66px);
}

.sounding-item {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 13px;
  color: rgba(220, 232, 241, 0.74);
  font-family: var(--mono);
  font-size: clamp(0.68rem, 1.05vw, 0.84rem);
  line-height: 1.9;
  white-space: nowrap;
}

.sounding-item::after {
  width: 4px;
  height: 4px;
  margin-left: clamp(12px, 2vw, 30px);
  border-radius: 50%;
  background: rgba(148, 210, 228, 0.76);
  box-shadow: 0 0 14px rgba(139, 212, 228, 0.55);
  content: "";
}

.sounding-code {
  color: rgba(191, 203, 215, 0.4);
  font-size: 0.88em;
}

.sounding-row:nth-child(2) .sounding-item {
  color: rgba(202, 217, 228, 0.66);
}

.sounding-row:nth-child(3) .sounding-item {
  color: rgba(220, 232, 241, 0.78);
}

.sounding-row:nth-child(4) .sounding-item {
  color: rgba(197, 211, 222, 0.62);
}

@keyframes soundingMarquee {
  from {
    transform: translate3d(0, 0, 0);
  }

  to {
    transform: translate3d(-50%, 0, 0);
  }
}

.watch-layout {
  display: grid;
  grid-template-columns: minmax(360px, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(52px, 8vw, 120px);
  align-items: center;
}

.compass-visual {
  position: relative;
  width: min(100%, 520px);
  aspect-ratio: 1;
  justify-self: center;
  color: var(--ice-soft);
}

.compass-ring,
.compass-axis,
.compass-needle,
.compass-center {
  position: absolute;
  display: block;
}

.compass-ring {
  border-radius: 50%;
}

.compass-ring-outer {
  inset: 3%;
  border: 1px solid rgba(199, 220, 233, 0.28);
  box-shadow: 0 0 80px rgba(86, 146, 180, 0.08);
}

.compass-ring-inner {
  inset: 22%;
  border: 1px dashed rgba(139, 212, 228, 0.34);
}

.compass-axis {
  top: 50%;
  left: 50%;
  background: rgba(199, 220, 233, 0.2);
}

.compass-axis-v {
  width: 1px;
  height: 94%;
  transform: translate(-50%, -50%);
}

.compass-axis-h {
  width: 94%;
  height: 1px;
  transform: translate(-50%, -50%);
}

.compass-label,
.compass-degree {
  position: absolute;
  color: var(--ice-dim);
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.16em;
}

.label-n {
  top: 7%;
  left: 50%;
  transform: translateX(-50%);
}

.label-e {
  top: 50%;
  right: 7%;
  transform: translateY(-50%);
}

.label-s {
  bottom: 7%;
  left: 50%;
  transform: translateX(-50%);
}

.label-w {
  top: 50%;
  left: 7%;
  transform: translateY(-50%);
}

.degree-30 {
  top: 17%;
  right: 17%;
}

.degree-90 {
  right: 17%;
  bottom: 17%;
}

.degree-180 {
  bottom: 17%;
  left: 17%;
}

.degree-270 {
  top: 17%;
  left: 17%;
}

.compass-needle {
  top: 30%;
  left: calc(50% - 2px);
  width: 4px;
  height: 40%;
  border-radius: 999px;
  background: linear-gradient(
    to bottom,
    var(--crimson) 0%,
    var(--crimson) 48%,
    rgba(139, 212, 228, 0.65) 52%,
    rgba(139, 212, 228, 0.65) 100%
  );
  box-shadow: 0 0 22px rgba(189, 32, 61, 0.26);
  transform: rotate(24deg);
  transform-origin: center;
}

.compass-center {
  top: 50%;
  left: 50%;
  width: 14px;
  height: 14px;
  border: 3px solid #07101c;
  border-radius: 50%;
  background: var(--ice);
  box-shadow: 0 0 0 1px rgba(232, 240, 247, 0.38);
  transform: translate(-50%, -50%);
}

.signal-list {
  display: grid;
}

.signal-card {
  padding: 30px 0;
  border-top: 1px solid var(--line);
}

.signal-card:last-child {
  border-bottom: 1px solid var(--line);
}

.signal-card h3 {
  margin-top: 24px;
}

.act-finale {
  min-height: 100svh;
  overflow: hidden;
  background: transparent;
}

.act-finale::before,
.act-finale::after {
  display: none;
}

.act-finale::before {
  left: 0;
}

.act-finale::after {
  right: 0;
}

.finale-header {
  max-width: 980px;
  margin: 0 auto 72px;
  text-align: center;
}

.finale-title {
  margin-top: 30px;
  font-size: clamp(3rem, 6.2vw, 6.8rem);
}

.finale-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(330px, 0.75fr);
  gap: clamp(50px, 8vw, 124px);
  align-items: center;
}

.finale-contact {
  max-width: 760px;
}

.finale-contact > p {
  margin: 0;
  color: var(--ice-soft);
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2.5vw, 2.4rem);
  line-height: 1.55;
}

.finale-primary {
  display: inline-flex;
  max-width: 100%;
  align-items: center;
  gap: 13px;
  margin-top: 36px;
  color: var(--aqua);
  font-family: var(--mono);
  font-size: clamp(0.84rem, 1.6vw, 1.08rem);
  overflow-wrap: anywhere;
  transition:
    color 180ms ease,
    transform 180ms ease;
}

.finale-primary:hover {
  color: #fff;
  transform: translate(3px, -3px);
}

.finale-primary svg {
  width: 21px;
  height: 21px;
  flex: 0 0 auto;
}

.finale-profile {
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.profile-portrait {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 0;
  background: #050b14;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.22);
}

.profile-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.72) contrast(1.08) brightness(0.78);
}

.profile-portrait::after {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(transparent 49.5%, rgba(139, 212, 228, 0.18) 50%, transparent 50.5%),
    linear-gradient(90deg, rgba(189, 32, 61, 0.16), transparent 32%);
  content: "";
}

.portrait-scan {
  position: absolute;
  z-index: 2;
  right: 0;
  left: 0;
  height: 1px;
  background: rgba(139, 212, 228, 0.72);
  box-shadow: 0 0 18px rgba(139, 212, 228, 0.75);
  animation: portrait-scan 4.8s ease-in-out infinite;
}

.finale-profile dl {
  display: grid;
  margin: 0;
  padding: 10px 0;
}

.finale-profile dl div {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 18px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

.finale-profile dl div:last-child {
  border-bottom: 0;
}

.finale-profile dt,
.finale-profile dd {
  margin: 0;
}

.finale-profile dt {
  color: var(--ice-dim);
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
}

.finale-profile dd {
  color: var(--ice-soft);
  font-size: 0.82rem;
}

.site-footer {
  display: flex;
  width: min(var(--page-width), calc(100% - 64px));
  min-height: 112px;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin: 96px auto 0;
  border-top: 0;
  color: var(--ice-dim);
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.scene-progress {
  position: fixed;
  z-index: 74;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  background: rgba(232, 240, 247, 0.08);
  pointer-events: none;
}

.scene-progress-fill {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--crimson), var(--aqua));
  box-shadow: 0 0 18px rgba(139, 212, 228, 0.44);
  transform: scaleX(0);
  transform-origin: left;
}

.signal-dock {
  position: fixed;
  z-index: 58;
  bottom: 22px;
  left: 50%;
  display: flex;
  width: min(620px, calc(100% - 40px));
  min-height: 52px;
  align-items: center;
  gap: 12px;
  padding: 7px 7px 7px 18px;
  border: 1px solid rgba(224, 237, 247, 0.09);
  border-radius: 999px;
  background: rgba(5, 12, 23, 0.44);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.035) inset,
    0 18px 52px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(14px);
  transform: translateX(-50%);
}

.signal-dot {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--crimson);
  box-shadow: 0 0 0 5px rgba(189, 32, 61, 0.1);
}

.signal-copy {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  color: var(--ice-dim);
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.signal-link {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  gap: 9px;
  padding: 0 15px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #a91433, #cd2949);
  font-size: 0.76rem;
  font-weight: 700;
  box-shadow: 0 10px 28px rgba(189, 32, 61, 0.24);
}

.signal-link svg {
  width: 15px;
  height: 15px;
}

.noscript {
  position: relative;
  z-index: 5;
  width: min(720px, calc(100% - 40px));
  margin: 160px auto;
}

.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 820ms cubic-bezier(0.2, 0.75, 0.25, 1),
    transform 820ms cubic-bezier(0.2, 0.75, 0.25, 1);
  transition-delay: var(--delay, 0ms);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes portrait-scan {
  0%,
  100% {
    top: 12%;
    opacity: 0.28;
  }
  50% {
    top: 88%;
    opacity: 0.85;
  }
}

@media (max-width: 1080px) {
  .watch-layout {
    grid-template-columns: minmax(320px, 0.78fr) minmax(0, 1.22fr);
    gap: 54px;
  }
}

@media (max-width: 880px) {
  .nav-shell,
  .act-inner,
  .site-footer {
    width: min(100% - 36px, var(--page-width));
  }

  .nav-shell {
    min-height: 66px;
  }

  .site-header {
    border-bottom-color: var(--line);
    background: rgba(3, 7, 14, 0.44);
    backdrop-filter: blur(12px);
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 66px;
    right: -18px;
    left: -18px;
    display: none;
    align-items: stretch;
    gap: 0;
    padding: 8px 24px 22px;
    border-bottom: 1px solid var(--line);
    background: rgba(3, 7, 14, 0.98);
  }

  .site-nav.is-open {
    display: grid;
  }

  .site-nav a {
    justify-content: space-between;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
  }

  .nav-toggle[aria-expanded="true"] span:first-child {
    transform: translateY(3px) rotate(45deg);
  }

  .nav-toggle[aria-expanded="true"] span:last-child {
    transform: translateY(-3px) rotate(-45deg);
  }

  .act-overture {
    padding-top: calc(var(--rail-height) + 100px);
  }

  .overture-stage {
    width: min(100% - 36px, 980px);
  }

  .overture-identity {
    right: 18px;
    bottom: 96px;
    left: 18px;
  }

  .act-header {
    margin-bottom: 58px;
  }

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

  .voyage-feature {
    grid-template-columns: 1fr;
    gap: 28px;
    align-items: start;
  }

  .watch-layout {
    grid-template-columns: 1fr;
    gap: 62px;
  }

  .compass-visual {
    width: min(76vw, 460px);
  }

  .finale-layout {
    grid-template-columns: 1fr;
    gap: 54px;
  }

  .finale-profile {
    width: min(100%, 540px);
  }

  .site-footer {
    min-height: 150px;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
  }
}

@media (max-width: 640px) {
  :root {
    --rail-height: 22px;
  }

  .curtain-rail {
    background: transparent;
  }

  .brand {
    min-width: 0;
  }

  .brand-name {
    max-width: 146px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .act:not(.act-overture) {
    padding: 92px 0;
  }

  .act-overture {
    padding-bottom: 118px;
  }

  .finale-title {
    font-size: clamp(2.75rem, 13vw, 4.6rem);
    line-height: 1.18;
  }

  .overture-statement {
    margin-top: 30px;
    font-size: 2.15rem;
  }

  .overture-description {
    font-size: 0.91rem;
  }

  .overture-identity {
    bottom: 100px;
    display: grid;
    gap: 5px;
  }

  .overture-identity span:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .scene-kicker {
    gap: 10px;
    font-size: 0.58rem;
    letter-spacing: 0.2em;
  }

  .scene-kicker::before,
  .scene-kicker::after {
    width: 16px;
  }

  .act-title {
    margin-top: 24px;
    font-size: clamp(2.2rem, 10.5vw, 4rem);
  }

  .act-english {
    font-size: 1rem;
  }

  .keel-card {
    min-height: 0;
    padding: 28px 0;
  }

  .keel-card h3,
  .signal-card h3 {
    margin-top: 30px;
  }

  .route-copy {
    padding: 0;
  }

  .sounding-log {
    margin-top: 74px;
  }

  .sounding-header {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-bottom: 34px;
    padding-bottom: 22px;
  }

  .sounding-header h3 {
    font-size: clamp(1.85rem, 9vw, 3rem);
  }

  .sounding-english {
    white-space: normal;
  }

  .sounding-rows {
    gap: 10px;
    padding: 8px 0;
    mask-image: linear-gradient(
      90deg,
      transparent 0,
      #000 3%,
      #000 97%,
      transparent 100%
    );
  }

  .sounding-sequence {
    gap: 24px;
    padding-right: 24px;
  }

  .sounding-item {
    gap: 9px;
    font-size: 0.64rem;
  }

  .sounding-row {
    min-height: 46px;
  }

  .sounding-item::after {
    margin-left: 11px;
  }

  .compass-label,
  .compass-degree {
    font-size: 0.5rem;
  }

  .finale-header {
    margin-bottom: 52px;
  }

  .finale-contact > p {
    font-size: 1.25rem;
  }

  .signal-dock {
    bottom: 12px;
    width: calc(100% - 24px);
    min-height: 50px;
    padding-left: 14px;
  }

  .signal-copy {
    font-size: 0.54rem;
  }

  .signal-link {
    padding: 0 13px;
  }
}

@media (max-width: 410px) {
  .signal-dock {
    gap: 8px;
  }

  .signal-link {
    margin-left: auto;
    padding: 0 11px;
    font-size: 0.7rem;
  }

  .signal-link svg {
    display: none;
  }
}

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

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

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}

body.twin-open {
  overflow: hidden;
}

.twin-layer {
  position: fixed;
  z-index: 110;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 28px;
}

.twin-layer[hidden] {
  display: none;
}

.twin-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: rgba(0, 3, 8, 0.68);
  cursor: default;
  backdrop-filter: blur(10px);
  animation: twin-backdrop-in 220ms ease both;
}

.twin-panel {
  position: relative;
  display: flex;
  width: min(680px, calc(100vw - 48px));
  height: min(640px, calc(100svh - 72px));
  min-height: 430px;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(196, 219, 233, 0.25);
  border-radius: 6px;
  background:
    radial-gradient(ellipse 72% 42% at 50% 0%, rgba(46, 91, 125, 0.19), transparent 72%),
    linear-gradient(155deg, #0e1927, #060a11);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.055) inset,
    0 36px 120px rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(22px);
  animation: twin-panel-in 240ms cubic-bezier(0.2, 0.75, 0.25, 1) both;
}

.twin-panel::before {
  position: absolute;
  z-index: 1;
  top: -1px;
  left: -1px;
  width: 112px;
  height: 1px;
  background: var(--crimson);
  content: "";
  box-shadow: 0 0 18px rgba(189, 32, 61, 0.42);
}

.twin-panel::after {
  position: absolute;
  z-index: 0;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 3px,
    rgba(255, 255, 255, 0.009) 3px,
    rgba(255, 255, 255, 0.009) 4px
  );
  content: "";
  pointer-events: none;
}

.twin-header {
  position: relative;
  z-index: 2;
  display: flex;
  min-height: 66px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 18px 0 24px;
  border-bottom: 1px solid var(--line);
  background: rgba(7, 14, 25, 0.52);
}

.twin-heading {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
}

.twin-heading-mark {
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--aqua);
  box-shadow:
    0 0 0 4px rgba(139, 212, 228, 0.08),
    0 0 18px rgba(139, 212, 228, 0.48);
}

.twin-heading h2 {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  color: var(--ice-soft);
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.twin-close {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  padding: 0;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 50%;
  color: var(--ice-soft);
  background: transparent;
  cursor: pointer;
  transition:
    border-color 180ms ease,
    color 180ms ease,
    background 180ms ease;
}

.twin-close:hover {
  border-color: var(--line);
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
}

.twin-close svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.7;
}

.twin-messages {
  position: relative;
  z-index: 2;
  display: flex;
  min-height: 0;
  flex: 1;
  flex-direction: column;
  gap: 16px;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 28px 34px;
  scrollbar-color: rgba(139, 212, 228, 0.22) transparent;
  scrollbar-width: thin;
}

.twin-messages::-webkit-scrollbar {
  width: 7px;
}

.twin-messages::-webkit-scrollbar-thumb {
  border: 2px solid transparent;
  border-radius: 999px;
  background: rgba(139, 212, 228, 0.22);
  background-clip: padding-box;
}

.twin-message {
  width: fit-content;
  max-width: min(86%, 520px);
  margin: 0;
  padding: 17px 20px;
  border: 1px solid rgba(196, 219, 233, 0.13);
  border-radius: 5px;
  color: #dbe7ef;
  background: rgba(15, 23, 34, 0.72);
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.16);
  font-size: 0.94rem;
  line-height: 1.75;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.twin-message.is-user {
  align-self: flex-end;
  border-color: rgba(189, 32, 61, 0.28);
  background: rgba(99, 17, 36, 0.42);
  color: #f2e9ec;
}

.twin-message.is-error {
  border-color: rgba(239, 181, 109, 0.3);
  color: #f1d5ad;
  background: rgba(86, 55, 20, 0.3);
}

.twin-message.is-pending {
  display: inline-flex;
  min-width: 74px;
  min-height: 54px;
  align-items: center;
  gap: 7px;
}

.twin-loading-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--aqua);
  animation: twin-loading 1.1s ease-in-out infinite;
}

.twin-loading-dot:nth-child(2) {
  animation-delay: 140ms;
}

.twin-loading-dot:nth-child(3) {
  animation-delay: 280ms;
}

.twin-composer {
  position: relative;
  z-index: 2;
  display: grid;
  min-height: 62px;
  grid-template-columns: 20px minmax(0, 1fr) 46px;
  align-items: center;
  gap: 12px;
  margin: 0 22px 22px;
  padding: 7px 8px 7px 20px;
  border: 1px solid rgba(196, 219, 233, 0.19);
  border-radius: 999px;
  background: rgba(9, 15, 25, 0.88);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.045) inset,
    0 16px 46px rgba(0, 0, 0, 0.3);
  transition: border-color 180ms ease;
}

.twin-composer:focus-within {
  border-color: rgba(139, 212, 228, 0.4);
}

.twin-composer-icon {
  width: 18px;
  height: 18px;
  color: var(--crimson);
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.twin-composer input {
  width: 100%;
  min-width: 0;
  padding: 0;
  border: 0;
  outline: 0;
  color: var(--ice);
  background: transparent;
  font-size: 0.9rem;
}

.twin-composer input::placeholder {
  color: rgba(183, 198, 211, 0.6);
  opacity: 1;
}

.twin-composer input:disabled {
  cursor: wait;
  opacity: 0.62;
}

.twin-send {
  display: grid;
  width: 46px;
  height: 46px;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(145deg, #b71535, #db274c);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.2) inset,
    0 10px 28px rgba(189, 32, 61, 0.3);
  cursor: pointer;
  transition:
    filter 180ms ease,
    transform 180ms ease;
}

.twin-send:hover:not(:disabled) {
  filter: brightness(1.12);
  transform: translateY(-1px);
}

.twin-send:disabled {
  cursor: wait;
  filter: saturate(0.5) brightness(0.7);
}

.twin-send svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.65;
}

.twin-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

@keyframes twin-panel-in {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes twin-backdrop-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes twin-loading {
  0%,
  70%,
  100% {
    opacity: 0.28;
    transform: translateY(0);
  }
  35% {
    opacity: 1;
    transform: translateY(-3px);
  }
}

@media (max-width: 640px) {
  .signal-dock {
    width: calc(100% - 20px);
  }

  .twin-layer {
    padding: 10px;
  }

  .twin-backdrop {
    background: rgba(0, 3, 8, 0.82);
  }

  .twin-panel {
    width: 100%;
    height: min(780px, calc(100svh - 20px));
    min-height: 390px;
  }

  .twin-header {
    min-height: 60px;
    padding-right: 12px;
    padding-left: 18px;
  }

  .twin-heading h2 {
    font-size: 0.59rem;
    letter-spacing: 0.16em;
  }

  .twin-messages {
    padding: 22px 18px;
  }

  .twin-message {
    max-width: 92%;
    padding: 14px 16px;
    font-size: 0.88rem;
  }

  .twin-composer {
    min-height: 58px;
    grid-template-columns: 18px minmax(0, 1fr) 42px;
    gap: 9px;
    margin: 0 12px 12px;
    padding-left: 16px;
  }

  .twin-composer input {
    font-size: 0.82rem;
  }

  .twin-send {
    width: 42px;
    height: 42px;
  }
}

@media (max-width: 410px) {
  .signal-copy {
    font-size: 0.54rem;
  }
}
