/* ============================================================
   CONTENT PAGES + HOMEPAGE "INSIDE THE TUNNEL"
   ------------------------------------------------------------
   Shared layout system for /tunnel-car-wash-gurgaon/,
   /ceramic-coating-ppf-gurgaon/, /faq/, /404.html and the
   homepage #inside section. Built on the tokens in /index.css.
   Reveal motion is opt-in: only applies when <html class="js">.
   ============================================================ */

/* --- Page shell ---------------------------------------------- */
.page {
  background: var(--black);
}

.page main {
  display: block;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 200;
  padding: 0.75rem 1rem;
  background: var(--electric-blue);
  color: var(--black);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
}

.skip-link:focus {
  top: 1rem;
}

:where(.page, .inside) a:focus-visible,
:where(.page, .inside) summary:focus-visible,
:where(.page, .inside) button:focus-visible {
  outline: 2px solid var(--electric-blue);
  outline-offset: 3px;
  border-radius: 4px;
}

/* --- Reveal (progressive enhancement) ------------------------ */
.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 1s var(--ease-out),
    transform 1s var(--ease-out);
  transition-delay: var(--d, 0s);
}

.js .reveal.is-in {
  opacity: 1;
  transform: none;
}

/* --- Typography primitives ----------------------------------- */
.p-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--electric-blue);
}

.p-kicker::before {
  content: '';
  width: 28px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--electric-blue));
}

.p-h2 {
  margin-top: 1rem;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4.2vw, 3.5rem);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.025em;
  color: var(--white);
  text-wrap: balance;
}

.p-h2 em,
.p-title em {
  font-style: normal;
  background-image: linear-gradient(180deg, #7dd6ff 0%, var(--electric-blue) 55%, #0080cc 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.p-intro {
  margin-top: 1.25rem;
  max-width: 42rem;
  font-size: clamp(1rem, 1.25vw, 1.125rem);
  line-height: 1.75;
  color: var(--text-secondary);
}

.p-intro a,
.p-prose a {
  color: var(--electric-blue);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

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

.p-prose p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-secondary);
}

.p-prose strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* --- Sections ------------------------------------------------ */
.p-section {
  position: relative;
  padding-block: clamp(4.5rem, 10vw, 8.5rem);
  overflow: hidden;
}

.p-section--raised {
  background: #0a0b0d;
  border-block: 1px solid rgba(255, 255, 255, 0.05);
}

/* faint engineering grid behind a section */
.p-section--grid::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 75%);
}

.p-glow {
  position: absolute;
  width: 60vw;
  max-width: 900px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 170, 255, 0.1), transparent 65%);
  pointer-events: none;
  z-index: 0;
}

.p-section > .container {
  position: relative;
  z-index: 1;
}

.p-head {
  max-width: 50rem;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.p-head--center {
  margin-inline: auto;
  text-align: center;
}

.p-head--center .p-intro {
  margin-inline: auto;
}

.p-head--split {
  max-width: none;
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 960px) {
  .p-head--split {
    grid-template-columns: 1.1fr 1fr;
    gap: 4rem;
    align-items: end;
  }

  .p-head--split .p-intro {
    margin-top: 0;
  }
}

/* ============================================================
   HERO
   ============================================================ */
.p-hero {
  position: relative;
  isolation: isolate;
  min-height: min(100svh, 1000px);
  display: flex;
  align-items: flex-end;
  padding: calc(var(--nav-height) + 4rem) 0 clamp(2rem, 5vw, 3.5rem);
  overflow: hidden;
  background: var(--black);
}

.p-hero--compact {
  min-height: min(78svh, 760px);
}

.p-hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.p-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* per-image focal point: set --pos / --pos-m inline on the <img> */
  object-position: var(--pos, 62% 50%);
  transform: scale(1.06);
  animation: p-hero-settle 2.4s var(--ease-out) forwards;
}

