/* Launch cover */
.hero {
  --hero-base: #080a13;
  background: var(--hero-base);
  color: var(--on-dark);
}

.hero-stage {
  --hero-floor: linear-gradient(0deg, var(--hero-base), #080a13e8 14%, #080a1370 27%, transparent 43%);
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  overflow: clip;
  min-height: calc(100vh - var(--nav-height));
  min-height: calc(100dvh - var(--nav-height));
}

.hero-content {
  position: relative;
  z-index: 1;
  flex: 1 0 auto;
  display: grid;
  align-content: center;
  padding-block: clamp(30px, 6vh, 76px) clamp(26px, 4vh, 54px);
}

.hero-copy h1 {
  font-size: clamp(49px, 7.2vw, 113px);
  line-height: 1.04;
  letter-spacing: -.058em;
  color: var(--on-dark);
}

.hero-copy h1 span { display: block; }
.hero-copy h1 span + span { color: #dbe2eb; }

.hero-copy p {
  max-width: 37em;
  margin-top: clamp(20px, 2.15vw, 34px);
  color: #c1cad6;
  font-size: var(--font-lead);
  text-wrap: pretty;
}

.hero-copy p span { white-space: nowrap; }

.hero-visual { position: absolute; inset: 0; pointer-events: none; }
.hero-stage::after {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, #080a133d, transparent 62%),
    var(--hero-floor),
    linear-gradient(180deg, var(--hero-base), transparent 12%);
  content: "";
  pointer-events: none;
}

.hero-art { width: 100%; height: 100%; object-fit: cover; object-position: center 62%; }

.hero-summary {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  padding-block: 14px clamp(18px, 2.1vw, 30px);
  border-block-start: 1px solid #ffffff30;
}

.hero-summary-group + .hero-summary-group {
  padding-inline-start: clamp(16px, 2.2vw, 34px);
  border-inline-start: 1px solid #ffffff26;
}

.hero-summary h2 {
  margin-block-end: 8px;
  color: #99e1e5;
  font-size: 13px;
  line-height: 1.35;
  font-weight: 650;
  letter-spacing: 0;
}

.hero-summary dl {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  gap: clamp(10px, 1.6vw, 26px);
  padding-inline-end: clamp(14px, 2.2vw, 34px);
}

.hero-summary-group:last-child dl { padding-inline-end: 0; }
.hero-summary dt { color: var(--on-dark); font-size: clamp(14px, 1.43vw, 19px); font-weight: 700; }
.hero-summary dd { margin-block-start: 3px; color: #c1cad6; font-size: clamp(12px, 1.06vw, 14px); line-height: 1.5; text-wrap: pretty; }

/* Capability narrative, with a static layout as the baseline */
.value-section { background: var(--paper); }
.value-section .section-intro, .cloud-section .section-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr);
  align-items: end;
  gap: 0 clamp(35px, 6vw, 91px);
  text-align: left;
}
.value-section .eyebrow { grid-column: 1 / -1; }
.value-section .section-intro p, .cloud-section .section-intro p {
  max-width: 22em;
  margin: 0 0 3px;
}

.value-steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(22px, 3.2vw, 46px);
}

.value-card {
  position: relative;
  min-width: 0;
  border-bottom: 1px solid var(--line);
}
.value-card--pc { grid-column: 1 / -1; }
.value-card--pc .value-screen img { aspect-ratio: 2.35; }
.value-screen { overflow: clip; border-radius: var(--radius); background: var(--surface); }
.value-screen img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.value-copy { padding-block: 18px 22px; }
.value-copy h3 { font-size: clamp(24px, 2.5vw, 39px); }
.value-copy p { margin-top: 10px; max-width: 25em; color: var(--soft-ink); font-size: 16px; text-wrap: pretty; }

