/* =============================================================================
   Weaion Labs — World A: cyanotype drafting office
   -----------------------------------------------------------------------------
   The page is one drawing sheet on cool vellum. Prussian blue is the only ink.
   One orange-red pencil accent is reserved for revision and current position.
   Tone is made of four ordered hatch steps; there is no shadow anywhere and no
   radius on anything.
   ========================================================================== */

/* ---- Ground and ink ----------------------------------------------------- */

:root {
  --vellum: #e6e7e1;
  --vellum-panel: #dcddd6;
  --vellum-edge: #c6c8bd;

  --ink: #16365c;
  --ink-soft: #2f4f74;
  --ink-faint: #46617f;

  --pencil: #b8390f;
  --pencil-ink: #9c2f0b;

  --rule: rgba(22, 54, 92, 0.22);
  --rule-mid: rgba(22, 54, 92, 0.42);
  --rule-strong: rgba(22, 54, 92, 0.7);

  --hatch-1: rgba(22, 54, 92, 0.1);
  --hatch-2: rgba(22, 54, 92, 0.2);

  --font-sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "Azeret Mono", "Courier New", monospace;

  --measure: 68ch;
  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  --section-gap: clamp(4.5rem, 9vw, 8.5rem);

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---- Reset -------------------------------------------------------------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

body {
  margin: 0;
  background: var(--vellum);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.55;
  font-synthesis-weight: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  /* Browser surfaces nobody drew: they belong to the palette too. */
  ::selection {
    background: var(--ink);
    color: var(--vellum);
  }
}

a {
  color: inherit;
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--ink);
  color: var(--vellum);
  padding: 0.75rem 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
}
.skip-link:focus {
  left: 0;
}

/* ---- The sheet frame ---------------------------------------------------- */

.frame {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  pointer-events: none;
}
.frame rect {
  fill: none;
  vector-effect: non-scaling-stroke;
}
.frame-margin {
  stroke: var(--rule);
  stroke-width: 1;
}
/* The reveal runs across the sheet like a plotter drawing it. A dash-offset
   animation is wrong here: the viewBox is stretched non-uniformly, so dash
   lengths would scale unevenly and tear the line. */
.frame {
  clip-path: inset(0 100% 0 0);
  animation: draw-sheet 1400ms var(--ease) 60ms forwards;
}
@keyframes draw-sheet {
  to {
    clip-path: inset(0 0 0 0);
  }
}

.frame-edge {
  stroke: var(--rule-mid);
  stroke-width: 1;
}

/* ---- Masthead ----------------------------------------------------------- */

.masthead {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0.9rem var(--gutter);
  background: var(--vellum);
  border-bottom: 1px solid var(--rule-mid);
  margin: 1.5rem 1.5rem 0;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  flex: 0 0 auto;
}
.wordmark-mark {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.6;
  stroke-linecap: square;
}
.wordmark-text {
  font-weight: 700;
  font-size: 1.0625rem;
  letter-spacing: -0.01em;
}

.masthead-nav {
  flex: 1 1 auto;
  min-width: 0;
}
.masthead-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
  justify-content: flex-end;
}
.masthead-nav a {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-decoration: none;
  color: var(--ink-soft);
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
}
.masthead-nav a:hover {
  color: var(--ink);
  border-bottom-color: var(--pencil);
}

.masthead-cta {
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  background: var(--ink);
  color: var(--vellum);
  padding: 0.6rem 1rem;
}
.masthead-cta:hover {
  background: var(--pencil-ink);
}

/* ---- Sheet: register + field ------------------------------------------- */

.sheet {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 0 clamp(1.5rem, 3.5vw, 3.5rem);
  padding: 0 1.5rem;
  margin-top: 1.5rem;
}

.register {
  position: sticky;
  top: 1.5rem;
  align-self: start;
  padding: 1.75rem 0 2rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  border-right: 1px solid var(--rule);
  padding-right: 1.25rem;
}

