/* ============================================
   ТРАССА — Theme Overrides
   Steel-blue / Operational / Pipeline Route
   ============================================ */

/* Accent: deep teal / steel-blue — instrument panels, technical drawings */
:root {
  --accent: #1B7A9A;
  --accent-glow: rgba(27, 122, 154, 0.15);
  --accent-dim: rgba(27, 122, 154, 0.4);
  --accent-bright: #2490B8;
}

/* Suppress shared grid — trassa-grid replaces it */
.grid-bg { display: none; }

/* --- Topographic Contour Line Pattern --- */
.trassa-grid {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  /* Topographic contour lines — concentric ovals at varying scales */
  background:
    radial-gradient(ellipse 120px 60px at 15% 30%, transparent 98%, rgba(27, 122, 154, 0.04) 100%),
    radial-gradient(ellipse 200px 100px at 15% 30%, transparent 98%, rgba(27, 122, 154, 0.03) 100%),
    radial-gradient(ellipse 300px 150px at 15% 30%, transparent 98%, rgba(27, 122, 154, 0.025) 100%),
    radial-gradient(ellipse 120px 60px at 75% 70%, transparent 98%, rgba(27, 122, 154, 0.04) 100%),
    radial-gradient(ellipse 220px 110px at 75% 70%, transparent 98%, rgba(27, 122, 154, 0.03) 100%),
    radial-gradient(ellipse 340px 170px at 75% 70%, transparent 98%, rgba(27, 122, 154, 0.02) 100%),
    radial-gradient(ellipse 90px 45px at 50% 20%, transparent 98%, rgba(27, 122, 154, 0.035) 100%),
    radial-gradient(ellipse 170px 85px at 50% 20%, transparent 98%, rgba(27, 122, 154, 0.025) 100%),
    radial-gradient(ellipse 270px 135px at 50% 20%, transparent 98%, rgba(27, 122, 154, 0.018) 100%),
    repeating-linear-gradient(
      15deg,
      transparent,
      transparent 38px,
      rgba(27, 122, 154, 0.02) 38px,
      rgba(27, 122, 154, 0.02) 39px
    ),
    repeating-linear-gradient(
      105deg,
      transparent,
      transparent 58px,
      rgba(27, 122, 154, 0.015) 58px,
      rgba(27, 122, 154, 0.015) 59px
    );
}

/* --- Pipeline Route SVG Map --- */
.route-map {
  position: relative;
  background: var(--bg-surface);
  border: var(--border-subtle);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: var(--space-lg);
}

.route-map svg {
  width: 100%;
  height: auto;
  display: block;
}

.route-path {
  fill: none;
  stroke: var(--accent-dim);
  stroke-width: 2;
  stroke-dasharray: 6 4;
}

.route-path-active {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.station-dot {
  fill: var(--bg-elevated);
  stroke: var(--accent-dim);
  stroke-width: 2;
  cursor: pointer;
  transition: fill 0.3s, stroke 0.3s, r 0.2s;
}

.station-dot:hover,
.station-dot.active {
  fill: var(--accent);
  stroke: var(--accent);
  filter: drop-shadow(0 0 8px var(--accent-glow));
}

.station-dot-label {
  font-family: var(--font-mono);
  font-size: 10px;
  fill: var(--text-dim);
  pointer-events: none;
  transition: fill 0.3s;
}

.map-label {
  font-family: var(--font-mono);
  font-size: 9px;
  fill: var(--text-dim);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  pointer-events: none;
}

/* --- Shift Handover Banner (Передача смены) --- */
.handover-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-md) 0;
  margin: var(--space-lg) 0;
}

.handover-step {
  font-family: var(--font-mono);
  font-size: clamp(0.7rem, 1.5vw, 0.85rem);
  font-weight: 500;
  color: var(--accent);
  padding: var(--space-sm) var(--space-md);
  border: 1.5px solid var(--accent-dim);
  background: var(--bg-surface);
  position: relative;
  text-align: center;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: border-color 0.3s, background 0.3s;
  flex: 1;
  min-width: 0;
}

.handover-step.active {
  border-color: var(--accent);
  background: rgba(27, 122, 154, 0.08);
}

