/* Project iScope: the instrument hero, signal notes, what it does, legal and related links.
   The optics are fixed light (the film's progress no longer repaints them; the drift it drove was not visible); the
   scanline sweeps on the compositor and rests while the hero is off screen or the film is paused. */
.iscope-hero {
  --cinematic-progress: 0;
  --cinematic-visibility: 1;
  position: relative;
  min-height: clamp(560px, 82svh, 860px);
  overflow: clip;
  isolation: isolate;
  background: #030604;
}

.iscope-hero__media,
.iscope-hero__scrim,
.iscope-hero__optics,
.iscope-hero__edge {
  position: absolute;
  inset: 0;
}

.iscope-hero__media {
  background: #030604;
}

.iscope-hero__media::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--iscope-poster) center / cover no-repeat;
  opacity: 0.9;
  transform: scale(1.01);
  transition: opacity var(--motion-settle) var(--ease-standard), transform 800ms var(--ease-standard);
}

.iscope-hero.is-cinematic-ready .iscope-hero__media::before {
  opacity: 0.16;
  transform: scale(1.02);
}

.iscope-hero__video {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  opacity: 0.96;
  filter: saturate(1.08) contrast(1.06) brightness(0.82);
  transform: scale(1.01);
  transition: opacity var(--motion-medium) var(--ease-standard), filter var(--motion-medium) var(--ease-standard);
}

.ua-safari .theme-iscope .iscope-hero__video {
  filter: none;
  transform: none;
}

.iscope-hero.is-video-playback-blocked .iscope-hero__video {
  opacity: 0.18;
}

.iscope-hero__scrim {
  z-index: 2;
  background:
    linear-gradient(90deg, rgba(2, 5, 4, 0.92) 0%, rgba(2, 5, 4, 0.62) 33%, rgba(2, 5, 4, 0.2) 62%, rgba(2, 5, 4, 0.68) 100%),
    linear-gradient(180deg, rgba(2, 5, 4, 0.36) 0%, rgba(2, 5, 4, 0.04) 42%, rgba(2, 5, 4, 0.78) 100%),
    radial-gradient(720px 420px at 62% 38%, rgba(98, 242, 179, 0.17), transparent 70%),
    radial-gradient(680px 380px at 78% 64%, rgba(227, 207, 138, 0.14), transparent 72%),
    radial-gradient(620px 340px at 50% 52%, rgba(125, 232, 255, 0.1), transparent 76%);
}

.iscope-hero__optics {
  z-index: 3;
  pointer-events: none;
  opacity: 0.68;
}

.iscope-hero__ring,
.iscope-hero__reticle,
.iscope-hero__scanline {
  position: absolute;
  pointer-events: none;
}

.iscope-hero__ring {
  border: 1px solid rgba(227, 207, 138, 0.14);
  border-radius: 50%;
  box-shadow:
    inset 0 0 0 1px rgba(98, 242, 179, 0.05),
    0 0 48px rgba(98, 242, 179, 0.08);
}

.iscope-hero__ring--outer {
  width: min(72vw, 860px);
  aspect-ratio: 1;
  right: -12%;
  top: 4%;
}

.iscope-hero__ring--inner {
  width: min(44vw, 520px);
  aspect-ratio: 1;
  right: 6%;
  top: 19%;
  border-color: rgba(125, 232, 255, 0.18);
}

.iscope-hero__reticle {
  width: min(18vw, 180px);
  aspect-ratio: 1;
  right: 17%;
  top: 35%;
  background:
    linear-gradient(90deg, transparent calc(50% - 1px), rgba(248, 251, 242, 0.36) 50%, transparent calc(50% + 1px)),
    linear-gradient(0deg, transparent calc(50% - 1px), rgba(248, 251, 242, 0.36) 50%, transparent calc(50% + 1px));
  border: 1px solid rgba(248, 251, 242, 0.16);
  border-radius: 50%;
  opacity: 0.32;
}

.iscope-hero__scanline {
  left: -12%;
  right: -12%;
  top: 18%;
  height: 18%;
  background: linear-gradient(180deg, transparent, rgba(125, 232, 255, 0.16), transparent);
  mix-blend-mode: screen;
  opacity: 0.32;
  animation: iscope-scanline 12s ease-in-out infinite;
}

/* Rest the sweep where no one can see it: off screen (main.js sets --cinematic-visibility) or with the film paused. */
.iscope-hero[data-cinematic-paused="true"] .iscope-hero__scanline {
  animation-play-state: paused;
}

