/* Fortexa AI landing. The page runs from night (the scan) to day (the report).
   Brand greens come from fortexa-mark.svg. */

@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-display: swap;
  font-weight: 100 700;
  src: url('fonts/ibm-plex-sans-cyrillic-ext-wght-normal.woff2')
    format('woff2-variations');
  unicode-range:
    U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-display: swap;
  font-weight: 100 700;
  src: url('fonts/ibm-plex-sans-cyrillic-wght-normal.woff2')
    format('woff2-variations');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-display: swap;
  font-weight: 100 700;
  src: url('fonts/ibm-plex-sans-latin-ext-wght-normal.woff2')
    format('woff2-variations');
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
    U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB,
    U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-display: swap;
  font-weight: 100 700;
  src: url('fonts/ibm-plex-sans-latin-wght-normal.woff2')
    format('woff2-variations');
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url('fonts/ibm-plex-mono-cyrillic-ext-400-normal.woff2') format('woff2');
  unicode-range:
    U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url('fonts/ibm-plex-mono-cyrillic-400-normal.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url('fonts/ibm-plex-mono-latin-ext-400-normal.woff2') format('woff2');
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
    U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB,
    U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url('fonts/ibm-plex-mono-latin-400-normal.woff2') format('woff2');
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url('fonts/ibm-plex-mono-cyrillic-ext-500-normal.woff2') format('woff2');
  unicode-range:
    U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url('fonts/ibm-plex-mono-cyrillic-500-normal.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url('fonts/ibm-plex-mono-latin-ext-500-normal.woff2') format('woff2');
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
    U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB,
    U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url('fonts/ibm-plex-mono-latin-500-normal.woff2') format('woff2');
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url('fonts/ibm-plex-mono-cyrillic-ext-600-normal.woff2') format('woff2');
  unicode-range:
    U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url('fonts/ibm-plex-mono-cyrillic-600-normal.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url('fonts/ibm-plex-mono-latin-ext-600-normal.woff2') format('woff2');
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
    U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB,
    U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url('fonts/ibm-plex-mono-latin-600-normal.woff2') format('woff2');
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}

/* ---------- Tokens ---------- */

:root {
  color-scheme: dark;

  --night: #030605;
  --night-2: #0a1512;
  --paper: #eef3ef;
  --paper-2: #e2ebe5;
  --white: #fbfdfb;

  --mint: #3ee0a8;
  --mint-hi: #8af7cf;
  --mint-deep: #0c9f7a;
  --mint-ink: #02110b;
  --pine: #0a6e52;
  --coral: #ff6a5c;
  --coral-ink: #b3261b;
  --amber: #ffc56b;

  --display: 'IBM Plex Sans', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --sans: 'IBM Plex Sans', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'Cascadia Code', Consolas, monospace;

  --gutter: clamp(16px, 4vw, 44px);
  /* The column grows on wide monitors instead of leaving a third of the screen empty. */
  --max: clamp(1200px, 72vw, 1440px);
  --nav-h: 60px;
  --band: clamp(88px, 12vw, 168px);
  --radius: 6px;
  --radius-sm: 4px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
}

/* Each band sets its own surface, so components read the same names in both halves of the page. */
.night {
  --bg: var(--night);
  --surface: var(--night-2);
  --fg: #eaf3ef;
  --fg-2: #a9bdb6;
  --fg-3: #7d928b;
  --line: rgb(160 255 220 / 0.13);
  --line-2: rgb(160 255 220 / 0.26);
  --accent: var(--mint);
  --alert: var(--coral);
  background: var(--bg);
  color: var(--fg);
}
.day {
  --bg: var(--paper);
  --surface: var(--white);
  --fg: #0a1f1a;
  --fg-2: #33493f;
  --fg-3: #556a62;
  --line: rgb(10 31 26 / 0.13);
  --line-2: rgb(10 31 26 / 0.3);
  --accent: var(--pine);
  --alert: var(--coral-ink);
  background: var(--bg);
  color: var(--fg);
}

/* ---------- Base ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-padding-top: calc(var(--nav-h) + 28px);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  @media (prefers-reduced-motion: no-preference) {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background: var(--night);
  color: #eaf3ef;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-feature-settings: 'cv11', 'ss03';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

img,
svg,
video {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
}
button,
input {
  font: inherit;
  color: inherit;
}
h1,
h2,
h3,
p,
ul,
ol,
dl,
dd,
figure,
fieldset {
  margin: 0;
  padding: 0;
}
ul,
ol {
  list-style: none;
}
fieldset {
  border: 0;
  min-width: 0;
}
code,
pre {
  font-family: var(--mono);
}
[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 2px solid var(--accent, var(--mint));
  outline-offset: 3px;
  border-radius: 4px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 6px;
  background: var(--mint);
  color: var(--mint-ink);
  font-weight: 600;
  text-decoration: none;
  translate: 0 -200%;
}
.skip-link:focus-visible {
  translate: 0 0;
}

.wrap {
  width: min(100%, var(--max) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.band {
  padding-block: var(--band);
}

/* ---------- Type ---------- */

.display {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.5rem, 5.6vw, 5.2rem);
  line-height: 1;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.9rem, 3.9vw, 3.4rem);
  line-height: 1.06;
  letter-spacing: -0.015em;
  text-wrap: balance;
  max-width: 21ch;
}
h3 {
  font-family: var(--display);
  font-weight: 650;
  font-size: 1.3rem;
  line-height: 1.2;
  letter-spacing: -0.005em;
}
.lead {
  color: var(--fg-2);
  font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
  line-height: 1.55;
  max-width: 56ch;
  text-wrap: pretty;
}
.head {
  display: grid;
  gap: 22px;
  margin-bottom: clamp(48px, 7vw, 88px);
}
.fineprint {
  color: var(--fg-3);
  font-size: 0.9rem;
  max-width: 58ch;
}

/* Wide display type meets long Kazakh and Russian words on phones: narrow the letters there. */
.display,
.h2 {
  overflow-wrap: break-word;
}
@media (max-width: 560px) {
  .display {
    font-size: clamp(2.1rem, 9.4vw, 2.6rem);
  }
  .h2 {
    font-size: clamp(1.7rem, 7.6vw, 2rem);
  }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 26px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color 0.2s,
    border-color 0.2s,
    color 0.2s,
    scale 0.2s var(--ease-out);
}
.btn:active {
  scale: 0.98;
}
.btn--primary {
  background: var(--mint);
  color: var(--mint-ink);
}
.btn--primary:hover {
  background: var(--mint-hi);
}
.day .btn--primary {
  background: #0a1f1a;
  color: var(--mint-hi);
}
.day .btn--primary:hover {
  background: #123329;
}
.btn--ghost {
  border-color: var(--line-2);
  color: var(--fg);
}
.btn--ghost:hover {
  border-color: var(--accent);
}
.btn--sm {
  min-height: 40px;
  padding: 0 18px;
  font-size: 0.9375rem;
}
.nav__cta {
  white-space: nowrap;
}
.btn--lg {
  min-height: 60px;
  padding: 0 34px;
  font-size: 1.0625rem;
}
.btn--block {
  width: 100%;
}

/* ---------- Nav ---------- */

.nav {
  position: fixed;
  inset: 14px 0 auto;
  z-index: 50;
  padding-inline: var(--gutter);
  pointer-events: none;
}
.nav__bar {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 8px 28px;
  width: min(100%, var(--max));
  min-height: var(--nav-h);
  margin-inline: auto;
  padding: 8px 10px 8px 20px;
  border: 1px solid rgb(160 255 220 / 0.16);
  border-radius: 10px;
  background: rgb(6 13 11 / 0.86);
  backdrop-filter: blur(18px) saturate(1.4);
  color: #eaf3ef;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.125rem;
  white-space: nowrap;
  text-decoration: none;
}
/* "Fortexa AI" is longer than the old name: on the narrowest phones the bar tightens so the menu button
   keeps clear of its edge. */
@media (max-width: 400px) {
  .nav__bar {
    column-gap: 12px;
    padding-left: 14px;
  }
  .brand {
    gap: 8px;
    font-size: 1rem;
  }
}
.nav__links {
  display: flex;
  gap: 4px;
  margin-right: auto;
}
.nav__links a {
  padding: 8px 14px;
  border-radius: 4px;
  color: #a9bdb6;
  font-size: 0.9375rem;
  text-decoration: none;
  transition:
    color 0.2s,
    background-color 0.2s;
}
.nav__links a:hover,
.nav__links a[aria-current='true'] {
  color: #eaf3ef;
  background: rgb(160 255 220 / 0.1);
}
.nav__end {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}
.lang {
  display: flex;
  padding: 3px;
  border: 1px solid rgb(160 255 220 / 0.16);
  border-radius: 6px;
}
.lang button {
  min-width: 40px;
  min-height: 32px;
  border: 0;
  border-radius: 4px;
  background: none;
  color: #a9bdb6;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
}
.lang button[aria-pressed='true'] {
  background: rgb(160 255 220 / 0.14);
  color: #eaf3ef;
}
.nav__menu {
  display: none;
  place-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 6px;
  background: rgb(160 255 220 / 0.1);
  cursor: pointer;
}
.nav__menu span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: #eaf3ef;
  transition:
    translate 0.25s var(--ease-out),
    rotate 0.25s var(--ease-out);
}
.nav__menu[aria-expanded='true'] span:first-child {
  translate: 0 4px;
  rotate: 45deg;
}
.nav__menu[aria-expanded='true'] span:last-child {
  translate: 0 -4px;
  rotate: -45deg;
}
.mobile-menu {
  pointer-events: auto;
  display: grid;
  gap: 4px;
  width: min(100%, var(--max));
  margin: 8px auto 0;
  padding: 14px;
  border: 1px solid rgb(160 255 220 / 0.16);
  border-radius: 24px;
  background: rgb(6 13 11 / 0.94);
  backdrop-filter: blur(18px);
  color: #eaf3ef;
}
/* The menu drops in when it opens; closing stays instant. */
@media (prefers-reduced-motion: no-preference) {
  .mobile-menu {
    transition:
      opacity 0.22s ease,
      translate 0.32s var(--ease-out);
  }
  @starting-style {
    .mobile-menu {
      opacity: 0;
      translate: 0 -10px;
    }
  }
}
.mobile-menu a:not(.btn) {
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 1.0625rem;
  text-decoration: none;
}
.mobile-menu .btn {
  margin-top: 8px;
}

/* The bar folds into the menu a little above the 860 px layout breakpoint: with the longer name and the
   Kazakh labels the links and the call no longer fit on one line below about 930 px. */
@media (max-width: 940px) {
  .nav__links,
  .nav__cta {
    display: none;
  }
  .nav__menu {
    display: grid;
  }
}

