/* ================================
   POLARHOLE LAB — HOME PAGE
   SECTION 1: LAB CONSOLE HERO
   styles/home.css
   ================================ */

.phl-hero {
  padding-block: 72px 68px;
  background:
    linear-gradient(
      135deg,
      rgba(79, 214, 255, 0.03),
      rgba(4, 16, 23, 0.7) 42%,
      rgba(249, 248, 113, 0.04)
    );
}

.phl-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1.1fr);
  gap: 40px;
  align-items: stretch;
  position: relative;
}

.phl-hero-inner::before {
  content: "";
  position: absolute;
  inset: -40px 10%;
  border-radius: 40px;
  border: 1px solid rgba(138, 192, 221, 0.18);
  background-image: linear-gradient(
      to right,
      rgba(138, 192, 221, 0.16) 1px,
      transparent 1px
    ),
    linear-gradient(
      to bottom,
      rgba(138, 192, 221, 0.12) 1px,
      transparent 1px
    );
  background-size: 42px 42px;
  opacity: 0.25;
  pointer-events: none;
  z-index: -1;
}

/* TEXT COLUMN */

.phl-hero-text {
  position: relative;
  padding: 24px 18px 22px 4px;
}

.phl-hero-title {
  margin: 0 0 14px;
  font-family: "PHL-Display", system-ui, sans-serif;
  font-size: 32px;
  line-height: 1.18;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.phl-hero-lead {
  margin: 0 0 10px;
  font-size: 15px;
  color: var(--phl-text-main);
}

.phl-hero-text-body {
  margin: 0 0 18px;
  font-size: 14px;
  color: var(--phl-text-muted);
}

/* HERO METRICS STRIP */

.phl-hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.phl-hero-metric {
  padding: 10px 11px;
  border-radius: 16px;
  background: radial-gradient(
      circle at 0 0,
      rgba(79, 214, 255, 0.16),
      transparent 60%
    ),
    rgba(5, 31, 48, 0.9);
  border: 1px solid var(--phl-border-soft);
  box-shadow: var(--phl-shadow-subtle);
}

.phl-hero-metric-label {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--phl-text-muted);
  margin-bottom: 4px;
}

.phl-hero-metric-value {
  display: block;
  font-family: "PHL-Display", system-ui, sans-serif;
  font-size: 21px;
  margin-bottom: 4px;
}

.phl-hero-metric-note {
  display: block;
  font-size: 11px;
  color: var(--phl-text-muted);
}

/* HERO ACTIONS + TICKER */

.phl-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.phl-hero-ticker {
  position: relative;
  overflow: hidden;
  border-radius: 999px;
  border: 1px solid rgba(138, 192, 221, 0.35);
  background: linear-gradient(
    90deg,
    rgba(11, 52, 78, 0.95),
    rgba(7, 27, 38, 0.95)
  );
  margin-top: 4px;
}

.phl-hero-ticker-track {
  display: inline-flex;
  gap: 36px;
  padding: 6px 22px;
  white-space: nowrap;
  font-size: 12px;
  color: var(--phl-text-muted);
  animation: phlTicker 30s linear infinite;
}

.phl-hero-ticker-track span::before {
  content: "● ";
  color: var(--phl-accent);
  opacity: 0.8;
}

/* LAB COLUMN */

.phl-hero-lab {
  position: relative;
  padding: 20px 6px 8px 6px;
}

.phl-hero-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: auto;
  gap: 14px;
  margin-bottom: 16px;
}

.phl-hero-card {
  position: relative;
  border-radius: 22px;
  padding: 10px 10px 11px;
  background: radial-gradient(
      circle at 0 0,
      rgba(79, 214, 255, 0.2),
      transparent 55%
    ),
    radial-gradient(
      circle at 100% 100%,
      rgba(249, 248, 113, 0.18),
      transparent 60%
    ),
    rgba(8, 42, 63, 0.96);
  border: 1px solid rgba(138, 192, 221, 0.28);
  box-shadow: var(--phl-shadow-subtle);
  overflow: hidden;
  transform-origin: center;
  transition:
    transform 0.26s ease,
    box-shadow 0.26s ease,
    border-color 0.22s ease;
}

.phl-hero-card--depth {
  grid-column: 1 / -1;
}

.phl-hero-card--ice {
  transform: translateY(4px) rotate(-2deg);
}

.phl-hero-card--sonar {
  transform: translateY(-4px) rotate(2deg);
}

.phl-hero-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 26px 60px rgba(0, 11, 28, 0.95);
  border-color: rgba(79, 214, 255, 0.75);
}

.phl-hero-image {
  border-radius: 18px;
  margin-bottom: 8px;
}

.phl-hero-caption {
  font-size: 12px;
  color: var(--phl-text-muted);
  margin: 0;
}

/* LEGEND */

.phl-hero-legend {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.1fr);
  gap: 10px;
  padding: 10px 12px 6px;
  border-radius: 18px;
  background-color: rgba(4, 18, 30, 0.96);
  border: 1px dashed rgba(138, 192, 221, 0.5);
}

.phl-legend-item {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 8px;
  row-gap: 2px;
}

.phl-legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  align-self: center;
}