.register-head,
.register-foot {
  margin: 0 0 0.9rem;
  color: var(--ink-faint);
  text-transform: uppercase;
  line-height: 1.7;
}
.register-foot {
  margin: 1.5rem 0 0;
  padding-top: 0.9rem;
  border-top: 1px solid var(--rule);
  text-transform: none;
  letter-spacing: 0.02em;
}

.register-list {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: sheet;
}
.register-list a {
  display: grid;
  grid-template-columns: 3.9rem 1fr;
  gap: 0.5rem;
  padding: 0.5rem 0 0.5rem 0.55rem;
  text-decoration: none;
  color: var(--ink-soft);
  border-left: 2px solid transparent;
  transition: border-color 180ms var(--ease), color 180ms var(--ease);
}
.register-list a:hover {
  color: var(--ink);
  border-left-color: var(--rule-mid);
}
.register-no {
  color: var(--ink-faint);
  font-variant-numeric: tabular-nums;
}
.register-name {
  text-transform: uppercase;
  line-height: 1.4;
}
/* The one accent on the page: which sheet you are standing on. */
.register-list a[aria-current="true"] {
  color: var(--pencil-ink);
  border-left-color: var(--pencil);
}
.register-list a[aria-current="true"] .register-no {
  color: var(--pencil-ink);
}

/* ---- Sheet blocks ------------------------------------------------------- */

main {
  min-width: 0;
}

.sheet-block {
  padding: var(--section-gap) 0;
  border-top: 1px solid var(--rule);
}
.sheet-block:first-child {
  border-top: 0;
}

.sheet-head {
  max-width: var(--measure);
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
}
.sheet-head h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.9rem, 3.6vw, 3rem);
  font-weight: 700;
  line-height: 1.03;
  letter-spacing: -0.022em;
  text-wrap: balance;
}
.sheet-no {
  display: inline-block;
  margin-right: 0.9rem;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--pencil-ink);
  vertical-align: 0.28em;
}
.sheet-note {
  margin: 0;
  max-width: var(--measure);
  color: var(--ink-soft);
  font-size: 1.0625rem;
}

/* ---- A-101 Hero --------------------------------------------------------- */

.hero {
  padding-top: clamp(2.5rem, 5vw, 4rem);
}

.hero-field {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
}

.hero-copy {
  position: relative;
}

h1 {
  margin: 0;
  font-size: clamp(2.5rem, 5.6vw, 4.5rem);
  font-weight: 700;
  line-height: 0.99;
  letter-spacing: -0.028em;
  text-wrap: balance;
  /* The dimension overlay sits in the padding below the headline. */
  padding-bottom: 2.6rem;
}

/* Hero dimensions are drawn into an SVG sized in real pixels by world.js,
   so the arrows land exactly on the measured box of the headline. */
.hero-dims {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}
.hero-dims line {
  stroke: var(--pencil);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}
.hero-dims .ext {
  stroke: var(--rule-strong);
}
.hero-dims .dimline {
  stroke-dasharray: var(--len, 400px);
  stroke-dashoffset: var(--len, 400px);
  animation: plotter 520ms var(--ease) forwards;
  animation-delay: var(--delay, 900ms);
}
@media (prefers-reduced-motion: reduce) {
  .hero-dims .dimline {
    stroke-dasharray: none;
    stroke-dashoffset: 0;
    animation: none;
  }
}
.hero-dims .dimtext {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  fill: var(--pencil-ink);
  text-transform: uppercase;
}

.hero-lede {
  margin: 1.75rem 0 0;
  max-width: 46ch;
  font-size: 1.1875rem;
  line-height: 1.5;
  color: var(--ink-soft);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
  margin-top: 2.25rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 1rem 1.6rem;
}
.btn-primary {
  background: var(--ink);
  color: var(--vellum);
  border: 1px solid var(--ink);
}
.btn-primary:hover {
  background: var(--pencil-ink);
  border-color: var(--pencil-ink);
}
.btn-quiet {
  color: var(--ink);
  border: 1px solid var(--rule-mid);
  background: transparent;
}
.btn-quiet:hover {
  border-color: var(--ink);
}