.handover-arrow {
  color: var(--accent-dim);
  font-size: 1.2rem;
  flex-shrink: 0;
}

/* --- Metrics Block --- */
.metrics-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.04);
  margin: var(--space-xl) 0;
}

.metric-item {
  background: var(--bg-surface);
  padding: var(--space-md);
  text-align: center;
}

/* --- Station Grid for ТРАССА --- */
.stations-grid-trassa {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-sm);
}

/* --- Operational Level Badges --- */
.op-levels {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-sm);
  margin: var(--space-lg) 0;
}

.op-level {
  padding: var(--space-md);
  border: var(--border-subtle);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.op-level::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
}

.op-level.gold::before { background: #C5A028; }
.op-level.green::before { background: #2A7A45; }
.op-level.yellow::before { background: #8A7A1B; }
.op-level.red::before { background: #8A2A1B; }

.op-level-name {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: var(--space-xs);
}

.op-level.gold .op-level-name { color: #C5A028; }
.op-level.green .op-level-name { color: #2A7A45; }
.op-level.yellow .op-level-name { color: #8A7A1B; }
.op-level.red .op-level-name { color: #8A2A1B; }

.op-level-score {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
}

.op-level-desc {
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-top: var(--space-xs);
}

/* --- Operational Film Note --- */
.film-note {
  background: var(--bg-surface);
  border-left: 3px solid var(--accent);
  padding: var(--space-md) var(--space-lg);
  margin: var(--space-xl) 0;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--space-lg);
}

.film-note-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  align-self: center;
}

/* --- Artifact Visual --- */
.artifact-visual {
  aspect-ratio: 16/9;
  background: var(--bg-surface);
  border: var(--border-subtle);
  overflow: hidden;
  position: relative;
}

.artifact-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.7;
  filter: brightness(0.55) contrast(1.15) saturate(0.8);
  transition: opacity 0.4s, filter 0.4s;
}

.artifact-visual:hover img {
  opacity: 0.85;
  filter: brightness(0.7) contrast(1.05) saturate(0.9);
}

/* --- Act Card --- */
.act-card {
  background: var(--bg-surface);
  border: var(--border-subtle);
  border-top: 3px solid var(--accent-dim);
  padding: var(--space-md);
  transition: border-top-color 0.3s;
}

.act-card:hover { border-top-color: var(--accent); }

.act-card.act-main {
  border-top-color: var(--accent);
  box-shadow: 0 0 30px var(--accent-glow);
}

/* --- Shift Handover Block --- */
.handover-block {
  background: var(--bg-surface);
  border: var(--border-subtle);
  border-left: 3px solid var(--accent);
  padding: var(--space-lg);
}

.handover-levels {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

.handover-level {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  padding: var(--space-sm) 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.handover-level:last-child { border-bottom: none; }

.level-number {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent);
  letter-spacing: 0.15em;
  min-width: 2.5rem;
  padding-top: 0.1em;
}

/* --- Nominations featured override --- */
.nomination-card.featured {
  border-color: var(--accent);
  background: linear-gradient(135deg, var(--bg-surface) 0%, rgba(27, 122, 154, 0.06) 100%);
}

/* --- Station active highlight --- */
.station-card.highlight {
  border-color: var(--accent);
  box-shadow: 0 0 20px var(--accent-glow);
}

/* --- Operational tag for stations --- */
.station-op-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--accent-dim);
  padding: 0.15em 0.5em;
  margin-bottom: var(--space-sm);
}

/* --- KM marker badge on station cards --- */
.station-km-marker {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-dim);
  letter-spacing: 0.1em;
  margin-bottom: 0.25rem;
}

/* --- Wave info block (for Разбор station) --- */
.wave-steps {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.wave-step {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  padding: var(--space-xs) 0;
  border-left: 2px solid var(--accent-dim);
  padding-left: var(--space-sm);
}

.wave-number {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  min-width: 4rem;
  flex-shrink: 0;
  padding-top: 0.1em;
}

/* Shared images in page */
.section-image {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  opacity: 0.6;
  filter: brightness(0.5) contrast(1.2) saturate(0.7);
  display: block;
  border: var(--border-subtle);
}

@media (max-width: 768px) {
  .metrics-strip { grid-template-columns: repeat(2, 1fr); }
  .stations-grid-trassa { grid-template-columns: 1fr; }
  .film-note { grid-template-columns: 1fr; }
  .op-levels { grid-template-columns: repeat(2, 1fr); }
  .handover-banner { flex-direction: column; }
  .handover-arrow { transform: rotate(90deg); }
}

/* ============================================
   TRASSA REDESIGN OVERRIDES
   ============================================ */

:root {
  --accent-soft: rgba(36, 144, 184, 0.18);
  --signal-cyan: #47bde6;
  --warning-amber: #c59a49;
  --surface-glass: rgba(8, 14, 18, 0.6);
  --surface-line: rgba(71, 189, 230, 0.18);
}

body.trassa-body {
  background:
    radial-gradient(circle at top, rgba(36, 144, 184, 0.09), transparent 30%),
    linear-gradient(180deg, #061016 0%, #080b0d 38%, #090909 100%);
  color: #eef3f6;
}

.trassa-body .nav {
  background: rgba(4, 10, 14, 0.7);
  border-bottom: 1px solid rgba(71, 189, 230, 0.12);
  backdrop-filter: blur(24px);
}

.trassa-body .nav-brand {
  font-size: 1.55rem;
  letter-spacing: 0.06em;
}

.trassa-body .nav-links a {
  position: relative;
}

.trassa-body .nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.35rem;
  height: 1px;
  background: var(--signal-cyan);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.trassa-body .nav-links a:hover::after,
.trassa-body .nav-links a.active::after {
  transform: scaleX(1);
}

.hero-trassa {
  min-height: 100svh;
  padding: calc(var(--nav-height) + 4rem) 0 2rem;
  justify-content: space-between;
}

.hero-trassa .hero-bg img {
  opacity: 0.92;
  filter: brightness(0.76) contrast(1.04) saturate(0.94);
  object-position: center center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(4, 10, 14, 0.8) 0%, rgba(4, 10, 14, 0.42) 38%, rgba(4, 10, 14, 0.12) 64%, rgba(4, 10, 14, 0.66) 100%),
    linear-gradient(180deg, rgba(4, 10, 14, 0.08) 0%, rgba(4, 10, 14, 0.32) 48%, rgba(4, 10, 14, 0.8) 100%);
  z-index: 0;
}

.hero-overlay::before,
.hero-overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-overlay::before {
  background:
    radial-gradient(circle at 72% 22%, rgba(255, 202, 123, 0.28), transparent 18%),
    linear-gradient(180deg, transparent 0%, rgba(71, 189, 230, 0.05) 72%, transparent 100%);
}

.hero-overlay::after {
  background:
    repeating-linear-gradient(90deg, transparent, transparent 112px, rgba(71, 189, 230, 0.035) 112px, rgba(71, 189, 230, 0.035) 113px),
    repeating-linear-gradient(0deg, transparent, transparent 112px, rgba(71, 189, 230, 0.03) 112px, rgba(71, 189, 230, 0.03) 113px);
  opacity: 0.4;
}

.hero-shell {
  width: min(1440px, 100%);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 4rem);
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: clamp(2rem, 5vw, 6rem);
  align-items: center;
  position: relative;
  z-index: 1;
}

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

.hero-label {
  color: rgba(161, 223, 242, 0.88);
  margin-bottom: 1.1rem;
}

.hero-kicker {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1.5;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(161, 223, 242, 0.8);
  margin-bottom: 1rem;
  max-width: 30ch;
}

.hero-trassa h1 {
  font-size: clamp(5rem, 11vw, 10rem);
  line-height: 0.9;
  margin-bottom: 1.15rem;
}

.hero-trassa .slogan {
  max-width: 24ch;
  margin-top: 0;
  color: rgba(230, 236, 240, 0.88);
  font-size: clamp(1.12rem, 1.75vw, 1.5rem);
  line-height: 1.45;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2rem;
}

.hero-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.35rem;
  padding: 0 1.4rem;
  border: 1px solid transparent;
  background: linear-gradient(180deg, rgba(71, 189, 230, 0.95), rgba(27, 122, 154, 0.9));
  color: #051117;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.hero-action:hover {
  transform: translateY(-2px);
}

.hero-action.ghost {
  background: rgba(3, 12, 17, 0.18);
  color: #eaf2f7;
  border-color: rgba(161, 223, 242, 0.28);
}

.hero-aside {
  display: grid;
  gap: 1rem;
  align-self: stretch;
  justify-self: end;
  max-width: 26rem;
}

.hero-shift-block,
.hero-route-meter {
  border: 1px solid var(--surface-line);
  background: linear-gradient(180deg, rgba(6, 16, 22, 0.68), rgba(6, 16, 22, 0.42));
  backdrop-filter: blur(16px);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.22);
}

.hero-shift-block {
  padding: clamp(1.4rem, 2vw, 2rem);
}

.hero-shift-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(161, 223, 242, 0.8);
}

