    /* Homepage layout overrides - MUST be in head to prevent CLS from body-level style overrides */
    html, body { height: auto !important; min-height: 100% !important; overflow-y: auto !important; }
    main { overflow: visible !important; margin-top: 0 !important; padding-bottom: 0 !important; }
    main > div { max-width: none !important; padding: 0 !important; }
    main > div > div { max-width: none !important; padding: 0 !important; background: transparent !important; box-shadow: none !important; border-radius: 0 !important; }
    .min-h-full { overflow: visible !important; height: auto !important; }
    /* Hide the layout's page-title header + collapse the pb-32 negative-margin hero pattern on the homepage. */
    .pb-32 { padding-bottom: 0 !important; }
    .pb-32 > header { display: none !important; }
    .bg-gray-800.pb-32 { padding-bottom: 0 !important; }
    .bg-gray-800.pb-32 header { display: none !important; }
    /* Skip rendering of below-fold sections until scrolled into view (FCP/LCP optimization) */
    .cv-auto { content-visibility: auto; contain-intrinsic-size: auto 600px; }
  

  :root {
    --safe-bg: #fafafa;
    --safe-card: #ffffff;
    --safe-ink: #0a0a0a;
    --safe-muted: #737373;
    --safe-border: rgba(10,10,10,0.08);
    --safe-border-strong: rgba(10,10,10,0.14);
    --safe-accent: #2563eb;
    --safe-accent-soft: #eff6ff;
    --safe-success: #16a34a;
    --safe-success-soft: #f0fdf4;
    --safe-warn: #ca8a04;
    --safe-danger: #dc2626;
  }

  /* Override nav styling to match Safe utility theme */
  nav.bg-gradient-to-br {
    background: rgba(250,250,250,0.85) !important;
    backdrop-filter: blur(12px) !important;
    border-bottom: 1px solid var(--safe-border) !important;
  }
  nav .text-indigo-500, nav .text-indigo-400, nav .group-hover\:text-indigo-400:hover {
    color: var(--safe-accent) !important;
  }
  nav .text-white, nav .text-gray-300 { color: var(--safe-ink) !important; }
  nav .text-gray-400 { color: var(--safe-muted) !important; }
  nav .bg-gray-900 { background-color: var(--safe-card) !important; }
  nav .hover\:bg-gray-700:hover { background-color: #f4f4f5 !important; }
  nav .border-gray-700\/50 { border-color: var(--safe-border) !important; }
  nav .bg-indigo-600 { background-color: var(--safe-ink) !important; color: #fff !important; }
  /* Dark (safe-ink) pills like the mobile menu toggle keep white text/icons */
  nav .bg-safe-ink, nav .bg-safe-ink * { color: #fff !important; }
  nav .hover\:bg-indigo-500:hover { background-color: #27272a !important; }
  nav .text-indigo-600 { color: var(--safe-accent) !important; }

  /* Override header section */
  .bg-gray-800.pb-32 {
    background: var(--safe-bg) !important;
  }

  /* Override footer styling */
  footer.bg-gray-800 {
    background: var(--safe-ink) !important;
  }
  footer .text-gray-400 { color: rgba(255,255,255,0.5) !important; }
  footer .hover\:text-gray-300:hover { color: rgba(255,255,255,0.8) !important; }
  footer .text-white { color: #fff !important; }
  footer .border-gray-700 { border-color: rgba(255,255,255,0.08) !important; }

  /* Override bottom nav */
  .fixed.bottom-0 {
    background: var(--safe-card) !important;
    border-top-color: var(--safe-border) !important;
  }
  .fixed.bottom-0 .text-indigo-600 { color: var(--safe-accent) !important; }

  .font-display {
    font-family: 'Inter', -apple-system, system-ui, sans-serif;
    font-weight: 600;
  }

  .font-body {
    font-family: 'Inter', -apple-system, system-ui, sans-serif;
  }

  /* Monospace label utility */
  .font-data {
    font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  }

  .mono-label {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 0.625rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--safe-muted);
    font-weight: 500;
  }

  /* Safe tag component */
  .safe-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 0.625rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 3px 7px;
    border-radius: 4px;
    font-weight: 500;
  }
  .safe-tag-default { background: #f4f4f5; color: #52525b; border: 1px solid var(--safe-border); }
  .safe-tag-accent { background: var(--safe-accent-soft); color: var(--safe-accent); }
  .safe-tag-success { background: var(--safe-success-soft); color: var(--safe-success); }
  .safe-tag-ink { background: var(--safe-ink); color: #fff; }

  /* Kbd style */
  .safe-kbd {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 0.6875rem;
    padding: 2px 6px;
    background: #f4f4f5;
    border: 1px solid var(--safe-border);
    border-radius: 4px;
    color: var(--safe-muted);
  }

  /* Staggered fade-in animations */
  @keyframes fade-up {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
  }
  /* No entrance animation on the hero. The old ".page-loaded" rule hid the
     hero h1 (the LCP element) at 2.5s and faded it in again, which pushed
     desktop LCP to about 2.9s. */
  .animate-fade-up { opacity: 1; }
  .delay-100 { animation-delay: 0.1s; }
  .delay-200 { animation-delay: 0.2s; }
  .delay-300 { animation-delay: 0.3s; }
  .delay-400 { animation-delay: 0.4s; }
  .delay-500 { animation-delay: 0.5s; }

  /* Hover lift - subtle */
  .hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  .hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px -8px rgba(0,0,0,0.12);
  }

  /* Skip rendering below-fold */
  .cv-auto { content-visibility: auto; contain-intrinsic-size: auto 600px; }

  /* Row hover for tables */
  .safe-row-hover { transition: background 0.15s ease; }
  .safe-row-hover:hover { background: #fafafa; }

  /* Seat tile with headrest bar — mirrors the real fuselage renderer */
  .hs-tile { position: relative; border-radius: 30% 30% 12% 12% / 22% 22% 10% 10%; }
  .hs-tile::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 24%;
    border-radius: inherit;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    background: rgba(15,23,42,0.12);
    pointer-events: none;
  }
  .hs-tile--light::before { background: rgba(255,255,255,0.35); }

            .flight-search-form {
              display: grid;
              grid-template-columns: 1.4fr 1px 1fr auto;
              gap: 0;
              align-items: stretch;
              background: var(--safe-card);
              border: 1px solid var(--safe-border-strong);
              border-radius: 10px;
              padding: 6px;
              width: 100%;
              max-width: 520px;
              box-shadow: 0 1px 2px rgba(0,0,0,0.04);
              transition: border-color 0.15s ease, box-shadow 0.15s ease;
            }
            .flight-search-form:focus-within {
              border-color: var(--safe-ink);
              box-shadow: 0 0 0 3px rgba(10,10,10,0.05);
            }
            .flight-search-input { padding: 6px 12px; min-width: 0; display: flex; flex-direction: column; justify-content: center; }
            .flight-search-input--flight { border-radius: 8px; transition: background 0.12s ease; }
            .flight-search-input--flight:focus-within { background: #fafafa; }
            .flight-search-input--date { min-width: 140px; border-radius: 8px; transition: background 0.12s ease; }
            .flight-search-input--date:focus-within { background: #fafafa; }
            .flight-search-label { display: block; margin-bottom: 3px; font-size: 9px !important; letter-spacing: 0.1em !important; }
            .flight-search-field {
              width: 100%;
              border: none;
              outline: none;
              background: transparent;
              color: var(--safe-ink);
              font-size: 15px;
              padding: 0;
              line-height: 1.3;
            }
            .flight-search-field--mono {
              font-family: 'JetBrains Mono', ui-monospace, monospace;
              font-weight: 500;
              letter-spacing: 0.01em;
            }
            .flight-search-field::placeholder { color: var(--safe-muted); }
            .flight-search-field[type="date"] { cursor: pointer; color-scheme: light; }
            .flight-search-field[type="date"]::-webkit-calendar-picker-indicator {
              opacity: 0.4; cursor: pointer; transition: opacity 0.12s ease;
            }
            .flight-search-field[type="date"]::-webkit-calendar-picker-indicator:hover { opacity: 0.8; }
            .flight-search-divider {
              width: 1px; background: var(--safe-border); margin: 8px 0; align-self: stretch;
            }
            .flight-search-submit-wrap { display: flex; align-items: stretch; }
            .flight-search-submit {
              background: var(--safe-ink);
              color: #fff;
              border: none;
              border-radius: 7px;
              padding: 0 18px;
              font-size: 13px;
              font-weight: 500;
              cursor: pointer;
              display: inline-flex;
              align-items: center;
              gap: 6px;
              white-space: nowrap;
              font-family: inherit;
              transition: background 0.15s ease;
              min-height: 44px;
            }
            .flight-search-submit:hover { background: #27272a; }
            .flight-search-submit:focus-visible { outline: 2px solid var(--safe-accent); outline-offset: 2px; }

            /* Mobile stack */
            @media (max-width: 640px) {
              .flight-search-form {
                grid-template-columns: 1fr;
                padding: 6px;
                gap: 2px;
              }
              /* 16px stops iOS Safari zooming the page when the field is focused. */
              .flight-search-field { font-size: 16px; }
              .flight-search-divider { display: none; }
              .flight-search-input { padding: 8px 12px; border-bottom: 1px solid var(--safe-border); border-radius: 0; }
              .flight-search-input--date { border-bottom: none; min-width: 0; }
              .flight-search-submit-wrap { padding-top: 4px; }
              .flight-search-submit { width: 100%; justify-content: center; padding: 12px 20px; }
            }
          