/* ---- The plan figure ---------------------------------------------------- */

.hero-figure {
  margin: 0;
}
.plan {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--rule-mid);
  background: var(--vellum-panel);
}
.plan-field {
  fill: none;
  stroke: var(--rule);
  stroke-width: 1;
}
.plan-whole {
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.5;
}
.plan-whole-fill {
  fill: url(#hatch-cross);
  stroke: none;
  opacity: 0.55;
}
.plan-lane {
  fill: var(--vellum);
  stroke: var(--ink-soft);
  stroke-width: 1;
}
.lane-fill {
  fill: var(--hatch-1);
  stroke: none;
}
.lane-edge {
  fill: none;
  stroke: var(--ink-soft);
  stroke-width: 1;
}
.plan-label {
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: 700;
  fill: var(--ink);
  letter-spacing: -0.01em;
}
.plan-note {
  font-family: var(--font-mono);
  font-size: 10px;
  fill: var(--ink-soft);
  letter-spacing: 0.04em;
}
.plan-note-strong {
  font-size: 10.5px;
  font-weight: 700;
  fill: var(--pencil-ink);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-anchor: middle;
}
.lane-text {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  fill: var(--ink);
  letter-spacing: 0.04em;
}
.plan-dims line {
  stroke: var(--pencil);
  stroke-width: 1;
}
.plan-dims .ext {
  stroke: var(--rule-strong);
}
.plan .leader {
  stroke: var(--rule-strong);
  stroke-width: 1;
  stroke-dasharray: 3 3;
}
.plan .dimtext {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  fill: var(--pencil-ink);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.dimtext-c {
  text-anchor: middle;
}
#plan-title,
#plan-desc {
  display: none;
}

#hero-figure-caption {
  margin-top: 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  line-height: 1.6;
  letter-spacing: 0.03em;
  color: var(--ink-faint);
  max-width: 42ch;
}

/* ---- Title block ------------------------------------------------------- */

.title-block {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr));
  border: 1px solid var(--ink);
  margin: 0;
  font-family: var(--font-mono);
}
.title-block .cell {
  padding: 0.85rem 1rem 1rem;
  border-right: 1px solid var(--rule-mid);
  border-top: 1px solid var(--rule-mid);
  min-width: 0;
}
.title-block .cell dt {
  margin: 0 0 0.4rem;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.title-block .cell dd {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.title-block .cell:nth-child(2) dd {
  white-space: nowrap;
}
.title-block .cell dd a {
  text-decoration: none;
  border-bottom: 1px solid var(--rule-strong);
  overflow-wrap: anywhere;
}
.title-block .cell dd a:hover {
  color: var(--pencil-ink);
  border-bottom-color: var(--pencil);
}
.title-block .cell-contact {
  background: var(--vellum-panel);
  grid-column: span 2;
}
.title-block .cell-contact dd a {
  font-weight: 500;
  letter-spacing: 0.02em;
}
.title-block-final {
  border-width: 1.5px;
}
.title-block-final .cell {
  padding: 1.15rem 1.25rem 1.3rem;
}
.title-block-final .cell dd {
  font-size: 0.875rem;
}

/* ---- A-102 The lanes --------------------------------------------------- */

.lanes {
  border-top: 1px solid var(--ink);
}
/* The last band drops its own rule: the next sheet's top border is the divider.
   Two rules a couple of hundred pixels apart reads as a mistake, not a sheet. */
.lanes .lane:last-child,
.process .step:last-child {
  border-bottom: 0;
}

.lane {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 19rem);
  gap: 1.5rem 3rem;
  padding: 2.5rem 2.5rem 2.5rem 0;
  border-bottom: 1px solid var(--rule-mid);
}
.lane > h3 {
  grid-column: 1;
  margin: 0 0 0.85rem;
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.018em;
}
.lane > p {
  grid-column: 1;
  margin: 0 0 1rem;
  max-width: 52ch;
  color: var(--ink-soft);
}
.lane-for {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--ink);
  border-top: 1px solid var(--rule);
  padding-top: 0.85rem;
  max-width: 52ch;
}
.lane-for-label {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--pencil-ink);
  margin-bottom: 0.25rem;
}
.lane-output {
  grid-column: 2;
  grid-row: 1 / span 4;
  margin: 0;
  padding: 0;
  list-style: none;
  align-self: start;
  border-top: 1px solid var(--rule-strong);
  padding-top: 0.85rem;
}
.lane-output li {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  line-height: 1.45;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
  padding: 0.42rem 0 0.42rem 1.1rem;
  border-bottom: 1px solid var(--rule);
  position: relative;
}
/* A drawn bullet: a short dash in the pencil accent, not a glyph. */
.lane-output li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.85rem;
  width: 0.6rem;
  height: 1px;
  background: var(--pencil);
}

