html, body {
  -webkit-text-size-adjust: 100%;
}


* { box-sizing: border-box; }
:root {
  --fade: 600ms;
  --bg: #ffffff;
  --dark: #0a0a0a;
}
html, body { height: 100%; margin: 0; }
body { background: var(--bg); font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif; }

/* Gate overlay */
.gate {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  pointer-events: auto;
  opacity: 1;
  transition: opacity var(--fade) ease;
  background: #000; /* for letterboxing */
}
.gate.hidden { opacity: 0; pointer-events: none; }
.gate-bg {
  z-index: 0;
  position: absolute;
  inset: 0;
  background: center center no-repeat;
  background-image: url('../img/starter-bg.jpg');
  background-size: contain; /* avoid side crop on portrait */
  background-color: #000;
}


.enter-btn {
  position: relative;
  z-index: 1;
  padding: 14px 32px;
  font-size: clamp(14px, 2.2vw, 18px);
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  border: 2px solid rgba(255, 255, 255, 0.32);
  border-radius: 999px;
  cursor: pointer;
  color: #ffffff;
  background: rgba(0,0,0,0.55);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.10) inset,
    0 10px 24px rgba(0,0,0,0.45),
    0 0 18px rgba(255, 255, 255, 0.70),   /* crisp white inner glow */
    0 0 36px rgba(255, 255, 255, 0.45),   /* medium white halo */
    0 0 56px rgba(255, 217, 122, 0.25);   /* subtle warm outer rim */
  text-shadow:
    0 0 6px rgba(255,255,255,0.75),
    0 1px 0 rgba(0,0,0,0.5);
  opacity: 0;
  transition: opacity 1s ease;
}
.enter-btn.show { opacity: 1; }

.enter-btn.show { opacity: 1; }


/* App hidden until Enter */
.app { display: none; }
.app.visible { display: block; }

/* Frame layout: stack inset, underbar, bottombar; minimize gaps for small screens */
.frame {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 2px;
  background: var(--bg);
  padding-top: 8px;
}

/* Inset */
.inset {
  position: relative;
  width: min(92vw, 1200px);
  aspect-ratio: 16 / 9;
  border: 10px solid #222;
  border-radius: 0;
  overflow: hidden;
  background: #101010;
}

/* Video */
.bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity var(--fade) ease;
}

/* Revealables */
.reveal { opacity: 0; transition: opacity var(--fade) ease; }
.reveal.show { opacity: 1; }

/* Taglines */
.tagline {
  position: absolute;
  left: 6%;
  bottom: 18%;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,0.6);
  font-size: clamp(16px, 2.3vw, 32px);

  z-index: 5 !important;
}
.tagline div { margin: 4px 0; }

/* Inset logo */

/* Inset logo: centered over lamp, above tagline; starts tiny/invisible */

/* Inset logo: centered above tagline; fades in smoothly */

/* Inset logo: centered above tagline; fades in smoothly */

/* Inset logo: centered above tagline; fades in smoothly */
#logo {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 6%; /* moved higher from 12% */
  width: clamp(192px, 21.6vw, 384px); /* maintain 20% larger desktop size */
  height: auto;
  opacity: 0;
  transition: opacity 1s ease;
  z-index: 10 !important; /* ensure it layers over the tagline */

  pointer-events: none;
}
#logo.show { opacity: 1; }

#logo.show { opacity: 1; }

#logo.show { opacity: 1; }


@media (max-width: 430px) {
  #logo {
    top: 10%; /* slightly higher to balance smaller size */
    width: clamp(70px, 21vw, 110px); /* ~50% smaller than prior */
  
  z-index: 10 !important;

  pointer-events: none;
}
}





/* Inset CTAs (right edge) */
.ctas {
  position: absolute;
  right: 2%;
  bottom: 6%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-end;
}
.cta {
  padding: 10px 16px;
  border-radius: 0;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.06);
  color: #fff;
  backdrop-filter: blur(6px);
  cursor: pointer;
}

/* Underbar directly under inset */
.underbar {
  width: min(92vw, 1200px);
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
}
.underbar img { height: 32px; width: auto; }
.underbar .copyright { font-size: 14px; color: #333; }

/* Footer buttons (single set) */

.frame-btn {
  padding: 9px 14px;
  border-radius: 0;
  border: 1px solid rgba(0,0,0,0.15);
  background: #f6f6f6;
  color: #111;
  cursor: pointer;
}

/* Accessibility helpers */
[aria-hidden="true"] { pointer-events: none; }

/* --- Small-screen portrait refinements --- */
@media (max-width: 430px) {
  .frame { gap: 4px; padding-top: 6px; }
  .inset {
    width: 92vw;
    border-width: 8px;
    border-radius: 0;
  }
  #logo { right: 5%; top: 8%; width: 44vw; 
  z-index: 10 !important;

  pointer-events: none;
}
  .tagline { left: 5%; bottom: 16%; font-size: 16px; 
  z-index: 5 !important;
}
  .ctas { right: 3%; bottom: 5%; gap: 2px; }
  .cta { padding: 8px 12px; font-size: 14px; }
  .underbar img { height: 28px; }
  
  .frame-btn { padding: 8px 12px; font-size: 14px; }
}


/* --- Revised underbar and footer alignment --- */

/* Underbar no longer contains logo or copyright */
.underbar { display: none; }

/* Bottombar now includes logo on left and buttons centered */


/* Logo positioned bottom-left inline with buttons */


/* Copyright centered below buttons */
.copyright-footer {
  width: 100%;
  text-align: center;
  font-size: 14px;
  color: #333;
  margin-top: 4px;
}

