/* ==========================================================================
   TRIPVERSE — app.css
   Premium dark SaaS · Electric blue · Geist + Inter · Animated SVG primitives
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  /* Surfaces */
  --bg:           #0A0E1A;
  --bg-2:         #0F1424;
  --bg-3:         #161B2E;
  --surface:      #1A2138;
  --surface-2:    #232B45;
  --hairline:     rgba(255,255,255,0.08);
  --hairline-2:   rgba(255,255,255,0.14);

  /* Text */
  --ink:          #FFFFFF;
  --ink-2:        #E8ECF5;
  --ink-muted:    #8B95B0;
  --ink-soft:     #5C6680;

  /* Brand */
  --blue:         #0066FF;
  --blue-2:       #3D8BFF;
  --blue-glow:    #5BA0FF;
  --cyan:         #00D4FF;
  --cyan-soft:    rgba(0, 212, 255, 0.15);
  --accent:       #FF6B47;       /* warm contrast for one CTA */

  /* Gradients */
  --grad-brand:   linear-gradient(135deg, #0066FF 0%, #00D4FF 100%);
  --grad-text:    linear-gradient(180deg, #FFFFFF 30%, #8B95B0 100%);
  --grad-blue-fade: linear-gradient(180deg, rgba(0,102,255,0) 0%, rgba(0,102,255,0.15) 50%, rgba(0,102,255,0) 100%);

  /* Type */
  --sans:    'Geist', 'Manrope', system-ui, -apple-system, sans-serif;
  --body:    'Manrope', system-ui, -apple-system, sans-serif;
  --mono:    'JetBrains Mono', 'SF Mono', Menlo, monospace;

  /* Sizes */
  --fs-xs:    0.75rem;
  --fs-sm:    0.875rem;
  --fs-base:  1rem;
  --fs-lg:    1.125rem;
  --fs-xl:    1.25rem;
  --fs-2xl:   1.5rem;
  --fs-3xl:   2rem;
  --fs-4xl:   2.75rem;
  --fs-5xl:   clamp(3rem, 6vw, 4.5rem);
  --fs-6xl:   clamp(4rem, 9vw, 7rem);
  --fs-display: clamp(3rem, 8vw, 8rem);

  /* Space */
  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 0.75rem;
  --s-4: 1rem;
  --s-5: 1.25rem;
  --s-6: 1.5rem;
  --s-8: 2rem;
  --s-10: 2.5rem;
  --s-12: 3rem;
  --s-16: 4rem;
  --s-20: 5rem;
  --s-24: 6rem;
  --s-32: 8rem;

  /* Layout */
  --max-w: 1320px;
  --post-w: 820px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --nav-h: 72px;

  /* Motion */
  --ease:        cubic-bezier(0.65, 0.05, 0.36, 1);
  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.85, 0, 0.15, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--body);
  font-size: var(--fs-base);
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: -0.005em;
  color: var(--ink-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; transition: color 200ms var(--ease); }
button { background: none; border: 0; cursor: pointer; font: inherit; color: inherit; }
ul, ol { list-style: none; }
::selection { background: var(--blue); color: var(--ink); }

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5 {
  font-family: var(--sans);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.tv-text-grad {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.tv-text-mute { color: var(--ink-muted); }

.tv-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-family: var(--mono);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.tv-eyebrow::before {
  content: '';
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
}
.tv-eyebrow--blue::before { background: var(--cyan); }

/* ---------- Layout helpers ---------- */
.tv-wrap {
  width: 100%; max-width: var(--max-w);
  margin: 0 auto; padding: 0 var(--gutter);
}
.tv-section { padding: var(--s-32) 0; position: relative; }
.tv-section--sm { padding: var(--s-24) 0; }

/* Section number header — engineering drawing feel */
.tv-section-num {
  display: flex; align-items: center; gap: var(--s-4);
  font-family: var(--mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: var(--s-6);
}
.tv-section-num::before, .tv-section-num::after {
  content: '';
  flex: 0 1 60px;
  height: 1px;
  background: var(--hairline);
}
.tv-section-num::after { flex: 1; }

/* Grid evidence — top rule with tick marks */
.tv-rule-ticks {
  display: flex; align-items: stretch;
  height: 24px;
  border-top: 1px solid var(--hairline);
  margin-bottom: var(--s-12);
  position: relative;
}
.tv-rule-ticks::before {
  content: '';
  position: absolute; top: 0; left: 0;
  width: 1px; height: 8px;
  background: var(--hairline-2);
}
.tv-rule-ticks::after {
  content: '';
  position: absolute; top: 0; right: 0;
  width: 1px; height: 8px;
  background: var(--hairline-2);
}

/* ==========================================================================
   NAV
   ========================================================================== */
.tv-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center;
  transition: background 300ms var(--ease), border-color 300ms var(--ease);
  background: rgba(10, 14, 26, 0.6);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--hairline);
}
.tv-nav.is-scrolled {
  background: rgba(10, 14, 26, 0.88);
  backdrop-filter: saturate(180%) blur(24px);
  -webkit-backdrop-filter: saturate(180%) blur(24px);
  border-bottom-color: var(--hairline-2);
}
.tv-nav__inner {
  width: 100%; max-width: var(--max-w);
  margin: 0 auto; padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--s-8);
}
.tv-logo {
  display: inline-flex; align-items: center; gap: var(--s-2);
  font-family: var(--sans); font-size: 1.125rem; font-weight: 600;
  letter-spacing: -0.01em; color: var(--ink);
}
.tv-logo__mark { width: 30px; height: 30px; display: inline-flex; }
.tv-logo__mark img, .tv-logo__mark svg { width: 100%; height: 100%; object-fit: contain; display: block; }
.tv-logo__text { font-weight: 600; letter-spacing: -0.025em; }

.tv-nav__links {
  display: flex; align-items: center; gap: var(--s-2);
  justify-self: center;
  padding: var(--s-1);
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--hairline);
  border-radius: 100px;
}
.tv-nav__links a {
  padding: 0.5rem 1rem;
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--ink-muted);
  border-radius: 100px;
  transition: all 200ms var(--ease);
}
.tv-nav__links a:hover { color: var(--ink); }
.tv-nav__links a.is-active { background: rgba(255,255,255,0.06); color: var(--ink); }

.tv-nav__cta { display: flex; gap: var(--s-3); align-items: center; }

/* Buttons */
.tv-btn {
  display: inline-flex; align-items: center; gap: var(--s-2);
  font-family: var(--sans);
  font-size: var(--fs-sm);
  font-weight: 500;
  padding: 0.625rem 1rem;
  border-radius: 8px;
  border: 1px solid var(--hairline-2);
  background: rgba(255,255,255,0.04);
  color: var(--ink);
  transition: all 200ms var(--ease);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}
.tv-btn:hover { background: rgba(255,255,255,0.08); border-color: var(--ink-muted); color: var(--ink); }
.tv-btn--primary {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
  box-shadow: 0 0 0 1px var(--blue), 0 8px 24px -8px rgba(0,102,255,0.6);
}
.tv-btn--primary:hover {
  background: var(--blue-2);
  border-color: var(--blue-2);
  color: #fff;
  box-shadow: 0 0 0 1px var(--blue-2), 0 12px 32px -8px rgba(0,102,255,0.8);
  transform: translateY(-1px);
}
.tv-btn--lg { padding: 0.875rem 1.5rem; font-size: var(--fs-base); }

/* Mobile menu */
.tv-nav__toggle {
  display: none;
  width: 40px; height: 40px;
  flex-direction: column; justify-content: center; align-items: center; gap: 5px;
}
.tv-nav__toggle span { display: block; width: 20px; height: 1.5px; background: var(--ink); transition: transform 300ms var(--ease); }
.tv-nav__toggle.is-open span:nth-child(1) { transform: translateY(3px) rotate(45deg); }
.tv-nav__toggle.is-open span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

.tv-drawer {
  position: fixed; inset: var(--nav-h) 0 0 0;
  background: var(--bg);
  z-index: 99;
  transform: translateY(-100%);
  transition: transform 500ms var(--ease), visibility 500ms var(--ease);
  display: none;
  visibility: hidden;
  pointer-events: none;
}
.tv-drawer.is-open {
  transform: translateY(0);
  visibility: visible;
  pointer-events: auto;
}
.tv-drawer__nav {
  display: flex; flex-direction: column;
  padding: var(--s-8) var(--gutter);
  gap: var(--s-3);
}
.tv-drawer__nav a {
  font-family: var(--sans);
  font-size: var(--fs-3xl);
  font-weight: 500;
  color: var(--ink);
}
.tv-drawer__cta { color: var(--blue-2) !important; margin-top: var(--s-4); }

@media (max-width: 900px) {
  .tv-nav__links, .tv-nav__cta { display: none; }
  .tv-nav__toggle { display: flex; }
  .tv-nav__inner { grid-template-columns: 1fr auto; }
  .tv-drawer { display: block; }
}

/* ==========================================================================
   HERO
   ========================================================================== */
.tv-hero {
  position: relative;
  padding: calc(var(--nav-h) + var(--s-12)) 0 var(--s-16);
  overflow: hidden;
  display: flex;
  align-items: center;
}

/* Background grid */
.tv-hero__grid {
  position: absolute;
  inset: 0;
  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: 80px 80px;
  mask-image: radial-gradient(ellipse at 50% 30%, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, black 30%, transparent 70%);
  z-index: 0;
}

