/* asynclab.io
   One family (IBM Plex Sans, variable weight and width), a deep ink-blue
   surface with warm paper text, and three lane colours (jade, saffron, coral)
   that appear only where a practice is named. */

@font-face {
  font-family: "Plex";
  src: url("/fonts/ibm-plex-sans-latin.woff2") format("woff2");
  font-weight: 100 700;
  font-stretch: 85% 100%;
  font-display: swap;
}

:root {
  --surface: #121821;
  --surface-2: #171F2B;
  --text: #EFEDE6;
  --mute: #9AA3AF;
  --rule: #28313F;
  --build: #7FD1AE;
  --advise: #F2C46A;
  --secure: #F2897B;
  --neutral: #8A94A3;

  --gutter: clamp(20px, 4vw, 48px);
  --measure: 62ch;
  --section: clamp(72px, 10vw, 128px);
}

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

html {
  background: var(--surface);
  color: var(--text);
  font-family: "Plex", "Helvetica Neue", Arial, sans-serif;
  font-optical-sizing: auto;
  font-size: 106.25%; /* 17px */
  line-height: 1.55;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--surface);
  min-height: 100vh;
}

h1, h2, h3, p, ul, ol, dl, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
strong { font-weight: 600; }

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

.skip {
  position: absolute;
  left: var(--gutter);
  top: -3rem;
  padding: 0.5rem 0.75rem;
  background: var(--text);
  color: var(--surface);
  text-decoration: none;
}
.skip:focus { top: 0.75rem; z-index: 10; }

/* Shared layout */

.hero, .services, .principles, .contact, .site-foot, .notfound {
  width: min(100% - 2 * var(--gutter), 1240px);
  margin-inline: auto;
}

h1 {
  font-size: clamp(2.5rem, 1rem + 3.4vw, 4.2rem);
  font-weight: 500;
  font-stretch: 88%;
  line-height: 1.04;
  letter-spacing: -0.02em;
  text-wrap: balance;
  max-width: 26ch;
}
br.wide { display: none; }
@media (min-width: 900px) {
  br.wide { display: inline; }
}