.p-hero__shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(
      90deg,
      rgba(0, 0, 0, 0.94) 0%,
      rgba(0, 0, 0, 0.82) 30%,
      rgba(0, 0, 0, 0.25) 62%,
      rgba(0, 0, 0, 0.4) 100%
    ),
    linear-gradient(0deg, #000 0%, rgba(0, 0, 0, 0.6) 18%, transparent 45%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.7) 0%, transparent 22%);
}

/* film grain, same texture as the homepage hero */
.p-hero__shade::after {
  content: '';
  position: absolute;
  inset: 0;
  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.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px;
}

@media (max-width: 767px) {
  .p-hero {
    align-items: flex-end;
    padding-top: calc(3.5rem + 3rem);
  }

  .p-hero__media img {
    object-position: var(--pos-m, 50% 30%);
  }

  .p-hero__shade {
    background: linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.55) 0%,
      rgba(0, 0, 0, 0.35) 25%,
      rgba(0, 0, 0, 0.8) 55%,
      #000 88%
    );
  }
}

.p-hero__content {
  position: relative;
  max-width: 46rem;
}

.p-crumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.p-crumbs li + li::before {
  content: '/';
  margin-right: 0.5rem;
  color: rgba(255, 255, 255, 0.2);
}

.p-crumbs a {
  color: var(--text-secondary);
  transition: color var(--duration-fast);
}

.p-crumbs a:hover {
  color: var(--electric-blue);
}

.p-crumbs [aria-current] {
  color: var(--electric-blue);
}

.p-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1.75rem;
  padding: 0.45rem 0.95rem;
  border: 1px solid rgba(0, 170, 255, 0.3);
  border-radius: 999px;
  background: rgba(0, 20, 34, 0.5);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(214, 236, 250, 0.88);
}

.p-pill::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--electric-blue);
  box-shadow: 0 0 10px rgba(0, 170, 255, 0.9);
  animation: p-pulse 2.2s ease-in-out infinite;
}

.p-title {
  margin-top: 1.25rem;
  font-family: var(--font-display);
  font-size: clamp(2.35rem, 6.2vw, 5.4rem);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.03em;
  text-wrap: balance;
  background-image: linear-gradient(180deg, #ffffff 0%, #f0f5f9 55%, #a9bccb 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.p-hero__lead {
  margin-top: 1.5rem;
  max-width: 36rem;
  font-size: clamp(1.02rem, 1.4vw, 1.2rem);
  line-height: 1.7;
  color: var(--text-secondary);
}

.p-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2.25rem;
}

@media (max-width: 480px) {
  .p-actions .btn {
    flex: 1 1 100%;
  }
}

/* hero load choreography */
.js .p-hero [data-rise] {
  opacity: 0;
  transform: translateY(22px);
  animation: p-rise 1.1s var(--ease-out) forwards;
  animation-delay: calc(0.15s + var(--i, 0) * 0.1s);
}

/* --- Stat strip ---------------------------------------------- */
.p-stats {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  margin-top: clamp(2.5rem, 6vw, 4.5rem);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(10, 12, 15, 0.55);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  overflow: hidden;
}

@media (min-width: 860px) {
  .p-stats {
    grid-template-columns: repeat(4, 1fr);
  }
}

.p-stat {
  padding: clamp(1.1rem, 2.2vw, 1.6rem) clamp(1.1rem, 2.2vw, 1.75rem);
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.p-stat:nth-child(2n) {
  border-right: 0;
}

@media (min-width: 860px) {
  .p-stat {
    border-bottom: 0;
  }

  .p-stat:nth-child(2n) {
    border-right: 1px solid rgba(255, 255, 255, 0.06);
  }

  .p-stat:last-child {
    border-right: 0;
  }
}

@media (max-width: 859px) {
  .p-stat:nth-last-child(-n + 2) {
    border-bottom: 0;
  }
}

.p-stat__value {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--white);
}

.p-stat__value small {
  font-size: 0.5em;
  font-weight: 600;
  color: var(--electric-blue);
  margin-left: 0.15em;
  letter-spacing: 0;
}