.hero-shift-number {
  margin-top: 0.85rem;
  font-family: var(--font-display);
  font-size: clamp(4.8rem, 9vw, 7.8rem);
  line-height: 0.84;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.hero-shift-number span {
  color: rgba(161, 223, 242, 0.82);
}

.hero-shift-block p {
  max-width: 22ch;
  margin-top: 1rem;
  color: rgba(230, 236, 240, 0.76);
}

.hero-route-meter {
  padding: 1.3rem 1.4rem 1.45rem;
}

.hero-route-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.78rem;
  color: rgba(230, 236, 240, 0.88);
}

.hero-route-line {
  position: relative;
  height: 12px;
  margin: 1rem 0 1.2rem;
}

.hero-route-line::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: rgba(161, 223, 242, 0.22);
}

.hero-route-line span {
  position: absolute;
  inset: 0;
}

.hero-route-line span::before,
.hero-route-line span::after {
  content: '';
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

.hero-route-line span::before {
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, rgba(71, 189, 230, 0.2), rgba(71, 189, 230, 0.95), rgba(255, 192, 111, 0.4));
}

.hero-route-line span::after {
  right: 5%;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--signal-cyan);
  box-shadow: 0 0 20px rgba(71, 189, 230, 0.45);
}

.hero-route-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
}