/* Floating ambient blobs (very subtle) */
.tv-hero__amb {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.tv-hero__amb::before, .tv-hero__amb::after {
  content: '';
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.35;
}
.tv-hero__amb::before {
  top: -100px; left: -100px;
  background: radial-gradient(circle, rgba(0,102,255,0.6), transparent 70%);
  animation: tv-drift-a 18s ease-in-out infinite;
}
.tv-hero__amb::after {
  bottom: -150px; right: -100px;
  background: radial-gradient(circle, rgba(0,212,255,0.4), transparent 70%);
  animation: tv-drift-b 22s ease-in-out infinite;
}
@keyframes tv-drift-a { 50% { transform: translate(80px, 60px) scale(1.1); } }
@keyframes tv-drift-b { 50% { transform: translate(-60px, -80px) scale(0.95); } }

.tv-hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: var(--s-12);
  align-items: center;
}

.tv-hero__content { position: relative; }

.tv-hero__badge {
  display: inline-flex; align-items: center; gap: var(--s-2);
  padding: var(--s-2) var(--s-3);
  border: 1px solid var(--hairline-2);
  border-radius: 100px;
  font-family: var(--mono);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink-2);
  margin-bottom: var(--s-8);
  background: rgba(255,255,255,0.03);
  backdrop-filter: blur(10px);
}
.tv-hero__badge-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
  position: relative;
}
.tv-hero__badge-dot::after {
  content: '';
  position: absolute; inset: -3px;
  border-radius: 50%;
  background: var(--cyan);
  opacity: 0.4;
  animation: tv-pulse 2s ease-out infinite;
}
@keyframes tv-pulse {
  0% { transform: scale(1); opacity: 0.4; }
  100% { transform: scale(2.5); opacity: 0; }
}

.tv-hero__h1 {
  font-family: var(--sans);
  font-size: clamp(2.25rem, 5.5vw, 5rem);
  line-height: 1;
  letter-spacing: -0.035em;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: var(--s-6);
  max-width: 22ch;
}
.tv-hero__h1 .tv-line { display: block; overflow: hidden; }
.tv-hero__h1 .tv-line__inner { display: block; transform: translateY(110%); }

.tv-hero__lede {
  font-size: var(--fs-lg);
  line-height: 1.55;
  color: var(--ink-muted);
  max-width: 36ch;
  margin-bottom: var(--s-6);
  font-weight: 400;
}

.tv-hero__cta { display: flex; gap: var(--s-3); flex-wrap: wrap; }

/* Hero VIZ — Flight Path Journey */
.tv-hero__viz {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  max-width: 560px;
  margin-left: auto;
}
.tv-hero__viz svg { width: 100%; height: 100%; overflow: visible; }

/* The dashed flight path — animated draw-in */
.tv-f__path {
  stroke-dasharray: 8 6;
  stroke-dashoffset: 1400;
  animation: tv-f-path-draw 3.5s var(--ease-out) forwards 0.4s;
}
@keyframes tv-f-path-draw { to { stroke-dashoffset: 0; } }

/* Solid completed segment behind dashes (lights up part of route) */
.tv-f__path-solid {
  stroke-dasharray: 1400;
  stroke-dashoffset: 1400;
  animation: tv-f-path-solid 4s var(--ease-out) forwards 0.4s;
}
@keyframes tv-f-path-solid { to { stroke-dashoffset: 700; } }

/* The airplane that travels along the path */
.tv-f__plane {
  animation: tv-f-plane-move 5s var(--ease-in-out) infinite alternate;
  offset-path: path("M 70 430 C 120 380 160 340 200 320 C 240 300 290 280 320 260 C 360 235 400 200 460 160");
  offset-rotate: auto;
}
@keyframes tv-f-plane-move {
  0%   { offset-distance: 0%; }
  100% { offset-distance: 100%; }
}

/* Destination pins — drop in sequence */
.tv-f__pin {
  transform-origin: bottom center;
  transform-box: fill-box;
  animation: tv-f-pin-drop 700ms var(--ease-out) both;
}
@keyframes tv-f-pin-drop {
  0%   { transform: translateY(-20px) scale(0); opacity: 0; }
  60%  { transform: translateY(0) scale(1.2); opacity: 1; }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}

/* Pin shadow ripple */
.tv-f__pin-ripple {
  transform-origin: center;
  transform-box: fill-box;
  animation: tv-f-ripple 2.5s ease-out infinite;
}
.tv-f__pin-ripple--2 { animation-delay: 0.4s; }
.tv-f__pin-ripple--3 { animation-delay: 0.8s; }
@keyframes tv-f-ripple {
  0%   { transform: scale(0.4); opacity: 0.7; }
  100% { transform: scale(2.5); opacity: 0; }
}

/* Destination labels */
.tv-f__label {
  animation: tv-f-label-fade 600ms var(--ease-out) both;
}
@keyframes tv-f-label-fade {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Floating clouds */
.tv-f__cloud {
  animation: tv-f-cloud-drift 12s ease-in-out infinite;
}
.tv-f__cloud--2 { animation-delay: 3s; animation-duration: 15s; }
.tv-f__cloud--3 { animation-delay: 6s; animation-duration: 18s; }
@keyframes tv-f-cloud-drift {
  0%, 100% { transform: translateX(0); opacity: 0.3; }
  50%      { transform: translateX(15px); opacity: 0.6; }
}

/* Earth arc subtle pulse */
.tv-f__earth {
  animation: tv-f-earth-glow 4s ease-in-out infinite;
}
@keyframes tv-f-earth-glow {
  0%, 100% { opacity: 0.5; }
  50%      { opacity: 0.8; }
}

/* Stars in the corners */
.tv-f__star {
  animation: tv-f-twinkle 2.5s ease-in-out infinite;
}
@keyframes tv-f-twinkle {
  0%, 100% { opacity: 0.2; }
  50%      { opacity: 1; }
}

@media (max-width: 980px) {
  .tv-hero__inner { grid-template-columns: 1fr; gap: var(--s-12); }
  .tv-hero__viz { max-width: 480px; margin: 0 auto; }
}

/* ==========================================================================
   MARQUEE — Top travel destinations
   ========================================================================== */
.tv-marquee {
  padding: var(--s-12) 0 var(--s-16);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  overflow: hidden;
  position: relative;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
}
.tv-marquee::before, .tv-marquee::after {
  content: '';
  position: absolute; top: 0; bottom: 0;
  width: 240px;
  z-index: 3; pointer-events: none;
}
.tv-marquee::before { left: 0; background: linear-gradient(90deg, var(--bg) 0%, var(--bg) 20%, transparent); }
.tv-marquee::after  { right: 0; background: linear-gradient(270deg, var(--bg-2) 0%, var(--bg-2) 20%, transparent); }

/* Marquee label/eyebrow above the scroll */
.tv-marquee__label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-w);
  margin: 0 auto var(--s-6);
  padding: 0 var(--gutter);
  font-family: var(--mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.tv-marquee__label-left {
  display: flex; align-items: center; gap: var(--s-3);
}
.tv-marquee__label-left::before {
  content: '';
  width: 24px; height: 1px;
  background: var(--blue);
}
.tv-marquee__label-count strong {
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.tv-marquee__track {
  display: flex;
  gap: var(--s-12);
  align-items: center;
  width: max-content;
  animation: tv-marq 50s linear infinite;
}

/* Each destination pill */
.tv-marq-dest {
  display: inline-flex;
  align-items: baseline;
  gap: var(--s-3);
  white-space: nowrap;
  transition: transform 300ms var(--ease);
}
.tv-marq-dest:hover { transform: translateY(-2px); }
.tv-marq-dest__name {
  font-family: var(--sans);
  font-size: clamp(2rem, 3.5vw, 3.25rem);
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.025em;
  line-height: 1;
}
.tv-marq-dest__name--ghost {
  color: transparent;
  -webkit-text-stroke: 1px var(--ink-soft);
}
.tv-marq-dest__code {
  font-family: var(--mono);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--blue-2);
  padding: 4px 8px;
  border: 1px solid var(--hairline-2);
  border-radius: 4px;
  background: rgba(0,102,255,0.06);
}

.tv-marq-sep {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  color: var(--ink-soft);
}
.tv-marq-sep svg { opacity: 0.5; }
.tv-marq-dot {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  flex-shrink: 0;
  box-shadow: 0 0 10px var(--cyan);
}
@keyframes tv-marq { to { transform: translateX(-50%); } }

/* ==========================================================================
   FEATURES — Asymmetric Bento
   ========================================================================== */
.tv-features__head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-12);
  align-items: end;
  margin-bottom: var(--s-12);
}
.tv-features__h2 {
  font-family: var(--sans);
  font-size: var(--fs-5xl);
  line-height: 1;
  letter-spacing: -0.035em;
  font-weight: 600;
  max-width: 16ch;
}
.tv-features__h2 .tv-text-grad { display: inline; }
.tv-features__lede {
  font-size: var(--fs-lg);
  color: var(--ink-muted);
  line-height: 1.55;
  max-width: 48ch;
}
@media (max-width: 880px) {
  .tv-features__head { grid-template-columns: 1fr; gap: var(--s-6); }
}

.tv-bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: minmax(260px, auto);
  gap: var(--s-4);
}
.tv-bento__item {
  position: relative;
  background: var(--bg-2);
  border: 1px solid var(--hairline);
  border-radius: 20px;
  padding: var(--s-8);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 300ms var(--ease), transform 300ms var(--ease);
}
.tv-bento__item:hover {
  border-color: var(--hairline-2);
  transform: translateY(-2px);
}
.tv-bento__item::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,102,255,0.5), transparent);
  opacity: 0;
  transition: opacity 400ms var(--ease);
}
.tv-bento__item:hover::before { opacity: 1; }