/* Scroll progress: decorative, so browsers without scroll timelines simply do not show it. */
.progress {
  position: fixed;
  inset: 0 0 auto;
  z-index: 60;
  height: 2px;
  background: var(--mint);
  transform-origin: 0 50%;
  scale: 0 1;
}
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: scroll()) {
    .progress {
      animation: progress linear both;
      animation-timeline: scroll(root);
    }
  }
}
@keyframes progress {
  to {
    scale: 1 1;
  }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  display: grid;
  align-items: end;
  min-height: max(100svh, 720px);
  padding-block: calc(var(--nav-h) + 72px) clamp(36px, 6vh, 72px);
  overflow: clip;
}
.hero__media {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
/* The sphere sits on the right, centred on the hero's height; the copy keeps the left. */
.hero__sphere {
  position: absolute;
  top: 50%;
  right: max(-60px, calc((100vw - var(--max)) / 2 - 140px));
  width: min(50vw, 820px);
  aspect-ratio: 1 / 1;
  height: auto;
  translate: 0 -48%;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.hero__media.is-live .hero__sphere {
  opacity: 1;
}
/* Light pools behind the sphere. */
.hero__media::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      44vmax 36vmax at 70% 46%,
      rgb(62 224 168 / 0.09),
      transparent 70%
    ),
    radial-gradient(
      30vmax 24vmax at 92% 8%,
      rgb(140 255 214 / 0.05),
      transparent 70%
    );
}
/* Keeps the copy readable where the sphere slides under it on narrower screens. */
.hero__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      var(--night) 0%,
      rgb(3 6 5 / 0.82) 34%,
      transparent 62%
    ),
    linear-gradient(0deg, var(--night) 0%, transparent 26%);
}
.hero__inner {
  position: relative;
  display: grid;
  gap: 28px;
  justify-items: start;
}
.hero .display {
  max-width: 11.5ch;
  /* The lead belongs to the headline: pull it up by the room the last line keeps under its baseline. */
  margin-bottom: -0.15em;
}
.hero__lead {
  max-width: 45ch;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
/* On a phone the two calls stack at one width instead of two ragged ones. */
@media (max-width: 480px) {
  .hero__actions {
    align-self: stretch;
  }
  .hero__actions .btn {
    flex: 1 1 100%;
  }
}

/* Headline words rise once on load. Words are wrapped by main.js; without it the text is simply there. */
.w {
  display: inline-block;
  overflow: clip;
  overflow-clip-margin: 0.12em;
  vertical-align: top;
}
.w > span {
  display: inline-block;
}
@media (prefers-reduced-motion: no-preference) {
  .w > span {
    animation: rise 0.9s var(--ease-out) both;
    animation-delay: calc(var(--i) * 70ms + 120ms);
  }
  .hero__lead,
  .hero__actions,
  .feed {
    animation: settle 0.9s var(--ease-out) both;
    animation-delay: 0.55s;
  }
  .hero__actions {
    animation-delay: 0.65s;
  }
  .feed {
    animation-delay: 0.8s;
  }
}
@keyframes rise {
  from {
    translate: 0 105%;
  }
}
@keyframes settle {
  from {
    opacity: 0;
    translate: 0 18px;
  }
}

/* The live scan log: a plain panel with a title row. */
.feed {
  width: min(100%, 560px);
  margin-top: clamp(4px, 2vh, 24px);
  border: 1px solid var(--line-2);
  border-radius: 6px;
  background: rgb(6 13 11 / 0.86);
  font-family: var(--mono);
  font-size: 0.8125rem;
  line-height: 1.5;
  overflow: clip;
}
.feed__bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  color: var(--fg-3);
  font-size: 0.75rem;
}
.feed__title {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.feed__live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--mint);
  letter-spacing: 0.06em;
}
.feed__live i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mint);
}
.feed__lines {
  display: grid;
  align-content: end;
  gap: 4px;
  height: calc(3 * 1.5em + 8px + 24px);
  padding: 12px 14px;
  overflow: clip;
}
.feed__lines li {
  display: grid;
  grid-template-columns: 9ch 1fr;
  gap: 14px;
  color: var(--fg-2);
  white-space: nowrap;
}
.feed__lines li > span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
}
.feed__lines b {
  color: var(--fg-3);
  font-weight: 500;
}
.feed__lines .is-ok {
  color: var(--mint);
}
.feed__lines .is-hit {
  color: var(--coral);
}
.feed__lines .is-warn {
  color: var(--amber);
}
@media (prefers-reduced-motion: no-preference) {
  .feed__lines li {
    animation: settle 0.5s var(--ease-out) both;
  }
}
.feed figcaption {
  padding: 9px 14px 11px;
  border-top: 1px solid var(--line);
  color: var(--fg-3);
  font-family: var(--sans);
  font-size: 0.75rem;
}

/* On a phone the sphere stands centred above the headline; its lower rim fades out behind the first line. */
@media (max-width: 760px) {
  .hero {
    padding-top: calc(var(--nav-h) + min(84vw, 500px));
  }
  .hero__sphere {
    top: calc(var(--nav-h) - 4vw);
    right: 50%;
    width: min(112vw, 640px);
    translate: 50% 0;
  }
  .hero__media::after {
    background: linear-gradient(
      0deg,
      var(--night) 0%,
      var(--night) 38%,
      rgb(3 6 5 / 0.5) 62%,
      transparent 82%
    );
  }
}

/* ---------- Problem ---------- */

.problem {
  padding-bottom: 0;
}
.problem__title {
  max-width: 17ch;
  font-size: clamp(2.1rem, 5vw, 4.4rem);
}
/* A year on fast-forward: weekly releases ship untested, one pentest checks what exists that week,
   and everything after it piles up untested again. The resting state is the end of the year. */
.year {
  position: relative;
  display: grid;
  gap: 14px;
  margin-top: clamp(48px, 7vw, 96px);
}
.year__row {
  display: grid;
  grid-template-columns: 9ch 1fr;
  align-items: center;
  gap: 18px;
  color: var(--fg-2);
  font-size: 0.9375rem;
}
.year__ticks {
  display: grid;
  grid-template-columns: repeat(52, 1fr);
  gap: clamp(2px, 0.45vw, 6px);
}
.year__ticks i {
  height: clamp(22px, 3.4vw, 44px);
  border-radius: 2px;
  background: rgb(160 255 220 / 0.07);
  transform-origin: 50% 100%;
  transition:
    background-color 0.3s ease-out,
    scale 0.3s var(--ease-out);
  transition-delay: var(--d, 0s);
}
/* Released and never looked at. */
.year__ticks i.is-open {
  background: var(--coral);
}
/* Covered by the pentest that week. */
.year__ticks i.is-checked {
  background: var(--mint);
}
.year__ticks i.is-later {
  scale: 1 0.3;
}
.year__row--test .year__ticks i.on {
  background: var(--fg);
}
.year__row--test .year__ticks i.on.is-later {
  background: rgb(160 255 220 / 0.07);
  scale: 1;
}
.year__head {
  position: absolute;
  top: -10px;
  bottom: 40px;
  left: 0;
  width: 1px;
  background: var(--fg-2);
  opacity: 0;
  pointer-events: none;
}
.year.is-playing .year__head {
  opacity: 0.7;
}
.year__status {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  margin-left: calc(9ch + 18px);
  color: var(--fg-3);
  font-size: 0.9375rem;
}
.year__status b {
  margin-left: 6px;
  color: var(--fg);
  font-family: var(--mono);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.year__week {
  margin-right: auto;
  font-family: var(--mono);
}
.year__week b {
  margin-left: 0;
}
.year__count::before {
  content: '';
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 8px;
  border-radius: 2px;
  background: var(--mint);
}
.year__count--open::before {
  background: var(--coral);
}
@media (prefers-reduced-motion: no-preference) {
  .year__ticks i.is-hit {
    animation: pentest-hit 0.6s ease-out;
  }
}
@keyframes pentest-hit {
  40% {
    scale: 1 1.25;
  }
}
@media (max-width: 640px) {
  .year__row {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }
  .year__status {
    margin-left: 0;
  }
  .year__head {
    display: none;
  }
}
.problem__gap {
  margin-top: 28px;
  max-width: 44ch;
  color: var(--fg);
  font-size: clamp(1.15rem, 1.9vw, 1.5rem);
  line-height: 1.4;
  text-wrap: pretty;
}
.figures {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 32px clamp(32px, 6vw, 96px);
  margin-top: clamp(56px, 8vw, 112px);
  padding-top: 36px;
  border-top: 1px solid var(--line);
}
.figure dt {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(3rem, 7vw, 6rem);
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.figure__unit {
  font-size: 0.5em;
  color: var(--mint);
}
/* 31 of 100 breaches, one cell each; the cells light up with the counter. */
.figure__dots {
  display: grid;
  grid-template-columns: repeat(50, 1fr);
  gap: 3px;
  max-width: 420px;
  margin-block: 6px 4px;
}
.figure__dots i {
  aspect-ratio: 1;
  border-radius: 1px;
  background: rgb(160 255 220 / 0.1);
  transition: background-color 0.2s;
  transition-delay: var(--d, 0s);
}
.figure__dots i.is-lit {
  background: var(--mint);
}
.figure dd {
  display: grid;
  gap: 6px;
  margin-top: 14px;
  max-width: 34ch;
  color: var(--fg-2);
}

/* What the scan looks for, as one slow line of type. */
.classes {
  margin-top: var(--band);
  padding-block: 26px;
  border-block: 1px solid var(--line);
  overflow: clip;
}
.classes__track {
  display: flex;
  gap: 56px;
  width: max-content;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.6rem, 3.6vw, 3rem);
  line-height: 1;
  white-space: nowrap;
  color: rgb(160 255 220 / 0.22);
}
.classes__track span:nth-child(4n + 1) {
  color: var(--mint);
}
@media (prefers-reduced-motion: no-preference) {
  .classes__track {
    animation: drift 46s linear infinite;
  }
}
@keyframes drift {
  to {
    translate: calc(-50% - 28px) 0;
  }
}

/* ---------- Scan story ---------- */

.scan__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.82fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}
.scan__stage {
  position: sticky;
  top: calc(var(--nav-h) + 40px);
  display: grid;
  place-items: center;
  height: calc(100svh - var(--nav-h) - 80px);
  max-height: 760px;
}
/* The scan as a console with seven scenes, one per step. Each scene plays its own short story when it
   comes on; the base styles are the finished state, so reduced motion and no-JS show the end of it. */
.stage {
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  width: min(100%, 680px, (100svh - var(--nav-h) - 110px) * 1.2);
  aspect-ratio: 6 / 5;
  container-type: inline-size;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(
      120% 70% at 50% 0%,
      rgb(62 224 168 / 0.08),
      transparent 62%
    ),
    linear-gradient(180deg, rgb(14 30 25 / 0.82), rgb(6 13 11 / 0.72));
  box-shadow:
    inset 0 1px 0 rgb(190 255 230 / 0.07),
    0 40px 90px -40px rgb(0 0 0 / 0.9);
  overflow: clip;
}
/* A faint dot grid, like a plotting table under the scene. */
.stage::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(
    rgb(160 255 220 / 0.08) 1px,
    transparent 1.4px
  );
  background-size: 22px 22px;
  -webkit-mask: radial-gradient(90% 80% at 50% 45%, #000, transparent);
  mask: radial-gradient(90% 80% at 50% 45%, #000, transparent);
  pointer-events: none;
}
/* A light sweep that wipes the console when the step changes. main.js plays it. */
.stage::after {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 36%;
  background: linear-gradient(
    transparent,
    rgb(62 224 168 / 0.07) 70%,
    rgb(138 247 207 / 0.28)
  );
  opacity: 0;
  translate: 0 -100%;
  pointer-events: none;
}

.stage__bar,
.stage__scenes,
.stage__rail {
  position: relative;
  min-width: 0;
  font-size: clamp(10.5px, 2.15cqi, 13.5px);
}
.stage__bar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 3.4cqi 4.4cqi 0;
}
.stage__host {
  padding: 0.35em 0.95em;
  border: 1px solid var(--line-2);
  border-radius: 4px;
  background: var(--night);
  color: var(--fg);
}
.stage__state {
  grid-area: 1 / 2;
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  min-width: 0;
  overflow: hidden;
  color: var(--fg-3);
  white-space: nowrap;
  text-overflow: ellipsis;
}
.stage__state::before {
  content: '';
  flex: none;
  width: 0.55em;
  height: 0.55em;
  border-radius: 50%;
  background: currentColor;
}
.stage__state--ok {
  color: var(--mint);
}

.stage__scenes {
  line-height: 1.45;
}
.scene {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2.6cqi;
  padding: 2.4cqi 4.4cqi;
  overflow: hidden;
}
.scene code,
.scene .log,
.scene .term {
  font-family: var(--mono);
  font-size: 0.94em;
}

/* Parts of the stage that belong to some steps only. main.js toggles .is-on; without the script only
   the last scene and the confirmed state show. */
.js .stage [data-from] {
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.35s ease,
    visibility 0s linear 0.35s;
}
.js .stage [data-from].is-on {
  opacity: 1;
  visibility: visible;
  transition-delay: 0.12s, 0s;
}
.js .scene {
  translate: 0 10px;
  transition:
    opacity 0.35s ease,
    translate 0.6s var(--ease-out),
    visibility 0s linear 0.35s;
}
.js .scene.is-on {
  translate: 0 0;
  transition-delay: 0.12s;
}
html:not(.js) .scene:not(.scene--report),
html:not(.js) .stage__state[data-to] {
  display: none;
}