.hero-route-stats div {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.hero-route-stats strong {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 0.9;
  color: var(--text-primary);
}

.hero-route-stats span {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(161, 223, 242, 0.8);
}

.hero-footer-bar {
  width: min(1440px, 100%);
  margin: clamp(1.75rem, 4vw, 3rem) auto 0;
  padding: 0 clamp(1.25rem, 4vw, 4rem);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  position: relative;
  z-index: 1;
  background: rgba(161, 223, 242, 0.12);
}

.hero-footer-item {
  min-height: 5.5rem;
  padding: 1rem 1.15rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.45rem;
  background: rgba(4, 10, 14, 0.38);
}

.hero-footer-item span {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(161, 223, 242, 0.7);
}

.hero-footer-item strong {
  font-size: 0.92rem;
  font-weight: 500;
  color: rgba(234, 242, 247, 0.92);
}

.chapter-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.9fr);
  gap: clamp(1.5rem, 3vw, 3rem);
  align-items: end;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.chapter-kicker {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(161, 223, 242, 0.76);
  margin-bottom: 0.6rem;
}

.chapter-summary {
  justify-self: end;
  max-width: 34ch;
  color: rgba(224, 231, 235, 0.78);
}

.chapter-caption {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-dim);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.chapter-section {
  padding-top: clamp(6rem, 10vw, 9rem);
}

.philosophy-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.25rem, 3vw, 3rem);
  margin-top: var(--space-xl);
}

.philosophy-column {
  padding-top: 1.1rem;
  border-top: 1px solid rgba(161, 223, 242, 0.18);
}

.philosophy-column p + p {
  margin-top: 1rem;
}

.philosophy-evidence {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: clamp(1.4rem, 3vw, 3rem);
  align-items: center;
  margin-top: var(--space-xl);
}

.artifact-visual-cinematic {
  min-height: 24rem;
}

.philosophy-evidence-copy h3 {
  color: var(--text-primary);
  margin: 0.85rem 0 1rem;
}

.philosophy-evidence-copy p + p {
  margin-top: 1rem;
}

.chapter-metrics {
  margin-top: clamp(1.75rem, 4vw, 3rem);
}

