/* News & announcements: a full-width navy section with a swipeable slider.
   Same navy / blue / teal system as the rest of the site; raised navy cards, white only for product UI. */
.hf-news-section { position: relative; padding: 96px 0; background: #0e1624; color: #fff; scroll-margin-top: var(--hf-anchor-offset, 96px); border-top: 1px solid rgba(203,213,225,.12); }
.hf-news-section *, .hf-lightbox * { box-sizing: border-box; }
.hf-news-shell { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 32px; }
.hf-sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* Heading + controls */
.hf-news-head { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 24px 32px; margin-bottom: 36px; }
.hf-news-title-block { max-width: 680px; }
.hf-news-section h2 { margin: 0; color: #fff; font-size: clamp(32px,3.45vw,48px); font-weight: 750; letter-spacing: -.04em; line-height: 1.08; text-wrap: balance; }
.hf-news-section h2 span { color: #43c7cb; }
.hf-news-sub { margin: 18px 0 0; color: #cbd5e1; font-size: 16px; line-height: 1.75; }
.hf-news-controls { display: flex; align-items: center; gap: 14px; }
.hf-news-tabs { display: inline-flex; padding: 4px; border: 1px solid rgba(203,213,225,.2); border-radius: 12px; background: #172438; }
.hf-news-tab { min-height: 40px; padding: 0 16px; border: 0; border-radius: 8px; background: transparent; color: #cbd5e1; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; transition: background .18s, color .18s; }
.hf-news-tab:hover { color: #fff; }
.hf-news-tab[aria-selected="true"] { background: #fff; color: #0e1624; }
.hf-news-pause { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid rgba(203,213,225,.28); border-radius: 50%; background: transparent; color: #fff; cursor: pointer; transition: background .18s, border-color .18s; }
.hf-news-pause:hover { background: #006fd7; border-color: #006fd7; }
.hf-news-pause .hf-icon-play, .hf-news-pause[aria-pressed="true"] .hf-icon-pause { display: none; }
.hf-news-pause[aria-pressed="true"] .hf-icon-play { display: block; }
.hf-news-pause[hidden] { display: none; }
/* A thin progress line under the active tab shows when the next slide is coming. */
.hf-news-tab { position: relative; overflow: hidden; }
.hf-news-tabs[data-auto="on"] .hf-news-tab[aria-selected="true"]::after { content: ''; position: absolute; left: 0; bottom: 0; height: 3px; background: #006fd7; animation: hf-news-progress var(--hf-dur, 8s) linear forwards; }
@keyframes hf-news-progress { from { width: 0; } to { width: 100%; } }
.hf-news-section button:focus-visible, .hf-news-section a:focus-visible, .hf-slider-viewport:focus-visible, .hf-lightbox button:focus-visible { outline: 3px solid #43c7cb; outline-offset: 3px; }
.hf-slider-viewport:focus-visible { outline-offset: 6px; border-radius: 22px; }

/* Slider */
.hf-slider-viewport { overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; -ms-overflow-style: none; overscroll-behavior-x: contain; cursor: grab; transition: height .35s ease; }
.hf-slider-viewport::-webkit-scrollbar { display: none; }
.hf-slider-viewport.is-dragging, .hf-slider-viewport.is-animating { scroll-snap-type: none; cursor: grabbing; user-select: none; }
.hf-slider-viewport.is-dragging * { cursor: grabbing; }
.hf-slider-cap { flex: 0 0 calc(6% - 20px); height: 1px; }
.hf-slider-track { position: relative; display: flex; align-items: flex-start; gap: 20px; }
.hf-slide { flex: 0 0 88%; min-width: 0; scroll-snap-align: center; scroll-snap-stop: always; display: grid; grid-template-columns: minmax(0,.82fr) minmax(0,1.18fr); align-items: center; gap: 48px; padding: 48px; border: 1px solid rgba(203,213,225,.16); border-radius: 22px; background: #172438; }
.hf-slide--podcast { grid-template-columns: minmax(0,1.1fr) minmax(0,.9fr); }
.hf-slide--portal { grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr); align-items: start; }
.hf-slide-copy, .hf-slide-media { min-width: 0; }
.hf-slide h3 { margin: 0 0 16px; color: #fff; font-size: clamp(26px,2.7vw,36px); font-weight: 750; letter-spacing: -.035em; line-height: 1.15; text-wrap: balance; }
.hf-slide h3 span { color: #43c7cb; }
.hf-slide-copy > p:not(.hf-news-meta):not(.hf-portal-lede):not(.hf-portal-fit) { margin: 0; color: #cbd5e1; font-size: 15px; line-height: 1.75; }

/* Shared bits */
.hf-news-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0 0 16px; color: #b6c3d3; font-size: 12px; line-height: 1.5; }
.hf-news-tag { display: inline-flex; align-items: center; padding: 4px 9px; border: 1px solid rgba(67,199,203,.45); border-radius: 999px; color: #43c7cb; font-size: 10px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.hf-news-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 22px; margin-top: 26px; }
.hf-news-btn { display: inline-flex; align-items: center; justify-content: space-between; gap: 22px; min-height: 48px; padding: 12px 20px; border-radius: 8px; background: #006fd7; color: #fff; font-size: 14px; font-weight: 700; line-height: 1.5; text-decoration: none; box-shadow: 0 6px 16px rgba(0,111,215,.14); transition: background .18s; }
.hf-news-btn:hover { background: #005eb8; }
.hf-news-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: #43c7cb; font-size: 14px; font-weight: 700; text-decoration: none; }
.hf-news-link:hover { color: #fff; }

/* Announcement video */
.hf-video { overflow: hidden; width: 100%; margin: 0 auto; border: 1px solid rgba(203,213,225,.18); border-radius: 12px; background: #000; box-shadow: 0 16px 40px rgba(0,0,0,.28); aspect-ratio: 16 / 9; }
.hf-video video { display: block; width: 100%; height: 100%; background: #000; object-fit: contain; }
.hf-video[data-orientation="vertical"] { width: min(100%, 320px); aspect-ratio: 9 / 16; }

/* Podcast */
.hf-yt, .hf-yt-frame { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; border: 1px solid rgba(203,213,225,.18); border-radius: 12px; background: linear-gradient(135deg,#1d2f48,#0e1624); }
.hf-yt { padding: 0; cursor: pointer; color: #fff; }
.hf-yt img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.hf-yt::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg,rgba(14,22,36,.55),rgba(14,22,36,.05) 55%); }
.hf-yt:hover img { transform: scale(1.025); }
.hf-yt-play { position: absolute; z-index: 1; top: 50%; left: 50%; display: grid; place-items: center; width: 68px; height: 68px; padding-left: 4px; border-radius: 50%; background: #006fd7; color: #fff; box-shadow: 0 0 0 6px rgba(255,255,255,.28), 0 10px 28px rgba(0,0,0,.35); transform: translate(-50%,-50%); transition: background .18s, transform .18s; }
.hf-yt:hover .hf-yt-play { background: #005eb8; transform: translate(-50%,-50%) scale(1.06); }
.hf-yt-label { position: absolute; z-index: 1; left: 14px; bottom: 12px; padding: 5px 10px; border-radius: 6px; background: rgba(14,22,36,.78); color: #fff; font-size: 11px; font-weight: 650; line-height: 1.4; }

/* Portal: coming soon */
.hf-portal-brand { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px; margin-bottom: 24px; }
.hf-portal-brand img { display: block; width: 44px; height: 44px; border-radius: 11px; }
.hf-portal-brand-text { display: grid; line-height: 1.2; }
.hf-portal-brand-text b { color: #fff; font-size: 16px; font-weight: 750; letter-spacing: -.01em; }
.hf-portal-brand-text small { color: #81c2ff; font-size: 10px; font-weight: 750; letter-spacing: .18em; text-transform: uppercase; }
.hf-portal-badge { margin-left: auto; padding: 6px 12px; border: 1px solid rgba(67,199,203,.5); border-radius: 999px; background: rgba(67,199,203,.1); color: #43c7cb; font-size: 11px; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.hf-portal-lede { margin: 0 0 22px; color: #cbd5e1; font-size: 15px; line-height: 1.75; }
.hf-portal-list { display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; }
.hf-portal-list li { display: grid; grid-template-columns: 26px minmax(0,1fr); align-items: start; gap: 12px; color: #cbd5e1; font-size: 14px; line-height: 1.7; }
.hf-portal-list strong { color: #fff; }
.hf-portal-list b { color: #43c7cb; font-size: 11px; font-weight: 700; line-height: 1.9; }
.hf-portal-fit { margin: 24px 0 0; padding: 14px 16px; border: 1px solid rgba(67,199,203,.3); border-radius: 10px; background: rgba(67,199,203,.07); color: #cbd5e1; font-size: 13px; line-height: 1.7; }
.hf-portal-fit strong { color: #fff; }
.hf-portal-preview { min-width: 0; padding: 18px; border: 1px solid rgba(203,213,225,.16); border-radius: 18px; background: #0e1624; }
.hf-portal-preview-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; margin-bottom: 14px; }
.hf-portal-preview-label { color: #43c7cb; font-size: 10px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.hf-portal-tabs { display: inline-flex; padding: 3px; border: 1px solid rgba(203,213,225,.22); border-radius: 9px; background: #172438; }
.hf-portal-tabs button { min-height: 36px; padding: 0 14px; border: 0; border-radius: 6px; background: transparent; color: #cbd5e1; font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; }
.hf-portal-tabs button[aria-selected="true"] { background: #fff; color: #0e1624; }
.hf-portal-frame { overflow: hidden; border: 1px solid rgba(203,213,225,.2); border-radius: 12px; background: #fff; }
.hf-portal-frame [hidden] { display: none; }
.hf-zoom { position: relative; display: block; width: 100%; padding: 0; border: 0; background: #eef3f9; cursor: zoom-in; }
.hf-zoom img { display: block; width: 100%; height: auto; }
#hf-portal-panel-mobile .hf-zoom img { width: auto; max-width: 100%; max-height: 420px; margin: 0 auto; }
.hf-zoom-hint { position: absolute; right: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 7px; min-height: 34px; padding: 0 12px; border-radius: 999px; background: rgba(14,22,36,.88); color: #fff; font-size: 12px; font-weight: 700; line-height: 1; box-shadow: 0 6px 16px rgba(0,0,0,.25); transition: background .18s; }
.hf-zoom:hover .hf-zoom-hint { background: #006fd7; }
.hf-portal-note { margin: 14px 0 0; color: #b6c3d3; font-size: 11px; line-height: 1.7; }

/* Zoom viewer */
.hf-lightbox { width: 100vw; max-width: none; height: 100vh; height: 100dvh; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(8,13,22,.97); color: #fff; }
.hf-lightbox[open] { display: flex; flex-direction: column; }
.hf-lightbox::backdrop { background: rgba(8,13,22,.9); }
.hf-lightbox-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px; border-bottom: 1px solid rgba(203,213,225,.16); }
.hf-lightbox-title { color: #cbd5e1; font-size: 13px; font-weight: 650; }
.hf-lightbox-tools { display: flex; align-items: center; gap: 8px; }
.hf-lightbox-tools button { display: grid; place-items: center; min-width: 44px; min-height: 44px; padding: 0 12px; border: 1px solid rgba(203,213,225,.28); border-radius: 10px; background: #172438; color: #fff; font: inherit; font-size: 18px; font-weight: 700; line-height: 1; cursor: pointer; }
.hf-lightbox-tools button:hover { background: #006fd7; border-color: #006fd7; }
.hf-lightbox-tools .hf-lightbox-fit { font-size: 13px; }
.hf-lightbox-level { min-width: 48px; color: #cbd5e1; font-size: 12px; font-weight: 700; text-align: center; }
.hf-lightbox-stage { flex: 1 1 auto; min-height: 0; display: flex; overflow: auto; padding: 12px; touch-action: pan-x pan-y; overscroll-behavior: contain; }
.hf-lightbox-stage img { display: block; flex: none; margin: auto; max-width: none; height: auto; border-radius: 8px; background: #fff; cursor: zoom-in; user-select: none; }
.hf-lightbox-stage.is-zoomed img { cursor: grab; }
.hf-lightbox-help { margin: 0; padding: 8px 16px 12px; color: #9fb0c4; font-size: 12px; text-align: center; }

/* Responsive */
@media (max-width: 1100px) { .hf-slide { gap: 34px; padding: 36px; } }
@media (max-width: 900px) {
  .hf-slide, .hf-slide--podcast, .hf-slide--portal { grid-template-columns: 1fr; }
  .hf-slide-media { order: -1; }
  .hf-slide--portal .hf-slide-copy { order: 0; }
  .hf-portal-preview { order: -1; }
  .hf-news-head { align-items: flex-start; }
}
@media (max-width: 760px) {
  .hf-news-section { padding: 72px 0; }
  .hf-news-shell { padding: 0 18px; }
  .hf-news-sub { font-size: 15px; }
  .hf-news-head { margin-bottom: 26px; }
  .hf-news-controls { width: 100%; }
  .hf-news-tabs { flex: 1 1 auto; }
  .hf-news-tab { flex: 1 1 0; padding: 0 8px; }
  .hf-slider-track { gap: 12px; }
  .hf-slide { flex-basis: 84%; }
  .hf-slider-cap { flex-basis: calc(8% - 12px); }
  .hf-zoom-hint span:last-child { display: inline; }
}
@media (max-width: 520px) {
  .hf-slide { padding: 20px; gap: 24px; border-radius: 16px; }
  .hf-slide h3 { font-size: 24px; }
  .hf-news-btn { width: 100%; }
  .hf-portal-badge { margin-left: 0; }
  .hf-portal-preview { padding: 12px; border-radius: 14px; }
  .hf-yt-play { width: 56px; height: 56px; }
  .hf-lightbox-title { display: none; }
  .hf-lightbox-bar { justify-content: flex-end; }
}
@media (prefers-reduced-motion: reduce) {
  .hf-slider-viewport { transition: none; }
  .hf-yt img, .hf-yt-play, .hf-news-btn, .hf-news-tab, .hf-news-pause { transition: none; }
  .hf-yt:hover img { transform: none; }
  .hf-yt:hover .hf-yt-play { transform: translate(-50%,-50%); }
}

/* On phones the floating booking control would cover the video, podcast and preview controls.
   Hide it while News is the active section (the header menu still has booking). */
@media (max-width: 760px) {
  body:has(header[data-hf-active-section="news"]) button[aria-label="Book a Discovery Call"] { visibility: hidden; pointer-events: none; }
}

/* The card peeking in at the side is clickable: it looks a little dimmer and shows a pointer. */
.hf-slide { transition: opacity .3s ease; }
.hf-slide:not(.is-active) { opacity: .7; cursor: pointer; }
.hf-slide:not(.is-active):hover { opacity: .9; }
.hf-slide:not(.is-active) * { cursor: pointer; }
@media (prefers-reduced-motion: reduce) { .hf-slide { transition: none; } }
