/* services/radio-telephony.css
   Page-specific layer for the RT page. Generic parts (progress bar, hero shell,
   stats, dividers, section spacing, gallery) come from /shared/cinematic.css;
   this file only holds RT deltas + RT-only components. */

/* ==========================================================================
   OVERRIDES on shared cine-* (keep RT look identical to pre-refactor)
   ========================================================================== */
.cine-hero__bg { filter: saturate(1) contrast(1) brightness(1.05); }
.cine-hero__overlay { background: linear-gradient(180deg, rgba(0,0,0,0.10) 0%, rgba(0,0,0,0.0) 35%, rgba(0,0,0,0.45) 78%, rgba(0,0,0,0.92) 100%); }
.cine-hero__badge { animation-delay: 0ms; }
.cine-hero__title { animation-delay: 200ms; }
.cine-hero__sub   { animation-delay: 400ms; }
.cine-stat__value { font-size: clamp(44px, 5.5vw, 80px); }
.cine-divider__bg { filter: saturate(0.9) contrast(1.05) brightness(1.15); }
.cine-divider__overlay { background: linear-gradient(180deg, rgba(0,0,0,0.25) 0%, rgba(0,0,0,0.15) 50%, rgba(0,0,0,0.55) 100%); }
.cine-divider__caption { opacity: 0.65; }
.cine-gallery__cell { cursor: pointer; }
.cine-gallery__img { filter: saturate(0.88) contrast(1.06); }
.cine-gallery__cell:hover .cine-gallery__tint { opacity: 0.25; }
@media (max-width: 760px) {
  .cine-hero__bg { inset: 0; transform: none !important; }
}

/* ==========================================================================
   RADAR WAVES (hero overlay)
   ========================================================================== */
