/* ==========================================================================
   Tech Impact — The Triplicate Work Order
   NCR carbonless multi-part business forms: bond-white and cool paper grounds,
   canary and pale-blue copy regions owning whole sections, process-blue
   preprinted rules, red stamps, carbon-offset second impressions, paper grain,
   and perforated tear edges where one sheet ends and the next begins.
   ========================================================================== */

/* Big Shoulders, not the older Big Shoulders Display: the Display cut jams its
   M and N diagonals into the stems at heavy weights, so the middle of an M
   stops well short of the baseline and an N reads as a broken stroke. The
   successor family redraws exactly those joins. */
@font-face {
  font-family: 'Big Shoulders';
  src: url('fonts/big-shoulders-var.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Archivo';
  src: url('fonts/archivo-var.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Courier Prime';
  src: url('fonts/courier-prime-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Courier Prime';
  src: url('fonts/courier-prime-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Stock */
  --bond:        #ffffff;
  --paper:       #f4f5f3;
  --canary:      #f2c200;
  --canary-lift: #f7d64d;
  --canary-rule: #c39d00;
  --file:        #dbe5f1;              /* the blue copy of a multi-part set */
  --file-lift:   #eaf0f8;
  --file-rule:   #a8bcd6;

  /* Ink */
  --blue:        #0f3d7c;
  --blue-lift:   #17559f;
  --red:         #d8232a;
  --red-deep:    #ad1a20;
  --red-stamp:   #8e1218;
  --ink:         #16191c;

  /* Secondary ink, tinted from the ground it sits on — never neutral grey */
  --ink-2:       #3f4a57;
  --on-canary-2: #5c4a00;
  --on-file-2:   #45566d;
  --on-blue-2:   #b9cbe4;
  --on-ink-2:    #aab6c4;
  --on-ink-3:    #929fae;
  --placeholder: #5d6b7d;

  /* Preprinted rules */
  --rule:        rgba(15, 61, 124, .26);
  --rule-strong: rgba(15, 61, 124, .55);

  --display: 'Big Shoulders', system-ui, sans-serif;
  --sans:    'Archivo', system-ui, -apple-system, sans-serif;
  --mono:    'Courier Prime', 'Courier New', ui-monospace, monospace;

  --wrap: 1180px;
  --gut: clamp(1.15rem, 4vw, 3rem);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --head: 92px;

  /* Paper fibre. Authored, tiled, and multiplied into the coloured stocks so
     the grounds are stock rather than fill. */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23g)'/%3E%3C/svg%3E");
}

/* --------------------------------------------------------------- reset -- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bond);
  color: var(--ink);
  font: 400 1.0625rem/1.62 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
p { margin: 0; }
a { color: inherit; }

/* Browser surfaces belong to the design system too. */
::selection { background: var(--canary); color: var(--ink); }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
input, textarea { caret-color: var(--red); }
html { scrollbar-color: var(--blue) var(--paper); }
::-webkit-scrollbar { width: 13px; height: 13px; }
::-webkit-scrollbar-track { background: var(--paper); }
::-webkit-scrollbar-thumb { background: var(--blue); border: 3px solid var(--paper); }
::-webkit-scrollbar-thumb:hover { background: var(--blue-lift); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 60;
  background: var(--red); color: #fff; padding: .75rem 1.15rem;
  font: 700 .8rem/1 var(--sans); letter-spacing: .09em; text-transform: uppercase;
}
.skip:focus { left: .5rem; top: .5rem; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gut);
  position: relative;
  z-index: 1;
}

/* The masthead is sticky, so anchored sections have to clear it. */
section[id], [id="work-requested"] { scroll-margin-top: var(--head); }

/* Where one sheet ends and the next begins: the perforation runs across the
   join, on the sheet, at every width. */
.tear-top { position: relative; }
.tear-top::before {
  content: "";
  position: absolute;
  top: -2px; left: 0; right: 0; height: 4px;
  z-index: 2;
  pointer-events: none;
  background: radial-gradient(circle at 5px 2px,
    rgba(15, 61, 124, .45) 1.7px, transparent 1.9px) 0 0 / 11px 4px repeat-x;
}

/* Stock texture, multiplied into the coloured grounds. */
.grain { position: relative; isolation: isolate; }
.grain::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: var(--grain);
  background-size: 160px 160px;
  mix-blend-mode: multiply;
  opacity: .085;
}

/* The second impression: carbon transfer, misregistered under the first. */
.ghost { position: relative; z-index: 0; }
.ghost::before {
  content: attr(data-ghost);
  position: absolute;
  left: 4px; top: 5px;
  z-index: -1;
  pointer-events: none;
  white-space: nowrap;
}
.parts .ghost::before { color: rgba(92, 74, 0, .3); }
.assessment .ghost::before { color: rgba(69, 86, 109, .34); }

/* ----------------------------------------------------------- typography -- */
.form-title {
  font: 800 clamp(2.35rem, 5.6vw, 4.1rem)/.9 var(--display);
  text-transform: uppercase;
  letter-spacing: .012em;
  color: var(--blue);
}
h2 {
  font: 800 clamp(1.85rem, 4vw, 3rem)/.96 var(--display);
  text-transform: uppercase;
  letter-spacing: .012em;
}
h3 {
  font: 700 clamp(1.2rem, 1.9vw, 1.5rem)/1.08 var(--display);
  text-transform: uppercase;
  letter-spacing: .022em;
}
.section-lede { max-width: 60ch; margin-top: .85rem; color: var(--ink-2); }
.typed { font-family: var(--mono); font-weight: 700; letter-spacing: -.012em; }
.typed-lg {
  font-size: clamp(1.22rem, 2.75vw, 2.1rem);
  line-height: 1.34;
  max-width: 32ch;
}
.typed-lg + .typed-lg { margin-top: .5em; }
.red { color: var(--red); }

/* Field and section labels — these name real fields, on the field's own edge. */
.field-label, .box-legend, .part-no, .copy-tag, .form-serial,
.ledger th, .spec dt, .replaces span, .f-row label, .hero-services-h {
  font: 600 .6875rem/1 var(--sans);
  letter-spacing: .11em;
  text-transform: uppercase;
}

/* --------------------------------------------------------------- header -- */
.masthead {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--bond);
  border-bottom: 1px solid var(--rule-strong);
}
.masthead-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 68px;
  flex-wrap: wrap;
}
.brand img { width: 190px; height: auto; }
.sections { display: flex; align-items: center; gap: clamp(.9rem, 2.2vw, 1.9rem); }
.masthead a:not(.brand) {
  font: 600 .74rem/1 var(--sans);
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-2);
  padding: .45rem 0;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: color .18s var(--ease), border-color .18s var(--ease);
}
.masthead a:not(.brand):hover { color: var(--blue); border-bottom-color: var(--blue); }
.sections { order: 2; }