@media (min-width: 1000px) and (min-height: 650px) and (prefers-reduced-motion: no-preference) {
  .value-grid.has-story-scroll {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(0, .78fr);
    align-items: start;
    gap: clamp(30px, 5.8vw, 90px);
  }

  .value-visual {
    --story-progress: .3333;
    position: sticky;
    top: calc(var(--nav-height) + 28px);
    isolation: isolate;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    border-radius: var(--radius);
    background: var(--surface-dark-raised);
    box-shadow: var(--shadow-raised);
  }

  .value-grid[data-active="1"] .value-visual { --story-progress: .6667; }
  .value-grid[data-active="2"] .value-visual { --story-progress: 1; }

  .value-visual::after {
    position: absolute;
    inset: auto 0 0;
    height: 3px;
    background: linear-gradient(90deg, var(--blue), var(--cyan));
    transform: scaleX(var(--story-progress));
    transform-origin: left;
    transition: transform 500ms var(--ease-out);
    content: "";
  }

  .value-visual img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transform: scale(1.035);
    transition: opacity 460ms var(--ease-out), transform 620ms var(--ease-out);
  }

  .value-visual img.is-current { opacity: 1; transform: none; }
  .has-story-scroll .value-steps { display: block; border-top: 1px solid var(--line); }

  .has-story-scroll .value-card {
    display: grid;
    align-content: center;
    min-height: clamp(210px, 27vh, 275px);
    padding-inline-start: clamp(22px, 3vw, 42px);
  }

  .has-story-scroll .value-card::before {
    position: absolute;
    inset: 18% auto 18% 0;
    width: 2px;
    background: var(--blue);
    opacity: 0;
    transform: scaleY(.45);
    transition: transform 430ms var(--ease-out), opacity var(--duration-quick);
    content: "";
  }

  .has-story-scroll .value-card.is-current::before { opacity: 1; transform: none; }
  .has-story-scroll .value-card h3 { transition: color var(--duration-quick); }
  .has-story-scroll .value-card.is-current h3 { color: var(--blue-ink); }

  /* Keep the original descriptive image in the accessibility tree. */
  .has-story-scroll .value-screen {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
}

/* Differentiation and delivery use content-led rows */
.partner-section { padding-top: 0; background: var(--paper); }
.partner-section > .container, .service-section > .container {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  gap: clamp(32px, 7vw, 115px);
  align-items: start;
}

.partner-section > .container { padding-top: clamp(38px, 5.5vw, 75px); border-top: 1px solid var(--line); }
.partner-section .section-intro, .service-section .section-intro { margin: 0; text-align: left; }
.partner-section .section-intro p { max-width: 21em; margin-inline: 0; }
.partner-points { padding: 0; list-style: none; border-top: 1px solid var(--line); }
.partner-points li {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  column-gap: clamp(12px, 2vw, 24px);
  padding-block: 16px;
  border-bottom: 1px solid var(--line);
}
.partner-points li > span {
  grid-row: span 2;
  padding-top: 5px;
  color: var(--blue-ink);
  font-size: 13px;
  font-weight: 730;
  font-variant-numeric: tabular-nums;
}
.partner-points strong { font-size: 20px; font-weight: 720; }
.partner-points p { margin-top: 4px; color: var(--soft-ink); font-size: 15px; }

/* Shared video affordance across the three demo sections */
.video-card {
  position: relative;
  display: block;
  width: 100%;
  min-width: 0;
  padding: 0;
  overflow: clip;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-raised);
  text-align: left;
  transition: border-color var(--duration-quick), box-shadow var(--duration-quick), transform var(--duration-quick) var(--ease-out);
}
.video-card:active { transform: scale(.992); }
.video-cover { display: grid; overflow: hidden; background: #1a222b; }
.video-cover img { grid-area: 1 / 1; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.play-mark {
  z-index: 1;
  grid-area: 1 / 1;
  place-self: center;
  display: grid;
  place-items: center;
  width: clamp(47px, 4.4vw, 64px);
  aspect-ratio: 1;
  border: 1px solid #ffffff75;
  border-radius: 50%;
  background: #10151de8;
  color: white;
  box-shadow: 0 5px 18px #07090b44;
  transition: transform var(--duration-quick) var(--ease-out), border-color var(--duration-quick), background-color var(--duration-quick);
}
.video-card:is(:hover, :focus-visible) .play-mark {
  transform: scale(1.07);
  border-color: var(--cyan);
  background: #0b1923;
}
.video-caption {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 3px 16px;
  padding: clamp(13px, 1.6vw, 19px) clamp(14px, 1.8vw, 22px);
}
.video-caption b { font-size: clamp(16px, 1.4vw, 20px); font-weight: 720; }
.video-caption small { color: var(--soft-ink); font-size: 13px; font-variant-numeric: tabular-nums; }

/* PC demonstration and its interaction index */
.pc-section { background: var(--surface-dark); color: var(--on-dark); }
.pc-layout {
  display: grid;
  grid-template: "heading heading" auto "media features" 1fr / minmax(0, 2.15fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(24px, 3.4vw, 48px) clamp(30px, 5.1vw, 76px);
}
.pc-heading { grid-area: heading; }
.pc-heading h2 { color: var(--on-dark); font-size: clamp(38px, 5.45vw, 83px); }
.pc-heading em { color: #aab8c8; font-style: normal; }
.pc-heading .lead { color: var(--muted-on-dark); }
.pc-media { grid-area: media; min-width: 0; }
.pc-media .video-card { border: 0; background: var(--surface-dark-raised); color: var(--on-dark); }
.pc-media .video-caption small { color: var(--muted-on-dark); }
.mini-feature-grid { grid-area: features; display: grid; border-top: 1px solid var(--line-dark); }
.mini-feature {
  display: grid;
  grid-template-columns: 39px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding-block: clamp(14px, 2.15vw, 29px);
  border-bottom: 1px solid var(--line-dark);
}
.mini-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-small);
  color: var(--cyan);
}
.mini-icon .icon { width: 19px; height: 19px; }
.mini-feature strong { font-size: 18px; }
.mini-feature p { margin-top: 4px; color: var(--muted-on-dark); font-size: 15px; }

/* Cloud media gallery */
.cloud-section { background: var(--surface); }
.cloud-section h2 span { color: var(--blue-ink); }
.cloud-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 3vw, 42px);
}