.metrics-strip {
  background: rgba(161, 223, 242, 0.08);
}

.metric-item {
  background: rgba(8, 14, 18, 0.78);
}

.shift-story {
  position: relative;
  padding: var(--space-2xl) 0;
  background:
    linear-gradient(180deg, rgba(9, 13, 15, 0.8) 0%, rgba(5, 8, 10, 0.96) 100%);
  overflow: hidden;
}

.shift-story::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(90deg, transparent, transparent 139px, rgba(71, 189, 230, 0.03) 139px, rgba(71, 189, 230, 0.03) 140px),
    linear-gradient(120deg, rgba(71, 189, 230, 0.05), transparent 40%, transparent 60%, rgba(197, 154, 73, 0.05));
  pointer-events: none;
}

.shift-story-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.75fr) minmax(0, 1.25fr);
  gap: clamp(2rem, 6vw, 7rem);
  align-items: center;
  position: relative;
}

.shift-story-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(161, 223, 242, 0.84);
}

.shift-story-digits {
  margin-top: 1rem;
  font-family: var(--font-display);
  font-size: clamp(5rem, 14vw, 12rem);
  line-height: 0.84;
  color: rgba(71, 189, 230, 0.14);
}

.shift-story-digits span {
  color: rgba(234, 242, 247, 0.96);
}

.shift-story-lead {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.8vw, 2.15rem);
  line-height: 1.25;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  max-width: 20ch;
}

.shift-story-list {
  display: grid;
  gap: 1px;
  background: rgba(161, 223, 242, 0.12);
}

.shift-story-list > div {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: 1rem;
  align-items: baseline;
  padding: 1rem 1.1rem;
  background: rgba(7, 12, 15, 0.8);
}

.shift-story-list span {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  color: rgba(161, 223, 242, 0.86);
}

.shift-story-list p {
  color: rgba(230, 236, 240, 0.78);
  max-width: none;
}

.shift-story-list .current {
  border-left: 3px solid var(--signal-cyan);
}

.shift-story-note {
  margin-top: 1.25rem;
  color: rgba(230, 236, 240, 0.72);
}

.route-section {
  padding-bottom: 0;
}

.route-stage {
  display: grid;
  grid-template-columns: minmax(250px, 0.48fr) minmax(0, 1fr);
  gap: clamp(1.25rem, 3vw, 2rem);
  align-items: start;
}

.route-stage-copy {
  position: sticky;
  top: calc(var(--nav-height) + 1.5rem);
  align-self: start;
}

.route-stage-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(161, 223, 242, 0.82);
  margin-bottom: 1rem;
}

.route-stage-list {
  display: grid;
  gap: 1px;
  background: rgba(161, 223, 242, 0.1);
}

.route-stage-list > div {
  padding: 1rem 1.1rem;
  background: rgba(7, 13, 17, 0.84);
}

.route-stage-list strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.4vw, 2.25rem);
  line-height: 0.95;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
}

.route-stage-list span {
  display: block;
  color: rgba(230, 236, 240, 0.7);
  font-size: 0.95rem;
  line-height: 1.45;
}

.route-map {
  margin-bottom: 0;
  border: 1px solid rgba(71, 189, 230, 0.16);
  background:
    linear-gradient(180deg, rgba(11, 20, 25, 0.92), rgba(6, 10, 13, 0.96));
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.28);
}

.route-map::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 22% 30%, rgba(71, 189, 230, 0.08), transparent 22%),
    radial-gradient(circle at 78% 72%, rgba(71, 189, 230, 0.08), transparent 24%);
  pointer-events: none;
}

.route-map svg {
  padding: clamp(0.75rem, 2vw, 1.25rem);
}

.route-path {
  stroke-width: 2.5;
  stroke-dasharray: 8 6;
}

.route-path-active {
  stroke-width: 3;
}

.station-dot {
  fill: rgba(7, 13, 17, 0.94);
}

.day-section {
  background:
    linear-gradient(180deg, rgba(10, 16, 18, 0.86) 0%, rgba(10, 14, 16, 0.92) 100%);
}

.acts-grid {
  display: grid;
  grid-template-columns: 1fr 1.35fr 1fr;
  gap: var(--space-sm);
  margin-bottom: var(--space-xl);
}