/* The one action in the masthead is set as ink on stock, not as another link:
   a solid red chip is the only filled element in a bar of uppercase rules, so
   it carries the same weight as the hero button at nav scale. */
.masthead a.nav-cta {
  order: 3;
  color: #fff;
  background: var(--red);
  padding: .52rem .95rem .46rem;
  border-bottom: 0;
  box-shadow: 0 1px 2px rgba(22, 25, 28, .24), 0 4px 10px rgba(22, 25, 28, .13);
  transition: background-color .16s var(--ease), transform .16s var(--ease),
              box-shadow .16s var(--ease);
}
.masthead a.nav-cta:hover {
  color: #fff;
  background: var(--red-deep);
  transform: translateY(-1px);
  box-shadow: 0 2px 3px rgba(22, 25, 28, .26), 0 7px 14px rgba(22, 25, 28, .16);
}
.masthead a.nav-cta:active {
  transform: translateY(1px);
  box-shadow: 0 1px 1px rgba(22, 25, 28, .3);
}

/* Below the fold-out width the section links become a jump strip on their own
   line rather than disappearing — this page is many screens long. */
@media (max-width: 860px) {
  :root { --head: 100px; }
  .masthead-in { min-height: 0; padding-block: .4rem; gap: .45rem 1.25rem; }
  .brand { order: 1; }
  .masthead a:not(.brand) { padding: .3rem 0; }
  .masthead a.nav-cta { order: 2; padding: .46rem .8rem .4rem; }
  .sections {
    order: 3;
    width: 100%;
    overflow-x: auto;
    gap: 1.35rem;
    padding-top: .4rem;
    border-top: 1px solid var(--rule);
    scrollbar-width: none;
    /* The strip scrolls; fade the trailing edge so a clipped item reads as
       "more this way" rather than as a broken layout. */
    -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 2rem), transparent);
    mask-image: linear-gradient(to right, #000 calc(100% - 2rem), transparent);
  }
  .sections::-webkit-scrollbar { display: none; }
  .sections a:last-child { padding-right: 2rem; }
  .brand img { width: 150px; }
}