.p-stat__label {
  display: block;
  margin-top: 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ============================================================
   PROCESS TIMELINE (stations along a lit rail)
   ============================================================ */
.p-steps {
  display: grid;
  gap: clamp(2.5rem, 5vw, 4rem);
}

@media (min-width: 960px) {
  .p-steps {
    grid-template-columns: 1fr 1.05fr;
    align-items: start;
  }

  .p-steps__media {
    position: sticky;
    top: calc(var(--nav-height) + 2rem);
  }
}

.p-mosaic {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 0.75rem;
  aspect-ratio: 5 / 4;
}

.p-mosaic figure {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.p-mosaic figure:first-child {
  grid-row: 1 / span 2;
}

.p-mosaic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.4s var(--ease-out);
}

.p-mosaic figure:hover img {
  transform: scale(1.05);
}

.p-mosaic figcaption {
  position: absolute;
  left: 0.75rem;
  bottom: 0.75rem;
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.6);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.p-steps__list {
  position: relative;
}

/* the rail */
.p-steps__list::before {
  content: '';
  position: absolute;
  left: calc(1.35rem - 0.5px);
  top: 0.5rem;
  bottom: 0.5rem;
  width: 1px;
  background: linear-gradient(
    180deg,
    rgba(0, 170, 255, 0.7),
    rgba(0, 170, 255, 0.15) 85%,
    transparent
  );
}

/* light travelling down the rail */
.p-steps__list::after {
  content: '';
  position: absolute;
  left: calc(1.35rem - 1.5px);
  top: 0;
  width: 3px;
  height: 90px;
  border-radius: 3px;
  background: linear-gradient(180deg, transparent, var(--electric-blue), #e6f7ff);
  box-shadow: 0 0 14px rgba(0, 170, 255, 0.9);
  animation: p-rail 5s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}

.p-step {
  position: relative;
  padding: 0 0 2.4rem 4.25rem;
}

.p-step:last-child {
  padding-bottom: 0;
}

.p-step__num {
  position: absolute;
  z-index: 1; /* rail light passes behind the station nodes */
  left: 0;
  top: -0.2rem;
  display: grid;
  place-items: center;
  width: 2.7rem;
  height: 2.7rem;
  border-radius: 50%;
  border: 1px solid rgba(0, 170, 255, 0.45);
  background: radial-gradient(circle at 50% 35%, #0b1a24, #040608);
  box-shadow:
    0 0 0 5px var(--black),
    0 0 22px rgba(0, 170, 255, 0.25);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--electric-blue);
}

.p-section--raised .p-step__num {
  box-shadow:
    0 0 0 5px #0a0b0d,
    0 0 22px rgba(0, 170, 255, 0.25);
}

.p-step h3 {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 1.8vw, 1.4rem);
  font-weight: 600;
  line-height: 1.25;
  color: var(--white);
}

.p-step p {
  margin-top: 0.5rem;
  font-size: 0.98rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

/* ============================================================
   CARDS
   ============================================================ */
.p-cards {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .p-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1100px) {
  .p-cards--4 {
    grid-template-columns: repeat(4, 1fr);
  }

  .p-cards--3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.p-card {
  position: relative;
  padding: clamp(1.5rem, 2.4vw, 2rem);
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01)), #0c0d10;
  overflow: hidden;
  transition:
    border-color var(--duration-slow) var(--ease-out),
    transform var(--duration-slow) var(--ease-out);
}

/* hover spotlight */
.p-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: radial-gradient(
    420px circle at var(--mx, 50%) var(--my, 0%),
    rgba(0, 170, 255, 0.12),
    transparent 45%
  );
  opacity: 0;
  transition: opacity var(--duration-slow) var(--ease-out);
  pointer-events: none;
}

.p-card:hover {
  border-color: rgba(0, 170, 255, 0.35);
  transform: translateY(-3px);
}

.p-card:hover::before {
  opacity: 1;
}

.p-card__icon {
  display: grid;
  place-items: center;
  width: 2.9rem;
  height: 2.9rem;
  border-radius: 10px;
  border: 1px solid rgba(0, 170, 255, 0.3);
  background: rgba(0, 170, 255, 0.07);
  color: var(--electric-blue);
  margin-bottom: 1.4rem;
}