/* Bento layout */
.tv-bento .b-itin { grid-column: span 7; grid-row: span 2; }
.tv-bento .b-stat { grid-column: span 5; }
.tv-bento .b-ai   { grid-column: span 5; grid-row: span 2; }
.tv-bento .b-mood { grid-column: span 4; }
.tv-bento .b-budget { grid-column: span 3; }

@media (max-width: 980px) {
  .tv-bento { grid-template-columns: repeat(6, 1fr); }
  .tv-bento .b-itin { grid-column: span 6; grid-row: span 1; }
  .tv-bento .b-stat { grid-column: span 6; }
  .tv-bento .b-ai { grid-column: span 6; grid-row: span 1; }
  .tv-bento .b-mood { grid-column: span 3; }
  .tv-bento .b-budget { grid-column: span 3; }
}
@media (max-width: 600px) {
  .tv-bento { grid-template-columns: 1fr; }
  .tv-bento > * { grid-column: span 1 !important; }
}

.tv-bento__tag {
  font-family: var(--mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: var(--s-3);
}
.tv-bento__h3 {
  font-family: var(--sans);
  font-size: var(--fs-2xl);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: var(--s-3);
  line-height: 1.15;
}
.tv-bento__p {
  font-size: var(--fs-sm);
  color: var(--ink-muted);
  line-height: 1.55;
  max-width: 42ch;
}

/* Bento visuals */
.tv-bento__viz {
  margin-top: auto;
  position: relative;
  padding-top: var(--s-6);
}

/* Itinerary panel viz */
.tv-itin-viz {
  background: var(--bg);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  padding: var(--s-4);
  font-family: var(--mono);
  font-size: var(--fs-xs);
}
.tv-itin-viz__head {
  display: flex; align-items: center; gap: var(--s-2);
  padding-bottom: var(--s-3);
  border-bottom: 1px solid var(--hairline);
  margin-bottom: var(--s-4);
  color: var(--ink-soft);
}
.tv-itin-viz__head-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 6px var(--cyan);
  flex-shrink: 0;
}
.tv-itin-viz__head-status {
  margin-left: auto;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(0, 212, 255, 0.1);
  color: var(--cyan);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Summary grid — clean 4 metrics */
.tv-itin-viz__summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-2);
  margin-bottom: var(--s-4);
}
.tv-itin-viz__sum-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--s-2) var(--s-3);
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--hairline);
  border-radius: 6px;
  opacity: 0;
  animation: tv-itin-line 600ms var(--ease-out) forwards;
}
.tv-itin-viz__sum-row:nth-child(2) { animation-delay: 100ms; }
.tv-itin-viz__sum-row:nth-child(3) { animation-delay: 200ms; }
.tv-itin-viz__sum-row:nth-child(4) { animation-delay: 300ms; }
.tv-itin-viz__sum-label {
  color: var(--ink-soft);
  font-size: 0.7rem;
}
.tv-itin-viz__sum-val {
  color: var(--ink);
  font-weight: 500;
  font-size: 0.75rem;
}
.tv-itin-viz__sum-val--ok {
  color: var(--cyan);
}

/* Horizontal day flow preview */
.tv-itin-viz__preview {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--s-2);
  padding-top: var(--s-3);
  border-top: 1px dashed var(--hairline);
  color: var(--ink-2);
  font-size: 0.7rem;
  opacity: 0;
  animation: tv-itin-line 700ms var(--ease-out) 400ms forwards;
}
.tv-itin-viz__arrow {
  color: var(--blue-2);
  font-weight: 500;
}

@keyframes tv-itin-line { from { opacity: 0; transform: translateX(-8px); } to { opacity: 1; transform: translateX(0); } }

/* AI chat viz */
.tv-ai-viz {
  display: flex; flex-direction: column;
  gap: var(--s-3);
}
.tv-ai-viz__msg {
  font-family: var(--mono);
  font-size: var(--fs-xs);
  line-height: 1.5;
  padding: var(--s-3) var(--s-4);
  border-radius: 12px;
  max-width: 90%;
}
.tv-ai-viz__msg--u {
  align-self: flex-end;
  background: var(--blue);
  color: #fff;
}
.tv-ai-viz__msg--a {
  align-self: flex-start;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--hairline);
  color: var(--ink-2);
}
.tv-ai-viz__typing {
  display: inline-flex; gap: 3px; align-items: center;
}
.tv-ai-viz__typing span {
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--ink-muted);
  animation: tv-type 1.4s ease-in-out infinite;
}
.tv-ai-viz__typing span:nth-child(2) { animation-delay: 0.15s; }
.tv-ai-viz__typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes tv-type {
  0%, 60%, 100% { opacity: 0.3; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-3px); }
}

/* Stat counter viz — Trust card */
.tv-stat-big {
  font-family: var(--sans);
  font-size: clamp(2.75rem, 4.5vw, 4rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1;
  color: var(--ink);
  margin: var(--s-3) 0 var(--s-4);
  display: inline-flex;
  align-items: flex-start;
  gap: 4px;
}
.tv-stat-big .tv-text-grad { display: inline; }
.tv-stat-big__small {
  font-size: 0.4em;
  color: var(--blue-2);
  font-weight: 500;
  line-height: 1;
  margin-top: 0.1em;
}

/* Mood/budget mini viz */
.tv-mood-viz, .tv-budget-viz { margin-top: var(--s-4); }

/* Mood card — full-width slider */
.tv-mood-card {
  margin-top: auto;
  padding-top: var(--s-6);
  width: 100%;
}
.tv-mood-card__labels {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
  margin-bottom: var(--s-3);
}
.tv-mood-card__track {
  position: relative;
  height: 2px;
  background: var(--hairline);
  border-radius: 2px;
  margin-bottom: var(--s-4);
}
.tv-mood-card__fill {
  position: absolute;
  inset: 0 30% 0 0;
  background: var(--grad-brand);
  border-radius: 2px;
  animation: tv-mood-fill 6s ease-in-out infinite alternate;
}
@keyframes tv-mood-fill {
  0%   { inset: 0 70% 0 0; }
  100% { inset: 0 25% 0 0; }
}
.tv-mood-card__thumb {
  position: absolute;
  top: 50%;
  left: 70%;
  transform: translate(-50%, -50%);
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.2), 0 0 12px var(--cyan);
  animation: tv-mood-thumb 6s ease-in-out infinite alternate;
}
@keyframes tv-mood-thumb {
  0%   { left: 30%; }
  100% { left: 75%; }
}
.tv-mood-card__thumb-dot {
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: #fff;
}
.tv-mood-card__current {
  font-family: var(--sans);
  font-size: var(--fs-base);
  font-weight: 500;
  color: var(--ink);
  text-align: center;
  letter-spacing: -0.01em;
}

/* Budget card — clean table layout */
.tv-budget-card {
  margin-top: auto;
  padding-top: var(--s-6);
  width: 100%;
}
.tv-budget-card__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: var(--s-3);
}
.tv-budget-card__head-label {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
}
.tv-budget-card__head-val {
  font-family: var(--sans);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--blue-2);
  letter-spacing: -0.01em;
}
.tv-budget-card__head-val span {
  color: var(--ink-soft);
  font-weight: 400;
}
.tv-budget-card__bar {
  height: 4px;
  background: var(--hairline);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: var(--s-4);
}
.tv-budget-card__bar-fill {
  height: 100%;
  width: 0;
  background: var(--grad-brand);
  border-radius: 2px;
  animation: tv-budget-bar 1.5s var(--ease-out) 0.4s forwards;
}
@keyframes tv-budget-bar {
  to { width: 97%; }
}
.tv-budget-card__table {
  width: 100%;
  border-collapse: collapse;
  border-top: 1px solid var(--hairline);
  table-layout: fixed;
}
.tv-budget-card__table th,
.tv-budget-card__table td {
  width: 25%;
  text-align: center;
}
.tv-budget-card__table th {
  font-family: var(--mono);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding: var(--s-3) var(--s-1) var(--s-2);
}
.tv-budget-card__table td {
  font-family: var(--sans);
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--ink);
  padding: 0 var(--s-1) var(--s-1);
  letter-spacing: -0.01em;
}

/* ==========================================================================
   HOW IT WORKS
   ========================================================================== */
.tv-how {
  background: var(--bg-2);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}
.tv-how__steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  position: relative;
  align-items: stretch;
}
.tv-how__step {
  padding: var(--s-12) var(--s-6);
  border-right: 1px solid var(--hairline);
  position: relative;
  transition: background 300ms var(--ease);
  display: flex;
  flex-direction: column;
}
.tv-how__step:last-child { border-right: 0; }
.tv-how__step:hover { background: rgba(255,255,255,0.02); }