.stage__rail {
  display: flex;
  gap: 6px;
  padding: 0 4.4cqi 3.4cqi;
}
.stage__rail li {
  flex: 1;
  height: 3px;
  border-radius: 2px;
  background: var(--line);
  transition: background-color 0.4s;
}
.stage__rail .is-done {
  background: rgb(62 224 168 / 0.38);
}
.stage__rail .is-now {
  background: var(--mint);
}

/* Shared surfaces inside the scenes. */
.urlbox,
.surface,
.record,
.unlock,
.roles li,
.term,
.run {
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: rgb(3 6 5 / 0.72);
}
.surface li::before,
.probe__done::before,
.verdict::before,
.recheck__ok::before,
.doc__sig span::before,
.halt__sign::before {
  content: '';
  flex: none;
  width: 1.25em;
  height: 1.25em;
  background: var(--glyph) center / contain no-repeat;
}
.surface .is-ok::before,
.probe__done::before,
.recheck__ok::before {
  --glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Ccircle cx='10' cy='10' r='9' fill='%233ee0a8' fill-opacity='.16'/%3E%3Cpath d='m6 10.2 2.7 2.7L14 7.6' fill='none' stroke='%233ee0a8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.surface .is-warn::before {
  --glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 2.5 18.5 17h-17z' fill='%23ffc56b' fill-opacity='.16' stroke='%23ffc56b' stroke-width='1.6' stroke-linejoin='round'/%3E%3Cpath d='M10 8v4' stroke='%23ffc56b' stroke-width='1.8' stroke-linecap='round'/%3E%3Ccircle cx='10' cy='14.4' r='1' fill='%23ffc56b'/%3E%3C/svg%3E");
}
.surface .is-info::before {
  --glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Ccircle cx='10' cy='10' r='8.2' fill='none' stroke='%237d928b' stroke-width='1.6'/%3E%3Cpath d='M10 6.5v7M6.5 10h7' stroke='%237d928b' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");
}

/* 1. Add the site */
.urlbox {
  display: flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.45em 0.45em 0.45em 1em;
  font-family: var(--mono);
}
.urlbox__scheme {
  color: var(--fg-3);
}
.urlbox__host {
  min-width: 0;
  margin-right: auto;
  overflow: hidden;
  color: var(--fg);
  white-space: nowrap;
  border-right: 2px solid transparent;
}
.urlbox__go {
  flex: none;
  padding: 0.5em 1.05em;
  border-radius: 8px;
  background: var(--mint);
  color: var(--mint-ink);
  font-family: var(--sans);
  font-weight: 600;
}
.surface {
  position: relative;
  display: grid;
  padding: 0.35em 0;
  overflow: clip;
}
.surface li {
  display: flex;
  align-items: center;
  gap: 0.75em;
  min-width: 0;
  padding: 0.5em 1em;
}
.surface li + li {
  border-top: 1px solid var(--line);
}
.surface code {
  min-width: 0;
  overflow: hidden;
  color: var(--fg);
  text-overflow: ellipsis;
  white-space: nowrap;
}
.surface span {
  flex: none;
  margin-left: auto;
  color: var(--amber);
}
.surface .is-info span {
  color: var(--fg-3);
}
/* The passive check reads down the list like a scanner bar. */
.surface::after {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 34%;
  background: linear-gradient(transparent, rgb(62 224 168 / 0.12), transparent);
  opacity: 0;
  pointer-events: none;
}

/* 2. Confirm ownership */
.methods {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45em;
}
.methods li {
  padding: 0.3em 0.8em;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--fg-3);
  font-family: var(--mono);
  font-size: 0.92em;
}
.methods .is-pick {
  border-color: rgb(62 224 168 / 0.7);
  background: rgb(62 224 168 / 0.1);
  color: var(--mint);
}
.record {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  align-items: center;
  gap: 0.8em;
  padding: 0.75em 1em;
}
.record__type {
  padding: 0.1em 0.5em;
  border-radius: 5px;
  background: var(--mint);
  color: var(--mint-ink);
  font-family: var(--mono);
  font-size: 0.85em;
  font-weight: 700;
}
.record__name {
  color: var(--fg-2);
}
.record__value {
  overflow: hidden;
  color: var(--fg);
  text-overflow: ellipsis;
  white-space: nowrap;
}
.probe {
  display: grid;
}
.probe > span {
  grid-area: 1 / 1;
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
}
.probe__wait {
  color: var(--fg-3);
  opacity: 0;
}
.probe__wait::before {
  content: '';
  width: 1em;
  height: 1em;
  border: 2px solid var(--line-2);
  border-top-color: var(--mint);
  border-radius: 50%;
}
.probe__done {
  color: var(--mint);
}
.unlock {
  display: flex;
  align-items: center;
  gap: 0.8em;
  padding: 0.75em 1em;
  color: var(--fg);
}
.unlock > span:first-of-type {
  margin-right: auto;
}
.unlock__lock {
  flex: none;
  width: 1.5em;
  height: 1.5em;
  fill: none;
  stroke: var(--mint);
  stroke-width: 2;
  stroke-linecap: round;
}
.unlock__shackle {
  translate: 0 -2px;
}
.unlock__switch {
  position: relative;
  flex: none;
  width: 2.6em;
  height: 1.5em;
  border-radius: 999px;
  background: var(--mint);
}
.unlock__switch i {
  position: absolute;
  top: 0.2em;
  left: 1.3em;
  width: 1.1em;
  height: 1.1em;
  border-radius: 50%;
  background: var(--mint-ink);
}

/* 3. Test accounts */
@property --left {
  syntax: '<percentage>';
  inherits: false;
  initial-value: 70%;
}
.roles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7em;
}
.roles li {
  display: grid;
  gap: 0.3em;
  min-width: 0;
  padding: 0.8em 0.9em;
  font-family: var(--mono);
}
.roles b {
  color: var(--fg);
  font-weight: 600;
}
.roles__pw {
  overflow: hidden;
  color: var(--fg-3);
}
.totp {
  display: flex;
  align-items: center;
  gap: 0.45em;
  color: var(--mint);
  white-space: nowrap;
}
.totp i {
  flex: none;
  width: 0.95em;
  height: 0.95em;
  border-radius: 50%;
  background: conic-gradient(
    var(--mint) var(--left),
    rgb(160 255 220 / 0.16) 0
  );
}
.handoff {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.5em;
}
.handoff__node {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  padding: 0.45em 0.85em;
  border: 1px solid var(--line-2);
  border-radius: 4px;
  background: var(--night);
  color: var(--fg);
  white-space: nowrap;
}
.handoff__node svg {
  width: 1.1em;
  height: 1.1em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}
.handoff__node--vault {
  border-color: rgb(62 224 168 / 0.6);
  color: var(--mint);
}
.handoff__wire {
  position: relative;
  height: 1px;
  background: repeating-linear-gradient(
    90deg,
    var(--line-2) 0 4px,
    transparent 4px 8px
  );
}
.handoff__wire i {
  position: absolute;
  top: 50%;
  left: 50%;
  translate: -50% -50%;
  padding: 0.05em 0.45em;
  border-radius: 5px;
  background: var(--mint);
  color: var(--mint-ink);
  font-family: var(--mono);
  font-size: 0.78em;
  font-style: normal;
}
.keys__note {
  padding-left: 0.9em;
  border-left: 2px solid var(--mint);
  color: var(--fg-2);
}

/* 4. The agents attack */
.hypo {
  display: flex;
  gap: 0.45em;
  overflow: hidden;
  white-space: nowrap;
  -webkit-mask: linear-gradient(90deg, #000 85%, transparent);
  mask: linear-gradient(90deg, #000 85%, transparent);
}
.hypo li {
  flex: none;
  padding: 0.25em 0.75em;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--fg-3);
  font-family: var(--mono);
  font-size: 0.88em;
}
.hypo li:first-child {
  border-color: rgb(62 224 168 / 0.6);
  background: rgb(62 224 168 / 0.08);
  color: var(--mint);
}
.map {
  position: relative;
  flex: none;
  width: 100%;
  aspect-ratio: 480 / 200;
  font-family: var(--mono);
  font-size: 0.86em;
}
.map__svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.map__scope {
  fill: rgb(62 224 168 / 0.035);
  stroke: rgb(62 224 168 / 0.35);
  stroke-dasharray: 4 5;
}
.map__wire {
  fill: none;
  stroke: rgb(160 255 220 / 0.18);
  stroke-width: 1.2;
}
.map__wire--out {
  stroke: rgb(255 106 92 / 0.4);
  stroke-dasharray: 3 4;
}
.map__gate {
  transform-box: fill-box;
  transform-origin: center;
  stroke: var(--mint);
  stroke-width: 3;
  stroke-linecap: round;
  filter: drop-shadow(0 0 5px rgb(62 224 168 / 0.7));
}
.map__agent {
  fill: var(--night);
  stroke: var(--mint);
  stroke-width: 2;
}
.map__ep {
  fill: var(--night-2);
  stroke: var(--fg-3);
  stroke-width: 1.5;
}
.map__ep--hit {
  fill: rgb(255 106 92 / 0.35);
  stroke: var(--coral);
}
.map__ep--out {
  stroke: rgb(255 106 92 / 0.6);
  stroke-dasharray: 2 2;
}
.pkt,
.map__burst {
  opacity: 0;
}
.pkt {
  fill: var(--mint-hi);
}
.map__burst {
  fill: none;
  stroke: var(--coral);
  stroke-width: 2;
  transform-box: fill-box;
  transform-origin: center;
}
.map__tag,
.map__drop {
  position: absolute;
  color: var(--fg-2);
  line-height: 1.2;
  white-space: nowrap;
}
.map__tag--a1,
.map__tag--a2,
.map__tag--a3 {
  left: 0;
  translate: 0 -100%;
  color: var(--mint);
}
.map__tag--a1 {
  top: 13%;
}
.map__tag--a2 {
  top: 45%;
}
.map__tag--a3 {
  top: 77%;
}
.map__tag--gate {
  left: 39.6%;
  top: 7%;
  translate: -50% -100%;
  color: var(--mint);
  font-family: var(--sans);
}
.map__tag--scope {
  left: 55.5%;
  top: 4.5%;
  color: rgb(62 224 168 / 0.7);
}
.map__tag--e1,
.map__tag--e2,
.map__tag--e3,
.map__tag--e4,
.map__tag--e5 {
  left: 69.6%;
  translate: 0 -50%;
}
.map__tag--e1 {
  top: 14%;
}
.map__tag--e2 {
  top: 31%;
  color: var(--coral);
}
.map__tag--e3 {
  top: 48%;
}
.map__tag--e4 {
  top: 65%;
}
.map__tag--e5 {
  top: 90%;
  color: rgb(255 106 92 / 0.8);
}
.map__drop {
  right: calc(60.4% + 8px);
  top: 84%;
  max-width: 27%;
  text-align: right;
  padding: 0.2em 0.4em;
  border-radius: 5px;
  background: rgb(3 6 5 / 0.88);
  color: var(--coral);
  font-family: var(--sans);
  white-space: normal;
}
.log {
  flex: none;
  display: grid;
  grid-auto-rows: max-content;
  align-content: end;
  gap: 0.2em;
  height: calc(3 * 1.45em + 0.4em);
  border-top: 1px solid var(--line);
  overflow: clip;
}
.log li {
  display: flex;
  gap: 0.8em;
  min-width: 0;
  overflow: hidden;
  color: var(--fg-2);
  white-space: nowrap;
}
.log b {
  flex: none;
  width: 7ch;
  color: var(--fg-3);
  font-weight: 500;
}
.log span {
  margin-left: auto;
  padding-left: 0.8em;
}
.log .is-ok {
  color: var(--mint);
}
.log .is-hit {
  color: var(--coral);
}

/* 5. Prove and stop */
.term {
  display: grid;
  gap: 0.3em;
  padding: 0.9em 1.1em;
  color: var(--fg);
}
.term p {
  overflow-wrap: anywhere;
}
.term b {
  margin-right: 0.5em;
  color: var(--fg-3);
  font-weight: 500;
}
.term mark {
  padding: 0 0.2em;
  border-radius: 3px;
  background: rgb(255 106 92 / 0.18);
  color: var(--coral);
}
.term__status span {
  color: var(--mint);
}
.term__body {
  color: var(--fg-2);
}
.proof__note {
  padding-left: 0.9em;
  border-left: 2px solid var(--coral);
  color: var(--fg);
}
.halt {
  display: grid;
  gap: 0.6em;
  padding: 0.8em 1em;
  border: 1px solid rgb(255 106 92 / 0.5);
  border-radius: 12px;
  background: repeating-linear-gradient(
    -45deg,
    rgb(255 106 92 / 0.07) 0 10px,
    transparent 10px 20px
  );
}
.halt__sign {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  color: var(--coral);
  font-weight: 600;
}
.halt__sign::before {
  --glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6.7 1.5h6.6l5.2 5.2v6.6l-5.2 5.2H6.7l-5.2-5.2V6.7z' fill='%23ff6a5c'/%3E%3Cpath d='M6 10h8' stroke='%23030605' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E");
}
.halt__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45em;
}
.halt__list li {
  padding: 0.2em 0.75em;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: linear-gradient(var(--coral), var(--coral)) no-repeat 0.6em 55% /
    calc(100% - 1.2em) 1.5px;
  color: var(--fg-3);
}