.p-card__icon svg {
  width: 1.35rem;
  height: 1.35rem;
}

.p-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--white);
}

.p-card p {
  margin-top: 0.6rem;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

.p-card__tag {
  position: absolute;
  top: 1.4rem;
  right: 1.4rem;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.25);
}

/* ============================================================
   SPLIT (copy + framed media)
   ============================================================ */
.p-split {
  display: grid;
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: center;
}

@media (min-width: 960px) {
  .p-split {
    grid-template-columns: 1fr 1fr;
  }

  .p-split--flip .p-split__media {
    order: -1;
  }
}

.p-frame {
  position: relative;
  border-radius: 16px;
  padding: 0.6rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
  box-shadow:
    0 40px 80px -30px rgba(0, 0, 0, 0.8),
    0 0 80px -20px rgba(0, 170, 255, 0.18);
}

.p-frame img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 11px;
}

/* corner ticks — blueprint detailing */
.p-frame::before,
.p-frame::after {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  border-color: var(--electric-blue);
  border-style: solid;
  opacity: 0.8;
}

.p-frame::before {
  top: -6px;
  left: -6px;
  border-width: 1px 0 0 1px;
}

.p-frame::after {
  right: -6px;
  bottom: -6px;
  border-width: 0 1px 1px 0;
}

.p-frame__badge {
  position: absolute;
  right: 1.5rem;
  top: 1.5rem;
  padding: 0.55rem 0.8rem;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.65);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.p-frame__badge strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: -0.01em;
  color: var(--white);
  text-transform: none;
}

.p-checks {
  display: grid;
  gap: 0.85rem;
  margin-top: 1.75rem;
}

.p-checks li {
  position: relative;
  padding-left: 2rem;
  font-size: 0.98rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

.p-checks li strong {
  color: var(--text-primary);
  font-weight: 600;
}

.p-checks li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.2rem;
  width: 1.2rem;
  height: 1.2rem;
  border-radius: 50%;
  border: 1px solid rgba(0, 170, 255, 0.45);
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300aaff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E")
      center / 0.7rem no-repeat,
    rgba(0, 170, 255, 0.08);
}

/* ============================================================
   COMPARISON TABLE
   ============================================================ */
.p-table-wrap {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: #0a0b0d;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
}

.p-table {
  width: 100%;
  min-width: 680px;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.95rem;
}

