/* ============================================================
   JECKOVICH PROJECTS — style.css
   Dark atmospheric indie web. No frameworks. No build step.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400&family=DM+Mono:wght@300;400;500&family=Manrope:wght@300;400;500;600&display=swap');

/* ── Variables ──────────────────────────────────────────────── */
:root {
  --bg:          #09090e;
  --bg-surface:  #0e0e18;
  --bg-card:     rgba(255,255,255,0.028);
  --border:      rgba(255,255,255,0.07);
  --border-h:    rgba(255,255,255,0.14);

  --amber:       #c8854a;
  --amber-light: #e8a468;
  --amber-glow:  rgba(200,133,74,0.14);
  --sky:         #6ba3c8;
  --sky-glow:    rgba(107,163,200,0.12);
  --sage:        #7a9e8e;
  --sage-glow:   rgba(122,158,142,0.12);

  --text-1: rgba(255,255,255,0.92);
  --text-2: rgba(255,255,255,0.55);
  --text-3: rgba(255,255,255,0.28);

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Manrope', system-ui, sans-serif;
  --font-mono:    'DM Mono', 'Courier New', monospace;
}

/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text-1);
  font-family: var(--font-body);
  overflow-x: hidden;
  line-height: 1.6;
}
a { text-decoration: none; color: inherit; }
::selection { background: var(--amber-glow); color: var(--amber-light); }

/* Scrollbar */
::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: rgba(200,133,74,0.25); border-radius: 2px; }


/* ══════════════════════════════════════════════════════════════
   HERO
══════════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

#hero-canvas {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.hero-glow {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: min(900px, 100vw);
  height: 600px;
  background: radial-gradient(ellipse, rgba(200,133,74,0.055) 0%, transparent 70%);
  pointer-events: none;
  z-index: 1;
}

.hero-fade-bottom {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 220px;
  background: linear-gradient(to bottom, transparent, var(--bg));
  pointer-events: none;
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 860px;
  padding: 2rem 1.5rem;
}

.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  color: var(--amber);
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3.6rem, 9.5vw, 8.5rem);
  font-weight: 300;
  line-height: 1.0;
  letter-spacing: -0.02em;
  color: var(--text-1);
  margin-bottom: 1.5rem;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease 0.12s, transform 0.8s ease 0.12s;
}

.hero-title em {
  font-style: italic;
  color: var(--amber-light);
}

.hero-subtitle {
  font-size: clamp(0.9rem, 1.9vw, 1.1rem);
  font-weight: 300;
  color: var(--text-2);
  line-height: 1.7;
  margin-bottom: 1.25rem;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s ease 0.24s, transform 0.7s ease 0.24s;
}

.hero-micro {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-3);
  letter-spacing: 0.04em;
  line-height: 1.9;
  margin-bottom: 2.75rem;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.7s ease 0.36s, transform 0.7s ease 0.36s;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.7s ease 0.48s, transform 0.7s ease 0.48s;
}

/* Animate in on load */
[data-animate].visible {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* ── Buttons ────────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.72rem 1.9rem;
  background: var(--amber);
  color: #0a0a0f;
  font-family: var(--font-body);
  font-size: 0.83rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.3s ease, transform 0.2s ease;
}
.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.12);
  transform: translateX(-105%);
  transition: transform 0.35s ease;
}
.btn-primary:hover::before { transform: translateX(0); }
.btn-primary:hover {
  box-shadow: 0 0 28px var(--amber-glow);
  transform: translateY(-1px);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.7rem;
  background: transparent;
  color: var(--text-2);
  font-family: var(--font-body);
  font-size: 0.83rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.3s ease;
}
.btn-ghost:hover {
  border-color: var(--border-h);
  color: var(--text-1);
  background: var(--bg-card);
  transform: translateY(-1px);
}

/* ── Scroll hint ────────────────────────────────────────────── */
.hero-scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  z-index: 10;
  animation: fadeIn 1s ease 1.4s both;
}
.hero-scroll-hint span {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.22em;
  color: var(--text-3);
  text-transform: uppercase;
}
.scroll-line {
  width: 1px;
  height: 42px;
  background: linear-gradient(to bottom, rgba(200,133,74,0.5), transparent);
  animation: scrollPulse 2.5s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(1); }
  50% { opacity: 0.9; transform: scaleY(1.1); }
}