/* 6. The validator replays */
.run {
  display: grid;
  grid-template-columns: 6.5em minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.8em;
  padding: 0.75em 1em;
}
.run__who {
  color: var(--fg-2);
}
.run__req {
  overflow: hidden;
  color: var(--fg);
  text-overflow: ellipsis;
  white-space: nowrap;
}
.run__hash {
  color: var(--mint);
  white-space: nowrap;
}
.run__tries {
  display: flex;
  gap: 0.4em;
}
.run__tries li {
  display: grid;
  flex: 1;
  place-items: center;
  height: 1.7em;
  border: 1px solid rgb(62 224 168 / 0.4);
  border-radius: 6px;
  background: linear-gradient(var(--mint), var(--mint)) no-repeat 0 0 / 100%
    100%;
  color: var(--mint-ink);
  font-family: var(--mono);
  font-size: 0.85em;
  font-weight: 700;
}
.verdict {
  display: flex;
  align-items: center;
  gap: 0.7em;
  padding: 0.7em 1em;
  border: 1px solid rgb(255 197 107 / 0.6);
  border-radius: 12px;
  background: rgb(255 197 107 / 0.07);
  color: var(--fg);
}
.verdict::before {
  --glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m10 1.5 2.2 1.7 2.8-.1.8 2.6 2.3 1.6-.9 2.7.9 2.7-2.3 1.6-.8 2.6-2.8-.1L10 18.5l-2.2-1.7-2.8.1-.8-2.6-2.3-1.6.9-2.7-.9-2.7 2.3-1.6.8-2.6 2.8.1z' fill='%23ffc56b' fill-opacity='.2' stroke='%23ffc56b' stroke-width='1.2'/%3E%3Cpath d='m6.6 10.2 2.3 2.3 4.5-4.6' fill='none' stroke='%23ffc56b' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  width: 1.6em;
  height: 1.6em;
}
.rejected {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2em 0.8em;
  color: var(--fg-3);
  font-size: 0.92em;
}
.rejected code {
  text-decoration: line-through;
  text-decoration-color: var(--fg-3);
}

/* 7. Report and recheck: a sheet of the day-side report on the night console */
.doc {
  --fg: #0a1f1a;
  --fg-2: #33493f;
  --fg-3: #556a62;
  --line: rgb(10 31 26 / 0.13);
  display: grid;
  gap: 0.55em;
  padding: 1em 1.1em;
  border-radius: 12px;
  background: var(--paper);
  color: var(--fg);
  box-shadow: 0 18px 40px -22px rgb(0 0 0 / 0.9);
}
.doc__head {
  display: flex;
  align-items: center;
  gap: 0.6em;
  font-size: 0.9em;
}
.doc__head code {
  color: var(--fg-3);
}
.doc__sev {
  padding: 0.1em 0.55em;
  border-radius: 5px;
  background: var(--coral-ink);
  color: var(--white);
  font-weight: 600;
}
.doc__pdf {
  margin-left: auto;
  padding: 0.1em 0.5em;
  border: 1.5px solid var(--pine);
  border-radius: 5px;
  color: var(--pine);
  font-weight: 700;
  letter-spacing: 0.04em;
}
.doc__title {
  font-family: var(--display);
  font-size: 1.15em;
  font-weight: 650;
  line-height: 1.25;
}
.doc__tabs {
  display: flex;
  gap: 0.4em;
  font-size: 0.82em;
}
.doc__tabs span {
  padding: 0.2em 0.7em;
  border: 1px solid var(--line);
  border-radius: 4px;
}
.doc__tabs span:first-child {
  border-color: var(--fg);
  background: var(--fg);
  color: var(--paper);
}
.doc__lines {
  display: grid;
  gap: 0.4em;
}
.doc__lines i {
  height: 0.45em;
  border-radius: 4px;
  background: rgb(10 31 26 / 0.1);
}
.doc__lines i:nth-child(2) {
  width: 86%;
}
.doc__lines i:nth-child(3) {
  width: 58%;
}
.doc__sig {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.3em 0.6em;
  padding-top: 0.5em;
  border-top: 1px dashed var(--line);
  color: var(--fg-3);
  font-size: 0.82em;
}
.doc__sig span {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  color: var(--pine);
  font-weight: 600;
}
.doc__sig span::before {
  --glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m5.5 10.3 3 3 6-6.2' fill='none' stroke='%230a6e52' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  width: 1.1em;
  height: 1.1em;
}
.recheck {
  display: flex;
  align-items: center;
  gap: 0.8em;
  min-width: 0;
}
.recheck__btn {
  flex: none;
  padding: 0.5em 1.05em;
  border-radius: 9px;
  background: var(--mint);
  color: var(--mint-ink);
  font-weight: 600;
}
.recheck__run {
  min-width: 0;
  overflow: hidden;
  color: var(--fg-2);
  text-overflow: ellipsis;
  white-space: nowrap;
}
.recheck__run b {
  color: var(--mint);
}
.recheck__ok {
  display: flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.7em 1em;
  border: 1px solid rgb(62 224 168 / 0.6);
  border-radius: 12px;
  background: rgb(62 224 168 / 0.08);
  color: var(--fg);
}

/* A narrow console keeps the gist of each scene and drops the detail. */
@container (max-width: 470px) {
  .scene {
    gap: 2.2cqi;
  }
  .surface li {
    padding-block: 0.32em;
  }
  .roles li {
    padding: 0.55em 0.65em;
  }
  .handoff__wire i {
    font-size: 0;
    width: 0.6em;
    height: 0.6em;
    padding: 0;
    border-radius: 50%;
  }
  .log {
    height: calc(2 * 1.45em + 0.2em);
  }
  .map {
    margin-bottom: 1.3em;
  }
  .run {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.35em 0.8em;
    padding: 0.55em 0.8em;
  }
  .run__req,
  .run__tries {
    grid-column: 1 / -1;
  }
  .run__who {
    grid-row: 1;
  }
  .run__hash {
    grid-row: 1;
    grid-column: 2;
  }
  .doc {
    padding: 0.75em 0.9em;
  }
  .doc__tabs,
  .doc__lines {
    display: none;
  }
  .term {
    padding: 0.65em 0.85em;
  }
  .halt {
    padding: 0.6em 0.8em;
  }
}