.phl-legend-item--depth .phl-legend-dot {
  background: linear-gradient(180deg, #4fd6ff, #0060ff);
}

.phl-legend-item--pressure .phl-legend-dot {
  background: linear-gradient(180deg, #f9f871, #ff8a5c);
}

.phl-legend-item--time .phl-legend-dot {
  background: linear-gradient(180deg, #c592ff, #4fd6ff);
}

.phl-legend-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--phl-text-main);
}

.phl-legend-note {
  grid-column: 2 / -1;
  font-size: 11px;
  color: var(--phl-text-muted);
}

/* HERO PARALLAX VARIABLES */

.phl-hero-lab {
  --phl-tilt-x: 0deg;
  --phl-tilt-y: 0deg;
}

.phl-hero-grid {
  transform:
    perspective(900px)
    rotateX(var(--phl-tilt-y))
    rotateY(var(--phl-tilt-x));
  transition: transform 0.18s ease-out;
}

/* KEYFRAMES */

@keyframes phlTicker {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* RESPONSIVE: HERO */

@media (max-width: 767px) {
  .phl-hero {
    padding-block: 60px 50px;
  }

  .phl-hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .phl-hero-inner::before {
    inset: -20px 2%;
    border-radius: 26px;
  }

  .phl-hero-title {
    font-size: 24px;
  }

  .phl-hero-metrics {
    grid-template-columns: minmax(0, 1fr);
  }

  .phl-hero-legend {
    grid-template-columns: minmax(0, 1fr);
  }

  .phl-hero-card--ice,
  .phl-hero-card--sonar {
    transform: translateY(0) rotate(0deg);
  }

  .phl-hero-grid {
    transform: none;
  }
}

@media (min-width: 768px) and (max-width: 1199px) {
  .phl-hero-inner {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 28px;
  }

  .phl-hero-title {
    font-size: 28px;
  }

  .phl-hero-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1200px) {
  .phl-hero-title {
    font-size: 34px;
  }
}
/* ================================
   SECTION 2: DEPTH & PRESSURE FIELD
   ================================ */

.phl-depthband {
  padding-block: 64px 60px;
  background: radial-gradient(
      circle at 100% 0,
      rgba(79, 214, 255, 0.2),
      transparent 55%
    ),
    radial-gradient(circle at 0 100%, rgba(249, 248, 113, 0.16), transparent 60%),
    var(--phl-bg-alt);
}

.phl-depthband-inner {
  position: relative;
  border-radius: 32px;
  padding: 26px 22px 24px;
  background: linear-gradient(
      135deg,
      rgba(6, 40, 62, 0.95),
      rgba(3, 22, 35, 0.98)
    );
  border: 1px solid rgba(138, 192, 221, 0.35);
  box-shadow: var(--phl-shadow-soft);
  overflow: hidden;
}

.phl-depthband-inner::before {
  content: "";
  position: absolute;
  inset: -120px -40px auto;
  height: 140px;
  background: radial-gradient(
    circle at 50% 0,
    rgba(79, 214, 255, 0.35),
    transparent 70%
  );
  opacity: 0.7;
  pointer-events: none;
}

.phl-depthband-header {
  max-width: 520px;
  margin-bottom: 22px;
}

.phl-depthband-title {
  margin: 0 0 10px;
  font-family: "PHL-Display", system-ui, sans-serif;
  font-size: 24px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.phl-depthband-text {
  margin: 0;
  font-size: 14px;
  color: var(--phl-text-muted);
}

.phl-depthband-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1.1fr);
  gap: 26px;
  align-items: stretch;
}

.phl-depthband-left {
  display: grid;
  gap: 16px;
}

.phl-depthband-story {
  padding: 10px 12px;
  border-radius: 18px;
  background-color: rgba(3, 20, 31, 0.98);
  border: 1px solid rgba(138, 192, 221, 0.35);
}

.phl-depthband-label {
  margin: 0 0 4px;
  font-size: 13px;
  font-weight: 500;
  color: var(--phl-accent);
}

.phl-depthband-copy {
  margin: 0;
  font-size: 13px;
  color: var(--phl-text-main);
}

/* RIGHT COLUMN: bands & axis */

.phl-depthband-right {
  position: relative;
  padding: 14px 12px 10px;
  border-radius: 22px;
  background: radial-gradient(
      circle at 15% 0,
      rgba(79, 214, 255, 0.25),
      transparent 70%
    ),
    rgba(4, 18, 30, 0.98);
  border: 1px solid rgba(138, 192, 221, 0.4);
  overflow: hidden;
}

.phl-depthband-right::before {
  content: "";
  position: absolute;
  inset: 10px 40px;
  border-radius: 26px;
  border: 1px dashed rgba(138, 192, 221, 0.3);
  pointer-events: none;
}

.phl-depthband-axis {
  position: relative;
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--phl-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  margin-bottom: 10px;
}

.phl-depthband-axis-label--depth::before,
.phl-depthband-axis-label--pressure::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 6px;
  border-radius: 999px;
}