/* Responsive adjustments for small portrait */
@media (max-width: 430px) {
  
  .copyright-footer { font-size: 12px; margin-top: 3px; }
}


/* --- Bottom row layout (buttons + logo on same line) --- */
.bottomrow {
  width: min(92vw, 1200px);
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 16px;
  opacity: 1; /* visible from start of frame page */
  transition: opacity var(--fade) ease;
  margin: 2px auto 30px auto;
}

/* White oval container for centered buttons */

.button-oval {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  padding: 10px 16px;
  background: #ffffff;
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.15);
  border: 1px solid rgba(0,0,0,0.06);
  min-height: 56px;
  opacity: 1; /* visible independently of buttons */
}


/* Red pill buttons */
.frame-btn.red {
  background: #c90b0b;
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 12px 22px;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(0,0,0,0.25), 0 2px 0 rgba(255,255,255,0.35) inset;
  cursor: pointer;
}
.frame-btn.red:active {
  transform: translateY(1px);
}

/* Right-aligned logo (same line) */

.row-logo {
  height: 42px;  /* slightly larger */
  width: auto;
  justify-self: end;
  opacity: 0;
  transition: opacity var(--fade) ease;
}
.row-logo.show { opacity: 1; }


/* Copyright line below */
.copyright-footer {
  width: min(92vw, 1200px);
  margin: 2px auto 30px auto;
  text-align: center;
  font-size: 14px;
  color: #333;
  opacity: 0;
  transition: opacity var(--fade) ease;
}

/* Show helper */
.reveal.show { opacity: 1; }

/* Mobile portrait: tighten spacing and allow wrapping */
@media (max-width: 430px) {
  .button-oval { gap: 12px; padding: 8px 12px; }
  .frame-btn.red { padding: 10px 14px; font-size: 14px; }
  .row-logo { height: 28px; }
  .bottomrow { grid-template-columns: 1fr auto; gap: 10px; }
}

.frame-btn.red.show { opacity: 1; }

@media (max-width: 430px) {
  .button-oval {
    gap: 10px;
    padding: 10px 12px;
  }
  .button-oval {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 42px;
    column-gap: 10px;
    row-gap: 10px;
    border-radius: 24px; /* soften to match mock while keeping overall oval feel */
  }
  .frame-btn.red {
    width: 100%;
    height: 42px;
    padding: 0;
    font-size: 14px;
    border-radius: 999px;
  }
  .row-logo { height: 26px; }
}

.copyright-footer.show { opacity: 1; }

@media (max-width: 430px) {
  .row-logo { height: 30px; }
}


/* Gate loading status (shimmer) */
.gate-status {
  position: absolute;
  top: 58%;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-weight: 600;
  letter-spacing: 0.08em;
  opacity: 0.8;
  text-shadow: 0 2px 12px rgba(0,0,0,0.6);
  animation: shimmer 1.4s linear infinite;
}
@keyframes shimmer {
  0% { opacity: 0.35; }
  50% { opacity: 0.85; }
  100% { opacity: 0.35; }
}

/* Guarantee buttons are invisible until reveal */
.button-oval .frame-btn.red {
  opacity: 0 !important;
}
.button-oval .frame-btn.red.show {
  opacity: 1 !important;
}


/* One-line Tagline 1: centered under lamp */
.tagline.one-line {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 38%; /* roughly under lamp glow; adjust as needed after visual check */
  width: 90%;
  text-align: center;
  color: #f0d15a; /* warm yellow */
  font-weight: 800;
  letter-spacing: 0.06em;
  font-size: clamp(16px, 2.6vw, 38px);
  text-shadow:
    0 2px 12px rgba(0,0,0,0.55),
    0 0 6px rgba(240, 209, 90, 0.65);
}

/* Adjust position for small portrait screens */



/* Tagline parts fade independently */
.tl-part {
  opacity: 0;
  transition: opacity 2s ease;
}
.tl-part.show {
  opacity: 1;
}
.tl-bullet {
  opacity: 0.8;
}


@media (max-width: 430px) {
  /* Keep Tagline 1 on a single line in iPhone portrait */
  .tagline.one-line {
    font-size: clamp(12px, 4.3vw, 18px); /* ~18% smaller than before */
    letter-spacing: 0.03em;              /* slightly tighter tracking */
    width: 96%;
  }
}



/* Cartoon-like overshoot pop for logo */

  60%  { transform: translateX(-50%) scale(1.12); opacity: 1; }
  80%  { transform: translateX(-50%) scale(0.96); opacity: 1; }
  100% { transform: translateX(-50%) scale(1.00); opacity: 1; }
}
/* removed pop-in */
/* #logo.pop-in { */
  animation: logo-pop 1.5s cubic-bezier(.22,1.28,.34,1) /* forwards; */
}

/* Portrait tuning: logo a bit higher/smaller to keep above tagline */


@media (max-width: 430px) {
  #logo {
    top: 10%; /* slightly higher to balance smaller size */
    width: clamp(70px, 21vw, 110px); /* ~50% smaller than prior */
  
  z-index: 10 !important;

  pointer-events: none;
}
}



/* --- Strong portrait override (placed last to win cascade) --- */
@media (max-width: 480px) {
  #logo {
    top: 7% !important;
    width: clamp(96px, 28.8vw, 150px) !important; /* ~15% larger than last build */
  
  z-index: 10 !important;

  pointer-events: none;
}
}

/* COS: side column (hidden by default; no behavior changes) */