.rt-radar {
  position: absolute; top: 5vh; right: 4vw;
  width: min(380px, 36vw); height: min(380px, 36vw);
  pointer-events: none;
}
.rt-radar__svg { width: 100%; height: 100%; opacity: 0.7; }
.rt-radar__ring {
  fill: none; stroke: var(--gold); stroke-width: 1.2;
  transform-origin: 0 0; transform-box: view-box;
  animation: rt-radar-pulse 3.2s var(--ease-cine) infinite;
  opacity: 0;
}
.rt-radar__ring--2 { animation-delay: 0.8s; }
.rt-radar__ring--3 { animation-delay: 1.6s; }
.rt-radar__ring--4 { animation-delay: 2.4s; }
.rt-radar__core { fill: var(--gold); }
.rt-radar__sweep {
  fill: url(#rtSweepGrad);
  transform-origin: 0 0;
  transform-box: view-box;
  animation: rt-radar-sweep 6s linear infinite;
  opacity: 0.55;
}
@keyframes rt-radar-pulse {
  0%   { transform: scale(0.05); opacity: 0;    }
  10%  { opacity: 0.45; }
  100% { transform: scale(1);    opacity: 0;    }
}
@keyframes rt-radar-sweep {
  from { transform: rotate(0deg);   }
  to   { transform: rotate(360deg); }
}
@media (max-width: 760px) {
  .rt-radar { padding-right: 0; justify-content: center; opacity: 0.5; }
}

/* ==========================================================================
   BODY PROSE — drop-caps, breathing room
   ========================================================================== */
.article-prose.rt-prose h2 {
  margin-top: 4em;
  font-size: clamp(32px, 3.4vw, 46px);
  font-weight: 600; letter-spacing: -0.035em;
}
.article-prose.rt-prose h2:first-child { margin-top: 0; }
.article-prose.rt-prose h2 + p::first-letter {
  font-family: "Instrument Serif", serif;
  color: var(--gold); float: left;
  font-size: 4.2em; line-height: 0.88;
  padding: 0.08em 0.14em 0 0;
  margin-bottom: -0.1em;
}

/* ==========================================================================
   "HOW RT WORKS" — HORIZONTAL FLOW
   ========================================================================== */
.rt-flow {
  border-top: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
  padding: 88px 0;
  background: linear-gradient(180deg, rgba(201,169,97,0.02), transparent 70%);
}
.rt-flow__head { text-align: center; margin-bottom: 56px; padding: 0 32px; }
.rt-flow__kicker {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px; letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--gold);
}
.rt-flow__title {
  margin-top: 12px;
  font-family: "Inter Tight", sans-serif; font-weight: 500;
  font-size: clamp(28px, 3vw, 40px);
  letter-spacing: -0.025em; color: #fff;
}
.rt-flow__grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0; max-width: 1400px; margin: 0 auto; padding: 0 32px;
  align-items: stretch; position: relative;
}
.rt-flow__step {
  position: relative;
  padding: 28px 24px 32px 24px;
  border: 1px solid var(--hair);
  background: rgba(255,255,255,0.015);
  display: flex; flex-direction: column; gap: 14px;
  opacity: 0; transform: translateY(20px);
  transition: opacity 700ms var(--ease-cine), transform 700ms var(--ease-cine), border-color 320ms ease;
  margin-right: 36px;
}
.rt-flow__grid .rt-flow__step:nth-last-child(2) { margin-right: 0; }
.rt-flow__step.is-in { opacity: 1; transform: none; }
.rt-flow__step:hover { border-color: var(--gold); background: rgba(201,169,97,0.04); }
.rt-flow__num {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px; letter-spacing: 0.18em; color: var(--gold);
}
.rt-flow__big {
  font-family: "Inter Tight", sans-serif; font-weight: 500;
  font-size: 64px; line-height: 1; letter-spacing: -0.04em;
  color: var(--gold); opacity: 0.18;
  position: absolute; top: 14px; right: 18px;
}
.rt-flow__name {
  font-family: "Inter Tight", sans-serif; font-weight: 500;
  font-size: 18px; letter-spacing: -0.01em;
  text-transform: uppercase; color: #fff;
  padding-right: 60px;
}
.rt-flow__body {
  font-size: 14px; line-height: 1.55;
  font-weight: 300; color: rgba(255,255,255,0.78);
}
.rt-flow__body a { color: var(--gold); border-bottom: 1px solid rgba(201,169,97,0.4); }
.rt-flow__body a:hover { border-bottom-color: var(--gold); }
.rt-flow__body strong { color: #fff; font-weight: 500; }

/* Arrow between steps */
.rt-flow__arrow {
  position: absolute;
  right: -34px; top: 50%; transform: translateY(-50%);
  width: 32px; height: 12px;
  pointer-events: none;
}
.rt-flow__arrow line, .rt-flow__arrow polyline {
  stroke: var(--gold); stroke-width: 1.4; fill: none;
  stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 60;
  stroke-dashoffset: 60;
  transition: stroke-dashoffset 800ms var(--ease-cine);
}
.rt-flow__step.is-in .rt-flow__arrow line,
.rt-flow__step.is-in .rt-flow__arrow polyline {
  stroke-dashoffset: 0;
  transition-delay: 320ms;
}
.rt-flow__grid .rt-flow__step:nth-last-child(2) .rt-flow__arrow { display: none; }

@media (max-width: 900px) {
  .rt-flow__grid { grid-template-columns: 1fr; }
  .rt-flow__step { margin-right: 0; margin-bottom: 36px; }
  .rt-flow__grid .rt-flow__step:nth-last-child(2) { margin-bottom: 0; }
  .rt-flow__arrow {
    right: 50%; top: auto; bottom: -28px;
    transform: translateX(50%) rotate(90deg);
  }
}

/* ==========================================================================
   ICAO PHRASEOLOGY TERMINAL
   ========================================================================== */
.rt-icao {
  border-bottom: 1px solid var(--hair);
  padding: 96px 0;
}
.rt-icao__head { text-align: center; margin-bottom: 32px; padding: 0 32px; }
.rt-icao__terminal {
  max-width: 920px; margin: 0 auto;
  background: #060503;
  border: 1px solid var(--gold);
  box-shadow: 0 0 60px rgba(201,169,97,0.08), inset 0 0 0 1px rgba(201,169,97,0.08);
  padding: 22px 28px 28px 28px;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 13.5px; line-height: 1.85;
  color: var(--gold);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  position: relative;
}
.rt-icao__bar {
  display: flex; align-items: center; gap: 10px;
  margin: -22px -28px 18px -28px;
  padding: 10px 18px;
  border-bottom: 1px solid rgba(201,169,97,0.3);
  background: rgba(201,169,97,0.05);
  font-size: 10.5px; letter-spacing: 0.22em; color: var(--gold);
}
.rt-icao__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 10px rgba(201,169,97,0.7); animation: rt-blink 1.4s ease-in-out infinite; }
@keyframes rt-blink { 50% { opacity: 0.25; } }
.rt-icao__line {
  display: block; white-space: pre-wrap;
  min-height: 1.85em;
}
.rt-icao__row { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 14px; align-items: baseline; }
.rt-icao__who { font-size: 9.5px; letter-spacing: 0.2em; color: rgba(201,169,97,0.55); padding-top: 2px; }
.rt-icao__row--drone .rt-icao__line { color: #fff; font-weight: 500; }
.rt-icao__row--drone .rt-icao__who { color: rgba(255,255,255,0.55); }
.rt-icao__row--tower .rt-icao__line { color: var(--gold); }
.rt-icao__row--note { grid-template-columns: 1fr; margin: 6px 0; }
.rt-icao__row--note .rt-icao__line { color: rgba(255,255,255,0.35); text-align: center; font-size: 0.85em; letter-spacing: 0.24em; }
.rt-icao__note { max-width: 760px; margin: 22px auto 0; padding: 0 32px; text-align: center; font-size: 15px; line-height: 1.6; font-weight: 300; color: rgba(255,255,255,0.7); }
.rt-icao__note strong { color: #fff; font-weight: 500; }
.rt-icao__line.is-typing::after {
  content: "▍";
  margin-left: 2px;
  color: var(--gold);
  animation: rt-blink 0.9s steps(1) infinite;
}
@media (max-width: 720px) {
  .rt-icao { padding: 64px 0; }
  .rt-icao__terminal { padding: 18px 18px 22px 18px; font-size: 11.5px; margin: 0 16px; }
  .rt-icao__row { grid-template-columns: 1fr; gap: 0; margin-bottom: 6px; }
  .rt-icao__who { padding-top: 0; }
  .rt-icao__note { padding: 0 20px; font-size: 14px; }
}

/* ==========================================================================
   CTR MAP — interactive
   ========================================================================== */
.rt-map {
  border-bottom: 1px solid var(--hair);
  padding: 96px 0;
  background: radial-gradient(ellipse at center, rgba(201,169,97,0.05), transparent 70%);
}
.rt-map__head { text-align: center; margin-bottom: 32px; padding: 0 32px; }
.rt-map__wrap { max-width: 720px; margin: 0 auto; padding: 0 32px; position: relative; }
.rt-map__svg { width: 100%; height: auto; display: block; }
.rt-map__outline {
  fill: rgba(201,169,97,0.05);
  stroke: var(--gold); stroke-width: 1.6;
  stroke-linejoin: round; stroke-linecap: round;
  opacity: 0.85;
  filter: drop-shadow(0 0 8px rgba(201,169,97,0.2));
}
.rt-map__dot-group { cursor: pointer; }
.rt-map__dot-core {
  fill: var(--gold);
  transition: r 220ms var(--ease-cine);
}
.rt-map__dot-pulse {
  fill: var(--gold); opacity: 0.5;
  transform-origin: center; transform-box: fill-box;
  animation: rt-dot-pulse 2.6s ease-in-out infinite;
}
.rt-map__dot-ring {
  fill: transparent; stroke: var(--gold); stroke-width: 1.4;
  transition: stroke-width 220ms var(--ease-cine);
}
.rt-map__dot-group--mil .rt-map__dot-pulse { opacity: 0.35; }
.rt-map__dot-group:hover .rt-map__dot-core { r: 6; }
.rt-map__dot-group:hover .rt-map__dot-ring { stroke-width: 2.2; }
.rt-map__icao {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 9.5px; letter-spacing: 0.14em;
  fill: rgba(255,255,255,0.72);
  text-transform: uppercase;
  pointer-events: none;
}
.rt-map__dot-group--mil .rt-map__icao { fill: rgba(255,255,255,0.55); }
.rt-map__dot-group:hover .rt-map__icao { fill: var(--gold); }
@keyframes rt-dot-pulse {
  0%   { transform: scale(1);   opacity: 0.55; }
  60%  { transform: scale(2.2); opacity: 0;    }
  100% { transform: scale(2.2); opacity: 0;    }
}

/* Hover tooltip (HTML element, positioned over SVG) */
.rt-map__tip {
  position: absolute;
  padding: 10px 14px;
  background: rgba(0,0,0,0.92);
  border: 1px solid var(--gold);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  color: var(--gold);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0; transform: translate(-50%, -100%) translateY(-12px);
  transition: opacity 180ms var(--ease-cine);
  z-index: 5;
  box-shadow: 0 6px 30px rgba(0,0,0,0.6);
}
.rt-map__tip.is-on { opacity: 1; }
.rt-map__tip-name { color: #fff; display: block; font-size: 12px; margin-bottom: 4px; letter-spacing: 0.08em; }
.rt-map__tip-freq { color: var(--gold); }

.rt-map__legend {
  margin-top: 28px;
  display: flex; gap: 24px; justify-content: center;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted);
}
.rt-map__legend-item { display: inline-flex; align-items: center; gap: 8px; }
.rt-map__legend-swatch--solid { width: 9px; height: 9px; border-radius: 50%; background: var(--gold); }
.rt-map__legend-swatch--ring  { width: 9px; height: 9px; border-radius: 50%; border: 1.4px solid var(--gold); }

/* ==========================================================================
   BIG VHF TABLE — cinematic
   ========================================================================== */
.rt-vhf {
  border-bottom: 1px solid var(--hair);
  padding: 80px 0;
}
.rt-vhf__head { text-align: center; padding: 0 32px; margin-bottom: 32px; }
.rt-vhf__wrap {
  max-width: 1480px; margin: 0 auto;
  padding: 0 32px;
  overflow-x: auto;
}
.rt-vhf__table {
  width: 100%; border-collapse: collapse;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 12.5px; color: rgba(255,255,255,0.88);
}
.rt-vhf__table thead {
  position: sticky; top: 64px; z-index: 4;
  background: rgba(0,0,0,0.95); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.rt-vhf__table thead th {
  text-align: left; padding: 16px 14px;
  border-bottom: 1px solid var(--gold);
  font-weight: 500;
  font-size: 10.5px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--gold);
  white-space: nowrap;
}
.rt-vhf__row {
  opacity: 0; transform: translateY(8px);
  transition: opacity 600ms var(--ease-cine), transform 600ms var(--ease-cine);
  position: relative;
}
.rt-vhf__row.is-in { opacity: 1; transform: none; }
.rt-vhf__row td {
  padding: 14px 14px;
  border-bottom: 1px solid var(--hair);
  vertical-align: middle; line-height: 1.45;
  position: relative;
}
.rt-vhf__row::before {
  content: ""; position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px; background: var(--gold);
  transform: scaleY(0); transform-origin: bottom;
  transition: transform 280ms var(--ease-cine);
}
.rt-vhf__row:hover::before { transform: scaleY(1); transform-origin: top; }
.rt-vhf__row:hover td { background: rgba(255,255,255,0.025); }
.rt-vhf__row.is-target td { background: rgba(201,169,97,0.10); }

.rt-vhf__airport {
  font-family: "Inter Tight", sans-serif;
  font-weight: 500; color: #fff;
  letter-spacing: -0.01em; font-size: 14px;
  min-width: 220px; padding-left: 22px !important;
}
.rt-vhf__airport--mil { color: rgba(201,169,97,0.85); }
.rt-vhf__freq {
  cursor: copy;
  display: inline-flex; align-items: center; gap: 8px;
  transition: color 200ms ease;
}
.rt-vhf__freq:hover { color: var(--gold); }
.rt-vhf__freq:hover .rt-vhf__waveicon { opacity: 1; }
.rt-vhf__waveicon {
  width: 14px; height: 10px;
  opacity: 0;
  transition: opacity 200ms ease;
  flex: 0 0 auto;
}
.rt-vhf__waveicon path { stroke: var(--gold); stroke-width: 1.2; fill: none; stroke-linecap: round; }
.rt-vhf__row:hover .rt-vhf__waveicon { opacity: 0.6; }
.rt-vhf__row:hover .rt-vhf__waveicon path {
  animation: rt-wave-flicker 1.4s ease-in-out infinite;
}
@keyframes rt-wave-flicker {
  0%, 100% { opacity: 0.4; }
  50%      { opacity: 1; }
}

.rt-vhf__note { color: rgba(255,255,255,0.65); }
.rt-vhf__row--mil .rt-vhf__note { color: rgba(201,169,97,0.65); }

@media (max-width: 720px) {
  .rt-vhf__wrap { padding: 0 16px; }
  .rt-vhf__table { font-size: 11.5px; }
  .rt-vhf__table thead th, .rt-vhf__row td { padding: 10px 8px; }
  .rt-vhf__airport { font-size: 12.5px; min-width: 0; padding-left: 14px !important; }
}

/* Toast */
.rt-toast {
  position: fixed; left: 50%; bottom: 32px;
  transform: translate(-50%, 16px);
  padding: 12px 22px;
  background: rgba(201,169,97,0.95);
  color: #000;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  opacity: 0; pointer-events: none;
  transition: opacity 220ms var(--ease-cine), transform 220ms var(--ease-cine);
  z-index: 90;
  box-shadow: 0 8px 40px rgba(0,0,0,0.6);
}
.rt-toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ==========================================================================
   TESSA CONTACT CARD
   ========================================================================== */
.rt-tessa {
  border-bottom: 1px solid var(--hair);
  padding: 96px 0;
}
.rt-tessa__inner {
  max-width: 1100px; margin: 0 auto;
  padding: 0 32px;
  display: grid; grid-template-columns: 280px 1fr;
  gap: 56px; align-items: center;
}
.rt-tessa__photo {
  width: 280px; height: 280px;
  background: #0a0908;
  border: 1px solid var(--gold);
  position: relative;
  overflow: hidden;
  background-image: linear-gradient(135deg, rgba(201,169,97,0.08), rgba(0,0,0,0.0));
}
.rt-tessa__photo::after {
  content: "PHOTO PLACEHOLDER";
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 10px; letter-spacing: 0.22em;
  color: var(--muted-2);
}
.rt-tessa__kicker {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px; letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 14px;
}
.rt-tessa__name {
  font-family: "Inter Tight", sans-serif; font-weight: 600;
  font-size: clamp(36px, 4.2vw, 56px);
  letter-spacing: -0.035em; line-height: 1;
  text-transform: uppercase; color: #fff;
  margin-bottom: 10px;
}
.rt-tessa__role {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--gold);
  margin-bottom: 22px;
}
.rt-tessa__body {
  color: rgba(255,255,255,0.78);
  font-size: 16px; line-height: 1.55; font-weight: 300;
  max-width: 56ch;
  margin-bottom: 28px;
}
.rt-tessa__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.rt-tessa__btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  transition: background 220ms ease, color 220ms ease;
}
.rt-tessa__btn:hover { background: var(--gold); color: #000; }
.rt-tessa__btn svg { width: 14px; height: 14px; flex: 0 0 auto; }
.rt-tessa__btn--ghost { border-color: var(--hair-strong); color: #fff; }
.rt-tessa__btn--ghost:hover { background: #fff; color: #000; border-color: #fff; }
@media (max-width: 760px) {
  .rt-tessa__inner { grid-template-columns: 1fr; gap: 32px; justify-items: start; }
  .rt-tessa__photo { width: 220px; height: 220px; }
}

/* ==========================================================================
   REDUCED MOTION (RT-only components; shared parts handled in cinematic.css)
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  .rt-flow__step, .rt-vhf__row {
    opacity: 1 !important; transform: none !important;
    transition: none !important; animation: none !important;
  }
  .rt-flow__arrow line, .rt-flow__arrow polyline {
    stroke-dashoffset: 0 !important; transition: none !important;
  }
  .rt-radar__ring, .rt-radar__sweep, .rt-icao__dot,
  .rt-map__dot-pulse, .rt-vhf__waveicon path {
    animation: none !important;
  }
}