/* Dimension lines, drawn in CSS so the labels never distort. */
.lane-dims {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 260ms var(--ease);
}
.lane:hover .lane-dims,
.lane:focus-within .lane-dims {
  opacity: 1;
}
.dim {
  position: absolute;
  color: var(--pencil);
}
.dim-top {
  top: 0.85rem;
  left: 1.25rem;
  right: 1.25rem;
  height: 1px;
  background: var(--pencil);
}
.dim-right {
  right: 0.85rem;
  top: 1.25rem;
  bottom: 1.25rem;
  width: 1px;
  background: var(--pencil);
}
.tick {
  position: absolute;
  width: 7px;
  height: 7px;
  border: 0 solid var(--pencil);
}
.tick-l,
.tick-r {
  top: -3.5px;
}
.tick-l {
  left: -1px;
  border-left-width: 1px;
  border-top-width: 1px;
  transform: rotate(-45deg);
}
.tick-r {
  right: -1px;
  border-right-width: 1px;
  border-top-width: 1px;
  transform: rotate(45deg);
}
.tick-t,
.tick-b {
  right: -3.5px;
}
.tick-t {
  top: -1px;
  border-right-width: 1px;
  border-top-width: 1px;
  transform: rotate(45deg);
}
.tick-b {
  bottom: -1px;
  border-right-width: 1px;
  border-bottom-width: 1px;
  transform: rotate(-135deg);
}
.dim-label {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--pencil-ink);
  background: var(--vellum);
  padding: 0 0.4rem;
  white-space: nowrap;
}
.dim-top .dim-label {
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}
.dim-right .dim-label {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-90deg);
}

/* ---- A-103 Method ------------------------------------------------------ */

.process {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--ink);
}
.step {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 17rem);
  gap: 0 3rem;
  align-items: start;
  padding: 2.25rem 0;
  border-bottom: 1px solid var(--rule-mid);
}
.step-head {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.6rem;
}
.step-balloon {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--ink);
  border-radius: 50%;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--ink);
  transition: background 260ms var(--ease), color 260ms var(--ease),
    border-color 260ms var(--ease);
}
/* The current stage is the one accent on the sheet. */
.step[data-current="true"] .step-balloon {
  background: var(--pencil);
  border-color: var(--pencil);
  color: var(--vellum);
}
.step h3 {
  margin: 0;
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  font-weight: 700;
  letter-spacing: -0.016em;
  line-height: 1.15;
}
.step-body p {
  margin: 0;
  max-width: 56ch;
  color: var(--ink-soft);
}
.step-out {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  line-height: 1.55;
  color: var(--ink);
  border-top: 1px solid var(--rule);
  padding-top: 0.7rem;
  align-self: start;
}

/* ---- A-104 Audiences --------------------------------------------------- */