.p-table caption {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.p-table th,
.p-table td {
  padding: 1.05rem 1.35rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  line-height: 1.55;
  color: var(--text-secondary);
}

.p-table tbody tr:last-child > * {
  border-bottom: 0;
}

.p-table thead th {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: #0d0e11;
}

.p-table tbody th {
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
}

/* sticky first column on narrow screens */
.p-table th:first-child {
  position: sticky;
  left: 0;
  z-index: 1;
  background: #0a0b0d;
  box-shadow: 1px 0 0 rgba(255, 255, 255, 0.06);
}

.p-table thead th:first-child {
  background: #0d0e11;
}

/* highlighted INFINITY column */
.p-table .is-hl {
  color: var(--white);
  background: rgba(0, 170, 255, 0.06);
  box-shadow:
    inset 1px 0 0 rgba(0, 170, 255, 0.25),
    inset -1px 0 0 rgba(0, 170, 255, 0.25);
}

.p-table thead .is-hl {
  color: var(--electric-blue);
  background: rgba(0, 170, 255, 0.1);
  box-shadow:
    inset 0 2px 0 var(--electric-blue),
    inset 1px 0 0 rgba(0, 170, 255, 0.25),
    inset -1px 0 0 rgba(0, 170, 255, 0.25);
}

.p-table__note {
  margin-top: 1rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* narrow screens: site.js flags .is-scrollable when the table overflows.
   Fade the right edge (until scrolled to the end) and show a swipe hint. */
.p-table-wrap.is-scrollable:not(.is-end) {
  -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 3.5rem), transparent);
  mask-image: linear-gradient(90deg, #000 calc(100% - 3.5rem), transparent);
}

.p-table-hint {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.p-table-hint[hidden] {
  display: none;
}

.p-table-hint .material-symbols-outlined {
  font-size: 0.95rem;
  color: var(--electric-blue);
  animation: p-nudge 1.8s ease-in-out infinite;
}

@keyframes p-nudge {
  0%,
  100% {
    transform: translateX(0);
  }

  50% {
    transform: translateX(4px);
  }
}

/* ============================================================
   FAQ ACCORDION
   ============================================================ */
.p-faq {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.p-faq__item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.p-faq__item summary {
  position: relative;
  display: block;
  padding: 1.35rem 3rem 1.35rem 0;
  font-family: var(--font-display);
  font-size: clamp(1.02rem, 1.5vw, 1.2rem);
  font-weight: 500;
  line-height: 1.4;
  color: var(--text-primary);
  cursor: pointer;
  list-style: none;
  transition: color var(--duration-fast) var(--ease-out);
}

.p-faq__item summary::-webkit-details-marker {
  display: none;
}

/* plus / minus in a ring */
.p-faq__item summary::before {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  width: 2rem;
  height: 2rem;
  margin-top: -1rem;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(var(--electric-blue), var(--electric-blue)) center / 10px 1.5px no-repeat,
    linear-gradient(var(--electric-blue), var(--electric-blue)) center / 1.5px 10px no-repeat;
  transition:
    transform var(--duration-normal) var(--ease-out),
    border-color var(--duration-normal) var(--ease-out),
    background-size var(--duration-normal) var(--ease-out);
}

.p-faq__item[open] summary::before {
  transform: rotate(180deg);
  border-color: rgba(0, 170, 255, 0.5);
  background-size:
    10px 1.5px,
    1.5px 0;
}

.p-faq__item summary:hover,
.p-faq__item[open] summary {
  color: var(--white);
}

.p-faq__answer {
  padding: 0 3rem 1.5rem 0;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-secondary);
}

.p-faq__answer a {
  color: var(--electric-blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.p-faq__item[open] .p-faq__answer {
  animation: p-fade-down 0.45s var(--ease-out);
}

/* FAQ page layout: sticky category nav + groups */
.p-faq-layout {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 1024px) {
  .p-faq-layout {
    grid-template-columns: 17rem 1fr;
    gap: 5rem;
    align-items: start;
  }
}

.p-faq-nav {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
  scrollbar-width: none;
}

.p-faq-nav::-webkit-scrollbar {
  display: none;
}

/* phones/tablets: chip row bleeds to the screen edge so the next chip peeks in */
@media (max-width: 1023.98px) {
  .p-faq-nav {
    margin-inline: calc(-1 * var(--margin-mobile));
    padding-inline: var(--margin-mobile);
    scroll-padding-inline: var(--margin-mobile);
  }
}

@media (min-width: 768px) and (max-width: 1023.98px) {
  .p-faq-nav {
    margin-inline: calc(-1 * var(--margin-desktop));
    padding-inline: var(--margin-desktop);
    scroll-padding-inline: var(--margin-desktop);
  }
}

@media (min-width: 1024px) {
  .p-faq-nav {
    position: sticky;
    top: calc(var(--nav-height) + 2rem);
    flex-direction: column;
    overflow: visible;
  }
}

.p-faq-nav a {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: #0c0d10;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-secondary);
  transition:
    color var(--duration-fast),
    border-color var(--duration-fast),
    background var(--duration-fast);
}

.p-faq-nav a span {
  color: var(--text-muted);
}

.p-faq-nav a:hover,
.p-faq-nav a.is-active {
  color: var(--white);
  border-color: rgba(0, 170, 255, 0.4);
  background: rgba(0, 170, 255, 0.07);
}

.p-faq-nav a.is-active span {
  color: var(--electric-blue);
}

.p-faq-group + .p-faq-group {
  margin-top: clamp(3rem, 6vw, 4.5rem);
}

.p-faq-group {
  scroll-margin-top: calc(var(--nav-height) + 1.5rem);
}

.p-faq-group__title {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 1rem;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--white);
}

.p-faq-group__title span {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--electric-blue);
}

/* ============================================================
   DESTINATION CARDS (internal links with imagery)
   ============================================================ */
.dest-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 720px) {
  .dest-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1100px) {
  .dest-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.dest {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: clamp(18rem, 32vw, 24rem);
  padding: clamp(1.4rem, 2.4vw, 2rem);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  color: var(--white);
  transition:
    border-color var(--duration-slow) var(--ease-out),
    transform var(--duration-slow) var(--ease-out);
}

.dest img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 1.4s var(--ease-out);
}

.dest::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.15) 0%,
    rgba(0, 0, 0, 0.55) 45%,
    rgba(0, 0, 0, 0.95) 100%
  );
  transition: background var(--duration-slow) var(--ease-out);
}

