.header-brand-group {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 16px;
  min-width: 0;
}

.header-brand-group .brand {
  flex: 0 0 auto;
  min-width: 0;
}

.header-brand-group .brand img {
  width: clamp(150px, 10vw, 190px);
}

.header-programs {
  display: flex;
  align-items: center;
  gap: 9px;
  max-width: 320px;
  padding-left: 16px;
  overflow: hidden;
  border-left: 1px solid rgba(18, 58, 111, 0.14);
  opacity: 1;
  transform: translateY(0);
  white-space: nowrap;
  transition:
    max-width 220ms ease,
    padding 220ms ease,
    border-color 180ms ease,
    opacity 150ms ease,
    transform 220ms ease;
}

.site-header.programs-scrolled .header-programs {
  max-width: 0;
  padding-left: 0;
  border-left-color: transparent;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-7px);
}

.header-programs__label {
  color: #7a8797;
  font-size: 8px;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.header-programs__marks {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-program-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
}

.header-program-mark--google {
  gap: 3px;
}

.header-program-mark--google img {
  width: 42px;
  height: auto;
}

.header-program-mark--google small {
  color: #4f5967;
  font-size: 7px;
  font-weight: 650;
}

.header-program-mark--aws {
  position: relative;
  width: 50px;
  overflow: hidden;
  border-radius: 6px;
  background: #233247;
}

.header-program-mark--aws img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.header-program-mark--aws small {
  position: absolute;
  right: 3px;
  bottom: 2px;
  left: 3px;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.94);
  font-size: 5px;
  font-weight: 800;
  line-height: 1;
  text-align: center;
  text-overflow: ellipsis;
}

.header-program-mark--nvidia img {
  width: 90px;
  max-height: 34px;
}

@media (max-width: 1320px) {
  .header-brand-group {
    gap: 10px;
  }

  .header-programs {
    gap: 6px;
    padding-left: 10px;
  }

  .header-programs__label {
    display: none;
  }

  .header-programs__marks {
    gap: 8px;
  }
}