/* ══════════════════════════════════════════════════════════════
   SECTION BASE
══════════════════════════════════════════════════════════════ */
.section {
  position: relative;
  padding: 7rem 0;
  overflow: hidden;
}

.section-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2.5rem;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.section-label::after {
  content: '';
  height: 1px;
  width: 36px;
  opacity: 0.35;
}
.section-label.amber   { color: var(--amber); }
.section-label.amber::after { background: var(--amber); }
.section-label.sky     { color: var(--sky); }
.section-label.sky::after   { background: var(--sky); }
.section-label.sage    { color: var(--sage); }
.section-label.sage::after  { background: var(--sage); }
.section-label.dim     { color: var(--text-3); }
.section-label.dim::after   { background: var(--text-3); }

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5.5vw, 4.2rem);
  font-weight: 300;
  line-height: 1.08;
  color: var(--text-1);
  margin-bottom: 0.75rem;
}
.section-title em { font-style: italic; }
.amber-text { color: var(--amber-light); }
.sky-text   { color: var(--sky); }
.sage-text  { color: var(--sage); }

.section-sub {
  font-size: 0.92rem;
  color: var(--text-2);
  font-weight: 300;
  max-width: 460px;
  line-height: 1.75;
  margin-bottom: 3.5rem;
}

.section-header { margin-bottom: 0; }

/* Section accents */
.section-top-accent {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  pointer-events: none;
}
.section-top-accent.sky  { background: linear-gradient(90deg, transparent, rgba(107,163,200,0.28), transparent); }
.section-top-accent.sage { background: linear-gradient(90deg, transparent, rgba(122,158,142,0.22), transparent); }
.section-top-accent.dim  { background: linear-gradient(90deg, transparent, rgba(255,255,255,0.06), transparent); }


/* ══════════════════════════════════════════════════════════════
   SECTION 1 — MIGRATION
══════════════════════════════════════════════════════════════ */
.section-migration {
  background: radial-gradient(ellipse 80% 60% at 18% 50%, rgba(200,133,74,0.04) 0%, transparent 70%);
}
.section-migration::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 59px, rgba(200,133,74,0.025) 60px),
    repeating-linear-gradient(90deg, transparent, transparent 59px, rgba(200,133,74,0.025) 60px);
  pointer-events: none;
}

.section-stamp-ring {
  position: absolute;
  width: 130px; height: 130px;
  border: 2px solid rgba(200,133,74,0.07);
  border-radius: 50%;
  pointer-events: none;
}
.section-stamp-ring.small { width: 82px; height: 82px; }
.section-stamp-ring.tiny  { width: 55px; height: 55px; }

.section-left-accent {
  position: absolute;
  top: 0; left: 0;
  width: 3px; height: 100%;
  background: linear-gradient(to bottom, transparent, rgba(200,133,74,0.28), transparent);
  pointer-events: none;
}

/* Migration grid: large card | two stacked */
.migration-grid {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 1.5px;
}
.migration-stack {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 1.5px;
}


/* ══════════════════════════════════════════════════════════════
   SECTION 2 — TRAVEL
══════════════════════════════════════════════════════════════ */
.section-travel {
  background: radial-gradient(ellipse 80% 60% at 82% 50%, rgba(107,163,200,0.04) 0%, transparent 70%);
}

.airport-routes {
  position: absolute;
  top: 4.5rem; right: 3.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.32em;
  color: rgba(107,163,200,0.13);
  text-transform: uppercase;
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

/* Travel grid: slightly asymmetric */
.travel-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 1.5px;
}


/* ══════════════════════════════════════════════════════════════
   SECTION 3 — AVIATION
══════════════════════════════════════════════════════════════ */
.section-aviation {
  background: radial-gradient(ellipse 70% 60% at 50% 75%, rgba(122,158,142,0.04) 0%, transparent 70%);
}

.crt-lines {
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0,0,0,0.025) 2px,
    rgba(0,0,0,0.025) 4px
  );
  pointer-events: none;
  z-index: 1;
}

/* Terminal card */
.terminal-card {
  position: relative;
  z-index: 2;
  background: #0c0c15;
  border: 1px solid rgba(122,158,142,0.14);
  overflow: hidden;
}
.terminal-top-bar {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--sage), transparent);
  opacity: 0.45;
}
.terminal-inner {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 4rem;
  padding: 2.5rem;
  align-items: start;
}