@media (prefers-reduced-motion: no-preference) {
  /* 1 */
  .scene--add.is-on .urlbox {
    animation: sc-rise 0.5s var(--ease-out) both;
  }
  .scene--add.is-on .urlbox__host {
    animation:
      sc-type 1s steps(20) 0.35s both,
      sc-caret 0.5s step-end 0.1s 4;
  }
  .scene--add.is-on .urlbox__go {
    animation: sc-press 0.35s ease 1.45s both;
  }
  .scene--add.is-on .surface {
    animation: sc-rise 0.5s var(--ease-out) 1.6s both;
  }
  .scene--add.is-on .surface li {
    animation: sc-rise 0.4s var(--ease-out) both;
  }
  .scene--add.is-on .surface li::before {
    animation: sc-pop 0.4s var(--ease-out) both;
  }
  .scene--add.is-on .surface li:nth-child(1),
  .scene--add.is-on .surface li:nth-child(1)::before {
    animation-delay: 1.9s;
  }
  .scene--add.is-on .surface li:nth-child(2),
  .scene--add.is-on .surface li:nth-child(2)::before {
    animation-delay: 2.15s;
  }
  .scene--add.is-on .surface li:nth-child(3),
  .scene--add.is-on .surface li:nth-child(3)::before {
    animation-delay: 2.4s;
  }
  .scene--add.is-on .surface li:nth-child(4),
  .scene--add.is-on .surface li:nth-child(4)::before {
    animation-delay: 2.65s;
  }
  .scene--add.is-on .surface li:nth-child(5),
  .scene--add.is-on .surface li:nth-child(5)::before {
    animation-delay: 2.9s;
  }
  .scene--add.is-on .surface::after {
    animation: sc-beam 3.4s ease-in-out 1.8s infinite;
  }

  /* 2 */
  .scene--own.is-on .methods li {
    animation: sc-rise 0.4s var(--ease-out) both;
  }
  .scene--own.is-on .methods li:nth-child(2) {
    animation-delay: 0.06s;
  }
  .scene--own.is-on .methods li:nth-child(3) {
    animation-delay: 0.12s;
  }
  .scene--own.is-on .methods li:nth-child(4) {
    animation-delay: 0.18s;
  }
  .scene--own.is-on .methods li:nth-child(5) {
    animation:
      sc-rise 0.4s var(--ease-out) 0.24s both,
      sc-pick 0.3s ease 0.8s both;
  }
  .scene--own.is-on .methods li:nth-child(6) {
    animation-delay: 0.3s;
  }
  .scene--own.is-on .record {
    animation: sc-rise 0.5s var(--ease-out) 1s both;
  }
  .scene--own.is-on .record__value {
    animation: sc-type 0.8s steps(24) 1.3s both;
  }
  .scene--own.is-on .probe__wait {
    animation: sc-blip 1.5s linear 2.1s both;
  }
  .scene--own.is-on .probe__wait::before {
    animation: sc-spin 0.7s linear infinite;
  }
  .scene--own.is-on .probe__done {
    animation: sc-rise 0.4s var(--ease-out) 3.5s both;
  }
  .scene--own.is-on .unlock {
    animation: sc-rise 0.5s var(--ease-out) 2.1s both;
  }
  .scene--own.is-on .unlock__lock {
    animation: sc-lock 0.3s ease 3.7s both;
  }
  .scene--own.is-on .unlock__shackle {
    animation: sc-shackle 0.45s var(--ease-out) 3.7s both;
  }
  .scene--own.is-on .unlock__switch {
    animation: sc-switch 0.3s ease 3.9s both;
  }
  .scene--own.is-on .unlock__switch i {
    animation: sc-knob 0.3s var(--ease-out) 3.9s both;
  }

  /* 3 */
  .scene--keys.is-on .roles li {
    animation:
      sc-drop 0.55s var(--ease-out) both,
      sc-handin 0.9s ease both;
  }
  .scene--keys.is-on .roles li:nth-child(1) {
    animation-delay: 0.1s, 1.2s;
  }
  .scene--keys.is-on .roles li:nth-child(2) {
    animation-delay: 0.25s, 1.35s;
  }
  .scene--keys.is-on .roles li:nth-child(3) {
    animation-delay: 0.4s, 1.5s;
  }
  .scene--keys.is-on .totp i {
    animation: sc-totp 6s linear infinite;
  }
  .scene--keys.is-on .handoff {
    animation: sc-rise 0.5s var(--ease-out) 0.9s both;
  }
  .scene--keys.is-on .handoff__node--vault {
    animation: sc-glow 0.9s ease 1.7s both;
  }
  .scene--keys.is-on .handoff__wire i {
    animation: sc-token 2.4s ease-in-out 2.2s infinite both;
  }
  .scene--keys.is-on .handoff__wire + .handoff__node + .handoff__wire i {
    animation-delay: 3.4s;
  }
  .scene--keys.is-on .keys__note {
    animation: sc-rise 0.5s var(--ease-out) 2.6s both;
  }

  /* 4 */
  .scene--attack.is-on .hypo li {
    animation: sc-hypo 6s step-end infinite;
  }
  .scene--attack.is-on .hypo li:nth-child(2) {
    animation-delay: 1.2s;
  }
  .scene--attack.is-on .hypo li:nth-child(3) {
    animation-delay: 2.4s;
  }
  .scene--attack.is-on .hypo li:nth-child(4) {
    animation-delay: 3.6s;
  }
  .scene--attack.is-on .hypo li:nth-child(5) {
    animation-delay: 4.8s;
  }
  .scene--attack.is-on .map__wire,
  .scene--attack.is-on .map__scope {
    animation: sc-fade 0.6s ease 0.1s both;
  }
  .scene--attack.is-on .map__gate {
    animation: sc-gate 0.6s var(--ease-out) 0.2s both;
  }
  .scene--attack.is-on .pkt {
    animation: sc-pkt 4.8s linear infinite;
  }
  .pkt--1 {
    --x0: 24px;
    --y0: 36px;
    --x1: 322px;
    --y1: 62px;
  }
  .pkt--2 {
    --x0: 24px;
    --y0: 100px;
    --x1: 322px;
    --y1: 96px;
  }
  .pkt--3 {
    --x0: 24px;
    --y0: 164px;
    --x1: 322px;
    --y1: 130px;
  }
  .pkt--4 {
    --x0: 24px;
    --y0: 100px;
    --x1: 322px;
    --y1: 28px;
  }
  .pkt--drop {
    --x0: 24px;
    --y0: 164px;
  }
  .scene--attack.is-on .pkt--1 {
    animation-delay: 0.4s;
  }
  .scene--attack.is-on .pkt--2 {
    animation-delay: 1.3s;
  }
  .scene--attack.is-on .pkt--3 {
    animation-delay: 2.2s;
  }
  .scene--attack.is-on .pkt--4 {
    animation-delay: 3.1s;
  }
  .scene--attack.is-on .pkt--drop {
    animation: sc-pkt-drop 4.8s linear 1.8s infinite;
  }
  .scene--attack.is-on .map__burst {
    animation: sc-burst 4.8s ease-out 1.8s infinite;
  }
  .scene--attack .map__drop {
    opacity: 0;
  }
  .scene--attack.is-on .map__drop {
    animation: sc-drop-label 4.8s ease 1.8s infinite;
  }
  .scene--attack.is-on .map__ep--hit {
    animation: sc-hit 0.4s ease 2.4s both;
  }
  .scene--attack.is-on .map__tag--e2 {
    animation: sc-hit-tag 0.4s ease 2.4s both;
  }
  .scene--attack.is-on .log {
    animation: sc-rise 0.5s var(--ease-out) 0.3s both;
  }
  .log li.is-new {
    animation: sc-rise 0.35s var(--ease-out) both;
  }

  /* 5 */
  .scene--proof.is-on .term {
    animation: sc-rise 0.5s var(--ease-out) both;
  }
  .scene--proof.is-on .term__req {
    animation: sc-type 0.7s steps(30) 0.3s both;
  }
  .scene--proof.is-on .term__status {
    animation: sc-rise 0.35s var(--ease-out) 1.15s both;
  }
  .scene--proof.is-on .term__body {
    animation: sc-rise 0.35s var(--ease-out) 1.4s both;
  }
  .scene--proof.is-on .term__body mark {
    animation: sc-flash 0.9s ease 1.8s both;
  }
  .scene--proof.is-on .proof__note {
    animation: sc-rise 0.45s var(--ease-out) 2.2s both;
  }
  .scene--proof.is-on .halt {
    animation: sc-slam 0.45s var(--ease-out) 2.8s both;
  }
  .scene--proof.is-on .halt__list li {
    animation: sc-strike 0.35s ease both;
  }
  .scene--proof.is-on .halt__list li:nth-child(1) {
    animation-delay: 3.25s;
  }
  .scene--proof.is-on .halt__list li:nth-child(2) {
    animation-delay: 3.45s;
  }
  .scene--proof.is-on .halt__list li:nth-child(3) {
    animation-delay: 3.65s;
  }

  /* 6 */
  .scene--replay.is-on .run {
    animation: sc-rise 0.5s var(--ease-out) both;
  }
  .scene--replay.is-on .run--check {
    animation-delay: 0.5s;
  }
  .scene--replay.is-on .run__tries li {
    animation: sc-fill 0.45s ease both;
  }
  .scene--replay.is-on .run__tries li:nth-child(1) {
    animation-delay: 0.95s;
  }
  .scene--replay.is-on .run__tries li:nth-child(2) {
    animation-delay: 1.45s;
  }
  .scene--replay.is-on .run__tries li:nth-child(3) {
    animation-delay: 1.95s;
  }
  .scene--replay.is-on .run--check .run__hash {
    animation: sc-rise 0.4s var(--ease-out) 2.45s both;
  }
  .scene--replay.is-on .run__hash {
    animation: sc-glow-text 1s ease 2.6s both;
  }
  .scene--replay.is-on .verdict {
    animation: sc-stamp 0.55s var(--ease-out) 2.9s both;
  }
  .scene--replay.is-on .rejected {
    animation: sc-rise 0.5s var(--ease-out) 3.5s both;
  }

  /* 7 */
  .scene--report.is-on .doc {
    animation: sc-rise 0.55s var(--ease-out) both;
  }
  .scene--report.is-on .doc__lines i {
    transform-origin: left;
    animation: sc-grow 0.5s var(--ease-out) both;
  }
  .scene--report.is-on .doc__lines i:nth-child(1) {
    animation-delay: 0.4s;
  }
  .scene--report.is-on .doc__lines i:nth-child(2) {
    animation-delay: 0.5s;
  }
  .scene--report.is-on .doc__lines i:nth-child(3) {
    animation-delay: 0.6s;
  }
  .scene--report.is-on .doc__sig {
    animation: sc-rise 0.4s var(--ease-out) 0.85s both;
  }
  .scene--report.is-on .doc__pdf {
    animation: sc-stamp 0.5s var(--ease-out) 1.15s both;
  }
  .scene--report.is-on .recheck {
    animation: sc-rise 0.45s var(--ease-out) 1.6s both;
  }
  .scene--report.is-on .recheck__btn {
    animation: sc-press 0.35s ease 2.1s both;
  }
  .scene--report.is-on .recheck__run {
    animation: sc-type 0.7s steps(26) 2.35s both;
  }
  .scene--report.is-on .recheck__run b {
    animation: sc-pop 0.4s var(--ease-out) 3.05s both;
  }
  .scene--report.is-on .recheck__ok {
    animation: sc-rise 0.5s var(--ease-out) 3.35s both;
  }
}

@keyframes sc-rise {
  from {
    opacity: 0;
    translate: 0 8px;
  }
}
@keyframes sc-fade {
  from {
    opacity: 0;
  }
}
@keyframes sc-drop {
  from {
    opacity: 0;
    translate: 0 -14px;
  }
}
@keyframes sc-pop {
  from {
    opacity: 0;
    scale: 0.4;
  }
  60% {
    scale: 1.12;
  }
}
@keyframes sc-type {
  from {
    clip-path: inset(0 100% 0 0);
  }
  to {
    clip-path: inset(0 0 0 0);
  }
}
@keyframes sc-caret {
  50% {
    border-right-color: var(--mint);
  }
}
@keyframes sc-press {
  50% {
    scale: 0.9;
    filter: brightness(1.25);
  }
}
@keyframes sc-beam {
  from {
    opacity: 1;
    translate: 0 -100%;
  }
  55%,
  to {
    opacity: 0;
    translate: 0 300%;
  }
}
@keyframes sc-pick {
  from {
    border-color: var(--line);
    background: transparent;
    color: var(--fg-3);
  }
}
@keyframes sc-blip {
  from {
    opacity: 0;
  }
  8%,
  88% {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}
@keyframes sc-spin {
  to {
    rotate: 1turn;
  }
}
@keyframes sc-lock {
  from {
    stroke: var(--fg-3);
  }
}
@keyframes sc-shackle {
  from {
    translate: 0 2.5px;
  }
}
@keyframes sc-switch {
  from {
    background: rgb(160 255 220 / 0.14);
  }
}
@keyframes sc-knob {
  from {
    left: 0.2em;
    background: var(--fg-3);
  }
}
@keyframes sc-handin {
  40% {
    border-color: rgb(62 224 168 / 0.8);
    box-shadow: 0 0 0 3px rgb(62 224 168 / 0.12);
  }
}
@keyframes sc-totp {
  from {
    --left: 100%;
  }
  to {
    --left: 0%;
  }
}
@keyframes sc-glow {
  40% {
    box-shadow: 0 0 0 6px rgb(62 224 168 / 0.18);
    scale: 1.06;
  }
}
@keyframes sc-token {
  from {
    left: 0%;
    opacity: 0;
  }
  12% {
    opacity: 1;
  }
  60% {
    left: 100%;
    opacity: 1;
  }
  70%,
  to {
    left: 100%;
    opacity: 0;
  }
}
@keyframes sc-hypo {
  from {
    border-color: rgb(62 224 168 / 0.6);
    background: rgb(62 224 168 / 0.08);
    color: var(--mint);
  }
  20%,
  to {
    border-color: var(--line);
    background: transparent;
    color: var(--fg-3);
  }
}
@keyframes sc-gate {
  from {
    opacity: 0;
    transform: scaleY(0);
  }
}
@keyframes sc-pkt {
  from {
    opacity: 0;
    transform: translate(var(--x0), var(--y0));
  }
  3% {
    opacity: 1;
  }
  22% {
    transform: translate(190px, 100px);
  }
  42% {
    opacity: 1;
    transform: translate(var(--x1), var(--y1));
  }
  47%,
  to {
    opacity: 0;
    transform: translate(var(--x1), var(--y1));
  }
}
@keyframes sc-pkt-drop {
  from {
    opacity: 0;
    transform: translate(var(--x0), var(--y0));
  }
  3% {
    opacity: 1;
  }
  22% {
    opacity: 1;
    transform: translate(190px, 100px);
  }
  25%,
  to {
    opacity: 0;
    transform: translate(198px, 105px);
  }
}
@keyframes sc-burst {
  from,
  21% {
    opacity: 0;
    scale: 0.3;
  }
  23% {
    opacity: 1;
    scale: 0.6;
  }
  40%,
  to {
    opacity: 0;
    scale: 2.4;
  }
}
@keyframes sc-drop-label {
  from,
  21% {
    opacity: 0;
  }
  25%,
  72% {
    opacity: 1;
  }
  82%,
  to {
    opacity: 0;
  }
}
@keyframes sc-hit {
  from {
    fill: var(--night-2);
    stroke: var(--fg-3);
  }
}
@keyframes sc-hit-tag {
  from {
    color: var(--fg-2);
  }
}
@keyframes sc-flash {
  30% {
    box-shadow: 0 0 0 4px rgb(255 106 92 / 0.25);
  }
}
@keyframes sc-slam {
  from {
    opacity: 0;
    scale: 1.08;
  }
  60% {
    opacity: 1;
    scale: 0.99;
  }
}
@keyframes sc-strike {
  from {
    background-size: 0 1.5px;
    color: var(--fg-2);
  }
}
@keyframes sc-fill {
  from {
    background-size: 0 100%;
    color: transparent;
  }
  80% {
    color: transparent;
  }
}
@keyframes sc-glow-text {
  40% {
    text-shadow: 0 0 12px rgb(62 224 168 / 0.9);
  }
}
@keyframes sc-stamp {
  from {
    opacity: 0;
    scale: 1.35;
    rotate: -4deg;
  }
  60% {
    opacity: 1;
    scale: 0.97;
    rotate: 0deg;
  }
}
@keyframes sc-grow {
  from {
    scale: 0 1;
  }
}

.scan__steps {
  display: grid;
}
.step {
  display: grid;
  align-content: center;
  gap: 14px;
  min-height: 44svh;
  padding-left: 28px;
  border-left: 1px solid var(--line);
  counter-increment: step;
  transition:
    opacity 0.4s,
    border-color 0.4s;
}
.step::before {
  content: counter(step, decimal-leading-zero);
  color: var(--mint);
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.9375rem;
  font-variant-numeric: tabular-nums;
}
.step h3 {
  font-size: clamp(1.4rem, 2.3vw, 1.9rem);
}
.step p {
  max-width: 44ch;
  color: var(--fg-2);
}
.js .step:not(.is-active) {
  opacity: 0.5;
}
.js .step.is-active {
  border-left-color: var(--mint);
}

@media (max-width: 860px) {
  .scan__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }
  .scan__stage {
    top: calc(var(--nav-h) + 22px);
    z-index: 2;
    height: auto;
    margin-inline: calc(var(--gutter) * -1);
    padding: 22px var(--gutter) 52px;
    /* Solid behind the scene so the steps scroll under it cleanly, with only a short fade at the edge. */
    background: linear-gradient(var(--night) calc(100% - 22px), transparent);
  }
  .stage {
    width: min(100%, 44svh * 1.2);
    margin-inline: auto;
  }
  .step {
    min-height: 50svh;
    align-content: start;
    padding-top: 12px;
  }
}