.phl-depthband-axis-label--depth::before {
  background: linear-gradient(180deg, #4fd6ff, #0060ff);
}

.phl-depthband-axis-label--pressure::before {
  background: linear-gradient(180deg, #f9f871, #ff8a5c);
}

.phl-depthband-bands {
  position: relative;
  display: grid;
  grid-template-rows: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.phl-depthband-bands::before {
  content: "";
  position: absolute;
  inset: 6px 50%;
  width: 1px;
  background-image: linear-gradient(
    to bottom,
    rgba(138, 192, 221, 0.1),
    rgba(138, 192, 221, 0.7),
    rgba(138, 192, 221, 0.1)
  );
  transform: translateX(-50%);
  opacity: 0.8;
}

.phl-depthband-hole {
  position: relative;
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 8px 10px;
  border-radius: 18px;
  background: linear-gradient(
    90deg,
    rgba(7, 41, 60, 0.95),
    rgba(4, 20, 31, 0.96)
  );
  border: 1px solid rgba(138, 192, 221, 0.4);
  box-shadow: 0 14px 30px rgba(0, 10, 24, 0.8);
}

.phl-depthband-hole::before {
  content: "";
  position: absolute;
  left: 50%;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: radial-gradient(circle, #f9f871, #4fd6ff);
  transform: translateX(-50%);
  box-shadow: 0 0 20px rgba(79, 214, 255, 0.9);
}

.phl-depthband-hole--shallow::before {
  top: 16%;
}

.phl-depthband-hole--mid::before {
  top: 50%;
}

.phl-depthband-hole--deep::before {
  top: 84%;
}

.phl-depthband-note {
  margin: 0;
  font-size: 11px;
  color: var(--phl-text-muted);
}

/* Depth band subtle glow */
@keyframes phlBandPulse {
  0% {
    box-shadow: 0 14px 30px rgba(0, 10, 24, 0.6);
  }
  50% {
    box-shadow: 0 18px 40px rgba(79, 214, 255, 0.9);
  }
  100% {
    box-shadow: 0 14px 30px rgba(0, 10, 24, 0.6);
  }
}

.phl-depthband-hole--mid {
  animation: phlBandPulse 9s ease-in-out infinite;
}

/* ================================
   SECTION 3: HOLE PASSPORT STRING
   ================================ */

.phl-passports {
  padding-block: 64px 60px;
  background-color: var(--phl-bg);
}

.phl-passports-inner {
  position: relative;
}

.phl-passports-header {
  max-width: 640px;
  margin: 0 auto 28px;
  text-align: center;
}

.phl-passports-title {
  margin: 0 0 10px;
  font-family: "PHL-Display", system-ui, sans-serif;
  font-size: 24px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.phl-passports-text {
  margin: 0;
  font-size: 14px;
  color: var(--phl-text-muted);
}

.phl-passport-strip {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.phl-passport-strip::before {
  content: "";
  position: absolute;
  top: 18px;
  left: 0;
  right: 0;
  height: 2px;
  background-image: linear-gradient(
    90deg,
    rgba(138, 192, 221, 0.1),
    rgba(79, 214, 255, 0.7),
    rgba(138, 192, 221, 0.1)
  );
  opacity: 0.7;
}

.phl-passport-card {
  position: relative;
  border-radius: 26px;
  padding: 20px 16px 16px;
  background: radial-gradient(
      circle at 0 0,
      rgba(79, 214, 255, 0.22),
      transparent 60%
    ),
    radial-gradient(
      circle at 100% 100%,
      rgba(249, 248, 113, 0.13),
      transparent 60%
    ),
    rgba(6, 33, 50, 0.98);
  border: 1px solid rgba(138, 192, 221, 0.4);
  box-shadow: var(--phl-shadow-subtle);
  clip-path: polygon(
    6% 0,
    94% 0,
    100% 10%,
    100% 90%,
    94% 100%,
    6% 100%,
    0 90%,
    0 10%
  );
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    border-color 0.22s ease;
}

.phl-passport-card::before,
.phl-passport-card::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  border: 1px solid rgba(138, 192, 221, 0.4);
  background-color: rgba(2, 10, 18, 0.9);
  top: 10px;
}

.phl-passport-card::before {
  left: -6px;
}

.phl-passport-card::after {
  right: -6px;
}

.phl-passport-card:hover {
  transform: translateY(-4px) rotate(-0.5deg);
  box-shadow: 0 22px 48px rgba(0, 10, 27, 0.95);
  border-color: rgba(79, 214, 255, 0.85);
}

.phl-passport-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.phl-passport-code {
  color: var(--phl-highlight);
}

.phl-passport-tag {
  padding: 3px 10px;
  border-radius: 999px;
  background-color: rgba(4, 24, 36, 0.9);
  border: 1px solid rgba(138, 192, 221, 0.4);
  color: var(--phl-text-muted);
}

.phl-passport-body {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.9fr);
  gap: 12px;
}

.phl-passport-label {
  margin: 0 0 2px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--phl-text-muted);
}

.phl-passport-value {
  margin: 0 0 8px;
  font-size: 13px;
}

.phl-passport-column--media {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.phl-passport-stamp {
  margin: 0;
}

.phl-passport-caption {
  margin: 6px 0 0;
  font-size: 11px;
  color: var(--phl-text-muted);
}

/* ================================
   SECTION 4: RIG SWAP TRAIL
   ================================ */

.phl-rigtrail {
  padding-block: 64px 62px;
  background: radial-gradient(
      circle at 100% 100%,
      rgba(79, 214, 255, 0.22),
      transparent 60%
    ),
    var(--phl-bg-alt);
}

.phl-rigtrail-inner {
  position: relative;
}

.phl-rigtrail-header {
  max-width: 650px;
  margin-bottom: 26px;
}

.phl-rigtrail-title {
  margin: 0 0 10px;
  font-family: "PHL-Display", system-ui, sans-serif;
  font-size: 24px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.phl-rigtrail-text {
  margin: 0;
  font-size: 14px;
  color: var(--phl-text-muted);
}

/* Track line */

.phl-rigtrail-track {
  position: relative;
  margin-top: 10px;
  margin-bottom: 18px;
  padding: 18px 6px 4px;
}

.phl-rigtrail-line {
  position: absolute;
  left: 10%;
  right: 10%;
  top: 46%;
  height: 2px;
  background: linear-gradient(
    90deg,
    rgba(138, 192, 221, 0.1),
    rgba(79, 214, 255, 0.9),
    rgba(249, 248, 113, 0.7),
    rgba(79, 214, 255, 0.9),
    rgba(138, 192, 221, 0.1)
  );
  opacity: 0.85;
}

/* Steps */

.phl-rigtrail-step {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr) minmax(0, 0.7fr);
  gap: 14px;
  align-items: center;
  margin-bottom: 18px;
  padding: 8px 10px;
}

.phl-rigtrail-step--one {
  transform: translateY(-6px);
}

.phl-rigtrail-step--two {
  transform: translateY(10px);
}

.phl-rigtrail-step--three {
  transform: translateY(-10px);
}

.phl-rigtrail-node {
  position: relative;
  justify-self: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(138, 192, 221, 0.6);
  background: radial-gradient(
    circle at 30% 0,
    rgba(79, 214, 255, 0.6),
    rgba(4, 18, 30, 0.98)
  );
  box-shadow: 0 0 14px rgba(0, 13, 30, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    border-color 0.22s ease;
}

.phl-rigtrail-index {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--phl-bg);
}

.phl-rigtrail-bubble {
  border-radius: 18px;
  padding: 10px 12px;
  background-color: rgba(3, 20, 31, 0.98);
  border: 1px solid rgba(138, 192, 221, 0.45);
}

.phl-rigtrail-label {
  margin: 0 0 4px;
  font-size: 13px;
  color: var(--phl-accent);
}

.phl-rigtrail-copy {
  margin: 0;
  font-size: 13px;
}

.phl-rigtrail-image {
  margin: 0;
  justify-self: flex-end;
  border-radius: 18px;
  padding: 6px;
  background: radial-gradient(
      circle at 0 0,
      rgba(79, 214, 255, 0.25),
      transparent 60%
    ),
    rgba(4, 18, 30, 0.96);
  border: 1px solid rgba(138, 192, 221, 0.4);
  box-shadow: var(--phl-shadow-subtle);
}

.phl-rigtrail-footnote {
  margin: 0;
  font-size: 12px;
  color: var(--phl-text-muted);
}

/* Active step — будет подсвечиваться через JS */

.phl-rigtrail-step.is-active .phl-rigtrail-node {
  transform: scale(1.1);
  border-color: rgba(249, 248, 113, 0.9);
  box-shadow: 0 0 22px rgba(249, 248, 113, 0.9);
}

.phl-rigtrail-step.is-active .phl-rigtrail-bubble {
  border-color: rgba(249, 248, 113, 0.8);
}

/* RESPONSIVE FOR SECTIONS 2–4 */

@media (max-width: 767px) {
  .phl-depthband-inner {
    padding: 18px 14px 16px;
  }

  .phl-depthband-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .phl-depthband-hole {
    grid-template-columns: minmax(0, 1fr);
  }

  .phl-passport-strip {
    grid-template-columns: minmax(0, 1fr);
  }

  .phl-passport-card {
    clip-path: none;
  }

  .phl-passport-body {
    grid-template-columns: minmax(0, 1fr);
  }

  .phl-rigtrail-track {
    padding-inline: 0;
  }

  .phl-rigtrail-line {
    left: 6%;
    right: 6%;
  }

  .phl-rigtrail-step {
    grid-template-columns: minmax(0, 1fr);
    padding-inline: 0;
  }

  .phl-rigtrail-step--one,
  .phl-rigtrail-step--two,
  .phl-rigtrail-step--three {
    transform: translateY(0);
  }

  .phl-rigtrail-image {
    justify-self: flex-start;
  }
}

@media (min-width: 768px) and (max-width: 1199px) {
  .phl-passport-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .phl-rigtrail-step {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr) minmax(0, 0.7fr);
  }
}
/* ================================
   SECTION 5: TIME WINDOW HALO
   ================================ */

.phl-timehalo {
  padding-block: 60px 56px;
  background-color: var(--phl-bg);
}

.phl-timehalo-inner {
  border-radius: 30px;
  padding: 22px 20px 20px;
  background: radial-gradient(
      circle at 0 0,
      rgba(79, 214, 255, 0.22),
      transparent 60%
    ),
    radial-gradient(
      circle at 100% 100%,
      rgba(249, 248, 113, 0.18),
      transparent 60%
    ),
    rgba(4, 20, 31, 0.98);
  border: 1px solid rgba(138, 192, 221, 0.4);
  box-shadow: var(--phl-shadow-subtle);
}

.phl-timehalo-header {
  max-width: 560px;
  margin-bottom: 20px;
}

.phl-timehalo-title {
  margin: 0 0 8px;
  font-family: "PHL-Display", system-ui, sans-serif;
  font-size: 22px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.phl-timehalo-text {
  margin: 0;
  font-size: 14px;
  color: var(--phl-text-muted);
}

.phl-timehalo-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 20px;
  align-items: center;
}

.phl-timehalo-main {
  margin: 0;
}

.phl-timehalo-caption {
  margin: 8px 0 0;
  font-size: 12px;
  color: var(--phl-text-muted);
}

.phl-timehalo-side {
  display: grid;
  gap: 10px;
}

.phl-timehalo-chip {
  margin: 0;
  padding: 8px 9px;
  border-radius: 18px;
  background-color: rgba(3, 20, 31, 0.98);
  border: 1px solid rgba(138, 192, 221, 0.4);
}

.phl-timehalo-chip-caption {
  margin: 6px 0 0;
  font-size: 12px;
  color: var(--phl-text-muted);
}

/* subtle rotation animation on main halo image */
.phl-timehalo-main img {
  animation: phlHaloRotate 26s linear infinite;
}

@keyframes phlHaloRotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(6deg);
  }
}

/* ================================
   SECTION 6: ICE NOISE SCALE
   ================================ */

.phl-noisescale {
  padding-block: 58px 56px;
  background: var(--phl-bg-alt);
}

.phl-noisescale-inner {
  position: relative;
}

.phl-noisescale-header {
  max-width: 600px;
  margin-bottom: 18px;
}

.phl-noisescale-title {
  margin: 0 0 8px;
  font-family: "PHL-Display", system-ui, sans-serif;
  font-size: 22px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.phl-noisescale-text {
  margin: 0;
  font-size: 14px;
  color: var(--phl-text-muted);
}

.phl-noisescale-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 22px;
  align-items: center;
}

.phl-noisescale-bars {
  display: grid;
  gap: 10px;
}

.phl-noisescale-lane {
  position: relative;
  padding: 10px 12px;
  border-radius: 18px;
  background: linear-gradient(
    90deg,
    rgba(6, 33, 50, 0.96),
    rgba(4, 18, 30, 0.98)
  );
  overflow: hidden;
}

.phl-noisescale-lane::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 18px;
  background: linear-gradient(
    90deg,
    rgba(79, 214, 255, 0.2),
    transparent 60%
  );
  mix-blend-mode: screen;
  opacity: 0.4;
  pointer-events: none;
}