/* Departure board */
.board-header {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.22em;
  color: rgba(122,158,142,0.38);
  text-transform: uppercase;
  border-bottom: 1px solid rgba(122,158,142,0.1);
  padding-bottom: 0.5rem;
  margin-bottom: 0.25rem;
}
.departure-board { font-family: var(--font-mono); }
.board-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  color: rgba(122,158,142,0.48);
  text-transform: uppercase;
  padding: 0.35rem 0;
  border-bottom: 1px solid rgba(122,158,142,0.07);
  line-height: 1;
}
.board-row .bright { color: rgba(122,158,142,0.75); }
.board-footnote {
  margin-top: 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  color: rgba(122,158,142,0.18);
  letter-spacing: 0.08em;
}

/* Aircraft tags */
.aircraft-tags {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}
.aircraft-tags span {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.06em;
  color: rgba(122,158,142,0.55);
  border: 1px solid rgba(122,158,142,0.14);
  padding: 0.18rem 0.5rem;
}


/* ══════════════════════════════════════════════════════════════
   SECTION 4 — GHOST / UNDER CONSTRUCTION
══════════════════════════════════════════════════════════════ */
.section-ghost {
  background: radial-gradient(ellipse 50% 40% at 50% 50%, rgba(255,255,255,0.01) 0%, transparent 100%);
}

.ghost-title { color: rgba(255,255,255,0.55); }
.ghost-em { color: rgba(255,255,255,0.3); }

.ghost-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5px;
}

.ghost-card {
  border: 1px dashed rgba(255,255,255,0.07);
  padding: 2.25rem 1.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 170px;
  text-align: center;
  transition: border-color 0.4s ease, background 0.4s ease;
  cursor: default;
}
.ghost-card:hover {
  border-color: rgba(255,255,255,0.13);
  background: rgba(255,255,255,0.01);
}
.ghost-type {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.22em;
  color: rgba(255,255,255,0.14);
  text-transform: uppercase;
  margin-bottom: 0.7rem;
}
.ghost-name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: rgba(255,255,255,0.28);
  margin-bottom: 0.5rem;
}
.ghost-hint {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: rgba(255,255,255,0.1);
  letter-spacing: 0.03em;
}
.ghost-pulse-bar {
  margin-top: 1.2rem;
  height: 1px;
  background: rgba(255,255,255,0.07);
  animation: ghostPulse 3s ease-in-out infinite;
}
@keyframes ghostPulse {
  0%, 100% { width: 28px; opacity: 0.07; }
  50%       { width: 48px; opacity: 0.18; }
}


/* ══════════════════════════════════════════════════════════════
   CARDS
══════════════════════════════════════════════════════════════ */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 1.9rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
  cursor: default;
}
.card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.018) 0%, transparent 55%);
  pointer-events: none;
}

/* Hero card (bigger) */
.card-hero {
  min-height: 370px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.card-hero .card-title { font-size: 2.1rem; }

/* Hatch background for hero card */
.card-hatch-bg {
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 20px,
    rgba(200,133,74,0.014) 20px,
    rgba(200,133,74,0.014) 21px
  );
  pointer-events: none;
}

/* Amber */
.card-amber:hover {
  border-color: rgba(200,133,74,0.22);
  box-shadow: 0 10px 38px var(--amber-glow), 0 0 0 1px rgba(200,133,74,0.1);
  transform: translateY(-3px);
}
/* Sky */
.card-sky:hover {
  border-color: rgba(107,163,200,0.22);
  box-shadow: 0 10px 38px var(--sky-glow), 0 0 0 1px rgba(107,163,200,0.1);
  transform: translateY(-3px);
}

/* Card internals */
.card-top-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.card-type-label {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  color: var(--text-3);
}
.card-title {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 400;
  line-height: 1.18;
  color: var(--text-1);
  margin-bottom: 0.5rem;
}
.card-domain {
  font-family: var(--font-mono);
  font-size: 0.67rem;
  color: var(--text-3);
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}
.card-desc {
  font-size: 0.87rem;
  color: var(--text-2);
  line-height: 1.78;
  font-weight: 300;
}
.card-desc.small { font-size: 0.82rem; }