h2 {
  font-size: clamp(1.9rem, 1rem + 2.6vw, 3.1rem);
  font-weight: 500;
  font-stretch: 90%;
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

h3 {
  font-size: 1.3rem;
  font-weight: 600;
  font-stretch: 95%;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.text-link {
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}
.text-link:hover { text-decoration-thickness: 2px; }

.button {
  display: inline-block;
  padding: 0.8rem 1.25rem;
  background: var(--text);
  color: var(--surface);
  text-decoration: none;
  font-weight: 500;
  border-radius: 4px;
}
.button:hover { background: #DCD9D0; }

/* Header */

.site-head {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  position: sticky;
  top: 0;
  z-index: 5;
  padding-block: 1.1rem;
  background: var(--surface);
  border-bottom: 1px solid var(--rule);
  width: 100%;
  max-width: none;
  padding-inline: max(var(--gutter), calc((100% - 1240px) / 2));
}
html { scroll-padding-top: 5rem; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}
.mark rect { fill: var(--text); }
.wordmark {
  font-weight: 600;
  font-stretch: 92%;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.75rem;
  margin-left: auto;
}
.site-nav a, .head-mail {
  text-decoration: none;
  color: var(--mute);
  white-space: nowrap;
}
.site-nav a:hover, .head-mail:hover { color: var(--text); }

/* Hero */

.hero {
  padding-block: clamp(32px, 5vw, 64px) 0;
}
@media (min-width: 1200px) {
  .hero {
    display: grid;
    grid-template-columns: 5fr 7fr;
    gap: 3rem 4rem;
    align-items: center;
  }
  .hero-copy { grid-column: 1; }
  .hero .trace { grid-column: 2; margin-top: 0; }
  .hero .trace { --label-col: 104px; }
  .hero .trace-board { min-width: 0; }
  .hero .row { height: 2.9rem; }
  .hero .bar { height: 1.75rem; }
  .hero .trace figcaption { margin-bottom: 0.9rem; }
  .hero .trace-note { min-height: 5rem; }
  .hero h1 { font-size: clamp(2.5rem, 0.6rem + 3.6vw, 4.2rem); max-width: 15ch; }
  .hero br.wide { display: none; }
}

.lead {
  margin-top: 1.75rem;
  max-width: 58ch;
  font-size: clamp(1.1rem, 1rem + 0.5vw, 1.35rem);
  line-height: 1.45;
}

.hero-links {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
}

/* Highlighted words in the headline: the three practices on their lane colours,
   revealed left to right like the bars of the trace. */

.hl {
  position: relative;
  display: inline-block;
  padding-inline: 0.1em;
  margin-inline: -0.04em;
  color: var(--surface);
  isolation: isolate;
  animation: hl-text 200ms ease-out both;
}
.hl::before {
  content: "";
  position: absolute;
  inset: 0.1em -0.02em 0.06em;
  z-index: -1;
  border-radius: 0.12em;
  background: var(--lane);
  transform-origin: left center;
  animation: hl-bar 520ms cubic-bezier(0.2, 0.7, 0.15, 1) both;
}
.lane-build.hl::before { animation-delay: 260ms; }
.lane-advise.hl::before { animation-delay: 520ms; }
.lane-secure.hl::before { animation-delay: 780ms; }
.lane-build.hl { animation-delay: 560ms; }
.lane-advise.hl { animation-delay: 820ms; }
.lane-secure.hl { animation-delay: 1080ms; }

@keyframes hl-bar {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}
@keyframes hl-text {
  from { color: var(--text); }
  to   { color: var(--surface); }
}

@media (prefers-reduced-motion: reduce) {
  .hl, .hl::before { animation: none !important; }
}

.nowrap { white-space: nowrap; }

/* The engagement trace */

.trace {
  margin-top: clamp(40px, 5vw, 64px);
  min-width: 0;
}

.trace figcaption {
  color: var(--mute);
  max-width: var(--measure);
  margin-bottom: 1.25rem;
}

.trace-scroll {
  overflow-x: auto;
  overscroll-behavior-x: contain;
  padding-bottom: 0.5rem;
}

.trace { --label-col: 132px; }
.trace-board {
  position: relative;
  min-width: 820px;
}

.trace-board::before {
  /* week grid lines behind the bars */
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--label-col);
  right: 0;
  background-image: linear-gradient(to right, var(--rule) 1px, transparent 1px);
  background-size: 10% 100%;
  border-right: 1px solid var(--rule);
  pointer-events: none;
}

.trace-axis, .row {
  position: relative;
  display: grid;
  grid-template-columns: var(--label-col) repeat(20, 1fr);
  align-items: center;
}

.trace-axis {
  height: 2rem;
  border-bottom: 1px solid var(--rule);
}
.weeks {
  grid-column: 2 / 22;
  display: grid;
  grid-template-columns: repeat(10, 1fr);
}
.weeks li {
  padding-left: 0.5rem;
  font-size: 0.85rem;
  color: var(--mute);
  font-variant-numeric: tabular-nums;
}

.row {
  height: 3.25rem;
  border-bottom: 1px solid var(--rule);
}
.row-label {
  grid-column: 1;
  padding-right: 1rem;
  font-weight: 500;
  color: var(--text);
}
.bar-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.lane-build   { --lane: var(--build); }
.lane-advise  { --lane: var(--advise); }
.lane-secure  { --lane: var(--secure); }
.lane-neutral { --lane: var(--neutral); }

.bar {
  grid-row: 1;
  height: 1.9rem;
  border: 0;
  font: inherit;
  text-align: left;
  cursor: pointer;
  margin-inline: 2px;
  display: flex;
  align-items: center;
  position: relative;
  padding: 0;
  min-width: 0;
  background: var(--lane);
  color: var(--surface);
  border-radius: 4px;
  font-size: 0.95rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
}

.bar:hover { filter: brightness(1.08); }
.bar[aria-pressed="true"] {
  box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--text);
}
.bar:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--text);
}