.audiences {
  /* Four doorways read as a set of four, so the grid is 2x2 rather than
     whatever auto-fit lands on. Three columns strands one and leaves a hole. */
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--ink);
  border-left: 1px solid var(--rule-mid);
}
.audience {
  padding: 2rem 1.75rem 2.25rem;
  border-right: 1px solid var(--rule-mid);
  border-bottom: 1px solid var(--rule-mid);
  /* Tone from an ordered hatch, never a shadow. */
  background-image: repeating-linear-gradient(
    45deg,
    var(--hatch-1) 0 1px,
    transparent 1px 13px
  );
}
.audience h3 {
  margin: 0 0 0.75rem;
  font-size: 1.1875rem;
  font-weight: 700;
  letter-spacing: -0.012em;
}
.audience p {
  margin: 0 0 1rem;
  font-size: 0.9375rem;
  color: var(--ink-soft);
}
.audience-shape {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  line-height: 1.55;
  color: var(--ink);
  border-top: 1px solid var(--rule);
  padding-top: 0.7rem;
  margin-bottom: 0 !important;
}
.audience-shape-label {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--pencil-ink);
  margin-bottom: 0.25rem;
}

.note-block {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  border: 1px solid var(--ink);
  padding: 1.75rem 1.75rem 2rem;
}
.note-lead {
  margin: 0 0 1.1rem;
  font-size: 1.1875rem;
  font-weight: 700;
  letter-spacing: -0.012em;
}
.note-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.75rem;
}
.note-list li {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--ink-soft);
  padding-left: 1.4rem;
  position: relative;
}
.note-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72rem;
  width: 0.85rem;
  height: 1px;
  background: var(--pencil);
}

/* ---- A-105 Practice ---------------------------------------------------- */

.team-schedule {
  border-top: 1px solid var(--ink);
}
.team-row {
  display: grid;
  grid-template-columns: minmax(0, 15rem) minmax(0, 1fr);
  gap: 0.4rem 2.5rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--rule-mid);
}
.team-row > * {
  min-width: 0;
}
.team-name {
  grid-column: 1;
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.team-name .pending {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  border: 1px dashed var(--rule-strong);
  padding: 0.25rem 0.5rem;
}
.team-role {
  grid-column: 1;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--pencil-ink);
  letter-spacing: 0.03em;
}
.team-focus {
  grid-column: 2;
  grid-row: 1 / span 2;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 56ch;
  align-self: center;
}

.team-static {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  display: grid;
  grid-template-columns: minmax(0, 15rem) minmax(0, 1fr);
  gap: 0.5rem 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--ink);
}
.team-static h3 {
  margin: 0;
  font-size: 1.1875rem;
  font-weight: 700;
  letter-spacing: -0.012em;
}
.team-static p {
  margin: 0;
  max-width: 60ch;
  color: var(--ink-soft);
}

/* ---- A-106 Reach us ---------------------------------------------------- */

.quotes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  gap: 0;
  border: 1px solid var(--rule-mid);
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.quote {
  margin: 0;
  padding: 1.5rem 1.5rem 1.6rem;
  border-right: 1px solid var(--rule-mid);
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  background-image: repeating-linear-gradient(
    -45deg,
    var(--hatch-1) 0 1px,
    transparent 1px 10px
  );
}
.quote:last-child {
  border-right: 0;
}
.quote blockquote {
  margin: 0;
  font-size: 1rem;
  line-height: 1.55;
}
.quote-empty {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  line-height: 1.6;
  color: var(--ink-faint);
}
.quote-empty > span:first-child {
  color: var(--pencil-ink);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
}
.quote figcaption {
  margin-top: auto;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--ink);
}
.quote-name {
  display: block;
  font-weight: 700;
}
.quote-role {
  display: block;
  color: var(--ink-faint);
}
.quote-pending {
  color: var(--ink-faint);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-top: 1px solid var(--rule);
  padding-top: 0.7rem;
}