/* ---------- Rules ---------- */

.rules {
  padding-bottom: clamp(48px, 6vw, 88px);
}

/* The checkpoint: the grant as a config file beside a list of requests that try to leave it.
   Flat panels and hairlines; colour is kept for status only. */
.checkpoint {
  --deny: var(--coral);
  --pass: var(--mint);
  --hold: var(--amber);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid var(--line-2);
  border-radius: 6px;
  background: var(--night-2);
}
.pane {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.pane + .pane {
  border-left: 1px solid var(--line-2);
}
.pane__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 52px;
  padding: 8px 16px;
  border-bottom: 1px solid var(--line-2);
}
.pane__name {
  white-space: nowrap;
  color: var(--fg-2);
  font-family: var(--mono);
  font-size: 0.8125rem;
  font-weight: 500;
}
.tries .pane__name {
  font-family: var(--sans);
  font-size: 0.875rem;
}

/* Mode: two plain radio tabs in the file's header. */
.modes {
  display: flex;
  border: 1px solid var(--line-2);
  border-radius: 4px;
}
.modes label {
  position: relative;
  cursor: pointer;
}
.modes label + label {
  border-left: 1px solid var(--line-2);
}
.modes input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.modes span {
  display: grid;
  place-items: center;
  min-height: 32px;
  padding: 0 12px;
  color: var(--fg-3);
  font-size: 0.8125rem;
  font-weight: 500;
}
.modes input:checked + span {
  background: rgb(160 255 220 / 0.08);
  color: var(--fg);
}
.modes input:focus-visible + span {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}
/* A 32px tab gets its 44px touch target from the label around it. */
.modes label::after {
  content: '';
  position: absolute;
  inset: -6px 0;
}
.checkpoint:has([value='auto']:checked) [data-mode='supervised'],
.checkpoint:has([value='supervised']:checked) [data-mode='auto'] {
  display: none;
}

/* ----- The grant file ----- */
/* One grid for the whole file, so every comment starts in the same column. */
.cfg__lines {
  counter-reset: line;
  display: grid;
  grid-template-columns: 2.5em max-content minmax(0, 1fr);
  padding: 10px 0 14px;
  font-size: 0.8125rem;
}
.cfg__lines li {
  counter-increment: line;
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: subgrid;
  gap: 0 14px;
  padding: 3px 16px 3px 0;
  border-left: 2px solid transparent;
  line-height: 1.5;
}
.cfg__lines li::before {
  content: counter(line);
  color: var(--fg-3);
  font-family: var(--mono);
  text-align: right;
  opacity: 0.7;
}
.cfg__lines code {
  color: var(--fg);
  font-family: var(--mono);
  white-space: nowrap;
}
.cfg__lines code.i {
  padding-left: 2ch;
}
.cfg__lines .k {
  color: var(--mint-hi);
}
.cfg__c {
  color: var(--fg-3);
}
.cfg__c::before {
  content: '# ';
  font-family: var(--mono);
}
.cfg__lines li.is-hit {
  border-left-color: var(--tone, var(--deny));
  background: color-mix(in srgb, var(--tone, var(--deny)) 10%, transparent);
}
.cfg__lines li.is-hit::before {
  color: var(--tone, var(--deny));
  opacity: 1;
}
.cfg__lines li.is-hit .cfg__c {
  color: var(--fg-2);
}
.cfg[data-tone='pass'] {
  --tone: var(--pass);
}
.cfg[data-tone='hold'] {
  --tone: var(--hold);
}

/* ----- The request list ----- */
.reqs {
  display: grid;
  border-bottom: 1px solid var(--line-2);
}
.reqs li + li {
  border-top: 1px solid var(--line);
}
.req {
  --st: var(--deny);
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr) 3.5ch;
  align-items: baseline;
  gap: 14px;
  width: 100%;
  min-height: 44px;
  padding: 10px 16px;
  border: 0;
  border-left: 2px solid transparent;
  background: none;
  color: var(--fg-2);
  font: inherit;
  font-size: 0.875rem;
  text-align: left;
  cursor: pointer;
}
.req--pass {
  --st: var(--pass);
}
.req--mode {
  --st: var(--pass);
}
.checkpoint:has([value='supervised']:checked) .req--mode {
  --st: var(--hold);
}
.req__line {
  overflow: hidden;
  color: var(--fg-3);
  font-family: var(--mono);
  font-size: 0.75rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.req__st {
  color: var(--st);
  font-family: var(--mono);
  font-size: 0.8125rem;
  font-weight: 600;
  text-align: right;
}
/* A status shows once that request has been tried. */
.js .req:not(.is-done) .req__st {
  color: var(--fg-3);
  font-weight: 400;
}
.js .req:not(.is-done) .req__st::before {
  content: '—';
}
.js .req:not(.is-done) .req__st {
  font-size: 0;
}
.js .req:not(.is-done) .req__st::before {
  font-size: 0.8125rem;
}
.req[aria-pressed='true'] {
  border-left-color: var(--fg-2);
  background: rgb(160 255 220 / 0.05);
  color: var(--fg);
}
.req[aria-pressed='true'] .req__line {
  color: var(--fg-2);
}
.req:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}
/* While the attempts play on their own, the current row counts down to the next one. */
.req::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 1px;
  background: var(--fg-3);
  transform: scaleX(0);
  transform-origin: left;
}
html:not(.js) .reqs {
  display: none;
}

/* ----- The answer ----- */
.detail {
  display: grid;
  gap: 18px;
  flex: 1;
  align-content: start;
  padding: 18px 16px 22px;
}
.detail[data-verdict='deny'] {
  --tone: var(--deny);
}
.detail[data-verdict='pass'],
.detail[data-verdict='approved'] {
  --tone: var(--pass);
}
.detail[data-verdict='hold'] {
  --tone: var(--hold);
}
/* Engine, gateway, site; each hop is a hairline that fills while the request travels. */
.path {
  display: grid;
  grid-template-columns: auto minmax(16px, 1fr) auto minmax(16px, 1fr) auto;
  align-items: center;
  gap: 10px;
  font-size: 0.8125rem;
}
.path__node b {
  font-weight: 600;
}
.path__node small {
  color: var(--fg-3);
  font-size: 0.75rem;
}
.path__seg {
  height: 1px;
  background:
    linear-gradient(var(--tone), var(--tone)) left / var(--fill, 100%) 100%
      no-repeat,
    var(--line-2);
}
.path__seg--out {
  --fill: 0%;
}
.detail:is([data-verdict='pass'], [data-verdict='approved']) .path__seg--out {
  --fill: 100%;
}
.path__node--gate b {
  color: var(--tone);
}
.detail:is([data-verdict='deny'], [data-verdict='hold']) .path__node--site {
  color: var(--fg-3);
}

.tries__out {
  display: grid;
}
.try,
.try__when {
  display: grid;
  align-content: start;
  gap: 8px;
  min-width: 0;
}
.js .tries__out > .try {
  grid-area: 1 / 1;
}
.js .tries__out > .try[hidden] {
  display: grid;
  visibility: hidden;
}
.try__whens {
  display: grid;
}
.try__when {
  grid-area: 1 / 1;
}
.checkpoint .try__when[data-mode] {
  display: grid;
}
.checkpoint:has([value='auto']:checked) .try__when[data-mode='supervised'],
.checkpoint:has([value='supervised']:checked) .try__when[data-mode='auto'] {
  visibility: hidden;
}
.try__why {
  color: var(--fg-2);
  font-size: 0.9375rem;
}
.try__req {
  margin-top: 4px;
  overflow-wrap: anywhere;
  font-family: var(--mono);
  font-size: 0.875rem;
}
.try__req::before {
  content: '$ ';
  color: var(--fg-3);
}
.try__res {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
  font-family: var(--mono);
  font-size: 0.875rem;
}
.try__res b {
  color: var(--tone);
  font-weight: 600;
}
.try__res code {
  color: var(--tone);
  overflow-wrap: anywhere;
}
.try__say {
  max-width: 56ch;
  color: var(--fg);
}
.try__rule {
  color: var(--fg-3);
  font-size: 0.8125rem;
}
.try__approve {
  justify-self: start;
  min-height: 36px;
  margin-block: 4px;
  padding: 0 14px;
  border: 1px solid var(--amber);
  border-radius: 4px;
  background: none;
  color: var(--amber);
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
}
.try__approve:hover {
  background: rgb(255 197 107 / 0.1);
}
.try__approve:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 2px;
}
.try__res--hold :is(b, code) {
  color: var(--amber);
}
.try__res--after,
.try__say--after {
  display: none;
}
.detail[data-verdict='approved'] :is(.try__approve, .try__say--hold) {
  display: none;
}
.detail[data-verdict='approved'] .try__res--after {
  display: flex;
}
.detail[data-verdict='approved'] .try__say--after {
  display: block;
}
.detail[data-verdict='approved'] .try__res--hold {
  text-decoration: line-through;
  opacity: 0.5;
}
.detail[data-verdict='approved'] .try__res--after :is(b, code) {
  color: var(--mint);
}

/* ----- Motion: the chosen request plays once; nothing glows or loops ----- */
@media (prefers-reduced-motion: no-preference) {
  .is-run .try:not([hidden]) .try__req {
    animation: sc-type 0.4s steps(16, end) both;
  }
  .is-run
    .try:not([hidden])
    :is(.try__res, .try__say, .try__rule, .try__approve) {
    animation: sc-fade 0.25s ease-out both;
    animation-delay: var(--at, 0.95s);
  }
  .is-run .detail:is([data-verdict='pass'], [data-verdict='approved']) {
    --at: 1.35s;
  }
  .is-run .path__seg:not(.path__seg--out) {
    animation: hop 0.5s var(--ease-io) 0.4s both;
  }
  .is-run .detail[data-verdict='pass'] .path__seg--out {
    animation: hop 0.45s var(--ease-io) 0.9s both;
  }
  .is-approved .path__seg--out {
    animation: hop 0.45s var(--ease-io) both;
  }
  .is-run .cfg__lines li.is-hit {
    animation: sc-fade 0.25s ease-out 0.95s both;
  }
  .is-auto .req[aria-pressed='true']::after {
    animation: pick-fill var(--cycle, 5.2s) linear both;
  }
}
@keyframes hop {
  from {
    --fill: 0%;
  }
  to {
    --fill: 100%;
  }
}
@keyframes pick-fill {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}
@property --fill {
  syntax: '<percentage>';
  inherits: false;
  initial-value: 100%;
}