/* Shared workspace */
.ai-section {
  --ai-surface: #080d15;
  position: relative;
  display: grid;
  align-items: center;
  min-height: calc(100vh - var(--nav-height));
  min-height: calc(100svh - var(--nav-height));
  isolation: isolate;
  overflow: clip;
  padding-block: clamp(64px, 10vh, 124px);
  background: var(--ai-surface);
  color: var(--on-dark);
}

.ai-copy {
  width: min(53%, 650px);
  margin: 0;
}

.ai-copy h2 {
  color: var(--on-dark);
  font-size: clamp(42px, 5.05vw, 82px);
  line-height: 1.07;
}

.ai-copy h2 span { color: #d4dfea; }

.ai-copy p {
  max-width: 25em;
  margin-top: clamp(18px, 2.2vw, 32px);
  color: #c2cdda;
}

.ai-visual {
  position: absolute;
  inset-block: 0;
  inset-inline-end: max(clamp(14px, 2.6vw, 48px), (100% - var(--page-width)) / 2);
  z-index: -1;
  display: grid;
  align-items: center;
  width: min(90%, calc((100vh - var(--nav-height)) * 1.55), var(--page-width));
  width: min(90%, calc((100svh - var(--nav-height)) * 1.55), var(--page-width));
}

.ai-visual img {
  width: 100%;
  mask-image:
    linear-gradient(90deg, transparent 10%, #0006 35%, #000 56%, #000 97.5%, transparent),
    linear-gradient(180deg, transparent, #000 14%, #000 89%, transparent);
  mask-composite: intersect;
}

/* Service rows */
.service-section, .page-home .final-cta { background: var(--surface); }
.service-grid { display: grid; border-top: 1px solid var(--line); }
.service-grid article {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  column-gap: 17px;
  padding-block: 16px;
  border-bottom: 1px solid var(--line);
}
.service-icon { grid-row: span 2; display: grid; place-items: center; padding-top: 3px; align-self: start; color: var(--blue-ink); }
.service-icon .icon { width: 23px; height: 23px; }
.service-grid h3 { font-size: 21px; }
.service-grid p { margin-top: 5px; color: var(--soft-ink); font-size: 15px; }
.page-home .final-cta { padding-block-start: 0; }

@media (max-width: 900px) {
  .pc-layout { grid-template: "heading" auto "media" auto "features" auto / minmax(0, 1fr); }
  .mini-feature-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .mini-feature { grid-template-columns: 1fr; gap: 9px; }
}

@media (max-width: 900px), (max-aspect-ratio: 1 / 1) {
  .ai-section { min-height: 0; padding: 0; }
  .ai-copy { width: 100%; padding-block: clamp(46px, 8vw, 72px) 18px; }
  .ai-copy h2 { font-size: clamp(31px, 6.85vw, 59px); }
  .ai-copy p { max-width: 32em; margin-top: 17px; }
  .ai-visual {
    position: relative;
    inset: auto;
    display: block;
    width: min(calc(100% - 24px), 1000px);
    aspect-ratio: 16 / 9;
    margin: 0 auto clamp(12px, 3vw, 32px);
  }
  .ai-visual img {
    height: 100%;
    object-fit: cover;
    object-position: right center;
    mask-image:
      linear-gradient(90deg, transparent, #000 10%, #000 97.5%, transparent),
      linear-gradient(180deg, transparent, #000 14%, #000 89%, transparent);
  }
}

@media (max-width: 599px), (max-width: 760px) and (min-height: 481px) {
  .hero-stage {
    --hero-floor: linear-gradient(0deg, var(--hero-base), #080a13e8 25%, #080a1359 48%, transparent 65%);
  }
  .hero-content { padding-block: clamp(44px, 8vw, 68px) clamp(42px, 10vw, 76px); }
  .hero-copy h1 { font-size: clamp(33px, 9.4vw, 68px); }
  .hero-copy p { max-width: 27em; margin-top: 17px; text-wrap: balance; }
  .hero-visual { inset-block: 18% auto; height: 63%; mask-image: linear-gradient(180deg, transparent, #000 26%, #000 59%, transparent); }
  .hero-art { object-position: 65% bottom; }
  .hero-summary { grid-template-columns: minmax(0, 1fr); gap: 13px; }
  .hero-summary dl { padding-inline-end: 0; }
  .hero-summary dd { text-wrap: balance; }
  .hero-summary-group + .hero-summary-group { padding-inline-start: 0; padding-block-start: 12px; border-inline-start: 0; border-block-start: 1px solid #ffffff26; }
}

@media (min-width: 600px) and (max-height: 480px) {
  .hero-content { padding-block: 16px; }
  .hero-copy h1 { font-size: clamp(32px, 4.8vw, 52px); }
  .hero-copy p { max-width: 49em; margin-top: 10px; }
  .hero-summary { padding-block: 8px 12px; }
  .hero-summary h2 { margin-block-end: 4px; }
}

@media (max-width: 760px) {
  .value-section .section-intro, .cloud-section .section-intro { display: block; }
  .value-section .section-intro p, .cloud-section .section-intro p { margin-top: 16px; max-width: 28em; }
  .partner-section > .container, .service-section > .container { grid-template-columns: minmax(0, 1fr); }

  .pc-heading h2 { font-size: clamp(32px, 7.9vw, 52px); }
  .cloud-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 560px) {
  .value-steps { grid-template-columns: minmax(0, 1fr); }
  .value-card--pc .value-screen img { aspect-ratio: 16 / 9; }
  .mini-feature-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .mini-feature { grid-template-columns: 38px minmax(0, 1fr); gap: 12px; }
  .ai-visual { aspect-ratio: 3 / 2; }
}

@media (max-width: 360px) {
  .hero-content { padding-block: 32px 23px; }
  .hero-copy h1 { font-size: clamp(29px, 9.25vw, 34px); }
  .hero-copy p { font-size: 15px; line-height: 1.55; text-wrap: wrap; }
  .hero-summary { gap: 10px; padding-block: 11px 15px; }
  .hero-summary h2 { margin-block-end: 6px; }
  .hero-summary-group:first-child dl { grid-template-columns: minmax(0, 1fr) minmax(0, .9fr) minmax(0, 1.08fr); gap: 6px; }
  .hero-summary dt { font-size: 13px; }
  .hero-summary-group + .hero-summary-group { padding-block-start: 9px; }
}

@media (max-width: 380px), (min-width: 761px) and (max-width: 820px) {
  .cloud-grid .video-caption { display: grid; }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-copy h1 span { animation: launch-type 740ms var(--ease-out) both; }
  .hero-copy h1 span + span { animation-delay: 95ms; }
  .hero-copy p { animation: launch-type 690ms 185ms var(--ease-out) both; }
  .hero-art { animation: launch-material 1120ms var(--ease-out) both; }

  @keyframes launch-type { from { opacity: .25; transform: translateY(20px); } }
  @keyframes launch-material { from { opacity: .48; transform: scale(1.045); } }
}

@media (min-width: 761px) and (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: scroll()) {
    .hero-visual {
      animation: launch-depth linear both;
      animation-timeline: scroll(root block);
      animation-range: 0px 650px;
    }
    @keyframes launch-depth { to { transform: translateY(38px); } }
  }
}

@media (hover: hover) {
  .video-card:hover { box-shadow: var(--shadow-raised); border-color: #c3cbd3; }
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .video-cover img, .value-screen img { transition: transform 450ms var(--ease-out); }
  .video-card:is(:hover, :focus-visible) .video-cover img { transform: scale(1.025); }
  .value-card:hover .value-screen img { transform: scale(1.035); }
}

@media (prefers-reduced-motion: reduce) {
  .video-card:active, .video-card:is(:hover, :focus-visible) .play-mark { transform: none; }
}