.trace-note {
  display: grid;
  grid-template-columns: var(--label-col) 1fr;
  gap: 0 0;
  margin-top: 1.25rem;
  min-height: 4.5rem;
}
.trace-note > * { grid-column: 2; margin: 0; }
.trace-note-head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.trace-note-dot {
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: var(--lane, var(--neutral));
}
.trace-note-weeks { color: var(--mute); }
.trace-note-text { margin-top: 0.35rem; max-width: 62ch; }
.trace-note-text.is-changing { animation: note-in 180ms ease-out; }
@keyframes note-in {
  from { opacity: 0.4; transform: translateY(4px); }
  to   { opacity: 1; transform: none; }
}
/* Without script the six phase notes read as a list and the live note is hidden;
   main.js marks the trace interactive and swaps them. */
.trace-notes-src {
  display: grid;
  gap: 0.6rem;
  margin-top: 1.25rem;
  max-width: 62ch;
}
.trace-src strong { font-weight: 600; }
.trace:not(.is-interactive) .trace-note,
.trace:not(.is-interactive) .trace-select-hint { display: none; }
.trace.is-interactive .trace-notes-src {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
@media (max-width: 640px) {
  .trace { --label-col: 82px; }
  .trace-board { min-width: 0; }
  .trace-axis { height: 1.6rem; }
  .weeks li { padding-left: 0.25rem; font-size: 0.75rem; }
  .row { height: 3.25rem; }
  .row-label { font-size: 0.85rem; padding-right: 0.5rem; }
  .bar { height: 2.75rem; margin-inline: 0.5px; }
  .bar-1, .bar-6 { min-width: 24px; }
  .trace-note { grid-template-columns: 1fr; }
  .trace-note > * { grid-column: 1; }
  .scope-actions {
    position: sticky;
    bottom: 0;
    z-index: 4;
    margin: 0 calc(-1 * var(--gutter));
    padding: 0.75rem var(--gutter);
    background: var(--surface-2);
    border-top: 1px solid var(--rule);
  }
}

.bar-3 {
  /* one tick at the end of each of the six build weeks: the weekly demo */
  background-image: repeating-linear-gradient(to right, transparent 0 calc(100% / 6 - 2px), rgba(18, 24, 33, 0.45) calc(100% / 6 - 2px) calc(100% / 6));
}

/* Column 1 is the label; week n starts at column 2n. Half-week resolution. */
.bar-1 { grid-column: 2 / 4; }    /* week 1 */
.bar-2 { grid-column: 4 / 8; }    /* weeks 2 to 3 */
.bar-3 { grid-column: 6 / 18; }   /* weeks 3 to 8 */
.bar-4 { grid-column: 14 / 19; }  /* weeks 7 to 9 */
.bar-5 { grid-column: 18 / 21; }  /* weeks 9 to 10 */
.bar-6 { grid-column: 20 / 22; }  /* week 10 */

.trace.is-armed .bar { clip-path: inset(-6px 100% -6px -6px); }

.trace.is-live .bar {
  animation: reveal 720ms cubic-bezier(0.2, 0.7, 0.15, 1) both;
}
.trace.is-live .bar-1 { animation-delay: 0ms; }
.trace.is-live .bar-2 { animation-delay: 140ms; }
.trace.is-live .bar-3 { animation-delay: 280ms; }
.trace.is-live .bar-4 { animation-delay: 840ms; }
.trace.is-live .bar-5 { animation-delay: 1120ms; }
.trace.is-live .bar-6 { animation-delay: 1260ms; }

@keyframes reveal {
  from { clip-path: inset(-6px 100% -6px -6px); }
  to   { clip-path: inset(-6px -6px -6px -6px); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .trace .bar { animation: none !important; clip-path: none !important; }
}

/* Services */

.services { padding-block: var(--section); }

.section-lead {
  margin-top: 1.25rem;
  max-width: var(--measure);
  color: var(--mute);
  font-size: 1.1rem;
}

.service-list { margin-top: 2.5rem; }

.service {
  display: grid;
  grid-template-columns: 4fr 8fr;
  gap: 2rem 3rem;
  padding-block: 2rem;
  border-top: 1px solid var(--rule);
}
.service-body {
  display: grid;
  grid-template-columns: 5fr 4fr;
  gap: 1.5rem 3rem;
}
.service:last-child { border-bottom: 1px solid var(--rule); }

.service h3 {
  display: flex;
  align-items: baseline;
  gap: 0.65rem;
}
.dot {
  flex: none;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: var(--lane);
  transform: translateY(-0.05rem);
}

.service-what { max-width: 48ch; }
.service-get { max-width: 42ch; color: var(--mute); }

/* Team */

.team {
  width: min(100% - 2 * var(--gutter), 1240px);
  margin-inline: auto;
  padding-block: 0 var(--section);
}

.people { margin-top: 2.5rem; }

.people {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 3rem;
  border-top: 1px solid var(--rule);
}
.person {
  display: grid;
  gap: 1.25rem;
  align-content: start;
  padding-block: 2rem;
  border-bottom: 1px solid var(--rule);
}
.person-body {
  display: grid;
  gap: 1.25rem;
}

.person h3, .report-head h3 {
  font-size: 1.6rem;
  font-weight: 500;
  font-stretch: 92%;
  letter-spacing: -0.015em;
}

.person-role {
  margin-top: 0.5rem;
  color: var(--mute);
}
.person-bio { display: grid; gap: 0.75rem; }

.person-facts {
  display: grid;
  gap: 1rem;
  align-content: start;
}
.person-facts dt {
  color: var(--mute);
  font-size: 0.95rem;
}
.person-facts dd { margin: 0.15rem 0 0; }

/* Public work */

.work {
  width: min(100% - 2 * var(--gutter), 1240px);
  margin-inline: auto;
  padding-block: 0 var(--section);
}

.work-lists {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem 3rem;
}
.work-group h3 {
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--rule);
}
.work-list li {
  padding-block: 0.9rem;
  border-bottom: 1px solid var(--rule);
}
.work-list a, .work-desc {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.95rem;
}

/* Principles */

.principles {
  padding-block: 0 var(--section);
}

.principle-list {
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 3rem;
}
.principle-list li {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
}
.principle-list p { font-size: 1.1rem; line-height: 1.45; }
.principle-list strong { font-weight: 600; }

/* The mark, reused as a bullet and in the footer */

.mark-sm { width: 1.1rem; height: 1.1rem; flex: none; margin-top: 0.3rem; }
.mark-sm rect:first-child { fill: var(--mute); }
.mark-sm rect:last-child { fill: var(--text); }
.mark-lg { width: 2.6rem; height: 2.6rem; display: block; margin-bottom: 0.25rem; }
.mark-lg .m-build { fill: var(--build); }
.mark-lg .m-secure { fill: var(--secure); }

/* Finding lifecycle and build progress, in the trace idiom */

.mini-trace {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  font-size: 0.85rem;
}
.mini-trace li { display: grid; gap: 0.35rem; min-width: 0; }
.mini-trace span { color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-trace i { display: block; height: 0.6rem; border-radius: 3px; background: var(--neutral); }
.mini-trace .mt-fixed i, .mini-trace .mt-retest i { background: var(--text); }
.mini-trace small { font-size: inherit; font-variant-numeric: tabular-nums; }

.progress {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 3px;
  margin-top: 1.25rem;
}
.progress i { display: block; height: 0.6rem; border-radius: 3px; background: var(--build); }
.progress i.todo { background: var(--rule); }

/* Pentest scoping */

.scope {
  background: var(--surface-2);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  margin-bottom: var(--section);
  padding-block: clamp(56px, 7vw, 96px);
  padding-inline: max(var(--gutter), calc((100% - 1240px) / 2));
}

.scope-form { display: grid; gap: 2rem; }

.scope-form fieldset {
  margin: 0;
  padding: 0;
  border: 0;
  display: grid;
  gap: 0.6rem;
}
.scope-targets {
  grid-template-columns: repeat(3, max-content);
  column-gap: 3rem;
}
.scope-form legend {
  grid-column: 1 / -1;
  padding: 0;
  margin-bottom: 0.5rem;
  font-weight: 600;
  font-size: 1.1rem;
}
.scope-form label {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  cursor: pointer;
  line-height: 1.4;
}
.scope-form input[type="checkbox"] {
  appearance: none;
  flex: none;
  width: 1.1rem;
  height: 1.1rem;
  margin: 0.15rem 0 0;
  border: 1.5px solid var(--mute);
  border-radius: 3px;
  background: var(--surface-2);
  display: grid;
  place-content: center;
  cursor: pointer;
}
.scope-form input[type="checkbox"]::before {
  content: "";
  width: 0.35rem;
  height: 0.6rem;
  margin-top: -0.1rem;
  border: solid var(--surface);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) scale(0);
  transition: transform 120ms ease-out;
}
.scope-form input[type="checkbox"]:checked { border-color: var(--text); background: var(--text); }
.scope-form input[type="checkbox"]:checked::before { transform: rotate(45deg) scale(1); }
.scope-form input[type="checkbox"]:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }

.scope-out {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
}
.scope-col h3 { margin-bottom: 0.75rem; }
.scope-list {
  display: grid;
  gap: 0.6rem;
}
.scope-list li.is-new {
  animation: mark 1600ms ease-out both;
}
@keyframes mark {
  from { background: color-mix(in srgb, var(--advise) 28%, transparent); box-shadow: 0 0 0 6px color-mix(in srgb, var(--advise) 28%, transparent); }
  to   { background: transparent; box-shadow: 0 0 0 6px transparent; }
}
.scope-list li {
  padding-left: 1.1rem;
  position: relative;
}
.scope-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6rem;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--text);
}

.scope-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
}
.scope-copy {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  text-decoration: underline;
}
.scope-copied { color: var(--mute); }

/* Contact */

.contact {
  padding-block: var(--section);
  border-top: 1px solid var(--rule);
}
.contact h2 {
  font-size: clamp(1.4rem, 1rem + 1.2vw, 1.9rem);
  font-weight: 500;
  font-stretch: 100%;
  letter-spacing: 0;
  color: var(--mute);
}

.contact-mail {
  display: inline-block;
  margin-top: 1.25rem;
  font-size: clamp(2rem, 1rem + 3vw, 3.6rem);
  font-weight: 500;
  font-stretch: 92%;
  letter-spacing: -0.02em;
  line-height: 1.1;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.18em;
  text-decoration-color: var(--mute);
  overflow-wrap: anywhere;
}
.contact-mail:hover { text-decoration-color: var(--text); }