.side-column {
  position: absolute;
  top: 14%;
  right: 2.25%;
  width: clamp(120px, 12vw, 160px);
  display: grid;
  gap: 10px;
  z-index: 6;
  opacity: 0;                 /* hidden by default */
  pointer-events: none;       /* inert until enabled */
}
.side-btn {
  display: inline-flex;
  justify-content: center;     /* center text horizontally */
  align-items: center;          /* center text vertically */
  text-align: center;
  padding: 12px 18px;
  width: clamp(130px, 11vw, 170px);  /* narrower, equal width */
  border-radius: 999px;
  font: 700 clamp(12px, 1.2vw, 14px)/1.1 system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  text-decoration: none;
  background: rgba(255,255,255,0.78);
  color: #ffffff;
  border: 1px solid rgba(255,255,255,.18);
  backdrop-filter: blur(4px);
  box-shadow: 0 0 10px 2px rgba(255,255,255,0.65), 0 6px 16px rgba(0,0,0,0.2);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .6s ease, transform .6s ease, background-color .2s ease, color .2s ease, border-color .2s ease;
  pointer-events: auto;

}
.side-btn.show {
  opacity: 1;
  transform: translateY(0);
}
.side-btn:hover,
.side-btn:focus,
.side-btn.active {
  background: #ffffff;
  color: #000000;
  border-color: rgba(0,0,0,.2);
  outline: none;
}


/* COS: enable reveal for side column */
.side-column.show { opacity: 1; pointer-events: auto; }

/* COS: side column layout & button styling (centered, translucent, right-justified) */
.side-column {
  position: absolute;
  top: 50%;
  right: 2.25%;
  transform: translateY(-50%);
  width: clamp(140px, 14vw, 200px);
  display: grid;
  gap: 12px;
  align-content: center;     /* keep group centered vertically */
  justify-items: end;        /* align pills to right edge */
  z-index: 6;
  opacity: 1;                /* column visible; items control their own fade */
  pointer-events: none;      /* items will re-enable */
}

.side-btn {
  display: inline-flex;
  justify-content: center;     /* center text horizontally */
  align-items: center;          /* center text vertically */
  text-align: center;
  padding: 10px 16px;
  width: clamp(120px, 10vw, 150px);  /* narrower, equal width */
  border-radius: 999px;
  font: 700 clamp(12px, 1.2vw, 14px)/1.1 system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  text-decoration: none;
  background: rgba(0,0,0,.45);
  color: #ffffff;
  border: 1px solid rgba(255,255,255,.18);
  backdrop-filter: blur(4px);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08) inset,
    0 10px 24px rgba(0,0,0,0.35);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .6s ease, transform .6s ease, background-color .2s ease, color .2s ease, border-color .2s ease;
  pointer-events: auto;
}
.side-btn.show {
  opacity: 1;
  transform: translateY(0);
}
.side-btn:hover,
.side-btn:focus,
.side-btn.active {
  background: #ffffff;
  color: #000000;
  border-color: rgba(0,0,0,.2);
  outline: none;
}


.side-btn.show {
  opacity: 1;
  transform: translateY(0);
}

.side-btn:hover,
.side-btn:focus,
.side-btn.active {
  background: #ffffff;           /* invert to white on select */
  color: #000000;
  border-color: rgba(0,0,0,.2);
  outline: none;
}

/* Ensure Tagline 2 clears the side column horizontally (positioning step will follow if needed) */


/* COS: layering — place side buttons behind Tagline 1 */
#tagline1 { z-index: 5 !important; }           /* ensure Tagline 1 stays above */
.side-column { z-index: 3; }        /* keep buttons above video but below Tagline 1 */

/* COS: Tagline 2 bottom-center alignment and size equal to Tagline 1 */


/* COS: Tagline 2 — landscape/tabloid-safe bottom center */


/* Prefer these rules when aspect is wider than tall */
@media (min-aspect-ratio: 5/6) and (min-width: 700px) {
  
}

/* COS: Tagline 2 — clean absolute bottom-center, no layout push */
#tagline2 {  letter-spacing: 0.01em;
  white-space: nowrap;

  position: absolute;
  bottom: 6%;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  max-width: 88%;
  padding: 0 8px;
  box-sizing: border-box;
  z-index: 7;
  /* Match Tagline 1 size if variable exists, else robust fallback */
  font-size: 4.5vw;
  line-height: 1.2;
  margin: 0;
}

/* COS: prevent Tagline 2 from influencing layout & guard against margin-collapsing */
#tagline2, #tagline2 * {
  margin: 0 !important;
}
#tagline2 {
  position: absolute !important;
  pointer-events: none;          /* purely visual */
}
.bottomrow {
  margin-top: 0 !important;
}

/* COS: anchor bottom CTA row inside inset, flush to bottom */
.inset { position: relative; }
#bottomRow.bottomrow {
  position: absolute;
  left: 50%;
  bottom: 1.5%;
  transform: translateX(-50%);
  width: 96%;
  max-width: 100%;
  margin: 0 !important;
  padding: 0;
  z-index: 8; /* above video and side buttons; below any overlays you prefer */
}
#bottomRow .button-oval {
  display: flex;
  gap: clamp(8px, 1.4vw, 16px);
  justify-content: center;
  align-items: center;
  flex-wrap: nowrap;
}
/* Tighten in narrow portrait while staying inside frame */
@media (max-width: 430px) and (max-aspect-ratio: 5/6) {
  #bottomRow.bottomrow { bottom: 2.5%; width: 94%; }
}


/* === Mobile fixes 2025-11-03 === */
/* Portrait phones: remove gap under inset, 2x2 CTA grid, keep CTAs in normal flow */
@media (orientation: portrait) and (max-width: 600px) {
  .frame { min-height: 100svh; }

  #bottomRow.bottomrow {
    position: static !important;
    left: auto; right: auto; bottom: auto;
    transform: none !important;
    width: 100%;
    max-width: 900px;
    margin: 8px auto 12px auto !important;
    padding: 0 12px;
  }

  .button-oval {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px !important;
    background: #fff;
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 999px;
    padding: 12px;
  }

  .button-oval .frame-btn.red {
    width: 100%;
    justify-self: stretch;
  }
}

