/* Asset Audit by Aharoll: swatch-fan landing. One grotesk across widths, booth-gray ground, severity is the only saturated colour. */

:root {
  --ground: #d8d9d5;
  --ground-deep: #cbccc7;
  --blade: #fbfbf8;
  --blade-edge: #e6e7e2;
  --ink: #121413;
  --ink-2: #454946;
  --ink-3: #545854;
  --rule: #b4b6b0;
  --cover: #151716;
  --cover-ink: #f3f3ef;
  --cover-ink-2: #a9aca6;

  --crit: #e2321f;
  --high: #f17c1c;
  --med: #e0ad1a;
  --low: #8aac84;
  --none: #ecede8;

  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-fan: cubic-bezier(0.12, 0.9, 0.24, 1);

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1280px;
  --radius: 6px;
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 40px;
  --space-5: 64px;
  --space-6: 112px;
}

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

html {
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  font-variation-settings: "wdth" 100;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

::selection {
  background: var(--ink);
  color: var(--med);
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  border-radius: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Codes: the guide's expanded caps, used for every label and number */
.code {
  font-variation-settings: "wdth" 118;
  font-weight: 600;
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
}

.wrap {
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Buttons */
.btn {
  --bg: var(--ink);
  --fg: var(--blade);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border: 0;
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--fg);
  font: inherit;
  font-variation-settings: "wdth" 112;
  font-weight: 650;
  font-size: 15px;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out), background 0.2s;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.2), 0 6px 14px -8px rgba(0, 0, 0, 0.45);
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.2), 0 12px 22px -10px rgba(0, 0, 0, 0.5);
  text-decoration: none;
}

.btn:active {
  transform: translateY(0);
}

.btn[disabled] {
  opacity: 0.55;
  cursor: progress;
  transform: none;
}

.btn--light {
  --bg: var(--blade);
  --fg: var(--ink);
}

.btn--ghost {
  --bg: transparent;
  --fg: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--ink);
}

.btn--ghost:hover {
  box-shadow: inset 0 0 0 2px var(--ink);
}

.btn svg {
  width: 18px;
  height: 18px;
  flex: none;
}

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--ground) 88%, transparent);
  backdrop-filter: saturate(1.2) blur(10px);
  -webkit-backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}

.nav.is-stuck {
  border-bottom-color: var(--rule);
}

.nav__inner {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-variation-settings: "wdth" 125;
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.01em;
}

.brand svg {
  width: 26px;
  height: 26px;
}

.brand small {
  font-variation-settings: "wdth" 118;
  font-weight: 600;
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
  padding-left: 10px;
  border-left: 1px solid var(--rule);
}

.nav__links {
  display: flex;
  gap: var(--space-3);
  margin-left: auto;
  list-style: none;
  padding: 0;
  font-size: 15px;
}

.nav__links a {
  text-decoration: none;
  color: var(--ink-2);
}

.nav__links a:hover {
  color: var(--ink);
  text-decoration: underline;
}

.nav .btn {
  min-height: 40px;
  padding: 0 16px;
  font-size: 14px;
}

/* Hero: the fan */
.hero {
  position: relative;
  height: clamp(700px, calc(100svh - 68px), 960px);
  overflow: clip;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  padding-top: clamp(20px, 3.5vh, 44px);
}

.hero__top {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: var(--space-4);
  align-items: end;
  position: relative;
  z-index: 3;
}