@media (max-width: 820px) {
  .header-brand-group {
    display: contents;
  }

  .header-brand-group .brand {
    grid-column: 1;
    grid-row: 1;
  }

  .header-brand-group .brand img {
    width: 162px;
  }

  .header-programs {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: flex-start;
    width: max-content;
    max-width: 100%;
    max-height: 34px;
    min-height: 34px;
    padding: 2px 0 0;
    border-top: 1px solid rgba(18, 58, 111, 0.09);
    border-left: 0;
    transition:
      max-height 220ms ease,
      min-height 220ms ease,
      padding 220ms ease,
      border-color 180ms ease,
      opacity 150ms ease,
      transform 220ms ease;
  }

  .site-header.programs-scrolled .header-programs {
    max-width: 100%;
    max-height: 0;
    min-height: 0;
    padding-top: 0;
    border-top-color: transparent;
    transform: translateY(-5px);
  }

  .header-programs__label {
    display: inline;
    font-size: 7px;
  }

  .header-program-mark {
    height: 28px;
  }

  .header-program-mark--nvidia img {
    width: 80px;
    max-height: 31px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .header-programs {
    transition: none;
  }
}

@media (max-width: 430px) {
  .header-programs {
    gap: 5px;
  }

  .header-programs__marks {
    gap: 9px;
  }

  .header-program-mark--google img {
    width: 38px;
  }

  .header-program-mark--google small {
    font-size: 6px;
  }

  .header-program-mark--aws {
    width: 45px;
  }

  .header-program-mark--nvidia img {
    width: 74px;
  }
}

/* Internal homepage hero draft — intentionally scoped to the local draft page. */
.hero-clarity {
  grid-template-columns: minmax(360px, 0.82fr) minmax(600px, 1.18fr);
  align-items: center;
  gap: clamp(46px, 5vw, 84px);
  min-height: clamp(610px, calc(100svh - 132px), 790px);
  padding-top: clamp(42px, 6vh, 70px);
  padding-bottom: clamp(46px, 7vh, 78px);
}

.hero-clarity .hero-copy {
  padding-top: 0;
}

.hero-clarity .eyebrow {
  max-width: 520px;
  margin-bottom: 20px;
}

.hero-clarity h1 {
  max-width: 650px;
  margin-bottom: 24px;
  font-size: clamp(48px, 4.3vw, 70px);
  line-height: 1.01;
}

.hero-clarity .hero-text {
  max-width: 590px;
  margin-bottom: 30px;
  font-size: clamp(18px, 1.25vw, 21px);
  line-height: 1.55;
}

.hero-clarity .hero-actions {
  margin-bottom: 0;
}

.hero-clarity .button.primary {
  min-height: 52px;
  padding-inline: 26px;
}

.hero-workflow {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(18, 58, 111, 0.13);
  border-radius: 26px;
  background: #ffffff;
  box-shadow: 0 28px 80px rgba(18, 58, 111, 0.14);
}

.hero-workflow__rail {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 50px;
  padding: 10px 18px;
  border-bottom: 1px solid var(--soft-line);
  color: #718096;
  background: #fbfcfd;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.hero-workflow__rail span.is-active {
  color: var(--teal);
}

.hero-workflow__rail i {
  color: #a9b7c7;
  font-style: normal;
}

.hero-workflow__canvas {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) 26px minmax(0, 0.72fr) 26px minmax(0, 1fr);
  align-items: center;
  min-height: 430px;
  padding: 28px 24px 24px;
  overflow: hidden;
  background:
    linear-gradient(rgba(18, 58, 111, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(18, 58, 111, 0.035) 1px, transparent 1px),
    linear-gradient(145deg, #f8fbfc, #eef5f6);
  background-size: 34px 34px, 34px 34px, auto;
}

.hero-workflow__canvas::before {
  content: "";
  position: absolute;
  top: 50%;
  right: 11%;
  left: 11%;
  height: 1px;
  background: rgba(13, 118, 110, 0.18);
}

.workflow-plan,
.workflow-capture {
  position: relative;
  z-index: 2;
  margin: 0;
}

.workflow-plan figcaption,
.workflow-capture figcaption,
.workflow-result__head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  color: var(--navy);
  font-size: 12px;
}

.workflow-plan figcaption > span,
.workflow-capture figcaption > span,
.workflow-result__head > span {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border-radius: 8px;
  color: #ffffff;
  background: var(--navy);
  font-size: 9px;
  font-weight: 900;
}

.workflow-plan__sheet {
  position: relative;
  padding: 8px 8px 28px;
  overflow: hidden;
  border: 1px solid #d7e0e6;
  border-radius: 9px;
  background: #ffffff;
  box-shadow: 0 14px 35px rgba(16, 41, 74, 0.14);
  transform: rotate(-2deg);
}

.workflow-plan__sheet img {
  width: 100%;
  height: 225px;
  object-fit: cover;
  object-position: center;
  border: 1px solid #edf1f4;
}

.workflow-plan__sheet small {
  position: absolute;
  right: 10px;
  bottom: 7px;
  left: 10px;
  overflow: hidden;
  color: #68758a;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.workflow-phone {
  width: min(154px, 100%);
  margin: 0 auto;
  padding: 7px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 24px;
  background: #10243f;
  box-shadow: 0 18px 42px rgba(5, 11, 31, 0.24);
}

.workflow-phone__screen {
  position: relative;
  height: 282px;
  overflow: hidden;
  border-radius: 18px;
  background: #dce5e7;
}

.workflow-phone__screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 57% center;
}

.workflow-phone__screen::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 11, 31, 0.22), transparent 24%, transparent 70%, rgba(5, 11, 31, 0.45));
}

.workflow-recording,
.workflow-timecode {
  position: absolute;
  z-index: 2;
  top: 12px;
  color: #ffffff;
  font-size: 8px;
  font-weight: 900;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.45);
}

.workflow-recording {
  left: 10px;
}

.workflow-recording i {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 3px;
  border-radius: 50%;
  background: #f97316;
}

.workflow-timecode {
  right: 10px;
}

.workflow-connector {
  position: relative;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(13, 118, 110, 0.2);
  border-radius: 50%;
  color: var(--teal);
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(13, 118, 110, 0.12);
  font-size: 16px;
  font-weight: 900;
}

.workflow-result {
  position: relative;
  z-index: 2;
  min-width: 0;
  padding: 14px;
  border: 1px solid #d7e0e6;
  border-radius: 15px;
  background: #ffffff;
  box-shadow: 0 18px 44px rgba(16, 41, 74, 0.16);
}

.workflow-result > img {
  width: 100%;
  height: 115px;
  object-fit: cover;
  object-position: top center;
  border: 1px solid var(--soft-line);
  border-radius: 8px;
}

.workflow-result__finding {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 10px;
  padding: 10px;
  border: 1px solid rgba(249, 115, 22, 0.16);
  border-radius: 10px;
  background: rgba(249, 115, 22, 0.06);
}