/* Phone landscape ("tabloid"): keep CTA area below inset, not over it */
@media (orientation: landscape) and (max-width: 900px) {
  .frame { min-height: 100svh; }

  #bottomRow.bottomrow {
    position: static !important;
    left: auto; right: auto; bottom: auto;
    transform: none !important;
    width: min(92vw, 1200px);
    margin-top: 12px !important;
    padding: 0 12px;
  }
}


/* === New CTA white box and buttons === */
#ctaTestRect { width: min(92vw, 1200px); margin: 8px auto 0 auto; }
#ctaTestRect .cta-test-box {
  background: #fff;
  border-radius: 14px;
  padding: 10px;
  box-shadow: 0 8px 18px rgba(0,0,0,0.20);
}
#ctaTestRect .cta-test-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  justify-content: center;
  align-items: center;
  gap: 10px 12px;
}
@media (min-width: 700px) {
  #ctaTestRect .cta-test-row { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
#ctaTestRect .cta-test-btn {
  width: 100%;
  max-width: 150px;
  justify-self: center;
  appearance: none;
  border: none;
  border-radius: 999px;
  background: #c90b0b;
  color: #fff;
  padding: 10px 16px;
  font-weight: 800;
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(0,0,0,0.25), 0 2px 0 rgba(255,255,255,0.35) inset;
  border-right: 3px solid #000;
  border-bottom: 3px solid #000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1000ms ease;

  white-space: nowrap;
  font-size: 0.95rem;
}
#ctaTestRect .cta-test-btn.show { opacity: 1; pointer-events: auto; }
@media (max-width: 390px) {
  #ctaTestRect .cta-test-btn { max-width: 140px; padding: 9px 12px; }
}

/* === Global: bottomrow now footer-only, remove legacy grid spacing === */
.bottomrow {
  display: block !important;
  margin: 0 !important;
  padding-top: 0 !important;
  gap: 0 !important;
  row-gap: 0 !important;
}

/* Maintain a subtle breathing space under CTA */
#ctaTestRect .cta-test-box { padding-bottom: 6px; }



}


/* === 1107-025: top-underbar alignment (v15 base) === */
.top-underbar-wrap {
  width: min(92vw, 1200px);
  margin: 2px auto 30px auto; /* creates clean band above the inset */
}


/* === 1107-027: Top bar logo left / copyright right === */
#fixedUnderbar.topbar-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: min(92vw, 1200px);
  margin: 2px auto 30px auto;
}
#fixedUnderbar.topbar-flex .topbar-left img {
  height: 52px;
  width: auto;
  display: block;
}
#fixedUnderbar.topbar-flex .topbar-right {
  text-align: right;
  font-size: 0.82em;
}

/* === 1107-028: use original logo art; smaller copyright text === */
#fixedUnderbar.topbar-flex .topbar-right { font-size: 0.78em; }


/* === 1107-030: tighten top header/inset spacing === */
.top-underbar-wrap {
  margin: 6px auto 4px auto !important; /* was larger; tighten space under header */
}
#fixedUnderbar.topbar-flex {
  margin: 6px auto 4px auto !important; /* ensure the bar itself is tight */
}
.frame { 
  gap: 0 !important; /* remove any default flex gap between header/inset/cta */
}
/* Ensure inset isn't adding its own bottom spacing */
.inset { 
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}


@media (max-width: 430px) and (orientation: portrait) {
  .side-btn {
    width: clamp(120px, 10vw, 150px);
    padding: 10px 16px;
  }
}


/* Tagline2 no-wrap fallbacks */
@media (max-width: 1200px) {
  #tagline2 { font-size: 4.2vw; }
}
@media (max-width: 900px) {
  #tagline2 { font-size: 3.9vw; }
}
@media (max-width: 700px) {
  #tagline2 { font-size: 3.6vw; }
}

/* 1111-026: subtle white glow on right-side info buttons */
.side-btn {
  box-shadow: 0 0 8px rgba(255,255,255,0.75), 0 0 16px rgba(255,255,255,0.35);
}
.side-btn:hover, .side-btn:focus {
  box-shadow: 0 0 12px rgba(255,255,255,0.9), 0 0 24px rgba(255,255,255,0.55);
  outline: none;
}






/* Narrowing just the 'Join the Pilot' CTA-test button */

.cta-test-btn.join-pilot-fix 


/* iPhone landscape: keep side buttons single-line and avoid bulging height */
@media only screen and (max-height: 480px) and (orientation: landscape) {
  .side-btn {
    padding: 8px 14px;
    font-size: 0.72rem;
    white-space: nowrap;
  }
}

/* iPhone portrait: scale down info + mute buttons so they don't dominate */
@media only screen and (max-width: 480px) and (orientation: portrait) {
  .side-btn,
  #soundToggle {
    padding: 6px 12px;
    font-size: 0.68rem;
  }
}


/* === 1115-009: About page layout + ensure side-column clickability === */

.about-page {
  background-color: #ffffff;
  color: #07101b;
  margin: 0;
}

.about-shell {
  width: min(92vw, 1200px);
  margin: 2px auto 30px auto;
  color: #07101b;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

.about-inner {
  background: #ffffff;
  border-radius: 24px;
  padding: 24px 22px;
  box-shadow: 0 18px 40px rgba(0,0,0,0.8);
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr);
  gap: 24px;
  align-items: center;
}

.about-visual img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 18px;
}