/* ===================================================== HERO — WORK ORDER == */
/* Hero spacing is tuned so the signature rule and its action clear an 807px
   fold — the contract puts the primary action in the first viewport. */
.order { padding-block: clamp(1.5rem, 3vw, 2.1rem) clamp(3rem, 7vw, 5.5rem); }
.order-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding-bottom: .85rem;
  border-bottom: 3px double var(--rule-strong);
}
.serial { display: flex; gap: clamp(1rem, 3vw, 2.25rem); margin: 0; }
.serial div { display: flex; align-items: baseline; gap: .45rem; }
.serial dt {
  font: 600 .6875rem/1 var(--sans);
  letter-spacing: .11em;
  text-transform: uppercase;
  color: var(--ink-2);
}
/* Designations use a plain hyphen and are held together with nowrap. A true
   non-breaking hyphen (U+2011) would be the typographic answer, but none of the
   four self-hosted faces carry that glyph, so it fell through to system
   fallback and rendered as tofu wherever the OS had no font for it. */
.serial dd {
  margin: 0;
  font: 700 1.05rem/1 var(--mono);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* Contractor is filled in; the visitor's name and business are not. The blanks
   are the point — they are what the authorize action at the foot fills. */
.field-filled {
  display: flex;
  align-items: baseline;
  gap: clamp(.7rem, 2vw, 1.4rem);
  flex-wrap: wrap;
  margin-top: 1.05rem;
  padding-bottom: .7rem;
  border-bottom: 1px solid var(--rule);
}
.field-value {
  font: 400 clamp(.95rem, 1.5vw, 1.05rem)/1.5 var(--mono);
  max-width: 74ch;
}
.order-fields {
  display: grid;
  grid-template-columns: 1fr 1fr .6fr;
  gap: 0 clamp(1rem, 3vw, 2.5rem);
  margin-top: 1rem;
}
.field-blank { display: flex; align-items: baseline; gap: .7rem; }
.field-label { color: var(--blue); white-space: nowrap; }
.field-rule { flex: 1; height: 1px; background: var(--rule-strong); transform: translateY(-3px); }
/* The date is ours to enter, so it is typed in like the other filled values.
   Empty until script.js sets it, which leaves the plain rule if JS never runs. */
.field-entry {
  font: 400 .9rem/1 var(--mono);
  color: var(--ink);
  white-space: nowrap;
}
.field-entry:empty { display: none; }
@media (max-width: 640px) {
  .order-fields { grid-template-columns: 1fr; gap: .95rem; }
}

/* Boxed field: the legend sits on the border, the way a form prints it. */
.box {
  position: relative;
  border: 2px solid var(--blue);
  padding: clamp(1.4rem, 2.8vw, 1.95rem) clamp(1.1rem, 2.6vw, 2rem)
           clamp(1.2rem, 2.4vw, 1.6rem);
}
.box-legend {
  position: absolute;
  top: 0;
  left: clamp(.9rem, 2.2vw, 1.5rem);
  transform: translateY(-50%);
  background: var(--bond);
  padding-inline: .55rem;
  color: var(--blue);
}
.box-hero { margin-top: 1.9rem; }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: clamp(1.6rem, 4vw, 3.5rem);
  align-items: start;
}
.hero-services {
  padding-left: clamp(1.6rem, 4vw, 3.5rem);
  border-left: 1px solid var(--rule-strong);
}
.hero-services-h {
  color: var(--blue);
  padding-bottom: .7rem;
  border-bottom: 1px solid var(--rule);
}
.hero-services ul { list-style: none; margin: 0; padding: 0; }
.hero-services li {
  position: relative;
  padding: .42rem 0 .42rem 1.95rem;
  font-size: .95rem;
  font-weight: 500;
  border-bottom: 1px solid var(--rule);
}
.hero-services li::before {
  content: "";
  position: absolute;
  left: 0; top: .62em;
  width: 1.05rem; height: 1.05rem;
  border: 2px solid var(--blue);
  background: var(--canary);
}
.hero-services li::after {   /* the tick, drawn — not a glyph */
  content: "";
  position: absolute;
  left: .35rem; top: .75em;
  width: .36rem; height: .66rem;
  border: solid var(--ink);
  border-width: 0 2.5px 2.5px 0;
  rotate: 42deg;
}
@media (max-width: 780px) {
  .hero-grid { grid-template-columns: 1fr; gap: 1.8rem; }
  .hero-services { padding-left: 0; border-left: 0; }
}