.questions h3 {
  margin: 0 0 1.25rem;
  font-size: 1.1875rem;
  font-weight: 700;
  letter-spacing: -0.012em;
}
.qa-list {
  border-top: 1px solid var(--ink);
}
.qa {
  border-bottom: 1px solid var(--rule-mid);
}
.qa summary {
  cursor: pointer;
  padding: 1.1rem 2.25rem 1.1rem 0;
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  position: relative;
  list-style: none;
}
.qa summary::-webkit-details-marker {
  display: none;
}
/* A drawn plus, drawn as two rules. No glyph icons anywhere on this page. */
.qa summary::after,
.qa summary::before {
  content: "";
  position: absolute;
  background: var(--pencil);
  transition: transform 220ms var(--ease);
}
.qa summary::before {
  right: 0.4rem;
  top: 1.62rem;
  width: 12px;
  height: 1px;
}
.qa summary::after {
  right: calc(0.4rem + 5.5px);
  top: calc(1.62rem - 5.5px);
  width: 1px;
  height: 12px;
}
.qa[open] summary::after {
  transform: rotate(90deg);
}
.qa summary:hover {
  color: var(--pencil-ink);
}
.qa p {
  margin: 0 0 1.25rem;
  max-width: 62ch;
  color: var(--ink-soft);
}

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

.sheet-footer {
  position: relative;
  z-index: 4;
  margin: 0 1.5rem 1.5rem;
  padding: 1.1rem var(--gutter);
  border: 1px solid var(--rule-mid);
  border-top: 1px solid var(--ink);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.05em;
  color: var(--ink-faint);
}
.sheet-footer p {
  margin: 0;
}
.footer-domain a {
  color: var(--ink);
  border-bottom: 1px solid var(--rule-strong);
  text-decoration: none;
}
.footer-domain a:hover {
  color: var(--pencil-ink);
}

/* ---- Responsive -------------------------------------------------------- */

@media (max-width: 1180px) {
  .hero-dims .dim-v {
    display: none;
  }
  .sheet {
    grid-template-columns: minmax(0, 1fr);
  }
  .register {
    position: static;
    border-right: 0;
    border-bottom: 1px solid var(--rule);
    padding: 1rem 0 1.1rem;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.6rem;
  }
  .register-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.15rem 1.1rem;
  }
  .register-list a {
    grid-template-columns: auto auto;
    border-left: 0;
    border-bottom: 1px solid transparent;
    padding: 0.25rem 0;
  }
  .register-list a[aria-current="true"] {
    border-bottom-color: var(--pencil);
  }
  .register-foot {
    display: none;
  }
  .hero-field {
    grid-template-columns: minmax(0, 1fr);
  }
  .hero-figure {
    max-width: 26rem;
  }
}

@media (max-width: 860px) {
  .lane {
    grid-template-columns: minmax(0, 1fr);
  }
  .lane-output {
    grid-column: 1;
    grid-row: auto;
  }
  .step {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.75rem;
  }
  .step-out {
    grid-column: 1;
  }
  .team-row,
  .team-static {
    grid-template-columns: minmax(0, 1fr);
  }
  .team-focus {
    grid-column: 1;
    grid-row: auto;
  }
  .masthead {
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
  }
  .masthead-nav {
    order: 3;
    flex-basis: 100%;
  }
  .masthead-nav ul {
    justify-content: flex-start;
  }
}

@media (max-width: 620px) {
  body {
    font-size: 0.9875rem;
  }
  .frame {
    display: none;
  }
  .sheet,
  .masthead,
  .sheet-footer {
    margin-inline: 0;
  }
  .masthead {
    border-inline: 0;
  }
  .lane-dims {
    display: none;
  }
  .title-block .cell-contact {
    grid-column: 1 / -1;
  }
  .audiences {
    grid-template-columns: minmax(0, 1fr);
  }
  h1 {
    padding-bottom: 0;
  }
  .hero-dims {
    display: none;
  }
}
/* =============================================================================
   Automation and security additions
   -----------------------------------------------------------------------------
   Both are drawn in the same grammar as the rest of the sheet: rules, hatches,
   mono labels and one pencil accent. The workflow graph is SVG so it survives
   with JavaScript off; flow.js only adds the travelling packets.
   ========================================================================== */