.about-copy h1 {
  font-size: clamp(24px, 3vw, 30px);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 10px 0;
}

.about-copy h2 {
  font-size: clamp(18px, 2.1vw, 22px);
  margin: 18px 0 8px 0;
}

.about-copy p {
  font-size: clamp(14px, 1.4vw, 16px);
  line-height: 1.5;
  margin: 0 0 10px 0;
  color: #07101b;
}

/* Stack About layout on smaller screens */
@media (max-width: 900px) {
  .about-inner {
    grid-template-columns: minmax(0, 1fr);
    padding: 20px 16px;
    border-radius: 20px;
  }
}

/* Ensure side-column buttons are always clickable and above overlays on larger screens */
@media (min-width: 768px) {
  .side-column {
    z-index: 9999 !important;
    pointer-events: auto !important;
  }
  .side-column .side-btn {
    pointer-events: auto !important;
  }
}


/* === 1115-011: Hero shell slide + detail inset for About and other pages === */

.hero-shell {
  transition: transform 700ms ease-in-out, opacity 600ms ease-in-out;
}

/* Default: home mode */
body:not(.mode-detail) .hero-shell {
  transform: translateY(0);
  opacity: 1;
}

/* Detail mode: slide hero+CTA up toward header */
body.mode-detail .hero-shell {
  transform: translateY(-32vh);
  opacity: 0.98;
}

/* Detail inset area (content space for About, Mission, etc.) */
#detailInset {
  width: min(92vw, 1200px);
  margin: 2px auto 30px auto;
  
  
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 600ms ease-in-out 120ms, transform 600ms ease-in-out 120ms;
  pointer-events: none;
}

body.mode-detail #detailInset {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Make sure inner content inherits our document fonts/colors */
#detailContent {
  color: #ffffff;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}


/* === 1115-012: Collapse inset height in detail mode so CTA row moves up === */
.inset {
  max-height: 120vh; /* effectively no clamp; allows full inset on tabloid/landscape */
  overflow: hidden;
  transition: max-height 600ms ease-in-out, opacity 400ms ease-in-out;
}

body.mode-detail .inset {
  max-height: 0;
  opacity: 0;
}


/* 1115-026: Mission page list styling */
.about-list {
  margin: 0.5rem 0 1.25rem 1.2rem;
  padding: 0;
}
.about-list li {
  margin-bottom: 0.35rem;
}


/* 1115-027: Mission page white background so artwork blends into field */
.mission-shell .about-inner {
  background: #ffffff;
  color: #07101b;
}

.mission-shell .about-copy h1,
.about-copy h2 {
  color: #07101b;
}


/* 1115-028: Detail inset navigation row above page images */
.detail-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 2px;
  margin: 0 0 16px 0;
}



.pilot-detail-nav { display:flex; justify-content:center; align-items:center; gap:0px; padding:0 0px; }
.detail-nav-btn {
  appearance: none;
  border: none;
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  cursor: pointer;
  background: #f3f3f3;
  color: #111;
  box-shadow: 0 2px 4px rgba(0,0,0,0.15);
  white-space: nowrap;
}

.detail-nav-btn:focus-visible {
  outline: 2px solid #c90b0b;
  outline-offset: 2px;
}

.detail-nav-btn.is-primary {
  background: #c90b0b;
  color: #fff;
}



/* 1115-030: Desktop layout fix for detail nav + image/text columns */
@media (min-width: 900px) {
  .about-inner .detail-nav {
    grid-column: 1 / -1;
    margin-bottom: 16px;
    justify-content: center;
  }
  .about-inner .about-visual {
    grid-column: 1;
  }
  .about-inner .about-copy {
    grid-column: 2;
  }
}



/* 1115-031/032: Ensure side-column buttons are tappable and above overlays on phones */
.side-column.show {
  pointer-events: auto;
  z-index: 9999 !important;
}



/* 1117-014: generic how-page white theme */
.how-page {
  background-color: #ffffff;
  color: #07101b;
}

/* 1117-014: Detail nav buttons match CTA buttons */
.detail-nav {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.detail-nav-btn {
  width: 100%;
  max-width: 150px;
  appearance: none;
  border: none;
  border-radius: 999px;
  background: #c90b0b;
  color: #fff;
  padding: 10px 16px;
  font-weight: 800;
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(0,0,0,0.25), 0 2px 0 rgba(255,255,255,0.35) inset;
  border-right: 3px solid #000;
  border-bottom: 3px solid #000;
  white-space: nowrap;
  font-size: 0.95rem;
  margin: 4px;
}

/* 1117-018: Small phone portrait – shrink nav buttons and keep them in one row */
@media (max-width: 600px) and (orientation: portrait) {
  .detail-nav {
    display: flex;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 4px;
  }

  .detail-nav-btn {
    width: 30%;
    max-width: none;
    font-size: 0.7rem;
    padding: 6px 4px;
  }
}

/* 1117-019: Ensure Tagline 2 sits above info buttons */
#tagline2 {
  z-index: 10000 !important;
}