.finding-status {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  color: #ffffff;
  background: var(--orange);
  font-size: 13px;
  font-weight: 950;
}

.workflow-result__finding small,
.workflow-result__finding strong,
.workflow-result__finding p {
  display: block;
  margin: 0;
}

.workflow-result__finding small {
  color: #8a5a33;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.workflow-result__finding strong {
  margin: 2px 0 3px;
  color: var(--navy);
  font-size: 11px;
}

.workflow-result__finding p {
  color: var(--muted);
  font-size: 8px;
  line-height: 1.35;
}

.workflow-result__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 10px;
  color: #637083;
  font-size: 8px;
  font-weight: 800;
}

.workflow-result__footer strong {
  padding: 4px 8px;
  border-radius: 999px;
  color: var(--teal);
  background: var(--teal-soft);
  font-size: 8px;
}

.workflow-scanline {
  position: absolute;
  z-index: 1;
  top: 22%;
  bottom: 16%;
  left: 45%;
  width: 1px;
  background: linear-gradient(transparent, rgba(13, 118, 110, 0.4), transparent);
  box-shadow: 0 0 18px rgba(13, 118, 110, 0.32);
}

.hero-workflow__caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 52px;
  padding: 12px 20px;
  border-top: 1px solid var(--soft-line);
  color: var(--navy);
  background: #ffffff;
  font-size: 11px;
  font-weight: 850;
}

.hero-workflow__caption small {
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  text-align: right;
}

@media (max-width: 1180px) {
  .hero-clarity {
    grid-template-columns: minmax(320px, 0.8fr) minmax(520px, 1.2fr);
    gap: 36px;
  }

  .hero-clarity h1 {
    font-size: clamp(44px, 5vw, 60px);
  }

  .hero-workflow__canvas {
    grid-template-columns: minmax(0, 1fr) 22px minmax(0, 0.7fr) 22px minmax(0, 0.96fr);
    min-height: 390px;
    padding: 22px 16px 20px;
  }

  .workflow-plan__sheet img {
    height: 190px;
  }

  .workflow-phone__screen {
    height: 245px;
  }
}

@media (min-width: 961px) and (max-height: 820px) {
  .hero-clarity {
    min-height: calc(100svh - 132px);
    padding-top: 32px;
    padding-bottom: 34px;
  }

  .hero-workflow__rail {
    min-height: 44px;
  }

  .hero-workflow__canvas {
    min-height: 375px;
  }

  .workflow-plan__sheet img {
    height: 185px;
  }

  .workflow-phone__screen {
    height: 238px;
  }

  .workflow-result > img {
    height: 98px;
  }

  .hero-workflow__caption {
    min-height: 46px;
  }
}

@media (max-width: 960px) {
  .hero-clarity {
    grid-template-columns: 1fr;
    gap: 38px;
    min-height: auto;
  }

  .hero-clarity .hero-copy {
    max-width: 720px;
  }

  .hero-clarity h1 {
    max-width: 720px;
  }

  .hero-workflow {
    width: min(760px, 100%);
  }
}

@media (max-width: 680px) {
  .hero-clarity {
    gap: 30px;
    padding-top: 42px;
    padding-bottom: 56px;
  }

  .hero-clarity .eyebrow {
    margin-bottom: 16px;
    font-size: 11px;
    line-height: 1.45;
  }

  .hero-clarity h1 {
    margin-bottom: 20px;
    font-size: clamp(40px, 11.5vw, 54px);
  }

  .hero-clarity .hero-text {
    margin-bottom: 26px;
    font-size: 17px;
  }

  .hero-clarity .hero-actions {
    display: flex;
  }

  .hero-workflow {
    border-radius: 20px;
  }

  .hero-workflow__rail {
    gap: 7px;
    padding-inline: 10px;
    font-size: 8px;
  }

  .hero-workflow__canvas {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 20px;
  }

  .hero-workflow__canvas::before,
  .workflow-scanline {
    display: none;
  }

  .workflow-plan,
  .workflow-capture,
  .workflow-result {
    width: min(300px, 100%);
    margin-inline: auto;
  }

  .workflow-plan__sheet img {
    height: 170px;
  }

  .workflow-phone {
    width: min(188px, 72%);
  }

  .workflow-phone__screen {
    height: 250px;
  }

  .workflow-connector {
    justify-self: center;
    transform: rotate(90deg);
  }

  .workflow-result > img {
    height: 145px;
  }

  .hero-workflow__caption {
    display: block;
  }

  .hero-workflow__caption small {
    display: block;
    margin-top: 4px;
    text-align: left;
  }
}