/* Detail entries in the margin register. */
.register-detail a {
  padding-left: 1.55rem;
}
.register-detail .register-no,
.register-detail .register-name {
  font-size: 0.6875rem;
  color: var(--ink-faint);
}

#automation,
#security {
  scroll-margin-top: 2rem;
}

/* ---- Automation detail -------------------------------------------------- */

.automation-detail {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  border: 1px solid var(--ink);
  background: var(--vellum-panel);
  padding: clamp(1.25rem, 3vw, 2rem);
}

.detail-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 0.35rem 2rem;
  align-items: baseline;
  margin-bottom: 1.5rem;
}
.detail-no {
  grid-column: 1 / -1;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pencil-ink);
}
.detail-head h3 {
  margin: 0;
  font-size: clamp(1.3rem, 2.2vw, 1.7rem);
  line-height: 1.15;
  letter-spacing: -0.018em;
}
.detail-head p {
  margin: 0;
  color: var(--ink-soft);
  max-width: 56ch;
}
.detail-head p:not(.detail-no) {
  grid-column: 2;
}

.flow {
  margin: 0;
  border: 1px solid var(--rule-mid);
  background: var(--vellum);
  padding: 0.85rem;
  overflow-x: auto;
}
.flow svg {
  display: block;
  width: 100%;
  height: auto;
  min-width: 640px;
}
.flow figcaption {
  margin: 0.75rem 0.25rem 0;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  line-height: 1.6;
  color: var(--ink-faint);
  max-width: 70ch;
}

.flow-grid path {
  fill: none;
  stroke: var(--rule);
  stroke-width: 0.5;
  vector-effect: non-scaling-stroke;
}
.flow-wires path[data-wire] {
  fill: none;
  stroke: var(--ink-soft);
  stroke-width: 1.2;
  vector-effect: non-scaling-stroke;
}
.flow-wire-dashed {
  fill: none;
  stroke: var(--rule-strong);
  stroke-width: 1;
  stroke-dasharray: 3 4;
  vector-effect: non-scaling-stroke;
}
.flow-terminal {
  fill: var(--vellum);
  stroke: var(--ink-soft);
  stroke-width: 1;
}
.flow-node rect {
  fill: var(--vellum);
  stroke: var(--ink);
  stroke-width: 1;
}
.flow-node--branch rect {
  fill: var(--hatch-1);
}
.flow-node--end rect {
  fill: var(--hatch-2);
}
.flow-node-title {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 700;
  fill: var(--ink);
  letter-spacing: -0.01em;
}
.flow-node-sub {
  font-family: var(--font-mono);
  font-size: 9.5px;
  fill: var(--ink-soft);
  letter-spacing: 0.02em;
}
.flow-icon {
  fill: var(--pencil);
}
.flow-port {
  fill: var(--vellum);
  stroke: var(--ink-soft);
  stroke-width: 1;
}
.flow-labels text {
  font-family: var(--font-mono);
  font-size: 9px;
  fill: var(--pencil-ink);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.flow-packet {
  fill: var(--pencil);
}

/* The packet is the only looping animation. Wires get a quiet dash only while
   the graph is on screen, so a long page is not animating off-screen. */
.flow.is-live .flow-wires path[data-wire] {
  stroke-dasharray: 5 8;
  animation: a-flow-dash 1.6s linear infinite;
}
.flow.is-live .flow-icon {
  animation: a-flow-pulse 2.8s ease-in-out infinite;
}
@keyframes a-flow-dash {
  to {
    stroke-dashoffset: -26;
  }
}
@keyframes a-flow-pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.35;
  }
}

/* ---- Security register -------------------------------------------------- */

.security-register {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  border-top: 1px solid var(--ink);
  padding-top: 1.5rem;
}