@container style(--cinematic-visibility: 0) {
  .iscope-hero__scanline {
    animation-play-state: paused;
  }
}

.iscope-hero__layout {
  position: relative;
  z-index: 4;
  min-height: inherit;
  display: grid;
  align-items: end;
  padding-top: 5.5rem;
  padding-bottom: 3.8rem;
}

.iscope-hero__copy {
  max-width: 42rem;
}

.iscope-hero__eyebrow {
  color: var(--brass-hi);
  text-shadow: 0 1px 10px rgba(2, 5, 4, 0.7);
  min-height: 44px;
  margin-block: -9px;
  display: inline-flex;
  align-items: center;
}

.iscope-hero__brand {
  display: flex;
  align-items: center;
  margin-bottom: 1.35rem;
}

.iscope-hero__brand > div {
  min-width: 0;
}

.iscope-hero__status,
.iscope-hero__division {
  margin: 0;
  letter-spacing: 0;
}

.iscope-hero__status {
  font-family: var(--font-display);
  font-size: clamp(1.08rem, 0.98rem + 0.42vw, 1.34rem);
  line-height: 1.02;
  font-weight: var(--heading-weight);
  color: rgba(132, 255, 190, 0.98);
  text-shadow: 0 0 24px rgba(98, 242, 179, 0.18), 0 1px 12px rgba(2, 5, 4, 0.7);
}

.iscope-hero__division {
  max-width: 24rem;
  margin-top: 0.38rem;
  font-family: var(--font-text);
  font-size: 0.82rem;
  line-height: 1.28;
  font-weight: 500;
  color: rgba(248, 251, 242, 0.84);
  text-shadow: 0 1px 12px rgba(2, 5, 4, 0.75);
  text-wrap: balance;
}

.iscope-hero__title {
  margin: 0;
  font-size: 5.4rem;
  line-height: 0.96;
  letter-spacing: var(--track-title);
  color: #fbfff5;
  white-space: nowrap;
  text-shadow:
    0 22px 56px rgba(0, 0, 0, 0.48),
    0 0 28px rgba(98, 242, 179, 0.1);
}

.iscope-hero__copy {
  min-width: 0;
}

/* One line where it fits (about 560px); below that the promise wraps into balanced lines. */
.iscope-hero__tagline {
  max-width: none;
  margin: 1.05rem 0 0;
  font-size: 1.16rem;
  line-height: 1.36;
  color: rgba(248, 251, 242, 0.88);
  white-space: nowrap;
}

.iscope-hero__edge {
  z-index: 3;
  inset: auto 0 0;
  height: clamp(18px, 3.8svh, 34px);
  background:
    linear-gradient(180deg, rgba(3, 6, 4, 0) 0%, rgba(3, 6, 4, 0.18) 58%, rgba(3, 6, 4, 0.63) 100%),
    linear-gradient(90deg, rgba(98, 242, 179, 0.05), rgba(227, 207, 138, 0.055), rgba(125, 232, 255, 0.04));
  opacity: 0.36;
}

/* The film's Pause/Play control (main.js owns its behaviour, one implementation for every cinematic hero). */
.iscope-hero__motion {
  position: absolute;
  right: calc((100% - min(var(--max-width), 100% - 2.5rem)) / 2);
  bottom: 1.4rem;
  z-index: 5;
  min-height: 44px;
  padding: 0.5rem 1.1rem;
  border: 1px solid rgba(227, 207, 138, 0.32);
  border-radius: 999px;
  background: rgba(3, 7, 6, 0.52);
  color: rgba(248, 251, 242, 0.9);
  font: inherit;
  font-size: var(--text-label);
  cursor: pointer;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: background-color var(--motion-quick) var(--ease-standard), border-color var(--motion-quick) var(--ease-standard), color var(--motion-quick) var(--ease-standard);
}

.iscope-hero__motion[hidden] {
  display: none;
}

.iscope-hero__motion:is(:hover, :focus-visible) {
  background: rgba(12, 22, 17, 0.8);
  border-color: rgba(227, 207, 138, 0.6);
  color: #fbfff5;
}

.iscope-hero__motion:active {
  scale: 0.985;
  opacity: 1;
  background: rgba(20, 34, 26, 0.86);
  transition-duration: var(--motion-instant);
}

.iscope-signal {
  position: relative;
  z-index: 2;
  padding: 1.3rem 0 4.2rem;
  background:
    linear-gradient(180deg, rgba(3, 6, 4, 0.94), rgba(5, 9, 7, 0.98));
}