.tv-how__step-num {
  font-family: var(--mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.1em;
  color: var(--blue-2);
  margin-bottom: var(--s-6);
}
.tv-how__step-h3 {
  font-family: var(--sans);
  font-size: var(--fs-3xl);
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin-bottom: var(--s-3);
  line-height: 1.1;
}
.tv-how__step-p {
  color: var(--ink-muted);
  font-size: var(--fs-base);
  line-height: 1.55;
  min-height: 5.5em;
  margin-bottom: var(--s-8);
}
.tv-how__step-viz {
  margin-top: auto;
  aspect-ratio: 4/3;
  border: 1px solid var(--hairline);
  border-radius: 12px;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  position: relative;
  overflow: hidden;
}

@media (max-width: 880px) {
  .tv-how__steps { grid-template-columns: 1fr; }
  .tv-how__step { border-right: 0; border-bottom: 1px solid var(--hairline); }
  .tv-how__step:last-child { border-bottom: 0; }
}

/* Step 1 — Input form viz */
.tv-step1-viz {
  width: 80%; max-width: 280px;
  display: flex; flex-direction: column; gap: var(--s-2);
  font-family: var(--mono);
  font-size: var(--fs-xs);
}
.tv-step1-viz__field {
  display: flex; justify-content: space-between; align-items: center;
  padding: var(--s-3);
  background: var(--bg-2);
  border: 1px solid var(--hairline);
  border-radius: 8px;
  color: var(--ink-2);
}
.tv-step1-viz__field-val { color: var(--cyan); }
.tv-step1-viz__field-typing::after {
  content: '|';
  color: var(--cyan);
  animation: tv-cursor 0.8s steps(2) infinite;
}
@keyframes tv-cursor { 50% { opacity: 0; } }

/* Step 2 — AI thinking viz */
.tv-step2-viz svg { width: 60%; max-width: 200px; }
.tv-step2-orbit {
  transform-origin: 100px 100px;
  animation: tv-spin 8s linear infinite;
}
@keyframes tv-spin { to { transform: rotate(360deg); } }
.tv-step2-pulse {
  animation: tv-glow 2s ease-in-out infinite;
}
@keyframes tv-glow {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

/* Step 3 — Done check viz */
.tv-step3-viz svg { width: 60%; max-width: 180px; }
.tv-step3-circle {
  stroke-dasharray: 283;
  stroke-dashoffset: 283;
  animation: tv-circle-draw 1.5s var(--ease-out) forwards;
  animation-delay: 0.3s;
}
@keyframes tv-circle-draw { to { stroke-dashoffset: 0; } }
.tv-step3-check {
  stroke-dasharray: 60;
  stroke-dashoffset: 60;
  animation: tv-check-draw 0.6s var(--ease-out) forwards;
  animation-delay: 1.5s;
}
@keyframes tv-check-draw { to { stroke-dashoffset: 0; } }

/* ==========================================================================
   DESTINATIONS
   ========================================================================== */
.tv-dest__head {
  display: flex; justify-content: space-between; align-items: end;
  flex-wrap: wrap; gap: var(--s-6);
  margin-bottom: var(--s-12);
}
.tv-dest__h2 {
  font-family: var(--sans);
  font-size: var(--fs-5xl);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1;
  max-width: 16ch;
}
.tv-dest__meta {
  font-family: var(--mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.1em;
  color: var(--ink-soft);
}
.tv-dest__meta strong { color: var(--ink); font-family: var(--sans); }

.tv-dest__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-4);
}
.tv-dest__card {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  height: 380px;
  transition: transform 400ms var(--ease);
}
.tv-dest__card:hover { transform: translateY(-4px); }
.tv-dest__card-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transition: transform 800ms var(--ease);
}
.tv-dest__card:hover .tv-dest__card-bg { transform: scale(1.08); }
.tv-dest__card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,14,26,0) 30%, rgba(10,14,26,0.4) 60%, rgba(10,14,26,0.95) 100%);
}

/* Country flag — top right corner */
.tv-dest__card-flag {
  position: absolute;
  top: var(--s-4); right: var(--s-4);
  width: 32px; height: auto;
  z-index: 3;
  border-radius: 3px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
  border: 1px solid rgba(255,255,255,0.2);
}

.tv-dest__card-content {
  position: absolute;
  left: var(--s-6); right: var(--s-6); bottom: var(--s-6);
  z-index: 2;
  color: var(--ink);
}
.tv-dest__card-tag {
  display: inline-flex;
  align-items: center; gap: var(--s-2);
  font-family: var(--mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: var(--s-1) var(--s-3);
  border-radius: 100px;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(10px);
  margin-bottom: var(--s-3);
}
.tv-dest__card-tag::before {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--cyan);
}
.tv-dest__card-h3 {
  font-family: var(--sans);
  font-size: var(--fs-2xl);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: var(--s-2);
}
.tv-dest__card-info {
  display: flex; gap: var(--s-2);
  font-family: var(--mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.7);
}

/* Destination backgrounds — premium gradients (will be replaced with photos in production) */
.tv-bg-tokyo    { background-image: url('../images/destinations/tokyo.jpg?v=20260630'); }
.tv-bg-bali     { background-image: url('../images/destinations/bali.jpg?v=20260630'); }
.tv-bg-patagonia{ background-image: url('../images/destinations/patagonia.jpg?v=20260630'); }
.tv-bg-lisbon   { background: radial-gradient(ellipse at top, #FFD24A, transparent 60%), linear-gradient(180deg, #ff6b47, #ffa84a); }
.tv-bg-iceland  { background-image: url('../images/destinations/iceland.jpg?v=20260630'); }
.tv-bg-santorini{ background-image: url('../images/destinations/santorini.jpg?v=20260630'); }
.tv-bg-marrakech{ background-image: url('../images/destinations/marrakech.jpg?v=20260630'); }
.tv-bg-kyoto    { background: radial-gradient(circle at 50% 30%, #00D4FF, transparent 60%), linear-gradient(160deg, #1a3a2e, #4a8a5a, #c4e4a4); }

@media (max-width: 880px) {
  .tv-dest__grid { grid-template-columns: repeat(2, 1fr); }
  .tv-dest__card { height: 340px; }
}
@media (max-width: 520px) {
  .tv-dest__grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   STATS BAND — Premium global reach
   ========================================================================== */
.tv-stats {
  background: var(--bg-2);
  position: relative;
  overflow: hidden;
  padding: var(--s-24) 0;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}
.tv-stats::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 30%, rgba(0,102,255,0.12), transparent 60%);
  pointer-events: none;
}

.tv-stats__head {
  position: relative;
  z-index: 2;
  text-align: center;
  margin-bottom: var(--s-12);
}
.tv-stats__title {
  font-family: var(--sans);
  font-size: var(--fs-5xl);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.05;
  color: var(--ink);
  max-width: 22ch;
  margin: var(--s-3) auto 0;
}

/* Flag strip — refined scrolling chips */
.tv-stats__strip {
  position: relative;
  z-index: 2;
  margin-bottom: var(--s-12);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, black 12%, black 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, black 12%, black 88%, transparent);
}
.tv-stats__strip-track {
  display: flex;
  gap: var(--s-3);
  width: max-content;
  animation: tv-strip 60s linear infinite;
}
.tv-stats__chip {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  padding: 8px 14px 8px 8px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--hairline);
  border-radius: 100px;
  white-space: nowrap;
  transition: background 200ms var(--ease), border-color 200ms var(--ease);
  flex-shrink: 0;
}
.tv-stats__chip:hover {
  background: rgba(255,255,255,0.06);
  border-color: var(--hairline-2);
}
.tv-stats__chip img {
  width: 22px;
  height: 16px;
  border-radius: 2px;
  flex-shrink: 0;
}
.tv-stats__chip span {
  font-family: var(--sans);
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--ink-2);
  letter-spacing: -0.005em;
}
@keyframes tv-strip { to { transform: translateX(-50%); } }

/* 3 metric cards */
.tv-stats__grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-4);
}
.tv-stat-card {
  position: relative;
  background: var(--bg);
  border: 1px solid var(--hairline);
  border-radius: 16px;
  padding: var(--s-8);
  transition: border-color 300ms var(--ease), transform 300ms var(--ease);
  overflow: hidden;
}
.tv-stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,212,255,0.5), transparent);
  opacity: 0;
  transition: opacity 400ms var(--ease);
}
.tv-stat-card:hover {
  border-color: var(--hairline-2);
  transform: translateY(-2px);
}
.tv-stat-card:hover::before { opacity: 1; }

.tv-stat-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(0,102,255,0.1);
  border: 1px solid rgba(0,102,255,0.2);
  color: var(--blue-2);
  margin-bottom: var(--s-6);
}
.tv-stat-card__num {
  font-family: var(--sans);
  font-size: clamp(3rem, 5vw, 4.5rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--ink);
  margin-bottom: var(--s-3);
  display: flex;
  align-items: flex-start;
}
.tv-stat-card__num .tv-stat-suf {
  font-size: 0.45em;
  color: var(--blue-2);
  font-weight: 500;
  margin-top: 0.15em;
  margin-left: 4px;
}
.tv-stat-card__label {
  font-family: var(--sans);
  font-size: var(--fs-lg);
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.01em;
  margin-bottom: var(--s-2);
}
.tv-stat-card__sub {
  font-size: var(--fs-sm);
  color: var(--ink-muted);
  line-height: 1.5;
}

@media (max-width: 880px) {
  .tv-stats__grid { grid-template-columns: 1fr; }
  .tv-stats__flags img { width: 28px; height: 21px; }
}

/* ==========================================================================
   ASSISTANT
   ========================================================================== */
.tv-assist__head {
  text-align: center;
  margin-bottom: var(--s-12);
}
.tv-assist__h2 {
  font-family: var(--sans);
  font-size: var(--fs-5xl);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1;
  max-width: 18ch;
  margin: var(--s-4) auto 0;
}
.tv-assist__h2 .tv-text-grad { display: inline; }