.hero h1 {
  margin: 0;
  font-variation-settings: "wdth" 125;
  font-weight: 800;
  font-size: clamp(2.4rem, 4.9vw, 4.6rem);
  line-height: 0.95;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.hero__lede {
  max-width: 46ch;
  margin: 0;
  font-size: clamp(16px, 1.25vw, 18px);
  color: var(--ink-2);
  text-wrap: pretty;
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin-top: 14px;
  font-size: 13.5px;
  color: var(--ink-2);
}

.legend__row {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.legend .chip {
  width: 20px;
  height: 12px;
}

.chip {
  display: inline-block;
  width: 28px;
  height: 18px;
  border-radius: 2px;
  background: var(--c, var(--none));
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.sev-critical { --c: var(--crit); }
.sev-high { --c: var(--high); }
.sev-medium { --c: var(--med); }
.sev-low { --c: var(--low); }
.sev-none { --c: var(--none); }

/* The fan stage: blades sized from the space the hero leaves them */
.fan {
  position: relative;
  min-height: 0;
}

.fan__area {
  position: absolute;
  inset: 0;
  container-type: size;
  z-index: 1;
}

.fan__stage {
  --bl: min(560px, calc(100cqh - 12px), 46cqw);
  --bw: clamp(64px, calc(var(--bl) * 0.21), 112px);
  --pivot: 26px;
  position: absolute;
  left: 50%;
  bottom: 4px;
  width: 0;
  height: 0;
}

.blade {
  --a: 0deg;
  --lift: 0px;
  position: absolute;
  left: calc(var(--bw) / -2);
  bottom: 0;
  width: var(--bw);
  height: var(--bl);
  padding: 0;
  border: 0;
  border-radius: var(--radius) var(--radius) calc(var(--bw) / 2) calc(var(--bw) / 2);
  background: var(--blade);
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transform-origin: 50% calc(100% - var(--pivot));
  transform: rotate(var(--a)) translateY(calc(var(--lift) * -1));
  transition:
    transform 0.9s var(--ease-fan),
    opacity 0.4s var(--ease-out),
    filter 0.4s var(--ease-out),
    box-shadow 0.4s var(--ease-out);
  transition-delay: var(--d, 0ms), 0ms, 0ms, 0ms;
  box-shadow:
    0 0 0 1px var(--blade-edge),
    -6px 10px 22px -14px rgba(0, 0, 0, 0.55);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  will-change: transform;
}

.blade:hover,
.blade:focus-visible {
  --lift: 16px;
  transition-delay: 0ms;
}

.blade:focus-visible {
  outline-offset: 2px;
}

.fan.has-selection .blade {
  filter: saturate(0.15) brightness(0.92) contrast(0.85);
}

.fan.has-selection .blade.is-selected {
  --lift: 34px;
  filter: none;
  box-shadow: 0 0 0 1px var(--blade-edge), -10px 18px 36px -14px rgba(0, 0, 0, 0.6);
}

.fan.is-closed .blade {
  --a: 0deg !important;
  transition-delay: 0ms;
  transition-duration: 0.45s;
}

.blade__tip {
  flex: none;
  height: 26px;
  background: var(--c, var(--none));
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 7px 8px;
  font-size: 9.5px;
}

.blade__chips {
  flex: none;
  display: grid;
  gap: 3px;
  padding: 6px 6px 0;
}

.blade__chip {
  position: relative;
  aspect-ratio: 1;
  border-radius: 2px;
  overflow: hidden;
  background: var(--tone, var(--ground-deep));
}

.blade__chip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--pos, 50% 50%);
  transform: scale(var(--zoom, 1));
}

.blade__chip--empty {
  background:
    repeating-linear-gradient(-45deg, transparent 0 5px, rgba(18, 20, 19, 0.18) 5px 6px),
    var(--blade);
  box-shadow: inset 0 0 0 1px var(--rule);
}

.blade__chip--empty::after,
.blade__chip--tone::after {
  content: attr(data-label);
  position: absolute;
  left: 4px;
  bottom: 3px;
  right: 4px;
  font-variation-settings: "wdth" 112;
  font-weight: 600;
  font-size: 8.5px;
  line-height: 1.1;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.blade__chip--tone::after {
  color: rgba(18, 20, 19, 0.66);
}

.blade__label {
  flex: none;
  min-height: calc(3 * 1.2em + 8px);
  padding: 7px 8px 0;
  font-size: 11px;
  line-height: 1.2;
  font-weight: 600;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blade__codes {
  flex: none;
  padding: 6px 8px 0;
  display: grid;
  gap: 1px;
  font-size: 8.5px;
  color: var(--ink-3);
}

.blade__rivet {
  margin-top: auto;
  align-self: center;
  width: 12px;
  height: 12px;
  margin-bottom: calc(var(--pivot) - 6px);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff 0 15%, #a8aaa5 45%, #6f726e 100%);
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.35);
}

/* The cover blade holds the action */
.cover {
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: 0;
  width: min(440px, calc(100vw - 2 * var(--gutter)));
  transform: translateX(-50%);
  padding: 0 22px 44px;
  border-radius: var(--radius) var(--radius) 0 0;
  background: var(--cover);
  color: var(--cover-ink);
  box-shadow: 0 -18px 40px -22px rgba(0, 0, 0, 0.55);
}

.cover__tip {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 0 -22px 16px;
  padding: 9px 22px;
  border-radius: var(--radius) var(--radius) 0 0;
  background: var(--med);
  color: var(--ink);
}

.cover::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 14px;
  width: 16px;
  height: 16px;
  margin-left: -8px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff 0 12%, #a8aaa5 45%, #575a57 100%);
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.5);
}