.card-links-row {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}
.card-link {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  transition: letter-spacing 0.2s ease;
}
.card-link:hover { letter-spacing: 0.18em; }
.card-link.amber { color: var(--amber); margin-top: 1.5rem; }
.card-link.sky   { color: var(--sky);   margin-top: 1.5rem; }
.card-link.sage  { color: var(--sage);  margin-top: 1.5rem; }
.card-link.disabled { opacity: 0.35; cursor: not-allowed; }
.card-link.disabled:hover { letter-spacing: 0.1em; }
.card-link-secondary {
  font-family: var(--font-mono);
  font-size: 0.63rem;
  letter-spacing: 0.08em;
  color: var(--text-3);
  transition: color 0.2s ease;
}
.card-link-secondary:hover { color: var(--text-2); }

/* APK note */
.card-apk-note {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--amber);
  opacity: 0.65;
  margin-top: 0.5rem;
}

/* Baggage badge decoration */
.card-baggage-badge {
  position: absolute;
  top: 1.5rem; right: 1.5rem;
  width: 50px; height: 66px;
  border: 1px solid rgba(107,163,200,0.18);
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.52rem;
  color: rgba(107,163,200,0.35);
  letter-spacing: 0.04em;
}

/* Signal glow decoration */
.card-signal-glow {
  position: absolute;
  bottom: 0; right: 0;
  width: 130px; height: 130px;
  background: radial-gradient(circle at bottom right, rgba(107,163,200,0.05), transparent 70%);
  pointer-events: none;
}


/* ── Status badges ──────────────────────────────────────────── */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.22rem 0.65rem;
  border: 1px solid;
}
.status-badge.live {
  color: #6dbf8a;
  border-color: rgba(109,191,138,0.28);
  background: rgba(109,191,138,0.06);
}
.status-badge.dev {
  color: var(--amber);
  border-color: rgba(200,133,74,0.28);
  background: rgba(200,133,74,0.06);
}
.status-badge.sage-badge {
  color: var(--sage);
  border-color: rgba(122,158,142,0.28);
  background: rgba(122,158,142,0.06);
}

.status-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}
.status-dot.pulse { animation: dotPulse 2.2s ease-in-out infinite; }
.status-dot.sage-dot { background: var(--sage); }
@keyframes dotPulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.35; }
}

/* Domain in sage color */
.sage-domain { color: rgba(122,158,142,0.45) !important; }
.card-link.sage { margin-top: 0; }


/* ══════════════════════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════════════════════ */
.footer {
  border-top: 1px solid var(--border);
  padding: 4rem 0 0;
  position: relative;
}
.footer-top-drip {
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 1px; height: 55px;
  background: linear-gradient(to bottom, rgba(200,133,74,0.28), transparent);
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 300;
  color: var(--text-1);
  letter-spacing: -0.01em;
  margin-bottom: 0.6rem;
}
.footer-tagline {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-3);
  letter-spacing: 0.04em;
  line-height: 1.75;
  max-width: 300px;
  margin-bottom: 1.75rem;
}
.footer-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.08rem;
  color: rgba(200,133,74,0.42);
  border-left: 2px solid rgba(200,133,74,0.18);
  padding-left: 1rem;
  line-height: 1.5;
}

.footer-links-label {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  color: var(--text-3);
  text-transform: uppercase;
  margin-bottom: 1.4rem;
}
.footer-links { display: flex; flex-direction: column; gap: 0.65rem; }
.footer-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.84rem;
  color: var(--text-2);
  transition: color 0.2s ease;
}
.footer-link:hover { color: var(--text-1); }
.footer-link svg { opacity: 0.5; flex-shrink: 0; }
.footer-link.dim { opacity: 0.45; }
.link-platform {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--text-3);
  margin-left: 0.2rem;
}

.footer-bottom {
  max-width: 1280px;
  margin: 3rem auto 0;
  padding: 1.4rem 2.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--text-3);
  letter-spacing: 0.05em;
}


/* ══════════════════════════════════════════════════════════════
   UTILITIES
══════════════════════════════════════════════════════════════ */
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}


/* ══════════════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════════════ */
@media (max-width: 960px) {
  .migration-grid,
  .travel-grid { grid-template-columns: 1fr; }
  .migration-stack { grid-template-rows: auto; }
  .terminal-inner { grid-template-columns: 1fr; gap: 2rem; }
  .ghost-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .airport-routes { display: none; }
}