.tv-chat {
  max-width: 760px;
  margin: 0 auto;
  background: var(--bg-2);
  border: 1px solid var(--hairline);
  border-radius: 24px;
  padding: var(--s-6);
}
.tv-chat__head {
  display: flex; align-items: center; gap: var(--s-3);
  padding-bottom: var(--s-4);
  margin-bottom: var(--s-4);
  border-bottom: 1px solid var(--hairline);
}
.tv-chat__head-status {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 8px #10B981;
}
.tv-chat__head-text {
  font-family: var(--mono);
  font-size: var(--fs-xs);
  color: var(--ink-muted);
  letter-spacing: 0.04em;
}
.tv-chat__head-text strong { color: var(--ink); font-family: var(--sans); }

.tv-chat__msg {
  display: flex; gap: var(--s-3);
  margin-bottom: var(--s-4);
}
.tv-chat__msg--user { flex-direction: row-reverse; }
.tv-chat__avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--sans);
  font-size: var(--fs-xs);
  font-weight: 600;
}
.tv-chat__avatar--ai {
  background: var(--grad-brand);
  color: #fff;
}
.tv-chat__avatar--user {
  background: var(--surface-2);
  color: var(--ink-2);
}
.tv-chat__bubble {
  padding: var(--s-3) var(--s-4);
  border-radius: 16px;
  max-width: 80%;
  font-size: var(--fs-base);
  line-height: 1.55;
}
.tv-chat__msg--user .tv-chat__bubble {
  background: var(--blue);
  color: #fff;
  border-bottom-right-radius: 4px;
}
.tv-chat__msg--ai .tv-chat__bubble {
  background: var(--surface);
  color: var(--ink-2);
  border-bottom-left-radius: 4px;
  border: 1px solid var(--hairline);
}

.tv-chat__input {
  display: flex; gap: var(--s-2);
  padding: var(--s-2);
  background: var(--bg);
  border: 1px solid var(--hairline);
  border-radius: 14px;
  margin-top: var(--s-4);
}
.tv-chat__input input {
  flex: 1;
  background: transparent; border: 0; outline: 0;
  color: var(--ink);
  font-family: var(--body);
  font-size: var(--fs-base);
  padding: var(--s-2) var(--s-3);
}
.tv-chat__input input::placeholder { color: var(--ink-soft); }
.tv-chat__input button {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--blue);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
}

/* ==========================================================================
   TESTIMONIALS
   ========================================================================== */
.tv-test__head { margin-bottom: var(--s-12); }
.tv-test__h2 {
  font-family: var(--sans);
  font-size: var(--fs-5xl);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1;
  max-width: 16ch;
}

.tv-test__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-4);
}
.tv-test__card {
  background: var(--bg-2);
  border: 1px solid var(--hairline);
  border-radius: 20px;
  padding: var(--s-6);
  position: relative;
  transition: border-color 300ms var(--ease);
}
.tv-test__card:hover { border-color: var(--hairline-2); }
.tv-test__card-stars {
  display: flex; gap: 2px;
  color: var(--blue-2);
  font-size: var(--fs-sm);
  margin-bottom: var(--s-4);
}
.tv-test__card-quote {
  font-family: var(--sans);
  font-size: var(--fs-lg);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.4;
  color: var(--ink);
  margin-bottom: var(--s-6);
}
.tv-test__card-author {
  display: flex; align-items: center; gap: var(--s-3);
  padding-top: var(--s-4);
  border-top: 1px solid var(--hairline);
}
.tv-test__card-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--grad-brand);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-weight: 600;
  font-size: var(--fs-sm);
}
.tv-test__card-name { color: var(--ink); font-weight: 500; font-size: var(--fs-sm); }
.tv-test__card-route {
  font-family: var(--mono);
  font-size: var(--fs-xs);
  color: var(--ink-muted);
}
@media (max-width: 900px) { .tv-test__grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   FAQ
   ========================================================================== */
.tv-faq__head { text-align: center; margin-bottom: var(--s-12); }
.tv-faq__h2 {
  font-family: var(--sans);
  font-size: var(--fs-5xl);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1;
  margin-top: var(--s-3);
}
.tv-faq__h2 .tv-text-grad { display: inline; }

.tv-faq {
  max-width: 760px;
  margin: 0 auto;
}
.tv-faq__item {
  border-bottom: 1px solid var(--hairline);
}
.tv-faq__q {
  width: 100%;
  display: flex; justify-content: space-between; align-items: center;
  padding: var(--s-6) 0;
  text-align: left;
  font-family: var(--sans);
  font-size: var(--fs-xl);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
  transition: color 200ms var(--ease);
}
.tv-faq__q:hover { color: var(--blue-2); }
.tv-faq__plus {
  flex-shrink: 0;
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1px solid var(--hairline);
  display: flex; align-items: center; justify-content: center;
  transition: all 300ms var(--ease);
  position: relative;
}
.tv-faq__plus::before, .tv-faq__plus::after {
  content: '';
  position: absolute;
  background: var(--ink-2);
  transition: transform 300ms var(--ease);
}
.tv-faq__plus::before { width: 12px; height: 1.5px; }
.tv-faq__plus::after  { width: 1.5px; height: 12px; }
.tv-faq__item.is-open .tv-faq__plus {
  background: var(--blue);
  border-color: var(--blue);
}
.tv-faq__item.is-open .tv-faq__plus::before { background: #fff; }
.tv-faq__item.is-open .tv-faq__plus::after { transform: scaleY(0); }

.tv-faq__a {
  max-height: 0; overflow: hidden;
  transition: max-height 500ms var(--ease);
}
.tv-faq__a-inner {
  padding-bottom: var(--s-6);
  color: var(--ink-muted);
  font-size: var(--fs-base);
  line-height: 1.6;
  max-width: 60ch;
}
.tv-faq__item.is-open .tv-faq__a { max-height: 400px; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.tv-footer {
  position: relative;
  padding: var(--s-32) 0 0;
  background: linear-gradient(180deg, #060912 0%, #0A0E1A 100%);
  overflow: hidden;
}
.tv-footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 102, 255, 0.25), rgba(0, 212, 255, 0.4), rgba(0, 102, 255, 0.25), transparent);
  z-index: 1;
}
.tv-footer__inner {
  width: 100%; max-width: var(--max-w);
  margin: 0 auto; padding: 0 var(--gutter);
  position: relative; z-index: 2;
}

.tv-footer__cta {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--s-8);
  align-items: end;
  padding-bottom: var(--s-16);
  border-bottom: 1px solid var(--hairline);
}
.tv-footer__cta-text { display: flex; flex-direction: column; gap: var(--s-4); }
.tv-footer__title {
  font-family: var(--sans);
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--ink);
}
@media (max-width: 760px) {
  .tv-footer__cta { grid-template-columns: 1fr; align-items: start; }
}