.cover h2 {
  margin: 0 0 4px;
  padding-top: 2px;
  font-variation-settings: "wdth" 125;
  font-weight: 800;
  font-size: 24px;
  line-height: 1.05;
  letter-spacing: -0.01em;
}

.cover p {
  margin: 0 0 16px;
  font-size: 14.5px;
  color: var(--cover-ink-2);
}

.scan-form {
  display: flex;
  gap: 8px;
}

.scan-form input {
  flex: 1 1 auto;
  min-width: 0;
  height: 48px;
  padding: 0 14px;
  border: 1.5px solid #3b3f3c;
  border-radius: var(--radius);
  background: #0b0c0c;
  color: var(--cover-ink);
  font: inherit;
  font-size: 16px;
  caret-color: var(--med);
  transition: border-color 0.2s;
}

.scan-form input::placeholder {
  color: #8d908b;
}

.scan-form input:focus {
  outline: none;
  border-color: var(--med);
}

.scan-form .btn {
  --bg: var(--med);
  --fg: var(--ink);
}

.cover__fine {
  margin-top: 10px;
  font-size: 12.5px;
  color: var(--cover-ink-2);
}

.cover__status {
  min-height: 1.4em;
  margin-top: 10px;
  font-size: 13.5px;
  color: var(--cover-ink);
}

.cover__status:empty {
  display: none;
}

.cover__status.is-error {
  color: #ffb4a8;
}

.cover__status a {
  color: var(--cover-ink);
}

.progress {
  height: 4px;
  margin-top: 12px;
  border-radius: 2px;
  background: #2b2e2c;
  overflow: hidden;
  display: none;
}

.progress.is-on {
  display: block;
}

.progress span {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--med);
  transform-origin: left;
  transform: scaleX(var(--p, 0));
  transition: transform 0.35s var(--ease-out);
}

.cover__result {
  display: grid;
  gap: 12px;
}

.tally {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
}

.tally div {
  padding: 8px 8px 6px;
  border-radius: 3px;
  background: var(--c);
  color: var(--ink);
}

.tally b {
  display: block;
  font-variation-settings: "wdth" 125;
  font-weight: 800;
  font-size: 22px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.tally span {
  font-size: 9.5px;
}

.cover__actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.cover__actions .btn {
  min-height: 42px;
  font-size: 14px;
}

.cover__actions .btn--ghost {
  --fg: var(--cover-ink);
  box-shadow: inset 0 0 0 1.5px #555955;
}

/* Detail: the pulled blade laid flat */
.detail {
  position: absolute;
  z-index: 8;
  right: var(--gutter);
  top: 0;
  width: min(380px, calc(100vw - 2 * var(--gutter)));
  max-height: calc(100% - 24px);
  overflow: auto;
  background: var(--blade);
  border-radius: var(--radius);
  box-shadow: 0 0 0 1px var(--blade-edge), 0 30px 60px -30px rgba(0, 0, 0, 0.6);
  opacity: 0;
  transform: translateX(24px) rotate(1.5deg);
  pointer-events: none;
  transition: opacity 0.35s var(--ease-out), transform 0.5s var(--ease-out);
}

.detail.is-open {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.detail__tip {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px 8px 18px;
  background: var(--c, var(--none));
}

.detail__tip span:nth-child(2) {
  margin-left: auto;
  opacity: 0.8;
}

.detail__close {
  border: 0;
  background: none;
  padding: 2px;
  cursor: pointer;
  color: var(--ink);
}

.detail__close svg {
  width: 18px;
  height: 18px;
  display: block;
}

.detail__body {
  padding: 16px 18px 18px;
}

.detail h3 {
  margin: 0 0 12px;
  font-variation-settings: "wdth" 112;
  font-weight: 700;
  font-size: 20px;
  line-height: 1.15;
}

.detail__thumbs {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  padding-bottom: 4px;
  margin-bottom: 14px;
  scrollbar-width: thin;
}

.detail__thumbs > * {
  flex: none;
  width: 58px;
  height: 58px;
  border-radius: 2px;
  overflow: hidden;
  background: var(--tone, var(--ground-deep));
  position: relative;
}

.detail__thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--pos, 50% 50%);
  transform: scale(var(--zoom, 1));
}

.detail__scores {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--blade-edge);
  border-bottom: 1px solid var(--blade-edge);
  margin-bottom: 12px;
}