.phl-noisescale-lane--quiet {
  box-shadow: 0 10px 28px rgba(0, 10, 24, 0.7);
}

.phl-noisescale-lane--creak {
  box-shadow: 0 12px 30px rgba(0, 10, 24, 0.75);
}

.phl-noisescale-lane--loud {
  box-shadow: 0 14px 36px rgba(0, 10, 24, 0.9);
}

.phl-noisescale-label {
  margin: 0 0 4px;
  font-size: 13px;
  color: var(--phl-accent);
}

.phl-noisescale-note {
  margin: 0;
  font-size: 13px;
}

.phl-noisescale-images {
  display: grid;
  gap: 10px;
}

.phl-noisescale-photo {
  margin: 0;
  border-radius: 18px;
  padding: 6px;
  background-color: rgba(3, 20, 31, 0.98);
  border: 1px solid rgba(138, 192, 221, 0.4);
}

/* Glow on loud lane via CSS animation */

@keyframes phlNoisePulse {
  0% {
    box-shadow: 0 14px 36px rgba(0, 10, 24, 0.9);
  }
  50% {
    box-shadow: 0 20px 44px rgba(255, 107, 129, 0.9);
  }
  100% {
    box-shadow: 0 14px 36px rgba(0, 10, 24, 0.9);
  }
}

.phl-noisescale-lane--loud {
  animation: phlNoisePulse 11s ease-in-out infinite;
}

/* ================================
   SECTION 7: QUICK ANOMALY LOG
   ================================ */

.phl-anomalies {
  padding-block: 58px 56px;
  background-color: var(--phl-bg);
}

.phl-anomalies-header {
  max-width: 560px;
  margin-bottom: 18px;
}

.phl-anomalies-title {
  margin: 0 0 8px;
  font-family: "PHL-Display", system-ui, sans-serif;
  font-size: 22px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.phl-anomalies-text {
  margin: 0;
  font-size: 14px;
  color: var(--phl-text-muted);
}

.phl-anomalies-list {
  position: relative;
  display: grid;
  gap: 10px;
}

.phl-anomalies-list::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 0;
  bottom: 0;
  width: 2px;
  background-image: linear-gradient(
    to bottom,
    rgba(138, 192, 221, 0.1),
    rgba(79, 214, 255, 0.85),
    rgba(138, 192, 221, 0.1)
  );
}

.phl-anomaly-item {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(0, 0.8fr);
  gap: 10px;
  align-items: center;
  padding: 8px 10px 10px 30px;
  border-radius: 20px;
  background-color: rgba(4, 18, 30, 0.98);
  border: 1px solid rgba(138, 192, 221, 0.35);
}