.tv-footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--s-12);
  padding: var(--s-16) 0;
}
.tv-footer__brand p {
  margin-top: var(--s-3);
  color: var(--ink-muted);
  max-width: 36ch;
  font-size: var(--fs-sm);
}
.tv-footer__nav { display: flex; flex-direction: column; gap: var(--s-3); }
.tv-footer__nav-label {
  font-family: var(--mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: var(--s-1);
}
.tv-footer__nav a {
  color: var(--ink-2);
  font-size: var(--fs-sm);
  transition: color 200ms var(--ease);
}
.tv-footer__nav a:hover { color: var(--ink); }

.tv-footer__base {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: var(--s-4);
  padding: var(--s-6) 0;
  border-top: 1px solid var(--hairline);
  font-family: var(--mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.05em;
  color: var(--ink-soft);
}
.tv-footer__credit { color: var(--ink-soft); }
.tv-footer__credit a {
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 500;
  letter-spacing: -0.01em;
  position: relative;
  transition: color 200ms var(--ease);
}
.tv-footer__credit a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: currentColor;
  opacity: 0.3;
  transition: opacity 200ms var(--ease);
}
.tv-footer__credit a:hover { color: var(--blue-2); }
.tv-footer__credit a:hover::after { opacity: 1; }

.tv-footer__wordmark {
  display: flex; justify-content: center;
  padding: 0 var(--gutter) var(--s-4);
  overflow: hidden;
  margin-top: var(--s-8);
}
.tv-footer__wordmark span {
  font-family: var(--sans);
  font-size: clamp(5rem, 18vw, 18rem);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 0.85;
  background: linear-gradient(180deg, rgba(255,255,255,0.08) 0%, transparent 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  white-space: nowrap;
}

@media (max-width: 760px) {
  .tv-footer__grid { grid-template-columns: 1fr; gap: var(--s-8); }
}

/* ==========================================================================
   Motion utilities
   ========================================================================== */
.tv-reveal { opacity: 0; transform: translateY(30px); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .tv-hero__h1 .tv-line__inner { transform: none; }
  .tv-reveal { opacity: 1; transform: none; }
}

/* ==========================================================================
   CONTACT PAGE — Award-style asymmetric hero
   Mirrors homepage hero: split content/visual, badge, gradient title,
   inline lede with links, full form, animated SVG comms tower on the right.
   ========================================================================== */
.tv-cp {
  position: relative;
  padding: calc(var(--nav-h) + var(--s-12)) 0 var(--s-16);
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

/* Grid background — same as homepage */
.tv-cp__grid {
  position: absolute;
  inset: 0;
  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: 80px 80px;
  mask-image: radial-gradient(ellipse at 50% 30%, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, black 30%, transparent 70%);
  z-index: 0;
}

/* Ambient blue/cyan glows */
.tv-cp__amb {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.tv-cp__amb::before, .tv-cp__amb::after {
  content: '';
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.35;
}
.tv-cp__amb::before {
  top: -100px; left: -150px;
  background: radial-gradient(circle, rgba(0,102,255,0.6), transparent 70%);
  animation: tv-drift-a 18s ease-in-out infinite;
}
.tv-cp__amb::after {
  bottom: -150px; right: -100px;
  background: radial-gradient(circle, rgba(0,212,255,0.4), transparent 70%);
  animation: tv-drift-b 22s ease-in-out infinite;
}

/* Split layout */
.tv-cp__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: var(--s-12);
  align-items: center;
}

/* ============= LEFT: Content + Form ============= */
.tv-cp__content { position: relative; max-width: 580px; }

.tv-cp__badge {
  display: inline-flex; align-items: center; gap: var(--s-2);
  padding: var(--s-2) var(--s-3);
  border: 1px solid var(--hairline-2);
  border-radius: 100px;
  font-family: var(--mono);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink-2);
  margin-bottom: var(--s-6);
  background: rgba(255,255,255,0.03);
  backdrop-filter: blur(10px);
}
.tv-cp__badge-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
  position: relative;
}
.tv-cp__badge-dot::after {
  content: '';
  position: absolute; inset: -3px;
  border-radius: 50%;
  background: var(--cyan);
  opacity: 0.4;
  animation: tv-pulse 2s ease-out infinite;
}

.tv-cp__h1 {
  font-family: var(--sans);
  font-size: clamp(2.25rem, 4.8vw, 3.75rem);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.04em;
  color: var(--ink);
  margin-bottom: var(--s-5);
}

.tv-cp__lede {
  font-size: var(--fs-lg);
  line-height: 1.55;
  color: var(--ink-muted);
  margin-bottom: var(--s-8);
  max-width: 54ch;
}

.tv-cp__inline-link {
  color: var(--ink);
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid var(--hairline-2);
  padding-bottom: 1px;
  transition: color 200ms var(--ease), border-color 200ms var(--ease);
}
.tv-cp__inline-link:hover {
  color: var(--blue-2);
  border-bottom-color: var(--blue-2);
}

/* Banners */
.tv-cp__banner {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding: var(--s-3) var(--s-4);
  border-radius: 10px;
  font-size: var(--fs-sm);
  margin-bottom: var(--s-6);
}
.tv-cp__banner--ok {
  background: rgba(34,197,94,0.08);
  border: 1px solid rgba(34,197,94,0.25);
  color: #4ADE80;
}
.tv-cp__banner--ok strong { color: var(--ink); }
.tv-cp__banner--err {
  background: rgba(255,107,107,0.08);
  border: 1px solid rgba(255,107,107,0.25);
  color: #FF8888;
}

/* ============= FORM ============= */
.tv-cp__form {
  display: flex;
  flex-direction: column;
  gap: var(--s-5);
  margin-bottom: var(--s-8);
}

.tv-cp__form-row--2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-4);
}

.tv-cp__field {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  position: relative;
}

.tv-cp__label {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.tv-cp__label-num {
  color: var(--blue-2);
  font-weight: 500;
}
.tv-cp__count {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  text-transform: none;
}

.tv-cp__field input,
.tv-cp__field textarea,
.tv-cp__select select {
  width: 100%;
  font-family: var(--sans);
  font-size: var(--fs-base);
  color: var(--ink);
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--hairline);
  border-radius: 10px;
  padding: 13px 16px;
  letter-spacing: -0.005em;
  outline: none;
  transition: border-color 200ms var(--ease), background 200ms var(--ease), box-shadow 200ms var(--ease);
}
.tv-cp__field input::placeholder,
.tv-cp__field textarea::placeholder {
  color: var(--ink-soft);
}
.tv-cp__field input:hover,
.tv-cp__field textarea:hover,
.tv-cp__select select:hover {
  border-color: var(--hairline-2);
  background: rgba(255,255,255,0.04);
}
.tv-cp__field input:focus,
.tv-cp__field textarea:focus,
.tv-cp__select select:focus {
  border-color: var(--blue);
  background: rgba(0,102,255,0.06);
  box-shadow: 0 0 0 3px rgba(0,102,255,0.12);
}
.tv-cp__field textarea {
  resize: vertical;
  min-height: 100px;
  line-height: 1.5;
  font-family: var(--sans);
}

/* Select wrapper */
.tv-cp__select {
  position: relative;
}
.tv-cp__select select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  padding-right: 40px;
}
.tv-cp__select select:invalid { color: var(--ink-soft); }
.tv-cp__select option { background: var(--bg-2); color: var(--ink); }
.tv-cp__select svg {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ink-muted);
  pointer-events: none;
}

/* Submit row */
.tv-cp__submit-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s-4);
  margin-top: var(--s-2);
  flex-wrap: wrap;
}
.tv-cp__note {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
}

/* Socials row */
.tv-cp__socials {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  padding-top: var(--s-6);
  border-top: 1px solid var(--hairline);
  flex-wrap: wrap;
}
.tv-cp__socials-label {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-right: var(--s-2);
}
.tv-cp__socials a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  font-family: var(--sans);
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--ink-2);
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--hairline);
  border-radius: 100px;
  text-decoration: none;
  transition: all 200ms var(--ease);
}
.tv-cp__socials a:hover {
  color: var(--ink);
  background: rgba(0,102,255,0.1);
  border-color: rgba(0,102,255,0.35);
}

/* ============= RIGHT: SVG Comms Tower ============= */
.tv-cp__viz {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  max-width: 560px;
  margin-left: auto;
}
.tv-cp__viz-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

/* Corner annotations */
.tv-cp__viz-anno {
  position: absolute;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-family: var(--mono);
  z-index: 3;
  pointer-events: none;
}
.tv-cp__viz-anno--tl { top: 12px;    left: 12px; }
.tv-cp__viz-anno--tr { top: 12px;    right: 12px; text-align: right; align-items: flex-end; }
.tv-cp__viz-anno--bl { bottom: 12px; left: 12px; }
.tv-cp__viz-anno--br { bottom: 12px; right: 12px; text-align: right; align-items: flex-end; }
.tv-cp__viz-anno-label {
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  color: var(--ink-soft);
  text-transform: uppercase;
}
.tv-cp__viz-anno-val {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--ink-2);
  letter-spacing: 0.06em;
}

/* Radar rings — slow rotation */
.tv-cp__ring {
  transform-origin: center;
  animation: tv-cp-spin-rings 30s linear infinite;
}
.tv-cp__ring--2 { animation-duration: 45s; animation-direction: reverse; }
.tv-cp__ring--3 { animation-duration: 60s; }
.tv-cp__ring--4 { animation-duration: 80s; animation-direction: reverse; }
@keyframes tv-cp-spin-rings {
  to { transform: rotate(360deg); }
}

/* Pulse waves — expand & fade */
.tv-cp__pulse {
  transform-origin: center;
  animation: tv-cp-pulse 3.9s ease-out infinite;
  opacity: 0;
}
@keyframes tv-cp-pulse {
  0%   { r: 30;  opacity: 0.8; stroke-width: 1.5; }
  100% { r: 240; opacity: 0;   stroke-width: 0.5; }
}

/* Incoming signal lines — dash drift */
.tv-cp__line {
  stroke-dashoffset: 0;
  animation: tv-cp-dash 3s linear infinite;
}
.tv-cp__line--2 { animation-delay: 0.7s; }
.tv-cp__line--3 { animation-delay: 1.4s; }
.tv-cp__line--4 { animation-delay: 2.1s; }
@keyframes tv-cp-dash {
  to { stroke-dashoffset: -28; }
}