.detail__scores div {
  padding: 8px 0;
}

.detail__scores div + div {
  padding-left: 10px;
  border-left: 1px solid var(--blade-edge);
}

.detail__scores b {
  display: block;
  font-variation-settings: "wdth" 125;
  font-weight: 800;
  font-size: 22px;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.detail__scores span {
  color: var(--ink-3);
  font-size: 10px;
}

.findings {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.findings li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  font-size: 14px;
  line-height: 1.4;
}

.findings .chip {
  width: 22px;
  height: 14px;
  margin-top: 3px;
}

.findings b {
  font-weight: 650;
}

.findings p {
  margin: 2px 0 0;
  color: var(--ink-2);
  font-size: 13.5px;
}

.detail__foot {
  margin-top: 14px;
  font-size: 13.5px;
  color: var(--ink-2);
}

/* Sections */
.section {
  padding: var(--space-6) 0;
}

.section--rule {
  border-top: 1px solid var(--rule);
}

.section h2 {
  margin: 0;
  max-width: 18ch;
  font-variation-settings: "wdth" 125;
  font-weight: 800;
  font-size: clamp(2rem, 3.8vw, 3.4rem);
  line-height: 1;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.section__lede {
  max-width: 60ch;
  margin: var(--space-3) 0 0;
  color: var(--ink-2);
  font-size: 18px;
  text-wrap: pretty;
}

.section__head {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: var(--space-4);
  align-items: end;
  margin-bottom: var(--space-5);
}

.section__head .section__lede {
  margin: 0;
}

/* Inspection sheet: one blade laid flat */
.sheet {
  background: var(--blade);
  border-radius: var(--radius);
  box-shadow: 0 0 0 1px var(--blade-edge), 0 24px 50px -30px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

.sheet__tip {
  display: flex;
  justify-content: space-between;
  padding: 9px var(--space-3);
  background: var(--crit);
}

.sheet__body {
  padding: var(--space-3);
}

.sheet__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding-bottom: var(--space-2);
  border-bottom: 1px solid var(--blade-edge);
  margin-bottom: var(--space-3);
}

.sheet__meta h3 {
  margin: 0;
  font-variation-settings: "wdth" 112;
  font-weight: 700;
  font-size: 20px;
}

.sheet__meta .code {
  color: var(--ink-3);
}

.sheet__grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: var(--space-2);
  list-style: none;
  margin: 0;
  padding: 0;
}

.shot {
  display: grid;
  gap: 10px;
  align-content: start;
}

.shot__img {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 3px;
  overflow: hidden;
  background: var(--tone, var(--ground-deep));
}

.shot__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--pos, 50% 50%);
  transform: scale(var(--zoom, 1));
}

.shot__img--empty {
  background:
    repeating-linear-gradient(-45deg, transparent 0 7px, rgba(18, 20, 19, 0.16) 7px 8px),
    var(--blade);
  box-shadow: inset 0 0 0 1px var(--rule);
  display: grid;
  place-items: center;
}

.shot__img--empty .code {
  background: var(--blade);
  padding: 3px 6px;
  border-radius: 2px;
  color: var(--ink-2);
}

.shot__tag {
  position: absolute;
  left: 6px;
  top: 6px;
  padding: 2px 6px;
  border-radius: 2px;
  background: var(--c);
  font-size: 10px;
}

.shot__note {
  font-size: 14px;
  line-height: 1.4;
}

.shot__note b {
  display: block;
  font-weight: 650;
}

.shot__note span {
  color: var(--ink-2);
}

.mark {
  position: absolute;
  inset: 10%;
  border: 2px solid var(--crit);
  border-radius: 46% 54% 50% 50% / 52% 46% 54% 48%;
  transform: rotate(-6deg) scale(0.6);
  opacity: 0;
  transition: transform 0.7s var(--ease-fan), opacity 0.3s;
}

.is-inview .mark {
  opacity: 0.95;
  transform: rotate(-6deg) scale(1);
}

/* Coverage templates: blades laid flat as a formula guide */
.guide {
  display: grid;
  gap: 10px;
}

.guide__row {
  display: grid;
  grid-template-columns: minmax(150px, 220px) 1fr;
  align-items: stretch;
  background: var(--blade);
  border-radius: var(--radius) calc(var(--radius) * 3) calc(var(--radius) * 3) var(--radius);
  box-shadow: 0 0 0 1px var(--blade-edge), 0 8px 18px -14px rgba(0, 0, 0, 0.45);
  overflow: hidden;
  transform: translateX(var(--slide, 0));
  transition: transform 0.8s var(--ease-fan);
}