.order-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: clamp(1.5rem, 4vw, 3rem);
  margin-top: clamp(1.3rem, 2.4vw, 1.7rem);
}

/* The contract's signature line: the action signs the form rather than
   floating over it as a web button. */
.authorize { flex: 0 1 auto; max-width: 34rem; }
.auth-row {
  display: inline-block;
  border-bottom: 2px solid var(--blue);
  padding: 0 clamp(1rem, 4vw, 3.5rem) .55rem 0;
}
.authorize-note {
  margin-top: .7rem;
  max-width: 34ch;
  font-size: .875rem;
  color: var(--ink-2);
}

/* ----------------------------------------------------------------- btn -- */
.btn {
  display: inline-block;
  font: 800 clamp(.92rem, 1.5vw, 1.06rem)/1 var(--display);
  text-transform: uppercase;
  letter-spacing: .05em;
  text-decoration: none;
  padding: .9rem 1.5rem .78rem;
  border: 0;
  cursor: pointer;
  transition: background-color .16s var(--ease), transform .16s var(--ease),
              box-shadow .16s var(--ease);
}
/* Ink on stock, not a web button: a tight contact shadow, no colour glow. */
.btn-primary {
  background: var(--red);
  color: #fff;
  box-shadow: 0 1px 2px rgba(22, 25, 28, .24), 0 5px 12px rgba(22, 25, 28, .13);
}
.btn-primary:hover {
  background: var(--red-deep);
  transform: translateY(-1px);
  box-shadow: 0 2px 3px rgba(22, 25, 28, .26), 0 8px 16px rgba(22, 25, 28, .16);
}
.btn-primary:active { transform: translateY(1px); box-shadow: 0 1px 1px rgba(22, 25, 28, .3); }
.btn:disabled { background: var(--ink-2); cursor: not-allowed; box-shadow: none; transform: none; }