.act-card {
  background: rgba(8, 13, 17, 0.82);
  min-height: 15rem;
}

.act-card.act-main {
  background: linear-gradient(180deg, rgba(9, 18, 22, 0.95), rgba(8, 13, 17, 0.92));
}

.day-timeline-title {
  margin-bottom: var(--space-lg);
  color: var(--text-primary);
}

.day-timeline-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.25rem, 3vw, 2rem);
}

.timeline {
  padding: 1rem 0 0;
}

.timeline-item {
  padding-left: calc(var(--space-lg) - 0.25rem);
  margin-bottom: 1.8rem;
}

.timeline-desc {
  color: rgba(230, 236, 240, 0.62);
}

.stations-visual {
  position: relative;
  margin-bottom: var(--space-xl);
}

.stations-visual .section-image {
  aspect-ratio: 16 / 8;
  opacity: 0.84;
}

.stations-visual-note {
  position: absolute;
  left: 1.5rem;
  bottom: 1.5rem;
  max-width: 24rem;
  padding: 0.9rem 1rem;
  background: rgba(5, 10, 13, 0.72);
  border: 1px solid rgba(161, 223, 242, 0.16);
  font-size: 0.9rem;
  color: rgba(234, 242, 247, 0.9);
}

.stations-grid-trassa {
  gap: clamp(1rem, 2vw, 1.25rem);
}

.station-card {
  background:
    linear-gradient(180deg, rgba(14, 20, 24, 0.95) 0%, rgba(10, 13, 15, 0.98) 100%);
  border: 1px solid rgba(161, 223, 242, 0.12);
  min-height: 17rem;
}

.station-card::before {
  width: 100%;
  height: 2px;
  opacity: 0.42;
}

.station-card:hover {
  transform: translateY(-4px);
  border-color: rgba(161, 223, 242, 0.22);
}

.station-card.highlight {
  transform: translateY(-6px);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.28), 0 0 28px rgba(71, 189, 230, 0.18);
}

.station-card.expanded {
  border-color: rgba(161, 223, 242, 0.22);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.3);
}

.station-name {
  font-size: clamp(1.55rem, 2.3vw, 2.1rem);
}

.station-goal {
  color: rgba(161, 223, 242, 0.82);
}

.badge {
  border-color: rgba(161, 223, 242, 0.16);
  color: rgba(161, 223, 242, 0.86);
}

.score-formula {
  background:
    linear-gradient(90deg, rgba(71, 189, 230, 0.1), rgba(71, 189, 230, 0.03));
  border-left-width: 4px;
}

.score-overview {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(1.25rem, 3vw, 2.5rem);
  align-items: stretch;
  margin-bottom: var(--space-xl);
}

.score-breakdown,
.score-visual {
  border: 1px solid rgba(161, 223, 242, 0.12);
  background: linear-gradient(180deg, rgba(10, 15, 18, 0.86), rgba(8, 11, 13, 0.94));
}

.score-breakdown {
  padding: 1.35rem 1.2rem;
}

.score-visual {
  display: grid;
  place-items: center;
  min-height: 21rem;
  position: relative;
  overflow: hidden;
}

.score-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at center, rgba(71, 189, 230, 0.08), transparent 50%),
    linear-gradient(180deg, transparent, rgba(71, 189, 230, 0.04));
  pointer-events: none;
}

.score-donut {
  width: clamp(240px, 28vw, 320px);
  height: clamp(240px, 28vw, 320px);
}

.op-levels {
  gap: 1px;
  background: rgba(161, 223, 242, 0.08);
}

.op-level {
  background: rgba(8, 12, 14, 0.86);
}

.nominations-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: rgba(161, 223, 242, 0.08);
}

.nomination-card {
  background: rgba(9, 13, 15, 0.95);
  min-height: 11rem;
}

.nomination-card.featured {
  grid-column: span 1;
  background:
    linear-gradient(180deg, rgba(9, 20, 25, 0.96), rgba(8, 13, 16, 0.96));
}

.artifact-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.9fr);
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.artifact-hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1.5rem;
  border: 1px solid rgba(161, 223, 242, 0.12);
  background: linear-gradient(180deg, rgba(10, 15, 18, 0.84), rgba(8, 11, 13, 0.96));
}