.guide__name {
  padding: 14px 16px;
  border-right: 1px solid var(--blade-edge);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
}

.guide__name b {
  font-variation-settings: "wdth" 112;
  font-weight: 700;
  font-size: 17px;
  line-height: 1.15;
}

.guide__name span {
  color: var(--ink-3);
}

.guide__shots {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 12px;
  align-items: center;
  list-style: none;
  margin: 0;
}

.guide__shots li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px 6px 6px;
  border-radius: 3px;
  background: var(--ground);
  font-size: 14px;
}

.guide__shots li::before {
  content: "";
  width: 18px;
  height: 18px;
  border-radius: 2px;
  background: var(--tone, var(--ink));
  flex: none;
}

.guide__shots li.is-optional {
  background: transparent;
  box-shadow: inset 0 0 0 1px var(--rule);
  color: var(--ink-2);
}

.guide__shots li.is-optional::before {
  background: repeating-linear-gradient(-45deg, transparent 0 3px, rgba(18, 20, 19, 0.35) 3px 4px);
  box-shadow: inset 0 0 0 1px var(--rule);
}

/* Severity: four blades of a small fan */
.ladder {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  padding: 10px 2% 0;
}

.ladder__step {
  --r: 0deg;
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 330px;
  padding-bottom: 46px;
  background: var(--blade);
  border-radius: var(--radius) var(--radius) 80px 80px;
  box-shadow: 0 0 0 1px var(--blade-edge), -6px 14px 28px -18px rgba(0, 0, 0, 0.55);
  overflow: hidden;
  --rot: var(--r);
  transform-origin: 50% 140%;
  transform: rotate(var(--rot));
  transition: transform 1s var(--ease-fan);
}

.ladder__step ul,
.pblade > b,
.pblade__per,
.pblade p {
  transform: rotate(calc(var(--rot, 0deg) * -1));
  transform-origin: 0 50%;
  transition: transform 1s var(--ease-fan);
}

.ladder__step:nth-child(2) { transition-delay: 60ms; }
.ladder__step:nth-child(3) { transition-delay: 120ms; }
.ladder__step:nth-child(4) { transition-delay: 180ms; }

.js .ladder:not(.is-inview) .ladder__step {
  --rot: 0deg;
}

.ladder__step::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 16px;
  width: 14px;
  height: 14px;
  margin-left: -7px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff 0 15%, #a8aaa5 45%, #6f726e 100%);
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.35);
}

.ladder__chip {
  display: flex;
  justify-content: space-between;
  padding: 12px 16px 40px;
  background: var(--c);
  font-size: 12.5px;
}

.ladder ul {
  margin: 0;
  padding: 16px 16px 0 32px;
  font-size: 14.5px;
  line-height: 1.45;
  color: var(--ink-2);
}

.ladder li + li {
  margin-top: 6px;
}

.ladder__note {
  margin-top: var(--space-3);
  max-width: 70ch;
  color: var(--ink-2);
  font-size: 15px;
}

/* Steps: one long blade laid flat */
.stack-head {
  margin-bottom: var(--space-4);
}

.stack-head h2 {
  max-width: none;
}