/* Node dots — gentle pulse */
.tv-cp__node {
  transform-origin: center;
  animation: tv-cp-node 2.4s ease-in-out infinite;
  filter: drop-shadow(0 0 4px #3D8BFF);
}
.tv-cp__node--2 { animation-delay: 0.6s; }
.tv-cp__node--3 { animation-delay: 1.2s; }
.tv-cp__node--4 { animation-delay: 1.8s; }
@keyframes tv-cp-node {
  0%, 100% { opacity: 0.5; r: 3; }
  50%      { opacity: 1;   r: 5; }
}

/* Subtle twinkle on stars */
.tv-cp__viz-stars circle {
  animation: tv-cp-twinkle 4s ease-in-out infinite;
}
.tv-cp__viz-stars circle:nth-child(2n) { animation-delay: 1.2s; }
.tv-cp__viz-stars circle:nth-child(3n) { animation-delay: 2.4s; }
@keyframes tv-cp-twinkle {
  0%, 100% { opacity: 0.3; }
  50%      { opacity: 0.9; }
}

/* ============= RESPONSIVE ============= */
@media (max-width: 980px) {
  .tv-cp {
    min-height: auto;
    padding: calc(var(--nav-h) + var(--s-10)) 0 var(--s-16);
  }
  .tv-cp__inner {
    grid-template-columns: 1fr;
    gap: var(--s-12);
  }
  .tv-cp__viz {
    max-width: 440px;
    margin: 0 auto;
    order: -1;  /* show visual ABOVE content on tablet */
  }
  .tv-cp__content { max-width: none; }
}

@media (max-width: 640px) {
  .tv-cp__viz { max-width: 320px; }
  .tv-cp__viz-anno-label { font-size: 0.55rem; }
  .tv-cp__viz-anno-val { font-size: 0.68rem; }
  .tv-cp__form-row--2 { grid-template-columns: 1fr; }
  .tv-cp__submit-row { flex-direction: column; align-items: stretch; }
  .tv-cp__submit-row .tv-btn { justify-content: center; }
  .tv-cp__note { justify-content: center; }
  .tv-cp__socials { gap: var(--s-3); }
  .tv-cp__socials a { padding: 5px 12px; font-size: 0.8rem; }
}

@media (max-width: 420px) {
  .tv-cp__viz { max-width: 260px; }
  .tv-cp__viz-anno--tl, .tv-cp__viz-anno--bl,
  .tv-cp__viz-anno--tr, .tv-cp__viz-anno--br { display: none; }
  .tv-cp__h1 { font-size: 2rem; }
  .tv-cp__socials a span { display: none; }
}


/* ==========================================================================
   BLOG LISTING — /blog.php
   ========================================================================== */
.tv-bl {
  position: relative;
  padding: calc(var(--nav-h) + var(--s-16)) 0 var(--s-12);
  overflow: hidden;
}
.tv-bl__grid-bg {
  position: absolute;
  inset: 0;
  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: 80px 80px;
  mask-image: radial-gradient(ellipse at 50% 30%, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, black 30%, transparent 70%);
  z-index: 0;
}
.tv-bl__amb {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.tv-bl__amb::before {
  content: '';
  position: absolute;
  top: -100px; left: 50%;
  transform: translateX(-50%);
  width: 800px; height: 500px;
  background: radial-gradient(ellipse, rgba(0,102,255,0.35), transparent 65%);
  filter: blur(80px);
  border-radius: 50%;
}

.tv-bl__head {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}
.tv-bl__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  padding: 6px 14px;
  border: 1px solid var(--hairline-2);
  border-radius: 100px;
  font-family: var(--mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.04em;
  color: var(--ink-2);
  margin-bottom: var(--s-6);
  background: rgba(255,255,255,0.03);
  backdrop-filter: blur(10px);
}
.tv-bl__eyebrow-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
}
.tv-bl__h1 {
  font-family: var(--sans);
  font-size: clamp(2.5rem, 5.5vw, 4.25rem);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.04em;
  color: var(--ink);
  margin-bottom: var(--s-5);
}
.tv-bl__lede {
  font-size: var(--fs-lg);
  line-height: 1.55;
  color: var(--ink-muted);
  max-width: 56ch;
  margin: 0 auto;
}

/* Posts grid */
.tv-bl-grid {
  padding: var(--s-8) 0 var(--s-24);
  position: relative;
  z-index: 2;
}
.tv-bl-grid__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--s-4) 0;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  margin-bottom: var(--s-10);
  font-family: var(--mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.tv-bl-grid__sort { color: var(--blue-2); }

.tv-bl-grid__items {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-8) var(--s-6);
}

/* Card */
.tv-bl-card {
  position: relative;
}
.tv-bl-card__link {
  display: flex;
  flex-direction: column;
  gap: var(--s-5);
  text-decoration: none;
  color: inherit;
  height: 100%;
}
.tv-bl-card__img-wrap {
  position: relative;
  aspect-ratio: 1200 / 630;
  overflow: hidden;
  border-radius: 12px;
  background: var(--bg-2);
  border: 1px solid var(--hairline);
}
.tv-bl-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 600ms var(--ease);
}
.tv-bl-card__link:hover .tv-bl-card__img {
  transform: scale(1.04);
}
.tv-bl-card__cat {
  position: absolute;
  top: var(--s-3);
  left: var(--s-3);
  padding: 5px 10px;
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  background: rgba(10, 14, 26, 0.7);
  border: 1px solid var(--hairline-2);
  border-radius: 4px;
  backdrop-filter: blur(8px);
}
.tv-bl-card__body {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  flex: 1;
}
.tv-bl-card__meta {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
}
.tv-bl-card__sep { opacity: 0.5; }
.tv-bl-card__title {
  font-family: var(--sans);
  font-size: var(--fs-xl);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--ink);
  transition: color 200ms var(--ease);
}
.tv-bl-card__link:hover .tv-bl-card__title {
  color: var(--blue-2);
}
.tv-bl-card__excerpt {
  font-size: var(--fs-sm);
  line-height: 1.55;
  color: var(--ink-muted);
  flex: 1;
}
.tv-bl-card__read {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--sans);
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--blue-2);
  letter-spacing: -0.005em;
  margin-top: auto;
}
.tv-bl-card__read svg {
  transition: transform 250ms var(--ease);
}
.tv-bl-card__link:hover .tv-bl-card__read svg {
  transform: translateX(3px);
}

/* Responsive blog listing */
@media (max-width: 980px) {
  .tv-bl-grid__items { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .tv-bl { padding: calc(var(--nav-h) + var(--s-10)) 0 var(--s-8); }
  .tv-bl-grid__items { grid-template-columns: 1fr; gap: var(--s-10); }
}


/* ==========================================================================
   BLOG POST — /blog/<slug>.php
   ========================================================================== */
.tv-post {
  position: relative;
  overflow: hidden;
}
.tv-post__bg-grid {
  position: absolute;
  inset: 0 0 auto 0;
  height: 800px;
  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: 80px 80px;
  mask-image: linear-gradient(180deg, black 0%, transparent 80%);
  -webkit-mask-image: linear-gradient(180deg, black 0%, transparent 80%);
  z-index: 0;
  pointer-events: none;
}
.tv-post__bg-amb {
  position: absolute;
  top: -150px; left: -100px;
  width: 700px; height: 500px;
  background: radial-gradient(ellipse, rgba(0,102,255,0.3), transparent 65%);
  filter: blur(100px);
  z-index: 0;
  pointer-events: none;
}

/* Post header */
.tv-post__header {
  position: relative;
  z-index: 2;
  padding: calc(var(--nav-h) + var(--s-12)) 0 var(--s-10);
}
/* One shared content column for the whole post — header, hero image, and prose
   all use the same max-width, centered, so every block shares one left/right edge. */
.tv-post__header > .tv-wrap > * {
  max-width: var(--post-w);
  margin-left: auto;
  margin-right: auto;
}

.tv-post__crumbs {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  font-family: var(--mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  margin-bottom: var(--s-6);
}
.tv-post__crumbs a {
  color: var(--ink-muted);
  text-decoration: none;
  transition: color 200ms var(--ease);
}
.tv-post__crumbs a:hover { color: var(--ink); }
.tv-post__crumb-sep { opacity: 0.4; }
.tv-post__crumb-current { color: var(--blue-2); }

.tv-post__cat {
  display: inline-flex;
  padding: 5px 12px;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cyan);
  background: rgba(0, 212, 255, 0.08);
  border: 1px solid rgba(0, 212, 255, 0.25);
  border-radius: 4px;
  margin-bottom: var(--s-5);
}

.tv-post__h1 {
  font-family: var(--sans);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: var(--ink);
  margin-bottom: var(--s-5);
}

.tv-post__lede {
  font-size: var(--fs-lg);
  line-height: 1.5;
  color: var(--ink-muted);
  margin-bottom: var(--s-8);
  max-width: 60ch;
}

.tv-post__byline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--s-6);
  border-top: 1px solid var(--hairline);
  flex-wrap: wrap;
  gap: var(--s-4);
}
.tv-post__author {
  display: flex;
  align-items: center;
  gap: var(--s-3);
}
.tv-post__author-avatar {
  width: 36px;
  height: 36px;
  display: block;
}
.tv-post__author-avatar svg {
  width: 100%;
  height: 100%;
  border-radius: 8px;
}
.tv-post__author-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.tv-post__author-name {
  font-family: var(--sans);
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.005em;
}
.tv-post__author-sub {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--ink-soft);
}
.tv-post__author-sub span:nth-child(2) { opacity: 0.5; }

.tv-post__share {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  font-family: var(--sans);
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--ink-muted);
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--hairline);
  border-radius: 100px;
  cursor: pointer;
  transition: all 200ms var(--ease);
}
.tv-post__share:hover {
  color: var(--ink);
  border-color: var(--hairline-2);
  background: rgba(255,255,255,0.06);
}
.tv-post__share.is-copied {
  color: var(--cyan);
  border-color: rgba(0,212,255,0.4);
  background: rgba(0,212,255,0.08);
}

/* Hero image */
.tv-post__hero-img {
  position: relative;
  z-index: 2;
  margin-bottom: var(--s-12);
}
.tv-post__hero-img-frame {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--hairline);
  aspect-ratio: 1200 / 630;
  max-width: var(--post-w);
  margin: 0 auto;
}
.tv-post__hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Body */
.tv-post__body {
  position: relative;
  z-index: 2;
  padding-bottom: var(--s-24);
}

/* Prose — applies to the post content body.
   Uses the same shared --post-w column as the header and hero image,
   so all three blocks line up on one left/right edge. */
.tv-post__prose {
  color: var(--ink-2);
  font-size: 1.0625rem;
  line-height: 1.7;
  letter-spacing: -0.005em;
  max-width: var(--post-w);
  margin: 0 auto;
}
.tv-post__prose > * + * { margin-top: var(--s-4); }

.tv-post__intro {
  font-size: 1.25rem;
  line-height: 1.55;
  color: var(--ink);
  font-weight: 400;
  padding-bottom: var(--s-4);
  border-bottom: 1px solid var(--hairline);
  margin-bottom: var(--s-6) !important;
}