.phl-anomaly-line {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: radial-gradient(circle, #f9f871, #4fd6ff);
  box-shadow: 0 0 14px rgba(79, 214, 255, 0.8);
}

.phl-anomaly-label {
  margin: 0 0 4px;
  font-size: 13px;
  color: var(--phl-accent);
}

.phl-anomaly-note {
  margin: 0;
  font-size: 13px;
}

.phl-anomaly-thumb {
  margin: 0;
  justify-self: flex-end;
  border-radius: 16px;
  padding: 4px;
  background-color: rgba(3, 20, 31, 0.98);
  border: 1px solid rgba(138, 192, 221, 0.4);
}

/* hover: highlight anomaly */

.phl-anomaly-item:hover {
  border-color: rgba(249, 248, 113, 0.85);
}

/* RESPONSIVE FOR 5–7 */

@media (max-width: 767px) {
  .phl-timehalo-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .phl-noisescale-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .phl-anomalies-list::before {
    left: 14px;
  }

  .phl-anomaly-item {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .phl-anomaly-thumb {
    justify-self: flex-start;
    margin-top: 4px;
  }
}

@media (min-width: 768px) and (max-width: 1199px) {
  .phl-timehalo-layout {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  }

  .phl-noisescale-layout {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  }
}
/* ================================
   SECTION 8: SESSION MATRIX PANEL
   ================================ */

.phl-sessiongrid {
  padding-block: 60px 56px;
  background: var(--phl-bg-alt);
}

.phl-sessiongrid-inner {
  border-radius: 30px;
  padding: 22px 18px 20px;
  background: linear-gradient(
      135deg,
      rgba(6, 33, 50, 0.98),
      rgba(4, 18, 30, 0.98)
    );
  border: 1px solid rgba(138, 192, 221, 0.4);
  box-shadow: var(--phl-shadow-soft);
}

.phl-sessiongrid-header {
  max-width: 600px;
  margin-bottom: 20px;
}

.phl-sessiongrid-title {
  margin: 0 0 8px;
  font-family: "PHL-Display", system-ui, sans-serif;
  font-size: 22px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.phl-sessiongrid-text {
  margin: 0;
  font-size: 14px;
  color: var(--phl-text-muted);
}

.phl-sessiongrid-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 20px;
  align-items: stretch;
}

/* Table-like matrix */

.phl-sessiongrid-table {
  position: relative;
  border-radius: 20px;
  padding: 12px 12px 10px;
  background-color: rgba(3, 20, 31, 0.98);
  border: 1px solid rgba(138, 192, 221, 0.5);
  overflow: hidden;
}

.phl-sessiongrid-table::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(
      to right,
      var(--phl-grid-line) 1px,
      transparent 1px
    ),
    linear-gradient(to bottom, var(--phl-grid-line) 1px, transparent 1px);
  background-size: 25% 33%;
  opacity: 0.5;
  pointer-events: none;
}

.phl-sessiongrid-head,
.phl-sessiongrid-row {
  display: grid;
  grid-template-columns: 0.65fr 1fr 1fr 1.4fr;
  gap: 0;
  position: relative;
  z-index: 1;
}

.phl-sessiongrid-head {
  margin-bottom: 6px;
}

.phl-sessiongrid-cell {
  padding: 6px 8px;
  font-size: 12px;
}

.phl-sessiongrid-cell--head {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 11px;
  color: var(--phl-text-muted);
}

.phl-sessiongrid-cell--code {
  font-family: "PHL-Display", system-ui, sans-serif;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 12px;
  color: var(--phl-highlight);
}

/* subtle row highlight animation */

@keyframes phlRowGlow {
  0% {
    background-color: transparent;
  }
  50% {
    background-color: rgba(79, 214, 255, 0.16);
  }
  100% {
    background-color: transparent;
  }
}

.phl-sessiongrid-row--two .phl-sessiongrid-cell {
  animation: phlRowGlow 12s ease-in-out infinite;
}

.phl-sessiongrid-side {
  display: grid;
  gap: 10px;
}

.phl-sessiongrid-photo {
  margin: 0;
  border-radius: 18px;
  padding: 6px;
  background-color: rgba(3, 20, 31, 0.98);
  border: 1px solid rgba(138, 192, 221, 0.4);
  box-shadow: var(--phl-shadow-subtle);
}

.phl-sessiongrid-caption {
  margin: 6px 0 0;
  font-size: 12px;
  color: var(--phl-text-muted);
}

/* ================================
   SECTION 9: UNDER-ICE CROSS-SECTION
   ================================ */

.phl-crosssection {
  padding-block: 60px 56px;
  background-color: var(--phl-bg);
}

.phl-crosssection-inner {
  position: relative;
}

.phl-crosssection-header {
  max-width: 600px;
  margin-bottom: 20px;
}

.phl-crosssection-title {
  margin: 0 0 8px;
  font-family: "PHL-Display", system-ui, sans-serif;
  font-size: 22px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.phl-crosssection-text {
  margin: 0;
  font-size: 14px;
  color: var(--phl-text-muted);
}

.phl-crosssection-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.1fr);
  gap: 22px;
  align-items: center;
}

.phl-crosssection-main {
  margin: 0;
  border-radius: 24px;
  padding: 10px 10px 11px;
  background: radial-gradient(
      circle at 0 0,
      rgba(79, 214, 255, 0.24),
      transparent 60%
    ),
    rgba(4, 18, 30, 0.98);
  border: 1px solid rgba(138, 192, 221, 0.45);
  box-shadow: var(--phl-shadow-subtle);
}

.phl-crosssection-caption {
  margin: 8px 0 0;
  font-size: 12px;
  color: var(--phl-text-muted);
}

.phl-crosssection-notes {
  display: grid;
  gap: 10px;
}

.phl-crosssection-note {
  padding: 8px 10px;
  border-radius: 18px;
  background-color: rgba(3, 20, 31, 0.98);
  border: 1px solid rgba(138, 192, 221, 0.4);
}

.phl-crosssection-label {
  margin: 0 0 4px;
  font-size: 13px;
  color: var(--phl-accent);
}

.phl-crosssection-copy {
  margin: 0;
  font-size: 13px;
}

.phl-crosssection-photo {
  margin: 0;
  border-radius: 18px;
  padding: 6px;
  background-color: rgba(3, 20, 31, 0.98);
  border: 1px solid rgba(138, 192, 221, 0.4);
}

/* small shimmer moving down the cross-section */

@keyframes phlSliceGlow {
  0% {
    box-shadow: 0 0 0 rgba(79, 214, 255, 0.0);
  }
  50% {
    box-shadow: 0 0 26px rgba(79, 214, 255, 0.9);
  }
  100% {
    box-shadow: 0 0 0 rgba(79, 214, 255, 0.0);
  }
}

.phl-crosssection-main {
  animation: phlSliceGlow 18s ease-in-out infinite;
}

/* ================================
   SECTION 10: FIELD LOOP MINI-PROTOCOL
   ================================ */

.phl-loops {
  padding-block: 58px 56px;
  background: var(--phl-bg-alt);
}

.phl-loops-inner {
  position: relative;
}

.phl-loops-header {
  max-width: 560px;
  margin-bottom: 20px;
}

.phl-loops-title {
  margin: 0 0 8px;
  font-family: "PHL-Display", system-ui, sans-serif;
  font-size: 22px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.phl-loops-text {
  margin: 0;
  font-size: 14px;
  color: var(--phl-text-muted);
}

.phl-loops-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 22px;
  align-items: center;
}

/* circular loop layout */

.phl-loops-steps {
  position: relative;
  width: 100%;
  max-width: 420px;
  aspect-ratio: 4 / 3;
  margin: 0 auto;
  border-radius: 999px;
  background: radial-gradient(
      circle at 0 0,
      rgba(79, 214, 255, 0.35),
      transparent 60%
    ),
    radial-gradient(
      circle at 100% 100%,
      rgba(249, 248, 113, 0.2),
      transparent 60%
    ),
    rgba(4, 18, 30, 0.98);
  border: 1px solid rgba(138, 192, 221, 0.5);
  box-shadow: var(--phl-shadow-subtle);
  display: grid;
  place-items: center;
}

.phl-loop {
  position: absolute;
  width: 46%;
  max-width: 200px;
  padding: 8px 10px;
  border-radius: 18px;
  background-color: rgba(3, 20, 31, 0.98);
  border: 1px solid rgba(138, 192, 221, 0.4);
  font-size: 13px;
}