.seg {
  display: inline-flex;
  padding: 4px;
  border: 1px solid var(--line-2);
  border-radius: 6px;
}
.seg label {
  position: relative;
  cursor: pointer;
}
.seg input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.seg span {
  display: grid;
  place-items: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 4px;
  color: var(--fg-2);
  font-weight: 600;
  font-size: 0.9375rem;
  transition:
    background-color 0.25s,
    color 0.25s;
}
.seg input:checked + span {
  background: var(--accent);
  color: var(--mint-ink);
}
.day .seg input:checked + span {
  background: #0a1f1a;
  color: var(--mint-hi);
}
.seg input:focus-visible + span {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.seg--wide {
  position: relative;
  display: flex;
}
/* The wide toggle has one pill that slides to the chosen side instead of two that blink. */
.seg--wide::before {
  content: '';
  position: absolute;
  inset: 4px auto 4px 4px;
  width: calc(50% - 4px);
  border-radius: 4px;
  background: var(--accent);
  transition: translate 0.36s var(--ease-out);
}
.day .seg--wide::before {
  background: #0a1f1a;
}
.seg--wide:has(label:last-child input:checked)::before {
  translate: 100% 0;
}
.seg--wide input:checked + span,
.day .seg--wide input:checked + span {
  background: none;
}
.seg--wide span {
  position: relative;
}
.seg--wide label {
  flex: 1;
}
.seg--wide span {
  padding-inline: 10px;
  text-align: center;
  line-height: 1.2;
}

.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 20px clamp(28px, 5vw, 72px);
  margin-top: clamp(64px, 9vw, 128px);
  padding-top: 32px;
  border-top: 1px solid var(--line);
  color: var(--fg-2);
}
/* Each guarantee gets a small glyph of what it is: a stop button, a VM that is thrown away, a redaction bar. */
.fact {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}
.fact::before {
  content: '';
  width: 18px;
  height: 18px;
  margin-top: 0.2em;
  background: var(--glyph) no-repeat center / contain;
}
.fact--k1 {
  --glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Crect x='4' y='4' width='10' height='10' rx='2' fill='%233ee0a8'/%3E%3C/svg%3E");
}
.fact--k2 {
  --glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18' fill='none' stroke='%233ee0a8' stroke-width='1.6' stroke-linecap='round'%3E%3Crect x='2.5' y='3.5' width='13' height='11' rx='2' stroke-dasharray='3 2.4'/%3E%3Cpath d='M6.5 7l5 4M11.5 7l-5 4'/%3E%3C/svg%3E");
}
.fact--k3 {
  --glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18' fill='none' stroke='%233ee0a8' stroke-width='1.6' stroke-linecap='round'%3E%3Cpath d='M3 5h12M3 13h5'/%3E%3Crect x='3' y='7.6' width='9' height='2.8' rx='1' fill='%233ee0a8' stroke='none'/%3E%3C/svg%3E");
}

@media (max-width: 860px) {
  .checkpoint {
    grid-template-columns: minmax(0, 1fr);
  }
  /* On a phone the requests come first: the line reference under each answer stands in for the file beside it. */
  .tries {
    order: -1;
  }
  .pane + .pane {
    border-left: 0;
  }
  .cfg {
    border-top: 1px solid var(--line-2);
  }
}
@media (max-width: 560px) {
  .req {
    grid-template-columns: minmax(0, 1fr) 3.5ch;
    gap: 2px 12px;
  }
  .req__label {
    grid-column: 1;
  }
  .req__line {
    grid-row: 2;
  }
  .req__st {
    grid-row: 1 / 3;
    align-self: center;
  }
  .path__node small {
    display: none;
  }
  .path__node {
    white-space: nowrap;
  }
  /* Comments go under their line so the values keep the width. */
  .cfg__lines {
    grid-template-columns: 2.5em minmax(0, 1fr);
  }
  .cfg__lines code {
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .cfg__c {
    grid-column: 2;
    font-size: 0.75rem;
  }
}

/* ---------- Dawn: the page turns from night to day ---------- */

/* The resting state is the finished morning. Where scroll timelines exist the scene is pinned
   and the scroll plays it from night; elsewhere, and with reduced motion, it stays as drawn here. */
.dawn {
  position: relative;
  background: var(--night);
  color: #eaf3ef;
  view-timeline: --dawn block;
}
.dawn__pin {
  position: relative;
  display: grid;
  align-items: start;
  height: 100svh;
  min-height: 560px;
  overflow: clip;
}
.dawn__sky {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.dawn__night,
.dawn__day {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  /* Keep the sunrise in frame when a phone crops the panorama. */
  object-position: 76% 50%;
}
/* Warm bloom where the sun breaks over the ridge. */
.dawn__light {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      26vmax 18vmax at 79% 60%,
      rgb(255 214 140 / 0.55),
      rgb(255 190 110 / 0.16) 45%,
      transparent 75%
    ),
    radial-gradient(
      70vmax 40vmax at 79% 64%,
      rgb(255 226 170 / 0.18),
      transparent 70%
    );
  mix-blend-mode: screen;
}
/* Long soft rays fanning out from the sun. */
.dawn__rays {
  position: absolute;
  left: 79%;
  top: 60%;
  width: 240vmax;
  aspect-ratio: 1;
  translate: -50% -50%;
  background: repeating-conic-gradient(
    from 0deg,
    rgb(255 236 196 / 0.07) 0deg 2.2deg,
    transparent 2.2deg 9deg
  );
  -webkit-mask: radial-gradient(
    closest-side,
    #000 4%,
    rgb(0 0 0 / 0.5) 22%,
    transparent 62%
  );
  mask: radial-gradient(
    closest-side,
    #000 4%,
    rgb(0 0 0 / 0.5) 22%,
    transparent 62%
  );
  mix-blend-mode: screen;
}
.dawn__ridge {
  position: absolute;
  inset: auto 0 -1px;
  width: 100%;
  height: clamp(110px, 20svh, 220px);
  fill: var(--paper);
}
@media (max-width: 760px) {
  .dawn__rays {
    left: 62%;
  }
}
.dawn__inner {
  position: relative;
  padding-top: calc(var(--nav-h) + 12svh);
}
.dawn__title {
  max-width: 11ch;
  font-size: clamp(2.3rem, 5.6vw, 5.2rem);
}
@media (prefers-reduced-motion: no-preference) {
  @supports ((animation-timeline: scroll()) and (animation-range: 0% 100%)) {
    .dawn {
      height: 260svh;
    }
    .dawn__pin {
      position: sticky;
      top: 0;
    }
    .dawn__night,
    .dawn__day {
      animation: dawn-pull linear both;
      animation-timeline: --dawn;
      animation-range: contain 0% contain 100%;
    }
    .dawn__day {
      animation-name: dawn-pull, dawn-fade;
      animation-range:
        contain 0% contain 100%,
        contain 8% contain 66%;
    }
    .dawn__light {
      animation: dawn-fade linear both;
      animation-timeline: --dawn;
      animation-range: contain 30% contain 88%;
    }
    .dawn__rays {
      animation: dawn-rays linear both;
      animation-timeline: --dawn;
      animation-range: contain 36% contain 100%;
    }
    .dawn__ridge {
      animation: dawn-near linear both;
      animation-timeline: --dawn;
      animation-range: contain 52% contain 100%;
    }
    .dawn__title {
      animation: dawn-title linear both;
      animation-timeline: --dawn;
      animation-range: entry 70% contain 12%;
    }
  }
}
@keyframes dawn-fade {
  from {
    opacity: 0;
  }
}
/* The camera eases back as the light comes up. */
@keyframes dawn-pull {
  from {
    scale: 1.14;
    translate: 0 3%;
  }
}
@keyframes dawn-rays {
  from {
    opacity: 0;
    rotate: -8deg;
  }
}
@keyframes dawn-near {
  from {
    translate: 0 101%;
  }
}
@keyframes dawn-title {
  from {
    opacity: 0;
    translate: 0 48px;
  }
}

/* ---------- Report ---------- */

.report__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.report__copy {
  display: grid;
  gap: 26px;
}
.checks {
  display: grid;
  gap: 2px;
}
.checks li {
  padding: 13px 0;
  border-top: 1px solid var(--line);
  line-height: 1.45;
}

.finding {
  display: grid;
  gap: 22px;
  padding: clamp(22px, 3vw, 36px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.finding__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  font-size: 0.875rem;
}
.sev {
  padding: 3px 12px;
  border-radius: 3px;
  background: var(--coral-ink);
  color: #fff;
  font-weight: 700;
}
.finding__id {
  color: var(--fg-3);
  font-family: var(--mono);
}
.finding__status {
  margin-left: auto;
  color: var(--pine);
  font-weight: 600;
}
.finding__layer {
  display: grid;
  gap: 16px;
}
.finding__layer h3 {
  font-size: clamp(1.3rem, 2vw, 1.6rem);
}
.finding__layer > p {
  color: var(--fg-2);
}
.finding__meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px 24px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.finding__meta dt {
  color: var(--fg-3);
  font-size: 0.875rem;
}
.finding__meta dd {
  font-weight: 600;
}
.finding__code {
  margin: 0;
  padding: 18px;
  border-radius: var(--radius-sm);
  background: #0a1512;
  color: #d6e6df;
  font-size: 0.8125rem;
  line-height: 1.6;
  overflow-x: auto;
}
.finding__code mark {
  padding: 0 3px;
  border-radius: 3px;
  background: linear-gradient(rgb(255 106 92 / 0.24), rgb(255 106 92 / 0.24))
    no-repeat left / 100% 100%;
  color: #ffb1a8;
}
/* The fix as a diff: the removed line struck in coral, the added lines in mint. */
.finding__diff code {
  display: grid;
}
.finding__diff span {
  margin-inline: -18px;
  padding-inline: 18px;
  white-space: pre;
}
.d-del {
  background: rgb(255 106 92 / 0.12);
  color: #ffb1a8;
}
.d-add {
  background: linear-gradient(rgb(62 224 168 / 0.14), rgb(62 224 168 / 0.14))
    no-repeat left / 100% 100%;
  color: var(--mint-hi);
}
/* When the developer layer opens, the evidence and the fix are marked in, one after the other. */
@media (prefers-reduced-motion: no-preference) {
  .finding__layer:not([hidden]) .finding__code mark,
  .finding__layer:not([hidden]) .d-add {
    animation: mark-in 0.6s var(--ease-out) both;
    animation-delay: 0.25s;
  }
  .finding__layer:not([hidden]) .d-add {
    animation-delay: 0.55s;
  }
  .finding__layer:not([hidden]) .d-add + .d-add {
    animation-delay: 0.7s;
  }
}
@keyframes mark-in {
  from {
    background-size: 0% 100%;
  }
}
.c-mute {
  color: #7d928b;
}
.c-ok {
  color: var(--mint);
}
.prompt {
  display: grid;
  gap: 10px;
  padding: 16px 18px;
  border: 1px dashed var(--line-2);
  border-radius: var(--radius-sm);
  background: var(--paper);
}
.prompt__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-weight: 700;
  font-size: 0.875rem;
}
.prompt__copy {
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid var(--line-2);
  border-radius: 4px;
  background: none;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
}
.prompt__copy:hover {
  border-color: var(--pine);
  color: var(--pine);
}
.prompt p {
  font-size: 0.9375rem;
  line-height: 1.55;
}
.prompt__status {
  color: var(--pine);
  font-size: 0.8125rem;
}
.prompt__status:empty {
  display: none;
}
.finding__sig {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--fg-3);
  font-family: var(--mono);
  font-size: 0.8125rem;
}
.finding__verified {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--pine);
  font-family: var(--sans);
  font-weight: 600;
}
.finding__verified::before {
  content: '';
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--pine)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='m4 7.2 2 2 4-4.4' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / 100% no-repeat;
}
/* While the hash is being checked the verdict waits; main.js sets data-checking. */
.finding__sig[data-checking] .finding__verified {
  opacity: 0;
  translate: 4px 0;
}
.finding__verified {
  transition:
    opacity 0.4s ease,
    translate 0.5s var(--ease-out);
}
@media (prefers-reduced-motion: no-preference) {
  ::view-transition-old(finding-layer) {
    animation: 0.18s ease both fade-out;
  }
  ::view-transition-new(finding-layer) {
    animation: 0.32s var(--ease-out) 0.08s both settle;
  }
}
@keyframes fade-out {
  to {
    opacity: 0;
  }
}

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