.tv-post__prose h2 {
  font-family: var(--sans);
  font-size: var(--fs-2xl);
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin-top: var(--s-10) !important;
  margin-bottom: var(--s-4);
  line-height: 1.2;
  scroll-margin-top: calc(var(--nav-h) + var(--s-4));
}
.tv-post__prose h3 {
  font-family: var(--sans);
  font-size: var(--fs-lg);
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin-top: var(--s-8) !important;
  margin-bottom: var(--s-3);
  line-height: 1.25;
}

.tv-post__prose p {
  color: var(--ink-2);
  font-size: 1.0625rem;
  line-height: 1.7;
}

.tv-post__prose strong {
  color: var(--ink);
  font-weight: 600;
}

.tv-post__prose em {
  font-style: italic;
  color: var(--ink);
}

.tv-post__prose a {
  color: var(--blue-2);
  text-decoration: none;
  border-bottom: 1px solid rgba(61, 139, 255, 0.35);
  transition: border-color 200ms var(--ease);
}
.tv-post__prose a:hover { border-bottom-color: var(--blue-2); }

.tv-post__prose ul,
.tv-post__prose ol {
  padding-left: var(--s-6);
  color: var(--ink-2);
}
.tv-post__prose ul { list-style: none; padding-left: 0; }
.tv-post__prose ul li {
  position: relative;
  padding-left: var(--s-5);
  margin-bottom: var(--s-3);
  line-height: 1.6;
}
.tv-post__prose ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 8px;
  height: 1px;
  background: var(--blue-2);
}
.tv-post__prose ol {
  counter-reset: postlist;
  padding-left: 0;
  list-style: none;
}
.tv-post__prose ol li {
  position: relative;
  padding-left: var(--s-8);
  margin-bottom: var(--s-3);
  line-height: 1.6;
  counter-increment: postlist;
}
.tv-post__prose ol li::before {
  content: counter(postlist, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0.05em;
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--blue-2);
  letter-spacing: 0.04em;
}

.tv-post__prose blockquote {
  border-left: 2px solid var(--blue);
  padding-left: var(--s-5);
  margin-top: var(--s-6) !important;
  margin-bottom: var(--s-6) !important;
  font-family: var(--sans);
  font-size: 1.25rem;
  font-style: italic;
  line-height: 1.45;
  color: var(--ink);
}

/* In-post CTA card */
.tv-post__cta {
  margin-top: var(--s-12) !important;
  padding: var(--s-8);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(0,102,255,0.1), rgba(0,212,255,0.05));
  border: 1px solid rgba(0, 102, 255, 0.25);
  position: relative;
  overflow: hidden;
}
.tv-post__cta::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,212,255,0.6), transparent);
}
.tv-post__cta h3 {
  font-family: var(--sans);
  font-size: var(--fs-xl);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: var(--s-3) !important;
  margin-top: 0 !important;
}
.tv-post__cta p {
  color: var(--ink-muted);
  font-size: var(--fs-base);
  margin-bottom: var(--s-5);
}
.tv-post__cta .tv-btn {
  display: inline-flex;
}
/* The CTA button is an <a> inside .tv-post__prose, so the prose link rules
   (.tv-post__prose a) would otherwise tint it blue and add an underline.
   Re-assert the button styles with enough specificity to win. */
.tv-post__prose .tv-post__cta .tv-btn--primary,
.tv-post__prose a.tv-btn--primary {
  color: #fff;
  border: 1px solid var(--blue);
  border-bottom-color: var(--blue);
}
.tv-post__prose a.tv-btn--primary:hover {
  color: #fff;
  border-color: var(--blue-2);
  border-bottom-color: var(--blue-2);
}

/* Related posts */
.tv-post-rel {
  padding: var(--s-16) 0 var(--s-24);
  border-top: 1px solid var(--hairline);
  background: var(--bg-2);
}
.tv-post-rel__head {
  text-align: center;
  margin-bottom: var(--s-10);
}
.tv-post-rel__h2 {
  font-family: var(--sans);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-top: var(--s-3);
}
.tv-post-rel__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-6);
}

/* Responsive blog post */
@media (max-width: 980px) {
  .tv-post-rel__grid { grid-template-columns: repeat(2, 1fr); }
  .tv-post-rel__grid .tv-bl-card:last-child { display: none; }
}
@media (max-width: 640px) {
  .tv-post__header { padding-top: calc(var(--nav-h) + var(--s-8)); }
  .tv-post__byline { flex-direction: column; align-items: flex-start; }
  .tv-post__hero-img-frame { border-radius: 12px; }
  .tv-post__prose { font-size: 1rem; }
  .tv-post__prose p { font-size: 1rem; }
  .tv-post__intro { font-size: 1.125rem; }
  .tv-post__cta { padding: var(--s-6); }
  .tv-post-rel__grid { grid-template-columns: 1fr; }
  .tv-post-rel__grid .tv-bl-card:last-child { display: block; }
}


/* ==========================================================================
   RESPONSIVE — comprehensive device audit
   Tablet ≤900px · Mobile ≤640px · Small mobile ≤480px
   ========================================================================== */

/* ---- Tablet (≤900px) ---- */
@media (max-width: 900px) {
  :root {
    --s-32: 5rem;
    --s-24: 4rem;
    --gutter: 1.25rem;
  }
  .tv-section { padding: var(--s-24) 0; }

  /* Marquee label — stack vertically */
  .tv-marquee__label {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--s-2);
  }

  /* Features head — single column */
  .tv-features__head { grid-template-columns: 1fr; gap: var(--s-6); }

  /* Stats title smaller */
  .tv-stats__title { font-size: var(--fs-4xl); }
  .tv-stats__grid { grid-template-columns: 1fr; }

  /* Dest head — stack */
  .tv-dest__head { flex-direction: column; align-items: flex-start; }
}

/* ---- Mobile (≤640px) ---- */
@media (max-width: 640px) {
  :root {
    --s-32: 4rem;
    --s-24: 3rem;
    --s-16: 2.5rem;
    --fs-5xl: 2.5rem;
    --fs-4xl: 2rem;
    --fs-3xl: 1.75rem;
  }

  /* Hero — tighter */
  .tv-hero {
    padding: calc(var(--nav-h) + var(--s-8)) 0 var(--s-12);
  }
  .tv-hero__h1 {
    font-size: clamp(2rem, 8vw, 2.75rem);
    max-width: none;
  }
  .tv-hero__lede {
    font-size: var(--fs-base);
    max-width: none;
  }
  .tv-hero__cta { flex-direction: column; align-items: stretch; }
  .tv-hero__cta .tv-btn { justify-content: center; }
  .tv-hero__viz { max-width: 100%; }

  /* Nav drawer text smaller */
  .tv-drawer__nav a { font-size: var(--fs-2xl); }

  /* Marquee — smaller text */
  .tv-marq-dest__name { font-size: 2rem; }
  .tv-marq-dest__code { font-size: 0.65rem; padding: 3px 6px; }
  .tv-marquee__track { gap: var(--s-8); }

  /* Bento cards — full width single column already from existing rule */
  .tv-bento__item { padding: var(--s-6); }
  .tv-bento__h3 { font-size: var(--fs-xl); }

  /* How-it-works steps — full padding cleanup */
  .tv-how__step { padding: var(--s-8) var(--s-4); }
  .tv-how__step-h3 { font-size: var(--fs-2xl); }
  .tv-how__step-p { min-height: auto; }

  /* Destinations heading */
  .tv-dest__h2 { font-size: var(--fs-4xl); }
  .tv-dest__card { height: 280px; }
  .tv-dest__card-h3 { font-size: var(--fs-xl); }

  /* Stats cards padding */
  .tv-stat-card { padding: var(--s-6); }
  .tv-stat-card__num { font-size: 2.75rem; }
  .tv-stats__chip { padding: 6px 10px 6px 6px; }
  .tv-stats__chip span { font-size: 0.8rem; }
  .tv-stats__chip img { width: 18px; height: 14px; }

  /* Chat */
  .tv-chat { padding: var(--s-4); }
  .tv-chat__bubble { font-size: var(--fs-sm); }
  .tv-chat__avatar { width: 28px; height: 28px; font-size: 0.65rem; }

  /* Testimonial */
  .tv-test__h2 { font-size: var(--fs-4xl); }
  .tv-test__card { padding: var(--s-4); }
  .tv-test__card-quote { font-size: var(--fs-base); }

  /* FAQ */
  .tv-faq__h2 { font-size: var(--fs-4xl); }
  .tv-faq__q { font-size: var(--fs-base); padding: var(--s-4) 0; }

  /* Footer */
  .tv-footer { padding-top: var(--s-16); }
  .tv-footer__title { font-size: 2.25rem; }
  .tv-footer__cta { padding-bottom: var(--s-12); }
  .tv-footer__grid { padding: var(--s-12) 0; gap: var(--s-6); }
  .tv-footer__base {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--s-2);
    text-align: left;
  }
  .tv-footer__wordmark span { font-size: clamp(4rem, 22vw, 7rem); }

  /* Section number alignment */
  .tv-section-num { font-size: 0.65rem; }
}

/* ---- Small mobile (≤480px) ---- */
@media (max-width: 480px) {
  :root {
    --gutter: 1rem;
  }
  .tv-hero__h1 { font-size: clamp(1.75rem, 9vw, 2.25rem); }
  .tv-features__h2,
  .tv-dest__h2,
  .tv-test__h2,
  .tv-faq__h2,
  .tv-assist__h2 { font-size: 1.75rem; }
  .tv-footer__title { font-size: 1.75rem; }
  .tv-hero__badge { font-size: 0.65rem; }
}
