/* 7 Days Holding — dark theme, globe + root cards blend */

:root {
  --bg:           #080e1a;
  --card-bg:      rgba(20,32,50,0.55);
  --card-hover:   rgba(28,44,65,0.72);
  --border:       rgba(255,255,255,0.14);
  --text:         #e8eaed;
  --dim:          #9aa8b8;
  --site-bg:      rgba(255,255,255,0.08);
  --site-border:  rgba(255,255,255,0.16);
  --site-text:    #b0b8c4;
  --accent:       #0EA5E9;

  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --mono: 'JetBrains Mono', 'SF Mono', Menlo, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body, #root { width: 100%; height: 100%; overflow: hidden; }

body {
  font-family: var(--sans);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { text-decoration: none; color: inherit; }

/* ─── Screen ─── */
.screen {
  position: relative;
  width: 100vw; height: 100vh;
  overflow: hidden;
  background: var(--bg);
}
.globe-layer {
  position: absolute; inset: 0;
  z-index: 1;
  pointer-events: auto;
}
.globe-layer canvas { cursor: grab; }
.globe-layer canvas:active { cursor: grabbing; }
/* Kill globe.gl's built-in hover tooltip — we render our own cards instead. */
.globe-layer .scene-tooltip,
.globe-layer .tooltip,
.scene-tooltip {
  display: none !important;
}

/* ─── Top bar ─── */
.top {
  position: absolute; top: 0; left: 0; right: 0;
  z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 32px;
  pointer-events: none;
}
.top > * { pointer-events: auto; }
.top-right .time {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--dim);
  font-variant-numeric: tabular-nums;
  padding: 6px 12px;
  background: var(--site-bg);
  border: 1px solid var(--site-border);
  border-radius: 999px;
}

/* Top bar content */
.top-left {
  display: flex; align-items: center;
}
.top-right {
  display: flex; flex-direction: column; align-items: flex-end;
  gap: 14px;
  text-align: right;
}
.brand-logo {
  height: 112px;
  width: auto;
  object-fit: contain;
  display: block;
  opacity: 0.92;
}

/* Cockpit-style clock cluster — no pill, just clean mono columns. */
.clock {
  display: flex; flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.clock-local, .clock-utc {
  display: inline-flex; align-items: baseline; gap: 8px;
}
.clock-val {
  font-size: 18px;
  color: #fff;
  letter-spacing: 0.04em;
  font-weight: 500;
}
.clock-utc .clock-val {
  font-size: 11px;
  color: var(--dim);
  font-weight: 400;
  letter-spacing: 0.12em;
}
.clock-tag {
  font-size: 9px;
  letter-spacing: 0.22em;
  color: rgba(255,207,62,0.75);
  text-transform: uppercase;
  min-width: 28px;
}
.clock-utc .clock-tag {
  color: rgba(255,255,255,0.32);
}

/* Telemetry block — right-aligned mono lines under the clock, thin separator. */
.telemetry {
  display: flex; flex-direction: column;
  align-items: flex-end;
  gap: 3px;
  padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,0.10);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--dim);
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
  min-width: 168px;
}
.telemetry-row {
  display: inline-flex; align-items: center; gap: 6px;
}
.telemetry-live { color: #34d399; font-weight: 600; }
.telemetry-val { color: #fff; font-weight: 600; font-size: 12px; }
.telemetry-key { color: var(--dim); letter-spacing: 0.18em; }
.telemetry-src { color: rgba(255,255,255,0.32); font-size: 9px; letter-spacing: 0.20em; }

.live-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 0 0 rgba(52,211,153,0.6);
  animation: live-pulse 1.8s ease-out infinite;
}

@keyframes live-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(52,211,153,0.6); }
  70%  { box-shadow: 0 0 0 8px rgba(52,211,153,0); }
  100% { box-shadow: 0 0 0 0 rgba(52,211,153,0); }
}

/* ─── Cards area ─── */
.cards-wrap {
  position: absolute;
  left: 0; right: 0; bottom: 72px;
  z-index: 8;
  display: flex; flex-direction: column;
  align-items: center;
  padding: 0 24px;
  pointer-events: none;
  gap: 22px;
}
.cards-wrap .grid,
.cards-wrap .branches { pointer-events: auto; }

.grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  width: 100%;
  max-width: 1040px;
}

