/* Refinements from the 24 Nov review: partner logos, three-questions intro, hero play/pause, mobile fixes. Loaded after pages.css. */
/* Partner logos: crisp vector files, shown in the same black as the rest */
.cred-logos img.mono, .vc-logos img.mono { filter: brightness(0); }
.cred-logos img.lg-cisco { height: 30px; }
.cred-logos img.lg-intel { height: 25px; }
.cred-logos img.lg-akamai { height: 30px; }
.vc-logos .prog { display: inline-flex; align-items: center; gap: 9px; }
.vc-logos .prog span { font: 600 15px/1 var(--sans); letter-spacing: -0.01em; color: #08081C; white-space: nowrap; }
.vc-logos img.lg-nvidia { height: 19px; }
.vc-logos img.lg-gcloud, .vc-logos img.lg-aws { height: 24px; }
@media (max-width: 760px) {
  .cred-logos img.lg-cisco, .cred-logos img.lg-akamai { height: 24px; }
  .cred-logos img.lg-intel { height: 20px; }
  .vc-logos img.lg-nvidia { height: 16px; }
  .vc-logos img.lg-gcloud, .vc-logos img.lg-aws { height: 20px; }
  .vc-logos .prog span { font-size: 13.5px; }
}

/* Three questions: a proper introduction to the cards, not a stray line */
.q3-lead { margin: 0 0 clamp(20px, 3vw, 30px) !important; font-size: clamp(1.35rem, 2.3vw, 1.9rem) !important; font-weight: 700 !important; line-height: 1.15 !important; letter-spacing: -0.035em !important; color: #08081C !important; }

/* Hero play / pause: scroll up pauses, scroll down continues, a click toggles. The button is kept for screen readers only. */
.stage2 .sv { cursor: pointer; }
.hero-pp { position: absolute; right: 16px; bottom: 16px; z-index: 6; display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px 9px 12px; border: 1px solid rgba(255,255,255,0.3); border-radius: 999px; background: rgba(8,8,28,0.55); color: #FFFFFF; font: 600 12.5px/1 var(--sans); letter-spacing: 0.01em; cursor: pointer; pointer-events: auto; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.hero-pp:hover { background: rgba(8,8,28,0.78); }
.hero-pp:focus-visible { outline: 2px solid #95D3FD; outline-offset: 2px; }
.hero-pp .pp-ic { position: relative; width: 10px; height: 12px; }
.hero-pp .pp-ic::before, .hero-pp .pp-ic::after { content: ""; position: absolute; top: 0; width: 3px; height: 12px; border-radius: 1px; background: currentColor; }
.hero-pp .pp-ic::before { left: 1px; }
.hero-pp .pp-ic::after { right: 1px; }
.hero-pp.is-paused .pp-ic::before { left: 1px; width: 0; height: 0; border-radius: 0; background: none; border-style: solid; border-width: 6px 0 6px 10px; border-color: transparent transparent transparent currentColor; }
.hero-pp.is-paused .pp-ic::after { display: none; }
@media (max-width: 760px) { .hero-pp { right: 10px; bottom: 10px; padding: 7px 11px 7px 10px; font-size: 11.5px; } }

/* Mobile: announcement bar stays on one line */
@media (max-width: 640px) {
  .bar { padding: 0 12px; }
  .bar > span:not(.bar-tag) { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
}

/* Mobile: Adrian OSS numbers and code sample fit narrow phones */
#ossCode { white-space: pre-wrap; overflow-wrap: anywhere; }
.code-card { min-width: 0; max-width: 100%; }
@media (max-width: 480px) {
  .stats4 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important; }
  .stats4 > div { padding: 24px 14px 22px 0 !important; }
  .stats4 > div:nth-child(even) { padding-left: 16px !important; }
  .stats4 b { font-size: clamp(1.6rem, 7.5vw, 2rem) !important; }
}

/* Mobile: legal tables scroll inside their own box; long links wrap */
.legal-body table { display: block; max-width: 100%; overflow-x: auto; }
.legal-table table { display: table; }
.legal-body a { overflow-wrap: anywhere; }
/* Logo rows: tighter spacing so each row fits on one line on desktop; balance heavy wordmarks */
.cred-logos.cred-trusted { gap: 22px 34px; }
.vc-logos { gap: 20px 36px; }
.vc-logos img.lg-nvidia { height: 16px; }
@media (max-width: 760px) { .cred-logos.cred-trusted { gap: 18px 26px; } .cred-logos img.lg-intel { height: 17px; } .vc-logos img.lg-nvidia { height: 14px; } }
.hero-pp { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0 0 0 0) !important; white-space: nowrap !important; border: 0 !important; }
.hero-pp:focus-visible { width: auto !important; height: auto !important; padding: 9px 14px 9px 12px !important; margin: 0 !important; overflow: visible !important; clip: auto !important; }

/* Mobile menu: the header lets taps through to the hero; the open menu must not */
.site-header .mnav, .site-header .mnav * { pointer-events: auto; }

/* "In good company": each logo row is one line that moves sideways (set up in Credentials.astro) */
.creds .cred-row > *, .creds .cred-backers, .creds .cred-recog { min-width: 0; max-width: 100%; }
.creds .marq { width: 100%; min-width: 0; overflow: hidden; padding: 6px 0; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%); }
.creds .marq-track { display: flex !important; flex-wrap: nowrap !important; align-items: center; width: max-content; gap: 0 !important; margin: 0 !important; animation: credmarq var(--marq-dur, 30s) linear infinite; will-change: transform; }
.creds .marq-rev .marq-track { animation-direction: reverse; }
.creds .marq-track > li { flex: 0 0 auto; padding-right: 56px; white-space: nowrap; }
.creds .marq:hover .marq-track, .creds .marq:active .marq-track { animation-play-state: paused; }
.creds .marq-track.award-logos > li { width: max-content !important; max-width: none !important; flex-direction: row !important; align-items: center !important; gap: 10px !important; }
.creds .marq-track.award-logos > li > span { max-width: none !important; white-space: nowrap !important; }
@keyframes credmarq { from { transform: translateX(0); } to { transform: translateX(calc(-1 * var(--marq-shift, 50%))); } }
@media (max-width: 760px) {
  .creds .marq { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 10%, #000 90%, transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 10%, #000 90%, transparent 100%); padding: 4px 0; }
  .creds .marq-track > li { padding-right: 30px; }
  .creds .cred-row { grid-template-columns: minmax(0, 1fr) !important; padding: 18px 0; gap: 12px; }
}

/* Phone hero: headline, subheading, then the video, then the buttons */
@media (max-width: 760px), (prefers-reduced-motion: reduce) {
  .stage.stage2 { display: flex !important; flex-direction: column; }
  .stage2 .chapters, .stage.stage2 .chapters .ch0, .stage.stage2 .chapters .ch0 .ch0-side { display: contents !important; }
  .stage.stage2 .chapters .ch0 h1 { order: 1; margin: 28px 20px 14px; }
  .stage.stage2 .chapters .ch0 .ch-text { order: 2; margin: 0 20px 22px; }
  .stage2 .sv { order: 3; }
  .stage.stage2 .chapters .ch0 .cta-row { order: 4; margin: 24px 20px 40px; }
}

/* Partner logos from the design mock (white artwork, shown in black on this light section), sized to balance by eye.
   !important is needed to override the blanket 24px logo height in pages.css. */
.cred-logos img.lg2-cisco { height: 28px !important; }
.cred-logos img.lg2-intel { height: 32px !important; }
.cred-logos img.lg2-hmg { height: 36px !important; }
.cred-logos img.lg2-lasr { height: 18px !important; }
.bbc-line .cred-logos img.lg2-bbc { height: 26px !important; }
.vc-logos img.lg2-nvidia { height: 34px !important; }
.vc-logos img.lg2-aws { height: 32px !important; }
.vc-logos img.lg2-gcloud { height: 30px !important; }
@media (max-width: 760px) {
  .cred-logos img.lg2-cisco { height: 22px !important; }
  .cred-logos img.lg2-intel { height: 25px !important; }
  .cred-logos img.lg2-hmg { height: 28px !important; }
  .cred-logos img.lg2-lasr { height: 14px !important; }
  .bbc-line .cred-logos img.lg2-bbc { height: 22px !important; }
  .vc-logos img.lg2-nvidia { height: 26px !important; }
  .vc-logos img.lg2-aws { height: 25px !important; }
  .vc-logos img.lg2-gcloud { height: 23px !important; }
}

/* Announcement bar: minimal and light; the whole bar links to Adrian */
.site-header .bar.bar2 { display: flex; justify-content: center; align-items: center; gap: 12px; height: 40px; padding: 0 16px; text-decoration: none; color: #3A3F58 !important; background: #FFFFFF !important; border-bottom: 1px solid rgba(8,8,28,0.08) !important; box-shadow: 0 1px 0 rgba(8,8,28,0.02); -webkit-backdrop-filter: none !important; backdrop-filter: none !important; font-size: 14px; letter-spacing: -0.005em; }
.site-header .bar.bar2 .bar-tag { display: inline-flex; align-items: center; height: 21px; padding: 0 8px; border-radius: 999px; background: #08081C !important; border: 1px solid #08081C; color: #FFFFFF !important; font-size: 10.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.site-header .bar.bar2 .bar-text { color: #3A3F58; }
.site-header .bar.bar2 .bar-cta { display: inline-flex; align-items: center; gap: 6px; color: #08081C; font-weight: 700; }
.site-header .bar.bar2 .bar-arrow { display: inline-block; transition: transform .2s ease; }
.site-header .bar.bar2:hover .bar-cta-words { text-decoration: underline; text-underline-offset: 4px; }
.site-header .bar.bar2:hover .bar-arrow { transform: translateX(3px); }
.site-header .bar.bar2:focus-visible { outline: 2px solid #2F5BFF; outline-offset: -2px; }
@media (max-width: 640px) {
  .site-header .bar.bar2 { gap: 8px; padding: 0 14px; font-size: 12.5px; }
  .site-header .bar.bar2 .bar-cta-words { display: none; }
  .site-header .bar.bar2 .bar-text { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
}
@media (max-width: 380px) { .site-header .bar.bar2 .bar-tag { display: none; } }

/* Menu bar over dark sections: a light dark-glass background instead of a clear one, so its white text stays readable
   even where a dark section ends and white begins behind it */
.site-header.scrolled.on-dark .nav { background: rgba(8,8,12,0.6) !important; border-color: rgba(255,255,255,0.16) !important; -webkit-backdrop-filter: blur(14px) saturate(140%) !important; backdrop-filter: blur(14px) saturate(140%) !important; }

/* Collapsed (scrolled) menu bar sits closer to the top; the announcement bar tucks away once the page scrolls */
.site-header.scrolled .nav { margin-top: 10px !important; }
@media (max-width: 760px) { .site-header.scrolled .nav { margin-top: 8px !important; } }
.site-header.scrolled .bar.bar2 { height: 0 !important; opacity: 0; border-bottom-width: 0 !important; overflow: hidden; pointer-events: none; }

/* Demo film: a frosted-glass frame over a soft, tight glow (glow, then glass, then the video) */
.how2-film { position: relative; isolation: isolate; padding: clamp(6px, 0.8vw, 10px); border-radius: 12px; }
.how2-film::before { content: ""; position: absolute; inset: -14px -16px; z-index: -2; border-radius: 22px; pointer-events: none; background: radial-gradient(38% 55% at 6% 16%, rgba(149,211,253,0.45), transparent 70%), radial-gradient(42% 58% at 94% 86%, rgba(47,91,255,0.18), transparent 72%), radial-gradient(30% 42% at 74% 6%, rgba(86,194,176,0.25), transparent 70%); filter: blur(18px); }
.how2-film::after { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none; background: linear-gradient(145deg, rgba(255,255,255,0.74) 0%, rgba(255,255,255,0.38) 55%, rgba(255,255,255,0.62) 100%); border: 1px solid rgba(255,255,255,0.9); box-shadow: inset 0 1px 0 rgba(255,255,255,0.95), 0 0 0 1px rgba(8,8,28,0.05), 0 24px 50px -34px rgba(8,8,28,0.32); -webkit-backdrop-filter: blur(18px) saturate(160%); backdrop-filter: blur(18px) saturate(160%); }
.how2-film video { position: relative; border-radius: 6px !important; border: 1px solid rgba(8,8,28,0.07) !important; }
@media (max-width: 760px) {
  .how2-film { padding: 5px; border-radius: 10px; }
  .how2-film::before { inset: -8px -4px; filter: blur(12px); }
  .how2-film video { border-radius: 5px !important; }
}

/* Contact form: stop the browser's autofill tint (grey/blue box) covering fields it has filled in */
#contactForm input:-webkit-autofill, #contactForm input:-webkit-autofill:hover, #contactForm input:-webkit-autofill:focus, #contactForm textarea:-webkit-autofill { -webkit-box-shadow: 0 0 0 1000px #FFFFFF inset !important; box-shadow: 0 0 0 1000px #FFFFFF inset !important; -webkit-text-fill-color: #0A0A0A !important; caret-color: #0A0A0A; transition: background-color 9999s ease-out 0s; }
#contactForm input:autofill, #contactForm textarea:autofill { box-shadow: 0 0 0 1000px #FFFFFF inset !important; -webkit-text-fill-color: #0A0A0A !important; }
