/* Shared GEO layout system: one desktop composition, three responsive tiers. */
:root {
  --container-max: 1400px;
  --container-padding: 40px;
}

html,
body {
  background: #f5faff;
}

body {
  background-image: linear-gradient(118deg, #f8f9ff 0%, #f3f9fd 48%, #f7fbf8 100%);
  background-attachment: fixed;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-padding) !important;
}

.hero-stage-container {
  position: relative;
}

.hero-stage-container .visual-stage {
  width: 100%;
  max-width: none;
}

.hero,
.detail-zone,
.device-access-section,
.environment-section,
.capability-section,
.industry-applications-section,
.security-performance-section,
.credentials-section,
.partners-section,
.closing-section {
  background: transparent;
  border-top: 0;
  border-bottom: 0;
}

.detail-zone,
.device-access-section,
.environment-section,
.capability-section,
.industry-applications-section,
.security-performance-section,
.partners-section,
.closing-section {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.credentials-page-shell.container {
  padding-left: var(--container-padding) !important;
  padding-right: var(--container-padding) !important;
}

.credentials-section.credentials-page-section.container {
  width: 100% !important;
  max-width: var(--container-max) !important;
  margin-right: auto !important;
  margin-left: auto !important;
}

/* Remove section separators and section-level background ornaments. */
.device-access-section::before,
.device-access-section::after,
.device-access-shell::before,
.environment-section::before,
.capability-section::before,
.industry-applications-section::before,
.industry-applications-section::after,
.credentials-section::before,
.credentials-section::after,
.partners-section::before,
.closing-section::before,
.closing-shell::before {
  display: none;
  content: none;
}

.device-stage.device-video-slot::before,
.device-stage.device-video-slot::after,
.platform-product-visual::before {
  display: none;
  content: none;
}

.platform-visual-orbit,
.closing-scene {
  display: none;
}

/* Navigation occupies the same 1400px responsive canvas as the hero. */
.responsive-nav {
  display: none;
}

.responsive-hero-copy,
.responsive-solutions-label,
.responsive-hero-art {
  display: none;
}

.responsive-nav summary {
  list-style: none;
}

.responsive-nav summary::-webkit-details-marker {
  display: none;
}

/* Desktop hero: rebuild the reference composition from real, independent
   page elements. The supplied homepage artwork remains a responsive-only
   reference asset and is never a visible desktop layer. */
@media (min-width: 1025px) {
  .hero-stage-container .visual-stage {
    height: clamp(735px, 57vw, 800px);
    aspect-ratio: auto;
    overflow: visible;
    background:
      radial-gradient(circle at 76% 36%, rgba(0, 204, 232, .11), transparent 30%),
      radial-gradient(circle at 93% 59%, rgba(124, 234, 44, .09), transparent 23%),
      linear-gradient(118deg, rgba(249, 250, 255, .82), rgba(241, 249, 253, .76) 51%, rgba(248, 252, 249, .82));
  }

  .hero-stage-container .base-visual {
    display: none !important;
  }

  .topline-cleanup,
  .header-cleanup,
  .cta-cleanup,
  .cards-cleanup {
    display: none !important;
  }

  .brand-overlay {
    top: 2.5%;
    left: 0;
    width: clamp(174px, 15.2%, 204px);
  }

  .brand-overlay img,
  .primary-nav-overlay a,
  .cta-overlay .hero-button {
    opacity: 1 !important;
  }

  .primary-nav-overlay {
    top: 1.5%;
    right: 0;
    gap: clamp(25px, 2.15vw, 38px);
    height: 9.5%;
  }

  .primary-nav-overlay a {
    font-size: clamp(15px, 1.2vw, 19px);
    font-weight: 560;
  }

  .primary-nav-overlay .nav-contact {
    min-height: 50px;
    padding-inline: clamp(22px, 2vw, 30px);
    border-width: 1.5px;
  }

  .responsive-hero-copy {
    position: absolute;
    z-index: 6;
    top: 15.5%;
    left: 0;
    display: block;
    width: 46%;
    color: #061c43;
  }

  .responsive-hero-copy h1 {
    margin: 0;
    font-size: clamp(49px, 4vw, 64px);
    line-height: .98;
    letter-spacing: -.054em;
    font-weight: 780;
  }

  .responsive-hero-copy p {
    width: min(100%, 540px);
    margin: 10px 0 0;
    color: #29445f;
    font-size: clamp(14px, 1.28vw, 18px);
    line-height: 1.38;
  }

  .responsive-hero-copy .responsive-hero-lead {
    margin-top: 13px;
    color: #102d50;
    font-size: clamp(21px, 1.8vw, 27px);
    line-height: 1.25;
    font-weight: 520;
  }

  .hero-intro-visual {
    z-index: 2;
    top: 12.2%;
    right: -2.2%;
    display: block;
    width: 65.8%;
    height: auto;
    aspect-ratio: 16 / 9;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, .5) 5%, #000 12%, #000 91%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, .5) 5%, #000 12%, #000 91%, transparent 100%);
  }

  .hero-intro-video,
  .hero-intro-final-frame {
    object-fit: contain;
  }

  .cta-overlay {
    top: 50.4%;
    left: 0;
    gap: 18px;
    height: 48px;
  }

  .hero-button {
    min-height: 48px;
    padding-inline: clamp(24px, 2vw, 32px);
    font-size: clamp(16px, 1.42vw, 21px);
  }

  .cta-overlay .hero-button-primary { order: 1; }
  .cta-overlay .hero-button-secondary { order: 2; }

  .responsive-solutions-label {
    position: absolute;
    z-index: 7;
    top: 65.5%;
    left: 0;
    display: block;
    margin: 0;
    color: #08244c;
    font-size: clamp(24px, 2vw, 30px);
    line-height: 1;
    font-weight: 760;
    letter-spacing: -.025em;
  }

  .solution-overlays {
    inset: 0;
    pointer-events: none;
  }

  .solution-card {
    top: 72.2%;
    height: 25%;
    border-radius: 30px;
  }

  .card-desktop {
    left: 0;
    width: calc((100% - 32px) / 3);
  }

  .card-hardware {
    left: calc((100% - 32px) / 3 + 16px);
    width: calc((100% - 32px) / 3);
  }

  .card-industrial {
    right: 0;
    left: auto;
    width: calc((100% - 32px) / 3);
  }

  .solution-card .card-slice {
    display: none !important;
  }

  .desktop-card-content {
    position: absolute;
    inset: 0;
    display: block !important;
    overflow: hidden;
    color: #08244c;
    background: linear-gradient(135deg, rgba(255, 255, 255, .96), rgba(217, 244, 250, .9));
    border: 1px solid rgba(255, 255, 255, .94);
    border-radius: inherit;
    box-shadow: 0 16px 36px rgba(5, 61, 94, .12);
    transition: box-shadow .35s ease, border-color .35s ease;
  }

  .desktop-card-content::after {
    position: absolute;
    z-index: 8;
    inset: 0;
    border: 2px solid transparent;
    border-radius: inherit;
    background: linear-gradient(120deg, #178be7, #00ddeb 56%, #71ec27) border-box;
    mask: linear-gradient(#000 0 0) padding-box, linear-gradient(#000 0 0);
    mask-composite: exclude;
    content: "";
    opacity: 0;
    pointer-events: none;
    transition: opacity .35s ease;
  }

  .solution-card:hover,
  .solution-card:focus-visible,
  .solution-card.is-selected {
    z-index: 8;
    filter: saturate(1.04) contrast(1.01);
    transform: translateY(-8px);
  }

  .solution-card:hover .desktop-card-content,
  .solution-card:focus-visible .desktop-card-content,
  .solution-card.is-selected .desktop-card-content {
    border-color: rgba(0, 210, 232, .44);
    box-shadow: 0 22px 44px rgba(5, 67, 105, .2), 0 0 0 5px rgba(0, 215, 235, .08);
  }

  .solution-card:hover .desktop-card-content::after,
  .solution-card:focus-visible .desktop-card-content::after,
  .solution-card.is-selected .desktop-card-content::after {
    opacity: 1;
  }

  .desktop-card-copy {
    position: absolute;
    z-index: 5;
    top: 12%;
    left: 6.5%;
    display: block;
    max-width: 45%;
    text-align: left;
  }

  .desktop-card-title,
  .desktop-card-description {
    display: block;
  }

  .desktop-card-title {
    font-size: clamp(20px, 1.75vw, 27px);
    line-height: 1.04;
    font-weight: 760;
    letter-spacing: -.03em;
  }

  .desktop-card-description {
    margin-top: 15px;
    color: #36546e;
    font-size: clamp(13px, 1.08vw, 16px);
    line-height: 1.3;
    font-weight: 450;
  }

  .desktop-reference-visual {
    position: absolute;
    z-index: 2;
    display: block;
    max-width: none;
    pointer-events: none;
    user-select: none;
  }

  .desktop-reference-software {
    right: -1.5%;
    bottom: -3%;
    width: 62%;
    height: 96%;
    object-fit: cover;
    object-position: left center;
  }

  .desktop-card-hardware {
    color: #fff;
    background:
      radial-gradient(circle at 82% 70%, rgba(0, 168, 237, .33), transparent 38%),
      linear-gradient(138deg, #0a4689 0%, #073477 52%, #062a63 100%);
  }

  .desktop-card-hardware .desktop-card-copy {
    top: 14%;
    left: 6.7%;
    max-width: 42%;
  }

  .desktop-card-hardware .desktop-card-description {
    color: rgba(238, 249, 255, .9);
  }

  .desktop-reference-hardware {
    right: -2.5%;
    bottom: -8%;
    width: 61%;
    height: 91%;
    object-fit: contain;
    object-position: right bottom;
    mix-blend-mode: screen;
    filter: saturate(1.08) contrast(1.08) drop-shadow(0 13px 14px rgba(0, 10, 32, .38));
  }

  .desktop-hardware-label {
    position: absolute;
    z-index: 5;
    top: 10%;
    right: 0;
    display: inline-flex;
    align-items: center;
    min-height: 31px;
    padding: 0 15px;
    color: #173b1d;
    background: linear-gradient(135deg, #b9f85a, #8eed42);
    border-radius: 999px 0 0 999px;
    font-size: clamp(10px, .9vw, 13px);
    line-height: 1;
    font-weight: 750;
    white-space: nowrap;
  }

  .desktop-card-industrial {
    background:
      radial-gradient(circle at 66% 50%, rgba(0, 211, 230, .13), transparent 36%),
      linear-gradient(137deg, rgba(247, 252, 255, .98), rgba(218, 247, 247, .92) 58%, rgba(225, 250, 207, .94));
  }

  .desktop-card-industrial .desktop-card-copy {
    max-width: 47%;
  }

  .desktop-reference-industrial {
    right: -1.2%;
    bottom: -3%;
    width: 58%;
    height: 101%;
    object-fit: cover;
    object-position: left center;
  }

  .detail-zone {
    padding-top: 8px;
  }

  .detail-shell .solution-detail {
    width: 100%;
    margin-right: 0;
    margin-left: 0;
  }

}

.desktop-card-content {
  display: none;
}

/* Keep the platform showcase compact while preserving the artwork size. */
@media (min-width: 769px) {
  .device-access-section {
    min-height: auto;
    padding-top: clamp(48px, 4vw, 72px);
    padding-bottom: clamp(48px, 4vw, 72px);
  }

  .platform-tabs {
    margin-top: clamp(16px, 1.6vw, 24px);
  }

  .device-stage.device-video-slot {
    min-height: clamp(360px, 34vw, 460px);
    margin-top: clamp(18px, 2.4vw, 34px);
  }

  .platform-product-visual {
    min-height: clamp(360px, 30vw, 420px);
  }

  .environment-section {
    padding-top: clamp(34px, 4vw, 62px);
  }
}

/* Tablet: 769–1024px. Keep the desktop canvas, switch navigation to hamburger. */
@media (max-width: 1024px) {
  :root {
    --container-padding: 24px;
  }

  .hero {
    overflow: visible;
  }

  .primary-nav-overlay {
    display: none !important;
  }

  .responsive-nav {
    position: absolute;
    z-index: 20;
    top: 3.25%;
    right: 8.7%;
    display: block;
  }

  .responsive-nav summary {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    color: #07548b;
    background: rgba(255, 255, 255, .92);
    border: 1px solid rgba(22, 117, 145, .28);
    border-radius: 12px;
    box-shadow: 0 9px 22px rgba(7, 75, 105, .14);
    cursor: pointer;
  }

  .responsive-nav summary svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-width: 1.8;
  }

  .responsive-nav[open] summary {
    color: #fff;
    background: #07548b;
  }

  .responsive-nav nav {
    position: absolute;
    top: calc(100% + 9px);
    right: 0;
    display: grid;
    gap: 2px;
    width: 218px;
    padding: 9px;
    background: rgba(255, 255, 255, .98);
    border: 1px solid rgba(91, 172, 188, .3);
    border-radius: 14px;
    box-shadow: 0 20px 42px rgba(7, 68, 96, .2);
  }

  .responsive-nav nav a {
    display: block;
    padding: 12px 13px;
    color: #214d67;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
  }

  .responsive-nav nav a:hover,
  .responsive-nav nav a:focus-visible {
    color: #07548b;
    background: #edf8fb;
    outline: none;
  }
}

/* Mobile: ≤768px. Preserve the complete PC hero composition at a smaller scale. */
@media (max-width: 768px) {
  :root {
    --container-padding: 16px;
  }

  body {
    background-attachment: scroll;
  }

  .hero-stage-container .visual-stage {
    width: 100% !important;
    max-width: none !important;
    margin-left: 0 !important;
    aspect-ratio: 5504 / 3072;
  }

  .hero-stage-container .base-visual {
    object-fit: contain;
  }

  .brand-overlay {
    width: 15.25% !important;
  }

  .responsive-nav {
    top: 3%;
    right: 8.7%;
  }

  .responsive-nav summary {
    width: clamp(30px, 9vw, 38px);
    height: clamp(30px, 9vw, 38px);
    border-radius: 9px;
  }

  .responsive-nav summary svg {
    width: 18px;
    height: 18px;
  }

  .responsive-nav nav {
    width: min(208px, calc(100vw - 32px));
  }

  .responsive-nav .nav-contact {
    display: none;
  }

  .detail-zone {
    padding-top: 12px;
  }

  .device-access-section,
  .environment-section,
  .capability-section,
  .security-performance-section,
  .partners-section,
  .closing-section {
    min-height: 0;
  }
}

/* Tablet and mobile content rails. Desktop (1025px+) remains untouched. */
@media (max-width: 1024px) {
  /* Keep every tablet/mobile heading inside its own container. Several of
     the desktop components use display geometry that is too tight once the
     canvas reaches the iPad Pro breakpoint. */
  .responsive-hero-copy h1,
  .detail-heading-row h2,
  .environment-header h2,
  .scenario-copy h3,
  .capability-header h2,
  .capability-copy h3,
  .security-performance-header h2,
  .security-performance-item h3,
  .device-access-header h2,
  .platform-download-copy h3,
  .credentials-section .credentials-header h2,
  .partners-header h2,
  .closing-copy h2,
  .industry-header h2 {
    width: 100%;
    max-width: 100% !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    white-space: normal !important;
    overflow-wrap: anywhere;
    word-break: normal;
    text-overflow: clip;
  }

  .environment-header h2,
  .capability-header h2,
  .security-performance-header h2,
  .device-access-header h2,
  .credentials-section .credentials-header h2,
  .partners-header h2,
  .closing-copy h2,
  .industry-header h2 {
    font-size: clamp(36px, 5.5vw, 56px) !important;
    line-height: 1.1 !important;
    letter-spacing: -.035em !important;
  }

  .environment-header,
  .capability-header,
  .security-performance-header,
  .device-access-header,
  .credentials-section .credentials-header,
  .partners-header,
  .closing-copy,
  .industry-header {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    height: auto;
    overflow: visible;
  }

  .detail-points,
  .scenario-deck,
  .security-performance-grid,
  .credentials-section.credentials-page-section .credential-rail {
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .detail-points::-webkit-scrollbar,
  .scenario-deck::-webkit-scrollbar,
  .security-performance-grid::-webkit-scrollbar,
  .credentials-section.credentials-page-section .credential-rail::-webkit-scrollbar {
    display: none;
  }

  /* Three selected-solution photographs. */
  .solution-detail {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .detail-points {
    display: flex !important;
    gap: 14px;
    min-height: 0 !important;
    padding: 2px 2px 10px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: inline mandatory;
    touch-action: pan-x pan-y;
  }

  .detail-points .scene-item {
    flex: 0 0 calc((100% - 14px) / 2);
    min-height: 220px !important;
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }

  .detail-points .scene-figure {
    height: 150px;
  }

  /* Two environment cards. */
  .scenario-deck,
  .scenario-deck[data-active="it"],
  .scenario-deck[data-active="industrial"] {
    display: flex !important;
    grid-template-columns: none !important;
    gap: 18px;
    min-height: 0;
    padding: 6px 2px 16px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: inline mandatory;
    touch-action: pan-x pan-y;
  }

  .scenario-card,
  .scenario-card:not(.is-active),
  .scenario-card.is-video-mode,
  .scenario-card.is-video-mode:not(.is-active) {
    display: grid;
    grid-template-rows: auto minmax(190px, auto);
    flex: 0 0 calc(62% - 9px);
    min-width: 0;
    min-height: 0 !important;
    height: auto;
    opacity: 1;
    filter: none;
    transform: none;
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }

  .scenario-card .scenario-visual,
  .scenario-card:not(.is-active) .scenario-visual,
  .scenario-card.is-video-mode .scenario-visual,
  .scenario-card.is-video-mode:not(.is-active) .scenario-visual {
    position: relative;
    grid-row: 1;
    inset: auto;
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    opacity: 1;
  }

  .scenario-card .scenario-copy,
  .scenario-card:not(.is-active) .scenario-copy,
  .scenario-card.is-video-mode .scenario-copy,
  .scenario-card.is-video-mode:not(.is-active) .scenario-copy {
    position: relative;
    grid-row: 2;
    width: 100%;
    height: auto;
    min-height: 190px;
    padding: 24px 22px 28px;
  }

  .scenario-copy h3,
  .scenario-card:not(.is-active) .scenario-copy h3,
  .scenario-copy p,
  .scenario-card:not(.is-active) .scenario-copy p {
    max-width: 100%;
  }

  /* Platform order and a complete, non-scrolling selector. */
  .platform-tabs {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 5px;
    width: 100%;
    overflow: visible;
  }

  .platform-tab {
    justify-content: center;
    min-width: 0;
    padding-inline: 8px;
  }

  .platform-tab[data-platform="android"] { order: 1; }
  .platform-tab[data-platform="ios"] { order: 2; }
  .platform-tab[data-platform="windows"] { order: 3; }
  .platform-tab[data-platform="macos"] { order: 4; }
  .platform-tab[data-platform="linux"] { order: 5; }

  /* iPad Pro is exactly 1024px wide in portrait. Stack the download copy and
     artwork here so the desktop grid cannot squeeze or crop the image. */
  .device-stage.device-video-slot {
    display: flex !important;
    align-items: stretch;
    flex-direction: column;
    gap: 22px;
    width: 100%;
    max-width: 100%;
    min-height: 0;
    margin-top: 30px;
    padding-inline: 0;
    overflow: visible;
  }

  .platform-download-copy {
    width: 100%;
    max-width: none;
    align-self: stretch;
  }

  .platform-product-visual {
    display: grid !important;
    place-items: center;
    width: 100%;
    max-width: 100%;
    min-height: 0 !important;
    padding: 0;
    aspect-ratio: 16 / 9;
    overflow: visible;
  }

  .platform-product-image:not([hidden]) {
    display: block !important;
    width: 100% !important;
    height: auto;
    max-height: none;
    margin: 0 auto;
    visibility: visible;
    opacity: 1 !important;
    -webkit-mask-image: none !important;
    mask-image: none !important;
  }

  .platform-product-image[hidden] {
    display: none !important;
  }

  /* Keep capability copy and controls; remove all four large photographs. */
  .capability-detail {
    grid-template-columns: minmax(0, 1fr) !important;
    min-height: 0 !important;
  }

  .capability-visual {
    display: none !important;
  }

  /* Four security/performance columns. */
  .security-performance-grid {
    display: flex;
    gap: 14px;
    margin-top: 46px;
    padding: 1px 1px 14px;
    overflow-x: auto;
    border: 0;
    overscroll-behavior-inline: contain;
    scroll-snap-type: inline mandatory;
    touch-action: pan-x pan-y;
  }

  .security-performance-item,
  .security-performance-item:nth-child(n + 3),
  .security-performance-item + .security-performance-item {
    flex: 0 0 calc((100% - 14px) / 2);
    min-height: 390px;
    padding: 28px 26px 30px;
    background: rgba(255, 255, 255, .48);
    border: 1px solid rgba(22, 92, 111, .16);
    border-radius: 18px;
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }

  /* Certificate artwork rail. */
  .credentials-section.credentials-page-section .credential-rail {
    display: flex;
    gap: 16px;
    padding: 2px 2px 14px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: inline mandatory;
    touch-action: pan-x pan-y;
  }

  .credentials-section.credentials-page-section .credential-tab {
    flex: 0 0 calc((100% - 32px) / 3);
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }

  .credentials-section.credentials-page-section .credential-thumb {
    height: auto;
    aspect-ratio: 3 / 4;
  }
}

@media (max-width: 768px) {
  .environment-header h2,
  .capability-header h2,
  .security-performance-header h2,
  .device-access-header h2,
  .credentials-section .credentials-header h2,
  .partners-header h2,
  .closing-copy h2,
  .industry-header h2 {
    font-size: clamp(30px, 9vw, 44px) !important;
    line-height: 1.12 !important;
    letter-spacing: -.03em !important;
  }

  .detail-heading-row h2,
  .scenario-copy h3,
  .capability-copy h3,
  .security-performance-item h3,
  .platform-download-copy h3 {
    font-size: clamp(24px, 7vw, 36px) !important;
    line-height: 1.14 !important;
  }

  /* A readable mobile hero built from the original desktop content and cards. */
  .hero-stage-container {
    padding-inline: 0 !important;
  }

  .hero-stage-container .visual-stage {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto auto auto auto;
    min-height: 0;
    padding: 18px 16px 12px;
    overflow: hidden;
    background:
      radial-gradient(circle at 86% 45%, rgba(0, 215, 235, .11), transparent 34%),
      linear-gradient(160deg, #f9fbff 0%, #eff9fd 62%, #f6fbf7 100%);
  }

  .hero-stage-container .base-visual {
    display: none;
  }

  .responsive-hero-art {
    position: relative;
    z-index: 1;
    top: auto;
    right: auto;
    left: auto;
    grid-row: 3;
    display: block;
    width: min(100%, 720px);
    height: auto;
    margin: clamp(14px, 3vw, 24px) auto 0;
    aspect-ratio: 16 / 9;
    background-image: url("/assets/home-transition/videos/hero-intro-clean.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    background-color: transparent;
    -webkit-mask-image: none;
    mask-image: none;
  }

  .hero-intro-visual,
  .topline-cleanup,
  .header-cleanup,
  .cta-cleanup,
  .cards-cleanup {
    display: none !important;
  }

  .brand-overlay {
    top: 18px;
    left: 16px;
    width: clamp(116px, 31vw, 148px) !important;
  }

  .responsive-nav {
    top: 18px;
    right: 16px;
  }

  .responsive-hero-copy {
    position: relative;
    z-index: 8;
    top: auto;
    right: auto;
    left: auto;
    grid-row: 1;
    display: block;
    width: 100%;
    max-width: 510px;
    margin-top: 72px;
    color: #072750;
  }

  .responsive-hero-copy h1 {
    margin: 0;
    font-size: clamp(36px, 10vw, 54px);
    line-height: .98;
    letter-spacing: -.055em;
  }

  .responsive-hero-copy p {
    max-width: 470px;
    margin: 9px 0 0;
    color: #456179;
    font-size: clamp(12px, 3.6vw, 17px);
    line-height: 1.45;
  }

  .responsive-hero-copy .responsive-hero-lead {
    margin-top: 14px;
    color: #173e60;
    font-size: clamp(15px, 4.4vw, 21px);
    font-weight: 650;
  }

  .cta-overlay {
    position: relative;
    top: auto;
    right: auto;
    left: auto;
    grid-row: 2;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    width: 100%;
    height: auto;
    margin-top: clamp(16px, 3vw, 24px);
  }

  .hero-button {
    width: 100%;
    min-height: 44px;
    padding-inline: 10px;
    font-size: clamp(11px, 3.25vw, 14px);
  }

  .responsive-solutions-label {
    position: relative;
    z-index: 7;
    top: auto;
    left: auto;
    grid-row: 4;
    display: block;
    margin: clamp(8px, 2vw, 18px) 0 0;
    color: #082d59;
    font-size: 20px;
    font-weight: 750;
  }

  .solution-overlays {
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
    grid-row: 5;
    display: flex;
    gap: 12px;
    width: calc(100% + 32px);
    height: 202px;
    margin: 8px -16px 0;
    padding: 4px 16px 12px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: inline mandatory;
    scrollbar-width: none;
    touch-action: pan-x pan-y;
    pointer-events: auto;
  }

  .solution-overlays::-webkit-scrollbar {
    display: none;
  }

  .solution-overlays .solution-card {
    position: relative;
    top: auto;
    left: auto;
    flex: 0 0 min(82%, 310px);
    width: auto;
    height: auto;
    aspect-ratio: 1.68;
    transform: none;
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }

  .solution-overlays .solution-card:hover,
  .solution-overlays .solution-card:focus-visible,
  .solution-overlays .solution-card.is-selected {
    transform: translateY(-2px);
  }

  .hardware-access-label {
    font-size: 10px;
  }

  .detail-points .scene-item,
  .scenario-card,
  .scenario-card:not(.is-active),
  .scenario-card.is-video-mode,
  .scenario-card.is-video-mode:not(.is-active),
  .security-performance-item,
  .security-performance-item:nth-child(n + 3),
  .security-performance-item + .security-performance-item {
    flex-basis: 86%;
  }

  /* The three selected-solution photographs are not needed on phones. */
  .detail-points {
    display: none !important;
  }

  .scenario-card .scenario-copy,
  .scenario-card:not(.is-active) .scenario-copy,
  .scenario-card.is-video-mode .scenario-copy,
  .scenario-card.is-video-mode:not(.is-active) .scenario-copy {
    min-height: 0;
    padding: 21px 18px 24px;
  }

  .scenario-copy h3 {
    font-size: 25px;
  }

  .platform-tabs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding: 5px;
  }

  .platform-tab {
    min-height: 42px;
    padding-inline: 5px;
    font-size: 11px;
  }

  .device-stage.device-video-slot {
    display: flex;
    align-items: stretch;
    flex-direction: column;
    gap: 14px;
    margin-top: 24px;
  }

  .platform-download-copy {
    padding-top: 6px;
    padding-bottom: 6px;
  }

  .platform-download-copy h3 {
    font-size: clamp(32px, 9vw, 44px);
  }

  .platform-download-button {
    min-height: 48px;
    margin-top: 20px;
  }

  .platform-product-visual {
    display: grid !important;
    place-items: center;
    width: 100%;
    min-height: 180px !important;
    aspect-ratio: 16 / 9;
    overflow: visible;
  }

  /* Keep the download artwork visible on mobile. Some mobile browsers can
     render the desktop compound mask as fully transparent. */
  .platform-product-image:not([hidden]) {
    display: block !important;
    width: 100% !important;
    height: auto;
    max-height: none;
    visibility: visible;
    opacity: 1 !important;
    -webkit-mask-image: none !important;
    mask-image: none !important;
  }

  .platform-product-image[hidden] {
    display: none !important;
  }

  .capability-detail {
    display: block;
  }

  .capability-copy {
    padding: 26px 20px 28px;
  }

  .security-performance-item,
  .security-performance-item:nth-child(n + 3),
  .security-performance-item + .security-performance-item {
    min-height: 0;
  }

  .credentials-section.credentials-page-section .credential-tab {
    flex-basis: 86%;
  }
}

@media (max-width: 420px) {
  .hero-stage-container .visual-stage {
    min-height: 0;
  }

  .responsive-hero-art {
    top: auto;
    height: auto;
    background-size: contain;
  }

  .cta-overlay {
    top: auto;
  }

  .responsive-solutions-label {
    top: auto;
  }

  .solution-overlays {
    top: auto;
  }

  .platform-tab {
    gap: 5px;
  }

  .platform-icon {
    width: 15px;
    height: 15px;
  }
}

/* Preserve the dedicated resource-page grid rule; certificates use their own rail above. */
@media (max-width: 768px) {
  .resource-grid,
  .resources-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .resource-grid,
  .resources-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  .responsive-nav,
  .responsive-nav summary,
  .responsive-nav nav {
    transition: none;
  }
}

/* Shared tablet/mobile controls for every horizontal content rail. */
.horizontal-rail-shell {
  display: contents;
}

.horizontal-rail-controls {
  display: none;
}

@media (max-width: 1024px) {
  .horizontal-rail-shell {
    position: relative;
    display: block;
    width: 100%;
    min-width: 0;
  }

  .horizontal-rail-shell.is-absolute {
    position: absolute;
    inset: 0;
    width: auto;
    pointer-events: none;
  }

  .horizontal-rail-shell.is-absolute > [data-horizontal-rail-ready="true"] {
    pointer-events: auto;
  }

  .device-stage > .horizontal-rail-shell.is-access-task {
    z-index: 30;
  }

  .horizontal-rail-controls {
    position: absolute;
    z-index: 40;
    top: var(--rail-control-top, 0);
    right: auto;
    bottom: auto;
    left: var(--rail-control-left, 0);
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: var(--rail-control-width, 100%);
    height: var(--rail-control-height, 100%);
    padding-inline: 4px;
    pointer-events: none;
  }

  .horizontal-rail-controls[hidden] {
    display: none !important;
  }

  .horizontal-rail-arrow {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    padding: 0;
    color: #07548b;
    background: rgba(255, 255, 255, .94);
    border: 1px solid rgba(10, 112, 145, .28);
    border-radius: 50%;
    box-shadow: 0 9px 24px rgba(6, 60, 91, .18);
    cursor: pointer;
    pointer-events: auto;
    transition: color .2s ease, background-color .2s ease, border-color .2s ease, opacity .2s ease, transform .2s ease;
    -webkit-tap-highlight-color: transparent;
  }

  .horizontal-rail-arrow svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .horizontal-rail-arrow:hover,
  .horizontal-rail-arrow:focus-visible {
    color: #fff;
    background: #07548b;
    border-color: #07548b;
    outline: none;
    transform: scale(1.06);
  }

  .horizontal-rail-arrow:focus-visible {
    box-shadow: 0 0 0 4px rgba(0, 215, 235, .18), 0 9px 24px rgba(6, 60, 91, .18);
  }

  .horizontal-rail-arrow:disabled {
    opacity: .28;
    cursor: default;
    transform: none;
  }
}

@media (max-width: 768px) {
  .horizontal-rail-arrow {
    width: 36px;
    height: 36px;
  }

  .horizontal-rail-arrow svg {
    width: 18px;
    height: 18px;
  }
}

/* The hero uses real responsive geometry below the desktop composition.
   Keep the computer artwork intact while the copy and solution rail reflow. */
@media (min-width: 769px) and (max-width: 1024px) {
  .hero-stage-container {
    padding-inline: 0 !important;
  }

  .hero-stage-container .visual-stage {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 1.12fr);
    grid-template-rows: auto auto auto auto;
    grid-template-areas:
      "copy art"
      "actions actions"
      "label label"
      "cards cards";
    column-gap: clamp(18px, 2.6vw, 32px);
    width: 100%;
    height: auto;
    min-height: 0;
    padding: 92px clamp(24px, 3.2vw, 40px) 18px;
    aspect-ratio: auto;
    overflow: hidden;
    background:
      radial-gradient(circle at 82% 34%, rgba(0, 204, 232, .11), transparent 32%),
      linear-gradient(118deg, #f9fbff 0%, #eff9fd 58%, #f6fbf7 100%);
  }

  .hero-stage-container .base-visual,
  .hero-stage-container .hero-intro-visual,
  .hero-stage-container .topline-cleanup,
  .hero-stage-container .header-cleanup,
  .hero-stage-container .cta-cleanup,
  .hero-stage-container .cards-cleanup {
    display: none !important;
  }

  .hero-stage-container .brand-overlay {
    top: 22px;
    left: clamp(24px, 3.2vw, 40px);
    width: clamp(150px, 15.2vw, 204px) !important;
  }

  .hero-stage-container .responsive-nav {
    top: 20px;
    right: clamp(24px, 3.2vw, 40px);
  }

  .hero-stage-container .responsive-hero-copy {
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
    grid-area: copy;
    align-self: center;
    display: block;
    width: auto;
    max-width: none;
    margin: 0;
  }

  .hero-stage-container .responsive-hero-copy h1 {
    font-size: clamp(40px, 5.6vw, 58px);
  }

  .hero-stage-container .responsive-hero-copy p {
    max-width: 100%;
    font-size: clamp(13px, 1.55vw, 17px);
  }

  .hero-stage-container .responsive-hero-copy .responsive-hero-lead {
    font-size: clamp(17px, 2.05vw, 23px);
  }

  .hero-stage-container .cta-overlay {
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
    grid-area: actions;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(10px, 1.4vw, 18px);
    width: 100%;
    height: auto;
    margin-top: clamp(18px, 2.5vw, 28px);
  }

  .hero-stage-container .hero-button {
    width: 100%;
    min-height: 48px;
    padding-inline: clamp(14px, 2vw, 30px);
    font-size: clamp(13px, 1.45vw, 18px);
  }

  .hero-stage-container .responsive-hero-art {
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
    grid-area: art;
    align-self: center;
    display: block;
    width: 100%;
    height: auto;
    margin: 0;
    aspect-ratio: 16 / 9;
    background-image: url("/assets/home-transition/videos/hero-intro-clean.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    background-color: transparent;
    -webkit-mask-image: none;
    mask-image: none;
  }

  .hero-stage-container .responsive-solutions-label {
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
    grid-area: label;
    display: block;
    margin: clamp(18px, 2.5vw, 28px) 0 0;
    font-size: clamp(22px, 2.3vw, 30px);
  }
}

@media (max-width: 768px) {
  .hero-stage-container .visual-stage {
    grid-template-areas:
      "copy"
      "actions"
      "art"
      "label"
      "cards";
    grid-template-rows: auto auto auto auto auto;
    height: auto;
    aspect-ratio: auto;
  }

  .hero-stage-container .responsive-hero-copy {
    grid-area: copy;
  }

  .hero-stage-container .cta-overlay {
    grid-area: actions;
  }

  .hero-stage-container .responsive-hero-art {
    grid-area: art;
    height: auto;
    max-width: 720px;
    aspect-ratio: 16 / 9;
  }

  .hero-stage-container .responsive-solutions-label {
    grid-area: label;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  /* setupHorizontalRailControls wraps the solution rail after load. Keep the
     wrapper in the same grid row as the unwrapped rail at this breakpoint. */
  .hero-stage-container .visual-stage > .horizontal-rail-shell {
    grid-area: cards;
    position: relative !important;
    inset: auto !important;
    width: 100%;
    min-width: 0;
    height: clamp(202px, 25vw, 250px);
    margin-top: 8px;
  }

  .hero-stage-container .visual-stage > .horizontal-rail-shell > .solution-overlays {
    width: 100%;
    height: 100%;
    margin: 0;
  }

  .hero-stage-container .solution-overlays {
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
    grid-area: cards;
    display: flex;
    gap: 16px;
    width: 100%;
    height: clamp(202px, 25vw, 250px);
    margin-top: 8px;
    padding: 4px 0 12px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: inline mandatory;
    scrollbar-width: none;
    touch-action: pan-x pan-y;
    pointer-events: auto;
  }

  .hero-stage-container .solution-overlays::-webkit-scrollbar {
    display: none;
  }

  .hero-stage-container .solution-overlays .solution-card {
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
    flex: 0 0 min(47%, 390px);
    width: auto;
    height: auto;
    aspect-ratio: 1.68;
    transform: none;
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }

  .hero-stage-container .solution-overlays .solution-card:hover,
  .hero-stage-container .solution-overlays .solution-card:focus-visible,
  .hero-stage-container .solution-overlays .solution-card.is-selected {
    transform: translateY(-2px);
  }
}

@media (max-width: 768px) {
  .hero-stage-container .visual-stage > .horizontal-rail-shell {
    grid-area: cards;
    position: relative !important;
    inset: auto !important;
    width: calc(100% + 32px);
    min-width: 0;
    height: 202px;
    margin-top: 8px;
    margin-right: -16px;
    margin-left: -16px;
  }

  .hero-stage-container .visual-stage > .horizontal-rail-shell > .solution-overlays {
    width: 100%;
    height: 100%;
    margin: 0;
  }
}

@media (min-width: 1025px) {
  .hero-stage-container .visual-stage > .horizontal-rail-shell {
    display: contents;
  }
}

/* Keep the solution cards on one renderer across desktop, tablet, and phone.
   The old tablet path cropped the full homepage artwork with fixed percentages,
   which made its background drift when the viewport crossed the 1024px break. */
@media (max-width: 1024px) {
  .hero-stage-container .solution-card .card-slice {
    display: none !important;
  }

  .hero-stage-container .solution-card .desktop-card-content {
    position: absolute;
    inset: 0;
    display: block !important;
    overflow: hidden;
    color: #08244c;
    background: linear-gradient(135deg, rgba(255, 255, 255, .96), rgba(217, 244, 250, .9));
    border: 1px solid rgba(255, 255, 255, .94);
    border-radius: inherit;
    box-shadow: 0 16px 36px rgba(5, 61, 94, .12);
    transition: box-shadow .35s ease, border-color .35s ease;
  }

  .hero-stage-container .desktop-card-content::after {
    position: absolute;
    z-index: 8;
    inset: 0;
    border: 2px solid transparent;
    border-radius: inherit;
    background: linear-gradient(120deg, #178be7, #00ddeb 56%, #71ec27) border-box;
    mask: linear-gradient(#000 0 0) padding-box, linear-gradient(#000 0 0);
    mask-composite: exclude;
    content: "";
    opacity: 0;
    pointer-events: none;
    transition: opacity .35s ease;
  }

  .hero-stage-container .desktop-card-copy {
    position: absolute;
    z-index: 5;
    top: 12%;
    left: 6.5%;
    display: block;
    max-width: 45%;
    text-align: left;
  }

  .hero-stage-container .desktop-card-title,
  .hero-stage-container .desktop-card-description {
    display: block;
  }

  .hero-stage-container .desktop-card-title {
    font-size: clamp(18px, 3.1vw, 27px);
    line-height: 1.04;
    font-weight: 760;
    letter-spacing: -.03em;
  }

  .hero-stage-container .desktop-card-description {
    margin-top: 12px;
    color: #36546e;
    font-size: clamp(12px, 1.7vw, 16px);
    line-height: 1.3;
    font-weight: 450;
  }

  .hero-stage-container .desktop-reference-visual {
    position: absolute;
    z-index: 2;
    display: block;
    max-width: none;
    pointer-events: none;
    user-select: none;
  }

  .hero-stage-container .desktop-reference-software {
    right: -1.5%;
    bottom: -3%;
    width: 62%;
    height: 96%;
    object-fit: cover;
    object-position: left center;
  }

  .hero-stage-container .solution-card .desktop-card-hardware {
    color: #fff;
    background:
      radial-gradient(circle at 82% 70%, rgba(0, 168, 237, .33), transparent 38%),
      linear-gradient(138deg, #0a4689 0%, #073477 52%, #062a63 100%);
  }

  .hero-stage-container .desktop-card-hardware .desktop-card-copy {
    top: 14%;
    left: 6.7%;
    max-width: 42%;
  }

  .hero-stage-container .desktop-card-hardware .desktop-card-description {
    color: rgba(238, 249, 255, .9);
  }

  .hero-stage-container .desktop-reference-hardware {
    right: -2.5%;
    bottom: -8%;
    width: 61%;
    height: 91%;
    object-fit: contain;
    object-position: right bottom;
    mix-blend-mode: screen;
    filter: saturate(1.08) contrast(1.08) drop-shadow(0 13px 14px rgba(0, 10, 32, .38));
  }

  .hero-stage-container .desktop-hardware-label {
    position: absolute;
    z-index: 5;
    top: 10%;
    right: 0;
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 12px;
    color: #173b1d;
    background: linear-gradient(135deg, #b9f85a, #8eed42);
    border-radius: 999px 0 0 999px;
    font-size: clamp(9px, 1.5vw, 13px);
    line-height: 1;
    font-weight: 750;
    white-space: nowrap;
  }

  .hero-stage-container .solution-card .desktop-card-industrial {
    background:
      radial-gradient(circle at 66% 50%, rgba(0, 211, 230, .13), transparent 36%),
      linear-gradient(137deg, rgba(247, 252, 255, .98), rgba(218, 247, 247, .92) 58%, rgba(225, 250, 207, .94));
  }

  .hero-stage-container .desktop-card-industrial .desktop-card-copy {
    max-width: 47%;
  }

  .hero-stage-container .desktop-reference-industrial {
    right: -1.2%;
    bottom: -3%;
    width: 58%;
    height: 101%;
    object-fit: cover;
    object-position: left center;
  }

  .hero-stage-container .solution-card:hover,
  .hero-stage-container .solution-card:focus-visible,
  .hero-stage-container .solution-card.is-selected {
    transform: none !important;
  }

  .hero-stage-container .solution-card:hover .desktop-card-content,
  .hero-stage-container .solution-card:focus-visible .desktop-card-content,
  .hero-stage-container .solution-card.is-selected .desktop-card-content {
    border-color: rgba(0, 210, 232, .44);
    box-shadow: 0 22px 44px rgba(5, 67, 105, .2), 0 0 0 5px rgba(0, 215, 235, .08);
  }

  .hero-stage-container .solution-card:hover .desktop-card-content::after,
  .hero-stage-container .solution-card:focus-visible .desktop-card-content::after,
  .hero-stage-container .solution-card.is-selected .desktop-card-content::after {
    opacity: 1;
  }
}