.contact-note {
  margin-top: 1.5rem;
  max-width: var(--measure);
  color: var(--mute);
}

/* Footer */

.site-foot {
  display: grid;
  grid-template-columns: 4fr 8fr;
  gap: 2rem 3rem;
  padding-block: 2.5rem 3rem;
  border-top: 1px solid var(--rule);
  font-size: 0.95rem;
  color: var(--mute);
}
.foot-left { display: grid; gap: 1rem; align-content: start; }
.foot-headers summary {
  cursor: pointer;
  list-style: none;
  color: var(--text);
  font-weight: 500;
  font-size: 1.1rem;
}
.foot-headers summary::-webkit-details-marker { display: none; }
.foot-headers summary::after { content: " +"; color: var(--mute); }
.foot-headers[open] summary::after { content: " \2212"; }
.foot-headers-sub { margin-top: 0.35rem; max-width: 60ch; }
.foot-curl {
  margin: 0.75rem 0 1rem;
  padding: 0.6rem 0.8rem;
  background: var(--surface-2);
  border: 1px solid var(--rule);
  border-radius: 4px;
  color: var(--text);
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.95rem;
  overflow-x: auto;
}
.headers-live {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.35rem 1.25rem;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.85rem;
  line-height: 1.5;
}
.headers-live dt { color: var(--text); }
.headers-live dd { margin: 0; overflow-wrap: anywhere; }

/* Policy page */

.policy {
  width: min(100% - 2 * var(--gutter), 1240px);
  margin-inline: auto;
  padding-block: clamp(32px, 5vw, 64px) var(--section);
  max-width: 72ch;
  margin-left: max(var(--gutter), calc((100% - 1240px) / 2));
}
.policy h1 { font-size: clamp(2rem, 1rem + 3vw, 3.4rem); max-width: none; }
.policy h2 { font-size: 1.5rem; margin-top: 2.5rem; }
.policy p, .policy ul { margin-top: 1rem; }
.policy ul { padding-left: 1.2rem; list-style: disc; display: grid; gap: 0.5rem; }
.policy-note { color: var(--mute); margin-top: 2.5rem; }

/* 404 */

.notfound { padding-block: 20vh; }
.notfound p { margin-top: 1.5rem; max-width: var(--measure); }

/* Narrow screens */