.phl-loop--plan {
  top: 6%;
  left: 50%;
  transform: translateX(-50%);
}

.phl-loop--drill {
  left: 4%;
  bottom: 10%;
}

.phl-loop--debrief {
  right: 4%;
  bottom: 10%;
}

.phl-loop-label {
  margin: 0 0 4px;
  font-size: 13px;
  color: var(--phl-accent);
}

.phl-loop-text {
  margin: 0;
  font-size: 13px;
}

/* orbit ring */

.phl-loop-orbit {
  position: absolute;
  inset: 16%;
  border-radius: 999px;
  border: 1px dashed rgba(138, 192, 221, 0.65);
  pointer-events: none;
  animation: phlOrbitSpin 32s linear infinite;
}

@keyframes phlOrbitSpin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(12deg);
  }
}

.phl-loops-photos {
  display: grid;
  gap: 10px;
}

.phl-loops-photo {
  margin: 0;
  border-radius: 18px;
  padding: 6px;
  background-color: rgba(3, 20, 31, 0.98);
  border: 1px solid rgba(138, 192, 221, 0.4);
}

/* RESPONSIVE FOR 8–10 */

@media (max-width: 767px) {
  .phl-sessiongrid-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .phl-sessiongrid-head,
  .phl-sessiongrid-row {
    grid-template-columns: 0.8fr 1.1fr 1.1fr 1.6fr;
  }

  .phl-crosssection-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .phl-loops-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .phl-loops-steps {
    max-width: 360px;
    aspect-ratio: 1;
  }

  .phl-loop--plan {
    top: 4%;
  }

  .phl-loop--drill,
  .phl-loop--debrief {
    bottom: 8%;
  }
}

@media (min-width: 768px) and (max-width: 1199px) {
  .phl-sessiongrid-layout {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  }

  .phl-crosssection-layout {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.05fr);
  }

  .phl-loops-layout {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  }
}
/* ================================
   SECTION 11: SPECIES RESPONSE LADDER
   ================================ */

.phl-species {
  padding-block: 58px 56px;
  background-color: var(--phl-bg);
}

.phl-species-inner {
  position: relative;
}

.phl-species-header {
  max-width: 560px;
  margin-bottom: 20px;
}

.phl-species-title {
  margin: 0 0 8px;
  font-family: "PHL-Display", system-ui, sans-serif;
  font-size: 22px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.phl-species-text {
  margin: 0;
  font-size: 14px;
  color: var(--phl-text-muted);
}

.phl-species-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 22px;
  align-items: center;
}

/* Ladder */

.phl-species-ladder {
  position: relative;
  padding-left: 26px;
}

.phl-species-ladder::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background-image: linear-gradient(
    to bottom,
    rgba(138, 192, 221, 0.2),
    rgba(79, 214, 255, 0.9),
    rgba(138, 192, 221, 0.2)
  );
}

.phl-species-rung {
  position: relative;
  padding: 8px 10px;
  border-radius: 16px;
  background-color: rgba(4, 18, 30, 0.98);
  border: 1px solid rgba(138, 192, 221, 0.4);
  margin-bottom: 10px;
}

.phl-species-rung:last-child {
  margin-bottom: 0;
}