/* ---------- Compare ---------- */

.compare {
  padding-top: 0;
}
.compare__scroll {
  margin-top: clamp(40px, 6vw, 72px);
  overflow-x: auto;
}
.compare table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  font-size: 1rem;
}
.compare th,
.compare td {
  padding: 20px 18px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  font-weight: 400;
}
.compare thead th {
  color: var(--fg-3);
  font-size: 0.9375rem;
}
.compare tbody th {
  width: 26%;
  padding-left: 0;
  color: var(--fg-2);
}
.compare td {
  color: var(--fg-2);
}
.compare .is-us {
  background: rgb(10 110 82 / 0.07);
  color: var(--fg);
  font-weight: 600;
}
.compare thead .is-us {
  border-top: 2px solid var(--pine);
  color: var(--pine);
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.125rem;
}
/* The answers are words; only "no" is set in the alert colour so the gaps stand out. */
.compare td[data-v='no'] {
  color: var(--alert);
}
.compare__us {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
/* A phone cannot fit four columns, and scrolling sideways hid the Fortexa AI column. Each row becomes a card:
   the criterion, Fortexa AI's answer, then the two alternatives side by side. */
@media (max-width: 640px) {
  .compare__scroll {
    overflow: visible;
  }
  .compare table,
  .compare tbody {
    display: block;
    min-width: 0;
  }
  .compare thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  .compare tbody tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 14px 16px;
    padding-block: 22px;
    border-bottom: 1px solid var(--line);
  }
  .compare tbody th,
  .compare td {
    width: auto;
    padding: 0;
    border: 0;
  }
  .compare tbody th {
    grid-column: 1 / -1;
    color: var(--fg);
    font-weight: 600;
  }
  .compare td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 2px;
    color: var(--fg-3);
    font-size: 0.8125rem;
    font-weight: 400;
  }
  .compare td.is-us {
    grid-column: 1 / -1;
    order: -1;
    grid-row: 2;
    padding: 10px 12px;
    border: 0;
    border-left: 2px solid var(--pine);
  }
  .compare td.is-us::before {
    color: var(--pine);
    font-weight: 600;
  }
}

/* ---------- Start ---------- */

.start {
  background: var(--paper-2);
}
.start__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.86fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.start__copy {
  display: grid;
  gap: 26px;
}
.form {
  display: grid;
  gap: 18px;
  padding: clamp(24px, 3.4vw, 40px);
  border-radius: var(--radius);
  background: var(--surface);
}
.field {
  display: grid;
  gap: 6px;
  font-size: 0.9375rem;
  font-weight: 600;
}
.field input {
  width: 100%;
  min-width: 0;
  min-height: 50px;
  padding: 0 16px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  background: var(--paper);
  font-size: 1rem;
  font-weight: 400;
  transition:
    border-color 0.2s,
    background-color 0.2s,
    box-shadow 0.2s;
}
.field input:hover {
  border-color: rgb(10 31 26 / 0.5);
}
.field input::placeholder {
  color: var(--fg-3);
}
/* Focus: the field lifts to white with a soft pine ring, so it is clear where typing goes. */
.field input:focus-visible {
  outline: 2px solid var(--pine);
  outline-offset: 1px;
  border-color: var(--pine);
  background: var(--white);
  box-shadow: 0 0 0 5px rgb(10 110 82 / 0.12);
}
.field input[aria-invalid='true'] {
  border-color: var(--coral-ink);
  background: #fdf1ef;
}
.field input[aria-invalid='true']:focus-visible {
  outline-color: var(--coral-ink);
  box-shadow: 0 0 0 5px rgb(179 38 27 / 0.12);
}
.field__error {
  display: flex;
  gap: 6px;
  align-items: center;
}
.field .field__error {
  color: var(--coral-ink);
  font-weight: 500;
}
.field__error:empty {
  display: none;
}
.field__error::before,
.form__status:not(:empty)::before {
  content: '';
  flex: none;
  width: 16px;
  height: 16px;
  background: no-repeat center / contain;
}
.field__error::before,
.form__status.is-error::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='7' fill='%23b3261b'/%3E%3Cpath d='M8 4.5v4.2' stroke='%23fff' stroke-width='1.8' stroke-linecap='round'/%3E%3Ccircle cx='8' cy='11.4' r='1' fill='%23fff'/%3E%3C/svg%3E");
}
.form__status.is-ok::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='7' fill='%230a6e52'/%3E%3Cpath d='M4.8 8.3l2.2 2.1 4.2-4.3' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.field small {
  color: var(--fg-3);
  font-size: 0.8125rem;
  font-weight: 400;
}
.form__status {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 0.9375rem;
  font-weight: 500;
}
.form__status.is-ok {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: rgb(10 110 82 / 0.08);
}
/* Empty, the live region stays in the tree for screen readers but takes no room under the button. */
.form__status:empty {
  margin-top: -18px;
}
.form__status.is-error {
  color: var(--coral-ink);
}
.form__status.is-ok {
  color: var(--pine);
}

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

/* ---------- FAQ ---------- */

.faq__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}
.faq__aside {
  display: grid;
  justify-items: start;
  gap: 22px;
}
.faq__more {
  max-width: 30ch;
  color: var(--fg-2);
}
@media (min-width: 861px) {
  .faq__aside {
    position: sticky;
    top: 120px;
  }
}
.faq__list {
  border-bottom: 1px solid var(--line);
  interpolate-size: allow-keywords;
}
.faq details {
  border-top: 1px solid var(--line);
}
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 0;
  font-family: var(--display);
  font-weight: 650;
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  line-height: 1.3;
  cursor: pointer;
  list-style: none;
  transition: color 0.2s;
}
.faq summary:hover {
  color: var(--pine);
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: '';
  flex: none;
  width: 12px;
  height: 12px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  rotate: 45deg;
  translate: 0 -3px;
  transition: rotate 0.3s var(--ease-out);
}
.faq details[open] summary::after {
  rotate: 225deg;
  translate: 0 3px;
}
.faq details p {
  max-width: 62ch;
  padding-bottom: 26px;
  color: var(--fg-2);
}
@media (prefers-reduced-motion: no-preference) {
  .faq details::details-content {
    block-size: 0;
    overflow: clip;
    transition:
      block-size 0.35s var(--ease-out),
      content-visibility 0.35s;
    transition-behavior: allow-discrete;
  }
  .faq details[open]::details-content {
    block-size: auto;
  }
}

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

/* ---------- Final ---------- */

.final {
  position: relative;
  display: grid;
  align-items: center;
  min-height: 72svh;
  padding-block: var(--band);
  overflow: clip;
  background:
    radial-gradient(
      40vmax 30vmax at 50% 50%,
      rgb(62 224 168 / 0.08),
      transparent 70%
    ),
    var(--night);
}
/* The dashed frame of a scan grant, around one app. */
.final__inner {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 40px;
  max-width: 880px;
  margin-inline: auto;
  padding: clamp(48px, 8vw, 96px) clamp(24px, 6vw, 72px);
  border: 1px dashed var(--line-2);
  border-radius: 14px;
  text-align: center;
}
.final__scope {
  position: absolute;
  top: 0;
  left: 20px;
  translate: 0 -50%;
  padding-inline: 8px;
  background: var(--night);
  color: var(--fg-3);
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
}
.final__title {
  max-width: 14ch;
}

/* ---------- Footer ---------- */

.footer {
  padding-block: clamp(56px, 7vw, 88px) 32px;
  border-top: 1px solid var(--line);
}
.footer__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto;
  gap: 40px clamp(32px, 6vw, 96px);
  align-items: start;
}
.footer__brand {
  display: grid;
  justify-items: start;
  gap: 16px;
}
.footer .brand {
  color: var(--fg);
}
.footer__tag {
  max-width: 36ch;
  color: var(--fg-2);
}
.footer__cta {
  color: var(--mint);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgb(62 224 168 / 0.4);
  text-underline-offset: 4px;
  transition: text-decoration-color 0.2s;
}
.footer__cta:hover {
  text-decoration-color: currentColor;
}
.footer__nav {
  display: grid;
  grid-template-rows: repeat(3, auto);
  grid-auto-flow: column;
  justify-content: start;
  gap: 0 48px;
}
.footer__nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: var(--fg-2);
  text-decoration: none;
  transition: color 0.2s;
}
.footer__nav a:hover {
  color: var(--fg);
}
.footer__base {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 32px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--fg-3);
  font-size: 0.875rem;
}
.footer__note {
  flex: 1 1 320px;
}
@media (max-width: 760px) {
  .footer__inner {
    grid-template-columns: minmax(0, 1fr);
  }
  .footer__lang {
    justify-self: start;
  }
}

/* ---------- Desktop ---------- */

/* Laptops are wide but short: the hero type follows the height too, so the headline, the copy,
   both calls and the scan log all fit in the first screen. */
@media (min-width: 861px) {
  .hero {
    padding-block: calc(var(--nav-h) + clamp(28px, 6vh, 72px))
      clamp(28px, 5vh, 72px);
  }
  .hero__inner {
    gap: clamp(18px, 2.8vh, 28px);
  }
  .hero .display {
    font-size: clamp(2.8rem, min(5.6vw, 8.2vh), 6rem);
  }
  .hero__lead {
    max-width: 54ch;
    font-size: clamp(1.0625rem, min(1.5vw, 2.5vh), 1.25rem);
  }
}

/* Pointer feedback where a mouse can hover: rows and items answer, the rest stays still. */
@media (hover: hover) and (min-width: 861px) {
  .js .step:not(.is-active) {
    cursor: pointer;
  }
  .js .step:not(.is-active):hover {
    opacity: 0.8;
    border-left-color: var(--line-2);
  }
  .compare tbody tr > * {
    transition: background-color 0.2s;
  }
  .compare tbody tr:hover > :not(.is-us) {
    background-color: rgb(10 31 26 / 0.04);
  }
  .compare tbody tr:hover > .is-us {
    background-color: rgb(10 110 82 / 0.1);
  }
  .req:hover {
    background: rgb(160 255 220 / 0.04);
    color: var(--fg);
  }
}

/* ---------- Motion control ---------- */

/* On a phone the floating button would sit on top of the text; the menu carries the same switch instead. */
@media (max-width: 860px) {
  .motion {
    display: none !important;
  }
}
.mobile-menu__motion {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 0;
  border-radius: 12px;
  background: none;
  color: #a9bdb6;
  font: inherit;
  font-size: 0.9375rem;
  text-align: left;
  cursor: pointer;
}
.mobile-menu__motion svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}
[data-motion='off'] .mobile-menu__motion .motion__pause {
  display: none;
}
[data-motion='off'] .mobile-menu__motion .motion__play {
  display: block;
  fill: currentColor;
}
.motion {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 40;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgb(160 255 220 / 0.22);
  border-radius: 50%;
  background: rgb(6 13 11 / 0.78);
  backdrop-filter: blur(12px);
  color: #eaf3ef;
  cursor: pointer;
}
.motion svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.motion__play {
  display: none;
  fill: currentColor;
}
[data-motion='off'] .motion__pause {
  display: none;
}
[data-motion='off'] .motion__play {
  display: block;
}
/* With motion off the scan scenes stand in their finished state, as with reduced motion. */
[data-motion='off'] .scene *,
[data-motion='off'] .scene *::before,
[data-motion='off'] .scene *::after,
[data-motion='off'] .checkpoint *,
[data-motion='off'] .checkpoint *::before,
[data-motion='off'] .checkpoint *::after {
  animation: none !important;
}
/* The problem section stands in its finished frame too: the dots and the year chart do not play. */
[data-motion='off'] :is(.year, .figure__dots) *,
[data-motion='off'] .figure__dots i {
  animation: none !important;
  transition: none !important;
}
[data-motion='off'] .scene--attack .map__drop {
  opacity: 1;
}
/* The button stops everything that keeps moving on its own: the hero loop, the log, the type line and the diagrams. */
[data-motion='off'] :is(.classes__track, .feed__live i) {
  animation-play-state: paused !important;
}