/* ============================================== SECTION — CURRENT METHOD == */
.method {
  background: var(--paper);
  border-bottom: 1px solid var(--rule-strong);
  padding-block: clamp(3rem, 7vw, 5.5rem);
}
.ledger caption {
  caption-side: top;
  text-align: left;
  padding: clamp(1.6rem, 3vw, 2.4rem) 0 .9rem;
  font: 400 .9rem/1.5 var(--sans);
  font-style: italic;
  color: var(--ink-2);
}
.table-scroll { overflow-x: auto; }
.ledger { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.ledger th {
  text-align: left;
  color: var(--blue);
  padding: 0 1rem .6rem 0;
  border-bottom: 2px solid var(--blue);
}
.ledger td {
  padding: .82rem 1rem .82rem 0;
  border-bottom: 1px solid var(--rule);
  vertical-align: baseline;
}
.ledger tbody tr:nth-child(even) { background: rgba(15, 61, 124, .035); }
.c-line { width: 3.5rem; font-family: var(--mono); font-weight: 700; color: var(--blue); }
.c-by, .c-freq { white-space: nowrap; font-size: .95rem; color: var(--ink-2); }
.stamp-note {
  margin-top: clamp(1.5rem, 3vw, 2.2rem);
  max-width: 48ch;
  font: 700 clamp(1.05rem, 1.9vw, 1.35rem)/1.42 var(--mono);
}

/* Below ~700px each line becomes its own stacked entry rather than a swipe. */
@media (max-width: 700px) {
  .ledger, .ledger caption, .ledger tbody, .ledger tr, .ledger td {
    display: block;
    width: 100%;
  }
  .ledger thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .ledger tr {
    padding: .95rem 0;
    border-bottom: 1px solid var(--rule);
    display: grid;
    grid-template-columns: 3rem 1fr;
    gap: .1rem .5rem;
  }
  .ledger tbody tr:nth-child(even) { background: none; }
  .ledger td { border: 0; padding: 0; }
  .c-line { grid-row: 1 / span 3; width: auto; }
  .ledger td:not(.c-line) { grid-column: 2; }
  .c-by, .c-freq { white-space: normal; font-size: .85rem; }
  .c-by::before, .c-freq::before {
    content: attr(data-label) " — ";
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    font-size: .68rem;
    color: var(--blue);
  }
  .c-by { margin-top: .4rem; }
}

/* ======================================================= SECTION — PARTS == */
.parts {
  background: var(--canary);
  color: var(--ink);
  border-bottom: 2px solid var(--canary-rule);
  padding-block: clamp(3rem, 7vw, 5.5rem);
}
.parts .section-lede { color: var(--on-canary-2); }
.part-list {
  list-style: none;
  margin: clamp(2rem, 4vw, 3rem) 0 0;
  padding: 0;
  border-top: 2px solid var(--ink);
}
.part {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) max-content;
  gap: .3rem clamp(1.1rem, 3vw, 2.25rem);
  align-items: start;
  padding: clamp(1.5rem, 3vw, 2.2rem) 0;
  border-bottom: 1px solid var(--canary-rule);
  transition: background-color .2s var(--ease);
}
.part:hover { background: var(--canary-lift); }
.part-fig {
  grid-column: 1;
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  background: var(--canary-lift);
  border: 2px solid var(--ink);
}
.part:hover .part-fig { background: var(--canary); }
.ico { width: 60%; fill: none; stroke: var(--blue); stroke-width: 2.6; stroke-linecap: square; }
/* The part number is a diagram callout in its own gutter, not an eyebrow. */
.part-no {
  grid-column: 1;
  text-align: center;
  margin-top: .5rem;
  color: var(--on-canary-2);
  white-space: nowrap;
}
.part-body { grid-column: 2; grid-row: 1 / span 2; }
.part-body h3 { margin-bottom: .6rem; }
.part-body p { max-width: 62ch; }
.replaces {
  grid-column: 3;
  grid-row: 1 / span 2;
  justify-self: end;
  text-align: right;
  white-space: nowrap;
  padding-top: .1rem;
  font: 700 .8125rem/1.5 var(--mono);
  color: var(--blue);
}
.replaces span { display: block; color: var(--on-canary-2); font-family: var(--sans); }
.parts-foot { margin-top: clamp(1.6rem, 3vw, 2.2rem); max-width: 56ch; font-weight: 500; }

@media (max-width: 900px) {
  .part { grid-template-columns: 92px minmax(0, 1fr); }
  .part-body { grid-row: 1 / span 2; }
  .replaces {
    grid-column: 2;
    grid-row: 3;
    justify-self: start;
    text-align: left;
    margin-top: .9rem;
    line-height: 1;
  }
  .replaces span { display: inline; margin-right: .5rem; }
}
@media (max-width: 640px) {
  .part { grid-template-columns: 64px minmax(0, 1fr); }
}