.artifacts-grid {
  gap: 1px;
  background: rgba(161, 223, 242, 0.08);
}

.artifact-card {
  background: rgba(8, 12, 14, 0.92);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.artifact-card:hover {
  transform: translateY(-3px);
  border-color: rgba(161, 223, 242, 0.2);
}

.score-table td {
  color: rgba(230, 236, 240, 0.76);
}

.handover-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-xl);
}

.handover-visual {
  margin-bottom: var(--space-xl);
}

.handover-copy p + p {
  margin-top: 1rem;
}

.handover-block {
  background: rgba(8, 13, 16, 0.82);
}

.handover-visual .section-image {
  aspect-ratio: 16 / 7;
}

.handover-block,
.handover-copy {
  min-height: 100%;
}

.handover-copy {
  padding-right: 1rem;
}

.ceremony-hero {
  margin-bottom: var(--space-xl);
}

.ceremony-hero .section-image {
  aspect-ratio: 16 / 7;
}

.section-image-bright {
  opacity: 0.92;
  filter: brightness(0.9) contrast(1.06) saturate(0.88);
}

.ceremony-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-md);
}

.ceremony-card {
  background: rgba(10, 15, 18, 0.86);
  border: 1px solid rgba(161, 223, 242, 0.12);
  padding: var(--space-md);
}

.ceremony-card.featured {
  border-color: rgba(161, 223, 242, 0.26);
  box-shadow: 0 0 30px rgba(71, 189, 230, 0.15);
}

.ceremony-note {
  background: rgba(7, 11, 13, 0.86);
}

.site-footer {
  background: rgba(6, 10, 11, 0.9);
}

.footer-concepts {
  gap: 1px;
  background: rgba(161, 223, 242, 0.08);
}

.footer-concept-card {
  background: rgba(8, 12, 14, 0.94);
}

@media (max-width: 1100px) {
  .hero-shell,
  .chapter-intro,
  .philosophy-evidence,
  .route-stage,
  .day-timeline-grid,
  .score-overview,
  .artifact-hero,
  .handover-layout,
  .ceremony-grid {
    grid-template-columns: 1fr;
  }

  .hero-aside,
  .chapter-summary {
    justify-self: stretch;
  }

  .route-stage-copy {
    position: static;
  }

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

  .hero-footer-bar {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .hero-trassa {
    min-height: auto;
    padding-top: calc(var(--nav-height) + 2.5rem);
  }

  .hero-shell {
    padding: 0 1rem;
    gap: 1.4rem;
  }

  .hero-kicker,
  .hero-label {
    max-width: 26ch;
  }

  .hero-trassa h1 {
    font-size: clamp(3.1rem, 16vw, 4.7rem);
  }

  .hero-trassa .slogan {
    max-width: 17ch;
    font-size: 1rem;
  }

  .hero-label,
  .hero-kicker {
    font-size: 0.64rem;
    letter-spacing: 0.16em;
    max-width: 24ch;
  }

  .hero-actions {
    width: 100%;
    flex-direction: column;
  }

  .hero-action {
    width: 100%;
  }

  .hero-shift-number {
    font-size: clamp(3.6rem, 19vw, 5.2rem);
  }

  .hero-route-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-footer-bar {
    margin-top: 1rem;
    padding: 0 1rem;
  }

  .chapter-intro {
    margin-bottom: 1.5rem;
  }

  .philosophy-grid,
  .handover-layout,
  .ceremony-grid {
    grid-template-columns: 1fr;
  }

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

  .philosophy-evidence {
    margin-top: 2rem;
  }

  .shift-story-grid {
    grid-template-columns: 1fr;
    gap: 1.4rem;
  }

  .shift-story-list > div {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .route-stage-list > div,
  .score-breakdown,
  .artifact-hero-copy,
  .station-card,
  .ceremony-card {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .stations-visual-note {
    position: static;
    margin-top: 0.75rem;
    max-width: none;
  }

  .section-image,
  .stations-visual .section-image {
    aspect-ratio: 4 / 5;
  }

  .route-map svg {
    padding: 0.5rem;
  }
}