.runblade {
  display: grid;
  grid-template-columns: 64px 1fr;
  background: var(--blade);
  border-radius: 32px var(--radius) var(--radius) 32px;
  box-shadow: 0 0 0 1px var(--blade-edge), 0 24px 50px -30px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

.runblade__tip {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  background: var(--cover);
  color: var(--cover-ink);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.runblade__rivet {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff 0 12%, #a8aaa5 45%, #575a57 100%);
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.steps li {
  padding: var(--space-3);
}

.steps li + li {
  border-left: 1px solid var(--blade-edge);
}

.steps b span {
  display: inline-block;
  min-width: 1.4em;
  font-variation-settings: "wdth" 125;
  font-weight: 800;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}

.steps b {
  display: block;
  font-variation-settings: "wdth" 112;
  font-weight: 700;
  font-size: 19px;
  margin-bottom: 6px;
}

.steps p {
  margin: 0;
  color: var(--ink-2);
  font-size: 15.5px;
}

.assurance {
  margin-top: var(--space-5);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: center;
  padding: 18px 22px;
  border-radius: var(--radius);
  background: var(--cover);
  color: var(--cover-ink);
}

.assurance svg {
  width: 30px;
  height: 30px;
  color: var(--low);
}

.assurance p {
  margin: 0;
  font-size: 16px;
}

.assurance p span {
  color: var(--cover-ink-2);
}

/* Evidence */
.evidence {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: var(--space-5);
  align-items: start;
}

.evidence blockquote {
  margin: 0;
  font-variation-settings: "wdth" 112;
  font-weight: 650;
  font-size: clamp(1.5rem, 2.6vw, 2.2rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.evidence cite {
  display: block;
  margin-top: var(--space-2);
  font-style: normal;
  font-size: 14px;
  color: var(--ink-3);
}

.evidence p {
  margin: 0 0 var(--space-2);
  color: var(--ink-2);
}

/* Pricing: two blades */
.price {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--space-5);
  align-items: center;
}

.price__blades {
  display: flex;
  justify-content: center;
  gap: 18px;
  padding-top: 12px;
}

.pblade {
  --r: 0deg;
  position: relative;
  width: min(240px, 46%);
  min-height: 360px;
  padding: 0 20px 56px;
  display: flex;
  flex-direction: column;
  background: var(--blade);
  border-radius: var(--radius) var(--radius) 120px 120px;
  box-shadow: 0 0 0 1px var(--blade-edge), -6px 16px 30px -18px rgba(0, 0, 0, 0.55);
  --rot: var(--r);
  transform-origin: 50% 130%;
  transform: rotate(var(--rot));
  transition: transform 1s var(--ease-fan);
}

.js .price__blades:not(.is-inview) .pblade {
  --rot: 0deg;
}

.pblade__tip {
  display: flex;
  justify-content: space-between;
  margin: 0 -20px 28px;
  padding: 10px 20px 34px;
  border-radius: var(--radius) var(--radius) 0 0;
  background: var(--cover);
  color: var(--cover-ink);
}

.pblade b {
  font-variation-settings: "wdth" 125;
  font-weight: 800;
  font-size: clamp(2.8rem, 4.4vw, 3.8rem);
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.pblade__per {
  margin-top: 6px;
  font-weight: 600;
}

.pblade p {
  margin: 14px 0 0;
  color: var(--ink-2);
  font-size: 15px;
}

.pblade__rivet {
  position: absolute;
  left: 50%;
  bottom: 22px;
  width: 14px;
  height: 14px;
  margin-left: -7px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff 0 15%, #a8aaa5 45%, #6f726e 100%);
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.35);
}

.price__cta {
  display: grid;
  align-content: center;
  gap: var(--space-3);
}

.price__cta h2 {
  margin: 0;
}

.price__cta ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
  font-size: 16px;
}

.price__cta li {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
}

.price__cta li svg {
  width: 18px;
  height: 18px;
  margin-top: 3px;
}

.price__cta .btn {
  justify-self: start;
}

.price__cta .fine {
  color: var(--ink-3);
  font-size: 13.5px;
}

/* FAQ */
.faq {
  max-width: 860px;
  border-top: 2px solid var(--ink);
}

.faq details {
  border-bottom: 1px solid var(--rule);
}

.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  font-variation-settings: "wdth" 112;
  font-weight: 650;
  font-size: 18px;
}

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

.faq summary svg {
  width: 20px;
  height: 20px;
  flex: none;
  margin-top: 3px;
  transition: transform 0.3s var(--ease-out);
}

.faq details[open] summary svg {
  transform: rotate(45deg);
}

.faq details p {
  margin: 0 0 22px;
  max-width: 68ch;
  color: var(--ink-2);
}

/* Closing band */
.close {
  background: var(--cover);
  color: var(--cover-ink);
  padding: var(--space-6) 0;
  position: relative;
  overflow: clip;
}

.close h2 {
  margin: 0;
  max-width: 16ch;
  font-variation-settings: "wdth" 125;
  font-weight: 800;
  font-size: clamp(2.2rem, 4.6vw, 4rem);
  line-height: 1;
  letter-spacing: -0.02em;
}

.close p {
  max-width: 52ch;
  color: var(--cover-ink-2);
  font-size: 18px;
}

.close__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: var(--space-4);
}

.close .btn--ghost {
  --fg: var(--cover-ink);
  box-shadow: inset 0 0 0 1.5px #555955;
}

.close__strip {
  position: absolute;
  right: calc(var(--gutter) * -1);
  top: 50%;
  display: flex;
  gap: 6px;
  transform: translateY(-50%) rotate(-12deg);
  opacity: 0.95;
}

.close__strip span {
  width: 54px;
  height: 260px;
  border-radius: 4px 4px 27px 27px;
  background: linear-gradient(var(--c) 0 22%, #f7f7f3 22%);
}

/* Footer */
.foot {
  padding: var(--space-4) 0 var(--space-5);
  font-size: 14px;
  color: var(--ink-2);
}

.foot__inner {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-4);
  justify-content: space-between;
  align-items: center;
}

.foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.foot a {
  color: var(--ink-2);
}

/* Report (after a scan) */
.report[hidden] {
  display: none;
}

.report {
  padding: var(--space-5) 0 var(--space-6);
  background: var(--ground-deep);
  border-top: 1px solid var(--rule);
}

.report__head {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  justify-content: space-between;
  align-items: end;
  margin-bottom: var(--space-4);
}

.report__head h2 {
  margin: 0;
  font-variation-settings: "wdth" 125;
  font-weight: 800;
  font-size: clamp(1.8rem, 3.4vw, 3rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  max-width: 22ch;
  overflow-wrap: anywhere;
}

.report__head p {
  margin: 8px 0 0;
  color: var(--ink-2);
}

.bar {
  display: flex;
  height: 56px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 0 0 1px var(--blade-edge);
  background: var(--none);
}

.bar span {
  background: var(--c);
  min-width: 0;
  flex: var(--n) 1 0;
  display: flex;
  align-items: flex-end;
  padding: 6px 8px;
  font-size: 10px;
  overflow: hidden;
  white-space: nowrap;
  transform-origin: left;
  animation: grow 0.9s var(--ease-out) both;
}

.bar span + span {
  box-shadow: inset 1px 0 0 rgba(0, 0, 0, 0.12);
}

@keyframes grow {
  from {
    transform: scaleX(0);
  }
}

.bar__key {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin: 12px 0 var(--space-5);
  font-size: 14px;
  color: var(--ink-2);
}

.bar__key span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.bar__key .chip {
  width: 18px;
  height: 12px;
}

.report__cols {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
  gap: var(--space-5);
  align-items: start;
}

.report h3 {
  margin: 0 0 var(--space-2);
  font-variation-settings: "wdth" 118;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.issues {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 2px solid var(--ink);
}

.issues li {
  display: grid;
  grid-template-columns: 22px 1fr auto;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 15px;
  align-items: start;
}

.issues .chip {
  width: 22px;
  height: 14px;
  margin-top: 4px;
}

.issues b {
  font-variation-settings: "wdth" 125;
  font-weight: 800;
  font-size: 18px;
  font-variant-numeric: tabular-nums;
}

.issues small {
  display: block;
  color: var(--ink-3);
  font-size: 13px;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.filters button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 12px 0 8px;
  border: 0;
  border-radius: 4px;
  background: var(--blade);
  box-shadow: inset 0 0 0 1px var(--blade-edge);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}

.filters button[aria-pressed="true"] {
  background: var(--ink);
  color: var(--blade);
}

.filters .chip {
  width: 16px;
  height: 12px;
}

.rows {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}

.row {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 8px 12px 8px 8px;
  background: var(--blade);
  border-radius: 4px;
  box-shadow: 0 0 0 1px var(--blade-edge);
  overflow: hidden;
}

.row__sev {
  align-self: start;
  min-width: 44px;
  padding: 4px 6px 10px;
  border-radius: 2px;
  background: var(--c);
  font-size: 10px;
  text-align: left;
}

.row__img {
  width: 52px;
  height: 52px;
  border-radius: 2px;
  overflow: hidden;
  background: var(--ground);
}

.row__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.row__img--empty {
  background: repeating-linear-gradient(-45deg, transparent 0 4px, rgba(18, 20, 19, 0.2) 4px 5px), var(--blade);
  box-shadow: inset 0 0 0 1px var(--rule);
}

.row__title {
  font-weight: 650;
  font-size: 15px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.row__title a {
  text-decoration: none;
}

.row__title a:hover {
  text-decoration: underline;
}

.row__finds {
  color: var(--ink-2);
  font-size: 13.5px;
  line-height: 1.35;
}

.more {
  margin-top: 12px;
}

.upsell {
  margin-top: var(--space-5);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--space-3);
  align-items: center;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius);
  background: var(--cover);
  color: var(--cover-ink);
}

.upsell h3 {
  color: var(--med);
  margin-bottom: 8px;
}

.upsell p {
  margin: 0;
  max-width: 62ch;
  color: var(--cover-ink-2);
}

.upsell p b {
  color: var(--cover-ink);
  font-weight: 600;
}

.upsell .btn {
  --bg: var(--med);
  --fg: var(--ink);
}

.report__fine {
  margin-top: var(--space-2);
  font-size: 13px;
  color: var(--ink-3);
  max-width: 80ch;
}

/* Reveal: content visible by default, motion only enhances */
.reveal {
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.js .reveal:not(.is-inview) {
  opacity: 0;
  transform: translateY(18px);
}

.js .guide:not(.is-inview) .guide__row {
  --slide: -36px;
}

.guide__row:nth-child(2) { transition-delay: 60ms; }
.guide__row:nth-child(3) { transition-delay: 120ms; }
.guide__row:nth-child(4) { transition-delay: 180ms; }
.guide__row:nth-child(5) { transition-delay: 240ms; }
.guide__row:nth-child(6) { transition-delay: 300ms; }

/* Responsive */
@media (max-width: 1080px) {
  .nav__links {
    display: none;
  }

  .nav .btn {
    margin-left: auto;
  }

  .sheet__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .report__cols,
  .evidence,
  .section__head {
    grid-template-columns: 1fr;
  }

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

  .steps {
    grid-template-columns: 1fr 1fr;
  }

  .steps li:nth-child(3) {
    border-left: 0;
  }

  .steps li:nth-child(n + 3) {
    border-top: 1px solid var(--blade-edge);
  }

  .ladder {
    grid-template-columns: 1fr 1fr;
    gap: 18px;
  }

  .ladder__step {
    --r: 0deg !important;
    --rot: 0deg !important;
    min-height: 0;
  }

  .detail {
    position: fixed;
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-height: 70vh;
    border-radius: 12px 12px 0 0;
    transform: translateY(40px);
    z-index: 60;
  }
}

@media (max-width: 760px) {
  body {
    font-size: 16px;
  }

  .brand small {
    display: none;
  }

  .hero {
    height: auto;
    display: block;
  }

  .hero__top {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .hero h1 {
    font-size: clamp(2.1rem, 9.4vw, 2.6rem);
  }

  .hero__lede {
    font-size: 15px;
    line-height: 1.5;
  }

  .cover::after {
    display: none;
  }

  .cover {
    padding-bottom: 18px;
  }

  .cover p {
    margin-bottom: 12px;
  }

  .legend {
    display: none;
  }

  .fan__area {
    position: relative;
    inset: auto;
    height: clamp(220px, 29svh, 320px);
  }

  .fan__stage {
    --bl: min(330px, calc(100cqh + 10px));
    --bw: 58px;
    --pivot: 20px;
    bottom: -18px;
  }

  .cover {
    position: relative;
    left: auto;
    bottom: auto;
    transform: none;
    width: auto;
    margin: 0 var(--gutter) var(--space-3);
    border-radius: 10px;
  }

  .blade__codes,
  .blade__tip span:last-child {
    display: none;
  }

  .blade__label {
    font-size: 9.5px;
    padding: 6px 5px 0;
  }

  .blade__chips {
    padding: 4px 4px 0;
  }

  .sheet__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .guide__row {
    grid-template-columns: 1fr;
  }

  .guide__name {
    border-right: 0;
    border-bottom: 1px solid var(--blade-edge);
  }

  .ladder {
    grid-template-columns: 1fr;
    padding: 0;
  }

  .runblade {
    grid-template-columns: 1fr;
    border-radius: var(--radius);
  }

  .runblade__tip {
    writing-mode: horizontal-tb;
    transform: none;
    flex-direction: row;
    padding: 10px 16px;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .steps li + li,
  .steps li:nth-child(n + 3) {
    border-left: 0;
    border-top: 1px solid var(--blade-edge);
  }

  .pblade {
    --r: 0deg !important;
    --rot: 0deg !important;
    min-height: 300px;
    padding: 0 14px 50px;
  }

  .pblade__tip {
    margin: 0 -14px 20px;
    padding: 10px 14px 24px;
  }

  .upsell {
    grid-template-columns: 1fr;
    padding: var(--space-3);
  }

  .close__strip {
    display: none;
  }

  .section {
    padding: var(--space-5) 0;
  }
}

@media (max-width: 420px) {
  .scan-form {
    flex-direction: column;
  }

  .tally b {
    font-size: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
    animation-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}