/* ====================================================== SECTION — COPIES == */
.copies { padding-block: clamp(3rem, 7vw, 5.5rem); }
.copy-set {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
  gap: clamp(1rem, 2.2vw, 1.6rem);
  margin-top: clamp(2.2rem, 4vw, 3.2rem);
}
/* Each sheet shows the edges of the copies collated beneath it. */
.copy {
  position: relative;
  padding: clamp(1.7rem, 3vw, 2.3rem) clamp(1.4rem, 2.6vw, 2rem) clamp(1.4rem, 2.6vw, 2rem);
  border: 2px solid var(--ink);
  box-shadow: 0 1px 2px rgba(22, 25, 28, .18), 0 6px 14px rgba(22, 25, 28, .12);
}
.copy::after {
  content: "";
  position: absolute;
  left: 7px; right: -7px;
  bottom: -9px;
  height: 7px;
  border: 2px solid var(--ink);
  border-top: 0;
  z-index: -1;
}
.copy h3 { margin: 0 0 .7rem; }
.copy-tag {
  position: absolute;
  top: 0;
  left: clamp(1.2rem, 2.4vw, 1.7rem);
  transform: translateY(-50%);
  padding-inline: .5rem;
  color: var(--ink-2);
}
.copy-white  { background: var(--bond); }
.copy-white .copy-tag { background: var(--bond); }
.copy-white::after { background: var(--canary); }
.copy-canary { background: var(--canary); }
.copy-canary .copy-tag { background: var(--canary); color: var(--on-canary-2); }
.copy-canary::after { background: var(--file); }
.copy-file { background: var(--file); }
.copy-file .copy-tag { background: var(--file); color: var(--on-file-2); }
.copy-file::after { background: var(--paper); }