.findings {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--rule-strong);
}
.finding {
  display: grid;
  grid-template-columns: 4rem minmax(0, 1.7fr) minmax(0, 0.8fr) minmax(0, 0.8fr);
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--rule);
  align-items: start;
}
.finding-ref {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--pencil-ink);
  letter-spacing: 0.08em;
}
.finding-main h4 {
  margin: 0 0 0.25rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
}
.finding-main p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.875rem;
  max-width: 52ch;
}
.finding-meta {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  line-height: 1.6;
  color: var(--ink-faint);
}
.finding-meta span {
  display: block;
  color: var(--pencil-ink);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.625rem;
}
.register-note {
  margin: 1.1rem 0 0;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  line-height: 1.65;
  color: var(--ink-faint);
  max-width: 74ch;
}

@media (max-width: 860px) {
  .detail-head {
    grid-template-columns: minmax(0, 1fr);
  }
  .detail-head p:not(.detail-no) {
    grid-column: 1;
  }
  .finding {
    grid-template-columns: 3rem minmax(0, 1fr);
  }
  .finding-main {
    grid-column: 2;
  }
  .finding-meta {
    grid-column: 2;
  }
}

@media (prefers-reduced-motion: reduce) {
  .flow-packet {
    display: none;
  }
  .flow.is-live .flow-wires path[data-wire],
  .flow.is-live .flow-icon {
    animation: none;
  }
}

.flow-hint {
  display: none;
  margin: 0 0 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pencil-ink);
}
@media (max-width: 760px) {
  .flow-hint {
    display: block;
  }
}

.register-note a {
  color: var(--pencil-ink);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

/* On a phone the horizontal graph is replaced by the same route as a vertical
   list. Nothing is cropped, and the moving dot keeps the sense of flow. */
.flow-mobile {
  display: none;
}
@media (max-width: 760px) {
  .flow {
    overflow: visible;
  }
  .flow svg {
    display: none;
  }
  .flow-hint {
    display: none;
  }
  .flow-mobile {
    display: block;
    position: relative;
    padding-left: 1.4rem;
  }
  .flow-mobile::before {
    content: "";
    position: absolute;
    left: 0.42rem;
    top: 0.8rem;
    bottom: 0.8rem;
    width: 1px;
    background: var(--rule-mid);
  }
  .flow-mobile::after {
    content: "";
    position: absolute;
    left: 0.1rem;
    top: 0.8rem;
    width: 0.65rem;
    height: 0.65rem;
    border-radius: 50%;
    background: var(--pencil);
    animation: a-flow-down 4.5s linear infinite;
  }
  .flow-mobile ol {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.5rem;
  }
  .flow-mobile li {
    display: grid;
    grid-template-columns: 2rem minmax(0, 1fr);
    gap: 0.25rem 0.5rem;
    align-items: start;
    border: 1px solid var(--ink-soft);
    background: var(--vellum);
    padding: 0.55rem 0.65rem;
  }
  .flow-mobile-n {
    font-family: var(--font-mono);
    font-size: 0.625rem;
    color: var(--pencil-ink);
    letter-spacing: 0.08em;
    padding-top: 0.15rem;
  }
  .flow-mobile b {
    display: block;
    font-size: 0.9375rem;
    line-height: 1.2;
  }
  .flow-mobile div span {
    display: block;
    margin-top: 0.15rem;
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    color: var(--ink-soft);
  }
  .flow-mobile-note {
    margin: 0.7rem 0 0;
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    line-height: 1.55;
    color: var(--ink-faint);
  }
}
@keyframes a-flow-down {
  0% {
    top: 0.8rem;
    opacity: 0;
  }
  8% {
    opacity: 1;
  }
  92% {
    opacity: 1;
  }
  100% {
    top: calc(100% - 1rem);
    opacity: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .flow-mobile::after {
    display: none;
  }
}

.footer-domain a,
.sheet-footer a {
  border-bottom: 1px solid var(--rule);
}