.iscope-signal__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.08);
}

.iscope-signal__item {
  min-height: 116px;
  padding: 1.15rem 1.3rem;
  display: grid;
  align-content: center;
  background:
    linear-gradient(180deg, rgba(10, 17, 13, 0.94), rgba(8, 13, 10, 0.9));
}

.iscope-signal__item p {
  margin: 0 0 0.3rem;
  color: rgba(227, 207, 138, 0.82);
  font-size: var(--text-label);
  text-transform: uppercase;
  letter-spacing: var(--track-label);
  font-weight: 500;
}

.iscope-signal__item strong {
  color: #fbfff5;
  font-size: 1.05rem;
  line-height: 1.22;
}

/* What it does: the product in one sentence, then its three working parts. */
.iscope-brief {
  position: relative;
  z-index: 2;
  padding: clamp(2.5rem, 1.5rem + 3vw, 4.5rem) 0 clamp(3rem, 2rem + 3vw, 4.5rem);
  background: linear-gradient(180deg, rgba(5, 9, 7, 0.98), rgba(5, 9, 7, 0.98));
}

.iscope-brief__head {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
  gap: 1.25rem clamp(2rem, 6vw, 5rem);
  align-items: baseline;
}

.iscope-brief h2 {
  margin: 0;
  color: #fbfff5;
}

.iscope-brief .iscope-brief__lead {
  margin: 0;
  max-width: 36ch;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 1rem + 1.3vw, 2rem);
  line-height: 1.32;
  letter-spacing: var(--track-heading);
  color: rgba(248, 251, 242, 0.9);
  text-wrap: pretty;
}

.iscope-brief__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem clamp(1.5rem, 3vw, 2.75rem);
  margin: clamp(2.5rem, 2rem + 2vw, 4rem) 0 0;
  padding: 0;
  list-style: none;
}

.iscope-brief__list li {
  position: relative;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

/* A short brass reading on each rule, like the dial's cue. */
.iscope-brief__list li::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 2.5rem;
  height: 1px;
  background: linear-gradient(90deg, var(--brass-hi), var(--brass-mid));
}

.iscope-brief__index {
  display: block;
  margin-bottom: 0.9rem;
  font-size: var(--text-label);
  font-weight: 500;
  letter-spacing: var(--track-label);
  color: rgba(227, 207, 138, 0.82);
  font-variant-numeric: tabular-nums;
}

.iscope-brief__list h3 {
  margin: 0 0 0.5rem;
  font-family: var(--font-text);
  font-size: 1.08rem;
  font-weight: 500;
  letter-spacing: var(--track-heading);
  color: #fbfff5;
}

.iscope-brief__list p {
  margin: 0;
  max-width: 34ch;
  font-size: 0.94rem;
  line-height: 1.62;
  color: rgba(248, 251, 242, 0.7);
}

@media (max-width: 860px) {
  .iscope-brief__head {
    grid-template-columns: minmax(0, 1fr);
  }

  .iscope-brief__list {
    grid-template-columns: minmax(0, 1fr);
  }
}

.iscope-legal {
  position: relative;
  z-index: 2;
  padding: 2.2rem 0 4.2rem;
  background:
    linear-gradient(180deg, rgba(5, 9, 7, 0.98), rgba(6, 12, 9, 0.98));
}

.iscope-legal .section-heading h2 {
  color: #fbfff5;
}

.iscope-legal .section-heading p {
  color: rgba(248, 251, 242, 0.68);
}

.iscope-legal .legal-link {
  border-color: rgba(227, 207, 138, 0.22);
  background:
    linear-gradient(180deg, rgba(248, 251, 242, 0.08), rgba(248, 251, 242, 0.035)),
    rgba(8, 13, 10, 0.9);
  color: rgba(248, 251, 242, 0.92);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.18);
}

.iscope-legal .legal-link:is(:hover, :focus-visible) {
  color: #e3cf8a;
  border-color: rgba(98, 242, 179, 0.45);
}