.phl-species-rung::before {
  content: "";
  position: absolute;
  left: -16px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: radial-gradient(circle, #f9f871, #4fd6ff);
  transform: translateY(-50%);
  box-shadow: 0 0 16px rgba(79, 214, 255, 0.85);
}

.phl-species-name {
  display: block;
  font-size: 13px;
  color: var(--phl-accent);
  margin-bottom: 2px;
}

.phl-species-note {
  display: block;
  font-size: 13px;
}

.phl-species-photos {
  display: grid;
  gap: 10px;
}

.phl-species-photo {
  margin: 0;
  border-radius: 18px;
  padding: 6px;
  background-color: rgba(3, 20, 31, 0.98);
  border: 1px solid rgba(138, 192, 221, 0.4);
}

/* ================================
   SECTION 12: MICRO DECISION STRIP
   ================================ */

.phl-decisions {
  padding-block: 58px 56px;
  background: var(--phl-bg-alt);
}

.phl-decisions-inner {
  position: relative;
}

.phl-decisions-header {
  max-width: 600px;
  margin-bottom: 18px;
}

.phl-decisions-title {
  margin: 0 0 8px;
  font-family: "PHL-Display", system-ui, sans-serif;
  font-size: 22px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.phl-decisions-text {
  margin: 0;
  font-size: 14px;
  color: var(--phl-text-muted);
}

.phl-decisions-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 22px;
  align-items: center;
}

/* Pills strip */

.phl-decisions-strip {
  position: relative;
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 20px;
  overflow-x: auto;
  background-color: rgba(3, 20, 31, 0.98);
  border: 1px solid rgba(138, 192, 221, 0.5);
  scrollbar-width: thin;
}

.phl-decision-pill {
  flex: 0 0 auto;
  min-width: 180px;
  max-width: 240px;
  padding: 8px 9px;
  border-radius: 16px;
  background-color: rgba(4, 24, 36, 0.98);
  border: 1px solid rgba(138, 192, 221, 0.4);
}

.phl-decision-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 10px;
  margin-bottom: 4px;
  border-radius: 999px;
  background-color: rgba(6, 40, 62, 0.98);
  color: var(--phl-highlight);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.phl-decision-text {
  margin: 0;
  font-size: 13px;
}

.phl-decisions-photos {
  display: grid;
  gap: 10px;
}

.phl-decisions-photo {
  margin: 0;
  border-radius: 18px;
  padding: 6px;
  background-color: rgba(3, 20, 31, 0.98);
  border: 1px solid rgba(138, 192, 221, 0.4);
}

/* ================================
   SECTION 13: FIRST LAB KIT LAYOUT
   ================================ */

.phl-firstkit {
  padding-block: 58px 56px;
  background-color: var(--phl-bg);
}

.phl-firstkit-inner {
  position: relative;
}

.phl-firstkit-header {
  max-width: 620px;
  margin-bottom: 20px;
}

.phl-firstkit-title {
  margin: 0 0 8px;
  font-family: "PHL-Display", system-ui, sans-serif;
  font-size: 22px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.phl-firstkit-text {
  margin: 0;
  font-size: 14px;
  color: var(--phl-text-muted);
}

.phl-firstkit-layout {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.phl-firstkit-photo {
  margin: 0;
  border-radius: 20px;
  padding: 8px 8px 10px;
  background: radial-gradient(
      circle at 0 0,
      rgba(79, 214, 255, 0.28),
      transparent 60%
    ),
    rgba(4, 18, 30, 0.98);
  border: 1px solid rgba(138, 192, 221, 0.45);
  box-shadow: var(--phl-shadow-subtle);
}

.phl-firstkit-caption {
  margin: 8px 0 0;
  font-size: 12px;
  color: var(--phl-text-muted);
}

/* RESPONSIVE FOR 11–13 */

@media (max-width: 767px) {
  .phl-species-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .phl-decisions-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .phl-firstkit-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (min-width: 768px) and (max-width: 1199px) {
  .phl-species-layout {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  }

  .phl-decisions-layout {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  }

  .phl-firstkit-layout {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
/* ================================
   SECTION 14: LAB SHELF TIMELINE
   ================================ */

.phl-labshelf {
  padding-block: 58px 56px;
  background: var(--phl-bg-alt);
}

.phl-labshelf-inner {
  position: relative;
}

.phl-labshelf-header {
  max-width: 600px;
  margin-bottom: 20px;
}

.phl-labshelf-title {
  margin: 0 0 8px;
  font-family: "PHL-Display", system-ui, sans-serif;
  font-size: 22px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.phl-labshelf-text {
  margin: 0;
  font-size: 14px;
  color: var(--phl-text-muted);
}

.phl-labshelf-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 24px;
  align-items: center;
}

/* Timeline column */

.phl-labshelf-timeline {
  position: relative;
  padding-left: 22px;
}

.phl-labshelf-timeline::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 4px;
  bottom: 4px;
  width: 2px;
  background-image: linear-gradient(
    to bottom,
    rgba(138, 192, 221, 0.15),
    rgba(79, 214, 255, 0.9),
    rgba(249, 248, 113, 0.8),
    rgba(138, 192, 221, 0.15)
  );
}

.phl-labshelf-row {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 10px;
  row-gap: 2px;
  padding: 8px 10px;
  border-radius: 18px;
  background-color: rgba(4, 18, 30, 0.98);
  border: 1px solid rgba(138, 192, 221, 0.4);
  margin-bottom: 10px;
}

.phl-labshelf-row:last-child {
  margin-bottom: 0;
}

.phl-labshelf-dot {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: radial-gradient(circle, #f9f871, #4fd6ff);
  box-shadow: 0 0 16px rgba(79, 214, 255, 0.9);
  align-self: center;
}

.phl-labshelf-label {
  margin: 0 0 3px;
  font-size: 13px;
  color: var(--phl-accent);
}

.phl-labshelf-note {
  margin: 0;
  font-size: 13px;
}

.phl-labshelf-row--mid {
  transform: translateX(4px);
}

.phl-labshelf-row--thaw {
  transform: translateX(8px);
}

/* Photos column */

.phl-labshelf-photos {
  position: relative;
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
}

.phl-labshelf-photo {
  margin: 0;
  position: absolute;
  border-radius: 18px;
  padding: 6px;
  background-color: rgba(3, 20, 31, 0.98);
  border: 1px solid rgba(138, 192, 221, 0.45);
  box-shadow: var(--phl-shadow-subtle);
}

.phl-labshelf-photo--stack {
  top: 0;
  left: 6%;
  right: 18%;
  z-index: 3;
}

.phl-labshelf-photo--thaw {
  top: 40%;
  right: 0;
  left: 30%;
  transform: rotate(4deg);
  z-index: 2;
}

.phl-labshelf-photo--screen {
  bottom: 0;
  left: 0;
  right: 35%;
  transform: rotate(-4deg);
  z-index: 1;
}

/* gentle breathing on middle photo */

@keyframes phlShelfPulse {
  0% {
    transform: rotate(4deg) translateY(0);
  }
  50% {
    transform: rotate(4deg) translateY(-4px);
  }
  100% {
    transform: rotate(4deg) translateY(0);
  }
}

.phl-labshelf-photo--thaw {
  animation: phlShelfPulse 14s ease-in-out infinite;
}

/* ================================
   SECTION 15: QUIET LAB INVITE
   ================================ */

.phl-closing {
  padding-block: 60px 70px;
  background-color: var(--phl-bg);
}

.phl-closing-inner {
  position: relative;
}

.phl-closing-inner::before {
  content: "";
  position: absolute;
  inset: -40px -10%;
  background: radial-gradient(
    circle at 50% 0,
    rgba(79, 214, 255, 0.32),
    transparent 60%
  );
  opacity: 0.4;
  pointer-events: none;
}

.phl-closing-header {
  max-width: 620px;
  margin-bottom: 20px;
}

.phl-closing-title {
  margin: 0 0 8px;
  font-family: "PHL-Display", system-ui, sans-serif;
  font-size: 22px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.phl-closing-text {
  margin: 0;
  font-size: 14px;
  color: var(--phl-text-muted);
}

.phl-closing-layout {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 24px;
  align-items: center;
}

/* Left column: bullets + actions */

.phl-closing-main {
  position: relative;
  border-radius: 24px;
  padding: 16px 16px 14px;
  background-color: rgba(4, 18, 30, 0.98);
  border: 1px solid rgba(138, 192, 221, 0.45);
  box-shadow: var(--phl-shadow-subtle);
}

.phl-closing-list {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
}

.phl-closing-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 8px;
  row-gap: 3px;
  margin-bottom: 8px;
}

.phl-closing-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: radial-gradient(circle, #f9f871, #4fd6ff);
  box-shadow: 0 0 16px rgba(79, 214, 255, 0.9);
  align-self: center;
}

.phl-closing-copy {
  font-size: 13px;
}

.phl-closing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* Right column: closing images */

.phl-closing-photos {
  position: relative;
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
}

.phl-closing-photo {
  margin: 0;
  position: absolute;
  border-radius: 18px;
  padding: 6px;
  background-color: rgba(3, 20, 31, 0.98);
  border: 1px solid rgba(138, 192, 221, 0.45);
  box-shadow: var(--phl-shadow-subtle);
}

.phl-closing-photo--lantern {
  top: 0;
  left: 10%;
  right: 30%;
  z-index: 3;
}

.phl-closing-photo--duo {
  top: 34%;
  right: 4%;
  left: 28%;
  transform: rotate(3deg);
  z-index: 2;
}

.phl-closing-photo--solo {
  bottom: 0;
  left: 0;
  right: 40%;
  transform: rotate(-3deg);
  z-index: 1;
}

/* glow on top image */

@keyframes phlClosingGlow {
  0% {
    box-shadow: 0 14px 32px rgba(0, 10, 24, 0.85);
  }
  50% {
    box-shadow: 0 20px 48px rgba(79, 214, 255, 0.95);
  }
  100% {
    box-shadow: 0 14px 32px rgba(0, 10, 24, 0.85);
  }
}

.phl-closing-photo--lantern {
  animation: phlClosingGlow 16s ease-in-out infinite;
}

/* RESPONSIVE FOR 14–15 */

@media (max-width: 767px) {
  .phl-labshelf-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .phl-labshelf-photos {
    position: relative;
    max-width: 100%;
    height: auto;
    padding-top: 8px;
  }

  .phl-labshelf-photo {
    position: relative;
    transform: none;
    margin-bottom: 8px;
  }

  .phl-labshelf-photo--stack,
  .phl-labshelf-photo--thaw,
  .phl-labshelf-photo--screen {
    top: auto;
    bottom: auto;
    left: auto;
    right: auto;
    animation: none;
  }

  .phl-closing-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .phl-closing-photos {
    position: relative;
    max-width: 100%;
    padding-top: 10px;
  }

  .phl-closing-photo {
    position: relative;
    transform: none;
    margin-bottom: 8px;
  }

  .phl-closing-photo--lantern,
  .phl-closing-photo--duo,
  .phl-closing-photo--solo {
    top: auto;
    bottom: auto;
    left: auto;
    right: auto;
    animation: none;
  }
}

@media (min-width: 768px) and (max-width: 1199px) {
  .phl-labshelf-layout {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  }

  .phl-closing-layout {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  }
}
/* --- FIX: LAB SHELF PHOTOS AS GRID, NO OVERLAP --- */

.phl-labshelf-photos {
  position: relative;
  width: 100%;
  max-width: 100%;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding-top: 4px;
}

.phl-labshelf-photo {
  position: relative;
  transform: none;
  margin: 0;
  border-radius: 18px;
  padding: 6px;
  background-color: rgba(3, 20, 31, 0.98);
  border: 1px solid rgba(138, 192, 221, 0.45);
  box-shadow: var(--phl-shadow-subtle);
  animation: none; /* убираем "дыхание", чтобы не прыгало */
}

/* --- FIX: CLOSING PHOTOS AS GRID, NO OVERLAP --- */

.phl-closing-photos {
  position: relative;
  width: 100%;
  max-width: 100%;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding-top: 4px;
}

.phl-closing-photo {
  position: relative;
  transform: none;
  margin: 0;
  border-radius: 18px;
  padding: 6px;
  background-color: rgba(3, 20, 31, 0.98);
  border: 1px solid rgba(138, 192, 221, 0.45);
  box-shadow: var(--phl-shadow-subtle);
  animation: none;
}

/* на мобильных можно стэкнуть в одну колонку, чтобы крупнее были */

@media (max-width: 767px) {
  .phl-labshelf-photos,
  .phl-closing-photos {
    grid-template-columns: minmax(0, 1fr);
  }
}
/* =========================================
   MOBILE FIXES (≤767px) — HERO + ANOMALIES
   ========================================= */

@media (max-width: 767px) {
  /* HERO: делаем одну колонку, чипы на всю ширину */

  .phl-hero-inner,
  .phl-hero-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    row-gap: 20px;
    padding: 18px 14px 22px;
  }

  .phl-hero-main {
    order: 1;
    max-width: none;
  }

  .phl-hero-side {
    order: 2;
  }

  /* сетка с “капсулами” в герое — в столбик */

  .phl-hero-orbit-grid,
  .phl-hero-microgrid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    row-gap: 12px;
  }

  .phl-hero-chip {
    max-width: 100%;
  }

  /* ANOMALIES: убираем таймлайн-линию и делаем карточки стэком */

  .phl-anomalies-list::before {
    display: none;
  }

  .phl-anomaly-item {
    grid-template-columns: minmax(0, 1fr);
    padding: 10px 10px 10px 14px;
  }

  .phl-anomaly-line {
    margin-bottom: 6px;
  }

  .phl-anomaly-main {
    order: 2;
  }

  .phl-anomaly-thumb {
    order: 1;
    justify-self: flex-start;
    margin-bottom: 6px;
    max-width: 260px;
  }
}
/* FINAL FIX: hero photos — no cropping */

.phl-hero-chip,
.phl-hero-chip-media {
  height: auto;
  aspect-ratio: auto;
}

/* максимально конкретный селектор + !important */
.phl-hero-chip-media img.phl-image-constraint,
.phl-hero-chip img.phl-image-constraint {
  display: block;
  width: 100% !important;
  max-width: 350px;
  height: auto !important;
  object-fit: contain !important; /* вместо cover */
}
/* =========================================
   UNIVERSAL IMAGE SAFETY FIX
   (для всех секций)
   ========================================= */

/* 1. Все figure и img адаптируются под контейнер */
figure {
  max-width: 100%;
  height: auto;
  overflow: hidden;
  border-radius: inherit;
  margin: 0;
}

/* 2. Все изображения вписываются в родителя */
img.phl-image-constraint,
.phl-section img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: contain !important; /* не обрезает */
  border-radius: inherit;
}

/* 3. Все карточки не дают изображению выйти за рамки */
.phl-section,
.phl-section * {
  box-sizing: border-box;
  overflow-clip-margin: content-box;
  overflow: hidden;
}

/* 4. Для сложных layout-контейнеров */
.phl-depthband-hole,
.phl-passport-card,
.phl-rigtrail-step,
.phl-timehalo-chip,
.phl-noisescale-photo,
.phl-anomaly-item,
.phl-sessiongrid-photo,
.phl-crosssection-main,
.phl-crosssection-photo,
.phl-loops-photo,
.phl-species-photo,
.phl-decisions-photo,
.phl-firstkit-photo,
.phl-labshelf-photo,
.phl-closing-photo {
  overflow: hidden;
  border-radius: 18px;
}

.phl-depthband-hole img,
.phl-passport-card img,
.phl-rigtrail-step img,
.phl-timehalo-chip img,
.phl-noisescale-photo img,
.phl-anomaly-item img,
.phl-sessiongrid-photo img,
.phl-crosssection-main img,
.phl-crosssection-photo img,
.phl-loops-photo img,
.phl-species-photo img,
.phl-decisions-photo img,
.phl-firstkit-photo img,
.phl-labshelf-photo img,
.phl-closing-photo img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* 5. На всякий случай убираем любые абсолютные позиции у img */
img.phl-image-constraint {
  position: static !important;
  inset: auto !important;
  transform: none !important;
}
/* ===== GLOBAL IMAGE SAFETY INSIDE PAGES ===== */

/* Все картинки внутри main: не шире контейнера и не больше 350px */
main img {
  display: block;
  width: 100%;
  max-width: 350px;
  height: auto;
  object-fit: contain;   /* не режем картинку, просто вписываем внутрь */
}

/* Любые фотокарточки/превью: не даём содержимому вылезти наружу */
main figure,
main [class*="-photo"],
main [class*="-image"],
main [class*="-thumb"] {
  overflow: hidden;
}
/* Глобальное ограничение размера всех фотографий */
img.phl-image-constraint {
  display: block;
  width: 100%;
  max-width: 350px !important; /* ширина не больше 350px */
  height: auto !important;      /* высота сама подстраивается */
  object-fit: contain !important; /* ничего не режем, вписываем внутрь */
  margin-inline: auto;          /* центрируем в блоке */
}

/* На всякий случай, если где-то обёртка задаёт жёсткую высоту */
figure img.phl-image-constraint,
[class*="-photo"] img.phl-image-constraint {
  height: auto !important;
}