/* ======================================================= SECTION — TERMS == */
.terms { background: var(--blue); color: var(--paper); padding-block: clamp(3rem, 7vw, 5.5rem); }
.terms h2 { color: var(--bond); }
.terms-in {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.terms-col > p { max-width: 54ch; color: var(--on-blue-2); }
.terms-col > h2 + p { margin-top: 1.1rem; }
.terms-col > p + p { margin-top: 1rem; }
.box-terms { border-color: var(--canary); }
.box-terms .box-legend { background: var(--blue); color: var(--canary); }
.wont { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.wont li { position: relative; padding-left: 2.1rem; color: var(--paper); max-width: 46ch; }
.wont li::before {
  content: "";
  position: absolute;
  left: 0; top: .38em;
  width: 1.15rem; height: 1.15rem;
  border: 2px solid var(--canary);
  background:
    linear-gradient(to bottom right, transparent calc(50% - 1.25px),
      var(--canary) calc(50% - 1.25px) calc(50% + 1.25px), transparent calc(50% + 1.25px)),
    linear-gradient(to bottom left, transparent calc(50% - 1.25px),
      var(--canary) calc(50% - 1.25px) calc(50% + 1.25px), transparent calc(50% + 1.25px));
}

/* ================================================== SECTION — ASSESSMENT == */
.assessment {
  background: var(--file);
  color: var(--ink);
  padding-block: clamp(3rem, 7vw, 5.5rem);
}
.assess-in {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
@media (max-width: 860px) { .assess-in { grid-template-columns: 1fr; } }
.assessment .section-lede { color: var(--on-file-2); }
.assess-head { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }

/* The one authored moment: the stamp lands. Final state is the default, so it
   is fully visible with JS off; .stamped replays it from the raised state. */
.stamp {
  font: 800 clamp(.85rem, 1.5vw, 1.05rem)/1 var(--display);
  text-transform: uppercase;
  letter-spacing: .09em;
  color: var(--red-stamp);
  border: 3px double var(--red-stamp);
  padding: .5rem .8rem .4rem;
  rotate: -9deg;
}
.stamp span { display: block; }
@keyframes land {
  0%   { scale: 2.5; rotate: -26deg; opacity: 0; filter: blur(7px); }
  60%  { opacity: 1; }
  100% { scale: 1; rotate: -9deg; opacity: 1; filter: blur(0); }
}
.stamp.stamped { animation: land .72s var(--ease) both; }

.spec { margin: clamp(1.6rem, 3vw, 2.2rem) 0 0; display: grid; gap: 1.15rem; }
.spec div {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: .3rem 1rem;
  padding-bottom: 1.15rem;
  border-bottom: 1px solid var(--file-rule);
}
.spec dt { color: var(--on-file-2); padding-top: .28em; }
.spec dd { margin: 0; max-width: 52ch; }
@media (max-width: 560px) { .spec div { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------- the form -- */
.assess-form {
  background: var(--bond);
  border: 2px solid var(--ink);
  padding: clamp(1.4rem, 3vw, 2.1rem);
  box-shadow: 0 1px 2px rgba(22, 25, 28, .2), 0 8px 20px rgba(22, 25, 28, .14);
}
.form-serial {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--ink-2);
  padding-bottom: .8rem;
  margin-bottom: 1.4rem;
  border-bottom: 3px double var(--rule-strong);
}
.form-serial span { color: var(--blue); white-space: nowrap; }
.f-row { margin-bottom: 1.2rem; }
.f-row label { display: block; color: var(--blue); margin-bottom: .45rem; }
.f-row input, .f-row textarea {
  width: 100%;
  font: 400 1rem/1.5 var(--mono);
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 2px solid var(--rule-strong);
  padding: .5rem .1rem;
  transition: border-color .16s var(--ease), background-color .16s var(--ease);
}
.f-row textarea { resize: vertical; border: 2px solid var(--rule-strong); padding: .6rem; }
.f-row input:hover, .f-row textarea:hover { border-color: var(--blue); }
.f-row input:focus, .f-row textarea:focus {
  border-color: var(--blue);
  background: rgba(242, 194, 0, .13);
  outline-offset: 2px;
}
.f-row ::placeholder { color: var(--placeholder); }
.f-row input[aria-invalid="true"], .f-row textarea[aria-invalid="true"] { border-color: var(--red); }
.err, .hint { margin-top: .4rem; font-size: .8125rem; }
.err { color: var(--red-deep); font-weight: 500; }
.hint { color: var(--ink-2); }
.btn-submit { width: 100%; margin-top: .4rem; }
.form-status { margin-top: .9rem; font-size: .9rem; font-weight: 500; min-height: 1.35rem; }
.form-status[data-state="ok"] { color: var(--blue); }
.form-status[data-state="bad"] { color: var(--red-deep); }
.is-busy .btn-label { opacity: .55; }

/* --------------------------------------------------------------- footer -- */
.foot { background: var(--ink); color: var(--paper); padding-block: clamp(2.6rem, 5vw, 4rem) 0; }
.foot-in {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1.8rem, 5vw, 4rem);
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: clamp(2rem, 4vw, 3rem);
}
.foot-brand { max-width: 40ch; }
.foot-brand img { width: 172px; height: auto; }
.foot-brand p { margin-top: 1.1rem; font-size: .95rem; color: var(--on-ink-2); }
.foot-nav { display: grid; gap: .7rem; }
.foot-nav a {
  font: 600 .74rem/1 var(--sans);
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--on-ink-2);
  transition: color .16s var(--ease);
}
.foot-nav a:hover { color: var(--canary); }
.foot-legend {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem 1.5rem;
  justify-content: space-between;
  padding-block: 1.1rem;
  border-top: 1px solid rgba(244, 245, 243, .18);
  font: 600 .6875rem/1.5 var(--sans);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--on-ink-3);
}
.foot-mail { color: var(--canary); text-decoration: none; text-underline-offset: 3px; }
.foot-mail:hover { text-decoration: underline; }

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