.dest:hover {
  border-color: rgba(0, 170, 255, 0.45);
  transform: translateY(-4px);
}

.dest:hover img {
  transform: scale(1.08);
}

.dest__kicker {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--electric-blue);
}

.dest__title {
  margin-top: 0.6rem;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  max-width: 18ch;
}

.dest__text {
  margin-top: 0.6rem;
  max-width: 34ch;
  font-size: 0.93rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

.dest__go {
  position: absolute;
  top: clamp(1.4rem, 2.4vw, 2rem);
  right: clamp(1.4rem, 2.4vw, 2rem);
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.4);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  transition:
    background var(--duration-normal) var(--ease-out),
    border-color var(--duration-normal) var(--ease-out),
    transform var(--duration-normal) var(--ease-out);
}

.dest__go svg {
  width: 1.1rem;
  height: 1.1rem;
  transform: rotate(-45deg);
  transition: transform var(--duration-normal) var(--ease-out);
}

.dest:hover .dest__go {
  background: var(--electric-blue);
  border-color: var(--electric-blue);
  color: var(--black);
}

.dest:hover .dest__go svg {
  transform: rotate(0deg);
}

/* ============================================================
   CTA PANEL
   ============================================================ */
.p-cta {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(3rem, 7vw, 6rem) clamp(1.5rem, 5vw, 5rem);
  border-radius: 20px;
  border: 1px solid rgba(0, 170, 255, 0.2);
  background: #05080b;
  text-align: center;
}

.p-cta__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--pos, 50% 50%);
  opacity: 0.28;
}

@media (max-width: 767px) {
  .p-cta__bg {
    object-position: var(--pos-m, 50% 50%);
  }
}

.p-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 60% 80% at 50% 110%, rgba(0, 170, 255, 0.35), transparent 60%),
    radial-gradient(ellipse 90% 90% at 50% 50%, transparent 30%, rgba(5, 8, 11, 0.92) 80%);
}

.p-cta .p-h2 {
  max-width: 20ch;
  margin-inline: auto;
}

.p-cta .p-intro {
  margin-inline: auto;
  max-width: 34rem;
}

.p-cta .p-actions {
  justify-content: center;
}

/* ============================================================
   HOMEPAGE — "INSIDE THE TUNNEL" (#inside)
   ============================================================ */
.inside {
  position: relative;
  z-index: 1;
  padding-block: clamp(5rem, 11vw, 9rem);
  background:
    radial-gradient(ellipse 50% 40% at 15% 0%, rgba(0, 170, 255, 0.09), transparent 70%),
    radial-gradient(ellipse 40% 30% at 90% 100%, rgba(0, 170, 255, 0.07), transparent 70%),
    var(--black);
  overflow: hidden;
}

.inside > .container {
  position: relative;
  z-index: 1;
}

/* station rail — horizontal on desktop, vertical on phones */
.rail {
  position: relative;
  display: grid;
  gap: 0;
  margin-block: clamp(3rem, 6vw, 5rem);
}

.rail__item {
  position: relative;
  padding: 0 0 2rem 4rem;
}

.rail__item:last-child {
  padding-bottom: 0;
}

.rail::before {
  content: '';
  position: absolute;
  left: calc(1.25rem - 0.5px);
  top: 0.4rem;
  bottom: 0.4rem;
  width: 1px;
  background: linear-gradient(180deg, rgba(0, 170, 255, 0.6), rgba(0, 170, 255, 0.12));
}