@media (max-width: 600px) {
  .section { padding: 4.5rem 0; }
  .section-inner { padding: 0 1.25rem; }
  .card { padding: 1.5rem; }
  .ghost-grid { grid-template-columns: 1fr 1fr; }
  .hero-subtitle br { display: none; }
  .hero-micro br { display: none; }
  .footer-bottom { flex-direction: column; gap: 0.4rem; }
  .terminal-inner { padding: 1.75rem; }
}

@media (max-width: 400px) {
  .ghost-grid { grid-template-columns: 1fr; }
}


/* ══════════════════════════════════════════════════════════════
   LANGUAGE SWITCHER
══════════════════════════════════════════════════════════════ */
.lang-switcher {
  position: fixed;
  top: 1.4rem;
  right: 1.75rem;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(10, 10, 18, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  padding: 0.35rem 0.7rem;
  transition: border-color 0.3s ease;
}
.lang-switcher:hover { border-color: var(--border-h); }

.lang-btn {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--text-3);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.15rem 0.2rem;
  transition: color 0.25s ease;
  line-height: 1;
}
.lang-btn:hover { color: var(--text-2); }
.lang-btn.active { color: var(--amber); }
.lang-btn[aria-pressed="true"] { color: var(--amber); }

.lang-sep {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  color: var(--text-3);
  opacity: 0.5;
  line-height: 1;
}

/* Language transition — fade body text on switch */
[data-i18n] {
  transition: opacity 0.18s ease;
}
body.lang-switching [data-i18n] {
  opacity: 0;
}


/* ══════════════════════════════════════════════════════════════
   SECTION 4 — ABSTRACT GHOST CARDS (refined)
══════════════════════════════════════════════════════════════ */
.ghost-card-abstract {
  min-height: 190px;
  gap: 0;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

/* Subtle ambient glow on hover */
.ghost-card-abstract::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(200,133,74,0.04) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}
.ghost-card-abstract:hover::after { opacity: 1; }

.ghost-abstract-icon {
  font-size: 1.4rem;
  color: rgba(255,255,255,0.1);
  margin-bottom: 1.2rem;
  line-height: 1;
  transition: color 0.4s ease;
}
.ghost-card-abstract:hover .ghost-abstract-icon {
  color: rgba(200,133,74,0.18);
}

.ghost-abstract-line {
  height: 1px;
  width: 48px;
  background: rgba(255,255,255,0.07);
  margin-bottom: 0.55rem;
  animation: ghostLinePulse 4s ease-in-out infinite;
}
.ghost-abstract-line.short {
  width: 28px;
  opacity: 0.5;
}
@keyframes ghostLinePulse {
  0%, 100% { width: 42px; opacity: 0.07; }
  50%       { width: 62px; opacity: 0.16; }
}
.ghost-abstract-line.short {
  animation: ghostLinePulseShort 3.5s ease-in-out infinite;
}
@keyframes ghostLinePulseShort {
  0%, 100% { width: 22px; opacity: 0.04; }
  50%       { width: 36px; opacity: 0.1; }
}

/* Animated dashed border on abstract ghost cards */
.ghost-card-abstract {
  border: 1px dashed rgba(255,255,255,0.07);
  animation: ghostBorderBreath 6s ease-in-out infinite;
}
@keyframes ghostBorderBreath {
  0%, 100% { border-color: rgba(255,255,255,0.06); }
  50%       { border-color: rgba(255,255,255,0.11); }
}

.ghost-footer-note {
  margin-top: 2.5rem;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-3);
  letter-spacing: 0.1em;
  font-style: italic;
}


/* ══════════════════════════════════════════════════════════════
   FOOTER — refined
══════════════════════════════════════════════════════════════ */
.footer-tagline-sub {
  font-size: 0.62rem;
  opacity: 0.65;
}


/* ══════════════════════════════════════════════════════════════
   SCROLL REVEAL — section headers get their own reveal class
══════════════════════════════════════════════════════════════ */
.ghost-footer-note {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.6s ease 0.3s, transform 0.6s ease 0.3s;
}
.ghost-footer-note.visible {
  opacity: 1;
  transform: translateY(0);
}