/* 1118-015: Join Pilot inset form */
.pilot-shell .about-inner {
  display: flex;
  flex-direction: row;
  gap: 16px;
}
.pilot-shell .about-copy {
  flex: 2 1 0;
}
.pilot-heading {
  margin: 0 0 4px 0;
  font-size: 1rem;
  font-weight: 600;
}
.pilot-intro {
  margin: 0 0 8px 0;
}
.pilot-form {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.pilot-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.pilot-row-full {
  flex-direction: column;
}
.pilot-field {
  flex: 1 1 140px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.pilot-field label {
  font-weight: 600;
  font-size: 0.78rem;
}
.pilot-field input,
.pilot-field select,
.pilot-field textarea {
  padding: 4px 6px;
  border-radius: 4px;
  border: 1px solid rgba(0,0,0,0.28);
  font: inherit;
}
.pilot-field textarea {
  resize: vertical;
  min-height: 50px;
}
.pilot-submit {
  align-self: flex-start;
  padding: 5px 14px;
  border-radius: 999px;
  border: none;
  font-weight: 600;
  cursor: pointer;
  background: #c90b0b;
  color: #fff;
  font-size: 0.8rem;
}
.pilot-submit:hover {
  filter: brightness(1.05);
}
.pilot-status {
  font-size: 0.75rem;
  margin-top: 3px;
}
.pilot-debug {
  white-space: pre-wrap;
}


/* 1118-020: Mobile layout tweaks for CTA/Info inset */
@media (max-width: 700px) {
  .pilot-shell .about-inner {
    flex-direction: column;
  }

  .pilot-shell .detail-nav {
    justify-content: flex-start;
    margin-bottom: 8px;
  }

  .pilot-shell .detail-nav .detail-nav-btn {
    margin-bottom: 4px;
  }
}


/* 1118-022: Vertical CTA/info inset nav on non-mobile */
@media (min-width: 701px) {
  .pilot-shell .detail-nav {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .pilot-shell .detail-nav .detail-nav-btn {
    width: auto;
  }
}


/* 1118-023: Equal-width vertical nav buttons on non-mobile */
@media (min-width: 701px) {
  .pilot-shell .detail-nav .detail-nav-btn {
    width: 180px; /* fixed equal width for all buttons */
    text-align: left;
  }
}


/* 1118-024: Center text on vertical nav buttons (non-mobile) */
@media (min-width: 701px) {
  .pilot-shell .detail-nav .detail-nav-btn {
    text-align: center;
  }
}


/* 1118-025: Make submit button match vertical nav buttons on non-mobile */
@media (min-width: 701px) {
  .pilot-shell .pilot-submit {
    width: 180px;
    text-align: center;
    display: block;
    margin-top: 8px;
  }
}




  .pilot-detail-nav .detail-nav-btn {
    display: inline-block;
    width: 24vw;           /* four buttons ~ 88% of viewport width total */
    max-width: 90px;       /* keep them sane on slightly wider phones */
    min-width: 70px;
    text-align: center;
    white-space: nowrap;
    padding: 8px 4px;
    font-size: 0.75rem;
    border-radius: 999px;
  }
}

















/* 1119-021: iPhone portrait – cluster pilot nav buttons with tight spacing */
/* 1119-023: Revised so four buttons always fit inside inset on small iPhones */
@media (max-width: 430px) and (orientation: portrait) {

  /* Pilot-detail nav row inside inset */
  .detail-nav.pilot-detail-nav,
  .pilot-detail-nav-mobile {
    display: flex !important;
    flex-wrap: nowrap !important;
    width: 100% !important;           /* match inset width */
    margin: 0 !important;
    justify-content: flex-start !important; /* pack buttons to the left */
    column-gap: 2px !important;       /* small gap between buttons */
    row-gap: 0 !important;
  }

  /* The four buttons: Home / About / Mission / How It Works */
  .detail-nav.pilot-detail-nav .detail-nav-btn,
  .pilot-detail-nav-mobile .detail-nav-btn {
    flex: 1 1 0 !important;           /* equal slices of the row */
    min-width: 0 !important;
    width: auto !important;           /* stop using viewport width */
    margin: 0 !important;             /* no extra spacing */
    padding-left: 3px !important;
    padding-right: 3px !important;
    white-space: nowrap;
  }
}


/* 1119-022: Dedicated mobile nav row for pilot forms */
.pilot-detail-nav-mobile {
  display: none;
}

@media (max-width: 430px) and (orientation: portrait) {
  .pilot-detail-nav-wide {
    display: none;
  }
  .pilot-detail-nav-mobile {
    display: block;
    text-align: center;
    margin: 0 auto;
    white-space: nowrap;
  }
}


/* 1119-026 fine-tune pilot mobile nav */

@media (max-width: 430px) and (orientation: portrait) {
  /* Fine-tune pilot detail nav row on iPhone portrait */
  .detail-nav.pilot-detail-nav,
  .pilot-detail-nav-mobile {
    margin-left: -4px !important; /* nudge whole row left into unused space */
  }

  .detail-nav.pilot-detail-nav .detail-nav-btn,
  .pilot-detail-nav-mobile .detail-nav-btn {
    padding-left: 4px !important;
    padding-right: 4px !important;
  }

  .detail-nav.pilot-detail-nav .detail-nav-btn:last-child,
  .pilot-detail-nav-mobile .detail-nav-btn:last-child {
    font-size: 0.85rem !important;
    padding-left: 2px !important;
    padding-right: 2px !important;
  }
}


/* Special kerning + size for 'It' in How It Works on iPhone portrait */
@media (max-width:430px) and (orientation:portrait){
  .small-it{font-size:0.60em;letter-spacing:-0.7px;}
  .pilot-detail-nav-mobile .detail-nav-btn:last-child{
    letter-spacing:-0.3px !important;
  }
}


/* Pilot questionnaire art */
.pilot-shell .pilot-art{ width:100%; max-width:480px; margin:0 auto 16px auto; text-align:center; }
.pilot-shell .pilot-art img{ width:100%; height:auto; border-radius:18px; display:block; margin:0 auto; }

/* Stack art above buttons on small portrait phones */
@media (max-width:430px) and (orientation:portrait){
  .pilot-shell .pilot-art{ width:100%; max-width:480px; margin:0 auto 16px auto; text-align:center; }
  .pilot-shell .pilot-art img{ width:100%; height:auto; border-radius:18px; display:block; margin:0 auto; }
}


/* 1119-033: Stack pilot art above buttons */
.pilot-shell .about-inner {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Pilot art sizing */
.pilot-shell .pilot-art{
  width:70%;
  max-width:360px;
  margin:0 auto 12px auto;
  text-align:center;
}
.pilot-shell .pilot-art img{
  width:100%;
  height:auto;
  border-radius:18px;
  display:block;
  margin:0 auto;
}

/* On very small portrait phones, keep full width but stacked the same way */
@media (max-width:430px) and (orientation:portrait){
  .pilot-shell .pilot-art{
    width:80%;
    max-width:320px;
    margin:0 auto 10px auto;
  }
}







/* 1119-034: Two-column flex layout for pilot detail on larger screens */
@media (min-width: 768px) {
  .pilot-shell .about-inner {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 32px;
  }

  /* Left column: image + buttons stacked */
  .pilot-shell .pilot-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 0 0 40%;
    max-width: 380px;
  }

  .pilot-shell .pilot-art {
    width: 100%;
    margin: 0 0 8px 0;
    text-align: center;
  }

  .pilot-shell .detail-nav.pilot-detail-nav {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 0;
  }

  .pilot-shell .detail-nav.pilot-detail-nav .detail-nav-btn {
    width: auto;
    text-align: center;
  }

  /* Right column: heading + intro + form */
  .pilot-shell .about-copy {
    flex: 1 1 auto;
  }

  /* Hide mobile nav strip on larger screens */
  .pilot-shell .pilot-detail-nav-mobile {
    display: none !important;
  }
}

  /* Left column: image at top */
  .pilot-shell .pilot-art {
    grid-column: 1;
    width: 100%;
    max-width: 360px;
    margin: 0 0 12px 0;
    text-align: center;
  }

  /* Left column: horizontal nav directly under image */
  .pilot-shell .detail-nav.pilot-detail-nav {
    grid-column: 1;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 0 auto 0 auto;
  }

  .pilot-shell .detail-nav.pilot-detail-nav .detail-nav-btn {
    width: auto;
    text-align: center;
  }

  /* Right column: heading + intro + form */
  .pilot-shell .about-copy {
    grid-column: 2;
  }

  /* Hide mobile nav strip on larger screens */
  .pilot-shell .pilot-detail-nav-mobile {
    display: none !important;
  }
}


/* 1119-038: Horizontal pilot nav on small landscape screens */
@media (max-width: 767px) and (orientation: landscape) {
  .pilot-shell .detail-nav.pilot-detail-nav {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 4px;
    margin: 8px auto 0 auto;
  }
  .pilot-shell .detail-nav.pilot-detail-nav .detail-nav-btn {
    width: auto;
    text-align: center;
  }
}


/* Tighten gap between Address 2 and City/State row on wide screens */
.pilot-form .pilot-row-full {
  margin-bottom: 0.5rem;
}

/* Give the Press "Format" field more horizontal share than Story deadline
   so the label text does not wrap unnecessarily */
.pilot-form .pilot-row input[name="format"] {
  flex: 2 1 0;
}

.pilot-form .pilot-row input[name="story_timing"] {
  flex: 1 1 0;
}


/* Fine-tune vertical spacing for specific full-width rows */
.pilot-form .pilot-row-full.pilot-row-address2 {
  margin-bottom: 0.25rem; /* tighten gap below Address 2 */
}

.pilot-form .pilot-row-full.pilot-row-business-type {
  margin-bottom: 0.25rem; /* tighten gap between Business type and next row */
}

/* Pilot: give Venue type more width and shorten Capacity / Number of additional venues */
.pilot-form .pilot-row input[name="venue_type"] {
  flex: 2 1 0;
}

.pilot-form .pilot-row input[name="capacity"],
.pilot-form .pilot-row input[name="additional_venues"] {
  flex: 1 1 0;
  max-width: 8rem;
}

/* Dealer: widen Business type, narrow # of projects / # of employees */
.pilot-form .pilot-row input[name="business_type"] {
  flex: 2 1 0;
}

.pilot-form .pilot-row input[name="projects_per_year"],
.pilot-form .pilot-row input[name="employees_count"] {
  flex: 1 1 0;
  max-width: 8rem;
}

/* Press: widen Format, shrink Story deadline/timing further */
.pilot-form .pilot-row input[name="format"] {
  flex: 3 1 0;
}

.pilot-form .pilot-row input[name="story_timing"] {
  flex: 1 1 0;
  max-width: 8rem;
}

/* Investor: widen Investor type, shorten Typical check size */
.pilot-form .pilot-row input[name="investor_type"] {
  flex: 3 1 0;
}

.pilot-form .pilot-row input[name="check_size"] {
  flex: 1 1 0;
  max-width: 8rem;
}


/* Global form spacing: slightly tighter rows overall */
.pilot-form .pilot-row {
  margin-bottom: 0.75rem;
}

.pilot-form .pilot-row-full {
  margin-bottom: 0.75rem;
}

/* Extra-tight spacing for Address 2 and Pilot Business type rows */
.pilot-form .pilot-row-full.pilot-row-address2,
.pilot-form .pilot-row-full.pilot-row-business-type {
  margin-bottom: 0.25rem;
}

/* Pilot: capacity / additional venues / timeline equal-sized boxes */
.pilot-form .pilot-row input[name="capacity"],
.pilot-form .pilot-row input[name="additional_venues"],
.pilot-form .pilot-row input[name="timeline"] {
  flex: 1 1 0;
  max-width: none;
}

/* Dealer: Business type should dominate the row; projects/employees stay smaller but aligned */
.pilot-form .pilot-row input[name="business_type"] {
  flex: 3 1 0;
}

.pilot-form .pilot-row input[name="projects_per_year"],
.pilot-form .pilot-row input[name="employees_count"] {
  flex: 1 1 0;
  max-width: 9rem;
}

/* Press: increase Format enough to keep label on one line, Story deadline fills the rest */
.pilot-form .pilot-row input[name="format"] {
  flex: 4 1 0;
}

.pilot-form .pilot-row input[name="story_timing"] {
  flex: 2 1 0;
  max-width: none;
}

/* Investor: widen Investor type label, let Typical check size fill the remaining space */
.pilot-form .pilot-row input[name="investor_type"] {
  flex: 4 1 0;
}

.pilot-form .pilot-row input[name="check_size"] {
  flex: 2 1 0;
  max-width: none;
}


/* === Fine-tune CTA field widths based on live feedback === */

/* Dealer (Installer): let Business type dominate row, keep #projects/#employees smaller but aligned */
.pilot-form .pilot-row input[name="business_type"] {
  flex: 5 1 0;
}

.pilot-form .pilot-row input[name="projects_per_year"],
.pilot-form .pilot-row input[name="employees_count"] {
  flex: 1 1 0;
  max-width: 9rem;
}

/* Press: widen Format further so label ends with "TV)" on one line;
   Story deadline fills remaining space */
.pilot-form .pilot-row input[name="format"] {
  flex: 5 1 0;
}

.pilot-form .pilot-row input[name="story_timing"] {
  flex: 3 1 0;
  max-width: none;
}

/* Investor: widen Investor type label so "sole proprietor)" fits on one line,
   Typical check size then fills the rest */
.pilot-form .pilot-row input[name="investor_type"] {
  flex: 5 1 0;
}

.pilot-form .pilot-row input[name="check_size"] {
  flex: 3 1 0;
  max-width: none;
}

/* Address 2 gap: aggressively reduce spacing between Address 2 and City/State row */
.pilot-form .pilot-row,
.pilot-form .pilot-row-full {
  margin-bottom: 0.5rem;
}

.pilot-form .pilot-row-full.pilot-row-address2 {
  margin-bottom: 0;
}

.pilot-form .pilot-row-full.pilot-row-address2 + .pilot-row {
  margin-top: 0;
}


/* Tighten vertical space between the big details box and the Submit button */
.pilot-form .pilot-row.pilot-row-details {
  margin-bottom: 0;
}


/* 1122-006: tighten gap between details textarea and Submit button */
.pilot-form .pilot-row.pilot-row-details {
  margin-bottom: 4px;
}


/* Force submit button closer to textarea */
.pilot-form {
  gap: 2px !important;
}

.pilot-form .pilot-row.pilot-row-details {
  margin-bottom: 0px !important;
  padding-bottom: 0px !important;
}

.pilot-submit {
  margin-top: 2px !important;
}


/* 1122-009: Reset Dealer business/projects/employees row to three equal fields */
.pilot-form .pilot-row.dealer-row-reset .pilot-field {
  flex: 1 1 0;
}

.pilot-form .pilot-row.dealer-row-reset .pilot-field input {
  width: 100%;
  max-width: none;
}


/* 1122-010: adjust Dealer row widths */
.pilot-form .dealer-row-reset .pilot-field:nth-child(1) {
  flex: 3 1 0;
}
.pilot-form .dealer-row-reset .pilot-field:nth-child(2),
.pilot-form .dealer-row-reset .pilot-field:nth-child(3) {
  flex: 1 1 0;
}


/* 1122-011: adjust Press row widths */
.pilot-form .press-row-reset .pilot-field:nth-child(1) { flex: 2 1 0; }
.pilot-form .press-row-reset .pilot-field:nth-child(2) { flex: 3 1 0; }
.pilot-form .press-row-reset .pilot-field:nth-child(3) { flex: 2 1 0; }


/* 1122-012: adjust Press row widths (story reduced, format increased) */
.pilot-form .press-row-reset .pilot-field:nth-child(1) { flex: 2 1 0; }  /* outlet */
.pilot-form .press-row-reset .pilot-field:nth-child(2) { flex: 4 1 0; }  /* format */
.pilot-form .press-row-reset .pilot-field:nth-child(3) { flex: 1 1 0; }  /* story */


/* 1122-013: widen Press 'Format' field further, shrink Outlet and Story */
.pilot-form .press-row-reset .pilot-field:nth-child(1) {
  flex: 1 1 0;
}

.pilot-form .press-row-reset .pilot-field:nth-child(2) {
  flex: 6 1 0;
}

.pilot-form .press-row-reset .pilot-field:nth-child(3) {
  flex: 1 1 0;
}


/* 1122-014: Apply width tuning to the correct Press metadata row (Outlet / Format / Story) */
.pilot-form .press-metadata-row .pilot-field:nth-child(1) {
  flex: 1 1 0;
}

.pilot-form .press-metadata-row .pilot-field:nth-child(2) {
  flex: 7 1 0;
}

.pilot-form .press-metadata-row .pilot-field:nth-child(3) {
  flex: 1 1 0;
}


/* 1122-015: Investor row widths - widen Investor type, shrink Typical check size */
.pilot-form .investor-row-reset .pilot-field:nth-child(1) {
  flex: 3 1 0;
}
.pilot-form .investor-row-reset .pilot-field:nth-child(2) {
  flex: 1 1 0;
}


/* 1122-016: Investor form uses custom details+checkbox+submit; hide generic details row */
#investor-lead-form .pilot-row-details {
  display: none;
}


/* How It Works equation image above copy */
.about-copy img.how-equation {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 0 16px 0;
}