.rail::after {
  content: '';
  position: absolute;
  left: calc(1.25rem - 1.5px);
  top: 0;
  width: 3px;
  height: 70px;
  border-radius: 3px;
  background: linear-gradient(180deg, transparent, var(--electric-blue), #e6f7ff);
  box-shadow: 0 0 14px rgba(0, 170, 255, 0.9);
  animation: p-rail 4.5s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}

.rail__num {
  position: absolute;
  z-index: 1; /* rail light passes behind the station nodes */
  left: 0;
  top: -0.25rem;
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  border: 1px solid rgba(0, 170, 255, 0.45);
  background: radial-gradient(circle at 50% 35%, #0b1a24, #040608);
  box-shadow:
    0 0 0 5px var(--black),
    0 0 20px rgba(0, 170, 255, 0.25);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--electric-blue);
}

.rail__name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--white);
}

.rail__text {
  margin-top: 0.35rem;
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

@media (min-width: 1024px) {
  .rail {
    grid-template-columns: repeat(6, 1fr);
    gap: 1.5rem;
  }

  .rail__item {
    padding: 4rem 0 0;
  }

  .rail::before {
    left: 0;
    right: 0;
    top: calc(1.25rem - 0.5px);
    bottom: auto;
    width: auto;
    height: 1px;
    background: linear-gradient(
      90deg,
      rgba(0, 170, 255, 0.7),
      rgba(0, 170, 255, 0.15) 90%,
      transparent
    );
  }

  .rail::after {
    top: calc(1.25rem - 1.5px);
    left: 0;
    width: 110px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--electric-blue), #e6f7ff);
    animation-name: p-rail-x;
  }

  .rail__num {
    top: 0;
  }
}

.inside__areas {
  margin-top: 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.inside__areas strong {
  color: var(--text-secondary);
  font-weight: 600;
}

.dest-grid + .inside__faq {
  margin-top: clamp(4rem, 8vw, 6.5rem);
}

.inside__faq {
  display: grid;
  gap: 2rem;
}

@media (min-width: 960px) {
  .inside__faq {
    grid-template-columns: 0.9fr 1.1fr;
    gap: 5rem;
    align-items: start;
  }
}

.p-h2--sm {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
}

.inside__faq .p-actions {
  margin-top: 1.75rem;
}

/* ============================================================
   404
   ============================================================ */
.p-404 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(6rem, 22vw, 16rem);
  line-height: 0.85;
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(0, 170, 255, 0.55);
  text-shadow: 0 0 60px rgba(0, 170, 255, 0.25);
}

/* ============================================================
   KEYFRAMES + MOTION PREFERENCES
   ============================================================ */
@keyframes p-hero-settle {
  to {
    transform: scale(1);
  }
}

@keyframes p-rise {
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes p-pulse {
  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.35;
  }
}

@keyframes p-rail {
  0% {
    transform: translateY(-100%);
    opacity: 0;
  }

  15% {
    opacity: 1;
  }

  85% {
    opacity: 1;
  }

  100% {
    transform: translateY(calc(var(--rail-h, 600px) - 100%));
    opacity: 0;
  }
}

@keyframes p-rail-x {
  0% {
    transform: translateX(-100%);
    opacity: 0;
  }

  15%,
  85% {
    opacity: 1;
  }

  100% {
    transform: translateX(calc(var(--rail-w, 1200px) - 100%));
    opacity: 0;
  }
}

@keyframes p-fade-down {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .js .reveal,
  .js .p-hero [data-rise] {
    opacity: 1;
    transform: none;
    transition: none;
    animation: none;
  }

  .p-hero__media img {
    animation: none;
    transform: none;
  }

  .p-steps__list::after,
  .rail::after,
  .p-pill::before {
    animation: none;
    display: none;
  }

  .p-table-hint .material-symbols-outlined {
    animation: none;
  }

  .p-card,
  .dest,
  .dest img,
  .p-mosaic img {
    transition: none;
  }
}