.iscope-related {
  padding-top: 2.8rem;
  background:
    radial-gradient(820px 420px at 20% 0%, rgba(98, 242, 179, 0.09), transparent 72%),
    radial-gradient(760px 420px at 88% 10%, rgba(227, 207, 138, 0.1), transparent 72%),
    linear-gradient(180deg, #050907, #070d0a);
}

.iscope-related .section-heading h2 {
  color: #fbfff5;
  letter-spacing: 0;
}

.iscope-related .section-heading p {
  color: rgba(248, 251, 242, 0.68);
}

/* Three neighbours, one row where they fit. */
@media (min-width: 961px) {
  .iscope-related .project-related-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.iscope-related .project-card {
  background: rgba(8, 13, 10, 0.86);
  border-color: rgba(255, 255, 255, 0.12);
}

.iscope-related .project-card:is(:hover, :focus-visible) {
  border-color: rgba(227, 207, 138, 0.22);
}

@keyframes iscope-scanline {
  0% {
    transform: translateY(-60%);
  }
  50% {
    transform: translateY(260%);
  }
  100% {
    transform: translateY(-60%);
  }
}

@media (max-width: 960px) {
  .iscope-hero {
    min-height: clamp(520px, calc(100svh - 96px), 680px);
  }

  .iscope-hero__layout {
    padding-top: 4.8rem;
    padding-bottom: 3.2rem;
  }

  .iscope-hero__title {
    font-size: 4.4rem;
  }

  .iscope-hero__tagline {
    max-width: 32ch;
    font-size: 1.05rem;
    white-space: normal;
    text-wrap: balance;
  }

  .iscope-hero__ring--outer {
    width: 720px;
    right: -330px;
  }

  .iscope-hero__ring--inner {
    width: 420px;
    right: -130px;
  }

  .iscope-signal__grid {
    grid-template-columns: 1fr;
  }

  .iscope-signal__item {
    min-height: 88px;
  }
}

@media (max-width: 620px) {
  .iscope-hero__layout {
    padding-top: 4rem;
    padding-bottom: 2.8rem;
  }

  .iscope-hero__brand {
    align-items: flex-start;
  }

  .iscope-hero__title {
    font-size: clamp(2.3rem, 11vw, 3rem);
  }

  .iscope-hero__tagline {
    font-size: 1rem;
  }

  .iscope-hero__reticle {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .iscope-hero__video,
  .iscope-hero__media::before,
  .iscope-hero__scanline {
    transition: none;
    animation: none;
  }
}

.iscope-hero__brand {
  gap: 1.3rem;
}

.iscope-hero__brand > div {
  max-width: 22rem;
}

.iscope-hero__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.7rem 1rem;
  margin-top: 1.35rem;
}

.iscope-hero__time {
  display: grid;
  gap: 0.15rem;
  margin: 0;
  color: rgba(248, 251, 242, 0.52) !important;
  font-size: 0.7rem;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}

.iscope-hero__time span {
  color: rgba(227, 207, 138, 0.68);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.iscope-hero__time time {
  color: rgba(132, 255, 190, 0.88);
}

@media (max-width: 700px) {
  /* On a portrait screen the copy stands over the film's brightest cells: the scrim deepens under it. */
  .iscope-hero__scrim {
    background:
      linear-gradient(180deg, rgba(2, 5, 4, 0) 28%, rgba(2, 5, 4, 0.62) 50%, rgba(2, 5, 4, 0.82) 70%, rgba(2, 5, 4, 0.88) 100%),
      linear-gradient(90deg, rgba(2, 5, 4, 0.6) 0%, rgba(2, 5, 4, 0.2) 70%),
      radial-gradient(720px 420px at 62% 38%, rgba(98, 242, 179, 0.17), transparent 70%),
      radial-gradient(620px 340px at 50% 52%, rgba(125, 232, 255, 0.1), transparent 76%);
  }

  /* A soft pool of shade travels with the copy, wherever a short screen places it over the film. */
  .iscope-hero__copy {
    position: relative;
    isolation: isolate;
  }

  .iscope-hero__copy::before {
    content: "";
    position: absolute;
    inset: -18% -24% -6% -30%;
    z-index: -1;
    pointer-events: none;
    background: radial-gradient(closest-side, rgba(2, 5, 4, 0.66), rgba(2, 5, 4, 0.4) 62%, rgba(2, 5, 4, 0));
  }

  .iscope-hero__brand {
    align-items: center;
    gap: 0.9rem;
  }

  .iscope-hero__actions {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 420px) {
  .iscope-hero__brand {
    gap: 0.75rem;
  }
}

/* Phone landscape: a hero taller than the screen would sink the bottom-aligned heading below the fold. */
@media (max-height: 540px) and (orientation: landscape) {
  .iscope-hero {
    min-height: 0;
  }

  .iscope-hero__layout {
    padding-top: 2.5rem;
  }
}