@media (max-width: 1100px) {
  .service { grid-template-columns: 1fr; gap: 1rem; }
  .service-body { grid-template-columns: 1fr; gap: 1rem; }
  .people { grid-template-columns: 1fr; gap: 0; }
  .person { padding-block: 1.5rem; }
  .person-role { max-width: none; }
  .scope-out { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .scope-targets { grid-template-columns: 1fr; }
  .work-lists { grid-template-columns: 1fr; }
  .principle-list { grid-template-columns: 1fr; }
  .headers-live { grid-template-columns: 1fr; gap: 0.1rem 0; }
  .headers-live dd { margin-bottom: 0.6rem; }
  .service-what { max-width: var(--measure); }
  .site-foot { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 640px) {
  .site-head { flex-wrap: wrap; gap: 0.6rem; padding-block: 0.75rem; }
  .head-mail { display: none; }
  .site-nav { flex-basis: 100%; margin-left: 0; gap: 0.3rem 1rem; font-size: 0.95rem; }
  html { scroll-padding-top: 6rem; }
}

/* Example finding */

.finding {
  width: min(100% - 2 * var(--gutter), 1240px);
  margin-inline: auto;
  padding-block: 0 var(--section);
}
.section-intro { margin-bottom: 2.5rem; }
.samples { display: grid; gap: 1.5rem; max-width: 880px; }

.report {
  background: var(--surface-2);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: clamp(1.25rem, 3vw, 2rem);
}

.report-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--rule);
}

.severity {
  display: inline-flex;
  align-items: baseline;
  gap: 0.5rem;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--surface);
}
.severity-high { background: var(--secure); }
.severity-note { background: var(--build); }
.severity-advise { background: var(--advise); }
.cvss { font-weight: 500; font-variant-numeric: tabular-nums; }

.report-body { display: grid; gap: 1.1rem; margin-top: 1.25rem; }
.report-body > div {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: 1rem;
}
.report-body dt { color: var(--mute); }
.report-body dd { margin: 0; max-width: 58ch; }
.report-body code {
  font-family: inherit;
  font-weight: 600;
}
.report-steps {
  list-style: decimal;
  padding-left: 1.25rem;
  display: grid;
  gap: 0.35rem;
}
.status-fixed { color: var(--text); }
.status-fixed::before {
  content: "";
  display: inline-block;
  width: 0.6rem;
  height: 0.6rem;
  margin-right: 0.5rem;
  border-radius: 50%;
  background: var(--text);
}


.service-cta {
  grid-column: 2;
  justify-self: start;
  margin-top: -0.5rem;
}

/* FAQ */

.faq {
  width: min(100% - 2 * var(--gutter), 1240px);
  margin-inline: auto;
  padding-block: 0 var(--section);
}
.faq h2 { margin-bottom: 2.5rem; }

.faq-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 3rem;
  border-top: 1px solid var(--rule);
}
.qa {
  padding-block: 1.4rem;
  border-bottom: 1px solid var(--rule);
}
.qa h3 {
  font-size: 1.1rem;
  font-weight: 600;
  font-stretch: 100%;
  letter-spacing: 0;
  line-height: 1.3;
}
.qa p { margin-top: 0.5rem; max-width: 52ch; }

@media (max-width: 900px) {
  .report-body > div { grid-template-columns: 1fr; gap: 0.25rem; }
  .mini-trace { grid-template-columns: repeat(2, 1fr); }
  .faq-list { grid-template-columns: 1fr; }
  .service-cta { grid-column: 1; margin-top: 0; }
}

/* Print */

@media print {
  :root { --surface: #fff; --surface-2: #fff; --text: #121821; --mute: #4B5563; --rule: #C9CED6; }
  .site-head { position: static; border: 0; }
  .scope { background: none; }
  .scope-actions { position: static; }
  .site-nav, .head-mail, .skip, .scope-actions, .foot-headers { display: none; }
  .trace-scroll { overflow: visible; }
  .trace-board { min-width: 0; }
  .trace .bar { clip-path: none !important; animation: none !important; }
  .qa { break-inside: avoid; }
  .report, .person, .service { break-inside: avoid; }
  a[href^="http"]::after { content: " (" attr(href) ")"; color: var(--mute); font-size: 0.85em; }
}