/* ─── Card ─── */
.card {
  display: block;
  position: relative;
  border-radius: 18px;
  transition: transform 0.3s ease;
  cursor: pointer;
}
.card:hover { transform: scale(1.03); }

/* Apple-TV-style flyout — desktop only. Sits above the card, opens on hover.
   padding-bottom on the absolute box bridges the visual gap so the mouse can
   travel from the card into the flyout without losing :hover. */
.card-flyout {
  position: absolute;
  bottom: 100%;
  left: 0; right: 0;
  padding-bottom: 8px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 220ms cubic-bezier(0.2, 0.85, 0.3, 1.1),
              transform 220ms cubic-bezier(0.2, 0.85, 0.3, 1.1);
  z-index: 12;
}
.card:hover > .card-flyout {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.card-flyout-inner {
  background: rgba(8, 14, 26, 0.94);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  padding: 6px;
  box-shadow: 0 18px 40px rgba(0,0,0,0.55);
  display: flex; flex-direction: column;
  gap: 2px;
}
.card-flyout-title {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.24em;
  color: rgba(255,207,62,0.7);
  text-transform: uppercase;
  padding: 6px 10px 4px;
}
.flyout-item {
  display: flex; align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  color: var(--text);
  transition: background 0.15s;
  /* button reset */
  background: transparent;
  border: none;
  font: inherit;
  cursor: pointer;
  text-align: left;
  width: 100%;
}
.flyout-item:hover { background: rgba(255,255,255,0.06); }
.flyout-pin { color: #ff6b6b; flex: 0 0 auto; }
.flyout-text { flex: 1; min-width: 0; }
.flyout-label {
  font-size: 12.5px; font-weight: 500;
  color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  line-height: 1.2;
}
.flyout-city {
  font-family: var(--mono);
  font-size: 9px; letter-spacing: 0.10em;
  color: var(--dim);
  text-transform: uppercase;
  margin-top: 2px;
}
.flyout-cta {
  flex: 0 0 auto;
  padding: 5px 10px;
  border-radius: 8px;
  font-family: var(--mono);
  font-size: 10px; font-weight: 600;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: #ff6b6b;
  background: rgba(255,54,54,0.10);
  border: 1px solid rgba(255,54,54,0.30);
  white-space: nowrap;
  transition: all 0.15s;
}
.flyout-item:hover .flyout-cta {
  background: rgba(255,54,54,0.24);
  color: #fff;
  border-color: rgba(255,54,54,0.6);
}

.card-inner {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 16px 12px;
  display: flex; flex-direction: column;
  align-items: center; gap: 10px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: border-color 0.3s, background 0.3s, box-shadow 0.3s;
}
.card:hover .card-inner {
  border-color: rgba(255,255,255,0.22);
  background: var(--card-hover);
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

.card-logo {
  width: 100%; height: 92px;
  display: flex; align-items: center; justify-content: center;
}
.card-logo img {
  max-width: 100%; max-height: 100%;
  object-fit: contain;
}
/* Wide (3:1-ish) wordmark logos get shrunk so they don't dominate next to square logos. */
.card-logo img.logo-wide {
  max-width: 68%;
  max-height: 60%;
}

/* Dual-logo card: two logos side by side with a vertical collab divider. */
.card.card-dual .card-logo {
  flex-direction: row;
  gap: 14px;
  align-items: center;
}
.card.card-dual .card-logo img {
  max-width: calc(50% - 16px);
  max-height: 100%;
}
/* Primary logo in a dual pair (currently akademi): cap so it doesn't dwarf the secondary wordmark. */
.card.card-dual .card-logo img:nth-of-type(1) {
  max-width: calc(42% - 16px);
  max-height: 72%;
}
.card.card-dual .card-logo img.logo-wide {
  max-width: calc(55% - 8px);
  max-height: 100%;
}
.card-logo-divider {
  flex: 0 0 1px;
  align-self: stretch;
  margin: 14% 0;
  background: linear-gradient(180deg,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,0.28) 30%,
    rgba(255,255,255,0.28) 70%,
    rgba(255,255,255,0) 100%);
}

.card-bottom {
  display: flex; flex-direction: column;
  align-items: center; width: 100%;
  padding-top: 8px;
  border-top: 1px solid var(--border);
  gap: 6px;
}

.card-site {
  display: inline-flex; align-items: center;
  font-size: 0.66rem; font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--site-text);
  padding: 4px 12px;
  border-radius: 100px;
  background: var(--site-bg);
  border: 1px solid var(--site-border);
  transition: all 0.25s ease;
  white-space: nowrap;
}
.card:hover .card-site {
  color: var(--accent);
  border-color: rgba(14,165,233,0.35);
  background: rgba(14,165,233,0.08);
}

.card-socials {
  display: flex; align-items: center; justify-content: center;
  gap: 6px; flex-wrap: wrap;
}
.soc {
  width: 26px; height: 26px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--site-bg);
  border: 1px solid var(--site-border);
  color: var(--dim);
  transition: all 0.25s ease;
}
.soc svg { width: 12px; height: 12px; }
.soc[data-p="phone"]:hover    { background: rgba(34,197,94,0.12);  border-color: rgba(34,197,94,0.4);   color: #22c55e; box-shadow: 0 4px 15px rgba(34,197,94,0.25); }
.soc[data-p="email"]:hover    { background: rgba(14,165,233,0.12); border-color: rgba(14,165,233,0.4);  color: #0EA5E9; box-shadow: 0 4px 15px rgba(14,165,233,0.25); }
.soc[data-p="instagram"]:hover{ background: rgba(225,48,108,0.12); border-color: rgba(225,48,108,0.4);  color: #E1306C; box-shadow: 0 4px 15px rgba(225,48,108,0.25); }
.soc[data-p="linkedin"]:hover { background: rgba(0,119,181,0.12);  border-color: rgba(0,119,181,0.4);   color: #0077B5; box-shadow: 0 4px 15px rgba(0,119,181,0.25); }
.soc[data-p="twitter"]:hover  { background: rgba(29,155,240,0.12); border-color: rgba(29,155,240,0.4);  color: #1D9BF0; box-shadow: 0 4px 15px rgba(29,155,240,0.25); }
.soc[data-p="youtube"]:hover  { background: rgba(255,0,0,0.1);     border-color: rgba(255,0,0,0.35);    color: #FF0000; box-shadow: 0 4px 15px rgba(255,0,0,0.2);  }
.soc[data-p="facebook"]:hover { background: rgba(24,119,242,0.12); border-color: rgba(24,119,242,0.4);  color: #1877F2; box-shadow: 0 4px 15px rgba(24,119,242,0.25); }

/* ─── Branches ─── */
.branches {
  display: flex; align-items: center; justify-content: center;
}
.branches-list {
  display: flex; align-items: center; justify-content: center;
  gap: 8px; flex-wrap: wrap;
}
.branch {
  display: inline-flex; align-items: center;
  gap: 5px;
  font-size: 0.7rem; font-weight: 500;
  color: var(--site-text);
  padding: 5px 14px;
  border-radius: 100px;
  background: var(--site-bg);
  border: 1px solid var(--site-border);
  transition: all 0.25s ease;
  white-space: nowrap;
}
.branch:hover {
  color: #ef4444;
  border-color: rgba(239,68,68,0.35);
  background: rgba(239,68,68,0.08);
}

/* ─── Cockpit throttle lever zoom bar (right side, vertical) ─── */
.zoom-bar {
  position: absolute;
  right: 28px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 12;
  pointer-events: auto;
  padding: 14px 10px 10px;
  background: linear-gradient(180deg, rgba(16,24,38,0.75), rgba(10,16,26,0.85));
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 8px;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.06);
  display: flex; flex-direction: column; align-items: center;
  gap: 8px;
}
.zoom-bar-label,
.zoom-bar-value {
  font-family: var(--mono);
  font-size: 9px;
  color: rgba(255,207,62,0.85);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  line-height: 1;
}
.zoom-bar-value {
  letter-spacing: 0.08em;
  color: rgba(255,207,62,0.7);
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}
.zoom-slider-wrap {
  position: relative;
  width: 28px;
  height: 240px;
}
.zoom-track {
  position: absolute;
  left: 50%; top: 0; bottom: 0;
  transform: translateX(-50%);
  width: 2px;
  background: linear-gradient(to bottom,
    rgba(255,207,62,0.35),
    rgba(255,207,62,0.15),
    rgba(120,160,220,0.12),
    rgba(120,160,220,0.08));
  border-radius: 1px;
  box-shadow: 0 0 4px rgba(255,207,62,0.15);
}
.zoom-ticks {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.zoom-tick {
  position: absolute;
  left: 4px; right: 4px;
  height: 1px;
  background: rgba(255,255,255,0.18);
}
.zoom-tick:nth-child(odd) {
  left: 1px; right: 1px;
  background: rgba(255,255,255,0.28);
}
.zoom-slider {
  position: absolute;
  top: 50%; left: 50%;
  width: 240px; height: 28px;
  transform: translate(-50%, -50%) rotate(90deg);
  transform-origin: center;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  outline: none;
  cursor: pointer;
  margin: 0;
}
.zoom-slider::-webkit-slider-runnable-track { height: 2px; background: transparent; }
.zoom-slider::-moz-range-track              { height: 2px; background: transparent; }
.zoom-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px; height: 12px;
  margin-top: -5px;            /* center thumb on the 2px track */
  border-radius: 3px;
  background: linear-gradient(180deg, #fff1b8 0%, #f5c23e 45%, #b38520 100%);
  border: 1px solid rgba(90,60,10,0.7);
  cursor: grab;
  box-shadow:
    0 0 8px 2px rgba(255,207,62,0.45),
    inset 0 1px 0 rgba(255,255,255,0.55),
    inset 0 -2px 4px rgba(120,80,15,0.5);
  transition: box-shadow 0.18s;
}
.zoom-slider::-moz-range-thumb {
  width: 22px; height: 12px;
  border-radius: 3px;
  background: linear-gradient(180deg, #fff1b8, #f5c23e, #b38520);
  border: 1px solid rgba(90,60,10,0.7);
  cursor: grab;
  box-shadow: 0 0 8px 2px rgba(255,207,62,0.45);
}
.zoom-slider:hover::-webkit-slider-thumb {
  box-shadow:
    0 0 14px 3px rgba(255,207,62,0.65),
    inset 0 1px 0 rgba(255,255,255,0.7),
    inset 0 -2px 4px rgba(120,80,15,0.5);
}
.zoom-slider:active::-webkit-slider-thumb { cursor: grabbing; }

/* ─── Flight tooltip ─── */
.flight-tip {
  background: rgba(8,14,26,0.94);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  padding: 12px 14px;
  min-width: 240px;
  box-shadow: 0 12px 30px -6px rgba(0,0,0,0.55);
  backdrop-filter: blur(10px);
  color: var(--text);
}
.tip-header {
  display: flex; align-items: center; gap: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 8px;
}
.flight-no {
  font-family: var(--mono); font-size: 13px; font-weight: 600;
  color: #fff; letter-spacing: 0.03em;
}
.flight-airline {
  font-size: 10px; color: var(--dim);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  max-width: 120px;
}
.tip-tag {
  margin-left: auto;
  font-family: var(--mono); font-size: 9px; letter-spacing: 0.12em;
  color: #22c55e; text-transform: uppercase;
  padding: 2px 6px; background: rgba(34,197,94,0.12); border-radius: 3px;
}
.tip-aircraft {
  font-family: var(--mono); font-size: 10px; font-weight: 500;
  color: #a7c9ff;
  padding: 3px 8px;
  background: rgba(75,126,201,0.12);
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 10px;
  letter-spacing: 0.02em;
}
.tip-route {
  display: grid; grid-template-columns: 1fr 1.4fr 1fr;
  gap: 10px; align-items: center;
  margin-bottom: 10px;
}
.tip-side { text-align: left; }
.tip-side-r { text-align: right; }
.tip-iata {
  font-family: var(--mono); font-size: 15px; font-weight: 700;
  color: #fff; letter-spacing: 0.02em;
}
.tip-city {
  font-size: 10px; color: var(--dim); margin-top: 2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.tip-arrow {
  position: relative;
  height: 14px;
}
.tip-progress {
  position: absolute; top: 6px; left: 0; right: 0;
  height: 2px; background: rgba(255,255,255,0.12); border-radius: 2px;
  overflow: hidden;
}
.tip-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, rgba(120,180,255,0.4), rgba(120,200,160,0.9));
}
.tip-plane-ico {
  position: absolute; top: -1px;
  transform: translateX(-50%);
  font-size: 11px; color: #7ac9a8;
  filter: drop-shadow(0 0 3px rgba(120,200,160,0.6));
}
.tip-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 14px;
}
.tip-meta > div { display: flex; justify-content: space-between; gap: 6px; }
.tip-meta .k {
  font-family: var(--mono); font-size: 9px; letter-spacing: 0.1em;
  color: var(--dim); text-transform: uppercase;
}
.tip-meta .v {
  font-size: 11px; font-weight: 500;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.tip-country-foot {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 9.5px;
  color: var(--dim);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: flex; justify-content: space-between; align-items: center;
  gap: 8px;
}
.tip-icao {
  font-family: var(--mono);
  color: rgba(255,255,255,0.32);
  letter-spacing: 0.14em;
}
.tip-emergency {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 9px; font-weight: 700;
  letter-spacing: 0.12em;
  color: #ef4444;
  text-transform: uppercase;
  padding: 2px 6px;
  background: rgba(239,68,68,0.18);
  border: 1px solid rgba(239,68,68,0.45);
  border-radius: 3px;
  animation: emergency-flash 1.4s ease-in-out infinite;
}
.flight-tip-emergency {
  border-color: rgba(239,68,68,0.55);
  box-shadow: 0 12px 30px -6px rgba(0,0,0,0.55), 0 0 0 1px rgba(239,68,68,0.35);
}
@keyframes emergency-flash {
  0%, 100% { background: rgba(239,68,68,0.18); }
  50%      { background: rgba(239,68,68,0.36); }
}
.v-climb   { color: #34d399; }
.v-descent { color: #f97316; }
.v-level   { color: var(--text); }

/* ─── Office tooltip ─── */
.office-tip {
  background: rgba(12,8,16,0.94);
  border: 1px solid rgba(255,54,54,0.35);
  border-radius: 10px;
  padding: 10px 14px;
  min-width: 200px;
  box-shadow: 0 12px 30px -6px rgba(0,0,0,0.55);
  backdrop-filter: blur(10px);
  color: var(--text);
}
.office-tip-rich { min-width: 260px; max-width: 320px; }
/* When triggered from the desktop flyout, dock the rich tooltip to the left
   edge of the viewport so it doesn't overlap the flyout (bottom-center). */
/* ─── Centered office detail modal (desktop click + mobile tap) ─── */
.om-backdrop {
  position: fixed; inset: 0;
  z-index: 60;
  background: rgba(4,8,18,0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  animation: cm-fade 220ms ease-out both;
}
.om-card {
  position: relative;
  width: 100%; max-width: 380px;
  padding: 30px 26px 26px;
  border-radius: 20px;
  background: rgba(14,12,20,0.72);
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  border: 1px solid rgba(255,54,54,0.32);
  box-shadow: 0 24px 64px rgba(0,0,0,0.55), inset 0 1px 0 rgba(255,255,255,0.08);
  display: flex; flex-direction: column; align-items: center;
  gap: 12px;
  text-align: center;
  animation: cm-pop 360ms cubic-bezier(.2,.85,.3,1.15) both;
}
.om-close {
  position: absolute; top: 10px; right: 12px;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  color: var(--text);
  font-size: 22px; line-height: 1;
  cursor: pointer;
  display: grid; place-items: center;
  transition: background 0.15s;
}
.om-close:hover { background: rgba(255,255,255,0.16); }
.om-pin {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: rgba(255,54,54,0.18);
  border: 1px solid rgba(255,54,54,0.45);
  display: grid; place-items: center;
  color: #ff6b6b;
}
.om-label {
  font-size: 22px; font-weight: 600;
  color: #fff;
  line-height: 1.2;
}
.om-city {
  font-family: var(--mono);
  font-size: 10px; letter-spacing: 0.22em;
  color: var(--dim);
  text-transform: uppercase;
  margin-top: -6px;
}
.om-address {
  font-size: 13px;
  color: var(--text);
  line-height: 1.5;
  padding: 4px 4px 0;
}
.om-contacts {
  display: flex; flex-direction: column; gap: 6px;
  width: 100%;
  padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.om-link {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text);
  text-decoration: none;
  transition: color 0.15s;
}
.om-link:hover { color: var(--accent); }
.om-ico { color: var(--dim); width: 14px; text-align: center; }
.om-cta {
  display: inline-block;
  margin-top: 6px;
  padding: 11px 24px;
  border-radius: 999px;
  background: rgba(255,54,54,0.14);
  border: 1px solid rgba(255,54,54,0.45);
  color: #ff6b6b;
  font-size: 13px; font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: all 0.15s;
}
.om-cta:hover {
  background: rgba(255,54,54,0.24);
  color: #fff;
  border-color: rgba(255,54,54,0.7);
  transform: translateY(-1px);
}
.ot-address {
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 11px;
  color: var(--text);
  line-height: 1.45;
}
.ot-contacts {
  display: flex; flex-direction: column; gap: 4px;
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.ot-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px;
  color: var(--site-text);
  text-decoration: none;
  transition: color 0.15s;
}
.ot-link:hover { color: var(--accent); }
.ot-ico {
  display: inline-block; width: 14px;
  color: var(--dim);
  text-align: center;
}
.ot-cta {
  display: inline-block;
  margin-top: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255,54,54,0.12);
  border: 1px solid rgba(255,54,54,0.4);
  color: #ff6b6b;
  font-size: 11px; font-weight: 500;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: all 0.15s;
}
.ot-cta:hover {
  background: rgba(255,54,54,0.2);
  color: #fff;
  border-color: rgba(255,54,54,0.6);
}
.ot-header {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 4px;
}
.ot-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #ff3636;
  box-shadow: 0 0 6px 2px rgba(255,54,54,0.55);
}
.ot-label {
  font-size: 13px; font-weight: 600;
  color: #fff;
}
.ot-city {
  font-family: var(--mono); font-size: 10px;
  color: var(--dim); letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ─── Airport tooltip ─── */
.airport-tip {
  background: rgba(8,14,26,0.94);
  border: 1px solid rgba(255,207,62,0.25);
  border-radius: 10px;
  padding: 10px 14px;
  min-width: 180px;
  box-shadow: 0 12px 30px -6px rgba(0,0,0,0.55);
  backdrop-filter: blur(10px);
  color: var(--text);
}
.at-header {
  display: flex; align-items: center; gap: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(255,207,62,0.18);
  margin-bottom: 6px;
}
.at-iata {
  font-family: var(--mono); font-size: 14px; font-weight: 700;
  color: #ffcf3e; letter-spacing: 0.05em;
}
.at-tag {
  margin-left: auto;
  font-family: var(--mono); font-size: 9px; letter-spacing: 0.12em;
  color: #ffcf3e; text-transform: uppercase;
  padding: 2px 6px;
  background: rgba(255,207,62,0.12);
  border-radius: 3px;
}
.at-name {
  font-size: 12px; font-weight: 500;
  color: var(--text);
  margin-bottom: 2px;
}
.at-city {
  font-family: var(--mono); font-size: 10px;
  color: var(--dim); letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ─── Mobile ─── */
@media (max-width: 768px) {
  .zoom-bar { display: none; }
  .top {
    padding: 12px 14px;
    flex-wrap: wrap;
    gap: 8px;
  }
  .top-left { gap: 8px; }
  .top-right { gap: 8px; }
  .brand-logo { height: 72px; }
  .telemetry { display: none; }
  .clock-local .clock-val { font-size: 14px; }
  .clock-utc .clock-val { font-size: 9.5px; }
  .clock-tag { font-size: 8px; min-width: 22px; letter-spacing: 0.18em; }
  .cards-wrap {
    bottom: 56px;
    padding: 0 14px;
    gap: 12px;
  }
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    width: 100%;
    max-width: 380px;
  }
  /* Tap-only logo tiles on mobile — socials/site move to the modal */
  .card-inner {
    padding: 14px 10px;
    gap: 0;
  }
  .card-logo { height: 86px; }
  .card.card-dual .card-logo img { max-width: calc(50% - 14px); }
  .card-bottom { display: none; }
  .card-flyout { display: none; }

  /* Company modal */
  .cm-backdrop {
    position: fixed; inset: 0;
    z-index: 50;
    background: rgba(4,8,18,0.55);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex; align-items: center; justify-content: center;
    padding: 24px;
    animation: cm-fade 260ms ease-out both;
  }
  .cm-card {
    position: relative;
    width: 100%; max-width: 360px;
    padding: 36px 22px 22px;
    border-radius: 20px;
    background: rgba(22,34,58,0.55);
    backdrop-filter: blur(22px) saturate(160%);
    -webkit-backdrop-filter: blur(22px) saturate(160%);
    border: 1px solid rgba(255,255,255,0.16);
    box-shadow: 0 24px 64px rgba(0,0,0,0.55), inset 0 1px 0 rgba(255,255,255,0.08);
    display: flex; flex-direction: column; align-items: center; gap: 18px;
    animation: cm-pop 420ms cubic-bezier(.2,.85,.3,1.15) both;
    will-change: transform, opacity;
  }
  .cm-close {
    position: absolute; top: 8px; right: 10px;
    width: 32px; height: 32px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.14);
    color: var(--text);
    font-size: 22px; line-height: 1;
    cursor: pointer;
    display: grid; place-items: center;
    transition: background 0.15s;
  }
  .cm-close:hover { background: rgba(255,255,255,0.16); }
  .cm-logo {
    width: 100%; height: 110px;
    display: flex; align-items: center; justify-content: center;
    padding-top: 6px;
  }
  .cm-logo img { max-width: 85%; max-height: 100%; object-fit: contain; }
  /* Wide wordmarks (teknoloji/telepath) get shrunk in the modal too so they don't dominate. */
  .cm-logo img.logo-wide { max-width: 68%; max-height: 65%; }
  .cm-logo.cm-logo-dual {
    flex-direction: row;
    gap: 14px;
    align-items: center;
    height: 130px;
  }
  .cm-logo.cm-logo-dual img { max-width: calc(50% - 14px); max-height: 100%; }
  /* Primary (akademi) shrunk so the wide telepath wordmark gets visual weight. */
  .cm-logo.cm-logo-dual img:nth-of-type(1) {
    max-width: calc(40% - 14px);
    max-height: 75%;
  }
  .cm-logo.cm-logo-dual img.logo-wide {
    max-width: calc(56% - 8px);
    max-height: 100%;
  }
  .cm-logo-divider {
    flex: 0 0 1px;
    align-self: stretch;
    margin: 14% 0;
    background: linear-gradient(180deg,
      rgba(255,255,255,0) 0%,
      rgba(255,255,255,0.32) 30%,
      rgba(255,255,255,0.32) 70%,
      rgba(255,255,255,0) 100%);
  }
  .cm-site {
    display: inline-flex; align-items: center;
    padding: 6px 16px;
    border-radius: 100px;
    background: var(--site-bg);
    border: 1px solid var(--site-border);
    color: var(--site-text);
    font-size: 0.75rem; font-weight: 500;
    letter-spacing: 0.02em;
    text-decoration: none;
  }
  .cm-site:active { color: var(--accent); border-color: rgba(14,165,233,0.4); }
  .cm-socials {
    display: flex; gap: 10px; flex-wrap: wrap; justify-content: center;
    padding: 4px 0 2px;
  }
  .cm-socials .soc { width: 40px; height: 40px; }
  .cm-socials .soc svg { width: 18px; height: 18px; }

  .cm-offices {
    display: flex; flex-direction: column;
    gap: 8px; width: 100%;
    padding-top: 14px;
    border-top: 1px solid rgba(255,255,255,0.10);
  }
  .cm-office {
    display: flex; align-items: center; gap: 10px;
    padding: 11px 14px;
    border-radius: 12px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.10);
    color: var(--text);
    text-decoration: none;
    transition: background 0.15s;
    /* button reset */
    font: inherit;
    cursor: pointer;
    text-align: left;
    width: 100%;
  }
  .cm-office:active { background: rgba(255,54,54,0.14); border-color: rgba(255,54,54,0.32); }
  .cm-office-pin { color: #ff6b6b; flex: 0 0 auto; }
  .cm-office-text {
    flex: 1; min-width: 0;
    display: flex; flex-direction: column;
    gap: 2px;
    text-align: left;
  }
  .cm-office-label {
    font-size: 14px; font-weight: 600;
    color: var(--text);
    line-height: 1.2;
  }
  .cm-office-city {
    font-family: var(--mono);
    font-size: 10px; letter-spacing: 0.14em;
    color: var(--dim);
    text-transform: uppercase;
  }
  .cm-office-arrow {
    font-size: 22px;
    color: var(--dim);
    font-weight: 300;
    line-height: 1;
    flex: 0 0 auto;
  }
}

@keyframes cm-fade {
  from { opacity: 0; } to { opacity: 1; }
}
@keyframes cm-pop {
  0%   { opacity: 0; transform: translateY(48px) scale(0.55); }
  60%  { opacity: 1; }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-height: 720px) and (min-width: 769px) {
  .card-logo { height: 72px; }
}
